/* ════════════════════════════════════════════════════════════════════════════
   FALINE — hidden sublink. Editorial / print-influenced, in the spirit of
   anthropic.com: warm ivory paper, serif display, a single clay accent, hairline
   rules and numbered sections. Calm, confident, not templated.
   ════════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f1eee4;  /* ivory / cloud */
  --band:      #e9e5d8;  /* slightly deeper cream for alternating sections */
  --paper:     #faf8f1;  /* lightest card paper */
  --ink:       #1a1813;  /* warm near-black */
  --ink-2:     #565248;  /* warm grey body */
  --ink-3:     #8c8676;  /* muted captions / kickers */
  --line:      #d8d2c2;  /* hairline rule on paper */
  --line-soft: #e2ddcf;
  --clay:      #bd5a36;  /* terracotta accent — links, marks, small fills */
  --clay-deep: #a44b2c;
  --clay-bright:#d97757; /* the warmer coral, for illustration/flow */
  --clay-tint: #ecd8c9;  /* faint terracotta wash */
  --slate:     #20201c;  /* rare dark warm panel */
  --slate-ink: #ece7da;
  --alert:     #c0492a;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --page-pad: clamp(20px, 4vw, 28px);
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); overflow-x: hidden;
  font-family: var(--sans); line-height: 1.6; letter-spacing: -0.005em;
  font-size: 17px;
}
::selection { background: var(--clay-tint); color: var(--ink); }

/* ── Type ─────────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); line-height: 1.04; letter-spacing: -0.018em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.014em; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.18; letter-spacing: -0.01em; }
em, .em { font-style: italic; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3);
  margin-bottom: 22px;
}
.kicker b { color: var(--clay); font-weight: 700; font-variant-numeric: tabular-nums; }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--clay); opacity: 0.65; }
.kicker::after { content: ''; width: 22px; height: 1px; background: var(--clay); opacity: 0.65; }
.hero-kicker::before,
.hero-kicker::after { display: none; }

.lead {
  font-family: var(--sans); font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.55; color: var(--ink-2); font-weight: 400; max-width: 46ch;
  margin-top: 22px;
}

.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;
}

/* ── Buttons / links ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  background: var(--clay); color: #fdf6f0; padding: 13px 24px;
  border: 1px solid var(--clay); border-radius: 9px; text-decoration: none;
  cursor: pointer; transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(164,75,44,0.7); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-3); box-shadow: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
  font-family: var(--sans); font-weight: 500; font-size: 1rem; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.25s, color 0.25s;
}
.text-link .arr { color: var(--clay); transition: transform 0.25s var(--ease); }
.text-link:hover { border-color: var(--clay); }
.text-link:hover .arr { transform: translateX(3px); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(241, 238, 228, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(241, 238, 228, 0.9); }
.nav-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--page-pad); height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 400; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { color: var(--clay); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 36px; height: 36px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* scroll-margin-top: native anchor + smooth-scroll both land below the 64px nav */
#home, #privacy, #dashboard, #affordability, #hardware { scroll-margin-top: 64px; }
/* #how is the steps heading inside the pinned scrolly block. A small offset lands
   it just below the nav in BOTH the two-column (animation pinned beside) and the
   stacked (animation above) layouts — its preceding content tucks behind the nav. */
#how { scroll-margin-top: 88px; }

.scrolly { padding-top: clamp(56px, 9vh, 120px); }

/* ── Section frame ────────────────────────────────────────────────────────── */
.chapter { padding: clamp(80px, 11vw, 150px) var(--page-pad); }
.chapter.band { background: var(--band); }
/* Standalone content sections fill one screen (viewport minus the 64px nav)
   with their content centered. The tall scrollytelling sections
   (.scrolly / .statement / .hub-scrolly) are excluded; so is .hub-intro, which
   is a short lead-in pinned above the hub scrolly. */
.chapter:not(.hub-intro) {
  min-height: calc(100dvh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(36px, 5vh, 64px); padding-bottom: clamp(36px, 5vh, 64px);
}
.chapter:not(.hub-intro) .section-head { margin-bottom: clamp(28px, 4vh, 48px); }
.chapter:not(.hub-intro) .section-head,
.hub-intro .section-head { position: relative; }
.chapter:not(.hub-intro) .section-head > .kicker,
.hub-intro .section-head > .kicker {
  position: absolute;
  bottom: 100%;
  margin: 0 0 22px;
}
.chapter:not(.hub-intro) .section-head:not(.center) > .kicker,
.hub-intro .section-head:not(.center) > .kicker { left: 0; }
.chapter:not(.hub-intro) .section-head.center > .kicker,
.hub-intro .section-head.center > .kicker {
  left: 50%;
  transform: translateX(-50%);
}
.wrap { max-width: 1160px; margin: 0 auto; }
.section-head { max-width: 1160px; margin: 0 auto clamp(48px, 6vw, 80px); }
.section-head h2 { max-width: 18ch; }
.section-head.center { text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── Hero + How-it-works scrollytelling (one shared, pinned animation) ─────── */
/* 2-col grid: the narrative (hero copy, then the steps) scrolls in the left
   column while the animation in the right column is position:sticky and stays
   pinned across both rows. Collapses to a single stacked column on narrow screens. */
/* The section's bottom space lives on the steps column (not as section padding) so the
   sticky stage's grid area reaches the section's colour-change edge — keeping the
   animation pinned through the whole How-it-works block instead of releasing early at
   the last step. */
.scrolly { padding: 0 var(--page-pad); }
.scrolly-grid {
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: 0.94fr 1.06fr; gap: clamp(36px, 5vw, 80px);
  grid-template-areas: "hero stage" "steps stage"; align-items: start;
}
/* Anchor the hero copy a controlled distance below the nav without leaving a wide
   dead band at the top. The pinned animation uses the same offset so both columns
   still line up cleanly on the first screen. */
.scrolly-hero { grid-area: hero; min-height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(56px, 9vh, 120px); }
.scrolly-stage { grid-area: stage; position: sticky; top: var(--nav-h); align-self: start; height: calc(100dvh - var(--nav-h)); display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(40px, 8vh, 96px); }
.scrolly-stage .device-viewer { width: 100%; }
.scrolly-steps { grid-area: steps; padding-bottom: clamp(36px, 6vw, 84px); }
.scrolly-steps .section-head { margin-bottom: clamp(8px, 1vw, 16px); }
.scrolly-steps .step-body { grid-template-columns: 1fr; gap: 10px; }
.hero-text { max-width: 600px; }
.hero-text h1 { margin-top: 6px; }
.hero-text h1 .em { color: var(--clay); }
.hero-sub { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--ink-2); margin-top: 26px; max-width: 40ch; }
.hero-actions { display: flex; gap: 24px; align-items: center; margin-top: 38px; flex-wrap: wrap; }

.device-viewer {
  position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: clamp(280px, 44vw, 380px);
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(125% 110% at 50% 8%, #fcfaf4 0%, #efeadd 60%, #e6e0d1 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 40px 70px -44px rgba(48,40,28,0.5);
}
#node-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#node-canvas:active { cursor: grabbing; }
.viewer-labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
#viewer-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.viewer-leader { stroke: var(--clay); stroke-width: 1; opacity: 0.5; }
.viewer-chip {
  position: absolute; top: 0; left: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--ink);
  background: rgba(250,248,241,0.92); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px -8px rgba(48,40,28,0.5);
}
.viewer-chip .vc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.viewer-hint { position: absolute; top: 16px; left: 18px; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.viewer-controls { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; background: rgba(250,248,241,0.85); border: 1px solid var(--line); border-radius: 10px; padding: 4px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer-controls button { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); background: none; border: none; padding: 7px 15px; border-radius: 7px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.viewer-controls button.active { background: var(--clay); color: #fdf6f0; }
.viewer-controls button:not(.active):hover { color: var(--ink); }

/* ── Hero birds-eye litter map ─────────────────────────────────────────────── */
/* Shown BARE: no card chrome (background/border/shadow), no legend — just the animated
   plan. The SVG is scaled up to fill the space the card used to occupy. (Keeps the
   .device-viewer positioning/aspect/responsive sizing; only the visual frame is stripped.) */
.litter-map { background: none; border: none; box-shadow: none; border-radius: 0; overflow: visible; }
.lm-host { position: absolute; inset: 0; }
.lm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: scale(1.18); transform-origin: center; }
.lm-floor { fill: #f4efe3; }
.lm-grid { stroke: rgba(120,112,96,0.10); stroke-width: 1; }
.lm-wall { fill: none; stroke: rgba(120,112,96,0.5); stroke-width: 1.6; }
.lm-wall-2 { fill: none; stroke: rgba(120,112,96,0.2); stroke-width: 1; }
.lm-link { fill: none; stroke: rgba(120,112,96,0.32); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.lm-link.alert { stroke: var(--alert); stroke-dasharray: none; }
.lm-tray { fill: #fdfbf5; stroke: var(--line); stroke-width: 1.6; filter: drop-shadow(0 3px 6px rgba(48,40,28,0.16)); }
.lm-bed { fill: #ece3d0; stroke: rgba(120,112,96,0.28); stroke-width: 1; }
.lm-grain { fill: rgba(120,112,96,0.34); }
.lm-cam { fill: #fbf7ee; stroke: var(--line); stroke-width: 1.3; }
.lm-lens { fill: var(--clay); }
.lm-fov { fill: var(--clay-bright); }
.lm-shutter { fill: none; stroke: var(--clay); stroke-width: 1.5; }
.lm-cat-b { fill: #b3aa98; }
.lm-cat-t { fill: none; stroke: #b3aa98; stroke-width: 3.5; stroke-linecap: round; }
.lm-pkt { filter: drop-shadow(0 2px 4px rgba(48,40,28,0.25)); }
.lm-pkt-bg { fill: #fdfbf5; stroke: var(--clay); stroke-width: 1.3; }
.lm-pkt-bar { fill: var(--clay); opacity: 0.85; }
.lm-pkt-glyph { fill: rgba(86,82,72,0.5); }
.lm-pkt.alert .lm-pkt-bg { stroke: var(--alert); }
.lm-pkt.alert .lm-pkt-bar { fill: var(--alert); }
.lm-back { fill: var(--alert); filter: drop-shadow(0 0 4px rgba(192,73,42,0.6)); }
.lm-alert-ring { fill: none; stroke: var(--alert); stroke-width: 2; }
.lm-badge-pill { fill: var(--alert); filter: drop-shadow(0 6px 15px rgba(192,73,42,0.4)); }
.lm-badge-text { fill: #fdf6f0; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.lm-hub-ring { fill: none; stroke: var(--clay); stroke-width: 1.5; }
.lm-hub-ring.alert { stroke: var(--alert); stroke-width: 2; }
.lm-hub-body { fill: #fdfbf5; stroke: var(--clay); stroke-width: 2; filter: drop-shadow(0 10px 22px rgba(189,90,54,0.18)); transition: stroke 0.3s; }
.lm-hub.alert .lm-hub-body { stroke: var(--alert); }
.lm-hub-title { fill: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.05em; }
.lm-hub-sub { fill: var(--ink-3); font-family: var(--sans); font-size: 11px; font-weight: 500; }
.lm-hub-dot { fill: var(--clay); }
.lm-hub-status { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.lm-hub-status.mon { fill: var(--clay); }
.lm-hub-status.flag { fill: var(--alert); }
.lm-legend { position: absolute; left: 0; right: 0; bottom: 15px; display: flex; gap: 20px; justify-content: center; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ink-3); pointer-events: none; }
.lm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lm-legend i { width: 8px; height: 8px; border-radius: 2px; }
.lm-legend .lg-cap { background: var(--clay-bright); }
.lm-legend .lg-hub { background: var(--clay); border-radius: 3px; }
.lm-legend .lg-flag { background: var(--alert); border-radius: 50%; }

/* ── Hero entrance ────────────────────────────────────────────────────────── */
[data-hero] { opacity: 0; transform: translateY(20px); }
.hero-ready [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero-ready .hero-text [data-hero]:nth-child(2) { transition-delay: 0.08s; }
.hero-ready .hero-text [data-hero]:nth-child(3) { transition-delay: 0.16s; }
.hero-ready .hero-text [data-hero]:nth-child(4) { transition-delay: 0.24s; }
.hero-ready .device-viewer { transition-delay: 0.2s; }

/* ── Scrubbed statement (word-by-word brighten, on paper) ──────────────────── */
.statement { position: relative; height: calc(220dvh - var(--nav-h)); }
.statement.band { background: var(--band); }
.statement-sticky { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--page-pad); }
.statement-text { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 4.1rem); line-height: 1.16; letter-spacing: -0.015em; max-width: 17ch; }
.statement-text .w { color: rgba(26,24,19,0.16); transition: color 0.12s linear; }
.statement-by { margin-top: 34px; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity 0.5s var(--ease); }
.statement-by.show { opacity: 1; }

/* ── How it works — numbered editorial rows ───────────────────────────────── */
.steps { max-width: 1160px; margin: 0 auto; list-style: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 74px 1fr; gap: clamp(10px, 1.5vw, 24px); padding: clamp(14px, 2vw, 22px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-no { font-family: var(--serif); font-size: 1.35rem; color: var(--clay); line-height: 1; padding-top: 0; }
.step-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr); gap: clamp(12px, 2vw, 28px); align-items: baseline; }
.step-body h3 { margin: 0; }
.step-body p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }

/* ── Privacy / modes ──────────────────────────────────────────────────────── */
.duo { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px, 3vw, 40px); }
.panel .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clay); margin-bottom: 16px; }
.panel h3 { margin-bottom: 14px; }
.panel p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.ticks { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.98rem; color: var(--ink); }
.ticks li::after { content: ''; position: absolute; left: 2px; top: 7px; width: 6px; height: 10px; border: solid var(--clay); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.affordability-panel { display: flex; flex-direction: column; height: 100%; }
.affordability-panel .finance-note { margin-top: 10px; }
.finance-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(250,248,241,0.28);
}
.finance-table th,
.finance-table td {
  height: 38px;
  padding: 0 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.finance-table th {
  height: 26px;
  background: rgba(233,229,216,0.32);
}
.finance-table th span,
.finance-table td span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(140,134,118,0.16);
}
.finance-table th:nth-child(1),
.finance-table td:nth-child(1) { width: 20%; }
.finance-table th:nth-child(2),
.finance-table td:nth-child(2) { width: 48%; }
.finance-table th:nth-child(3),
.finance-table td:nth-child(3) { width: 18%; }
.finance-table th:nth-child(4),
.finance-table td:nth-child(4) { width: 14%; }
.finance-table th:nth-child(1) span { width: 58%; background: rgba(189,90,54,0.24); }
.finance-table th:nth-child(2) span { width: 36%; }
.finance-table th:nth-child(3) span { width: 62%; }
.finance-table th:nth-child(4) span { width: 52%; }
.finance-table td:nth-child(1) span {
  width: 68%;
  height: 9px;
  background: rgba(189,90,54,var(--o,0.76));
}
.finance-table td:nth-child(2) span {
  width: var(--w, 72%);
  height: 9px;
  background: linear-gradient(90deg, rgba(189,90,54,0.28), rgba(189,90,54,0.1));
}
.finance-table td:nth-child(3) span {
  width: var(--w2, 34%);
  height: 8px;
}
.finance-table td:nth-child(4) span {
  width: 54%;
  height: 8px;
}
.finance-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.finance-total span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.finance-total b { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; color: var(--clay); }
#affordability {
  min-height: calc(100dvh - var(--nav-h));
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  padding: clamp(44px, 5.5vh, 72px) var(--page-pad);
}
#affordability .section-head { margin-bottom: 0; }
#affordability .section-head > .kicker { margin-bottom: 12px; }
#affordability .section-head h2 { max-width: 15ch; }
#affordability .duo { width: 100%; }
#affordability .panel { padding: clamp(22px, 2vw, 30px); }
#affordability .panel h3 { color: var(--clay); }
#affordability .finance-list li { padding-top: 10px; padding-bottom: 10px; }
#affordability .ticks { margin-top: 20px; }
#hardware .panel {
  display: grid;
  grid-template-rows: auto minmax(6.8em, 1fr) auto;
  height: 100%;
  min-height: clamp(180px, 15vw, 240px);
  padding: clamp(28px, 3vw, 40px);
}
#hardware .panel h3 { color: var(--clay); }
#hardware .ticks { margin-top: 24px; }

/* ── Hub interface prototype ──────────────────────────────────────────────── */
.hub-ui {
  width: min(100%, calc((100dvh - var(--nav-h)) * 1.6));
  max-width: 1060px;
  aspect-ratio: 16 / 10;
  position: relative;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 70px -44px rgba(48,40,28,0.5);
  overflow: hidden;
}
.hub-ui-viewport { position: absolute; inset: 0; overflow: hidden; }
.hub-ui-canvas {
  position: absolute; left: 0; top: 0;
  width: var(--hub-design-w, 1060px);
  height: var(--hub-design-h, 662.5px);
  display: flex;
  flex-direction: column;
  transform: scale(var(--hub-scale, 1));
  transform-origin: top left;
}
.hub-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.2); }
.hub-eyebrow { display: block; margin-bottom: 3px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.hub-topbar h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.hub-live { flex: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--clay-deep); background: var(--clay-tint); padding: 7px 11px; border-radius: 999px; }
.hub-grid { display: grid; grid-template-columns: 0.92fr 1.55fr; min-height: 560px; }
.hub-cats { border-right: 1px solid var(--line); background: rgba(233,229,216,0.42); }
.cat-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px; min-height: 92px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.cat-row.flagged { background: rgba(192,73,42,0.06); box-shadow: inset 3px 0 0 var(--alert); }
.cat-identity { position: relative; width: fit-content; min-height: 68px; display: flex; align-items: flex-end; justify-content: flex-start; justify-self: start; }
.cat-avatar {
  --fur: #242121; --ear-in: #6f7370; --eye: #f4ab1c; --nose: #4a4641; --mark: rgba(120,116,104,0.7);
  position: absolute; left: 50%; bottom: 16px; z-index: 10; transform: translateX(-50%);
  display: block; width: 86px; height: 51px;
  filter: drop-shadow(0 7px 9px rgba(48,40,28,0.16));
}
.cat-avatar svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cat-head, .cat-ear { fill: var(--fur); }
.cat-ear-shadow { fill: var(--ear-in); }
.cat-eye { fill: var(--eye); }
.cat-eye-hole { fill: #221d19; }
.cat-paw { fill: var(--fur); stroke: rgba(250,248,241,0.7); stroke-width: 0.6; stroke-linejoin: round; }
.cat-toes { fill: none; stroke: var(--ear-in); stroke-opacity: 0.55; stroke-width: 1; stroke-linecap: round; }
.cat-nose { fill: var(--nose); }
.cat-whiskers { fill: none; stroke: var(--mark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cat-copy { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding-top: 38px; text-align: center; }
.cat-copy b { display: block; font-size: 0.98rem; line-height: 1; text-shadow: 0 1px 0 rgba(250,248,241,0.85), 0 0 8px rgba(250,248,241,0.72); }
.cat-copy small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 0.78rem; line-height: 1.35; }
.cat-state { align-self: end; margin-bottom: 9px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4a7c59; }
.cat-state.alert { color: var(--alert); }
.hub-detail { padding: 22px; }
.hub-alert { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px; background: rgba(192,73,42,0.06); border: 1px solid rgba(192,73,42,0.2); border-radius: 14px; }
.hub-alert b { display: block; color: var(--alert); font-size: 1rem; line-height: 1.25; }
.hub-alert small { display: block; margin-top: 4px; color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; }
.hub-investigate { align-self: center; border: 1px solid var(--alert); background: var(--alert); color: #fff8f1; border-radius: 9px; padding: 10px 13px; font-family: var(--sans); font-size: 0.82rem; font-weight: 700; cursor: default; pointer-events: none; transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.hub-investigate:hover { transform: translateY(-1px); background: var(--clay-deep); }
.hub-log { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(250,248,241,0.72); }
.hub-log-head {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(233,229,216,0.34);
}
.hub-log-head span, .hub-log-row > span, .media-tile span { display: block; color: var(--ink-3); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hub-log-head span:first-child { grid-column: 1 / 3; }
.hub-log-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; gap: 14px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
}
.hub-log-row:last-child { border-bottom: none; }
.hub-log-row time { color: var(--ink-3); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hub-log-row b { display: block; color: var(--ink); font-size: 0.92rem; line-height: 1.2; }
.hub-log-row small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 0.82rem; line-height: 1.35; }
.hub-log-row > span { justify-self: end; color: #4a7c59; }
.hub-log-row.flagged { background: rgba(192,73,42,0.055); }
.hub-log-row.flagged > span { color: var(--alert); }
.hub-log-row.caution > span { color: var(--clay); }
.dash-alert-icon { width: 20px; height: 18px; margin-top: 3px; flex: none; }
.dash-alert-icon svg { display: block; width: 100%; height: 100%; }
.warn-triangle { fill: #f2be2e; stroke: rgba(26,24,19,0.14); stroke-width: 1; }
.warn-mark { fill: #3f3320; }
.hub-evidence { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-8px); }
.hub-ui[data-open="true"] .hub-evidence { max-height: 620px; opacity: 1; transform: none; margin-top: 12px; }
.evidence-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.evidence-head b { font-size: 0.96rem; }
.evidence-head span { color: var(--ink-3); font-size: 0.8rem; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.media-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(250,248,241,0.78); }
.media-tile span { padding: 10px 12px 12px; letter-spacing: 0.04em; text-transform: none; }
.media-frame { position: relative; aspect-ratio: 4 / 3; background: #ebe2d0; overflow: hidden; }
.media-frame::before { content: ''; position: absolute; inset: 18% 16%; border-radius: 16px; background: rgba(250,248,241,0.72); border: 1px solid rgba(120,112,96,0.2); }
.media-frame::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52%; height: 38%; transform: translate(-50%, -36%); border-radius: 16px; background: repeating-radial-gradient(circle at 46% 42%, rgba(120,112,96,0.28) 0 2px, transparent 3px 13px), #ded3be; }
.posture-clip::before { inset: 16%; border-radius: 50%; background: rgba(26,24,19,0.12); }
.posture-clip::after { width: 42px; height: 42px; border-radius: 50%; background: var(--ink-3); box-shadow: 38px 10px 0 -7px var(--ink-3), -30px 18px 0 -12px var(--ink-3); }
.video .media-frame { background: linear-gradient(135deg, #e8dfcd, #d8d1c1); }
.video .media-frame span { display: none; }
.video .media-frame:before { box-shadow: inset 0 0 0 999px rgba(26,24,19,0.08); }
.video .media-frame:after { content: ''; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 22px solid rgba(250,248,241,0.94); border-radius: 0; background: none; box-shadow: none; }
.output-scan::after { width: 44%; height: 26%; opacity: 0.72; }
.evidence-note { margin-top: 14px; color: var(--ink-2); font-size: 0.91rem; line-height: 1.55; }
.evidence-note b { color: var(--ink); }

/* ── Hub scrolly (section 02) ────────────────────────────────────────────── */
.hub-intro { padding: clamp(72px, 9vh, 116px) var(--page-pad) 0; }
.hub-intro .section-head { margin-bottom: clamp(20px, 3vw, 32px); }
.hub-intro .section-head > .kicker { margin-bottom: 12px; }
#dashboard-head { margin-bottom: 0; }
.hub-scrolly { position: relative; height: calc(200dvh - var(--nav-h)); }
.hub-scrolly-stage {
  position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 28px;
  background: var(--bg);
}
.hub-scrolly-stage .hub-ui { display: block; }
.hub-scrolly-stage .hub-grid { flex: 1; min-height: 0; overflow: hidden; }
.hub-scrolly-stage .hub-detail { overflow-y: hidden; }

@keyframes hub-btn-press {
  0%   { transform: scale(1); }
  22%  { transform: scale(0.91) translateY(1px); background: #8a3d24; box-shadow: none; }
  55%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.hub-investigate.scroll-pressing { animation: hub-btn-press 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 44px var(--page-pad); }
.footer-wrap { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; color: var(--ink-3); font-size: 0.86rem; line-height: 1.7; }
.footer .brand { font-size: 1.15rem; margin-bottom: 6px; }
.footer a { color: var(--clay); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-base { opacity: 0.85; }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.step:nth-child(2) { transition-delay: 0.08s; }
.step:nth-child(3) { transition-delay: 0.16s; }
.duo .panel:nth-child(2) { transition-delay: 0.1s; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  /* Stack to one column; the animation un-pins and sits between hero and steps. */
  .scrolly { padding-top: 24px; }
  .scrolly-grid { grid-template-columns: 1fr; grid-template-areas: "hero" "stage" "steps"; gap: 48px; }
  .scrolly-hero { min-height: auto; padding-top: 0; }
  .scrolly-stage { position: static; height: auto; padding-top: 0; }
  .hero-text { max-width: 640px; }
  .device-viewer { aspect-ratio: 16 / 11; max-width: 600px; min-height: clamp(260px, 58vw, 380px); margin: 0 auto; width: 100%; }
  .step-body { grid-template-columns: 1fr; gap: 10px; }
  #hardware .panel { min-height: 0; }
  #hardware .panel p { min-height: 0; }
}
@media (max-width: 760px) {
  :root { --page-pad: 20px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(241,238,228,0.97); border-bottom: 1px solid var(--line); padding: 10px var(--page-pad) 18px;
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: 0.2s;
  }
  body.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 0; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .duo { grid-template-columns: 1fr; }
  #affordability {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
  }
  #hardware .panel {
    height: auto;
    grid-template-rows: none;
  }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-no { font-size: 1.2rem; }
  .statement { height: 200dvh; }
}
.hub-ui-canvas .hub-grid { grid-template-columns: 0.92fr 1.55fr !important; min-height: 0; flex: 1; }
.hub-ui-canvas .hub-cats { border-right: 1px solid var(--line) !important; border-bottom: none !important; display: block !important; }
.hub-ui-canvas .cat-row { grid-template-columns: 1fr auto !important; align-items: end !important; }
.hub-ui-canvas .cat-state { grid-column: auto !important; margin-top: 0 !important; }
.hub-ui-canvas .hub-topbar { align-items: center !important; flex-direction: row !important; }
.hub-ui-canvas .hub-detail { padding: 22px !important; overflow: hidden !important; }
.hub-ui-canvas .hub-alert { grid-template-columns: auto 1fr auto !important; }
.hub-ui-canvas .hub-investigate { grid-column: auto !important; justify-self: auto !important; }
.hub-ui-canvas .media-grid { grid-template-columns: repeat(3, 1fr) !important; }
.hub-ui-canvas .hub-log-head { grid-template-columns: 150px 1fr auto !important; }
.hub-ui-canvas .hub-log-head span:first-child { grid-column: 1 / 3 !important; }
.hub-ui-canvas .hub-log-row { grid-template-columns: 150px minmax(0, 1fr) 76px !important; gap: 14px !important; }
.hub-ui-canvas .hub-log-row > span { justify-self: end !important; }
.hub-ui-canvas .evidence-head { align-items: end !important; flex-direction: row !important; gap: 18px !important; }
@media (max-width: 600px) {
  .viewer-labels { display: none; }
  body { font-size: 16px; }
  h1 { font-size: 2.72rem; }
  h2 { font-size: 2.24rem; }
  .scrolly-grid { gap: 34px; }
  .device-viewer { min-height: 0; aspect-ratio: 1 / 1; }
  .lm-svg { transform: scale(1.05); }
  .panel { border-radius: 14px; }
  .finance-total { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cat-row { min-height: 84px; padding: 12px 16px 10px; }
  .cat-avatar { width: 76px; height: 45px; }
  .cat-copy { min-width: 82px; padding-top: 34px; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.36rem; }
  h2 { font-size: 2.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-hero] { transition: opacity 0.4s ease !important; transform: none !important; }
}
