@font-face {
  font-family: "SUIT Variable";
  src: url("assets/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #163541;
  --muted: #5b5550;
  --paper: #fff;
  --surface: #f7f4ef;
  --line: #e9dfd4;
  --control-line: #907d70;
  --brand: #a00e15;
  --brand-soft: #f8ebe7;
  --brand-dark: #770d17;
  --header: 66px;
  --ease: cubic-bezier(.2,.75,.25,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 "SUIT Variable", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; word-break: keep-all; }
h1,h2,p,figure,dl,dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
#main:focus { outline: none; }
.wrap { width: min(100% - 104px, 1200px); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 20; padding: 8px 14px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { position: fixed; inset: 0 0 auto; z-index: 10; color: var(--ink); background: #ffffffeb; border-bottom: 1px solid #eee4d9; backdrop-filter: blur(18px); transition: box-shadow .28s; }
.head { width: min(100% - 80px, 1200px); height: var(--header); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: clamp(130px, 12vw, 165px); flex: none; }
.logo img { width: 100%; }
.header.scrolled, .header.menu-open { box-shadow: 0 4px 18px #17151a08; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.45vw, 32px); color: var(--muted); font-weight: 650; font-size: 14px; white-space: nowrap; }
.nav a { padding-block: 9px; transition: color .2s; }
.nav a:is(:hover, :focus-visible, [aria-current]) { color: var(--brand); }
.head-cta { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; min-height: 44px; padding: 8px 17px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--brand); font-size: 14px; font-weight: 750; transition: background .2s, color .2s; }
.head-cta:hover { background: var(--brand-dark); }
.read-progress { position: absolute; inset: auto 0 -1px; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.menu { display: none; }

.button { min-height: 48px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid transparent; border-radius: 13px; font-size: 15px; font-weight: 750; transition: background .22s, color .22s, border-color .22s; }
.button span, .text-link span { transition: translate .25s var(--ease); }
.button:hover span, .text-link:hover span { translate: 2px -2px; }
.primary { background: var(--brand); color: #fff; }
.primary:hover { background: var(--brand-dark); }
.primary:disabled { opacity: .55; cursor: default; }
.secondary { border-color: var(--control-line); background: var(--paper); color: var(--ink); }
.secondary:hover { background: #eee4d9; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--brand); font-size: 12px; font-weight: 750; line-height: 1.35; letter-spacing: .14em; }
.eyebrow span { display: inline-block; width: 16px; height: 1px; background: currentColor; }
@keyframes arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

.section { padding-block: clamp(72px, 8.2vw, 120px); }
.section h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.13; letter-spacing: -.055em; font-weight: 800; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 34px; }
.section-head > p { max-width: 365px; color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; border-block: 1px solid var(--line); }
.facts > div { padding: 25px clamp(15px, 3vw, 45px) 27px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts small { display: block; color: var(--brand); font-size: 14px; font-weight: 750; }
.facts strong { display: block; margin-block: 3px 1px; font-size: clamp(27px, 3.65vw, 55px); font-weight: 750; letter-spacing: -.075em; white-space: nowrap; }
.facts strong span { margin-left: 4px; font-size: .51em; font-weight: 700; }
.facts p { color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding: 4px 0; border-bottom: 1px solid; color: var(--brand); font-size: 15px; font-weight: 750; }
.overview .text-link, .siteplan .text-link { margin-top: 24px; }
.location, .interior { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: clamp(28px, 6vw, 96px); }
.description { max-width: 440px; margin-top: 21px; color: var(--muted); font-size: 17px; }
.feature-list { list-style: none; padding: 0; margin-block: 26px; }
.feature-list li { display: flex; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.feature-list span { color: var(--brand); font-weight: 750; flex: 0 0 42px; }
.visual-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.visual-card .image-link { border-radius: 19px 19px 0 0; }
.visual-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; font-weight: 750; }
.visual-card figcaption span { color: var(--muted); font-size: 12px; font-weight: 550; }
.image-link { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--surface); }
.image-link .slice { transition: scale .6s var(--ease); }
.image-link:hover .slice { scale: 1.025; }
.zoom { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: var(--ink); background: #ffffffed; font-size: 19px; }
.slice { overflow: hidden; position: relative; }
.slice img { position: absolute; top: 0; width: 100%; max-width: none; height: auto; transform: translateY(var(--cut, 0%)); }
.slice-location { aspect-ratio: 1200/870; }
.slice-site { aspect-ratio: 1200/850; }
.slice-basic { aspect-ratio: 540/326; background: #eeedea; }
.slice-basic img { width: 222.22%; left: -88.8%; --cut: -2.5%; }
.slice-expanded { aspect-ratio: 1200/640; }
.slice-expanded img { --cut: -39.7%; }
.slice-interior { aspect-ratio: 1200/665; }
.slice-interior img { --cut: -12.43%; }
.plan-card { max-width: 900px; }
.sq { font-size: .65em; }
.area { max-width: 455px; margin-block: 27px; }
.area div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.area dt { color: var(--muted); }
.area dd { font-weight: 800; }
.unit-tabs { display: flex; gap: 4px; padding: 4px; background: #eee4d9; border-radius: 13px; margin-bottom: 12px; }
.unit-tabs button { flex: 1; min-width: 0; padding: 11px 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 750; }
.unit-tabs button[aria-selected=true] { color: #fff; background: var(--ink); }
.unit-tabs button[aria-selected=false]:hover { color: var(--ink); background: #fff; }
.unit-panel:not([hidden]) { animation: arrive .35s var(--ease) both; }

.visit { background: var(--surface); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: start; gap: clamp(32px, 7vw, 110px); max-width: 970px; }
.visit-intro .text-link { margin-top: 20px; }
.consult-form { display: grid; gap: 16px; padding: clamp(20px, 3.2vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.form-note { color: var(--muted); font-size: 14px; }
.form-field { display: grid; min-width: 0; gap: 6px; }
.form-field label { font-size: 14px; font-weight: 750; }
.field-optional { margin-left: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.consult-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.consult-schedule .form-field { grid-template-rows: 1fr auto; }
.consult-schedule :is(input[type=date], select, .calendar-trigger) { height: 50px; padding-block: 0; line-height: 1.35; }
#consult-date-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-field :is(input, select, .calendar-trigger) { width: 100%; min-width: 0; min-height: 50px; padding: 11px 14px; border: 1px solid var(--control-line); border-radius: 11px; color: var(--ink); background: var(--paper); font: inherit; transition: border-color .2s, box-shadow .2s; }
.form-field :is(input[type=date], select) { cursor: pointer; }
.form-field select:has(option[value=""]:checked) { color: var(--muted); }
.form-field input::placeholder { color: #6f6b74; }
.form-field :is(input, select, .calendar-trigger):focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 400px) {
  .consult-schedule { grid-template-columns: 1fr; }
}
.calendar-trigger { display: flex; align-items: center; gap: 9px; text-align: left; line-height: 1.35; }
.calendar-trigger:not(.has-date) { color: var(--muted); }
.calendar-trigger:hover { border-color: var(--brand); }
.calendar-glyph { position: relative; width: 17px; height: 16px; flex: none; border: 1.5px solid currentColor; border-radius: 4px; }
.calendar-glyph::before { content: ''; position: absolute; inset: 4px 0 auto; border-top: 1.5px solid currentColor; }
.calendar-glyph::after { content: ''; position: absolute; inset: -4px 3px auto; height: 5px; border-inline: 1.5px solid currentColor; }

.visit-calendar { box-sizing: border-box; width: min(390px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; margin: auto; padding: clamp(14px, 4vw, 24px); border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 72px #16354145; }
.visit-calendar[open] { animation: arrive .22s var(--ease) both; }
.visit-calendar::backdrop { background: #10252d91; }
.calendar-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.calendar-header h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.04em; }
.calendar-header p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.calendar-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font-size: 24px; line-height: 1; }
.calendar-icon:hover:not(:disabled), .calendar-day:hover:not(:disabled):not([aria-pressed=true]) { color: var(--brand-dark); background: var(--brand-soft); }
.calendar-icon:disabled { color: #a69b93; cursor: default; }
.calendar-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 9px; }
.calendar-navigation p { font-size: 18px; font-weight: 800; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekdays { text-align: center; color: var(--muted); font-size: 12px; font-weight: 750; margin-bottom: 6px; }
.calendar-day { position: relative; display: grid; place-items: center; min-width: 0; min-height: 41px; padding: 0; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.calendar-day:disabled { color: #a69b93; cursor: default; }
.calendar-day[aria-current=date] { border-color: var(--brand); }
.calendar-day[aria-pressed=true] { color: #fff; background: var(--brand); }
.calendar-day:focus-visible { outline-offset: 1px; }
.calendar-footer { display: flex; justify-content: space-between; align-items: center; min-height: 45px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.calendar-today-marker { display: inline-block; width: 10px; height: 10px; margin-right: 2px; border: 1px solid var(--brand); border-radius: 3px; }
.calendar-clear { min-height: 44px; padding: 0 4px; border: 0; color: var(--brand-dark); background: transparent; font-size: 13px; font-weight: 750; }

.consult-form .button { width: 100%; margin-top: 4px; }
.form-result { color: var(--brand-dark); font-size: 14px; font-weight: 650; }
.form-result:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reservation-dialog { width: min(420px, calc(100% - 36px)); padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #fff; text-align: center; }
.reservation-dialog::backdrop { background: #10252da1; }
.reservation-check { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 25px; }
.reservation-dialog h2 { font-size: clamp(21px, 5vw, 25px); line-height: 1.3; letter-spacing: -.04em; }
.reservation-dialog p { margin-block: 10px 18px; color: var(--muted); font-size: 14px; }
.reservation-dialog .button { width: 100%; }
.footer { padding-block: 35px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 180px 1fr 43px; align-items: start; gap: 28px; font-size: 14px; }
.foot img { width: 159px; }
.foot address { font-style: normal; }
.foot .disclaimer { margin-top: 9px; color: var(--muted); font-size: 12px; }
.disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
.backtop { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid var(--control-line); border-radius: 50%; background: var(--paper); color: var(--ink); }

.lightbox { position: fixed; width: min(94vw, 1050px); max-height: 88svh; padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 22px 80px #0005; }
.lightbox[open] { display: flex; flex-direction: column; animation: arrive .25s var(--ease) both; }
.lightbox::backdrop { background: #171319d4; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.lightbox-bar h2 { font-size: 17px; }
.lightbox-bar button { width: 39px; height: 39px; border: 0; background: transparent; font-size: 24px; }
.lightbox-body { overflow: auto; overscroll-behavior: contain; }
.lightbox-body img { width: 100%; }
body:has(.lightbox[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .revealed:not(:focus-within) { animation: section-reveal .62s var(--ease) both; }
}
@keyframes section-reveal { from { opacity: .28; } to { opacity: 1; } }

@media (max-width: 920px) {
  :root { --header: 60px; }
  .wrap, .head { width: calc(100% - 52px); }
  .head { justify-content: start; gap: 12px; }
  .head-cta { margin-left: auto; padding: 7px 12px; }
  .menu { order: 3; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-width: 70px; height: 44px; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 800; }
  .menu-icon { display: grid; gap: 6px; }
  .menu-icon span { width: 15px; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
  .menu-open .menu-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { display: none; position: absolute; inset: var(--header) 0 auto; padding: 9px 26px 18px; background: var(--paper); box-shadow: 0 16px 24px #17151a0c; }
  .menu-open .nav { display: grid; gap: 0; animation: arrive .22s var(--ease) both; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .wrap, .head { width: calc(100% - 36px); }
  .head { gap: 8px; }
  .head .logo { width: clamp(105px, 34vw, 130px); }
  .head-cta span { display: none; }
  .section { padding-block: 60px; }
  .section-head { display: grid; gap: 11px; margin-bottom: 22px; }
  .facts { grid-template-columns: 1fr; margin-top: 24px; }
  .facts > div, .facts > div:first-child { padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
  .facts strong { grid-column: 2; grid-row: 1 / span 2; }
  .facts p { font-size: 13px; }
  .split, .visit-grid { grid-template-columns: 1fr; gap: 23px; }
  .foot { grid-template-columns: 1fr auto; gap: 12px; }
  .foot div { grid-column: 1/-1; grid-row: 2; }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Project palette and responsive media layouts. */
.section-head h2 { text-wrap: balance; }
.overview .facts { margin-top: 0; }
.small-note { color: var(--muted); font-size: 13px; }
.crop { display: block; position: relative; aspect-ratio: var(--ratio); overflow: hidden; width: 100%; }
.crop img { position: absolute; inset: 0 auto auto 0; width: var(--image-width); height: auto; max-width: none; transform: translate(var(--image-x), var(--image-y)); }
.image-link .crop { transition: scale .45s var(--ease); }
@media (hover: hover) { .image-link:hover .crop { scale: 1.025; } }
.gallery { margin-top: 20px; }
.gallery-bar { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--control-line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 19px; transition: color .18s, background .18s; }
.gallery-controls button:enabled:hover { color: #fff; background: var(--brand); }
.gallery-controls button:disabled { opacity: .4; cursor: default; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding-bottom: 12px; scrollbar-color: #b6a79c transparent; scrollbar-width: thin; }
.gallery-track > * { min-width: 0; scroll-snap-align: start; }
.gallery-track .image-link { display: grid; place-items: stretch; aspect-ratio: 16 / 9; border-radius: 12px; }
.gallery-track .crop { max-height: 100%; }
.gallery-track .visual-card { align-self: start; border: 0; border-radius: 0; background: transparent; }
.gallery-track .visual-card figcaption { padding: 10px 0 11px; border-bottom: 1px solid var(--line); }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.card-copy { padding: 18px 19px 20px; }
.card-copy h3 { margin: 6px 0 3px; color: var(--ink); font-size: 22px; line-height: 1.25; letter-spacing: -.04em; }
.card-copy p:not(.eyebrow), .card-copy ul { color: var(--muted); font-size: 14px; }
.card-copy ul { padding-inline-start: 18px; margin-block: 12px 0; }
.card-copy li + li { margin-top: 3px; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.system-card { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; }
.system-card .crop { height: 100%; min-height: 180px; }
.system-card .crop img { width: max(var(--image-width), 320%); }
.plan-grid { display: grid; grid-template-columns: 1.55fr .75fr 1fr; gap: 16px; align-items: start; }
.plan-grid .image-link { background: #eeedea; }
.model-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(20px, 3.5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.model-card h2 { font-size: clamp(27px, 3vw, 38px); }
.model-card .description { margin-top: 7px; }
.model-card .button { flex: none; }

.visit .consult-form { box-shadow: 0 14px 36px #3928190b; }
@media (max-width: 920px) {
  .nav { max-height: calc(100svh - var(--header) - 75px); overflow-y: auto; }
  .system-card { display: block; }
  .system-card .crop { height: auto; min-height: 0; aspect-ratio: 1.45; }
  .system-card .crop img { width: var(--image-width); }
  .plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .plan-main { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .gallery-track { grid-auto-columns: min(82%, 335px); gap: 12px; }
  .system-grid { grid-template-columns: 1fr; }
  .model-card { display: grid; justify-content: stretch; gap: 14px; }
  .visual-card figcaption { padding: 10px 12px; flex-wrap: wrap; gap: 4px 8px; }
}

.lightbox-actions { display: flex; flex: none; gap: 4px; align-items: center; }
.lightbox-actions .lightbox-zoom { width: auto; min-width: 43px; padding-inline: 5px; font-size: 13px; color: var(--brand); font-weight: 750; }
.lightbox-content { width: 100%; }
.lightbox-content > img { margin-inline: auto; }
.lightbox-content .crop img { width: var(--image-width); }
.lightbox-body.zoomed .lightbox-content { width: max(150%, 720px); }
@media (max-width: 430px) {
  .lightbox-bar { padding-inline: 10px; gap: 6px; }
  .lightbox-bar h2 { font-size: 15px; }
}

.floating-contact { position: fixed; z-index: 9; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: 8px; }
.floating-phone { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 9px 15px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--brand); box-shadow: 0 7px 26px #301c1c33; font-size: 12px; line-height: 1.15; font-weight: 750; transition: background .2s, translate .2s; }
.floating-phone:hover { background: var(--brand-dark); translate: 0 -2px; }
.floating-phone strong { display: block; margin-top: 3px; font-size: 15px; font-variant-numeric: tabular-nums; }
.floating-phone svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.reservation-status { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #fff; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: 0 4px 16px #301c1c25; font-size: 12px; white-space: nowrap; }
.reservation-message { animation: reservation-blink 1.8s ease-in-out infinite; }
@keyframes reservation-blink { 50% { opacity: .69; } }

#premium-gallery .feature-card .crop { aspect-ratio: 16 / 9; }

@media (min-width: 921px) {
  #nearby-gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Night rendering and booking actions */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(650px, 48vw, 820px);
  margin-top: var(--header);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 26% 72%, #163c77, #0a1d38 61%, #07172c);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media > img {
  position: absolute;
  inset: auto auto 0 0;
  width: 76%;
  height: 80%;
  object-fit: cover;
  object-position: 65% bottom;
  mask-image: linear-gradient(#0000, #000 14%), linear-gradient(90deg, #000 69%, #0000);
  mask-composite: intersect;
}
.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  content: "";
  background: linear-gradient(0deg, #061629bd, transparent);
}
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "title ." "actions offer" ". offer";
  column-gap: 32px;
  padding-block: clamp(32px, 4vw, 70px) 84px;
}
.hero h1 { grid-area: title; font-size: clamp(43px, 4.3vw, 69px); font-weight: 850; letter-spacing: -.06em; line-height: 1.08; }
.hero-offer {
  grid-area: offer;
  align-self: center;
  text-align: right;
  color: #fff7eb;
  font-size: clamp(42px, 5.4vw, 82px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -.055em;
  text-shadow: 0 2px 12px #061629d9;
}
.hero-offer .hero-highlight { display: block; color: #ffe0ae; font-weight: 900; text-shadow: 0 0 12px #ffc77570; white-space: nowrap; }
.hero-actions { grid-area: actions; align-self: start; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.booking-button { min-height: 54px; padding-inline: 25px; font-weight: 850; }
.hero .booking-button { border-color: #e28086; }
.hero .secondary { min-height: 54px; color: #fff; background: #102538e8; border-color: #cfdae7; }
.hero .secondary:hover { color: var(--ink); background: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero-credit {
  position: absolute;
  z-index: 1;
  inset: auto 18px 17px max(18px, calc((100% - 1200px) / 2));
  text-align: left;
  color: #fff;
  font-size: 12px;
}

.jeonse-section {
  background: radial-gradient(ellipse at 50% 0%, #efd9c7, transparent 72%), #f5efe7;
}
.offer {
  padding: clamp(25px, 4.2vw, 56px);
  border: 1px solid #78252e;
  border-top: 4px solid #d3ad76;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(ellipse at 0% 0%, #7c1925, transparent 76%), #3c101a;
  box-shadow: 0 22px 46px #50232626;
}
.offer-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(18px, 4vw, 50px);
}
.offer-heading .eyebrow { margin-bottom: 9px; color: #f7d6ab; letter-spacing: .045em; }
.offer-heading h2 { font-size: clamp(41px, 6.25vw, 88px); font-weight: 900; }
.offer-loan {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #dab581;
  border-radius: 15px;
  color: #54121d;
  background: linear-gradient(135deg, #fffdf8 24%, #f8e6ca);
}
.offer-loan-label { display: flex; align-items: center; gap: 8px; font-size: clamp(14px, 1.6vw, 19px); font-weight: 800; }
.offer-loan-label svg { width: 20px; height: 20px; flex: none; }
.offer-loan-value { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.offer-loan-limit {
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  background: #701725;
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 800;
}
.offer-loan-amount {
  color: #741222;
  font-size: clamp(42px, 6.5vw, 88px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: .98;
  white-space: nowrap;
}
.offer-loan-unit { margin-left: .22em; font-size: .45em; letter-spacing: -.035em; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 19px 0 0;
}
.offer-card {
  --offer-accent: #3d538b;
  --offer-tint: #eaf0fc;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: clamp(15px, 2vw, 25px) 10px;
  border: 1px solid #edd9c7;
  border-top: 4px solid var(--offer-accent);
  border-radius: 12px;
  text-align: center;
  background: #fffaf3;
}
.offer-card-options { --offer-accent: #a85b1b; --offer-tint: #faecd9; }
.offer-card-guarantee { --offer-accent: #156761; --offer-tint: #e5f3ef; }
.offer-card-rights { --offer-accent: #784e86; --offer-tint: #f2e9f5; }
.offer-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--offer-accent);
  background: var(--offer-tint);
}
.offer-icon svg { width: 26px; height: 26px; }
.offer-card > strong {
  color: var(--brand-dark);
  font-size: clamp(19px, 2.15vw, 31px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.move-in { margin-top: 20px; }
.move-in .button { border-color: #f1c188; color: #42101a; background: #f4d5a6; }
.move-in .button:hover { background: #fff2dc; }
.offer-disclaimer { margin-top: 14px; color: #f1dbcf; font-size: 12px; }
.offer :focus-visible { outline-color: #ffdfae; }

.interior-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.interior-card {
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 5px 18px #3928190a;
}
.interior-photo { display: grid; position: relative; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; container-type: size; }
.interior-photo .crop { position: absolute; width: max(100cqw, calc(100cqh * (var(--photo-ratio)))); transition: scale .4s var(--ease); }
.interior-caption { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; padding: 11px 15px; font-size: 16px; font-weight: 800; }
.interior-caption::before { content: ""; }
.interior-zoom { display: grid; place-items: center; height: 28px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); line-height: 1; }
.interior-card:disabled { cursor: default; }
@media (hover: hover) { .interior-card:enabled:hover .crop { scale: 1.03; } }
.interior .small-note { margin-top: 14px; }
.location { background: var(--paper); }
.visit-intro .text-link { font-size: clamp(17px, 2vw, 22px); }

.detail-main { min-height: 64svh; padding-top: calc(var(--header) + 28px); background: var(--surface); }
.detail-main .section { padding-top: clamp(38px, 5vw, 76px); }
.detail-nav { display: grid; gap: 16px; }
.detail-back { width: fit-content; color: var(--brand-dark); font-size: 14px; font-weight: 750; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.detail-links a:is(:hover, :focus-visible, [aria-current]) { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.footer .detail-links { margin-bottom: 24px; }

.mobile-booking { display: none; }
@media (max-width: 920px) {
  .hero { min-height: clamp(600px, 92vw, 710px); }
  .hero-media > img { width: 100%; height: 75%; object-position: 64% bottom; mask-image: linear-gradient(#0000, #000 15%); }
  .hero-copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "title" "actions" "offer" ".";
    padding-block: 28px 32px;
  }
  .hero h1 { font-size: clamp(36px, 6vw, 52px); }
  .hero-offer { justify-self: end; margin-top: clamp(16px, 3vw, 28px); font-size: clamp(32px, 6vw, 56px); }
  .hero-actions { margin-top: 13px; }
}
@media (max-width: 620px) {
  html { scroll-padding-bottom: calc(102px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .hero { min-height: clamp(590px, 155vw, 690px); }
  .hero-media > img { height: 72%; object-position: 60% bottom; }
  .hero-copy { padding-top: 25px; }
  .hero-actions :is(.button, .booking-button) { flex: 0 1 132px; min-height: 48px; padding-inline: 8px; }
  .hero-credit { inset: auto 12px 10px; font-size: 11px; }
  .offer { padding: 26px 16px 22px; }
  .offer-lead { grid-template-columns: 1fr; gap: 17px; }
  .offer-loan { padding: 17px 15px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .offer-card { gap: 9px; padding: 13px 8px; }
  .offer-icon { width: 40px; height: 40px; }
  .move-in .button { width: 100%; }
  .interior-grid { grid-template-columns: 1fr; gap: 14px; }
  .floating-contact {
    inset: auto 0 0;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    justify-items: stretch;
    gap: 5px 8px;
    padding: 6px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(14px);
  }
  .reservation-status {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 27px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-weight: 800;
  }
  .reservation-message { color: var(--brand-dark); }
  .floating-phone, .mobile-booking { min-height: 47px; justify-content: center; border-radius: 9px; }
  .floating-phone { border: 1px solid #b3c3c9; color: var(--ink); background: #eef4f5; box-shadow: none; }
  .floating-phone:hover { color: #fff; background: var(--ink); translate: none; }
  .floating-phone strong { font-size: 13px; }
  .floating-phone svg { width: 18px; height: 18px; }
  .mobile-booking {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: var(--brand);
    font-size: 15px;
    font-weight: 850;
  }
  .mobile-booking:hover { background: var(--brand-dark); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy.revealed .hero-highlight { animation: keyword-glow 1.35s ease-out; }
  .offer-loan.revealed .offer-loan-amount, .offer-card.revealed > strong { animation: loan-emphasis 1.15s var(--ease); }
}
@keyframes loan-emphasis {
  45% { text-shadow: 0 0 16px #b87c376e; }
}
@keyframes keyword-glow {
  40% { text-shadow: 0 0 9px #ffd79cc9, 0 0 23px #ffc775b5; }
}
@media (prefers-reduced-motion: reduce) {
  .reservation-message { animation: none; }
}

