/* ==========================================================================
   Woods Ville — Kachna, Raipur
   "A quieter kind of luxury" — forest editorial
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Palette */
  --pine:        #1C332D;
  --pine-deep:   #14251F;
  --charcoal:    #242824;
  --paper:       #FFFFFF;
  --paper-warm:  #F4F6F3;
  --limestone:   #D8D1C3;
  --sage:        #9EAA98;
  --bronze:      #A6884C;
  --bronze-lift: #CBAE6E;

  /* Ink */
  --ink:         var(--charcoal);
  --ink-soft:    #5A5F58;
  --ink-faint:   #8A8E86;
  --ink-onpine:  #EFEBE1;
  --ink-onpine-soft: rgba(239, 235, 225, 0.66);
  --ink-onpine-faint: rgba(239, 235, 225, 0.42);

  /* Rules */
  --rule:        rgba(36, 40, 36, 0.14);
  --rule-strong: rgba(36, 40, 36, 0.28);
  --rule-onpine: rgba(239, 235, 225, 0.18);

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter:  clamp(1.25rem, 5vw, 5.5rem);
  --measure: 34rem;
  --maxw:    88rem;

  /* Motion — two speeds only */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:  cubic-bezier(0.33, 0.00, 0.10, 1);
  --t-quick:    0.24s;
  --t-control:  0.32s;
  --t-scene:    1.05s;
  --t-arrival:  1.45s;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  line-height: 1.62;
  font-weight: 380;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip, not hidden — hidden would break the pinned layers */
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

/* Focus — visible everywhere, never removed */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-pine :focus-visible { outline-color: var(--bronze-lift); }

::selection { background: var(--bronze); color: var(--paper); }

/* Visually hidden, still read by screen readers */
.u-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link — out of the way until focused */
.skip {
  position: absolute;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { clip-path: none; }

/* --- Layout primitives -------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(5rem, 11vh, 9.5rem); }
.band--tight { padding-block: clamp(3.5rem, 7vh, 6rem); }

.on-pine {
  background: var(--pine);
  color: var(--ink-onpine);
}
.on-pine h1, .on-pine h2, .on-pine h3 { color: var(--ink-onpine); }

/* Chapter label — small caps, used sparingly (one per chapter, never per heading) */
.chapter {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}
.chapter::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.chapter b { font-weight: 600; color: var(--bronze); }
.on-pine .chapter { color: var(--ink-onpine-faint); }
.on-pine .chapter::after { background: var(--rule-onpine); }
.on-pine .chapter b { color: var(--bronze-lift); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.on-pine .lede { color: var(--ink-onpine-soft); }

.h-display { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.5rem); }
.h-chapter { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.25rem); }
.h-sub     { font-size: clamp(1.35rem, 1.1rem + 1.05vw, 1.9rem); }

.caption {
  font-size: 0.75rem;
  letter-spacing: 0.055em;
  color: var(--ink-faint);
  line-height: 1.5;
}
.on-pine .caption { color: var(--ink-onpine-faint); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: var(--paper);
  --btn-bd: var(--pine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--t-control) var(--ease),
    color var(--t-control) var(--ease),
    border-color var(--t-control) var(--ease);
}
.btn:hover { --btn-bg: var(--bronze); --btn-bd: var(--bronze); --btn-fg: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--rule-strong);
}
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--bronze); --btn-bd: var(--bronze); }

.btn--onlight-solid { --btn-bg: var(--pine); --btn-fg: var(--paper); --btn-bd: var(--pine); }

.btn--onimage {
  --btn-bg: rgba(255, 255, 255, 0.94);
  --btn-fg: var(--charcoal);
  --btn-bd: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
}
.btn--onimage:hover { --btn-bg: var(--paper); --btn-fg: var(--pine); --btn-bd: var(--paper); }

.btn--onimage-ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn--onimage-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  --btn-bd: #fff;
}

/* Quiet text link with a rule that grows */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  transition: color var(--t-quick) var(--ease), gap var(--t-quick) var(--ease);
}
.link:hover { color: var(--pine); gap: 0.8rem; }
.on-pine .link { color: var(--bronze-lift); }
.on-pine .link:hover { color: var(--paper); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gutter);
  color: #fff;
  transition: background var(--t-control) var(--ease),
              color var(--t-control) var(--ease),
              box-shadow var(--t-control) var(--ease),
              padding var(--t-control) var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -3rem 0;
  background: linear-gradient(to bottom, rgba(14, 26, 22, 0.58), rgba(14, 26, 22, 0.22) 55%, rgba(14, 26, 22, 0));
  opacity: 1;
  transition: opacity var(--t-control) var(--ease);
  pointer-events: none;
}
/* The nav takes its tone from whatever it is sitting over */
.nav[data-mode="light"] {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
  padding-block: 0.85rem;
}
.nav[data-mode="dark"] {
  background: rgba(20, 37, 31, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule-onpine);
  padding-block: 0.85rem;
}
.nav[data-mode="light"]::before,
.nav[data-mode="dark"]::before { opacity: 0; }

.nav__mark {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nav__mark em { font-style: italic; font-weight: 300; }

.nav__links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin-left: auto;
}
.nav__link {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.82;
  padding-block: 0.4rem;
  transition: opacity var(--t-quick) var(--ease);
}
.nav__link:hover { opacity: 1; }

.nav__cta {
  position: relative;
  z-index: 1;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.6875rem;
  gap: 0; /* the label is one phrase, not two items */
}

.nav__toggle {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0.5rem;
  margin-left: auto;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav__toggle i {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* Mobile drawer */
.navdrawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: var(--gutter);
  background: var(--pine);
  color: var(--ink-onpine);
}
.navdrawer[data-open="true"] { display: flex; }
.navdrawer a {
  font-family: var(--display);
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule-onpine);
}
.navdrawer .btn { margin-top: 2rem; align-self: flex-start; }
.navdrawer__close {
  position: absolute;
  top: 1.15rem;
  right: var(--gutter);
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: inherit;
}

/* ==========================================================================
   1 — Arrival / hero
   Pinned to the viewport; the offer slides up over it like a sheet of paper.
   ========================================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--pine-deep);
  isolation: isolate;
}

.hero__frame {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden; /* the render is on screen from the first frame; the type does the arriving */
}
/* No zoom at rest — the render is shown at its full resolution. The box is a
   touch taller than the screen so the scroll drift never exposes an edge. */
.hero__img {
  position: absolute;
  left: 0;
  top: -6%;
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: 62% 58%;
  will-change: transform;
}

/* Localised contrast only — the render keeps its dynamic range */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 66% 46% at 26% 70%, rgba(10, 20, 16, 0.46), rgba(10, 20, 16, 0.16) 58%, rgba(10, 20, 16, 0) 80%),
    linear-gradient(to top, rgba(10, 20, 16, 0.4) 0%, rgba(10, 20, 16, 0.08) 22%, rgba(10, 20, 16, 0) 34%);
  pointer-events: none;
}
/* Dims as the next chapter covers it */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0B1612;
  opacity: 0;
  pointer-events: none;
}

.hero__inner {
  text-shadow: 0 1px 2px rgba(10, 20, 16, 0.25), 0 2px 28px rgba(10, 20, 16, 0.45);
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3.25rem, 8vh, 5.25rem);
  color: #fff;
  will-change: transform, opacity;
}

.hero__place {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.7rem;
}

/* Wordmark — title case, the second word set in italic */
.wordmark {
  /* a soft halo shaped by the letters themselves, so the facade behind stays untouched */
  text-shadow: 0 2px 6px rgba(10, 20, 16, 0.22), 0 4px 38px rgba(10, 20, 16, 0.5), 0 0 110px rgba(10, 20, 16, 0.38);
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(3.6rem, 1rem + 10.4vw, 11.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.028em;
}
.wordmark em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
/* The mask needs room for ascenders and the italic overhang — nothing is cropped */
.wordmark__line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.08em 0.16em 0;
  margin: -0.12em -0.08em -0.16em 0;
}
.wordmark__line > span {
  display: block;
  transform: translateY(110%);
}
.is-ready .wordmark__line > span {
  transform: translateY(0);
  transition: transform 1.15s var(--ease-soft) 0.2s;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}
.hero__value {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.55rem;
}
.hero__sub {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
  max-width: 38ch;
  margin: 0;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__fade { opacity: 0; }
.is-ready .hero__fade {
  opacity: 1;
  transition: opacity 0.8s var(--ease);
}
.is-ready .hero__place   { transition-delay: 0.1s; }
.is-ready .hero__copy    { transition-delay: 0.75s; }
.is-ready .hero__actions { transition-delay: 0.95s; }

.hero__hint {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(0.9rem, 2vh, 1.25rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.hero__hint::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: hint 3.4s var(--ease) infinite;
}
@keyframes hint {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}
.hero__disclaimer {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(0.9rem, 2vh, 1.25rem);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* Every chapter after the hero is an opaque sheet laid over it.
   :where() keeps this at zero specificity so each section's own colour wins. */
:where(main > section:not(.hero)) {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

/* ==========================================================================
   01 — The offer. Words and figures only.
   ========================================================================== */
.promise {
  box-shadow: 0 -2.5rem 5rem rgba(8, 16, 13, 0.32);
}
.promise__intro {
  padding-block: clamp(5.5rem, 13vh, 9.5rem) clamp(5rem, 12vh, 8.5rem);
}
.promise__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.promise__grid .lede { max-width: 36rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3rem, 7vh, 4.5rem) 0 0;
  border-block: 1px solid var(--rule);
}
.facts div {
  padding: 1.5rem clamp(1.25rem, 2.2vw, 2rem) 1.65rem;
  border-left: 1px solid var(--rule);
}
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--pine);        /* same line, weight and colour as the amenity icons */
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.facts dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  line-height: 1.15;
}
.facts dd small {
  display: block;
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}
.facts .facts__rera {
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.1rem);
  letter-spacing: 0.03em;
  word-break: break-all;
  padding-top: 0.35rem;
}

/* ==========================================================================
   02 — The building: the interactive 3D model
   Full screen. A still until someone asks for the model; then the viewer
   plays the build and the page's own controls float on white acrylic.
   ========================================================================== */
.model {
  position: relative;
  height: 100svh;
  min-height: 44rem;
  overflow: hidden;
  isolation: isolate;
  background: #E9ECE8;
}

.model__stage { position: absolute; inset: 0; }
.model [hidden] { display: none !important; }
.model .woods-ville-viewer .construction-player:not(.is-playing) { display: none; }
.model__head h2 { text-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.8); } /* no stacking context: the build player must sit above the scroll guard */
.model__stage .woods-ville-viewer { background: #E9ECE8; min-height: 0; }

/* Still frame shown before the model is requested */
.model__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 62% 58%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    #E9ECE8;
  transition: opacity 0.9s var(--ease);
}
.model__poster img { width: 100%; height: 100%; object-fit: cover; }
.model[data-state="ready"] .model__poster { opacity: 0; pointer-events: none; }

/* Page-scroll guard: until someone clicks in, wheel and touch scroll the page */
.model__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(clamp(1.25rem, 3vh, 2rem) + 4.4rem);
  background: none;
  border: 0;
  cursor: grab;
  touch-action: pan-y;
}
.model__shield span {
  padding: 0.7rem 1.1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-control) var(--ease), transform var(--t-control) var(--ease);
}
.model__shield:hover span,
.model__shield:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .model__shield span { opacity: 1; transform: none; } }

.model__head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  padding-top: clamp(6.5rem, 13vh, 8rem);
  pointer-events: none;
}
.model__head > * { pointer-events: auto; max-width: 34rem; }
.model__head .chapter { max-width: 31.5rem; }
.model__head h2 em { font-style: italic; font-weight: 300; color: var(--pine); }
.model__lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.model__start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}
.model__size { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-faint); }
.model__status { margin: 0.9rem 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.model__status:empty { display: none; }

/* Once the model is live, the intro steps back to a title */
.model[data-state="ready"] .model__lede,
.model[data-state="ready"] .model__start { display: none; }
.model[data-state="ready"] .model__head h2 { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.9rem); }
.model[data-state="loading"] [data-model-start] { opacity: 0.6; pointer-events: none; }

/* Controls on white acrylic */
.model__bar {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(1.25rem, 3vh, 2rem);
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  max-width: calc(100% - 2 * var(--gutter));
}
.model__group {
  display: flex;
  align-items: center;
  padding: 0 0.35rem;
  border-right: 1px solid var(--rule);
}
.model__label {
  padding: 0 0.6rem 0 0.8rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.model__group button,
.model__replay {
  min-height: 3.4rem;
  padding: 0 0.85rem;
  background: none;
  border: 0;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  transition: color var(--t-quick) var(--ease), background var(--t-quick) var(--ease);
}
.model__group button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.model__group button[aria-pressed="true"] { color: var(--pine); font-weight: 600; }
.model__group button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.8rem;
  height: 2px;
  background: var(--bronze);
}
.model__replay {
  padding: 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pine);
}
.model__replay:hover { background: var(--bronze); }

/* The viewer's own build player, restyled to match */
.model .woods-ville-viewer .construction-player {
  left: auto;
  right: var(--gutter);
  top: clamp(6.5rem, 13vh, 8rem);
  bottom: auto;
  transform: none;
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  font-family: var(--body);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 48px -28px rgba(28, 51, 45, 0.35);
}
.model .woods-ville-viewer .construction-player.is-playing { width: min(24rem, calc(100vw - 2 * var(--gutter))); }
.model .woods-ville-viewer .construction-player > button { display: none; } /* replay lives in our bar */
.model .woods-ville-viewer .construction-caption span { color: var(--bronze); font-weight: 600; letter-spacing: 0.18em; }
.model .woods-ville-viewer .construction-caption strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.model .woods-ville-viewer .construction-controls input { accent-color: var(--pine); }
.model .woods-ville-viewer .construction-player button { font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); }
.model .woods-ville-viewer .model-hotspot { border-color: var(--bronze); background: #fff; }

.model__hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(clamp(1.25rem, 3vh, 2rem) + 4.25rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.model__hint button {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 0;
  background: var(--pine);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.model__note {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 0.5rem;
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

@media (max-width: 62rem) {
  .model__bar { flex-wrap: wrap; justify-content: center; width: calc(100% - 2 * var(--gutter)); }
  .model__group { border-right: 0; border-bottom: 1px solid var(--rule); width: 100%; overflow-x: auto; scrollbar-width: none; }
  .model__group::-webkit-scrollbar { display: none; }
  .model__replay { width: 100%; min-height: 3rem; }
  .model__hint { bottom: auto; top: calc(100% - 18rem); }
  .model .woods-ville-viewer .construction-player { top: auto; right: auto; left: 50%; transform: translateX(-50%); bottom: 14rem; }
}
@media (max-width: 48rem) {
  .model { min-height: 40rem; }
  .model__lede { font-size: 0.9375rem; }
  .model__note { display: none; }
}


/* ==========================================================================
   02 — Inside the gate: a full-screen tour, amenities on white acrylic
   ========================================================================== */
.tour {
  --tour-dur: 3s;
  height: 100svh;
  min-height: 50rem;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--pine-deep);
}

/* Taller than the section so the parallax drift never shows an edge */
.tour__stage { position: absolute; inset: -10% 0; z-index: 0; overflow: hidden; will-change: transform; }
.tour__shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-soft);
}
.tour__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 1.8s var(--ease-soft);
}
.tour__shot[data-active="true"] { opacity: 1; }
.tour__shot[data-active="true"] img { transform: scale(1); }

.tour__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 0% 6%, rgba(10, 20, 16, 0.66), rgba(10, 20, 16, 0.24) 58%, rgba(10, 20, 16, 0) 82%),
    linear-gradient(to bottom, rgba(10, 20, 16, 0.32) 0%, rgba(10, 20, 16, 0) 18%);
}

.tour__layout {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: clamp(6.5rem, 13vh, 8rem);
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
}

.tour__head { grid-row: 1; max-width: 44rem; align-self: start; text-shadow: 0 1px 2px rgba(10, 20, 16, 0.3), 0 2px 26px rgba(10, 20, 16, 0.55); }
.tour__head .chapter { margin-bottom: 1.1rem; }
.tour__head h2 em { font-style: italic; font-weight: 300; }
.tour__now {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.86);
  transition: opacity var(--t-control) var(--ease);
}
.tour__now i { font-style: normal; color: rgba(255, 255, 255, 0.58); }
.tour__now[data-settling="true"] { opacity: 0; }

/* White acrylic — the same material as the homes card */
.acrylic {
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 30px 60px -28px rgba(10, 20, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--ink);
}
.tour .acrylic { background: rgba(255, 255, 255, 0.72); }

/* One slim bar along the bottom: the tabs, and the amenities beneath them.
   The photographs keep the rest of the screen. */
.tour__dock {
  grid-row: 3;
  display: flex;
  flex-direction: column;
}

.tour__tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
}
.tour__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 4.1rem;
  padding: 0.95rem 1.35rem 0.8rem;
  background: none;
  border: 0;
  border-right: 1px solid var(--rule);
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: color var(--t-control) var(--ease), background var(--t-control) var(--ease);
}
.tour__tab em {
  display: inline-block;
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-right: 0.6rem;
  vertical-align: 0.3em;
}
.tour__tab b {
  display: inline;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.15;
  white-space: nowrap;
}
.tour__tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.tour__tab[aria-pressed="true"] { color: var(--pine); background: rgba(255, 255, 255, 0.78); }
.tour__tab[aria-pressed="true"] em { color: var(--bronze); }

.tour__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: rgba(28, 51, 45, 0.1);
  overflow: hidden;
}
.tour__bar i {
  display: block;
  height: 100%;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
}
.tour__tab[aria-pressed="true"] .tour__bar i { animation: tourfill var(--tour-dur) linear forwards; }
.tour[data-paused] .tour__tab[aria-pressed="true"] .tour__bar i { animation-play-state: paused; }
.tour[data-static] .tour__tab[aria-pressed="true"] .tour__bar i { animation: none; transform: scaleX(1); }
@keyframes tourfill { to { transform: scaleX(1); } }

.tour__toggle {
  flex: 0 0 auto;
  width: 4.1rem;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--t-quick) var(--ease);
}
.tour__toggle:hover { color: var(--pine); }
.tour__toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The amenities: twelve small, equal cells in one row */
.amenities { padding: 0; }
.amenities__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.amenities__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.75rem 0.35rem 0.7rem;
  text-align: center;
}
.amenities__grid li + li { border-left: 1px solid var(--rule); }
.amenities__grid svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenities__grid span {
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}


/* ==========================================================================
   03 — The homes. The cutaway runs edge to edge; the details float on it.
   ========================================================================== */
.homes { background: #F3F5F2; }

.homes__stage {
  position: relative;
  height: 100svh;
  min-height: 52rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 58% 60%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    #EEF1ED;
}

.homes__top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: clamp(6.25rem, 13vh, 7.75rem);
  pointer-events: none;
}
.homes__top > * { pointer-events: auto; }
.homes__top .chapter { margin-bottom: 1rem; min-width: 16rem; }
.homes__top > div:first-child { width: min(31.5rem, 100%); }
.homes__title {
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.35rem);
  max-width: 20ch;
}
.homes__top > div:first-child,
.homes__note { text-shadow: 0 0 14px #fff, 0 0 4px #fff, 0 0 28px rgba(255, 255, 255, 0.9); }

/* Floating tabs */
.homes__tabs { display: flex; }
.homes__tab {
  min-width: 10.5rem;
  min-height: 4.5rem;
  padding: 0.9rem 1.4rem;
  background: none;
  border: 0;
  border-right: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background var(--t-control) var(--ease), color var(--t-control) var(--ease);
}
.homes__tab:last-child { border-right: 0; }
.homes__tab b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  white-space: nowrap;
}
.homes__tab i {
  display: block;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
.homes__tab:hover { background: rgba(255, 255, 255, 0.5); color: var(--ink); }
.homes__tab[aria-selected="true"] { background: var(--pine); color: #fff; }
.homes__tab[aria-selected="true"] i { color: var(--bronze-lift); }

.homes__panels { position: absolute; inset: 0; z-index: 1; }

.home {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}
.home[data-active="true"] { opacity: 1; pointer-events: auto; }

/* The cutaway fills the stage, left to right */
.home__view {
  position: absolute;
  top: 13%;
  bottom: -3%;
  left: 4%;
  right: -2%;
}
.home__view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 72% 70%;
  transform: scale(0.985);
  transition: transform 0.9s var(--ease-soft);
}
.home[data-active="true"] .home__view img { transform: scale(1); }

/* Bottom-left dock: the floor plan sits just above the details card */
.home__dock {
  position: absolute;
  left: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter)); /* lines up with the shell */
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  z-index: 2;
  width: min(23rem, 32vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transform: translate3d(-14px, 0, 0);
  transition: transform 0.55s var(--ease-soft);
}
.home[data-active="true"] .home__dock { transform: none; }

/* Frosted, acrylic card */
.home__card {
  width: 100%;
  padding: clamp(1.25rem, 1.8vw, 1.65rem);
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 30px 60px -28px rgba(28, 51, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.home__kicker {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.5rem;
}
.home__name {
  font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.home__name em { font-style: italic; font-weight: 300; }
.home__flats {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.home__cta { width: 100%; margin-top: 0.2rem; min-height: 3rem; }

.metrics {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.metrics th, .metrics td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.metrics tr:first-child th, .metrics tr:first-child td { border-top: 1px solid var(--rule); }
.metrics th {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 50%;
}
.metrics td {
  font-family: var(--display);
  font-size: 1.15rem;
  text-align: right;
}
.metrics td small {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
}
.metrics .metrics__rooms { font-size: 0.875rem; white-space: nowrap; }

/* Picture-in-picture floor plan, on the same acrylic */
.home__pip {
  width: 62%;
  padding: 0.5rem 0.5rem 0;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 48px -24px rgba(28, 51, 45, 0.4);
  cursor: zoom-in;
  text-align: left;
  transition: transform var(--t-control) var(--ease), box-shadow var(--t-control) var(--ease);
}
.home__pip:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -24px rgba(28, 51, 45, 0.5); }
.home__pip img { width: 100%; }
.home__pip span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.1rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}
.home__pip svg, .block__open svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.homes__note {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 2;
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}


/* The two blocks, side by side */
.blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--rule);
}
.block {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding: clamp(6rem, 13vh, 8rem) clamp(1.5rem, 3.5vw, 3.5rem) clamp(2.5rem, 6vh, 3.5rem);
}
.block + .block { border-left: 1px solid var(--rule); }
.block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.block__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.block__sub {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.block__plan {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 0 2.25rem;
  background: none;
  border: 0;
  cursor: zoom-in;
}
.block__plan img { width: 100%; max-height: 62svh; object-fit: contain; }
.block__open {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bronze);
  transition: color var(--t-quick) var(--ease);
}
.block__plan:hover .block__open { color: var(--pine); }
.block__types { list-style: none; margin: 0; padding: 0; }
.block__types li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}
.block__types b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.block__types span { font-size: 0.8125rem; color: var(--ink-faint); }
.blocks__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: #fff;
}

/* Lightbox for plan inspection */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  background: rgba(20, 37, 31, 0.96);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-onpine);
  padding-bottom: 0.75rem;
}
.lightbox__bar b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.lightbox__close {
  background: none;
  border: 1px solid var(--rule-onpine);
  color: inherit;
  min-height: 2.75rem;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox__close:hover { border-color: var(--bronze-lift); color: var(--bronze-lift); }
.lightbox__hint {
  display: none;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-onpine-faint);
  margin-left: auto;
  margin-right: 0.85rem;
}
.lightbox__frame {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox__frame img { max-height: 100%; width: auto; max-width: 100%; }

/* ==========================================================================
   04 — Specifications
   A pale green ground with a faint, desaturated interior behind white cards.
   Gold icons on deep-green tiles lead each card.
   ========================================================================== */
.specs {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(5.5rem, 13vh, 9rem);
  background: #EEF2EE;
}
.specs__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
}
.specs__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  filter: grayscale(1) contrast(1.1);
}

.specs__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vh, 4.5rem);
}
.specs__head h2 em { font-style: italic; font-weight: 300; color: var(--pine); }
.specs .chapter::after { background: rgba(28, 51, 45, 0.16); }

.specs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
}

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.2vw, 2.1rem);
  background: #FFFFFF;
  border: 1px solid rgba(28, 51, 45, 0.08);
  box-shadow: 0 18px 40px -32px rgba(28, 51, 45, 0.4);
  transition: transform var(--t-control) var(--ease),
              box-shadow var(--t-control) var(--ease),
              border-color var(--t-control) var(--ease);
}
.spec::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-soft);
}
.spec:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 136, 76, 0.4);
  box-shadow: 0 30px 56px -30px rgba(28, 51, 45, 0.45);
}
.spec:hover::before { transform: scaleX(1); }

.spec__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.spec__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--pine);
  color: var(--bronze-lift);
  transition: background var(--t-control) var(--ease), color var(--t-control) var(--ease);
}
.spec__icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spec:hover .spec__icon { background: var(--bronze); color: #fff; }
.spec__num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(28, 51, 45, 0.16);
  font-variant-numeric: lining-nums;
}

.spec h3 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(28, 51, 45, 0.12);
}
.spec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.spec li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}
.spec li b {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.2rem;
}

/* cards arrive one after another */
.specs__grid .spec:nth-child(2) { transition-delay: 70ms; }
.specs__grid .spec:nth-child(3) { transition-delay: 140ms; }
.specs__grid .spec:nth-child(4) { transition-delay: 210ms; }
.specs__grid .spec:nth-child(5) { transition-delay: 280ms; }
.specs__grid .spec:nth-child(6) { transition-delay: 350ms; }
.specs__grid .spec.is-in { transition-delay: 0ms; }


/* ==========================================================================
   05 — The address. The map sits straight on the section's own green.
   ========================================================================== */
.address { padding-block: clamp(5.5rem, 13vh, 9rem); }
.address__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.address__map {
  margin: 0;
  position: sticky;
  top: 6.5rem;
}
.address__map img { width: 100%; }
.address__map figcaption { margin-top: 0.75rem; }

.near { margin-top: clamp(2rem, 4vh, 3rem); }
.near__group + .near__group { margin-top: 1.75rem; }
.near__group h4 {
  font-family: var(--body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--bronze-lift);
  margin: 0 0 0.6rem;
}
.near__group ul { margin: 0; padding: 0; list-style: none; }
.near__group li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-onpine);
  font-size: 0.875rem;
}
.near__group li span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--ink-onpine-faint);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ==========================================================================
   06 — The developer
   ========================================================================== */
.developer { padding-block: clamp(5.5rem, 13vh, 9rem); }
.developer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.developer__body { margin-top: 1.5rem; }
.developer__body p { max-width: var(--measure); color: var(--ink-soft); }

.rera {
  margin: 0;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--rule-strong);
  background: #fff;
}
.rera dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.rera dd {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  word-break: break-word;
}
.rera dd:last-child { margin-bottom: 0; }
.rera .rera__link { font-family: var(--body); font-size: 0.9375rem; }

.credits {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
}
.credits h4 {
  font-family: var(--body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}
.credits p { font-size: 0.875rem; color: var(--ink-soft); }


/* ==========================================================================
   8 — Private visit / closing
   ========================================================================== */
.visit {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(4rem, 10vh, 7rem);
  display: flex;
  align-items: center;
  background: var(--pine-deep);
}
.visit > .shell { width: 100%; }
.visit__frame { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.visit__frame img {
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 50% 62%;
  will-change: transform;
}
.visit__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 37, 31, 0.93) 0%, rgba(20, 37, 31, 0.78) 38%, rgba(20, 37, 31, 0.24) 82%);
}

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.visit__text h2 { margin-bottom: 1.25rem; }
.visit__text p { color: rgba(255, 255, 255, 0.78); max-width: 32ch; }

.visit__contacts {
  margin-top: clamp(2rem, 4vh, 2.75rem);
  display: grid;
  gap: 1.1rem;
  max-width: 27rem;
}
.visit__contacts a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  text-decoration: none;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color var(--t-quick) var(--ease);
}
.visit__contacts a:hover { border-color: var(--bronze-lift); }
.visit__contacts b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  letter-spacing: 0.01em;
}
.visit__contacts span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
}

/* Enquiry form */
.enquiry {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  color: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.enquiry h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.enquiry > p { font-size: 0.8125rem; color: var(--ink-faint); margin-bottom: 1.5rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.6rem 0;
  min-height: 2.75rem;
  transition: border-color var(--t-quick) var(--ease);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 3.25rem; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--bronze); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.enquiry .btn { width: 100%; margin-top: 0.5rem; }
.enquiry__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
.enquiry__status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--bronze);
  background: rgba(166, 136, 76, 0.1);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.enquiry__status:empty { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  background: var(--pine-deep);
  color: var(--ink-onpine-soft);
  padding-block: clamp(3rem, 7vh, 5rem) 2rem;
  font-size: 0.8125rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.25rem 3rem;
  padding-bottom: clamp(2rem, 4vh, 3rem);
  border-bottom: 1px solid var(--rule-onpine);
}
.foot h4 {
  font-family: var(--body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-onpine-faint);
  margin: 0 0 0.7rem;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bronze-lift); }
.foot__mark {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink-onpine);
  margin-bottom: 0.75rem;
}
.foot__mark em { font-style: italic; font-weight: 300; color: #FFFFFF; }
.foot__legal {
  padding-top: 1.75rem;
  font-size: 0.6875rem;
  line-height: 1.65;
  color: var(--ink-onpine-faint);
  max-width: 70rem;
}
.foot__legal p + p { margin-top: 0.7rem; }

/* ==========================================================================
   Visit dialog
   ========================================================================== */
dialog.panel {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  margin: auto;
  overflow: auto;
}
dialog.panel::backdrop { background: rgba(20, 37, 31, 0.72); }
.panel__inner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.panel__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: 0;
  padding: 0.65rem;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.panel__close:hover { color: var(--bronze); }

/* ==========================================================================
   Reveals — the image edit is the motion language, not a uniform fade-up
   ========================================================================== */
[data-reveal] { will-change: transform, opacity, clip-path; }

/* Edge wipe — for lifestyle imagery */
[data-reveal="edge"] {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.25s var(--ease-soft);
}
[data-reveal="edge"].is-in { clip-path: inset(0 0 0 0%); }
[data-reveal="edge"][data-from="left"] { clip-path: inset(0 100% 0 0); }
[data-reveal="edge"][data-from="left"].is-in { clip-path: inset(0 0 0 0); }
[data-reveal="edge"][data-from="bottom"] { clip-path: inset(100% 0 0 0); }
[data-reveal="edge"][data-from="bottom"].is-in { clip-path: inset(0 0 0 0); }

/* Small rise — used sparingly, only where text becomes relevant */
[data-reveal="rise"] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease-soft);
}
[data-reveal="rise"].is-in { opacity: 1; transform: none; }

/* Slow crop shift inside a fixed frame */
[data-reveal="crop"] { overflow: hidden; }
[data-reveal="crop"] > img {
  transform: scale(1.07);
  transition: transform 2.4s var(--ease-soft);
}
[data-reveal="crop"].is-in > img { transform: scale(1); }

.stagger > * { transition-delay: 0ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 90ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 180ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 75rem) {
  .tour__tab { padding-inline: 1rem; }
  .tour__tab b { font-size: 1.1rem; }
  .amenities__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .amenities__grid li:nth-child(7) { border-left: 0; }
  .amenities__grid li:nth-child(n + 7) { border-top: 1px solid var(--rule); }
  .home__view { left: 26%; }
}

@media (max-width: 62rem) {
  .promise__grid,
  .specs__head,
  .address__grid,
  .developer__grid,
  .visit__grid { grid-template-columns: minmax(0, 1fr); }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--rule); }

  .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .address__map { position: static; }

  /* Tour: the amenity panel steps below the picture */
  .tour { height: auto; min-height: 0; overflow: visible; }
  .tour__stage, .tour__scrim { height: 100svh; bottom: auto; }
  .tour__layout {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    padding-top: clamp(6rem, 14vh, 8rem);
    padding-bottom: 0;
  }
  .tour__head { min-height: calc(100svh - 14rem); }
  .tour .tour__dock {
    grid-row: 2;
    margin: 0 calc(var(--gutter) * -1);
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
  }
  .amenities { padding: 0.5rem var(--gutter) 1.5rem; }
  .tour__stage { inset: 0 0 auto 0; height: 100svh; }
  .amenities__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .amenities__grid li:nth-child(n) { border-left: 1px solid var(--rule); border-top: 0; }
  .amenities__grid li:nth-child(4n + 1) { border-left: 0; }
  .amenities__grid li:nth-child(n + 5) { border-top: 1px solid var(--rule); }

  /* Homes: the stage flows instead of layering */
  .homes__stage { height: auto; min-height: 0; overflow: visible; padding-bottom: 3rem; }
  .homes__top {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1.5rem;
  }
  .homes__panels { position: static; }
  .home { position: static; display: none; opacity: 1; }
  .home[data-active="true"] { display: grid; gap: 1.25rem; }
  .home__view { position: static; aspect-ratio: 16 / 10; margin-inline: var(--gutter); }
  .home__view { top: auto; bottom: auto; left: auto; right: auto; }
  .home__dock { position: static; width: auto; margin-inline: var(--gutter); transform: none !important; }
  .home__card { background: #fff; }
  .home__pip { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 0.6rem; background: #fff; }
  .home__pip img { width: 42%; }
  .home__pip span { flex: 1; }
  .homes__note { position: static; padding: 1.25rem var(--gutter) 0; }

  .blocks { grid-template-columns: minmax(0, 1fr); }
  .block { min-height: 0; padding-top: 3.5rem; }
  .block + .block { border-left: 0; border-top: 1px solid var(--rule); }

  .visit__frame::after {
    background: linear-gradient(to top, rgba(20, 37, 31, 0.95) 12%, rgba(20, 37, 31, 0.8) 55%, rgba(20, 37, 31, 0.55) 100%);
  }
}

@media (max-width: 48rem) {
  :root { --gutter: 1.25rem; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .u-wide { display: none; }
  .nav { gap: 0.75rem; }
  .nav__cta { margin-left: auto; padding: 0 0.85rem; min-height: 2.5rem; }
  .nav__mark { font-size: 1.2rem; }
  .nav__toggle { padding: 0.5rem 0; margin-left: 0; }

  .hero__img { object-position: 68% 60%; }
  .hero__row { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__hint { display: none; }

  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { padding-left: 0; border-left: 0; }
  .facts__icon { margin-bottom: 0.7rem; }
  .facts div + div { border-top: 1px solid var(--rule); }

  .tour__shot[data-shot="entrance"] img  { object-position: 58% 50%; }
  .tour__shot[data-shot="clubhouse"] img { object-position: 50% 50%; }
  .tour__shot[data-shot="courtyard"] img { object-position: 40% 50%; }
  .tour__shot[data-shot="pool"] img      { object-position: 45% 50%; }
  /* A snapping row; the active tab is kept in view and labels never squeeze */
  .tour__tabs {
    position: relative;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .tour__tab { flex: 0 0 auto; min-width: 0; min-height: 3.9rem; padding: 0.85rem 1.1rem 0.75rem; scroll-snap-align: center; }
  .tour__tab em { display: none; }
  .tour__tab b { font-size: 1rem; }
  .tour__toggle {
    position: sticky;
    right: 0;
    width: 3.25rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border-left: 1px solid var(--rule);
  }
  .amenities__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amenities__grid li:nth-child(n) { border-left: 1px solid var(--rule); border-top: 0; }
  .amenities__grid li:nth-child(3n + 1) { border-left: 0; }
  .amenities__grid li:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .tour__tab em { display: none; }

  .homes__tabs { flex-direction: column; }
  .homes__tab { border-right: 0; border-bottom: 1px solid var(--rule-strong); min-height: 3.75rem; }
  .homes__tab:last-child { border-bottom: 0; }
  .metrics th { width: 46%; }

  .specs__grid { grid-template-columns: minmax(0, 1fr); }
  .spec__num { font-size: 2.1rem; }

  .credits { grid-template-columns: minmax(0, 1fr); }

  /* Plans stay inspectable: pan a full-size drawing rather than squint at a thumbnail */
  .lightbox__frame { place-items: start; padding: 0.5rem; }
  .lightbox__frame img { max-height: none; max-width: none; width: auto; min-width: 46rem; }
  .lightbox__hint { display: inline; }

  .visit__contacts span { display: none; }
}

/* ==========================================================================
   Reduced motion — the full page, still. Pinned layers stay; nothing moves.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__frame, .hero__img { transform: none !important; }
  .wordmark__line > span { transform: none !important; }
  .hero__fade { opacity: 1 !important; }

  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-reveal="crop"] > img { transform: none !important; }

  .visit__frame img, .tour__shot img, .tour__stage { transform: none !important; }
  .tour__now[data-settling="true"] { opacity: 1 !important; }
  .home__card { transition: none; }
  .spec:hover { transform: none; }
  .hero__hint::after { animation: none; transform: scaleX(1); }
}
