/* ───────────────────────── Tokens ───────────────────────── */
:root {
  color-scheme: dark;
  --ink: #0c0b09;
  --ink-2: #13110e;
  --bone: #efe9dd;
  --bone-warm: #e6d2b0;
  --bone-dim: rgba(239, 233, 221, .68);
  --bone-faint: rgba(239, 233, 221, .44);
  --line: rgba(239, 233, 221, .14);
  --line-strong: rgba(239, 233, 221, .32);
  --bronze: #c9a06a;
  --bronze-deep: #9a7344;
  --sun: #f0b36d;
  --ok: #b9c79a;
  --hold: #d9a35f;

  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────────────────────── Reset ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--bronze); color: var(--ink); }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200; padding: 10px 14px;
  background: var(--bone); color: var(--ink); transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* Lenis */
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; }

/* ───────────────────────── Type ───────────────────────── */
.wrap { width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .04em; }
.label {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-dim);
}
.label span { color: var(--bronze); letter-spacing: .06em; }
.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.2vw, 92px); line-height: .98; letter-spacing: -.022em;
  margin-top: 26px; text-wrap: balance;
}
.h2 em, .hero__tag em { color: var(--bone-warm); font-weight: 300; }
.body { font-size: 16px; color: var(--bone-dim); max-width: 46ch; margin-top: 26px; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--line { border: 1px solid var(--line-strong); }
.btn--line:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--bronze); }

/* ───────────────────────── Fixed layers ───────────────────────── */
.webgl { position: fixed; left: 0; top: 0; width: 100vw; height: 100lvh; z-index: 0; outline: none; }
.no-webgl .webgl { display: none; }
.no-webgl body { background: radial-gradient(120% 80% at 50% 0%, #2c3550 0%, #6f5a4b 46%, #0c0b09 100%) fixed; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 42%, transparent 58%, rgba(6, 5, 4, .5) 100%);
}
.grain {
  position: fixed; left: -50%; top: -50%; width: 200%; height: 200%; z-index: 2; pointer-events: none;
  background-image: var(--grain); opacity: .055; mix-blend-mode: overlay;
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
main, .footer { position: relative; z-index: 3; }
main { overflow-x: clip; }

/* Map tags & callouts projected from 3D */
.tags { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0;
  transition: opacity .6s var(--ease); will-change: transform, opacity;
}
.tag.is-on { opacity: 1; }
.tag__dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bone); box-shadow: 0 0 0 4px rgba(239, 233, 221, .16);
}
.tag { --stem-k: 1; }
.tag__stem {
  position: absolute; left: -.5px; bottom: 6px; width: 1px; height: calc(var(--stem, 56px) * var(--stem-k));
  background: linear-gradient(to top, rgba(239, 233, 221, .7), rgba(239, 233, 221, .2));
  transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--ease-out);
}
.tag.is-on .tag__stem { transform: scaleY(1); }
.tag--down .tag__stem { bottom: auto; top: 6px; transform-origin: top; background: linear-gradient(rgba(239, 233, 221, .7), rgba(239, 233, 221, .2)); }
.tag__box {
  position: absolute; left: 0; bottom: calc(var(--stem, 56px) * var(--stem-k) + 8px); transform: translateX(calc(-50% + var(--sx, 0px)));
  display: grid; gap: 2px; padding: 8px 12px; white-space: nowrap; text-align: left;
  background: rgba(12, 11, 9, .74); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tag--down .tag__box { bottom: auto; top: calc(var(--stem, 56px) * var(--stem-k) + 8px); }
.tag__box b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.15; }
.tag__box em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.tag--hero .tag__box { border-color: var(--bronze); }
.tag--hero .tag__dot { background: var(--bronze); box-shadow: 0 0 0 5px rgba(201, 160, 106, .25), 0 0 24px rgba(240, 179, 109, .8); }

.tooltip {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; min-width: 180px;
  padding: 10px 14px; background: rgba(12, 11, 9, .86); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.tooltip.is-on { opacity: 1; }
.tooltip b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.2; }
.tooltip span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); }

/* ───────────────────────── Loader ───────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
}
.loader__center { display: grid; justify-items: center; gap: 22px; }
.loader__glyph { width: 74px; height: 74px; color: var(--bronze); animation: spin 9s linear infinite; }
.loader__glyph rect:nth-child(n) { opacity: .5; }
.loader__glyph rect:first-child, .loader__glyph rect:last-child { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__word {
  font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: .42em;
  text-transform: uppercase; padding-left: .42em;
}
.loader__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim);
}
.loader__count { color: var(--bone); font-weight: 500; margin-left: 10px; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(239, 233, 221, .08); }
.loader__bar i { display: block; height: 100%; background: var(--bronze); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--gutter) 20px;
  transition: transform .6s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8, 7, 6, .62), rgba(8, 7, 6, 0));
}
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 11px; }
.brand__glyph { width: 28px; height: 28px; color: var(--bronze); transition: transform 1.2s var(--ease-out); }
.brand:hover .brand__glyph { transform: rotate(-44deg); }
.brand__word { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: .01em; line-height: 1; }
.brand__demo {
  margin-left: 2px; padding: 4px 8px 3px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); line-height: 1;
}
.nav__links { display: flex; gap: 32px; font-size: 13.5px; letter-spacing: .01em; color: var(--bone-dim); }
.nav__links a { position: relative; padding: 6px 0; transition: color .3s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.clock {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.clock [data-clock] { color: var(--bone); }
.clock__sun { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px var(--sun); }
.nav__menu {
  display: none; align-items: center; gap: 12px; height: 46px; padding: 0 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.nav__menu i { position: relative; width: 22px; height: 8px; }
.nav__menu i::before, .nav__menu i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease-out);
}
.nav__menu i::before { top: 0; }
.nav__menu i::after { bottom: 0; }
.nav__menu[aria-expanded="true"] i::before { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i::after { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 19; display: flex; align-items: flex-end;
  padding: 120px var(--gutter) 48px; background: rgba(10, 9, 8, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; width: 100%; }
.menu a {
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 9vw, 56px); line-height: 1.05;
}
.menu a span { font-family: var(--mono); font-size: 11px; color: var(--bronze); letter-spacing: .1em; }

/* Elevator shaft — scroll progress as a floor indicator */
.shaft {
  position: fixed; right: calc(var(--gutter) * .42); top: 50%; z-index: 15;
  height: 44vh; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--bone-faint);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.shaft.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.shaft__track { position: relative; flex: 1; width: 1px; background: var(--line); }
.shaft__fill {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 100%; background: var(--bronze);
  transform-origin: bottom; transform: scaleY(var(--p, 0));
}
.shaft__car {
  position: absolute; left: 50%; bottom: calc(var(--p, 0) * 100%); transform: translate(-50%, 50%);
  padding: 5px 7px; background: rgba(12, 11, 9, .8); border: 1px solid var(--line-strong);
  color: var(--bone); font-size: 10px; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.shaft__car::before { content: "L"; color: var(--bronze); margin-right: 1px; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: grid; grid-template-rows: auto 1fr auto; padding-top: 104px;
}
/* The bottom shade ends at the same darkness the manifesto's shade starts with, so there is no seam. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(62% 30% at 0% 68%, rgba(9, 8, 7, .6), rgba(9, 8, 7, 0) 70%),
    linear-gradient(to top, rgba(9, 8, 7, .55), rgba(9, 8, 7, 0) 38%);
}
.hero > * { position: relative; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 0 38px; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 6px; }
.facts dd { font-family: var(--serif); font-weight: 300; font-size: 23px; line-height: 1; letter-spacing: -.01em; }
.hero__mid { align-self: center; }
.hero__tag {
  font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.7vw, 60px);
  line-height: 1.04; letter-spacing: -.016em; white-space: nowrap;
}
.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: calc(14.2vw + 30px);
}
.hero__lede { max-width: 36ch; font-size: 15px; color: var(--bone-dim); }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim);
}
.hero__scroll i { position: relative; width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--bone);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
.hero > .hero__word { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; pointer-events: none; }
.hero__letters {
  display: block; font-family: var(--serif); font-weight: 200; font-size: 23.5vw; line-height: .74;
  letter-spacing: -.04em; white-space: nowrap; color: rgba(239, 233, 221, .94);
  transform: translateY(9%);
}
.hero__letters .char { display: inline-block; will-change: transform; }

/* ───────────────────────── Manifesto ───────────────────────── */
.manifesto { position: relative; padding: 24vh 0 28vh; }
.manifesto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(9, 8, 7, .55), rgba(9, 8, 7, .62) 22%, rgba(9, 8, 7, .62) 78%, rgba(9, 8, 7, 0));
}
.manifesto__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.manifesto .label { grid-column: 1 / span 2; padding-top: 1.3em; }
.manifesto__text {
  grid-column: 3 / span 9; font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 3.5vw, 60px); line-height: 1.13; letter-spacing: -.014em;
}
.manifesto__text .w { opacity: .26; }
.manifesto__foot {
  grid-column: 3 / span 9; display: flex; flex-wrap: wrap; gap: 20px 64px;
  margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--bone-dim);
}
.manifesto__foot span { display: block; font-family: var(--serif); font-size: 34px; font-weight: 300; color: var(--bone); letter-spacing: -.01em; margin-bottom: 4px; }

/* ───────────────────────── Pinned sections ───────────────────────── */
.pin { position: relative; height: calc(var(--len, 3) * 100svh); }
.pin__stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scrim-left { position: relative; isolation: isolate; }
.scrim-left::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -40vh; bottom: -40vh; left: calc(-1 * var(--gutter) - 2px); width: calc(100% + var(--gutter) + 22vw);
  background: linear-gradient(90deg, rgba(9, 8, 7, .8) 0%, rgba(9, 8, 7, .56) 48%, rgba(9, 8, 7, 0) 100%);
}

/* Architecture */
.arch__grid, .light__grid, .amen__grid, .loc__grid, .materials__grid, .register__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; width: 100%;
}
.arch__copy { grid-column: 1 / span 5; padding: 64px 0 20px; }
.steps { position: relative; height: 440px; margin-top: 28px; }
.step {
  position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .9s var(--ease-out), visibility 0s linear .6s;
}
.step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease) .15s, transform 1.1s var(--ease-out) .15s, visibility 0s; }
.step__num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--bone-faint); }
.step__num b { color: var(--bronze); font-weight: 500; }
.step__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 6.4vw, 112px);
  line-height: .94; letter-spacing: -.028em; margin: 16px 0 24px;
}
.step__body { max-width: 44ch; color: var(--bone-dim); font-size: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 34px; }
.stats li { display: grid; gap: 6px; }
.stats b { font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -.012em; }
.stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-faint); }
.ticks { display: flex; gap: 8px; margin-top: 8px; }
.ticks i { width: 30px; height: 2px; background: var(--line-strong); transition: background .5s var(--ease); }
.ticks i.is-active { background: var(--bronze); }

/* Materials */
.materials { position: relative; padding: 20vh 0 22vh; }
.materials__copy { grid-column: 1 / span 6; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; margin-top: 52px; max-width: 640px; }
.swatch__img { width: 100%; height: auto; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.swatch h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.005em; margin: 16px 0 6px; }
.swatch p { font-size: 14px; color: var(--bone-dim); max-width: 34ch; }

/* Residences */
.resi__layout { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 38vw); }
.resi__stage { position: relative; }
.resi__head { position: absolute; left: var(--gutter); top: 104px; isolation: isolate; }
.resi__head::before {
  content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); top: -120px; width: 46vw; height: 360px; pointer-events: none;
  background: radial-gradient(60% 60% at 20% 40%, rgba(9, 8, 7, .55), rgba(9, 8, 7, 0));
}
.resi__hint {
  position: absolute; left: var(--gutter); bottom: 38px; display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim);
}
.resi__hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 4px rgba(201, 160, 106, .2); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(201, 160, 106, 0); } }
.resi__panel {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 20px;
  padding: 100px calc(var(--gutter) + 16px) 26px 44px;
  background: linear-gradient(90deg, rgba(12, 11, 9, 0), rgba(12, 11, 9, .84) 16%, rgba(12, 11, 9, .92));
  scrollbar-width: none;
}
.resi__panel::-webkit-scrollbar { display: none; }
.resi__head .h2 { font-size: clamp(36px, 3.6vw, 60px); margin-top: 18px; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.tab {
  display: grid; gap: 5px; padding: 12px 12px 11px; text-align: left; border-right: 1px solid var(--line);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.tab:last-child { border-right: 0; }
.tab b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.1; }
.tab span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--bone-faint); }
.tab:hover { background: rgba(239, 233, 221, .04); }
.tab[aria-selected="true"] { background: rgba(239, 233, 221, .08); box-shadow: inset 0 -2px 0 var(--bronze); }
.resi__levels { color: var(--bronze); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.resi__type h3 { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.05; letter-spacing: -.015em; margin: 8px 0 10px; }
.resi__type > p:not(.resi__levels) { color: var(--bone-dim); font-size: 15px; max-width: 48ch; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-faint); }
.specs dd { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-top: 3px; }
.resi__plan { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; align-items: start; }
.plan { aspect-ratio: 1; width: 100%; max-height: 30vh; justify-self: center; }
.lvl__note { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-faint); line-height: 1.6; }
.plan svg { width: 100%; height: 100%; overflow: visible; }
.plan__side { display: flex; flex-direction: column; gap: 14px; }
.lvl { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
.lvl__btn { height: 34px; font-size: 18px; color: var(--bone-dim); transition: background .3s, color .3s; }
.lvl__btn:hover { background: rgba(239, 233, 221, .06); color: var(--bone); }
.lvl__btn:disabled { opacity: .25; cursor: default; background: none; }
.lvl__num { display: grid; justify-items: center; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lvl__num span { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-faint); }
.lvl__num b { font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.unit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 9px 10px; border: 1px solid var(--line); text-align: left;
  font-size: 12.5px; transition: border-color .3s, background .3s;
}
.unit:hover { border-color: var(--line-strong); }
.unit[aria-pressed="true"] { border-color: var(--bronze); background: rgba(201, 160, 106, .1); }
.unit__st { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.unit__st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.unit[data-status="reserved"] .unit__st::before { background: var(--hold); }
.unit[data-status="sold"] { color: var(--bone-faint); }
.unit[data-status="sold"] .unit__st::before { background: transparent; border: 1px solid var(--bone-faint); }
.resi__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: auto; }
@media (min-width: 861px) and (max-height: 860px) {
  .resi__panel { gap: 14px; padding-top: 88px; }
  .resi__type h3 { font-size: 28px; margin: 4px 0 6px; }
  .resi__type > p:not(.resi__levels) { font-size: 14px; }
  .specs { margin-top: 12px; padding-top: 12px; gap: 10px 16px; }
  .specs dd { font-size: 16px; }
  .plan { max-height: 24vh; }
  .unit { padding: 7px 10px; }
  .lvl__btn { height: 30px; }
  .lvl__num b { font-size: 32px; }
}
.resi__price { color: var(--bone-dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Plan drawing */
.plan .pl-plate { fill: rgba(239, 233, 221, .03); stroke: var(--bone); stroke-width: .16; }
.plan .pl-fin { stroke: rgba(239, 233, 221, .35); stroke-width: .08; }
.plan .pl-other { fill: url(#hatch); stroke: rgba(239, 233, 221, .22); stroke-width: .06; }
.plan .pl-unit { fill: rgba(201, 160, 106, .1); stroke: var(--bronze); stroke-width: .14; }
.plan .pl-room { fill: none; stroke: rgba(239, 233, 221, .55); stroke-width: .07; }
.plan .pl-core { fill: url(#hatch); stroke: rgba(239, 233, 221, .5); stroke-width: .08; }
.plan .pl-lift { fill: none; stroke: rgba(239, 233, 221, .45); stroke-width: .06; }
.plan .pl-bay { fill: rgba(201, 160, 106, .28); stroke: var(--bronze); stroke-width: .1; }
.plan .pl-txt { fill: rgba(239, 233, 221, .78); font-family: var(--mono); font-size: .92px; letter-spacing: .06px; text-transform: uppercase; }
.plan .pl-txt--dim { fill: rgba(239, 233, 221, .42); }
.plan .pl-north { stroke: var(--bronze); stroke-width: .1; fill: none; }
.plan .pl-north-t { fill: var(--bronze); font-family: var(--mono); font-size: 1.2px; }
.plan .pl-scale { stroke: rgba(239, 233, 221, .55); stroke-width: .08; }

/* Light */
.light__grid { height: 100%; grid-template-rows: minmax(0, 1fr) auto; padding: 112px var(--gutter) 40px; row-gap: 24px; }
.light__copy { grid-column: 1 / span 5; grid-row: 1; align-self: center; }
.light__clock { grid-column: 9 / span 4; grid-row: 1; align-self: start; justify-self: end; text-align: right; }
.sunpath { width: 200px; height: auto; margin: 0 0 16px auto; overflow: visible; }
.sunpath__arc { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.sunpath__ground { stroke: var(--line-strong); stroke-width: 1; }
.sunpath__sun { fill: var(--sun); filter: drop-shadow(0 0 6px var(--sun)); }
.light__time {
  font-family: var(--serif); font-weight: 200; font-size: clamp(72px, 9.4vw, 160px);
  line-height: .86; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 40px rgba(9, 8, 7, .55);
}
.light .pin__stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none;
  background: linear-gradient(rgba(9, 8, 7, 0), rgba(9, 8, 7, .6));
}
.light__grid { position: relative; z-index: 1; }
.light__phase { margin-top: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.slider { grid-column: 1 / -1; grid-row: 2; user-select: none; -webkit-user-select: none; touch-action: none; }
.slider__track { position: relative; height: 1px; margin: 22px 0 14px; background: var(--line-strong); cursor: grab; }
.slider__track::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; bottom: -18px; }
.slider.is-drag .slider__track { cursor: grabbing; }
.slider__fill { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--v, 0) * 100%); background: var(--bronze); }
.slider__thumb {
  position: absolute; left: calc(var(--v, 0) * 100%); top: 50%; width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--sun);
  box-shadow: 0 0 0 7px rgba(240, 179, 109, .16), 0 0 32px var(--sun);
}
.slider__ticks { display: flex; justify-content: space-between; color: var(--bone-dim); font-size: 10px; letter-spacing: .1em; }
.slider__hint { margin-top: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }

/* Amenities */
.amen__copy { grid-column: 1 / span 5; padding: 40px 0; }
.stops { margin-top: 40px; border-top: 1px solid var(--line); }
.stop {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 20px 0;
  border-bottom: 1px solid var(--line); opacity: .4; transition: opacity .6s var(--ease);
}
.stop.is-active { opacity: 1; }
.stop__lvl { color: var(--bronze); padding-top: 10px; font-size: 11px; letter-spacing: .12em; }
.stop h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.012em; }
.stop p {
  max-width: 42ch; color: var(--bone-dim); font-size: 15px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .7s var(--ease-out), opacity .5s var(--ease), margin .7s var(--ease-out);
}
.stop.is-active p { max-height: 8em; opacity: 1; margin-top: 10px; }

/* Ledger */
.ledger { position: relative; padding: 18vh 0; }
.ledger::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, .86) 20%, rgba(10, 9, 8, .86) 80%, rgba(10, 9, 8, 0));
}
.ledger__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.ledger .label { grid-column: 1 / span 3; padding-top: 26px; }
.ledger__list { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.ledger__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0;
  border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.01em;
}
.ledger__list .mono { font-size: 11px; color: var(--bronze); letter-spacing: .1em; }

/* Location */
.loc__copy { grid-column: 1 / span 4; padding: 40px 0; }
.places { margin-top: 34px; border-top: 1px solid var(--line); }
.places li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line); font-size: 15px; opacity: .45; transition: opacity .5s var(--ease), padding .5s var(--ease-out);
}
.places li.is-on { opacity: 1; }
.places .mono { color: var(--bronze); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* Register */
.register { position: relative; padding: 22vh 0 18vh; }
.register::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 8, 7, .78), rgba(9, 8, 7, .3) 60%, rgba(9, 8, 7, .5));
}
.register__grid { position: relative; align-items: end; }
.register__copy { grid-column: 1 / span 5; }
.register__info { display: grid; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 420px; }
.register__info div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.register__info dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-faint); }
.form {
  grid-column: 7 / span 6; position: relative; padding: 40px 40px 34px;
  background: rgba(14, 13, 11, .74); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.field { position: relative; border-bottom: 1px solid var(--line-strong); margin-bottom: 14px; transition: border-color .3s var(--ease); }
.field:focus-within { border-color: var(--bronze); }
.field input {
  width: 100%; padding: 28px 0 10px; border: 0; background: transparent; outline: none;
  color: var(--bone); font: 400 17px/1.3 var(--sans);
}
.field label {
  position: absolute; left: 0; top: 27px; color: var(--bone-faint); font-size: 16px; pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease-out), color .35s var(--ease);
}
.field label span { font-size: .85em; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.72); color: var(--bronze); }
.field.is-invalid { border-color: #d27b62; }
.chips { border: 0; margin: 26px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-faint); }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 17px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chips input:hover + span { border-color: var(--bone-dim); }
.chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: 3px; }
.form__error { min-height: 1.4em; color: #e09a82; font-size: 11px; letter-spacing: .06em; margin-bottom: 10px; }
.form__submit { width: 100%; height: 54px; }
.form__note { margin-top: 18px; font-size: 12.5px; color: var(--bone-faint); line-height: 1.5; }
.form__done { outline: none; }
.form__done[hidden] { display: none; }
.form__thanks { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 54px); line-height: 1.05; margin-top: 18px; }

/* Footer */
.footer { background: var(--ink); padding: 14vh 0 30px; border-top: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; font-size: 14px; color: var(--bone-dim); }
.footer__cols .label { margin-bottom: 16px; }
.timeline li, .footer__links li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); max-width: 260px; }
.timeline .mono { color: var(--bone); }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--bone); }
.footer__end { display: flex; justify-content: flex-end; align-items: flex-start; }
.ground { display: grid; justify-items: end; gap: 8px; text-align: right; }
.ground span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-faint); }
.ground b { font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; color: var(--bone); transition: color .3s; }
.ground:hover b { color: var(--bronze); }
.footer__word {
  margin: 12vh 0 5vh; text-align: center; font-family: var(--serif); font-weight: 200;
  font-size: 23vw; line-height: .78; letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 221, .24);
}
.credit {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px;
  padding: 34px 0 40px; border-top: 1px solid var(--line);
}
.credit__note { max-width: 54ch; margin-top: 16px; font-size: 15px; color: var(--bone-dim); }
.credit__name { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.015em; margin: 14px 0 20px; }
.credit__links { display: grid; gap: 12px; }
.credit__links li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.credit__links a { font-size: 15px; padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); transition: color .3s var(--ease), border-color .3s var(--ease); }
.credit__links a[href]:hover { color: var(--bronze); border-color: var(--bronze); }
.credit__copy {
  padding: 5px 11px 4px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.credit__copy:hover { color: var(--bone); border-color: var(--bone-dim); }
.footer__legal {
  display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--bone-faint);
}
.footer__legal p:first-child { max-width: 62ch; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto; }
  .clock__phase { display: none; }
  .resi__layout { grid-template-columns: minmax(0, 1fr) minmax(400px, 46vw); }
}

@media (max-width: 860px) {
  .shaft { display: none; }
  .tag { --stem-k: .55; }
  .tag__box { padding: 6px 9px; }
  .tag__box b { font-size: 14px; }
  .tag__box em { font-size: 9px; }
  .nav { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
  .nav__cta, .clock { display: none; }
  .hero { padding-top: 84px; }
  .hero::before {
    background:
      linear-gradient(rgba(9, 8, 7, .62), rgba(9, 8, 7, .2) 34%, rgba(9, 8, 7, 0) 50%),
      linear-gradient(to top, rgba(9, 8, 7, .55), rgba(9, 8, 7, 0) 46%);
  }
  .hero__top { flex-direction: column; gap: 20px; }
  .facts { grid-template-columns: repeat(4, auto); gap: 0 22px; }
  .facts dd { font-size: 19px; }
  .hero__mid { align-self: start; margin-top: 3vh; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: calc(23.5vw + 18px); }
  .hero__letters { font-size: 24.5vw; }

  .manifesto__grid { row-gap: 20px; }
  .manifesto .label, .manifesto__text, .manifesto__foot { grid-column: 1 / -1; }
  .manifesto__foot { gap: 18px 36px; margin-top: 44px; }

  .pin__stage { align-items: flex-end; }
  .arch__copy, .light__copy, .amen__copy, .loc__copy, .materials__copy, .register__copy, .form { grid-column: 1 / -1; }
  .scrim-left::before {
    top: -12vh; bottom: -6vh; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); width: auto;
    background: linear-gradient(rgba(9, 8, 7, 0), rgba(9, 8, 7, .82) 26%, rgba(9, 8, 7, .9));
  }
  .arch__copy { padding: 0 0 30px; }
  .steps { height: 330px; margin-top: 16px; }
  .step__title { font-size: 48px; margin: 10px 0 14px; }
  .step__body { font-size: 15px; }
  .stats { gap: 14px 26px; margin-top: 20px; }
  .stats b { font-size: 24px; }

  .materials { padding: 50vh 0 12vh; }
  .swatches { gap: 22px 14px; margin-top: 34px; }
  .swatch h3 { font-size: 19px; }
  .swatch p { font-size: 13px; }

  .resi.pin { height: auto; }
  .resi .pin__stage { position: relative; height: auto; overflow: visible; display: block; }
  .resi__layout { grid-template-columns: 1fr; grid-template-rows: 50svh auto; height: auto; }
  .resi__panel { height: auto; overflow: visible; }
  .resi__head { top: 66px; }
  .resi__head .h2 { font-size: 26px; margin-top: 8px; }
  .resi__head::before { width: 100vw; height: 220px; top: -80px; }
  .resi__hint { bottom: 12px; font-size: 9.5px; }
  .resi__panel { padding: 18px var(--gutter) 22px; gap: 16px; background: rgba(12, 11, 9, .93); border-top: 1px solid var(--line); }
  .resi__head .h2 { font-size: 30px; margin-top: 10px; }
  .tab { padding: 10px 8px; }
  .tab b { font-size: 14px; }
  .tab span { font-size: 8.5px; }
  .resi__type h3 { font-size: 26px; }
  .specs dd { font-size: 16px; }
  .resi__plan { grid-template-columns: minmax(0, 1fr) 112px; }

  .light__grid { padding: 84px var(--gutter) 26px; grid-template-rows: auto minmax(0, 1fr) auto; }
  .light__clock { grid-column: 1 / -1; grid-row: 1; justify-self: start; text-align: left; }
  .sunpath { display: none; }
  .light__time { font-size: 64px; }
  .light__copy { grid-row: 2; align-self: end; }
  .light__copy .body { font-size: 14.5px; margin-top: 14px; }
  .light__copy .stats { display: none; }

  .amen__copy { padding: 0 0 26px; }
  .stops { margin-top: 20px; }
  .stop { padding: 14px 0; grid-template-columns: 48px minmax(0, 1fr); }

  .ledger .label, .ledger__list { grid-column: 1 / -1; }
  .ledger__list { grid-template-columns: 1fr; margin-top: 10px; }
  .ledger__list li { padding: 16px 0; }

  .loc__copy { padding: 0 0 24px; }
  .loc__copy .body { font-size: 14.5px; margin-top: 14px; }
  .places { margin-top: 18px; }
  .places li { padding: 9px 0; font-size: 14px; }

  .register { padding: 16vh 0 10vh; }
  .register::before { background: rgba(9, 8, 7, .6); }
  .form { margin-top: 44px; padding: 28px 22px 24px; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .credit { grid-template-columns: 1fr; gap: 28px; }
  .footer__end { justify-content: flex-start; }
  .ground { justify-items: start; text-align: left; }
  .footer__legal { flex-direction: column; }
}

@media (max-width: 520px) {
  .loader__foot { flex-direction: column; gap: 8px; }
  .facts { grid-template-columns: repeat(2, auto); gap: 14px 30px; }
  .hero__tag { font-size: 34px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab:nth-child(2) { border-right: 0; }
  .tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
