/* ------------------------------------------------------------------
   Formworks — styles
   Tokens are drawn from the site itself: ink (night sky over a site),
   plaster, kiln-dried timber, copper flashing, slate roof.
------------------------------------------------------------------- */

/* Self-hosted. One variable file covers the whole 100-900 range, so every
   display weight costs a single request. Cabinet Grotesk ships no italic —
   display emphasis is carried by colour instead. */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/CabinetGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0a08;
  --ink-2: #131109;
  --ink-3: #1b1813;
  --plaster: #ede6da;
  --plaster-70: rgba(237, 230, 218, 0.7);
  /* 0.45 measured 3.84:1 on --ink, below the 4.5:1 AA floor for the small
     labels this is used on. 0.55 gives 5.25:1. */
  --plaster-45: rgba(237, 230, 218, 0.55);
  --plaster-12: rgba(237, 230, 218, 0.12);
  --plaster-06: rgba(237, 230, 218, 0.06);
  --timber: #c8935f;
  --copper: #b8683a;
  --slate: #2c2f33;

  --display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--plaster);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {              /* film grain over everything */
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--timber); outline-offset: 4px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
em { font-style: italic; }
/* Display type has no italic to fall back on, so emphasis in a headline is
   carried by colour. Body copy keeps real Instrument Sans italics. */
.hero__title em, .h2 em, .cta__title em { font-style: normal; color: var(--copper); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--plaster-70);
  margin-bottom: 20px;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--timber); box-shadow: 0 0 12px var(--timber); }
.eyebrow--mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--timber); }
.eyebrow--mono::before { content: ""; width: 28px; height: 1px; background: var(--timber); }

.h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.02; letter-spacing: -0.03em;
  max-width: 14ch;
}

/* line-mask reveals */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln__i { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 16px 26px; border-radius: 999px;
  background: var(--plaster); color: var(--ink);
  font-weight: 500; font-size: 15px; letter-spacing: 0.005em;
  transition: transform 0.4s var(--ease-out), background 0.3s;
  will-change: transform;
}
.btn::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper);
  transition: transform 0.4s var(--ease-out);
}
.btn:hover { background: #fff; }
.btn:hover::after { transform: scale(1.6); }
.btn--small { padding: 11px 18px; font-size: 13.5px; }
.btn--light { background: var(--plaster); }
.link { position: relative; white-space: nowrap; font-size: 15px; color: var(--plaster-70); padding-bottom: 2px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.5s var(--ease-out); }
.link:hover { color: var(--plaster); }
.link:hover::after { transform: scaleX(0); transform-origin: right; animation: underline 0.6s var(--ease-out) forwards; }
@keyframes underline { 0% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
}
.loader__mark { display: grid; justify-items: center; gap: 18px; }
.loader__word { display: flex; overflow: hidden; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: 0.22em; font-weight: 300; margin-right: -0.22em; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__rule { width: 0; height: 1px; background: var(--timber); }
.loader__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--plaster-45); opacity: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transform: translateY(-110%);
  transition: transform 0.6s var(--ease-out), background 0.4s, backdrop-filter 0.4s;
}
.nav.is-ready { transform: translateY(0); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(11, 10, 8, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; letter-spacing: 0.01em; }
.nav__mark { width: 28px; height: 28px; color: var(--timber); }
.nav__menu { display: contents; }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--plaster-70); }
.nav__links a { transition: color 0.3s; }
.nav__links a:hover { color: var(--plaster); }

/* hamburger — hidden until the links collapse at 860px */
.nav__toggle {
  display: none;
  appearance: none; background: none; border: 0; padding: 10px; margin: -10px;
  color: var(--plaster); cursor: pointer;
}
.nav__bars { display: grid; gap: 5px; width: 22px; }
.nav__bars i { display: block; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform 0.4s var(--ease-out), opacity 0.25s; }
.nav.is-menu-open .nav__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-menu-open .nav__bars i:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer__inner { position: absolute; inset: 0; will-change: transform; }

.sky {
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(200, 147, 95, 0.22), transparent 60%),
    radial-gradient(90% 60% at 20% 0%, rgba(74, 86, 110, 0.35), transparent 60%),
    radial-gradient(70% 50% at 85% 10%, rgba(120, 90, 70, 0.25), transparent 60%),
    linear-gradient(180deg, #0a0c12 0%, #121116 45%, #1a1712 80%, #0b0a08 100%);
}
.sky__beam {
  position: absolute; inset: -20% -30%;
  background: conic-gradient(from 200deg at 60% -10%, transparent 0deg, rgba(237, 230, 218, 0.06) 14deg, transparent 32deg, transparent 360deg);
  filter: blur(18px);
  animation: beam 18s ease-in-out infinite alternate;
}
@keyframes beam { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.layer--ridge svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62vh; }
.ridge--far { fill: #17161a; }
.ridge--near { fill: #100f0e; }

.layer--grid { opacity: 0.55; }
.layer--grid svg, .layer--house svg { position: absolute; left: 50%; top: 50%; width: min(118vh, 125vw); max-width: none; height: auto; aspect-ratio: 1000/720; transform: translate(-50%, -50%); }
#isogrid line { stroke: rgba(200, 147, 95, 0.16); stroke-width: 0.8; }
.layer--grid .layer__inner { -webkit-mask-image: radial-gradient(60% 55% at 50% 60%, #000 30%, transparent 100%); mask-image: radial-gradient(60% 55% at 50% 60%, #000 30%, transparent 100%); }

#house { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
#house .dim { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; fill: var(--timber); }
#house polygon, #house line { vector-effect: non-scaling-stroke; }

.layer--dust { pointer-events: none; mix-blend-mode: screen; }
.layer--fog { pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 8, 0.6) 85%, var(--ink) 100%); }

.hero__copy {
  position: absolute; left: 0; right: 0; top: 11vh; margin-inline: auto;
  width: min(920px, 100% - 2 * var(--gutter));
  text-align: center; z-index: 5;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8.2vw, 7.4rem);
  line-height: 0.98; letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__lede { max-width: 540px; margin: 26px auto 0; color: var(--plaster-70); font-size: clamp(15px, 1.25vw, 18px); opacity: 0; }
.hero__actions { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 34px; opacity: 0; }

.stages {
  position: absolute; left: var(--gutter); bottom: 8vh; z-index: 6;
  width: 300px; opacity: 0;
}
.stages__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stage { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: baseline; color: var(--plaster-45); transition: color 0.4s; }
.stage__code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.stage__name { font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.stage__desc { grid-column: 2; font-size: 13px; line-height: 1.45; color: var(--plaster-70); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.4s; }
.stage.is-active { color: var(--plaster); }
.stage.is-active .stage__code { color: var(--timber); }
.stage.is-active .stage__desc { max-height: 60px; opacity: 1; margin-top: 4px; margin-bottom: 8px; }
.stage.is-done { color: var(--plaster-70); }
.stages__bar { margin-top: 18px; height: 1px; background: var(--plaster-12); overflow: hidden; }
.stages__fill { display: block; height: 100%; width: 100%; background: var(--timber); transform: scaleX(0); transform-origin: left; }

.build {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 6;
  display: grid; justify-items: center; gap: 14px; opacity: 0;
}
.build__pct { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--plaster); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
.build__track { position: relative; width: 2px; height: 34vh; background: var(--plaster-12); border-radius: 2px; overflow: hidden; }
.build__fill { position: absolute; inset: 0; background: linear-gradient(180deg, #e9c48f, var(--timber)); transform: scaleY(0); transform-origin: bottom; box-shadow: 0 0 14px rgba(200, 147, 95, 0.5); }
.build__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--plaster-45); }
.hero__outro { position: absolute; inset: auto 0 12vh 0; text-align: center; z-index: 5; pointer-events: none; }
.hero__outro-text { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.8rem); letter-spacing: -0.02em; color: var(--plaster); }

.hero__hint {
  position: absolute; left: 0; right: 0; bottom: 7vh; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plaster);
  opacity: 0;
}
.hero__hint-line { width: 52px; height: 1px; background: var(--plaster-12); position: relative; overflow: hidden; }
.hero__hint-line::after { content: ""; position: absolute; inset: 0; background: var(--timber); animation: hint 2.2s var(--ease-out) infinite; }
@keyframes hint { 0% { transform: translateX(-100%); } 60% { transform: translateX(100%); } 100% { transform: translateX(100%); } }

/* ---------- approach ---------- */
.approach { position: relative; padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 160px); background: var(--ink); }
.manifesto {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  line-height: 1.22; letter-spacing: -0.02em;
  max-width: 24ch; font-weight: 300;
}
.manifesto .w { display: inline-block; opacity: 0.16; will-change: opacity; }
.approach__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.detail { margin: 0; color: var(--timber); will-change: transform; padding-top: 4vh; }
.detail__svg { width: 100%; height: auto; overflow: visible; }
.detail__lines path { opacity: 0.9; }
.detail__text text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--plaster-70); }
.detail__text .detail__title { fill: var(--timber); letter-spacing: 0.16em; }
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(64px, 10vh, 120px); padding-top: 40px; border-top: 1px solid var(--plaster-12); }
.fact { display: grid; gap: 12px; }
.fact__k { font-family: var(--display); font-size: 26px; letter-spacing: -0.01em; }
.fact__v { color: var(--plaster-70); font-size: 15px; max-width: 34ch; }

/* generic reveal */
[data-reveal] { opacity: 0; will-change: transform, opacity; }

/* ---------- process: the drawing set ---------- */
.process { position: relative; background: var(--ink-2); }
.process__pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
}
.process__head { display: grid; gap: 22px; align-content: center; }
.process__head .h2 { margin-top: 4px; }
.process__lede { color: var(--plaster-70); max-width: 40ch; font-size: 15.5px; }
.deck { position: relative; width: 100%; height: clamp(340px, 48vh, 460px); margin-top: 176px; perspective: 1200px; }
.sheet {
  position: absolute; inset: 0;
  background: #f1ebe1; color: #1c1812;
  border-radius: 8px;
  box-shadow: 0 60px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  transform-origin: 50% 0%;
  will-change: transform, filter;
}
.sheet__bar { display: flex; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid rgba(28, 24, 18, 0.14); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #5a5147; }
.sheet__body { padding: clamp(24px, 4vh, 40px) 22px 30px; max-width: 56ch; display: grid; gap: 14px; align-content: start; }
.sheet__title { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.08; letter-spacing: -0.02em; }
.sheet__body p { color: #4a423a; font-size: 15px; max-width: 46ch; }
.sheet__fig { position: absolute; right: 22px; bottom: 18px; width: clamp(120px, 20vw, 200px); color: var(--copper); opacity: 0.9; }
.sheet::after {   /* sheet fold shadow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.06) 100%);
}
.deck__progress { width: min(360px, 100%); margin-top: 10px; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--plaster-45); }
.deck__bar { flex: 1; height: 1px; background: var(--plaster-12); overflow: hidden; }
.deck__fill { display: block; height: 100%; width: 100%; background: var(--timber); transform: scaleX(0.2); transform-origin: left; }

/* ---------- homes ---------- */
.homes { padding: clamp(120px, 18vh, 220px) 0; background: var(--ink); }
.homes__head { margin-bottom: clamp(48px, 8vh, 96px); }
.home { display: grid; gap: 22px; }
.home--wide { margin-bottom: clamp(48px, 8vh, 96px); }
.homes__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.homes__pair .home:nth-child(2) { margin-top: clamp(40px, 10vh, 140px); }
.home__media { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--ink-3); aspect-ratio: 16/9; isolation: isolate; }
.homes__pair .home__media { aspect-ratio: 4/5; }
.home__art { position: absolute; inset: -12% 0; will-change: transform; }
.home__art svg, .home__art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.home__media:hover .home__art svg, .home__media:hover .home__art img { transform: scale(1.04); }
.home__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(237, 230, 218, 0.08), inset 0 -120px 160px -80px rgba(11, 10, 8, 0.7), inset 0 0 200px rgba(11, 10, 8, 0.35); border-radius: 6px; pointer-events: none; }
.home__meta { display: grid; gap: 8px; max-width: 52ch; }
.home__title { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; }
.home__spec { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--timber); }
.home__desc { color: var(--plaster-70); font-size: 15.5px; }

/* ---------- materials ---------- */
.materials { padding: clamp(100px, 16vh, 200px) 0 clamp(120px, 18vh, 220px); background: var(--ink-2); overflow: hidden; }
/* Top margin carries the headroom the parallax drift needs: cards rise up to
   ~72px above their resting position, and without the clearance the tallest
   riser cuts into the heading while the section is still well in view. */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2vw, 28px); width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: clamp(96px, 14vh, 168px) auto 0; }
.swatch { margin: 0; display: grid; gap: 14px; will-change: transform; }
.swatch__tex { display: block; aspect-ratio: 3/4; border-radius: 4px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05); transition: transform 0.7s var(--ease-out); }
.swatch:hover .swatch__tex { transform: translateY(-6px) rotate(-1deg); }
.swatch figcaption { display: grid; gap: 2px; }
.swatch b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -0.01em; }
.swatch span { font-size: 13px; color: var(--plaster-45); }
.swatch--concrete .swatch__tex { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 40%), repeating-linear-gradient(180deg, transparent 0 46px, rgba(0, 0, 0, 0.16) 46px 47px), linear-gradient(160deg, #8c877e, #6c675f 60%, #5b564f); }
.swatch--blackbutt .swatch__tex { background: repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px, rgba(255, 255, 255, 0.05) 9px 11px, transparent 11px 20px), linear-gradient(180deg, #c99a63, #a97b4b 55%, #8f6539); }
.swatch--lime .swatch__tex { background: radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.06), transparent 40%), radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 45%), linear-gradient(170deg, #ece4d5, #d8cebb); }
.swatch--zinc .swatch__tex { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 34px), linear-gradient(200deg, #6d727b, #454a52 55%, #33373d); }
.swatch--basalt .swatch__tex { background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05), transparent 45%), repeating-linear-gradient(35deg, rgba(0, 0, 0, 0.14) 0 3px, transparent 3px 17px), linear-gradient(160deg, #3b3e44, #23262b); }

/* ---------- cta ---------- */
.cta { position: relative; padding: clamp(140px, 22vh, 260px) 0 clamp(120px, 18vh, 200px); background: radial-gradient(80% 60% at 50% 100%, rgba(200, 147, 95, 0.18), transparent 60%), var(--ink); overflow: hidden; }
.cta__wrap { text-align: center; display: grid; justify-items: center; }
.cta__title { font-family: var(--display); font-size: clamp(3.4rem, 11vw, 10rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 700; }
.cta__lede { max-width: 54ch; margin-top: 32px; color: var(--plaster-70); }
.cta__actions { display: flex; gap: 28px; align-items: center; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer: title block ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--plaster-12); overflow: hidden; }
.wordmark { display: flex; justify-content: space-between; padding: clamp(40px, 8vh, 96px) var(--gutter) 0; font-family: var(--display); font-size: clamp(2.5rem, 13vw, 15rem); line-height: 0.85; color: var(--plaster); overflow: hidden; }
.wordmark span { display: inline-block; will-change: transform; }
.titleblock { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--plaster-12); margin-top: clamp(24px, 4vh, 48px); }
.tb { display: grid; gap: 6px; padding: 18px var(--gutter); border-right: 1px solid var(--plaster-12); }
.tb:last-child { border-right: 0; }
.tb__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plaster-45); }
.tb__v { font-size: 13.5px; color: var(--plaster-70); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .titleblock { grid-template-columns: repeat(3, 1fr); }
  .tb:nth-child(3n) { border-right: 0; }
  .tb { border-bottom: 1px solid var(--plaster-12); }
  .swatches { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  /* nav collapses to a dropdown hung off the bottom of the bar */
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: grid; justify-items: start;
    padding: 22px var(--gutter) 26px;
    background: rgba(11, 10, 8, 0.94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--plaster-12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  }
  .nav.is-menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__links { display: grid; gap: 0; width: 100%; font-size: 17px; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--plaster-12); }
  .nav .btn--small { display: inline-flex; margin-top: 22px; justify-self: center; }

  /* hero: title full width, then CTAs left and the lede right */
  .hero__copy {
    top: 12vh; text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas: "eyebrow eyebrow" "title title" "actions lede";
    column-gap: 16px;
  }
  .hero__copy .eyebrow { grid-area: eyebrow; }
  .hero__title { grid-area: title; }
  .hero__actions { grid-area: actions; flex-direction: column; align-items: stretch; gap: 24px; margin-top: 26px; }
  .hero__actions .btn { justify-content: center; padding: 14px 16px; font-size: 14px; gap: 8px; }
  .hero__actions .link { text-align: center; }
  .hero__lede {
    grid-area: lede; display: block;
    margin: 26px 0 0; max-width: none;
    font-size: 14px; line-height: 1.45;
  }
  .layer--grid svg, .layer--house svg { width: 140vw; transform: translate(-50%, -44%); }
  .hero__title { font-size: clamp(2.6rem, 11.5vw, 4rem); }
  .stages { width: auto; left: var(--gutter); right: var(--gutter); bottom: 5vh; }
  .stages__list { display: flex; gap: 14px; overflow: hidden; }
  .stage { display: none; }
  .stage.is-active { display: grid; }
  .hero__hint { display: none; }
  .hero__outro { bottom: 26vh; }
  .build { right: 14px; top: 42%; gap: 10px; }
  .build__track { height: 22vh; }
  .build__pct { font-size: 11px; }
  .approach__grid { grid-template-columns: 1fr; gap: 28px; }
  .homes__pair { grid-template-columns: 1fr; }
  .homes__pair .home:nth-child(2) { margin-top: 0; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .process__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 90px; row-gap: 20px; }
  .process__head { gap: 12px; }
  .process__lede { display: none; }
  .approach__row { grid-template-columns: 1fr; }
  .detail { max-width: 420px; padding-top: 0; }
  .deck { height: clamp(340px, 44vh, 460px); margin-top: 150px; }
  .sheet__fig { opacity: 0.35; }
  .titleblock { grid-template-columns: repeat(2, 1fr); }
  .tb:nth-child(3n) { border-right: 1px solid var(--plaster-12); }
  .tb:nth-child(2n) { border-right: 0; }
}

@media (max-width: 520px) {
  /* Phones stack. 380 was the wrong line to draw: real handsets sit at 390 to
     430 CSS px, so almost nothing reached it. Two columns need about 350px of
     content before the CTA and a readable lede stop fighting, and want rather
     more than that to look deliberate — so they start above phone width and
     apply to tablets and landscape instead. Block layout drops the grid areas,
     so children fall back to document order: lede, then actions. */
  .hero__copy { display: block; }
  .hero__lede { margin-top: 22px; font-size: 14.5px; }
  .hero__actions { margin-top: 22px; }
}

/* ---------- static fallback ----------
   Every section on this page starts invisible and is revealed by GSAP, so
   without working scripts the site is a black screen behind a fixed loader.
   Two cases are covered: no scripting at all (html never gets .js), and
   scripting present but a CDN that failed (.no-anim, set in index.html).
   Both get the finished page with no animation. */
:is(html:not(.js), html.no-anim) .loader { display: none; }
:is(html:not(.js), html.no-anim) .nav { transform: none; }
:is(html:not(.js), html.no-anim)
  :is([data-reveal], .hero__lede, .hero__actions, .stages, .hero__hint, .manifesto .w) { opacity: 1; }
:is(html:not(.js), html.no-anim) :is(.ln__i, .wordmark span, [data-reveal]) { transform: none; }
:is(html:not(.js), html.no-anim) .detail__lines path { stroke-dashoffset: 0; }
/* The drawing-set deck is a stack held together by scroll; unstack it. */
:is(html:not(.js), html.no-anim) .process__pin { height: auto; overflow: visible; align-items: start; padding-block: clamp(90px, 12vh, 140px); }
:is(html:not(.js), html.no-anim) .deck { height: auto; margin-top: 40px; perspective: none; }
:is(html:not(.js), html.no-anim) .sheet { position: relative; inset: auto; margin-bottom: 24px; }
:is(html:not(.js), html.no-anim) .sheet:last-child { margin-bottom: 0; }
/* Without scripts the house never builds, so the empty stage list is noise. */
html:not(.js) :is(.stages, .build, .hero__hint) { display: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .sky__beam, .hero__hint-line::after { animation: none; }
  [data-reveal], .hero__lede, .hero__actions, .stages, .hero__hint { opacity: 1; }
  .manifesto .w { opacity: 1; }
  .loader { display: none; }
  .nav { transform: none; }

  /* The drawing-set deck stops being a stack and becomes a list. .deck must go
     auto too: overflow from a fixed-height deck never contributes to an
     ancestor's auto height, so setting only .process__pin { height: auto }
     left sheets 3-5 clipped by its overflow: hidden. */
  .process__pin { height: auto; overflow: visible; align-items: start;
                  padding-block: clamp(90px, 12vh, 140px); }
  .deck { height: auto; margin-top: 40px; perspective: none; }
  .sheet { position: relative; inset: auto; margin-bottom: 24px; }
  .sheet:last-child { margin-bottom: 0; }
}
