/* Evergreen House · Kanak Constructions — v2 "The presentation cover, then the drawing sheets".
   Tokens follow the Kanak brand sheet v1.0 (Sept 2026). See ../../DESIGN.md before editing. */

:root {
  --ink: #14161c;
  --ink-deep: #0b0c10;
  --ink-soft: #1c1f27;          /* raised surfaces on the stage */
  --white: #ffffff;
  --paper: #f4f3f0;
  --steel: #7d8794;
  --steel-text: #5a6371;         /* 5.6:1 on white */
  --steel-line: #d9dde2;
  --steel-on-ink: #aab2bd;       /* steel lifted for small text on ink (7.4:1) */
  --brass: #cbb27a;
  --brass-text: #8a7442;         /* 4.6:1 on white */
  --brass-line: rgba(203, 178, 122, .55);
  --white-70: rgba(255, 255, 255, .72);
  --white-line: rgba(255, 255, 255, .16);

  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --frame: clamp(12px, 1.6vw, 22px);   /* inset of the brass hairline on stages */
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

/* ─── base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--steel) var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
main *, footer * { min-width: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0 0 1em; }
dl, ol, ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--steel); }
::-webkit-scrollbar-thumb:hover { background: var(--brass); }
input, textarea { caret-color: var(--brass-text); }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; z-index: 100; font-weight: 500; }
.skip:focus { left: 8px; }

.h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.28rem); line-height: 1.55; max-width: 58ch; }
.sheet .lead { color: var(--steel-text); }
.sheet p { max-width: 62ch; }

.tbc {
  font-style: normal; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  color: var(--brass-text); border: 1px solid var(--brass-line); padding: 3px 6px 2px; margin-left: 6px; vertical-align: 2px; white-space: nowrap;
}
.tbc--light, .stage .tbc, .facts .tbc { color: var(--brass); border-color: var(--brass-line); }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-weight: 500; font-size: 0.98rem; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--white:hover { background: var(--brass); border-color: var(--brass); }
.btn--brass { color: var(--white); border-color: var(--brass); }
.btn--brass:hover { background: var(--brass); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ink:hover { background: var(--brass-text); border-color: var(--brass-text); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--brass-text); padding-bottom: 3px; border-bottom: 1px solid var(--brass-line); transition: gap .4s var(--ease), border-color .3s; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link:hover { gap: 16px; border-color: var(--brass-text); }

/* ─── nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.nav::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--white-line); opacity: 0; transition: opacity .5s; }
.nav.is-solid { background: rgba(20, 22, 28, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-solid::after { opacity: 1; }
.nav__in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark { width: 46px; }
.nav__word { width: 118px; }
.nav__links { display: flex; gap: 28px; font-size: 0.92rem; font-weight: 500; color: var(--white-70); }
.nav__links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-here { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--white-70); transition: color .3s; }
.nav__phone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.nav__phone:hover { color: var(--brass); }
.nav__burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--white); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; }
.menu__in { display: flex; flex-direction: column; gap: 4px; margin: auto 0; }
.menu__in a { display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; padding: 4px 0; border-bottom: 1px solid var(--white-line); }
.menu__in a span { font-family: var(--text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--brass); }
.menu__in a svg { width: 26px; height: 26px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; }
.menu__cta { color: var(--brass); border-bottom: 0 !important; margin-top: 12px; }
.menu__foot { margin: 0; color: var(--steel-on-ink); font-size: 0.92rem; }

/* ─── stages (ink) ─── */
.stage { position: relative; background: var(--ink); color: var(--white); }
.frame { position: absolute; inset: var(--frame); border: 1px solid var(--brass-line); pointer-events: none; z-index: 3; }
.frame::before, .frame::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--brass); }
.frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* ─── hero ─── */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; z-index: 0; display: grid; grid-template-rows: 1fr auto; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; transform: scale(1.06); will-change: transform; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,12,16,.55) 0%, rgba(11,12,16,.05) 30%, rgba(11,12,16,.08) 55%, rgba(11,12,16,.86) 100%),
  linear-gradient(90deg, rgba(11,12,16,.55) 0%, rgba(11,12,16,0) 55%); }
.hero__body { position: relative; z-index: 2; align-self: end; padding: 0 calc(var(--gutter) + var(--frame)) 0; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__by { display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(16px, 2.4vh, 28px); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.hero__by img { width: 34px; }
.hero__title { font-size: clamp(3.4rem, 10.5vw, 9.6rem); line-height: 0.92; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 600; margin-left: -0.02em; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line > span { display: block; transform: translateY(110%); }
.hero__line:last-child > span { padding-left: 0.9em; }
.hero__sub { max-width: 44ch; margin: clamp(18px, 3vh, 30px) 0 0; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.55; color: var(--white-70); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 3.4vh, 36px); }
.hero__foot { position: relative; z-index: 2; display: flex; align-items: end; gap: 24px; padding: 28px calc(var(--gutter) + var(--frame)) calc(var(--frame) + 22px); max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__status { margin: 0; font-size: 0.86rem; font-weight: 500; color: var(--white-70); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hero__status .dot { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(203,178,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(203,178,122,.55); } 70% { box-shadow: 0 0 0 12px rgba(203,178,122,0); } 100% { box-shadow: 0 0 0 0 rgba(203,178,122,0); } }
.hero__cap { margin: 0 0 0 auto; font-size: 0.82rem; color: var(--steel-on-ink); }
.hero__cue { width: 40px; height: 40px; border: 1px solid var(--brass-line); border-radius: 50%; display: grid; place-items: center; flex: none; transition: border-color .3s; }
.hero__cue span { width: 1px; height: 14px; background: var(--brass); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
.hero__cue:hover { border-color: var(--brass); }
.hero.is-ready .hero__line > span { transition: transform 1.3s var(--ease); transform: none; }
.hero.is-ready .hero__line:nth-child(2) > span { transition-delay: .12s; }
.hero.is-ready .hero__img { transition: transform 2.6s var(--ease); transform: scale(1); }

.after { position: relative; z-index: 2; background: var(--white); box-shadow: 0 -40px 80px rgba(11,12,16,.35); }

/* ─── facts band (white on steel — the brand's primary panel) ─── */
.facts { background: var(--steel); color: var(--white); padding: clamp(28px, 4vw, 44px) var(--gutter); }
.facts__list { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 28px; }
.facts__list div { border-left: 1px solid rgba(255,255,255,.28); padding-left: 16px; }
.facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.9vw, 1.9rem); font-weight: 600; line-height: 1.1; }

/* ─── sheets (white) ─── */
.sheet { position: relative; background: var(--white); padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(56px, 7vw, 90px); }
.sheet + .sheet::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--steel-line); }
.sheet > * { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; }
.sheet__block {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(56px, 7vw, 100px) !important;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--steel-line);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-text);
}
.sheet p.sheet__block { max-width: var(--max); }
.sheet__block span { padding: 12px 18px 11px; border-right: 1px solid var(--steel-line); }
.sheet__block span:first-child { color: var(--ink); background: var(--paper); }
.sheet__block span:nth-child(2) { color: var(--ink); }
.sheet__block span:last-child { border-right: 0; margin-left: auto; color: var(--brass-text); }

/* residence */
.residence { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.residence > .sheet__block { grid-column: 1 / -1; }
.residence__text .h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.notes { list-style: none; margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--ink); }
.notes li { display: flex; align-items: flex-start; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--steel-line); font-size: 1rem; line-height: 1.5; }
.notes li > span { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1; color: var(--brass-text); min-width: 1.4em; padding-top: 2px; }
.notes li .tbc { margin-top: 5px; }
.residence__media { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(14px, 2vw, 28px); align-items: end; }
.pic { margin: 0; position: relative; overflow: hidden; background: var(--paper); }
.pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.pic--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pic--tall { grid-column: 1; aspect-ratio: 3 / 4; }
.residence__spec { grid-column: 2; align-self: end; margin: 0; padding: 0 0 8px; max-width: 34ch; font-size: 0.92rem; line-height: 1.6; color: var(--steel-text); border-top: 1px solid var(--ink); padding-top: 14px; }
.residence__spec strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }
.pic figcaption { position: absolute; left: 0; bottom: 0; padding: 12px 16px; font-size: 0.8rem; color: var(--white); background: linear-gradient(180deg, transparent, rgba(11,12,16,.7)); width: 100%; }

/* day to dusk */
.light { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.light > .sheet__block { grid-column: 1 / -1; }
.light__head .h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.compare { position: relative; aspect-ratio: 1144 / 1375; max-height: 88vh; margin: 0 auto; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--paper); cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__dusk { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--brass); transform: translateX(-.5px); box-shadow: 0 0 0 1px rgba(11,12,16,.25); }
.compare__handle { position: absolute; top: 50%; left: var(--x); width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--brass); background: rgba(20,22,28,.78); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .4s var(--ease); }
.compare__handle svg { width: 24px; height: 24px; fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-dragging .compare__handle { transform: translate(-50%, -50%) scale(.9); }
.compare__tag { position: absolute; bottom: 16px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 10px 6px; }
.compare__tag--day { left: 16px; background: rgba(255,255,255,.9); color: var(--ink); }
.compare__tag--dusk { right: 16px; background: rgba(20,22,28,.82); color: var(--brass); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible ~ .compare__handle, .compare:has(.compare__range:focus-visible) .compare__handle { outline: 2px solid var(--brass); outline-offset: 4px; }

/* plans */
.plans__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.plans__head .lead { margin: 0; }
.plans__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); }
.plans__tabs [role="tab"] { padding: 14px 22px; font-weight: 500; font-size: 0.98rem; color: var(--steel-text); position: relative; transition: color .3s; }
.plans__tabs [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass-text); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.plans__tabs [role="tab"]:hover { color: var(--ink); }
.plans__tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.plans__tabs [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.plans__stage { background: var(--paper); padding: clamp(20px, 3vw, 40px); }
.plan-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.plan { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; animation: fade .7s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.plan__draw {
  position: relative; background: var(--white); border: 1px solid var(--steel-line); padding: clamp(16px, 2.5vw, 32px);
  /* drawing palette: every fill in the SVG reads one of these, so a view can re-tint itself */
  --f01: #ECEEF1; --f01w: #DFE3E8; --f02: #ECEEF1; --f02w: #DFE3E8; --f03: #ECEEF1; --f03w: #DFE3E8;
  --shop: #ECEEF1; --core: #F6F5F2; --sheet: #FFFFFF; --car: #9AA1AB; --glass: #FFFFFF;
  --wall: var(--ink); --ink: #14161C; --dimtext: var(--steel-text); --dimline: #8B929C; --faint: #C9CED5; --grid: #E6E8EC;
  --accent: var(--brass-text); --n01: var(--brass-text); --n02: var(--brass-text); --n03: var(--brass-text);
}
.plan--f01 .plan__draw { --f01: #F1E9D2; --f01w: #E6DBB8; --f02: #F4F5F7; --f02w: #EEF0F3; --f03: #F4F5F7; --f03w: #EEF0F3; }
.plan--f02 .plan__draw { --f02: #F1E9D2; --f02w: #E6DBB8; --f01: #F4F5F7; --f01w: #EEF0F3; --f03: #F4F5F7; --f03w: #EEF0F3; }
.plan--f03 .plan__draw { --f03: #F1E9D2; --f03w: #E6DBB8; --f01: #F4F5F7; --f01w: #EEF0F3; --f02: #F4F5F7; --f02w: #EEF0F3; }
.plan__draw svg { width: 100%; height: auto; display: block; }
.plan__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--steel-line); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-text); }
.plan__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 22px; height: 10px; }
.lg--wall { background: var(--ink); height: 6px; }
.lg--win { border: 1.5px solid var(--ink); background: var(--white); }
.lg--door { width: 16px; height: 16px; border: 1.5px solid var(--brass-text); border-color: var(--brass-text) transparent transparent var(--brass-text); border-radius: 16px 0 0 0; }
.lg--core { background: #E4E6EA; }
.plan__title { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: 8px; }
.plan__sub { color: var(--steel-text); margin-bottom: 18px; }
.plan__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--steel-line); }
.plan__facts div:first-child { border-top: 1px solid var(--ink); }
.plan__facts dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-text); }
.plan__facts dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-align: right; white-space: nowrap; }
.plan__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 22px; }
.plans__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--steel-line); }
.plans__foot p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }

/* progress */
.progress__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.progress__head .lead { margin: 0; }
.stages { position: relative; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding-top: 28px; }
.stages__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--steel-line); }
.stages__line i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left center; transition: transform 2.2s var(--ease); }
.stages.is-in .stages__line i { transform: scaleX(calc((var(--now) - 1) / 5)); }
.stages li { position: relative; }
.stages__mark { position: absolute; top: -28px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1px solid var(--steel); transform: translateY(0); }
.is-done .stages__mark { background: var(--brass); border-color: var(--brass); }
.is-now .stages__mark { border-color: var(--brass-text); border-width: 2px; box-shadow: 0 0 0 5px rgba(203,178,122,.28); }
.stages__name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.stages__when { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--steel-text); }
.is-now .stages__when { color: var(--brass-text); font-weight: 500; }
/* the timeline: a brass rail down the left, one dated entry per site visit, oldest first */
.tl { list-style: none; position: relative; margin-top: clamp(40px, 6vw, 80px); padding-left: 0; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--steel-line); }
.tl__entry { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 48px); padding: 0 0 clamp(40px, 5vw, 72px) 34px; }
.tl__entry::before { content: ""; position: absolute; left: 0; top: 10px; width: 13px; height: 13px; border-radius: 50%; background: var(--brass); }
.tl__entry--video::before { background: var(--white); border: 2px solid var(--brass-text); box-shadow: 0 0 0 5px rgba(203,178,122,.28); }
.tl__when { display: flex; flex-direction: column; }
.tl__day { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; color: var(--ink); }
.tl__month { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin-top: 6px; }
.tl__title { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 6px; }
.tl__cap { color: var(--steel-text); max-width: 62ch; margin-bottom: 16px; }
.tl__media { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, auto); gap: 8px; }
.tl__media a { display: block; position: relative; overflow: hidden; background: var(--paper); }
.tl__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tl__media a:hover img { transform: scale(1.04); }
.tl__hero { grid-column: span 2; grid-row: span 2; aspect-ratio: 4 / 3; }
.tl__thumb { aspect-ratio: 4 / 3; }
.tl__media--1 .tl__hero { grid-column: span 3; aspect-ratio: 3 / 2; }
.tl__media--2 .tl__hero { grid-column: span 2; grid-row: span 1; aspect-ratio: 3 / 2; }
.tl__media--2 .tl__thumb { grid-column: span 2; aspect-ratio: 3 / 2; }
.tl__media--video { grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; }
.tl__video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); display: block; }

/* lightbox */
.lb { border: 0; padding: 0; background: rgba(11,12,16,.94); color: var(--white); width: 100vw; height: 100vh; max-width: none; max-height: none; inset: 0; }
.lb::backdrop { background: transparent; }
.lb__fig { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px clamp(16px, 8vw, 96px) 24px; }
.lb__img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__cap { font-size: 0.9rem; color: var(--white-70); padding-top: 14px; text-align: center; }
.lb__close, .lb__nav { position: absolute; width: 48px; height: 48px; border: 1px solid var(--brass-line); border-radius: 50%; display: grid; place-items: center; color: var(--white); background: rgba(20,22,28,.6); transition: border-color .3s, background .3s; }
.lb__close:hover, .lb__nav:hover { border-color: var(--brass); background: rgba(20,22,28,.9); }
.lb__close svg, .lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lb__close { top: 16px; right: 16px; }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 12px; } .lb__nav--next { right: 12px; }
body.lb-open { overflow: hidden; }

/* location */
.location { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.location > .sheet__block { grid-column: 1 / -1; }
.location__text .h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.near { margin: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--ink); }
.near div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--steel-line); }
.near dt { font-weight: 500; }
.near dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.3rem; white-space: nowrap; }
.location__map { margin: 0; background: var(--paper); border: 1px solid var(--steel-line); }
.location__map svg { width: 100%; height: auto; display: block; }
.map__roads path { fill: none; stroke: var(--white); stroke-width: 10; }
.map__roads .map__minor { stroke-width: 5; }
.map__blocks rect { fill: var(--steel-line); }
.map__pin circle { fill: var(--brass-text); }
.map__pulse { fill: var(--brass); opacity: .35; transform-origin: center; transform-box: fill-box; animation: mappulse 2.6s var(--ease) infinite; }
@keyframes mappulse { 0% { transform: scale(.3); opacity: .5; } 100% { transform: scale(1.1); opacity: 0; } }
.map__label { font-family: var(--display); font-weight: 600; font-size: 22px; text-anchor: middle; fill: var(--ink); }
.location__map figcaption { padding: 12px 16px; font-size: 0.82rem; color: var(--steel-text); border-top: 1px solid var(--steel-line); }

/* developer stage */
.developer { padding: clamp(100px, 14vw, 190px) var(--gutter); overflow: hidden; }
.developer__media { position: absolute; inset: 0; z-index: 0; opacity: .22; }
.developer__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.12); filter: saturate(.7); }
.developer::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ink) 0%, rgba(20,22,28,.6) 40%, rgba(20,22,28,.75) 100%); }
.developer__in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px) clamp(40px, 6vw, 96px); }
.developer__lockup { width: min(240px, 60%); grid-row: 1 / span 3; }
.developer .h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.1; max-width: 22ch; }
.developer .lead { color: var(--white-70); }
.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 12px; border-top: 1px solid var(--white-line); padding-top: 28px; }
.creed dt { font-family: var(--display); font-weight: 600; font-size: 1.45rem; margin-bottom: 8px; color: var(--brass); }
.creed dd { margin: 0; color: var(--white-70); font-size: 0.98rem; line-height: 1.55; }
.developer__meta { grid-column: 2; margin: 0; font-size: 0.86rem; color: var(--steel-on-ink); }

/* enquire */
.enquire { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.enquire > .sheet__block { grid-column: 1 / -1; }
.enquire__text .h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.panel { background: var(--steel); color: var(--white); padding: 8px 0 0; margin-top: clamp(24px, 3vw, 40px); }
.panel__row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.22); transition: background .3s; }
.panel__row:hover { background: rgba(255,255,255,.08); }
.panel__row svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.panel__row span { display: flex; flex-direction: column; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.panel__row strong { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--white); line-height: 1.2; margin-top: 2px; }
.panel__note { margin: 0; padding: 16px 22px; font-size: 0.9rem; color: rgba(255,255,255,.85); }
.form { background: var(--paper); padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; }
.field label, .field legend { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-text); margin-bottom: 8px; padding: 0; }
.field .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--steel-text); margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--steel-line); padding: 14px 16px; border-radius: 0; -webkit-appearance: none; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #737b86; }
.field input:focus, .field textarea:focus { border-color: var(--brass-text); box-shadow: 0 0 0 3px rgba(203,178,122,.25); }
.field textarea { resize: vertical; min-height: 96px; }
.field__err { display: none; margin-top: 6px; font-size: 0.86rem; color: #9a2f1f; }
.field.is-bad input { border-color: #9a2f1f; }
.field.is-bad .field__err { display: block; }
.field--choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field--choice legend { width: 100%; }
.field--choice label { margin: 0; }
.field--choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.field--choice span { display: inline-block; padding: 11px 16px; border: 1px solid var(--steel-line); background: var(--white); font-weight: 500; font-size: 0.95rem; transition: all .3s var(--ease); cursor: pointer; }
.field--choice input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.field--choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.form__actions { display: grid; gap: 10px; }
.form__note { margin: 0; font-size: 0.86rem; color: var(--steel-text); }
.form__done { margin: 0; padding: 14px 16px; background: var(--white); border-left: 1px solid var(--brass); font-size: 0.95rem; }

/* footer */
.foot { padding: clamp(64px, 8vw, 110px) var(--gutter) 40px; }
.foot__in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.foot__lockup { width: 170px; margin-bottom: clamp(36px, 5vw, 64px); }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--white-line); border-bottom: 1px solid var(--white-line); color: var(--white-70); font-size: 0.95rem; line-height: 1.6; }
.foot__cols strong { color: var(--white); font-weight: 500; }
.foot__cols a { transition: color .3s; }
.foot__cols a:hover { color: var(--brass); }
.foot__legal { margin: 28px 0 12px; max-width: 78ch; font-size: 0.82rem; line-height: 1.6; color: var(--steel-on-ink); }
.foot__copy { margin: 0; font-size: 0.82rem; color: var(--steel-on-ink); }

/* ─── numbers: Archivo with lining figures. Cormorant's old-style numerals sit below the line and read oddly in tables ─── */
.num, .facts dd, .plan__facts dd, .near dd, .tl__day, .notes li > span, .panel__row strong, .stages__when, .sheet__block span:first-child, .menu__in a span {
  font-family: var(--text); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
.facts dd { font-weight: 500; font-size: clamp(1.25rem, 1.5vw, 1.5rem); letter-spacing: -0.01em; }
.plan__facts dd, .near dd { font-weight: 500; font-size: 1.05rem; }
.tl__day { font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -0.02em; }
.notes li > span { font-weight: 600; font-size: 0.95rem; padding-top: 4px; }
.panel__row strong { font-weight: 500; font-size: 1.15rem; }
.plan__title, .tl__title, .stages__name, .h2, .hero__title { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ─── the frosted gate: drawings behind glass until the visitor tells us who they are ─── */
.gate { position: relative; }
.gate .plans__stage { transition: filter 1.4s var(--ease), opacity 1.4s var(--ease); }
.gate.is-locked .plans__stage { filter: blur(16px) saturate(.85); opacity: .9; pointer-events: none; user-select: none; }
.gate.is-locked .plans__stage .plan__actions { visibility: hidden; }
.gate__card { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; }
.gate__box {
  width: min(520px, 100%); padding: clamp(24px, 3vw, 40px);
  background: rgba(255,255,255,.78); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--brass-line); box-shadow: 0 30px 80px rgba(20,22,28,.18);
  display: grid; gap: 18px;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.gate.is-unlocking .gate__box { opacity: 0; transform: translateY(-12px) scale(.98); }
.gate__mark { width: 52px; }
.gate__title { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: -6px 0 0; }
.gate__sub { margin: -8px 0 0; color: var(--steel-text); }
.gate__btn { justify-self: start; }
.gate__btn svg { width: 20px; height: 20px; }
.gate__note { margin: 0; font-size: 0.82rem; color: var(--steel-text); }
.gate__fail { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate__done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; margin-bottom: 14px; background: var(--paper); border-left: 1px solid var(--brass); }
.gate__done p { margin: 0; }
.field input[type="tel"].is-ok { border-color: var(--brass-text); }

/* ─── phone dock (Call / WhatsApp), shown after the cover ─── */
.dock { display: none; }
.compare__hint { display: none; }

/* ─── motion helpers ─── */
.js .rise { opacity: 0; transform: translateY(28px); }
.js .rise.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rise.is-in.d1 { transition-delay: .08s; } .js .rise.is-in.d2 { transition-delay: .16s; } .js .rise.is-in.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .hero__line > span, .hero__img, .pic img, .developer__media img { transform: none !important; transition: none !important; }
  .dot, .hero__cue span, .map__pulse { animation: none; }
  .stages.is-in .stages__line i { transition: none; }
}

/* ─── responsive ─── */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .facts__list { grid-template-columns: repeat(3, 1fr); }
  .residence, .light, .location, .enquire { grid-template-columns: 1fr; }
  .plans__head, .progress__head { grid-template-columns: 1fr; }
  .developer__in { grid-template-columns: 1fr; }
  .developer__lockup { grid-row: auto; }
  .developer__meta { grid-column: auto; }
  .creed { grid-template-columns: 1fr; gap: 20px; }
  .stages { grid-template-columns: 1fr; gap: 18px; padding-top: 0; padding-left: 28px; }
  .stages__line { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .stages__line i { top: 0; left: -1px; width: 3px; height: 100%; transform: scaleY(0); transform-origin: center top; }
  .stages.is-in .stages__line i { transform: scaleY(calc((var(--now) - 1) / 5)); }
  .stages__mark { top: 4px; left: -28px; }
  .compare { max-height: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav__phone { display: none; }
  .nav__word { width: 100px; }
  .nav__mark { width: 38px; }
  .hero { min-height: 100svh; }
  .hero__img { object-position: 50% 40%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(11,12,16,.5) 0%, rgba(11,12,16,.1) 35%, rgba(11,12,16,.35) 60%, rgba(11,12,16,.92) 100%); }
  .hero__title { font-size: clamp(2.3rem, 11.6vw, 4.4rem); letter-spacing: 0.05em; }
  .hero__status .sep { display: none; }
  .hero__status > span:last-child { flex: 1 1 100%; }
  .hero__line:last-child > span { padding-left: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__foot { flex-wrap: wrap; gap: 12px 18px; padding-bottom: calc(var(--frame) + 16px); }
  .hero__cap { margin-left: 0; width: 100%; order: 3; }
  .hero__cue { display: none; }
  .facts__list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .residence__media { grid-template-columns: 1fr; }
  .pic--tall { grid-column: 1; aspect-ratio: 4 / 3; }
  .pic--tall img { object-position: 50% 30%; }
  .residence__spec { grid-column: 1; max-width: none; }
  .plans__tabs { overflow-x: auto; }
  .plans__tabs { overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); padding: 0 var(--gutter); }
  .plans__tabs::-webkit-scrollbar { display: none; }
  .plans__tabs [role="tab"] { flex: none; padding: 12px 14px; white-space: nowrap; }
  .plan { grid-template-columns: 1fr; }
  .tl__entry { grid-template-columns: 1fr; padding-left: 26px; padding-bottom: 40px; }
  .tl::before { left: 5px; }
  .tl__entry::before { width: 11px; height: 11px; }
  .tl__when { flex-direction: row; align-items: baseline; gap: 10px; margin-bottom: 8px; }
  .tl__day { font-size: 1.4rem; }
  .tl__media { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tl__hero, .tl__media--1 .tl__hero, .tl__media--2 .tl__hero { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .tl__media--2 .tl__thumb { grid-column: span 3; aspect-ratio: 3 / 2; }
  .tl__media--video { grid-template-columns: 1fr 1fr; }
  .lb__fig { padding: 64px 12px 20px; }
  .lb__nav { display: none; }
  .sheet__block span { padding: 10px 12px 9px; }
  .sheet__block span:last-child { margin-left: 0; width: 100%; border-top: 1px solid var(--steel-line); }
  .foot__cols { grid-template-columns: 1fr; gap: 20px; }
  .foot__lockup { width: 140px; }
  .field--choice span { padding: 10px 12px; }
}

/* ─── phone: the deliberate version ─── */
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 22, 28, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--brass-line);
    transform: translateY(110%); transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-weight: 500; font-size: 1rem; border: 1px solid var(--brass-line); color: var(--white); }
  .dock__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dock__btn--wa { background: var(--white); color: var(--ink); border-color: var(--white); }
  .menu { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* the day-to-dusk divider goes edge to edge and grows a thumb-sized handle */
  .light { gap: 24px; }
  .compare { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-left: calc(-1 * var(--gutter)); aspect-ratio: 1144 / 1375; max-height: 78vh; touch-action: pan-y; }
  .compare__handle { width: 64px; height: 64px; }
  .compare__handle svg { width: 30px; height: 30px; }
  .compare__line { width: 2px; }
  .compare__tag { bottom: 14px; font-size: 0.72rem; }
  .compare__hint { display: block; margin: 12px 0 0; font-size: 0.86rem; color: var(--steel-text); }

  .gate__card { align-items: start; padding: 16px 12px; }
  .gate__box { padding: 22px 18px; gap: 14px; }
  .gate.is-locked .plans__stage { min-height: 640px; }
  /* plan drawings: whole-floor views drop their dimension strings at phone scale; per-flat views are the readable ones */
  .plan__draw { padding: 12px; }
  .plan--full .plan__draw { --dims: none; }
  .plan__facts dd { font-size: 1rem; white-space: normal; }

  /* compact sheet labels */
  .sheet__block span:nth-child(3) { display: none; }
  .sheet { padding-top: clamp(64px, 16vw, 90px); }
  .h2 { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
  .facts { padding: 24px var(--gutter); }
  .facts dd { font-size: 1.15rem; }
  .developer { padding: 90px var(--gutter); }
  .developer__lockup { width: 180px; }
  .foot { padding-bottom: 32px; }
}
