/* =====================================================================
   line:999 — styles.css
   Source of truth: line999-context.md (wins over the reference doc).
   Sections: 1 fonts · 2 tokens · 3 base · 4 components · 5 gutter/progress
             6 hero · 7 sections · 8 image slots · 9 motion · 10 responsive
   ===================================================================== */

/* ---------- 1. Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- 2. Tokens ----------
   Option B (preferred): mid-tone ground, darker debossed 999.
   Option C (alternative): light card-grey 999 on graphite. Switch with
   class="theme-c" on <html>, or preview with ?theme=c.               */
:root,
.theme-b {
  --ground: #4A4C52;
  --ground-rgb: 74 76 82;
  --mural: #2B2C30;            /* the 999 mural and the "lıne" row */
  --mural-opacity: 1;
  --surface-1: #3A3B40;
  --surface-2: #232428;
  --surface-2-rgb: 35 36 40;
  --text: #F2F1EE;              /* all reading text */
  --text-2: #D3D1CB;            /* secondary reading text */
  --text-muted: #B9B9B6;        /* large muted headline halves only */
  --faint: #80828A;             /* decorative only: gutter numbers, meta */
  --field-line: #9A9CA3;
  --red: #A61200;               /* bright red: card-true accent */
  --red-dark: #5A0F00;          /* dark red: accent tint, tuned by eye */
  --halftone-dot: #5A0F00;

  /* Layout */
  --nav-h: 72px;
  --gutter-w: 56px;
  --pad: 32px;
  --maxw: 1360px;
  --row-unit: 24px;              /* gutter line height */

  /* Type */
  --font-sans: "Archivo", "Inter Tight", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Textures */
  --grain: url("assets/fx/noise.png");
  --halftone: radial-gradient(circle at 50% 50%, var(--halftone-dot) 0 1.6px, transparent 2.2px) 0 0 / 10px 10px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

.theme-c {
  --ground: #2A2B2F;
  --ground-rgb: 42 43 47;
  --mural: #B7B7B7;
  --mural-opacity: .34;
  --surface-1: #34353A;
  --surface-2: #1C1D20;
  --surface-2-rgb: 28 29 32;
  --text-2: #D6D4CE;
  --text-muted: #BDBCB8;
  --faint: #7A7C83;
  --halftone-dot: #7A1A08;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--ground);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--red); color: var(--text); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--surface-2);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.mono { font-family: var(--font-mono); }
.mono-num { font-family: var(--font-mono); font-size: .8em; color: var(--faint); margin-right: .35em; }
.t-line { display: block; }
.t-muted { color: var(--text-muted); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter-w) + var(--pad) * 2);
  margin-inline: auto;
  padding-left: calc(var(--gutter-w) + var(--pad));
  padding-right: var(--pad);
}

/* Mono eyebrow label: "100 · What we build" */
.label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: var(--row-unit);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
}

/* ---------- 4. Components ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h);
  padding: 0 26px;
  border: 0; border-radius: 999px;
  font: 600 16px/1 var(--font-sans);
  letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--red); color: var(--text); }
.btn--primary:hover { background: #8C0F00; }
.btn--primary:active { background: var(--red-dark); }
.btn--secondary { background: var(--surface-2); color: var(--text); }
.btn--secondary:hover { background: #17181B; }
.btn--ghost { background: var(--surface-1); color: var(--text); }
.btn--ghost:hover { background: #45464C; }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--text); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease-out);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 2px; }

/* Wordmark: mono "line", red colon (decorative), condensed "999" */
.wordmark {
  display: inline-flex; align-items: baseline;
  text-decoration: none; color: var(--text);
  font-size: 22px; line-height: 1;
}
.wordmark__line { font-family: var(--font-mono); font-weight: 700; letter-spacing: -.02em; }
.wordmark__colon { font-family: var(--font-mono); font-weight: 700; color: var(--red); margin: 0 .04em; }
.wordmark__num { font-family: var(--font-sans); font-weight: 800; font-stretch: 70%; font-size: 1.12em; letter-spacing: -.01em; }
.wordmark--lg { font-size: clamp(32px, 4vw, 48px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgb(var(--ground-rgb) / .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
  padding-left: calc(var(--gutter-w) + var(--pad));
  padding-right: var(--pad);
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--text-2);
  transition: color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active .mono-num { color: var(--red); }
.nav .btn { margin-left: 8px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px; border-radius: 999px;
  background: rgb(var(--surface-2-rgb) / .72);
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: 10px; flex: none;
  transform: scale(.6); transition: transform .25s var(--ease-out);
}
.chip:hover { background: var(--surface-2); }
.chip:hover::before, .chip[aria-pressed="true"]::before { transform: scale(1); }

/* ---------- 5. Gutter + progress (decorative) ---------- */
.page { position: relative; }
.gutter {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 6;
  width: var(--gutter-w);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: var(--row-unit);
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.gutter__seg {
  position: absolute; left: 0; right: 0;
  padding-right: 14px;
  white-space: pre;
  opacity: .78;
  transition: opacity .3s, color .3s;
}
.gutter__seg.is-active { opacity: 1; }
.gutter__seg .g-start { transition: color .3s; }
.gutter__seg.is-active .g-start { color: var(--red); font-weight: 700; }
.gutter__seg .g-tilde { opacity: .6; }

.progress {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: 4px; pointer-events: none;
  --p: 0;
}
.progress__track, .progress__fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px;
}
.progress__track { background: var(--red-dark); opacity: .85; }
.progress__fill { 
  background: linear-gradient(to right, color-mix(in srgb, var(--red) 15%, transparent), var(--red));
  transform-origin: 0 50%; transform: scaleX(var(--p)); }
.progress__dot {
  position: absolute; bottom: 0px; left: calc(var(--p) * 100%);
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--red);
}
.progress__label {
  position: absolute; right: 12px; bottom: 12px;
  font-size: 11px; letter-spacing: .04em; color: var(--faint);
  padding: 2px 6px; border-radius: 4px;
  background: rgb(var(--surface-2-rgb) / .6);
}

/* ---------- 6. Hero (001) ---------- */
.hero {
  --nine-w: min(38.75vw, 65svh);          /* +25% */
  --nine-h: calc(var(--nine-w) * 1.7415);           /* 118.5 / 90.5 × 1.33 card stretch */
  --nine-gap: calc(var(--nine-w) * .112);
  --row-h: clamp(36px, 5vw, 84px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background: var(--ground);
}
@supports not (height: 1svh) { .hero { --nine-w: min(38.75vw, 65vh); } }

.hero__mural { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__photo { position: absolute; inset: 0; background: none !important; opacity: .02; mix-blend-mode: luminosity; }

/* Three 9s: bleed off the bottom like the card */
.nines {
  position: absolute; left: 50%; bottom: calc(var(--nine-h) * -.06);
  display: flex; gap: var(--nine-gap);
  transform: translateX(-50%);
  height: var(--nine-h);
}
.nine-wrap { width: var(--nine-w); height: var(--nine-h); will-change: transform; }
.nine { width: 100%; height: 100%; overflow: visible; opacity: var(--mural-opacity); transform-origin: 50% 100%; }
.nine__stroke { fill: none; stroke: var(--mural); stroke-width: 12.8; stroke-linecap: square; stroke-miterlimit: 2; }
.nine__fill { fill: var(--mural); }
.ht ellipse { fill: var(--halftone-dot); }
.hero:not(.fx-halftone) .nine__ht { display: none; }
.hero:not(.fx-parallax) .nine-wrap { transform: none !important; }

/* Experiments (off by default) */
.hero.fx-outline .nine-wrap--3 .nine__fill,
.hero.fx-outline .nine-wrap--3 .nine__ht { display: none; }
.hero.fx-outline .nine-wrap--3 .nine__stroke { stroke-width: 2.2; }
.hero.fx-blend .nines { mix-blend-mode: multiply; }

/* The card's "lıne" row, red bar and dot */
.row {
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: var(--row-h); overflow: hidden;
}
.row__svg { height: 100%; width: auto; max-width: none; }
.row--top { z-index: 1; }
.row__words { fill: var(--mural); opacity: var(--mural-opacity); }
.theme-c .row__words { opacity: .5; }
.row__track { fill: var(--red); fill-opacity: .5; transform-box: fill-box; transform-origin: 0 50%; }
.row__dot { fill: var(--red); transform-box: fill-box; transform-origin: 50% 50%; }

/* Counter */
.counter {
  display: none;
  position: absolute; left: 50%; bottom: 0;
  font-family: var(--font-mono); font-weight: 700;
  font-size: calc(var(--nine-w) * 1.853);
  line-height: .74;
  letter-spacing: 0;
  color: var(--mural);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%) scaleY(1.2);
  transform-origin: 50% 100%;
  padding-bottom: calc(var(--nine-h) * .06);
  white-space: nowrap;
  user-select: none;
}

/* Scrim + vignette for legibility */
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero.fx-scrim .hero__scrim {
  background:
    linear-gradient(90deg, rgb(var(--ground-rgb) / .62) 0%, rgb(var(--ground-rgb) / .28) 46%, rgb(var(--ground-rgb) / 0) 72%),
    linear-gradient(0deg, rgb(var(--ground-rgb) / .55) 0%, rgb(var(--ground-rgb) / 0) 30%);
}
.theme-c .hero.fx-scrim .hero__scrim {
  background:
    linear-gradient(90deg, rgb(var(--ground-rgb) / .9) 0%, rgb(var(--ground-rgb) / .7) 50%, rgb(var(--ground-rgb) / .2) 80%),
    linear-gradient(0deg, rgb(var(--ground-rgb) / .7) 0%, rgb(var(--ground-rgb) / 0) 35%);
}
.hero.fx-vignette::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 40% 35%, transparent 55%, rgb(0 0 0 / .32) 100%);
}
.hero.fx-grain::after {
  content: ""; position: absolute; inset: -50%; z-index: 7; pointer-events: none;
  background: var(--grain) repeat 0 0 / 160px 160px;
  opacity: .1;
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative; z-index: 4;
  width: 100%;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 40px) var(--pad) calc(var(--row-h) + 28px) calc(var(--gutter-w) + var(--pad));
  max-width: calc(var(--maxw) + var(--gutter-w) + var(--pad) * 2);
  margin-inline: auto;
}
.hero__corner {
  position: absolute; top: calc(var(--nav-h) + 14px); right: var(--pad);
  font-size: 12px; letter-spacing: .06em; color: var(--faint); text-transform: uppercase;
}
.hero__content { margin-block: auto; padding-block: 24px; }
.hero__main > .label { margin-bottom: 20px; }
.hero__title {
  font-weight: 600;
  font-size: clamp(40px, 7vw, 129px);
  line-height: .96;
  letter-spacing: -.04em;
  max-width: 14em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: clamp(20px, 2.2vw, 32px);
  max-width: 34em;
  font-size: clamp(17px, 1rem + .35vw, 21px);
  line-height: 1.45;
  color: var(--text-2);
}
.hero__main .btn-row { margin-top: clamp(24px, 2.6vw, 36px); }

.lead { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 14px; justify-items: start; }
.lead__q { font-size: 17px; color: var(--text-2); }
.lead__q .mono { color: var(--text); font-size: .92em; margin-right: .4em; }
.lead .text-link { font-size: 15px; }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 24px;
}
.hero__proof { font-size: 15px; color: var(--text-2); max-width: 46em; }
.hero__proof strong { color: var(--text); font-weight: 600; }
.hero__meta {
  display: flex; gap: 24px; flex: none;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}

/* ---------- 7. Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 160px); overflow: hidden; }
.section > .wrap { position: relative; z-index: 2; }
.section__head { max-width: 50rem; margin-bottom: clamp(40px, 5.5vw, 80px); }
.section__head .label { margin-bottom: 18px; }
.h2 {
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(46px, 8.2vw, 144px); line-height: .94; letter-spacing: -.045em; }
.section__head--xl { max-width: none; }
.section__head--xl .h2 { max-width: 11em; }
.section__sub {
  margin-top: 20px; max-width: 36em;
  font-size: clamp(17px, 1rem + .3vw, 20px); line-height: 1.5; color: var(--text-2);
}
.section__head--xl .btn-row { margin-top: 32px; }

/* 100 · Bento */
.section--build { background: var(--ground); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}
.cell {
  position: relative; overflow: hidden;
  grid-column: span 4;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--surface-1);
  border-radius: 2px;
  transition: transform .4s var(--ease-out);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.cell:hover { transform: scale(1.012); }
.cell__body { position: relative; z-index: 2; padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 12px; justify-items: start; }
.cell__body .label { margin-bottom: 6px; }
.cell__title { font-size: clamp(24px, 2.1vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; max-width: 14em; }
.cell__title--lg { font-size: clamp(32px, 3.8vw, 60px); line-height: 1; letter-spacing: -.035em; max-width: 11em; }
.cell__text { color: var(--text-2); max-width: 34ch; }
.cell__note { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.cell__cta {
  margin-top: 8px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  display: inline-flex; gap: .45em; align-items: center;
}
.cell__cta span { transition: transform .25s var(--ease-out); }
.cell__cta:hover span { transform: translateX(4px); }
.cell__cta:hover { text-decoration: underline; text-underline-offset: 4px; }

.cell--lead { grid-column: span 7; grid-row: span 2; min-height: 560px; background: var(--surface-2); }
.cell--red { grid-column: span 5; background: var(--red); }
.cell--red .label, .cell--red .cell__text { color: var(--text); }
.cell--red + .cell { grid-column: span 5; }
.cell--dark { background: var(--surface-2); }
/* "Minimap" of a code file in the lead cell: decorative, one hot red line */
.minimap {
  position: absolute; z-index: 1; top: clamp(24px, 2.6vw, 40px); right: clamp(24px, 2.6vw, 40px);
  width: min(48%, 340px); height: auto; fill: var(--surface-1); pointer-events: none;
}
.minimap .mm-hot { fill: var(--red); }
.cell--lead:hover .minimap .mm-hot { animation: mm-pulse 1.2s ease-in-out infinite alternate; }
@keyframes mm-pulse { to { opacity: .45; } }
.cell--lead .cell__text { font-size: clamp(17px, 1rem + .25vw, 19px); }
.cell__photo { position: absolute; inset: 0; z-index: 0; }
.cell__photo img { transition: transform .4s var(--ease-out); }
.cell:hover .cell__photo img { transform: scale(1.03); }

/* Light texture on cards 102-106 (the lead card keeps its photo slot).
   Static, behind the text, strongest top-right where the cards are emptiest. */
#dream-tool::before, #dream-web::before, #dream-sheet::before,
#dream-portal::before, #dream-dash::before {
  opacity: 0.4;
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(205deg, #000 0%, rgb(0 0 0 / .4) 40%, transparent 70%);
          mask-image: linear-gradient(205deg, #000 0%, rgb(0 0 0 / .4) 40%, transparent 70%);
}
/* 102 red: fine diagonal hatch + grain */
#dream-tool::before {
  background:
    var(--grain) 0 0 / 160px 160px,
    repeating-linear-gradient(135deg, rgb(0 0 0 / .16) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
}
/* 103 web: plain dot grid, like a wireframe canvas */
#dream-web::before {
  background: radial-gradient(circle, rgb(242 241 238 / .22) 0 1.2px, transparent 1.6px) 0 0 / 20px 20px;
}
/* 104 automation: spreadsheet gridlines */
#dream-sheet::before {
  background:
    linear-gradient(to right, rgb(242 241 238 / .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, rgb(242 241 238 / .07) 1px, transparent 1px) 0 0 / 44px 44px;
}
/* 105 portal: the brand halftone, as on the stat cards */
#dream-portal::before { background: var(--halftone); }
/* 106 dashboards: horizontal scanlines + grain */
#dream-dash::before {
  background:
    var(--grain) 0 0 / 160px 160px,
    repeating-linear-gradient(to bottom, rgb(242 241 238 / .06) 0 1px, transparent 1px 5px);
}

/* The brand dot marks a picked dream card */
.cell::after {
  content: ""; position: absolute; top: 22px; right: 22px; z-index: 3;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); transform: scale(0);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.cell--red::after { background: var(--text); }
.cell.is-picked::after { transform: scale(1); }

/* 300 · Steps */
.section--process { background: var(--surface-1); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.step { position: relative; padding-top: 40px; display: grid; gap: 14px; align-content: start; }
/* The card's bar → dot, as a line between the steps */
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: calc(clamp(24px, 3vw, 48px) * -1);
  height: 8px; border-radius: 4px; background: var(--red); opacity: .5;
}
.step--last::before { right: 0; }
.step--last::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
}
.step__num { font-size: clamp(56px, 6vw, 96px); line-height: .9; font-weight: 700; color: var(--text-muted); letter-spacing: -.04em; }
.step__title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.step__text { color: var(--text-2); max-width: 34ch; }
.reassure {
  margin-top: clamp(48px, 6vw, 88px);
  max-width: 44em;
  font-size: clamp(18px, 1rem + .45vw, 23px); line-height: 1.45; color: var(--text-2);
}
.reassure strong { color: var(--text); font-weight: 600; }

/* 600 · Why us */
.section--why { background: var(--surface-2); }
.why__photo { position: absolute; inset: 0; z-index: 0; background: none !important; opacity: .22; }
.build__photo { position: absolute; inset: 0; z-index: 0; background: none !important; opacity: .28; mix-blend-mode: luminosity; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.stat {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--surface-1), transparent 50%);
  padding: clamp(24px, 2.6vw, 40px);
  display: flex; flex-direction: column;
  min-height: 280px;
}
.stat > * { position: relative; z-index: 1; }
.stat__label { font-family: var(--font-mono); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.stat__num {
  margin-top: auto; padding-top: 32px;
  font-weight: 700; font-stretch: 72%;
  font-size: clamp(96px, 10.5vw, 168px);
  line-height: .86; letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
}
.stat__unit { font-size: .34em; font-stretch: 100%; font-weight: 600; letter-spacing: -.01em; color: var(--text-2); margin-left: .12em; }
.stat__cap { margin-top: 18px; color: var(--text-2); font-size: 15.5px; max-width: 28ch; min-height: 4.65em; }
.stat--halftone::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--halftone);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
          mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
}

.why__grid {
  margin-top: clamp(56px, 7vw, 112px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.why__copy { display: grid; gap: 18px; color: var(--text-2); max-width: 40em; }
.why__lede { font-size: clamp(22px, 1rem + 1vw, 32px); line-height: 1.25; letter-spacing: -.015em; color: var(--text); font-weight: 500; }
.checks { display: grid; gap: 10px; margin-top: 8px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23F2F1EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    var(--red);
}
.orgs { display: grid; gap: 16px; }
.orgs__list { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.orgs__list li {
  font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15;
  font-stretch: 88%;
}
.orgs__note { font-size: 13.5px; color: var(--text-2); max-width: 40em; }

/* 999 · Book */
.section--book { background: var(--ground); padding-bottom: clamp(80px, 9vw, 140px); }
.book__photo { position: absolute; inset: 0; z-index: 0; }
.book__photo.img-slot {
  background-color: transparent;
  -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000 100%);
          mask-image: linear-gradient(160deg, transparent 30%, #000 100%);
}
.book__grid {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px);
}
.booking, .quote { padding: clamp(24px, 3vw, 48px); border-radius: 2px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.booking { background: var(--surface-2); display: flex; flex-direction: column; gap: 20px; }
.booking__embed { flex: 1; display: flex; min-height: 420px; }
.booking__placeholder {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 20px;
  position: relative; overflow: hidden;
}
.booking__big {
  position: absolute; top: -.08em; right: -.04em;
  font-weight: 700; font-size: clamp(120px, 15vw, 240px); line-height: 1; letter-spacing: -.02em;
  color: var(--surface-1); transform: scaleY(1.2); transform-origin: top right;
  user-select: none;
}
.booking__text { position: relative; font-size: 18px; color: var(--text-2); max-width: 26em; }
.booking__placeholder .btn { position: relative; }

.quote { background: var(--surface-1); display: grid; gap: 18px; align-content: start; }
.quote__title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 6px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2);
  border: 0; border-bottom: 2px solid var(--field-line);
  border-radius: 4px 4px 0 0;
  padding: 13px 14px;
  min-height: 50px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F2F1EE' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--text); }
.field [aria-invalid="true"] { border-bottom-color: #FF9C8C; }
.field__err { font-size: 14px; color: #FFC2B8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote .btn { justify-self: start; margin-top: 6px; }
.quote__status { font-size: 15px; color: var(--text); min-height: 1.5em; }
.quote__status a { font-weight: 600; }

.eof-line { margin-top: 56px; font-size: 13px; letter-spacing: .04em; color: var(--text-2); }

/* Footer */
.footer { background: var(--surface-2); padding: 64px 0 56px; position: relative; z-index: 1; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: end; }
.footer__col { display: grid; gap: 6px; }
.footer__email { font-size: 20px; font-weight: 600; text-decoration: none; justify-self: start; }
.footer__email:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__small { font-size: 14.5px; color: var(--text-2); }
.footer__eof { font-size: 12px; letter-spacing: .04em; color: var(--text-2); text-transform: uppercase; }

/* ---------- 7b. Texture layers (sections 300 / 600 / 999) ----------
   Each section gets its own background texture, built from the same
   vocabulary as the hero: the "9", halftone dots, grain, the red accent.
   All layers sit between the section background and .wrap, are decorative,
   and pause while off screen (script.js toggles .is-live).             */
.fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx:not(.is-live) * { animation-play-state: paused !important; }

/* 300 · Process: drifting node map. Quiet at the edges so the section
   seams stay clean; the red nodes are the "hot lines" from the minimap. */
.fx--nodes {
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
/* Film grain behind the node map (sits under it in the stack) */
.fx--grain {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.fx--grain span {
  position: absolute; inset: -60px;
  background: var(--grain) repeat 0 0 / 200px 200px;
  opacity: .22; mix-blend-mode: overlay;
  animation: grain-jitter .9s steps(1) infinite;
}
@keyframes grain-jitter {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-47px, 31px); }
  25%  { transform: translate(53px, -22px); }
  37%  { transform: translate(-18px, -51px); }
  50%  { transform: translate(42px, 44px); }
  62%  { transform: translate(-56px, 9px); }
  75%  { transform: translate(27px, 48px); }
  87%  { transform: translate(-41px, -36px); }
}
.fx--nodes canvas { display: block; width: 100%; height: 100%; }

/* 600 · Why us: rows of the card's "9" sliding in opposite directions,
   as outline, solid and halftone. Faded out behind the headline. */
.fx--nines {
  opacity: 0.4;
  display: flex; flex-direction: column; justify-content: space-around;
  padding-block: 3%;
  --nr-h: clamp(64px, 8.5vw, 124px);
  -webkit-mask-image: linear-gradient(112deg, transparent 12%, rgb(0 0 0 / .5) 42%, #000 88%);
          mask-image: linear-gradient(112deg, transparent 12%, rgb(0 0 0 / .5) 42%, #000 88%);
}
.nines-row { height: var(--nr-h); overflow: hidden; flex: none; }
.nines-row svg {
  height: 100%; width: auto; max-width: none; overflow: visible;
  will-change: transform;
  animation: nines-drift var(--dur, 150s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.nines-row--rev svg { animation-direction: reverse; }
@keyframes nines-drift { to { transform: translateX(-50%); } }
.n-out  { fill: none; stroke: var(--text); stroke-opacity: .15; stroke-width: 1.8; stroke-miterlimit: 2; }
.n-red  { fill: none; stroke: var(--red); stroke-opacity: .8; stroke-width: 2.2; stroke-miterlimit: 2; }
.n-fill { fill: var(--surface-1); fill-opacity: .8; stroke: none; }
.n-ht-edge { fill: none; stroke: var(--halftone-dot); stroke-opacity: .55; stroke-width: 1.8; }
.fx--nines .ht ellipse { fill: var(--red); fill-opacity: .55; }

/* 100 · Build: a halftone dot field (the 9's texture) that drifts slowly
   toward the bottom left, fading out toward the top and right, with a
   light pass of film grain. CSS only. */
.dots__field {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--halftone-dot) 0 2px, transparent 2.8px) 0 0 / 12px 12px;
  opacity: .75;
  -webkit-mask-image: radial-gradient(80% 95% at 0% 100%, #000 0%, rgb(0 0 0 / .45) 45%, transparent 80%);
          mask-image: radial-gradient(80% 95% at 0% 100%, #000 0%, rgb(0 0 0 / .45) 45%, transparent 80%);
  animation: dots-drift 24s linear infinite;
}
@keyframes dots-drift { to { background-position: -12px 12px; } }
/* Hover on the section: the halftone field brightens and grows out of its corner. */
.dots__field {
  transform-origin: 0 100%;
  transition: opacity .6s var(--ease-out), transform .9s var(--ease-out);
}
@media (hover: hover) {
  .section--build:hover .dots__field { opacity: 1; transform: scale(1.18); }
}
.dots__grain {
  position: absolute; inset: 0;
  background: var(--grain) repeat 0 0 / 160px 160px;
  opacity: .12; mix-blend-mode: overlay;
}

/* ---------- 8. Image slots (context 9b) ---------- */
.img-slot {
  position: relative; overflow: hidden; aspect-ratio: var(--ratio);
  background-color: var(--surface-2);                 /* placeholder: tonal block */
}
.img-slot--bg { position: absolute; inset: 0; aspect-ratio: auto; }
.img-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.85) contrast(1.05) brightness(.9);  /* one house treatment */
}
.img-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain) repeat 0 0 / 160px 160px, linear-gradient(to top, rgb(0 0 0 / .45), transparent 60%);
  mix-blend-mode: multiply;
  opacity: .9;
}
/* Placeholders per slot (show when the photo file is absent) */
.cell__photo { background: radial-gradient(120% 90% at 85% 10%, #34353A 0%, var(--surface-2) 60%); }
.section--book .book__photo { background: var(--halftone); }
.hero__photo::after, .why__photo::after, .build__photo::after { background: var(--grain) repeat 0 0 / 160px 160px; mix-blend-mode: overlay; opacity: .28; }

/* ---------- 9. Motion ---------- */
/* Intro: counter runs while the 9s wait; script.js drives it. */
html.intro .counter { display: block; }
html.intro .nine { opacity: 0; transform: translateY(3%) scale(.985); }
html.intro .row__track { transform: scaleX(var(--intro-p, 0)); }
html.intro .row__dot { transform: scale(0); }
html.intro-out .nine {
  transition: opacity .55s ease-out, transform .8s var(--ease-out);
}
html.intro-out .nine-wrap:nth-child(2) .nine { transition-delay: .07s; }
html.intro-out .nine-wrap:nth-child(3) .nine { transition-delay: .14s; }
html.intro-out .row__dot { transition: transform .45s cubic-bezier(.3, 1.8, .5, 1); }
html.intro-out .counter { display: block; opacity: 0; transition: opacity .45s ease-out .1s; }
.counter.is-final { color: var(--red); }

/* Safety net: if script.js never runs, reveal the mural after 4s */
html.intro .nine, html.intro .row__dot { animation: intro-fallback 0s linear 4s forwards; }
html.intro .counter { animation: intro-hide 0s linear 4s forwards; }
html.intro .row__track { animation: intro-fallback 0s linear 4s forwards; }
@keyframes intro-fallback { to { opacity: var(--mural-opacity); transform: none; } }
@keyframes intro-hide { to { opacity: 0; visibility: hidden; } }
html.intro .row__dot, html.intro .row__track { animation-name: intro-fallback-plain; }
@keyframes intro-fallback-plain { to { transform: none; } }

/* Hero copy rises in immediately; it is never held back by the counter. */
html.js .hero__main > *, html.js .lead, html.js .hero__foot {
  animation: rise .7s var(--ease-out) both;
}
html.js .hero__main > :nth-child(2) { animation-delay: .06s; }
html.js .hero__main > :nth-child(3) { animation-delay: .12s; }
html.js .hero__main > :nth-child(4) { animation-delay: .18s; }
html.js .lead { animation-delay: .26s; }
html.js .hero__foot { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Reveal on scroll (once) */
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s var(--ease-out); }
html.js .cell.reveal.is-in { transition: opacity .5s ease-out, transform .4s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .cell:hover { transform: none; }
  .cell:hover .cell__photo img { transform: none; }
  .nine-wrap { transform: none !important; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1279px) {
  .hero__meta { display: none; }
}

@media (max-width: 1023px) {
  :root { --gutter-w: 44px; --pad: 24px; --nav-h: 64px; }
  .hero { --nine-w: min(45vw, 62.5svh); }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell, .cell--red, .cell--red + .cell { grid-column: span 1; }
  .cell--lead { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .cell:last-child { grid-column: span 2; }
  .why__grid, .book__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding-top: 0; padding-left: 36px; }
  .step::before { top: 6px; bottom: -46px; left: 6px; right: auto; width: 6px; height: auto; }
  .step--last::before { bottom: 0; }
  .step--last::after { top: auto; bottom: -6px; right: auto; left: 2.5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: span 2; }
}

@media (max-width: 767px) {
  .fx--nines {
    -webkit-mask-image: linear-gradient(to bottom, transparent 6%, rgb(0 0 0 / .8) 40%, #000 100%);
            mask-image: linear-gradient(to bottom, transparent 6%, rgb(0 0 0 / .8) 40%, #000 100%);
  }
  :root { --gutter-w: 0px; --pad: 16px; --nav-h: 60px; }
  .gutter { display: none; }
  .wordmark { font-size: 20px; }
  .btn { --h: 52px; padding: 0 22px; }
  .btn--sm { --h: 42px; padding: 0 16px; font-size: 14px; }

  /* Mobile hero, option 2: one cropped row of 9s at the top, copy over the lower half. */
  .hero {
    --nine-w: 65vw;
    --row-h: 34px;
    min-height: 0;
  }
  .nines { top: calc(var(--nav-h) + 6px); bottom: auto; }
  .hero__inner { padding-top: var(--nav-h); padding-bottom: calc(var(--row-h) + 28px); }
  .hero__corner { display: none; }
  .hero__content { margin: 0; padding: 0; }
  .hero__main {
    min-height: calc(100svh - var(--nav-h));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 28px;
  }
  @supports not (height: 1svh) { .hero__main { min-height: calc(100vh - var(--nav-h)); } }
  .hero__main > .label { margin-bottom: 12px; }
  .hero__title { font-size: clamp(36px, 10.6vw, 52px); line-height: .98; letter-spacing: -.035em; }
  .hero__sub { font-size: 16.5px; margin-top: 14px; }
  .hero__main .btn-row { margin-top: 20px; flex-wrap: nowrap; }
  .hero__main .btn-row .btn { flex: 1 1 0; padding: 0 12px; }
  .hero.fx-scrim .hero__scrim {
    background: linear-gradient(0deg, rgb(var(--ground-rgb) / .92) 0%, rgb(var(--ground-rgb) / .78) 45%, rgb(var(--ground-rgb) / .1) 72%, rgb(var(--ground-rgb) / 0) 100%);
  }
  .theme-c .hero.fx-scrim .hero__scrim {
    background: linear-gradient(0deg, rgb(var(--ground-rgb) / .97) 0%, rgb(var(--ground-rgb) / .9) 50%, rgb(var(--ground-rgb) / .3) 75%, rgb(var(--ground-rgb) / 0) 100%);
  }
  .lead { margin-top: 8px; }
  .hero__foot { padding-top: 32px; }

  /* Option 1 experiment (?fx=+stack): three 9s stacked as one tall mural */
  .hero.fx-stack { --nine-w: 64vw; }
  .hero.fx-stack .nines { flex-direction: column; height: auto; top: calc(var(--nav-h) - 4vw); }

  .cell, .cell--red, .cell--red + .cell, .cell--lead, .cell:last-child { grid-column: span 2; }
  .cell { min-height: 240px; }
  .cell--lead { min-height: 400px; }
  .stats { grid-template-columns: 1fr; }
  .stat:last-child { grid-column: auto; }
  .stat { min-height: 0; }
  .stat__num { font-size: clamp(88px, 26vw, 120px); }
  .booking__embed { min-height: 320px; }
  .footer { padding-bottom: 72px; }
  .progress__label { display: none; }
}
