:root {
  color-scheme: light;
  --paper: #f5f3ea;
  --white: #fffcf2;
  --green: #24382c;
  --green-deep: #26392d;
  --muted: #526051;
  --sand: #dad0b4;
  --line: #dbd9ca;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(22px, 5.2vw, 88px);
  --shell: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--green);
  font: 400 16px/1.55 var(--body);
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #887245; outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .96; }
h2 { font-size: clamp(58px, 7vw, 113px); letter-spacing: -.023em; }
h2 em { font-weight: inherit; }
.shell, .nav-shell { width: min(calc(100% - var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 15px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand img { flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { font: 400 32px/.92 var(--display); }
.brand small { margin-top: 6px; font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 3.3vw, 56px); font-size: 14px; font-weight: 600; }
.main-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 21px; min-height: 49px; padding: 0 18px; font-size: 13px; font-weight: 700; transition: color .2s, background-color .2s; }
.button-dark { color: var(--white); background: var(--green-deep); }
.button-dark:hover { background: #42604a; }
.arrow { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 12px; }
.arrow::before, .arrow::after { position: absolute; content: ''; }
.arrow::before { left: 1px; right: 1px; top: 5px; border-top: 1px solid currentColor; }
.arrow::after { right: 1px; top: 2px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.arrow.diagonal { transform: rotate(-45deg); }
.arrow.up { transform: rotate(-90deg); }

.eyebrow { display: flex; gap: 11px; align-items: center; margin-bottom: 23px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.index-line { width: 26px; border-top: 1px solid currentColor; opacity: .65; }

.section { scroll-margin-top: 22px; }
.project { padding: clamp(69px, 8vw, 124px) 0; }
.intro { display: grid; grid-template-columns: 1.13fr 1fr; gap: clamp(36px, 6vw, 115px); align-items: end; }
.intro-text { max-width: 475px; padding-bottom: 4px; color: var(--muted); font-size: clamp(16px, 1.42vw, 21px); line-height: 1.62; }
.intro-text p + p { margin-top: 16px; }

.selection { background: var(--green-deep); color: var(--white); padding: clamp(31px, 4.1vw, 65px) 0 clamp(52px, 6.5vw, 98px); scroll-margin-top: 0; }
.selection-heading h1 { font-size: clamp(63px, 7.5vw, 124px); letter-spacing: -.03em; }
.selection-heading h1 em { color: #dfcfaa; }
.selection-heading .eyebrow { margin-bottom: 15px; }
.selection-instructions { max-width: 282px; padding-bottom: 3px; }
.selection-instructions h2 { margin-bottom: 8px; font-size: clamp(31px, 3.1vw, 47px); }
.selection-instructions p { color: #eeeadc; font-size: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 34px; }
.visual-selector { min-width: 0; background: #1e3025; }
.floor-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; }
.view-switch { display: flex; gap: 6px; flex: none; }
.view-switch button { min-height: 44px; padding: 7px 18px; border: 1px solid transparent; background: transparent; color: var(--white); font-size: 13px; font-weight: 700; }
.view-switch button:hover { border-color: #a4b2a0; }
.view-switch button[aria-pressed='true'] { border-color: var(--sand); background: var(--sand); color: var(--green); }
.view-switch button:focus-visible { outline-color: var(--white); outline-offset: -3px; }
.site-plan { position: relative; overflow: hidden; background: #40553e; }
.site-plan > img { display: block; width: 100%; height: auto; }
.floor-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.floor-shape { outline: none; }
.floor-shape polygon {
  cursor: pointer;
  pointer-events: all;
  fill: #23372b12;
  stroke: #fff8df80;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill .14s, stroke .14s;
}
.floor-shape.is-highlighted polygon {
  fill: #d9bb60a1;
  stroke: #fff9dc;
  stroke-width: 2;
}
.floor-indicator { margin-inline: 9px; color: #f4ead0; font-size: 14px; font-weight: 600; text-align: right; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 35px; padding: 0; background: transparent; border: 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: #65704a; }

.arrow.back { transform: rotate(180deg); }
.floor-page { padding: clamp(25px, 4vw, 58px) 0 clamp(60px, 8vw, 105px); border-top: 1px solid var(--line); }
.floor-back { margin-bottom: clamp(20px, 3vw, 39px); }
.floor-header { padding-bottom: clamp(22px, 3vw, 41px); }
.floor-header .eyebrow { margin-bottom: 12px; }
.floor-header h1 { font-size: clamp(64px, 8.2vw, 119px); letter-spacing: -.025em; }
.floor-availability { padding: clamp(16px, 3vw, 38px); border: 1px solid var(--line); background: #eeecdf; }
.floor-plan-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 13px 24px; margin-bottom: 18px; }
.floor-plan-heading h2 { margin-bottom: 8px; font-size: clamp(37px, 4.8vw, 62px); }
.floor-plan-heading p { color: var(--muted); }
.floor-plan-note { max-width: 270px; font-size: 13px; }
.unit-map-board {
  border: 1px solid #d8d4c2;
  background-color: #faf8ef;
  background-image: linear-gradient(#e9e5d7 1px, transparent 1px), linear-gradient(90deg, #e9e5d7 1px, transparent 1px);
  background-size: 24px 24px;
}
.unit-map { display: block; width: min(100%, 1020px); height: auto; margin-inline: auto; }
.unit-map-common { fill: #e9e6d6; }
.unit-map-outline { fill: none; stroke: #34493a; stroke-width: 7; }
.unit-map-core { fill: none; stroke: #71806b; stroke-width: 1.6; }
.unit-map-corridor { fill: #526051; font: 600 20px var(--body); }
.unit-zone { outline: none; }
.unit-zone polygon { fill: #e1e8db; stroke: #34493a; stroke-width: 3.5; transition: fill .18s; }
.unit-zone:hover polygon, .unit-zone:focus-visible polygon { fill: #c5d3b7; stroke: #24382c; stroke-width: 5; }
.unit-map-walls { fill: none; stroke: #75866f; stroke-width: 2.1; }
.unit-map-door { fill: none; stroke: #71806b; stroke-width: 1.8; }
.unit-zone circle { fill: #314838; stroke: #f5f3ea; stroke-width: 2; }
.unit-zone text { fill: #fffdf3; font: 700 31px var(--body); }
.unit-zone :is(path, circle, text) { pointer-events: none; }
.unit-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.unit-options a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #9da691; background: var(--paper); font-size: 14px; font-weight: 700; }
.unit-options a:hover { background: #dfe8d8; }

.gallery { padding: clamp(71px, 8vw, 120px) 0; }
.gallery h2 { font-size: clamp(58px, 6.5vw, 106px); }
.gallery-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.gallery-link { display: block; position: relative; overflow: hidden; background: #e0dfcd; }
.gallery-link img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; transition: transform .35s; }
.gallery-link:hover img { transform: scale(1.035); }
.zoom { position: absolute; right: 13px; bottom: 13px; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: var(--green); background: var(--paper); font-size: 24px; line-height: 1; }
.gallery-grid figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 28px; }
.footer-inner > p { color: var(--muted); font-size: 13px; }

dialog { max-width: calc(100vw - 28px); max-height: calc(100dvh - 32px); padding: 0; border: 0; color: var(--green); background: var(--paper); }
dialog::backdrop { background: #131b15c9; }
.close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}
.close-dialog:hover { background: #e8e4d3; }
.unit-card { padding: clamp(18px, 3vw, 42px); border: 1px solid var(--line); background: #eeecdf; }
.unit-card h2 { margin-bottom: clamp(17px, 2.4vw, 30px); font-size: clamp(41px, 5vw, 66px); }
.unit-grid { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(20px, 3vw, 32px); }
.plan-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 294px;
  padding: 18px;
  border: 1px solid var(--line);
  background-color: #f1efe4;
  background-image: linear-gradient(#e8e5d6 1px, transparent 1px), linear-gradient(90deg, #e8e5d6 1px, transparent 1px);
  background-size: 19px 19px;
}
.plan-placeholder strong { margin: 13px 0 3px; font-size: 15px; }
.plan-placeholder small { color: var(--muted); font-size: 13px; }
.plan-icon { position: relative; width: 42px; height: 34px; border: 1px solid #71806b; }
.plan-icon::before, .plan-icon::after { position: absolute; content: ''; }
.plan-icon::before { inset: 0 auto 12px 14px; border-left: 1px solid #71806b; }
.plan-icon::after { inset: 17px 0 auto 14px; border-top: 1px solid #71806b; }
.unit-data { padding: 5px clamp(13px, 2vw, 25px); background: var(--paper); }
.unit-data > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.unit-data > div:last-child { border-bottom: 0; }
.unit-data dt { color: var(--muted); }
.unit-data dd { font-weight: 700; }

.gallery-dialog { width: max-content; max-width: min(calc(100vw - 28px), 1340px); }
.gallery-dialog figure img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 104px); object-fit: contain; }
.gallery-dialog figcaption { min-height: 57px; padding: 16px 122px 16px 17px; font-size: 14px; }
.gallery-controls { position: absolute; bottom: 7px; right: 9px; display: flex; gap: 6px; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 43px; padding: 0; border: 1px solid var(--line); background: var(--paper); font-size: 19px; }
.gallery-controls button:hover { background: #e8e4d3; }

@media (max-width: 700px) {
  .nav-shell { min-height: 66px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 29px; }
  .menu-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 700; }
  .menu-icon { width: 16px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 12px var(--gutter) 23px; background: var(--paper); box-shadow: 0 12px 22px #26392d28; }
  .main-nav.is-open { display: grid; justify-items: start; gap: 7px; }
  .main-nav > a:not(.button) { padding: 9px 0; }
  .selection-heading h1 { font-size: clamp(51px, 11vw, 77px); }
  .selection-heading h1 em { display: block; }
  .selection-instructions { max-width: 340px; }
  .intro { grid-template-columns: 1fr; gap: 23px; }
  .section-heading { display: grid; gap: 14px; margin-bottom: 24px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 25px; }
  .unit-grid { grid-template-columns: 1fr; }
  .plan-placeholder { min-height: 170px; }
}
@media (max-width: 465px) {
  .view-switch button { padding-inline: 10px; }
  .floor-indicator { margin-inline: 4px; font-size: 12px; }
  .unit-options { gap: 6px; }
  .unit-data > div { padding-block: 7px; }
  .footer-inner { justify-content: space-between; gap: 13px; }
  .footer-inner > p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.unit-summary { display: flex; flex-direction: column; gap: 16px; }
.unit-summary .inquiry-trigger { align-self: flex-start; min-width: 160px; border: 0; }

.inquiry-dialog { width: min(600px, calc(100vw - 28px)); padding: clamp(23px, 4vw, 44px); }
.inquiry-dialog .eyebrow { margin: 0 40px 12px 0; }
.inquiry-dialog h2 { margin-bottom: 13px; font-size: clamp(42px, 7vw, 70px); }
.inquiry-dialog #inquiry-note { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.inquiry-dialog label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.inquiry-dialog textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #9da691;
  background: var(--white);
  color: var(--green);
  font: inherit;
}
.inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 15px; margin-top: 15px; }
.inquiry-actions button { border: 0; }
.inquiry-actions [role='status'] { color: var(--muted); font-size: 14px; }
