/* SnapCondition marketing site
   ------------------------------------------------------------------
   Motion model
   - Pinned scenes (#hero, #insight, #how) read ONE registered number, --p (0..1),
     on their .pin. With scroll timelines, a CSS animation drives it from the
     section's view timeline (contain range). Without them, main.js writes it.
     Children derive local progress with clamp() windows and a smoothstep.
   - One-off reveals use animation-timeline: view() natively, and an
     IntersectionObserver class (.in) as the fallback.
   - Everything moving uses transform-family properties, opacity, clip-path
     or filter. Scroll timelines never touch layout.
   - Scene layouts only switch on with JS + prefers-reduced-motion: no-preference.
     Otherwise every section is a plain, readable static flow.
   Shape system: controls 12px, cards 14px, panels 22px, paper 3px, chips pill.
   Layers: photo 1, veil 2, findings 3, exhibit 4, notice 5, copy/close 6, plate 7, nav 50.
*/

/* ---------- registered properties ---------- */
@property --p   { syntax: '<number>';  inherits: true;  initial-value: 0; }
@property --lo  { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --lok { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --lor { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --nf  { syntax: '<integer>'; inherits: false; initial-value: 4; }
@property --dc  { syntax: '<integer>'; inherits: true;  initial-value: 36; }
@property --pg  { syntax: '<integer>'; inherits: true;  initial-value: 52; }
@property --vf-l  { syntax: '<color>'; inherits: true; initial-value: #0063ed; }
@property --vf-rc { syntax: '<color>'; inherits: true; initial-value: #00bcb1; }

@counter-style pad3 { system: extends decimal; pad: 3 "0"; }

/* ---------- tokens (from the portal) ---------- */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f7f9fb; --sunk: #eceff4;
  --line: #e0e5ec; --line-strong: #c8d0db;
  --ink: #141c27; --ink-2: #455163; --ink-3: #626e7d;
  --accent: #0063ed; --accent-hover: #0052c4; --accent-ink: #ffffff; --accent-soft: #e2edfd;
  --amber: #8f5d0f; --amber-soft: #f6ecd9;
  --crit: #b3392c; --crit-soft: #f7e2de;
  --ok: #2c7a4c; --ok-soft: #e1f0e6;
  --info: #355c9b; --info-soft: #e3e9f4;
  --teal: #00a398; --teal-soft: #ddf6f3;
  --lg-blue: #0063ed; --lg-teal: #00bcb1; --lg-word: #01b7ab; --lg-body: #d1e4fd;
  --tint-1: #eaf2fe; --tint-2: #e3f7f5;
  /* severity over photographs: the dark-mode tokens, in both themes (STORY.md) */
  --sp-high: #f07d6f; --sp-mod: #e2a84b; --sp-low: #00bcb1;
  /* paper stays paper in both themes */
  --doc: #fdfdfb; --doc-ink: #1c1f1d; --doc-2: #5b605c; --doc-line: #dfe1dc;
  --shadow-1: 0 1px 2px rgba(20, 28, 39, .06), 0 8px 24px -6px rgba(20, 28, 39, .10);
  --shadow-2: 0 1px 1px rgba(20, 28, 39, .05), 0 24px 60px -18px rgba(20, 28, 39, .28);
  --shadow-doc: 0 1px 1px rgba(20, 28, 39, .06), 0 2px 6px rgba(20, 28, 39, .05), 0 30px 70px -24px rgba(20, 28, 39, .35);
  --nav-bg: rgba(255, 255, 255, .8);

  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;

  --fs-h1: clamp(2.3rem, 1.4rem + 2.5vw, 3.6rem);
  --fs-h2: clamp(2.1rem, 1.45rem + 2.3vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 1.12rem + .35vw, 1.45rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.35rem);
  --fs-body: clamp(1.0625rem, 1.01rem + .2vw, 1.15rem);
  --fs-small: .9375rem;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --gl: max(var(--gutter), (100vw - var(--maxw)) / 2);
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d1218; --surface: #141b23; --surface-2: #18212b; --sunk: #10161d;
    --line: #232d39; --line-strong: #313d4b;
    --ink: #e6ecf3; --ink-2: #a9b4c2; --ink-3: #8a96a6;
    --accent: #4d94ff; --accent-hover: #6aa6ff; --accent-ink: #06101f; --accent-soft: #132a4c;
    --amber: #e2a84b; --amber-soft: #33281a; --crit: #f07d6f; --crit-soft: #3a201c; --ok: #5ec286; --ok-soft: #163020;
    --info: #88a9e6; --info-soft: #1c2639; --teal: #2fd6c8; --teal-soft: #10302e;
    --lg-blue: #4d94ff; --lg-word: #2fd6c8; --tint-1: #0f1b2d; --tint-2: #0d2422;
    --doc: #eceee9; --doc-line: #cfd2cc;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -6px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 1px rgba(0, 0, 0, .3), 0 24px 60px -18px rgba(0, 0, 0, .6);
    --shadow-doc: 0 1px 1px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .7);
    --nav-bg: rgba(20, 27, 35, .8);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0d1218; --surface: #141b23; --surface-2: #18212b; --sunk: #10161d;
  --line: #232d39; --line-strong: #313d4b;
  --ink: #e6ecf3; --ink-2: #a9b4c2; --ink-3: #8a96a6;
  --accent: #4d94ff; --accent-hover: #6aa6ff; --accent-ink: #06101f; --accent-soft: #132a4c;
  --amber: #e2a84b; --amber-soft: #33281a; --crit: #f07d6f; --crit-soft: #3a201c; --ok: #5ec286; --ok-soft: #163020;
  --info: #88a9e6; --info-soft: #1c2639; --teal: #2fd6c8; --teal-soft: #10302e;
  --lg-blue: #4d94ff; --lg-word: #2fd6c8; --tint-1: #0f1b2d; --tint-2: #0d2422;
  --doc: #eceee9; --doc-line: #cfd2cc;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -6px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 1px rgba(0, 0, 0, .3), 0 24px 60px -18px rgba(0, 0, 0, .6);
  --shadow-doc: 0 1px 1px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .7);
  --nav-bg: rgba(20, 27, 35, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 28px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, dl, dd, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 650; text-wrap: balance; font-stretch: 94%; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.026em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; font-weight: 600; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.small { font-size: .9375rem; color: var(--ink-3); max-width: 44em; }
.m { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; transform: translateY(-200%); text-decoration: none; font-weight: 600; }
.skip:focus { transform: none; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding-block: clamp(96px, 12vw, 160px); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 .8125rem/1 var(--f-body); white-space: nowrap; }
/* severity: High / Moderate / Low share the hue family of the photo brackets */
.sev-high { background: var(--crit-soft); color: var(--crit); }
.sev-mod  { background: var(--amber-soft); color: var(--amber); }
.sev-low  { background: var(--teal-soft); color: var(--teal); }
.st-sched { background: var(--info-soft); color: var(--info); }
.st-prog  { background: var(--amber-soft); color: var(--amber); }
.st-done  { background: var(--ok-soft); color: var(--ok); }

/* ---------- the viewfinder (signature motif) ----------
   Four rounded corner brackets: blue on the left, teal on the right, like the mark. */
.vf {
  --vf-w: 3px; --vf-r: 12px; --vf-len: 26px;
  position: absolute; inset: var(--vf-inset, 0); pointer-events: none;
}
.vf::before, .vf::after { content: ''; position: absolute; inset: 0; border: var(--vf-w) solid; border-radius: var(--vf-r); }
.vf::before {
  border-color: var(--vf-l);
  -webkit-mask: linear-gradient(#000 0 0) left top / var(--vf-len) var(--vf-len) no-repeat, linear-gradient(#000 0 0) left bottom / var(--vf-len) var(--vf-len) no-repeat;
          mask: linear-gradient(#000 0 0) left top / var(--vf-len) var(--vf-len) no-repeat, linear-gradient(#000 0 0) left bottom / var(--vf-len) var(--vf-len) no-repeat;
}
.vf::after {
  border-color: var(--vf-rc);
  -webkit-mask: linear-gradient(#000 0 0) right top / var(--vf-len) var(--vf-len) no-repeat, linear-gradient(#000 0 0) right bottom / var(--vf-len) var(--vf-len) no-repeat;
          mask: linear-gradient(#000 0 0) right top / var(--vf-len) var(--vf-len) no-repeat, linear-gradient(#000 0 0) right bottom / var(--vf-len) var(--vf-len) no-repeat;
}
.vf-brand { --vf-l: var(--lg-blue); --vf-rc: var(--lg-teal); }
.vf-sev { --vf-l: var(--sev); --vf-rc: var(--sev); }

/* ---------- images that haven't arrived yet ---------- */
.media { position: relative; overflow: hidden; background: var(--sunk); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media.missing { background: radial-gradient(120% 90% at 20% 10%, var(--tint-1), transparent 60%), radial-gradient(100% 80% at 90% 100%, var(--tint-2), transparent 60%), var(--surface-2); }
.media.missing > img { visibility: hidden; }
.media.missing::before {
  content: ''; position: absolute; inset: 22% 26%; border: 2px solid color-mix(in srgb, var(--ink-3) 45%, transparent); border-radius: 12px; pointer-events: none;
  -webkit-mask: conic-gradient(#000 0 0) 0 0 / 22% 26% no-repeat, conic-gradient(#000 0 0) 100% 0 / 22% 26% no-repeat, conic-gradient(#000 0 0) 0 100% / 22% 26% no-repeat, conic-gradient(#000 0 0) 100% 100% / 22% 26% no-repeat;
          mask: conic-gradient(#000 0 0) 0 0 / 22% 26% no-repeat, conic-gradient(#000 0 0) 100% 0 / 22% 26% no-repeat, conic-gradient(#000 0 0) 0 100% / 22% 26% no-repeat, conic-gradient(#000 0 0) 100% 100% / 22% 26% no-repeat;
}
.media.missing::after {
  content: attr(data-file); position: absolute; left: 14px; bottom: 12px; right: 14px;
  font: 500 12px/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fthumb.missing::after, .lthumb.missing::after, .door .missing::after, .ex-plate.missing::after, .ex-plates .missing::after { display: none; }
.fthumb.missing::before, .lthumb.missing::before, .door .missing::before { inset: 26%; border-width: 1.5px; border-radius: 6px; }

/* ---------- paper documents ---------- */
.doc { background: var(--doc); color: var(--doc-ink); border-radius: 3px; box-shadow: var(--shadow-doc); font-family: var(--f-body); }
.doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; padding-bottom: 12px; border-bottom: 2px solid var(--doc-ink); }
.doc-head b { display: block; font: 600 1.05rem/1.2 var(--f-serif); }
.doc-head span { display: block; font: 500 .72rem/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--doc-2); margin-top: 2px; }
.doc-meta { font: 400 .75rem/1.45 var(--f-mono); color: var(--doc-2); text-align: right; white-space: nowrap; }

/* ============================== NAV ============================== */
.nav { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; pointer-events: none; }
.nav-in {
  pointer-events: auto; width: min(1240px, 100% - 2 * var(--gutter) + 16px); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 10px 0 18px; border-radius: 18px;
  background: var(--nav-bg); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, var(--shadow-1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-signin { text-decoration: none; font-size: .975rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-signin:hover { color: var(--ink); background: color-mix(in srgb, var(--sunk) 80%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-m { display: none !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.logo path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo .br path { stroke-width: 19; }
.logo .b { stroke: var(--lg-blue); }
.logo .t { stroke: var(--lg-teal); }
.logo .tf { fill: var(--lg-teal); }
.logo .bf { fill: var(--lg-blue); }
.logo .body { fill: var(--lg-body); }
.logo .pane { fill: #fefefe; }
.logo .snap path { stroke: var(--lg-blue); stroke-width: 18.5; }
.logo .cond path { stroke: var(--lg-word); stroke-width: 18; }
.logo .cond .dot { fill: var(--lg-word); stroke: none; }

@media (max-width: 1080px) {
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); pointer-events: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s; }
  .nav-in { position: relative; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .nav-links a { padding: 14px 14px; font-size: 1.0625rem; color: var(--ink); }
  .nav-links a.btn { justify-content: center; margin-top: 6px; color: var(--bg); }
  .nav-links a.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); color: var(--bg); }
  .nav-toggle { display: block; }
  .nav-signin { display: none; }
  .nav-m { display: block !important; }
  .nav-m.btn { display: flex !important; }
}
@media (max-width: 520px) {
  .nav-actions .btn-sm { display: none; }
  .nav-in { padding-left: 14px; }
}

/* ============================== HERO ============================== */
/* Hotspots (fraction of hero-house.jpg, 3:2), measured 2026-10-18. D1-D4 in STORY.md order.
   Retune --hNx / --hNy / --hNw / --hNar here if the photo changes. */
.hero {
  --h1x: .855; --h1y: .30;   /* D1 fascia / soffit rot at the eave corner */
  --h2x: .35;  --h2y: .49;   /* D2 bowed siding, garage side wall */
  --h3x: .385; --h3y: .80;   /* D3 heaved slab joint on the cracked driveway */
  --h4x: .645; --h4y: .265;  /* D4 roof: granule loss, curling, patch */
  --f0x: .6;   --f0y: .5;    /* camera rest point */
  --zmax: .16;
  --cx: .62; --cy: .52;      /* where the camera puts the focused defect on screen */
  position: relative;
}
.anchor-top { position: absolute; top: 0; }
.h-plane .hs:nth-of-type(1), .h-cards .fcard:nth-child(1) { --x: var(--h1x); --y: var(--h1y); --w: 8%;  --ar: .95; }
.h-plane .hs:nth-of-type(2), .h-cards .fcard:nth-child(2) { --x: var(--h2x); --y: var(--h2y); --w: 13%; --ar: 2; }
.h-plane .hs:nth-of-type(3), .h-cards .fcard:nth-child(3) { --x: var(--h3x); --y: var(--h3y); --w: 20%; --ar: 2.4; }
.h-plane .hs:nth-of-type(4), .h-cards .fcard:nth-child(4) { --x: var(--h4x); --y: var(--h4y); --w: 22%; --ar: 2.2; }

/* -- static (default) layout: readable in order, no motion -- */
.hero .stage {
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto;
  padding-top: calc(var(--nav-h) + 64px); padding-bottom: 40px;
  display: grid; gap: 40px 56px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: 'copy notice' 'photo photo' 'find exhibit' 'close close';
  align-items: center;
}
.h-copy { grid-area: copy; display: grid; gap: 20px; justify-items: start; }
.h-copy h1 { max-width: 13em; }
.h-copy .lead { max-width: 30em; }
.h-small { font-size: .9375rem; color: var(--ink-3); max-width: 34em; margin-top: -4px; }
.h-hint { display: none; }
.h-notice { grid-area: notice; padding: 26px 28px 22px; transform: rotate(-2deg); max-width: 470px; justify-self: end; width: 100%; }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--doc-line); }
.nt-grid .span2 { grid-column: span 2; }
.nt-grid dt, .nt-vals span { font: 500 .68rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--doc-2); }
.nt-grid dd { font-size: .95rem; font-weight: 500; }
.nt-grid dd.m { font-size: .875rem; }
.nt-vals { display: grid; gap: 14px; padding-top: 16px; }
.nt-prior { display: flex; justify-content: space-between; align-items: baseline; }
.nt-prior b { font-size: .95rem; font-weight: 500; }
.nt-now { display: grid; gap: 6px; justify-items: start; border-top: 1.5px solid var(--doc-ink); padding-top: 12px; }
.nt-now b { position: relative; font-size: 2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.nt-now .vf { --vf-inset: -8px -12px; --vf-len: 16px; --vf-r: 9px; --vf-w: 3px; }
.nt-tag { font: 600 .72rem/1 var(--f-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--lg-blue); padding: 6px 9px; border-radius: 7px; margin-top: 8px; }
.doc-lines { display: grid; gap: 7px; margin-top: 18px; }
.doc-lines i { display: block; height: 6px; width: var(--w, 100%); background: var(--doc-line); border-radius: 2px; }

.h-photo { grid-area: photo; }
.h-view { position: relative; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: #1d2632; }
.h-plane { position: absolute; inset: 0; }
.h-plane > img { position: absolute; inset: 0; }
.h-art { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.h-plane.missing .h-art { display: block; }
.h-plane.missing::before, .h-plane.missing::after { display: none; }
.art-bg { fill: #e8edf3; }
.art-ground { stroke: #b9c6d4; stroke-width: 3; fill: none; }
.art-drive { stroke: #b9c6d4; stroke-width: 4; fill: none; stroke-linecap: round; }
.art-wall { fill: #d1e4fd; }
.art-roof { stroke: #00bcb1; stroke-width: 22; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-garage, .art-win { fill: #fefefe; stroke: #9fb7d6; stroke-width: 4; }
.art-garage-l { stroke: #c4d3e4; stroke-width: 3; }
.art-door { fill: #0063ed; }
.art-brick { fill: #c9d7e8; }
.art-zones ellipse { fill: url(#hatch); }
.art-hatch { stroke: #9aa8b8; stroke-width: 3; }

.hs { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: var(--w, 13%); aspect-ratio: var(--ar, 1.3); translate: -50% -50%; }
.hs .vf { --vf-l: var(--sev); --vf-rc: var(--sev); --vf-w: 3.5px; --vf-len: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.hs b { position: absolute; left: 0; bottom: calc(100% + 6px); font: 600 12px/1 var(--f-mono); color: #141c27; background: var(--sev); padding: 4px 6px; border-radius: 6px; }
.hs .hs-n { display: none; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--sev); color: #141c27; font: 600 12px/26px var(--f-mono); font-style: normal; text-align: center; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 2px 8px rgba(0, 0, 0, .4); }
.h-veil { display: none; }

.h-findings { grid-area: find; display: grid; gap: 12px; align-self: start; }
.h-chip { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: .9375rem; color: var(--ink-2); }
.h-chip b { font-weight: 600; color: var(--ink); }
.h-chip-note { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.h-cards { display: grid; gap: 10px; }
.fcard {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'th top rg' 'th tt tt' 'th mt mt'; gap: 3px 14px; align-items: center;
  padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.fthumb { grid-area: th; align-self: start; width: 56px; height: 56px; border-radius: 9px; }
.fthumb > img { position: absolute; left: 0; top: 0; width: 400%; height: auto; max-width: none; object-fit: fill; translate: calc(12.5% - var(--x) * 100%) calc(18.75% - var(--y) * 100%); }
.fbody { display: contents; }
.fbody > .ftop { grid-area: top; display: flex; gap: 8px; align-items: center; }
.fbody > b { grid-area: tt; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.fbody > .fmeta { grid-area: mt; font: 500 .75rem/1.35 var(--f-mono); letter-spacing: .02em; color: var(--ink-3); }
.fid { font: 600 .8125rem/1 var(--f-mono); color: var(--ink-3); }
.frange { grid-area: rg; font: 600 1rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-total { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); }
.h-total .tl { font: 500 .8125rem/1.3 var(--f-mono); opacity: .75; }
.h-total .tv { grid-row: span 2; align-self: center; font: 600 1.45rem/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.h-total .tl2 { font-size: 1rem; font-weight: 600; }
.h-total .tn, .h-total .tchk { grid-column: 1 / -1; font-size: .8125rem; opacity: .75; }
.h-total .tn { margin-top: 6px; }
.h-total .tchk { padding-left: 20px; position: relative; opacity: .9; }
.h-total .tchk::before { content: ''; position: absolute; left: 2px; top: .38em; width: 10px; height: 5px; border-left: 2px solid var(--lg-teal); border-bottom: 2px solid var(--lg-teal); rotate: -45deg; }
/* count-up: integer split into thousands + padded remainder so the comma survives */
.h-total {
  --lo: 21900; --nf: 4;
  --lok: calc(var(--lo) / 1000 - .4999); --lor: calc(var(--lo) - var(--lok) * 1000);
  counter-reset: lok var(--lok) lor var(--lor) nf var(--nf);
}
.h-total .lo::before { content: '$' counter(lok) ',' counter(lor, pad3); }
.h-total .nf::before { content: counter(nf); }

.h-exhibit { grid-area: exhibit; position: relative; padding: 22px 24px; max-width: 460px; justify-self: center; width: 100%; }
.h-ex-vf { --vf-inset: -16px; --vf-len: 40px; --vf-w: 4px; --vf-r: 18px; }
.ex-kicker { font: 500 .68rem/1.4 var(--f-mono); letter-spacing: .04em; color: var(--doc-2); margin-top: 12px; }
.ex-title { font: 600 1.15rem/1.25 var(--f-serif); margin-top: 4px; text-wrap: balance; }
.h-exhibit .ex-plate { aspect-ratio: 16 / 7; margin: 12px 0 2px; border-radius: 2px; }
.ex-sched { font: 600 .7rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--doc-2); margin-top: 14px; }
.ex-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 6px; }
.ex-table th { text-align: left; font-weight: 600; border-bottom: 1px solid var(--doc-ink); padding: 5px 6px; }
.ex-table td { border-bottom: 1px solid var(--doc-line); padding: 6px; vertical-align: top; font-variant-numeric: tabular-nums; }
.ex-table td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: .92em; }
.ex-table .r { text-align: right; white-space: nowrap; font-family: var(--f-mono); }
.ex-table tr.tot td { font-weight: 600; border-top: 1.5px solid var(--doc-ink); border-bottom: 0; }
.ex-fine { font-size: .68rem; line-height: 1.45; color: var(--doc-2); margin-top: 12px; }

.h-close { grid-area: close; display: grid; gap: 22px; justify-items: start; padding: 24px 0; }
.h-close-line { font: 650 var(--fs-h2)/1.05 var(--f-display); font-stretch: 94%; letter-spacing: -.028em; max-width: 13em; text-wrap: balance; }
.h-plate { display: none; }

@media (max-width: 820px) {
  .hero .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'notice' 'photo' 'find' 'exhibit' 'close'; padding-top: calc(var(--nav-h) + 48px); }
  .h-notice { justify-self: center; }
}

/* -- load moment (time-based, once) -- */
@media (prefers-reduced-motion: no-preference) {
  .h-copy > * { animation: rise 1s var(--ease) both; }
  .h-copy > :nth-child(2) { animation-delay: .06s; }
  .h-copy > :nth-child(3) { animation-delay: .12s; }
  .h-copy > :nth-child(n + 4) { animation-delay: .18s; }
  .h-notice { animation: settle 1.2s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: translateY(40px) rotate(2deg); } }

/* -- scene layout: pinned, absolutely placed, driven by --p (timeline per STORY.md section 2) --
   0-.06 copy + notice | .06-.14 the number | .14-.25 the house | .25-.66 four locks (a = .25 + (i-1) * .104)
   .66-.76 the list | .76-.90 into the exhibit | .90-1 close */
@media (prefers-reduced-motion: no-preference) {
  .js .hero { height: 450vh; }
  .js .hero > .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; perspective: 1600px; }
  .js .hero .stage { display: block; position: relative; width: 100%; height: 100%; padding: 0; }

  /* local windows: t = clamp((p - a) / (b - a)), e = smoothstep(t) */
  .js .h-copy {
    --t: clamp(0, (var(--p) - .055) / .065, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    position: absolute; z-index: 6; left: var(--gl); top: calc(50% + var(--nav-h) / 2); width: min(600px, 46vw); gap: 16px;
    translate: 0 calc(-50% - var(--e) * 40px); opacity: calc(1 - var(--e));
  }
  .js .h-hint { display: block; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
  .js .h-notice {
    /* resting position is the stage center; at scene 0 it sits offset in the right column */
    --nw: min(470px, 38vw);
    --s1: clamp(0, (var(--p) - .06) / .07, 1); --e1: calc(var(--s1) * var(--s1) * (3 - 2 * var(--s1)));
    --s2: clamp(0, (var(--p) - .14) / .08, 1); --e2: calc(var(--s2) * var(--s2) * (3 - 2 * var(--s2)));
    --ox: calc(50vw - var(--gl) - var(--nw) / 2); --oy: 0px;
    position: absolute; z-index: 5; left: 50%; top: calc(var(--nav-h) + 48px); width: var(--nw); max-width: none; margin-left: calc(var(--nw) / -2);
    translate: calc(var(--ox) * (1 - var(--e1))) calc(var(--oy) * (1 - var(--e1)) - var(--e2) * 30vh);
    scale: calc(1 + .08 * var(--e1)); rotate: x calc(var(--e2) * 62deg); transform-origin: 50% 100%;
    opacity: calc(1 - var(--e2));
  }
  .js .nt-now .vf {
    --k: clamp(0, (var(--p) - .07) / .035, 1); --ke: calc(var(--k) * var(--k) * (3 - 2 * var(--k)));
    opacity: var(--ke); scale: calc(1.4 - .4 * var(--ke));
  }
  .js .nt-tag { --k: clamp(0, (var(--p) - .095) / .025, 1); opacity: var(--k); translate: calc((1 - var(--k)) * -10px) 0; }

  .js .h-photo { position: absolute; inset: 0; z-index: 1; }
  .js .h-view {
    --t: clamp(0, (var(--p) - .14) / .1, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; container-type: size;
    opacity: clamp(0, (var(--p) - .135) / .05, 1);
    filter: blur(calc((1 - var(--e)) * 10px));
  }
  .js .h-plane {
    /* camera: settle in, zoom for the findings, glide between hotspots, clamped so edges never show */
    --m1: clamp(0, (var(--p) - .25) / .035, 1); --m2: clamp(0, (var(--p) - .354) / .035, 1);
    --m3: clamp(0, (var(--p) - .458) / .035, 1); --m4: clamp(0, (var(--p) - .562) / .035, 1);
    --m5: clamp(0, (var(--p) - .66) / .04, 1);
    --fx: calc(var(--f0x) + (var(--h1x) - var(--f0x)) * var(--m1) + (var(--h2x) - var(--h1x)) * var(--m2) + (var(--h3x) - var(--h2x)) * var(--m3) + (var(--h4x) - var(--h3x)) * var(--m4) + (var(--f0x) - var(--h4x)) * var(--m5));
    --fy: calc(var(--f0y) + (var(--h1y) - var(--f0y)) * var(--m1) + (var(--h2y) - var(--h1y)) * var(--m2) + (var(--h3y) - var(--h2y)) * var(--m3) + (var(--h4y) - var(--h3y)) * var(--m4) + (var(--f0y) - var(--h4y)) * var(--m5));
    --zf: calc(clamp(0, (var(--p) - .22) / .06, 1) * (1 - clamp(0, (var(--p) - .66) / .06, 1)));
    --s0: calc(1 + .08 * (1 - clamp(0, (var(--p) - .14) / .1, 1)));
    --z: calc((1 + var(--zmax) * var(--zf)) * var(--s0));
    --pw: max(100cqw, 150cqh); --ph: calc(var(--pw) / 1.5);
    inset: auto; left: 50%; top: 50%; width: var(--pw); aspect-ratio: 3 / 2;
    translate:
      calc(-50% + clamp((var(--pw) * var(--z) - 100cqw) / -2, (var(--cx) - .5) * 100cqw + (.5 - var(--fx)) * var(--pw) * var(--z), (var(--pw) * var(--z) - 100cqw) / 2))
      calc(-50% + clamp((var(--ph) * var(--z) - 100cqh) / -2, (var(--cy) - .5) * 100cqh + (.5 - var(--fy)) * var(--ph) * var(--z), (var(--ph) * var(--z) - 100cqh) / 2));
    scale: var(--z);
  }
  .js .hs {
    /* lock: brand blue/teal brackets snap in, then take the severity color; when the next lock starts they collapse to a numbered pin */
    --a: calc(.25 + (var(--i) - 1) * .104);
    --k: clamp(0, (var(--p) - var(--a) - .02) / .035, 1); --ke: calc(var(--k) * var(--k) * (3 - 2 * var(--k)));
    --c: clamp(0, (var(--p) - var(--a) - .05) / .015, 1);
    --col: clamp(0, (var(--p) - var(--a) - .104) / .02, 1);
    --out: clamp(0, (var(--p) - .76) / .03, 1);
    opacity: calc(1 - var(--out));
  }
  .js .hs .vf {
    --vf-l: color-mix(in oklab, var(--sev) calc(var(--c) * 100%), var(--lg-blue));
    --vf-rc: color-mix(in oklab, var(--sev) calc(var(--c) * 100%), var(--lg-teal));
    opacity: calc(var(--ke) * (1 - var(--col))); scale: calc((1.4 - .4 * var(--ke)) * (1 - .6 * var(--col)));
  }
  .js .hs b { opacity: calc(var(--c) * (1 - var(--col))); translate: 0 calc((1 - var(--c)) * 6px); }
  .js .hs .hs-n { display: block; opacity: var(--col); scale: calc(.6 + .4 * var(--col)); }

  .js .h-veil {
    display: block; position: absolute; inset: 0; z-index: 2; background: var(--bg);
    opacity: clamp(0, (var(--p) - .76) / .06, 1);
  }

  .js .h-findings {
    position: absolute; z-index: 3; left: var(--gl); top: calc(var(--nav-h) + 40px); width: min(380px, 32vw); gap: 10px;
  }
  .js .h-chip {
    --in: clamp(0, (var(--p) - .2) / .05, 1); --out: clamp(0, (var(--p) - .76) / .03, 1);
    opacity: calc(var(--in) * (1 - var(--out))); translate: 0 calc((1 - var(--in)) * 12px);
    background: color-mix(in srgb, var(--surface) 92%, transparent); border-style: solid; border-color: var(--line);
  }
  .js .fcard {
    --a: calc(.25 + (var(--i) - 1) * .104);
    --t: clamp(0, (var(--p) - var(--a) - .04) / .035, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    --f: clamp(0, (var(--p) - .762 - (var(--i) - 1) * .012) / .05, 1); --fe: calc(var(--f) * var(--f) * (3 - 2 * var(--f)));
    opacity: calc(var(--e) * (1 - var(--fe)));
    translate: calc((1 - var(--e)) * -18px + var(--fe) * 22vw) calc((1 - var(--e)) * 10px + var(--fe) * (18vh - (var(--i) - 1) * 40px));
    scale: calc(1 - var(--fe) * .3);
  }
  .js .h-total {
    --e1: clamp(0, (var(--p) - .29) / .035, 1); --e2: clamp(0, (var(--p) - .394) / .035, 1);
    --e3: clamp(0, (var(--p) - .498) / .035, 1); --e4: clamp(0, (var(--p) - .602) / .035, 1);
    --lo: calc(2600 * var(--e1) + 3500 * var(--e2) + 1600 * var(--e3) + 14200 * var(--e4));
    --nf: calc(var(--e1) + var(--e2) + var(--e3) + var(--e4));
    --out: clamp(0, (var(--p) - .76) / .03, 1);
    opacity: calc(var(--e1) * (1 - var(--out)));
    translate: 0 calc((1 - var(--e1)) * 10px);
  }
  .js .h-total .tchk { opacity: calc(.9 * clamp(0, (var(--p) - .67) / .03, 1)); }

  .js .h-exhibit {
    --xw: min(440px, 36vw);
    --t: clamp(0, (var(--p) - .765) / .095, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    --s9: clamp(0, (var(--p) - .9) / .06, 1); --e9: calc(var(--s9) * var(--s9) * (3 - 2 * var(--s9)));
    position: absolute; z-index: 4; left: 50%; top: calc(var(--nav-h) + 30px); width: var(--xw); max-width: none; margin-left: calc(var(--xw) / -2);
    opacity: clamp(0, (var(--p) - .765) / .04, 1);
    translate: calc(var(--e9) * 20vw) calc((1 - var(--e)) * 46vh + var(--e9) * 5vh); rotate: x calc((1 - var(--e)) * 18deg);
    scale: calc(1 - .16 * var(--e9)); transform-origin: 50% 0;
  }
  .js .h-ex-vf { --k: clamp(0, (var(--p) - .86) / .035, 1); opacity: var(--k); scale: calc(1.08 - .08 * var(--k)); }
  .js .h-exhibit .ex-plate { opacity: clamp(0, (var(--p) - .79) / .03, 1); }
  .js .h-exhibit tbody tr {
    --t: clamp(0, (var(--p) - .8 - (var(--i) - 1) * .014) / .03, 1);
    opacity: var(--t);
  }
  .js .h-exhibit tbody tr td { translate: calc((1 - var(--t)) * -8px) 0; }

  .js .h-close {
    --t: clamp(0, (var(--p) - .9) / .06, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    position: absolute; z-index: 6; left: var(--gl); width: min(620px, 44vw); top: 50%; padding: 0;
    opacity: var(--e); translate: calc((1 - var(--e)) * -24px) -50%;
  }
  .js .h-close-line { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.3rem); }

  /* caption plate + scene progress */
  .js .h-plate {
    display: grid; gap: 14px; position: absolute; z-index: 7; right: var(--gl); bottom: 24px; width: min(420px, 34vw);
    padding: 16px 18px 14px; border-radius: 16px; background: var(--nav-bg); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: var(--shadow-1);
    --in: clamp(0, (var(--p) - .055) / .04, 1); --out: clamp(0, (var(--p) - .88) / .03, 1);
    opacity: calc(var(--in) * (1 - var(--out))); translate: 0 calc((1 - var(--in)) * 16px + var(--out) * 16px);
  }
  .js .h-caps { display: grid; }
  .js .cap {
    grid-area: 1 / 1; font-size: 1rem; line-height: 1.45; color: var(--ink);
    --rise: clamp(0, (var(--p) - var(--a)) / .02, 1); --fall: clamp(0, (var(--p) - var(--b) + .02) / .02, 1);
    opacity: calc(var(--rise) * (1 - var(--fall))); translate: 0 calc((1 - var(--rise)) * 8px);
  }
  .js .cap-2 { display: block; font-weight: 700; opacity: clamp(0, (var(--p) - var(--a2)) / .02, 1); }
  .js .h-rail { position: relative; padding-top: 12px; }
  .js .rail-fill { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--lg-blue), var(--lg-teal)); scale: var(--p) 1; transform-origin: 0 50%; }
  .js .h-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
  .js .rail-steps { display: flex; justify-content: space-between; font: 500 .8125rem/1 var(--f-body); }
  .js .rail-steps li { --on: calc(clamp(0, (var(--p) - var(--a)) * 1000, 1) * clamp(0, (var(--b) - var(--p)) * 1000, 1)); color: var(--ink); opacity: calc(.42 + .58 * var(--on)); }

  @media (max-height: 820px) and (min-width: 821px) {
    .js .fmeta { display: none; }
    .js .h-chip { display: none; }
    .js .h-hint { display: none; }
  }

  /* phones and small tablets: photo on top, a card deck below */
  @media (max-width: 820px) {
    .js .hero { height: 360vh; --zmax: .1; --cx: .5; --cy: .5; }
    .js .h-copy { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--nav-h) + 30px); translate: 0 calc(var(--e) * -40px); gap: 14px; }
    .js .h-copy h1 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.6rem); }
    .js .h-copy .lead { font-size: 1rem; }
    .js .h-copy .btn-quiet, .js .h-hint { display: none; }
    .js .h-small { font-size: .875rem; }
    .js .h-notice { --nw: min(400px, 86vw); --ox: 0px; --oy: calc(100svh - var(--nav-h) - 130px); top: calc(var(--nav-h) + 30px); padding: 20px; }
    .js .h-view { inset: calc(var(--nav-h) + 16px) 0 auto 0; height: 44svh; }
    .js .h-findings { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--nav-h) + 28px + 44svh); gap: 10px; }
    .js .h-chip { display: none; }
    .js .h-cards { display: block; position: relative; height: calc(92px + 3 * 10px); }
    .js .fcard {
      --nx: calc(clamp(0, (var(--p) - var(--a) - .095) / .02, 1) * clamp(0, 4 - var(--i), 1)); /* the last card stays */
      position: absolute; left: 0; right: 0; top: calc((var(--i) - 1) * 10px); min-height: 92px;
      opacity: calc(var(--e) * (1 - var(--fe)) * (1 - var(--nx)));
      translate: 0 calc((1 - var(--e)) * 40px + var(--fe) * -30vh - var(--nx) * 10px); scale: calc(1 - var(--nx) * .05);
    }
    .js .fmeta { display: none; }
    .js .h-total { padding: 10px 14px; }
    .js .h-total .tn, .js .h-total .tchk { display: none; }
    .js .h-exhibit {
      --xw: min(400px, calc(100vw - 2 * var(--gutter)));
      top: calc(var(--nav-h) + 30px); padding: 18px;
      translate: 0 calc((1 - var(--e)) * 46vh - var(--e9) * 4svh); scale: calc(1 - var(--e9) * .14);
    }
    .js .h-ex-vf { --vf-inset: -10px; --vf-len: 28px; }
    .js .h-close { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 24px; padding: 20px; gap: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-2); translate: 0 calc((1 - var(--e)) * 28px); }
    .js .h-close-line { font-size: 1.6rem; }
    .js .h-close .btn-quiet { display: none; }
    .js .h-plate { left: var(--gutter); right: var(--gutter); width: auto; bottom: 14px; padding: 12px 14px 10px; gap: 10px; }
    .js .cap { font-size: .9375rem; }
  }
  @media (max-width: 820px) and (max-height: 720px) {
    .js .h-caps { display: none; }
  }
}

/* ============================== INSIGHT ============================== */
.insight { padding-block: clamp(96px, 12vw, 160px) 0; }
.insight-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.insight-copy { display: grid; gap: 20px; }
.insight-turn { font: 600 1.35rem/1.35 var(--f-display); font-stretch: 94%; letter-spacing: -.01em; max-width: 22em; color: var(--ink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.cmp-label { font: 500 .8125rem/1 var(--f-body); color: var(--ink-3); margin-bottom: 10px; }
.county { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.sheet { font: 400 .8125rem/1 var(--f-mono); font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 10px; }
.sheet .row { display: grid; grid-template-columns: 1.9fr .8fr .7fr .7fr 1fr; }
.sheet .row > span { padding: 11px 10px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .row.head > span { border-top: 0; background: var(--surface-2); font: 600 .75rem/1 var(--f-body); color: var(--ink-2); }
.sheet .row.head > span:first-child { border-top-left-radius: 10px; }
.sheet .row.head > span:last-child { border-top-right-radius: 10px; }
.sheet .ghost { color: var(--ink-3); }
.sheet .me { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.sheet .cond-cell { position: relative; overflow: visible; }
.cond-cell .vf { --vf-inset: 3px 0; --vf-len: 9px; --vf-r: 6px; --vf-w: 2px; }
.yours { position: relative; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; }
.yours .media { aspect-ratio: 1; border-radius: 12px; order: 2; }
.yours .cmp-label { order: 1; }
.yours .vf { z-index: 1; --vf-inset: 30% 18% 22% 40%; --vf-len: 28%; --vf-w: 3px; }
.wipe { display: none; }
.insight-more { padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.insight-more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.insight-body { display: grid; gap: 18px; color: var(--ink-2); max-width: 34em; }
.insight-body p:last-child { color: var(--ink); font-weight: 500; }
.contrast { display: grid; gap: 0; }
.contrast > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contrast dt { font: 500 .78rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.contrast .you dt { color: var(--teal); }
.contrast .you dd { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .insight-grid, .insight-more-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .sheet .row { grid-template-columns: 1.7fr .7fr .6fr .9fr; }
  .sheet .row > span:nth-child(3) { display: none; }
  .contrast > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .insight { height: 280vh; padding: 0; }
  .js .insight > .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: var(--nav-h); overflow: clip; }
  .js .compare {
    --t: clamp(0, (var(--p) - .24) / .46, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    display: block; aspect-ratio: 5 / 4; max-height: 74svh; justify-self: end; width: 100%;
  }
  .js .county, .js .yours { position: absolute; inset: 0; }
  .js .county { display: grid; align-content: center; }
  .js .cond-cell .vf { --k: clamp(0, (var(--p) - .08) / .08, 1); --ke: calc(var(--k) * var(--k) * (3 - 2 * var(--k))); opacity: var(--ke); scale: calc(1.6 - .6 * var(--ke)); }
  .js .yours { clip-path: inset(0 calc((1 - var(--e)) * 100%) 0 0 round 22px); align-content: stretch; grid-template-rows: auto 1fr; }
  .js .yours .media { aspect-ratio: auto; }
  .js .yours .vf {
    --k: clamp(0, (var(--p) - .66) / .08, 1);
    --vf-inset: calc(22px + 30%) 18% 22% 40%;
    opacity: var(--k); scale: calc(1.5 - .5 * var(--k));
  }
  .js .wipe { display: block; position: absolute; inset: -12px 0; pointer-events: none; translate: calc(var(--e) * 100%) 0; opacity: calc(clamp(0, (var(--p) - .2) / .04, 1) * (1 - clamp(0, (var(--p) - .68) / .04, 1))); }
  .js .wipe i { position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--lg-blue), var(--lg-teal)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
  .js .insight-turn {
    --t: clamp(0, (var(--p) - .7) / .1, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    opacity: var(--e); translate: 0 calc((1 - var(--e)) * 18px);
  }
  @media (max-width: 900px) {
    .js .insight > .pin { align-content: center; }
    .js .insight-grid { gap: 20px; }
    .js .insight-copy { gap: 10px; }
    .js .insight-copy h2 { font-size: 1.9rem; }
    .js .insight-copy .lead { font-size: .98rem; }
    .js .insight-turn { font-size: 1.1rem; }
    .js .compare { aspect-ratio: 1 / 1; max-height: 44svh; max-width: 44svh; justify-self: center; }
    .js .county { padding: 14px; }
    .js .yours { padding: 14px; }
  }
}

/* ============================== HOW ============================== */
.how { padding-block: clamp(96px, 12vw, 160px); --step-w: min(30rem, 78vw); --gap: 28px; }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.how-head > div:first-child { display: grid; gap: 14px; }
.how-head h2 { max-width: 13em; }
.how-progress { display: none; }
.track { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 56px auto 0; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step-vis { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.step-text { display: grid; gap: 10px; padding: 8px 8px 8px 0; }
.step-text p:not(.step-n) { color: var(--ink-2); }
.step-text .step-foot { font-size: .875rem; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }
.step-n { font: 600 .875rem/1 var(--f-mono); color: var(--accent); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); }

.vis-notice { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; align-items: center; padding: 18px; background: linear-gradient(160deg, var(--tint-1), var(--surface-2)); }
.mini-doc { position: relative; aspect-ratio: 8.5 / 11; background: var(--doc); border-radius: 3px; box-shadow: var(--shadow-doc); padding: 14% 12%; display: grid; gap: 8%; align-content: start; overflow: hidden; rotate: -2deg; }
.mini-doc i { display: block; height: 5px; background: var(--doc-line); border-radius: 2px; }
.mini-doc .l1 { height: 9px; width: 70%; background: var(--doc-ink); opacity: .75; }
.mini-doc .l2 { width: 60%; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(transparent, color-mix(in srgb, var(--lg-teal) 30%, transparent)); border-bottom: 2px solid var(--lg-teal); }
.pulled { display: grid; gap: 8px; }
.pulled li { display: grid; gap: 2px; padding: 9px 11px; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pulled span { font-size: .75rem; color: var(--ink-3); }
.pulled b { font: 600 .875rem/1.2 var(--f-mono); }
.vis-phone .media { position: absolute; inset: 0; }
.vis-phone .vf { --vf-inset: 26% 22%; --vf-len: 22%; --vf-w: 3px; }
.vis-list { display: grid; align-content: center; gap: 8px; padding: 16px; background: linear-gradient(160deg, var(--surface-2), var(--tint-2)); }
.lrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: 'th t pill' 'th t m'; gap: 2px 10px; align-items: center; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); }
.lthumb { grid-area: th; width: 40px; height: 40px; border-radius: 8px; }
.lrow > span:nth-child(2) { grid-area: t; display: grid; min-width: 0; }
.lrow b { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow small { font-size: .75rem; color: var(--ink-3); }
.lrow .pill { grid-area: pill; justify-self: end; height: 20px; font-size: .72rem; padding: 0 8px; }
.lrow .m { grid-area: m; font-size: .8rem; font-weight: 600; justify-self: end; }
.vis-exhibit .media { position: absolute; inset: 0; }
.mini-page { position: absolute; left: 7%; top: 14%; width: 34%; aspect-ratio: 8.5 / 11; background: var(--doc); color: var(--doc-ink); border-radius: 2px; box-shadow: var(--shadow-doc); padding: 9% 8%; display: grid; gap: 6px; align-content: start; rotate: 3deg; }
.mini-page b { font: 600 .62rem/1.25 var(--f-serif); }
.mini-page > i { display: block; height: 3px; background: var(--doc-line); border-radius: 2px; }
.mini-page > i.s { width: 60%; }
.mp-row { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; font: 500 .5rem/1 var(--f-mono); border-top: 1px solid var(--doc-line); padding-top: 5px; }
.mp-row em { font-style: normal; }
.mp-row i { height: 3px; background: var(--doc-line); }
@media (max-width: 760px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px; }
  .step-text { padding: 0 6px 8px; }
  .how-head { display: block; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .how { height: 330vh; padding: 0; }
  .js .how > .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: grid; grid-template-columns: 100%; grid-template-rows: auto auto; align-content: center; padding-top: calc(var(--nav-h) + 30px); padding-bottom: 4svh; gap: 4svh; }
  .js .how-progress { display: block; width: 180px; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; margin-bottom: 14px; }
  .js .how-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--lg-blue), var(--lg-teal)); scale: var(--p) 1; transform-origin: 0 50%; }
  .js .track {
    --t: clamp(0, (var(--p) - .04) / .9, 1); --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
    --travel: max(0px, var(--gl) * 2 + 4 * var(--step-w) + 3 * var(--gap) - 100vw);
    width: max-content; margin: 0; padding-inline: var(--gl); display: flex; gap: var(--gap); align-items: stretch;
    translate: calc(var(--e) * var(--travel) * -1) 0;
  }
  .js .step { width: var(--step-w); grid-template-columns: minmax(0, 1fr); align-content: start; padding: 16px; align-self: stretch; }
  .js .step-vis { aspect-ratio: auto; height: clamp(200px, 38svh, 360px); }
  .js .step-text { padding: 4px 8px 8px; }
  /* the scan line sweeps the notice as step 1 passes */
  .js .scanline { translate: 0 calc(clamp(0, var(--p) / .25, 1) * 240%); }
}

/* ============================== FOUNDER ============================== */
.founder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.packet { position: sticky; top: calc(var(--nav-h) + 60px); display: grid; gap: 18px; justify-items: center; }
.sheet-stack { position: relative; width: min(340px, 72vw); aspect-ratio: 8.5 / 11; }
.pg { position: absolute; inset: 0; background: var(--doc); border-radius: 3px; box-shadow: 0 1px 1px rgba(20, 28, 39, .06), 0 10px 30px -14px rgba(20, 28, 39, .3); transform-origin: 50% 90%; }
.pg.p5 { rotate: -7deg; translate: -10px 8px; }
.pg.p4 { rotate: -4.5deg; translate: -6px 5px; }
.pg.p3 { rotate: -2.5deg; translate: -3px 3px; }
.pg.p2 { rotate: 2deg; translate: 3px 1px; }
.pg.p1 { rotate: -.5deg; padding: 11% 10%; display: grid; gap: 9px; align-content: start; color: var(--doc-ink); }
.pg.p1 b { font: 600 1rem/1.25 var(--f-serif); margin-bottom: 4px; }
.pg.p1 i { display: block; height: 6px; background: var(--doc-line); border-radius: 2px; }
.pg.p1 i.s { width: 58%; }
.pg-photo { display: block; aspect-ratio: 16 / 9; margin: 6px 0; background: linear-gradient(160deg, #c9d3dc, #9fadb9); border-radius: 2px; }
.pg-count { font: 500 .9375rem/1 var(--f-mono); color: var(--ink-2); counter-reset: pg var(--pg); }
.pgn::before { content: counter(pg); }
.founder-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; margin-top: 8px; }
.founder-photo.missing { display: none; }
.founder-copy { display: grid; gap: 24px; }
.founder-quote { display: grid; gap: 16px; font: 400 1.15rem/1.65 var(--f-serif); color: var(--ink); padding-left: 22px; border-left: 3px solid var(--line-strong); max-width: 36em; }
.founder-by { color: var(--ink-2); }
.founder-by b { color: var(--ink); font-weight: 600; }
.founder-result { border-left: 3px solid var(--lg-teal); padding: 4px 0 4px 20px; display: grid; gap: 8px; }
.fr-num { font: 600 clamp(2rem, 1.5rem + 1.8vw, 3rem)/1 var(--f-mono); letter-spacing: -.03em; }
.fr-note { font-size: var(--fs-small); color: var(--ink-2); max-width: 32em; }
.founder-close { font-weight: 600; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: minmax(0, 1fr); } .packet { position: static; } }

/* ============================== AUDIENCES ============================== */
.aud-bar { display: none; }
.js .aud-bar { display: flex; justify-content: center; position: sticky; top: calc(var(--nav-h) + 22px); z-index: 20; pointer-events: none; padding-top: 8px; }
.aud-switch { pointer-events: auto; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--nav-bg); border: 1px solid var(--line); box-shadow: var(--shadow-1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.aud-switch::before { content: ''; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: translate .5s var(--ease); }
.audience[data-audience='pm'] .aud-switch::before { translate: 100% 0; }
.aud-switch button { position: relative; border: 0; background: none; cursor: pointer; padding: 0 22px; height: 44px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.aud-switch button[aria-selected='true'] { color: var(--bg); }
.js .audience[data-audience='home'] #managers, .js .audience[data-audience='pm'] #homeowners { display: none; }
.aud-panel { view-transition-name: aud-panel; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }

.vignette { border-radius: 22px; padding: 24px 26px; background: linear-gradient(160deg, var(--tint-1), transparent 70%), var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; max-width: 46em; }
.vig-label { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vignette p:last-child { font: 400 1.05rem/1.6 var(--f-serif); color: var(--ink); }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-img { aspect-ratio: 3 / 2; border-radius: 22px; }
.home-head { display: grid; gap: 18px; justify-items: start; }
.home-head > p:last-child { color: var(--ink-2); }
.home-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); }
.home-points li { padding: 28px 0 28px 30px; border-top: 1px solid var(--line); display: grid; gap: 8px; position: relative; align-content: start; }
.home-points li::before { content: ''; position: absolute; left: 0; top: 34px; width: 14px; height: 14px; border-left: 2.5px solid var(--lg-blue); border-top: 2.5px solid var(--lg-blue); border-radius: 4px 0 0 0; }
.home-points p { color: var(--ink-2); max-width: 32em; }
.home-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.home-cta { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 860px) {
  .home-hero, .home-points, .home-foot { grid-template-columns: minmax(0, 1fr); }
}

.pm-head { display: grid; gap: 20px; justify-items: start; max-width: 820px; }
.pm-body { display: grid; gap: 14px; color: var(--ink-2); max-width: 40em; }
.pm-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.tile { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.tile h3 { font-size: 1.25rem; }
.t-doors { grid-column: span 7; timeline-scope: --doors; }
.t-roles { grid-column: span 5; }
.t-photo { grid-column: span 5; padding: 0; min-height: 300px; }
.t-cal { grid-column: span 3; }
.t-repairs { grid-column: span 4; }
.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.doors-count { font: 500 .9375rem/1 var(--f-mono); color: var(--ink-2); counter-reset: dc var(--dc); }
.doors-count .dc::before { content: counter(dc); color: var(--teal); font-weight: 600; }
.doors { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.door { position: relative; aspect-ratio: 1; border-radius: 8px; }
.door .media { position: absolute; inset: 0; border-radius: inherit; }
.door::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--lg-teal);
  -webkit-mask: conic-gradient(#000 0 0) 0 0 / 34% 34% no-repeat, conic-gradient(#000 0 0) 100% 0 / 34% 34% no-repeat, conic-gradient(#000 0 0) 0 100% / 34% 34% no-repeat, conic-gradient(#000 0 0) 100% 100% / 34% 34% no-repeat;
          mask: conic-gradient(#000 0 0) 0 0 / 34% 34% no-repeat, conic-gradient(#000 0 0) 100% 0 / 34% 34% no-repeat, conic-gradient(#000 0 0) 0 100% / 34% 34% no-repeat, conic-gradient(#000 0 0) 100% 100% / 34% 34% no-repeat; }
.door.pending::after { border-color: var(--line-strong); border-style: dashed; }
.door.pending .media { opacity: .3; filter: grayscale(1); }
.door b { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--amber); color: #fff; font: 600 11px/18px var(--f-mono); text-align: center; z-index: 1; }
:root[data-theme='dark'] .door b { color: #141c27; }

.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .9375rem; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.role-list { display: grid; gap: 12px; }
.role-list dt { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.role-list dd { font-size: var(--fs-small); color: var(--ink-2); margin-top: 3px; }
.js .role-list > div:not(.on) { display: none; }
.js .role-list { min-height: 5.6em; align-content: start; }
.roles, .role-list, .ui-table { view-transition-name: none; }
.ui-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .875rem; }
.js .ui-table { view-transition-name: role-table; }
.ui-row { display: grid; grid-template-columns: 1.5fr 1.4fr .9fr .8fr; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.ui-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-row > span:last-child { text-align: right; }
.ui-h { border-top: 0; background: var(--surface-2); font-weight: 600; font-size: .78rem; color: var(--ink-2); }
.tax-hidden { display: none; padding: 10px 12px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); background: var(--surface-2); }
.ui-table[data-view='tech'] .ui-row { grid-template-columns: 1.6fr 1.6fr .8fr; }
.ui-table[data-view='tech'] .tax { display: none; }
.ui-table[data-view='tech'] .tax-hidden { display: block; }
.ui-table[data-view='owner'] .ui-row:not(.ui-h):not([data-owner='okafor']) { display: none; }

.t-photo > img { position: absolute; inset: 0; object-position: 70% 50%; }
.cal-m { font-weight: 600; margin-bottom: 8px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font: 500 .75rem/1 var(--f-mono); text-align: center; }
.cal-g span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; position: relative; color: var(--ink-2); }
.cal-g .dow { color: var(--ink-3); aspect-ratio: auto; padding-bottom: 4px; font-family: var(--f-body); }
.cal-g .due { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.cal-g .due.hot { background: var(--crit-soft); color: var(--crit); }
.cal-g .due i { position: absolute; top: -5px; right: -5px; font-style: normal; font-size: 9.5px; min-width: 15px; height: 15px; line-height: 15px; border-radius: 8px; color: var(--surface); background: var(--crit); }
.cal-g .due:not(.hot) i { background: var(--amber); }
.cal-note { font-size: .875rem; color: var(--ink-2); margin-top: 12px; }
.rep { display: grid; }
.rep li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't pill' 't m'; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--line); align-items: center; }
.rep li:first-child { border-top: 0; }
.rep li > span:first-child { grid-area: t; display: grid; }
.rep b { font-weight: 600; font-size: .9375rem; }
.rep small { font-size: .8125rem; color: var(--ink-3); }
.rep .pill { grid-area: pill; justify-self: end; height: 22px; font-size: .75rem; }
.rep .m { grid-area: m; justify-self: end; font-size: .8125rem; color: var(--ink-2); }

.features { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 24px; }
.features-h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.feat-list { columns: 2; column-gap: clamp(32px, 5vw, 72px); }
.feat-list li { break-inside: avoid; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-small); }
.feat-list b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.pm .vignette { margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 1080px) {
  .t-doors, .t-roles { grid-column: span 12; }
  .t-photo { grid-column: span 12; aspect-ratio: 16 / 9; min-height: 0; }
  .t-cal { grid-column: span 5; }
  .t-repairs { grid-column: span 7; }
}
@media (max-width: 680px) {
  .t-cal, .t-repairs { grid-column: span 12; }
  .doors { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .door:nth-child(n + 37) { display: none; }
  .tile { padding: 18px; }
  .ui-row { grid-template-columns: 1.4fr 1fr .6fr; font-size: .8125rem; }
  .ui-row > span:nth-child(2) { display: none; }
  .ui-table[data-view='tech'] .ui-row { grid-template-columns: 1.6fr .6fr; }
  .feat-list { columns: 1; }
}

/* view transitions: audience switch and role preview */
::view-transition-group(aud-panel) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(aud-panel) { animation: .3s var(--ease) both vt-out; }
::view-transition-new(aud-panel) { animation: .55s var(--ease) .08s both vt-in; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@keyframes vt-out { to { opacity: 0; transform: translateX(calc(var(--vt-dir, 1) * -40px)); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(calc(var(--vt-dir, 1) * 40px)); } }
::view-transition-group(role-table) { animation-duration: .4s; animation-timing-function: var(--ease); }

/* ============================== EXHIBIT ============================== */
.exhibit { overflow: clip; }
.ex-head { display: grid; gap: 18px; max-width: 760px; }
.ex-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; margin-top: clamp(48px, 6vw, 80px); align-items: center; perspective: 1800px; }
.ex-paper { padding: clamp(24px, 4vw, 56px); max-width: 820px; transform-origin: 50% 0; }
.ex-paper .doc-head b { font-size: 1.15rem; }
.ex-paper .ex-kicker { font: 500 .7rem/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin-top: 14px; }
.ex-paper .ex-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin-top: 6px; }
.ex-sub { font-size: .8125rem; color: var(--doc-2); margin-top: 4px; }
.ex-body { font: 400 .98rem/1.6 var(--f-serif); margin-top: 8px; max-width: 46em; }
.ex-paper .ex-sched { margin-top: 26px; display: flex; align-items: center; gap: 8px; }
.ex-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--accent); color: #fff; font: 600 .65rem/1 var(--f-mono); letter-spacing: 0; flex: none; }
.ex-paper .ex-table { font-size: .875rem; }
.ex-paper .ex-table td small { display: block; font-size: .72rem; color: var(--doc-2); margin-top: 2px; font-family: var(--f-body); }
.ex-math { max-width: 460px; }
.ex-math td:first-child { font-family: var(--f-body); white-space: normal; font-size: 1em; }
.ex-plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.ex-plates figure { display: grid; gap: 6px; }
.ex-plates .media { aspect-ratio: 4 / 3; border-radius: 2px; }
.ex-plates figcaption { font-size: .7rem; color: var(--doc-2); }
.ex-sig { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 34px; font-size: .72rem; color: var(--doc-2); }
.ex-sig > span { border-top: 1px solid var(--doc-ink); padding-top: 6px; display: flex; align-items: center; gap: 8px; }
.ex-paper .ex-fine { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--doc-line); font-size: .72rem; }
.ex-notes { display: grid; gap: 22px; counter-reset: note; }
.ex-notes li { display: grid; gap: 4px; padding-left: 40px; position: relative; counter-increment: note; }
.ex-notes li::before { content: counter(note); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 .8125rem/1 var(--f-mono); color: #fff; background: var(--accent); }
.ex-notes b { font-weight: 600; }
.ex-notes span { color: var(--ink-2); font-size: var(--fs-small); }
.ex-below { display: grid; gap: 14px; justify-items: start; margin-top: clamp(40px, 5vw, 64px); max-width: 46em; color: var(--ink-2); }
.ex-not { color: var(--ink); font-weight: 600; }
.ex-below .btn { margin-top: 8px; }
@media (max-width: 1000px) {
  .ex-stage { grid-template-columns: minmax(0, 1fr); }
  .ex-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ex-notes { grid-template-columns: minmax(0, 1fr); }
  .ex-paper .ex-table th:nth-child(3), .ex-paper .ex-table td:nth-child(3), .ex-paper .ex-table th:nth-child(4), .ex-paper .ex-table td:nth-child(4) { display: none; }
  .ex-paper .ex-table tr.tot td[colspan] { display: table-cell; }
  .ex-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-plates figure:nth-child(3) { display: none; }
  .doc-head { flex-wrap: wrap; }
  .doc-meta { text-align: left; }
}

/* ============================== TRUST ============================== */
.trust .wrap > .eyebrow { margin-bottom: 18px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.is, .isnt { padding: clamp(24px, 3vw, 36px); border-radius: 22px; display: grid; gap: 18px; align-content: start; }
.is { background: var(--surface); border: 1px solid var(--line); }
.isnt { background: var(--sunk); border: 1px solid var(--line); }
.is ul, .isnt ul { display: grid; gap: 14px; }
.is li, .isnt li { padding-left: 30px; position: relative; }
.is li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); rotate: -45deg; }
.isnt li::before { content: ''; position: absolute; left: 3px; top: .72em; width: 13px; height: 2.5px; background: var(--ink-3); border-radius: 2px; }
.privacy { margin-top: 16px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--tint-1), transparent 60%), var(--surface); display: grid; gap: 22px; }
.privacy dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.privacy dt { font-weight: 600; margin-bottom: 6px; }
.privacy dd { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 960px) { .privacy dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .trust-grid, .privacy dl { grid-template-columns: minmax(0, 1fr); } }

/* ============================== PRICING ============================== */
.pricing .wrap > .eyebrow { margin-bottom: 18px; }
.pricing .wrap > .lead { margin-top: 18px; }
.plans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.plan { position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(26px, 3.4vw, 40px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.plan-label { font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.plan-for { color: var(--ink-2); }
.price { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price b { font: 600 2.6rem/1 var(--f-mono); letter-spacing: -.03em; }
.price small { color: var(--ink-3); font-size: var(--fs-small); }
.tiers { display: grid; border-block: 1px solid var(--line); }
.tiers li { display: grid; grid-template-columns: 7em auto 1fr; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.tiers li:first-child { border-top: 0; }
.tier-n { font-weight: 600; }
.tiers b { font: 600 1.35rem/1 var(--f-mono); letter-spacing: -.02em; }
.tiers small { color: var(--ink-3); font-size: .875rem; line-height: 1.4; }
.trial { font-size: .9375rem; color: var(--ink); background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; }
.plan ul:not(.tiers) { display: grid; gap: 10px; }
.plan ul:not(.tiers) li { padding-left: 26px; position: relative; }
.plan ul:not(.tiers) li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 11px; height: 6px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); rotate: -45deg; }
.plan > .btn { justify-self: start; margin-top: 6px; }
html[data-aud='home'] .plan-home, html[data-aud='pm'] .plan-pm { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent), var(--shadow-1); }
.fine { font-size: .875rem; color: var(--ink-3); margin-top: 28px; max-width: 64em; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .tiers li { grid-template-columns: 1fr auto; } .tiers small { grid-column: 1 / -1; } }

/* ============================== FAQ ============================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.faq-head { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 48px); }
.faq-more { color: var(--ink-2); font-size: var(--fs-small); }
.faq-more a { color: var(--accent); font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 22px 0; font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 28px; height: 28px; border-radius: 9px; background: var(--sunk) no-repeat center / 12px 12px; background-image: linear-gradient(var(--ink-2), var(--ink-2)), linear-gradient(var(--ink-2), var(--ink-2)); background-size: 12px 2px, 2px 12px; transition: rotate .4s var(--ease), background-color .2s; }
.faq details[open] summary::after { rotate: 135deg; background-color: var(--accent-soft); }
.faq summary:hover::after { background-color: var(--accent-soft); }
.faq .ans { padding: 0 44px 24px 0; color: var(--ink-2); }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .45s var(--ease), opacity .35s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .faq-head { position: static; } }

/* ============================== CTA ============================== */
.cta-frame { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; padding: clamp(56px, 9vw, 120px) clamp(20px, 6vw, 96px); }
.cta-frame h2 { max-width: 15em; }
.cta-frame .lead { max-width: 30em; }
.cta-frame .cta-row { justify-content: center; }
.cta-vf { --vf-w: 4px; --vf-len: clamp(40px, 7vw, 88px); --vf-r: 26px; }

/* ============================== FOOTER ============================== */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--surface-2); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 10px; color: var(--ink-2); font-size: var(--fs-small); }
.foot-name { font: 650 1.2rem/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 24px 48px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols p { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.foot-cols a { text-decoration: none; color: var(--ink-2); font-size: .9375rem; }
.foot-cols a:hover { color: var(--ink); }
.disclaim { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); line-height: 1.6; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; font-size: .875rem; color: var(--ink-3); flex-wrap: wrap; }
.theme { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.theme button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: .8125rem; color: var(--ink-2); }
.theme button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .disclaim { grid-template-columns: minmax(0, 1fr); } .foot-cols { grid-template-columns: repeat(2, auto); } }

/* ============================== REVEALS ============================== */
@media (prefers-reduced-motion: no-preference) {
  /* native: scrubbed by each element's own view timeline */
  @supports (animation-timeline: view()) {
    .js .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .js .home-points li:nth-child(2n), .js .contrast > div:nth-child(2) { animation-range: entry 12% cover 34%; }
    .js .contrast > div:nth-child(3) { animation-range: entry 18% cover 40%; }

    /* exhibit: tilts from 3D to flat and scales up as it arrives */
    .js .ex-paper { animation: ex-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .js .ex-notes li { animation: rv linear both; animation-timeline: view(); animation-range: entry calc(10% + var(--i) * 6%) cover calc(30% + var(--i) * 4%); }

    /* founder: pages fan out and the counter runs to 52 */
    .js .packet { view-timeline: --packet block; }
    .js .pg-count { animation: pg-run linear both; animation-timeline: --packet; animation-range: entry 30% cover 55%; }
    .js .pg.p5, .js .pg.p4, .js .pg.p3, .js .pg.p2 { animation: fan linear both; animation-timeline: --packet; animation-range: entry 20% cover 50%; }

    /* managers: doors light up in sequence; the header count shares the grid's timeline via timeline-scope */
    .js .doors { view-timeline: --doors block; }
    .js .door.lit .media { animation: door-lit linear both; animation-timeline: --doors; animation-range: entry calc(30% + var(--i) * 1.6%) entry calc(60% + var(--i) * 1.6%); }
    .js .door.lit::after, .js .door b { animation: door-mark linear both; animation-timeline: --doors; animation-range: entry calc(40% + var(--i) * 1.6%) entry calc(65% + var(--i) * 1.6%); }
    .js .doors-count { animation: dc-run linear both; animation-timeline: --doors; animation-range: entry 30% cover 60%; }

    /* closing viewfinder: brackets settle in and shift from all-blue to the brand split (@property color) */
    .js .cta-vf { animation: cta-lock linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }

  /* fallback: IntersectionObserver adds .in */
  .js:not(.sda) .rv { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .js:not(.sda) .rv.in { opacity: 1; translate: 0 0; }
  .js:not(.sda) .ex-paper { transform: rotateX(30deg) scale(.86) translateY(40px); opacity: .5; transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
  .js:not(.sda) .ex-stage.in .ex-paper { transform: none; opacity: 1; }
  .js:not(.sda) .ex-notes li { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(.4s + var(--i) * .12s); }
  .js:not(.sda) .ex-stage.in .ex-notes li { opacity: 1; translate: 0 0; }
  .js:not(.sda) .door.lit .media { filter: grayscale(1); opacity: .3; transition: filter .6s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--i) * 30ms); }
  .js:not(.sda) .door.lit::after, .js:not(.sda) .door b { opacity: 0; scale: 1.25; transition: opacity .5s var(--ease), scale .5s var(--ease); transition-delay: calc(.15s + var(--i) * 30ms); }
  .js:not(.sda) .t-doors.in .door.lit .media { filter: none; opacity: 1; }
  .js:not(.sda) .t-doors.in .door.lit::after, .js:not(.sda) .t-doors.in .door b { opacity: 1; scale: 1; }
  .js:not(.sda) .doors-count { --dc: 0; transition: --dc 1.6s var(--ease-io) .2s; }
  .js:not(.sda) .t-doors.in .doors-count { --dc: 36; }
  .js:not(.sda) .pg-count { --pg: 1; transition: --pg 1.6s var(--ease-io) .2s; }
  .js:not(.sda) .packet.in .pg-count { --pg: 52; }
  .js:not(.sda) .cta-vf { opacity: 0; scale: 1.06; transition: opacity 1s var(--ease), scale 1.2s var(--ease); }
  .js:not(.sda) .cta-frame.in .cta-vf { opacity: 1; scale: 1; }
}
@keyframes rv { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
@keyframes ex-tilt { from { transform: rotateX(34deg) scale(.82) translateY(60px); opacity: .35; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pg-run { from { --pg: 1; } to { --pg: 52; } }
@keyframes fan { from { rotate: 0deg; translate: 0 0; } }
@keyframes door-lit { from { filter: grayscale(1); opacity: .3; } to { filter: grayscale(0); opacity: 1; } }
@keyframes door-mark { from { opacity: 0; scale: 1.3; } to { opacity: 1; scale: 1; } }
@keyframes dc-run { from { --dc: 0; } to { --dc: 36; } }
@keyframes cta-lock { from { opacity: 0; scale: 1.08; --vf-rc: var(--lg-blue); } 60% { opacity: 1; } to { opacity: 1; scale: 1; --vf-rc: var(--lg-teal); } }

/* ---------- scene progress: native driver ----------
   The section's view timeline, contain range = exactly the pinned stretch. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .js .scene { view-timeline: --scene block; }
    .js .scene > .pin { animation: scene-p linear both; animation-timeline: --scene; animation-range: contain 0% contain 100%; }
  }
}
@keyframes scene-p { from { --p: 0; } to { --p: 1; } }

/* ---------- reduced motion: everything visible, nothing scrubs ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .nav, .aud-bar, .h-plate, .theme { display: none !important; }
}
