/* TracFleetPro marketing site, in the platform default appearance - Copper unless the platform owner
   chose another (the data-design blocks at the end). Copper (packages/tokens, design.ts `designs.copper`):
   warm charcoal substrate, copper brand, Copper's own semantic channels, Source Sans 3 / Source Code Pro
   with Source Serif 4 for headings. The only extra values are the stage surface (for the letterbox
   and boot) and the app icon's `hot`. Radii 2 / 6 / 10 / 999 only.
   Display sizes above the product's type scale exist only here, on the marketing site. */

:root {
  /* Copper substrate */
  --stage: #1B1D1F;              /* canvas: the page ground */
  --canvas: #1B1D1F;
  --surface: #242628;
  --surface2: #2A2C2E;
  --hairline: #3B3D3E;
  --ink: #F0E7DB;
  --ink2: #C4C2BD;
  --ink3: #999C9E;
  --brand: #DBA77F;
  --copper: var(--brand);
  --on-brand: #1B1D1F;
  --hot: #F3D8BC;                /* appIcon.hot */
  --stage-well: #15181B;

  --canvas-rgb: 27,29,31;
  --surface-rgb: 36,38,40;
  --surface2-rgb: 42,44,46;
  --deep-rgb: 11,13,15;          /* stage.surface */
  --ink-rgb: 240,231,219;
  --brand-rgb: 219,167,127;
  --hot-rgb: 243,216,188;
  --hair-soft: rgba(var(--ink-rgb), .08);

  /* Copper channels; tints at .14 as the token `dark()` helper builds them */
  --positive-rgb: 95,211,160;  --positive: #5FD3A0;  --positive-tint: rgba(var(--positive-rgb),.14);
  --negative-rgb: 242,121,126; --negative: #F2797E;  --negative-tint: rgba(var(--negative-rgb),.14);
  --live-rgb: 127,176,245;     --live: #7FB0F5;      --live-tint: rgba(var(--live-rgb),.14);
  --attention-rgb: 245,154,91; --attention: #F59A5B; --attention-tint: rgba(var(--attention-rgb),.14);
  --inert: #969B9F;            --inert-tint: rgba(150,155,159,.14);

  --r-xs: 2px; --r-sm: 6px; --r-md: 10px; --r-pill: 999px;

  --ui: 'Source Sans 3', system-ui, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, monospace;
  --display: 'Source Serif 4', Georgia, serif;

  --e-enter: cubic-bezier(0, 0, .58, 1);
  --e-sheet: cubic-bezier(.16, .84, .36, 1);
  --e-draw: cubic-bezier(.65, 0, .35, 1);
  --e-pop: cubic-bezier(.34, 1.56, .64, 1);
  --e-expo: cubic-bezier(.19, 1, .22, 1);

  --gutter: max(16px, calc((100vw - 1240px) / 2));
  color-scheme: dark;

  /* The Route mark (index.html #tfp-mark), coloured by whichever appearance is on */
  --mark-tile: var(--surface2);
  --mark-edge: rgba(var(--ink-rgb), .12);
  --mark-glyph: var(--brand);
  --mark-road: var(--ink2);
}
.mark { display: block; flex: none; overflow: visible; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.booting { overflow: hidden; }
::selection { background: rgba(var(--brand-rgb),.35); color: #fff; }
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.micro { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.caption { font-size: 13px; color: var(--ink2); }
.muted { color: var(--ink3); }
.center { text-align: center; }
.pos { color: var(--positive); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(110px, 14vw, 190px) 0; position: relative; }

/* film grain over everything, very quiet */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 26px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--copper); }
.chapter { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.chapter span { color: var(--copper); padding: 6px 9px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.35); letter-spacing: .08em; }
.h2 { font-family: var(--display); font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; font-weight: 400; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
.lede { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; color: var(--ink2); max-width: 46ch; text-wrap: pretty; }
.sec-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .lede { justify-self: end; }
.center-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.center-head .h2 { max-width: 20ch; }
.center-head .lede { justify-self: center; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } .sec-head .lede { justify-self: start; } .center-head .lede { justify-self: center; } }

/* ---------- buttons, badges ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand);
  font: 600 15px var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--e-sheet), box-shadow 200ms var(--e-enter), background 150ms;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 700ms var(--e-sheet); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -12px rgba(var(--brand-rgb),.6); }
.btn:hover::after { transform: translateX(120%); }
.btn .arrow { transition: transform 300ms var(--e-sheet); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.4); background: rgba(255,255,255,.07); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font: 500 13px var(--ui); white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.positive { color: var(--positive); background: var(--positive-tint); }
.badge.negative { color: var(--negative); background: var(--negative-tint); }
.badge.live { color: var(--live); background: var(--live-tint); }
.badge.live i { animation: pulse 1400ms cubic-bezier(.42,0,.58,1) infinite; }
.badge.attention { color: var(--attention); background: var(--attention-tint); }
.badge.inert { color: var(--inert); background: var(--inert-tint); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--live-rgb),.6); } 50% { box-shadow: 0 0 0 5px rgba(var(--live-rgb),0); } }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 10px var(--positive); }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--stage); transition: opacity 900ms var(--e-enter), visibility 0s 900ms;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-mark { overflow: visible; }
.boot-tile { fill: var(--mark-tile); transform-origin: 256px 256px; transform: scale(.82); opacity: 0; animation: tileIn 420ms var(--e-sheet) 1600ms forwards; }
/* the road runs from the start node, under the TF and up the cut, and the destination lights */
.boot-road { fill: none; stroke: var(--mark-road); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 501; stroke-dashoffset: 501; animation: draw 520ms var(--e-draw) 1800ms forwards; }
.boot-start { fill: var(--mark-tile); stroke: var(--mark-road); stroke-width: 10; opacity: 0; animation: tileIn 240ms var(--e-sheet) 1760ms forwards; }
.boot-dest { fill: var(--mark-glyph); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: destIn 420ms var(--e-pop) 2240ms forwards; }
.boot-dest-core { fill: var(--mark-tile); }
@keyframes destIn { to { transform: scale(1); } }
.boot-stroke { fill: none; stroke: var(--hot); stroke-width: 14; stroke-linecap: square; filter: drop-shadow(0 0 18px rgba(var(--hot-rgb),.8)); }
.boot-crossbar { stroke-dasharray: 304; stroke-dashoffset: 304; animation: draw 560ms var(--e-draw) forwards, thicken 360ms var(--e-sheet) 1520ms forwards; }
.boot-stem { stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 720ms var(--e-draw) 650ms forwards, thicken 360ms var(--e-sheet) 1520ms forwards; }
.boot-glint { opacity: 0; animation: glint 400ms var(--e-enter) 2200ms forwards; }
.boot-word { font: 500 13px var(--mono); letter-spacing: .4em; text-transform: uppercase; color: var(--ink3); opacity: 0; animation: fadeUp 600ms var(--e-sheet) 1900ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes thicken { to { stroke-width: 140; stroke: var(--copper); filter: none; } }
@keyframes tileIn { to { transform: scale(1); opacity: 1; } }
@keyframes glint { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(840px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  transition: background 300ms, box-shadow 300ms, transform 400ms var(--e-sheet), padding 300ms var(--e-sheet);
}
.nav.scrolled { padding-block: 10px; background: rgba(var(--deep-rgb),.7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--hair-soft); }
.nav.hidden { transform: translateY(-110%); }
.nav-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(var(--surface-rgb),.45); box-shadow: inset 0 0 0 1px var(--hair-soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-links a { font-size: 14px; color: var(--ink2); text-decoration: none; padding: 7px 14px; border-radius: var(--r-pill); transition: color 150ms, background 200ms; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: rgba(var(--ink-rgb),.08); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--deep-rgb),.82) 0%, rgba(var(--deep-rgb),.45) 38%, rgba(var(--deep-rgb),0) 62%),
    linear-gradient(0deg, var(--stage) 0%, rgba(var(--deep-rgb),.6) 16%, rgba(var(--deep-rgb),0) 42%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.letterbox { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; z-index: 3; transition: height 1600ms var(--e-expo); }
.lb-top { top: 0; }
.lb-bottom { bottom: 0; }
.ready .letterbox { height: var(--lb, 0px); }
.hero-meta {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 96px;
  display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink-rgb),.55);
  opacity: 0; transition: opacity 1200ms var(--e-enter) 900ms;
}
.hero-meta-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--ink-rgb),.25), rgba(var(--ink-rgb),.04)); }
.ready .hero-meta { opacity: 1; }
@media (max-width: 700px) { .hero-meta > span:first-child, .hero-meta-rule { display: none; } }

.hero-grid {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 9vh, 96px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
}
.hero-title { font-family: var(--display); font-size: clamp(50px, 7.4vw, 118px); line-height: .92; font-weight: 400; letter-spacing: -.035em; text-shadow: 0 10px 60px rgba(0,0,0,.35); }
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(10px); transition: opacity 900ms var(--e-enter), transform 1100ms var(--e-expo), filter 900ms var(--e-enter); transition-delay: calc(var(--i) * 28ms + 500ms); }
.ready .hero-title .ch { opacity: 1; transform: none; filter: none; }
.hero-title .accent .ch { background: linear-gradient(100deg, var(--copper) 0%, var(--hot) 35%, var(--brand) 65%, var(--copper) 100%); background-size: 400% 100%; background-position: calc(var(--i) * -6%) 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
@keyframes sheen { to { background-position: calc(var(--i) * -6% - 400%) 0; } }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); color: rgba(var(--ink-rgb),.78); }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-in { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--e-enter), transform 1100ms var(--e-expo); transition-delay: calc(var(--d) * 110ms + 500ms); }
.ready .hero-in { opacity: 1; transform: none; }



.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.35); opacity: 0; transition: opacity 600ms 2s; }
.ready .scroll-cue { opacity: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: var(--r-xs); background: var(--copper); animation: cue 1600ms var(--e-draw) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 980px) { .scroll-cue { display: none; } }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 30px 0; border-block: 1px solid var(--hair-soft); background: var(--stage); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--stage), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--stage), transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: baseline; gap: 18px; font: 400 clamp(32px, 4.6vw, 64px)/1 var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb),.28); white-space: nowrap; }
.marquee-track em { font: 400 clamp(14px, 1.3vw, 18px) var(--mono); font-style: normal; letter-spacing: .04em; color: var(--copper); -webkit-text-stroke: 0; }
.marquee-track span::after { content: '◆'; font-size: .3em; color: rgba(var(--brand-rgb),.5); -webkit-text-stroke: 0; margin-left: 46px; align-self: center; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1000ms var(--e-enter), transform 1200ms var(--e-expo), filter 1000ms var(--e-enter); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- equation / waterfall ---------- */
.equation { background: radial-gradient(70% 50% at 80% 0%, rgba(var(--brand-rgb),.07), transparent 70%), var(--stage); }
.wf {
  border-radius: var(--r-md); padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(var(--surface-rgb),.7), rgba(var(--canvas-rgb),.5));
  box-shadow: inset 0 0 0 1px var(--hair-soft), 0 50px 100px -50px rgba(0,0,0,.9);
}
.wf-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.wf-top > div { display: flex; flex-direction: column; gap: 10px; }
.wf-profit { font-size: clamp(40px, 6vw, 76px); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--positive); transition: color 300ms, text-shadow 300ms; text-shadow: 0 0 60px rgba(var(--positive-rgb),.25); }
.wf.loss .wf-profit { color: var(--negative); text-shadow: 0 0 60px rgba(var(--negative-rgb),.25); }
.wf-margin { align-items: flex-end; }
.wf-margin .mono { font-size: 24px; color: var(--ink2); }

.wf-chart { position: relative; height: clamp(240px, 32vw, 360px); margin-top: 36px; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.6vw, 24px); }
.wf-chart::before { content: ''; position: absolute; left: 0; right: 0; bottom: var(--zero, 0%); height: 1px; background: var(--hairline); }
.wf-col { position: relative; }
.wf-col + .wf-col::before { content: attr(data-op); position: absolute; left: calc(clamp(8px, 1.6vw, 24px) / -2); top: calc(100% + 6px); transform: translateX(-50%); font: 400 18px var(--mono); color: var(--copper); }
.wf-chart { margin-bottom: 30px; }
.wf-bar {
  position: absolute; left: 0; right: 0; border-radius: var(--r-xs);
  transition: bottom 600ms var(--e-sheet), height 600ms var(--e-sheet), background 300ms, box-shadow 300ms;
}
.wf-col.rev .wf-bar { background: linear-gradient(180deg, var(--ink), var(--ink2)); }
.wf-col.cost .wf-bar { background: repeating-linear-gradient(135deg, var(--hairline) 0 6px, var(--surface2) 6px 12px); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.18); }
.wf-col.cost.hot .wf-bar { box-shadow: inset 0 0 0 1px var(--copper), 0 0 24px -4px rgba(var(--brand-rgb),.5); }
.wf-col.profit .wf-bar { background: linear-gradient(180deg, var(--positive), rgba(var(--positive-rgb),.55)); box-shadow: 0 0 40px -6px rgba(var(--positive-rgb),.55); }
.wf.loss .wf-col.profit .wf-bar { background: linear-gradient(0deg, var(--negative), rgba(var(--negative-rgb),.55)); box-shadow: 0 0 40px -6px rgba(var(--negative-rgb),.55); }
.wf-link { position: absolute; left: 100%; width: clamp(8px, 1.6vw, 24px); height: 0; border-top: 1px dashed var(--ink3); opacity: .6; transition: bottom 600ms var(--e-sheet); }
.wf-val { position: absolute; left: 50%; transform: translateX(-50%); font: 400 13px var(--mono); color: var(--ink2); white-space: nowrap; transition: bottom 600ms var(--e-sheet); }
@media (max-width: 760px) { .wf-val { display: none; } .wf-col + .wf-col::before { font-size: 13px; } }

.wf-controls { margin-top: 28px; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.6vw, 24px); }
.wf-ctl { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 10px; border-radius: var(--r-sm); background: rgba(var(--deep-rgb),.4); box-shadow: inset 0 0 0 1px var(--hair-soft); cursor: pointer; transition: box-shadow 200ms, background 200ms; }
.wf-ctl:hover, .wf-ctl:focus-within { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.45); background: rgba(var(--brand-rgb),.05); }
.wf-ctl > span:first-child { font-size: 13px; color: var(--ink2); }
.wf-ctl output { font-size: 14px; color: var(--ink); }
.wf-eq { cursor: default; justify-content: center; background: transparent; box-shadow: none; }
.wf-eq:hover { background: transparent; box-shadow: none; }
.wf-eq > span:first-child { font: 500 15px var(--mono); color: var(--positive); }
@media (max-width: 900px) { .wf-controls { grid-template-columns: 1fr 1fr; } .wf-eq { display: none; } }
@media (max-width: 480px) { .wf-controls { grid-template-columns: 1fr; } }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 4px 0 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--copper) var(--p, 50%), var(--hairline) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 3px; border-radius: var(--r-pill); background: var(--hairline); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: var(--r-pill); background: var(--copper); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.22), 0 2px 8px rgba(0,0,0,.5); transition: transform 150ms var(--e-pop); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.22); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }

/* ---------- trip (pinned) ---------- */
.trip { position: relative; height: 520vh; background: linear-gradient(180deg, var(--stage), var(--canvas) 12%, var(--canvas) 88%, var(--stage)); }
.trip-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; width: min(1240px, 100% - 32px); margin: 0 auto; }
.trip-text .h2 { font-size: clamp(32px, 4vw, 54px); }
.trip-progress { display: flex; align-items: center; gap: 14px; margin: 34px 0 10px; font-size: 13px; }
.trip-progress i { flex: 1; max-width: 220px; height: 2px; border-radius: var(--r-pill); background: var(--hairline); overflow: hidden; }
.trip-progress b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--copper), var(--brand)); }
#trip-count { color: var(--copper); }
.trip-steps { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.trip-steps li { position: relative; padding: 12px 0 12px 22px; opacity: .38; transition: opacity 400ms var(--e-enter); }
.trip-steps li::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--copper); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--e-sheet); }
.trip-steps li.on { opacity: 1; }
.trip-steps li.on::before { transform: scaleY(1); }
.trip-steps li.past { opacity: .62; }
.ts-head { display: flex; align-items: center; gap: 12px; }
.ts-head .badge { display: none; }
.trip-steps li.on .badge { display: inline-flex; }
.trip-steps h3 { font-family: var(--display); font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.015em; }
.trip-steps p { color: var(--ink2); max-width: 44ch; font-size: 15px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 500ms var(--e-sheet), opacity 400ms, margin 500ms var(--e-sheet); }
.trip-steps li.on p { max-height: 120px; opacity: 1; margin-top: 10px; }
.trip-map { position: relative; height: min(80vh, 660px); }
.route-svg { width: 100%; height: 100%; }
.contours path { fill: none; stroke: var(--hairline); stroke-width: 1; }
.route-base { fill: none; stroke: var(--surface2); stroke-width: 6; stroke-linecap: round; }
.route-line { fill: none; stroke: url(#routeGlow); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 12px rgba(var(--brand-rgb),.6)); }
#route-dot { fill: var(--hot); }
.town circle { fill: var(--surface2); stroke: var(--ink3); stroke-width: 1.5; transition: fill 300ms, stroke 300ms; }
.town text { font: 500 14px var(--ui); fill: var(--ink3); transition: fill 300ms; }
.town text.km { font: 400 12px var(--mono); }
.town.reached circle { fill: var(--copper); stroke: var(--hot); }
.town.reached text { fill: var(--ink); }
.town.reached text.km { fill: var(--ink2); }
.trip-card {
  position: absolute; left: 0; bottom: 0; width: min(290px, 60%); padding: 18px; border-radius: var(--r-md);
  background: rgba(var(--surface-rgb),.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--hair-soft), 0 30px 60px -30px rgba(0,0,0,.8);
}
.trip-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink2); }
.trip-card-route { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin: 12px 0 14px; }
.trip-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.trip-card-grid dt { font-size: 12px; color: var(--ink3); }
.trip-card-grid dd { margin: 2px 0 0; font-size: 14px; }
.trip-card-margin { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair-soft); display: flex; justify-content: space-between; align-items: baseline; }
#tc-margin { font-size: 18px; color: var(--ink3); transition: color 300ms; }
#tc-margin.pos { color: var(--positive); }
@media (max-width: 900px) {
  .trip { height: 600vh; }
  .trip-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 4px; padding-top: 70px; align-items: start; }
  .trip-text .chapter { margin-bottom: 12px; }
  .trip-text .h2 { font-size: 26px; }
  .trip-progress { margin: 14px 0 6px; }
  .trip-steps li { padding: 5px 0 5px 16px; }
  .trip-steps li:not(.on) { display: none; }
  .trip-steps p { font-size: 14px; }
  .trip-steps h3 { font-size: 17px; }
  .trip-map { height: 50vh; }
  .trip-card { width: 190px; padding: 12px; }
  .trip-card-route { font-size: 22px; margin: 8px 0 8px; }
  .trip-card-grid { display: none; }
  .trip-card-margin { margin-top: 8px; padding-top: 8px; }
  /* the SVG renders at ~0.65 scale here; keep labels above the 11px floor */
  .town text { font-size: 20px; }
  .town text.km { font-size: 17px; }
}

/* ---------- surfaces ---------- */
.surfaces { background: var(--stage); overflow: hidden; }
.surface-stage { position: relative; margin-top: 20px; padding: 0 0 90px; perspective: 1800px; }
.surface-glow { position: absolute; left: 10%; right: 10%; top: 10%; bottom: 0; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--brand-rgb),.16), transparent 70%); filter: blur(30px); pointer-events: none; }
.board {
  position: relative; width: 76%; border-radius: var(--r-md); background: var(--surface); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hair-soft), 0 80px 140px -50px rgba(0,0,0,.95);
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -6deg)); transform-origin: 60% 50%; transition: transform 300ms var(--e-sheet), opacity 1000ms, filter 1000ms;
}
.board.reveal:not(.in) { transform: rotateX(18deg) rotateY(-12deg) translateY(60px); }
.board-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); background: var(--canvas); }
.board-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface2); }
.board-bar .mono { margin-left: 12px; font-size: 13px; color: var(--ink3); }
.board-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink3); }
.board-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hairline); }
.board-kpis > div { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.board-kpis > div + div { border-left: 1px solid var(--hairline); }
.board-kpis .num { font-size: clamp(18px, 2.1vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.num.pos { color: var(--positive); } .num.att { color: var(--attention); }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-table th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); padding: 12px 18px 8px; }
.board-table td { padding: 12px 18px; border-top: 1px solid var(--hairline); white-space: nowrap; }
.board-table .r { text-align: right; }
/* the marketing Board drops the plate column so the margin always fits beside the phone */
.board-table th:nth-child(3), .board-table td:nth-child(3) { display: none; }
.board-table tbody tr { transition: background 150ms; }
.board-table tbody tr:hover { background: var(--surface2); }
.board-table tbody tr.flash { animation: rowFlash 1400ms var(--e-enter); }
@keyframes rowFlash { 0% { background: rgba(var(--brand-rgb),.18); } 100% { background: transparent; } }
.board-table .mono.pos { color: var(--positive); } .board-table .mono.neg { color: var(--negative); }

.phone {
  position: absolute; right: 0; bottom: 0; width: 290px; padding: 11px; border-radius: 46px;
  background: linear-gradient(150deg, #34373B, #141618 40%, #0A0B0C);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 3px #0A0B0C, 0 70px 120px -30px rgba(0,0,0,.95), 0 0 100px -30px rgba(var(--brand-rgb),.35);
  transform: rotateY(var(--py, -14deg)) rotateX(var(--px, 4deg)) translateZ(60px); transition: transform 300ms var(--e-sheet), opacity 1000ms, filter 1000ms;
}
.phone.reveal:not(.in) { transform: rotateY(-30deg) translateY(120px) translateZ(60px); }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: var(--r-pill); background: #000; z-index: 2; }
.phone-screen { border-radius: 36px; background: var(--canvas); padding: 56px 18px 18px; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: -38px 6px 28px; color: var(--ink2); }
.phone-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--positive); }
.phone-sync i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.phone-sync.pending { color: var(--attention); }
.phone-route { font-size: 32px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 4px; }
.phone-stages { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.phone-stages li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink3); transition: background 220ms, color 220ms; }
.phone-stages li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hairline); flex: none; transition: all 300ms var(--e-pop); }
.phone-stages li.done { color: var(--ink2); }
.phone-stages li.done::before { background: var(--positive); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%230E1520' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.phone-stages li.now { background: var(--surface); color: var(--ink); }
.phone-stages li.now::before { box-shadow: inset 0 0 0 2px var(--live); animation: pulse 1400ms infinite; }
.phone-commit { height: 56px; border: 0; border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); font: 500 16px var(--ui); cursor: pointer; transition: transform 150ms, background 220ms; }
.phone-commit:active { transform: scale(.99); }
.phone-commit.finished { background: var(--positive); }
.hint { margin-top: 8px; }
@media (max-width: 1000px) {
  .surface-stage { padding: 0; display: grid; gap: 40px; justify-items: center; perspective: none; }
  .board, .phone { position: relative; transform: none !important; }
  .board { width: 100%; }
  .board-table th:nth-child(3), .board-table td:nth-child(3), .board-table th:nth-child(4), .board-table td:nth-child(4) { display: none; }
}
@media (max-width: 560px) { .board-kpis > div:nth-child(2) { display: none; } .board-kpis { grid-template-columns: 1fr 1.6fr; } .board-table td, .board-table th { padding-inline: 12px; } }

/* ---------- offline ---------- */
.offline { background: radial-gradient(60% 60% at 20% 50%, rgba(var(--live-rgb),.05), transparent 70%), linear-gradient(to bottom, var(--stage), var(--canvas)); overflow: hidden; }
.offline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.offline .lede { margin-top: 24px; }
@media (max-width: 900px) { .offline-grid { grid-template-columns: 1fr; } }
.offline-controls { margin-top: 40px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.signal-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink2); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; border-radius: 1px; background: var(--hairline); transition: background 200ms; }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 50%; } .bars i:nth-child(3) { height: 75%; } .bars i:nth-child(4) { height: 100%; }
.bars.on i { background: var(--positive); }
.bars.on i:nth-child(2) { transition-delay: 80ms; } .bars.on i:nth-child(3) { transition-delay: 160ms; } .bars.on i:nth-child(4) { transition-delay: 240ms; }
.switch { position: relative; width: 56px; height: 32px; border: 0; border-radius: var(--r-pill); background: var(--surface2); box-shadow: inset 0 0 0 1px var(--hairline); cursor: pointer; transition: background 220ms; }
.switch-knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink3); transition: transform 300ms var(--e-pop), background 220ms; }
.switch[aria-checked=true] { background: var(--positive-tint); }
.switch[aria-checked=true] .switch-knob { transform: translateX(24px); background: var(--positive); }
.outbox { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-soft), 0 50px 100px -50px rgba(0,0,0,.9); overflow: hidden; }
.outbox-head, .outbox-server { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 13px; }
.outbox-head { border-bottom: 1px solid var(--hair-soft); }
.outbox-server { border-top: 1px solid var(--hair-soft); background: var(--canvas); }
#server-count { color: var(--positive); }
#outbox-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; min-height: 300px; align-content: start; }
#outbox-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-sm); background: var(--surface2); animation: slideIn 420ms var(--e-sheet); transition: opacity 400ms, transform 500ms var(--e-sheet); }
#outbox-list li.gone { opacity: 0; transform: translateY(30px) scale(.96); }
#outbox-list .t { font-size: 13px; color: var(--ink3); }
#outbox-list .what { font-size: 15px; }
#outbox-list .what small { display: block; font-size: 13px; color: var(--ink3); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.outbox-pipe { position: relative; height: 34px; }
.outbox-pipe::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--hairline); }
.outbox-pipe span { position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 10px var(--positive); opacity: 0; }
.outbox-pipe.flow span { animation: drip 520ms var(--e-draw) infinite; }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(28px); } }

/* ---------- modules / bento ---------- */
.modules { background: var(--canvas); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px; min-height: 210px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(var(--surface2-rgb),.55), rgba(var(--surface-rgb),.35)); box-shadow: inset 0 0 0 1px var(--hair-soft);
  transition: box-shadow 300ms, transform 400ms var(--e-sheet), opacity 1000ms, filter 1000ms;
}
.tile.wide { grid-column: span 2; }
.tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, -200px) var(--my, -200px), rgba(var(--brand-rgb),.14), transparent 70%); pointer-events: none; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(220px circle at var(--mx, -200px) var(--my, -200px), rgba(var(--brand-rgb),.7), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tile:hover { transform: translateY(-3px); }
.tile .ico { width: 30px; height: 30px; fill: none; stroke: var(--copper); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.tile h3 { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.tile p { color: var(--ink2); font-size: 14px; max-width: 34ch; }
.mini-rows { margin-top: auto; padding-top: 18px; display: grid; gap: 6px; }
.mini-rows i { display: block; height: 8px; border-radius: var(--r-pill); background: var(--surface2); position: relative; overflow: hidden; }
.mini-rows i::after { content: ''; position: absolute; right: 8px; top: 1px; width: 26px; height: 6px; border-radius: var(--r-pill); }
.mini-rows .l::after { background: var(--live); } .mini-rows .a::after { background: var(--attention); } .mini-rows .p::after { background: var(--positive); }
.mini-bars { margin-top: auto; padding-top: 18px; height: 90px; display: flex; align-items: flex-end; gap: 6px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: var(--r-xs) var(--r-xs) 0 0; background: linear-gradient(180deg, rgba(var(--positive-rgb),.8), rgba(var(--positive-rgb),.15)); transform-origin: bottom; transform: scaleY(0); transition: transform 900ms var(--e-expo); }
.tile.in .mini-bars i { transform: scaleY(1); }
.mini-list { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; gap: 6px; }
.mini-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(var(--deep-rgb),.35); font-size: 13px; color: var(--ink2); }
.mini-list .mono { color: var(--ink3); }
.mini-route { margin-top: auto; width: 100%; height: 60px; overflow: visible; }
.mini-route path { fill: none; stroke: var(--copper); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1800ms var(--e-draw) 300ms; filter: drop-shadow(0 0 6px rgba(var(--brand-rgb),.5)); }
.tile.in .mini-route path { stroke-dashoffset: 0; }
.mini-route circle { fill: var(--hot); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* ---------- promises ---------- */
.promises { padding: 40px 0 150px; background: var(--canvas); }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
.promise { padding: 48px 32px 0 0; }
.promise + .promise { padding-left: 32px; border-left: 1px solid var(--hairline); }
@media (max-width: 820px) { .promise-row { grid-template-columns: 1fr; } .promise + .promise { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); } .promise { padding: 36px 0; } }
.promise .big { display: block; font-size: clamp(48px, 6vw, 84px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-bottom: 20px; background: linear-gradient(180deg, var(--hot), var(--copper)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promise p { color: var(--ink2); max-width: 30ch; }

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(130px, 17vw, 220px) 0; background: radial-gradient(60% 60% at 50% 45%, rgba(var(--brand-rgb),.12), transparent 70%), var(--stage); text-align: center; }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-title { margin-top: 34px; font-family: var(--display); font-size: clamp(46px, 7.6vw, 116px); line-height: .96; font-weight: 400; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
.cta-inner .lede { margin-top: 26px; }
.cta-mark { animation: float 6s ease-in-out infinite; }
.cta-mark.reveal.in { filter: drop-shadow(0 0 36px rgba(var(--brand-rgb),.35)); }
@keyframes float { 50% { translate: 0 -8px; } }
.cta-form { margin-top: 40px; display: flex; gap: 8px; width: min(500px, 100%); padding: 6px; border-radius: var(--r-md); background: rgba(var(--surface-rgb),.7); box-shadow: inset 0 0 0 1px var(--hair-soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cta-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 400 15px var(--ui); }
.cta-form input:focus-visible { outline: none; }
.cta-form:focus-within { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.6); }
.cta-form input::placeholder { color: var(--ink3); }
@media (max-width: 480px) { .cta-form { flex-direction: column; } }
#cta-note { margin-top: 16px; min-height: 20px; }


/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .reveal, .hero-in, .hero-title .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
  .letterbox { display: none; }
  .grain { display: none; }
}

/* ---------- Copper editorial accents ---------- */
.hero-title .accent, .h2 em, .cta-title em { font-style: italic; }
.h2 em, .cta-title em { color: var(--brand); }
.hero-title .accent .ch { background-image: linear-gradient(100deg, var(--brand) 0%, var(--hot) 35%, var(--brand) 65%, var(--brand) 100%); padding-right: .04em; }
.eq-line .result, .wf-eq > span:first-child { color: var(--positive); }

/* ======================================================================
   Round 3: mobile menu, chapter rail, POD read, roles, FAQ, footer
   ====================================================================== */
:root {
  /* Copper's light companion (design.ts `companions.copper`), used only for paper */
  --paper: #FFFCF8; --paper-2: #EDE6DE; --paper-line: #CCBFB2;
  --paper-ink: #2B2622; --paper-ink2: #51473E; --paper-ink3: #675B50;
  --stage-deep: #0B0D0F;          /* stage.surface */
}
@media (max-width: 1120px) { .nav-links { display: none; } }

/* scroll progress under the nav */
.nav-progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(var(--brand-rgb),.2), var(--brand)); opacity: 0; transition: opacity 300ms; }
.nav.scrolled .nav-progress { opacity: 1; }

/* burger + sheet */
.nav-burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: rgba(var(--surface-rgb),.6); box-shadow: inset 0 0 0 1px var(--hair-soft); cursor: pointer; z-index: 2; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: var(--r-xs); background: var(--ink); transition: transform 400ms var(--e-sheet), top 400ms var(--e-sheet); }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 25px; }
.menu-open .nav-burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav-burger span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1120px) { .nav-burger { display: block; } }
@media (max-width: 520px) { .nav-cta { display: none; } }
.sheet {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 96px 24px 40px; background: rgba(var(--canvas-rgb),.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0 at calc(100% - 38px) 38px); transition: clip-path 700ms var(--e-expo), visibility 0s 700ms; visibility: hidden;
}
.menu-open .sheet { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; transition: clip-path 700ms var(--e-expo), visibility 0s; }
body.menu-open { overflow: hidden; }
.sheet nav { display: grid; }
.sheet nav a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair-soft); font: 400 clamp(26px, 7vw, 44px)/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; opacity: 0; transform: translateY(20px); transition: opacity 500ms, transform 700ms var(--e-expo); }
.sheet nav a .mono { font-size: 12px; color: var(--brand); letter-spacing: .1em; }
.menu-open .sheet nav a { opacity: 1; transform: none; }
.sheet .btn { align-self: stretch; }

/* chapter rail */
.rail { position: fixed; left: 22px; top: 50%; z-index: 40; display: grid; gap: 14px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 400ms; }
.rail.show { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: block; width: 14px; height: 14px; }
.rail i { position: absolute; left: 5px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink3); transition: transform 300ms var(--e-pop), background 300ms; }
.rail a.on i { transform: scale(2.2); background: var(--brand); }
.rail a::after { content: attr(data-label); position: absolute; left: 24px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); opacity: 0; transition: opacity 200ms, transform 300ms var(--e-sheet); pointer-events: none; }
.rail:hover a::after { opacity: 1; transform: translate(0, -50%); }
.rail a.on::after { color: var(--brand); }
@media (max-width: 1400px) { .rail { display: none; } }

/* ---------- POD read ---------- */
.pod { background: radial-gradient(60% 50% at 30% 60%, rgba(var(--brand-rgb),.08), transparent 70%), var(--canvas); }
.pod-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .pod-stage { grid-template-columns: 1fr; } }
.viewfinder { position: relative; padding: 18px; border-radius: var(--r-md); background: var(--stage-deep); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.06), 0 60px 120px -50px rgba(0,0,0,.9); }
.vf-top { display: flex; justify-content: space-between; font-size: 13px; color: rgba(var(--ink-rgb),.6); padding: 0 4px 14px; }
.vf-status { color: var(--brand); }
.vf-frame { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--stage-well); padding: clamp(18px, 4vw, 44px); min-height: 380px; display: grid; place-items: center; }
.vf-corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--hot); opacity: 0; transition: all 600ms var(--e-expo); z-index: 3; }
.vf-corner.tl { left: 18px; top: 18px; border-right: 0; border-bottom: 0; transform: translate(-16px, -16px); }
.vf-corner.tr { right: 18px; top: 18px; border-left: 0; border-bottom: 0; transform: translate(16px, -16px); }
.vf-corner.bl { left: 18px; bottom: 18px; border-right: 0; border-top: 0; transform: translate(-16px, 16px); }
.vf-corner.br { right: 18px; bottom: 18px; border-left: 0; border-top: 0; transform: translate(16px, 16px); }
.s-lock .vf-corner { opacity: 1; transform: none; }
.vf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.s-flash .vf-flash { animation: flash 500ms var(--e-enter); }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.vf-scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(var(--brand-rgb),.22) 80%, var(--hot) 100%); }
.s-scan .vf-scan { animation: scan 1800ms var(--e-draw); }
@keyframes scan { 0% { opacity: 1; transform: translateY(-90px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--h, 400px)); } }
.vf-bottom { display: grid; place-items: center; padding-top: 16px; }
.vf-shutter { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(var(--ink-rgb),.85), inset 0 0 0 7px var(--stage-deep), inset 0 0 0 30px rgba(var(--ink-rgb),.9); transition: transform 200ms var(--e-pop); }
.s-flash .vf-shutter { transform: scale(.88); }

.paper {
  position: relative; width: 100%; max-width: 480px; padding: 22px 24px 20px; border-radius: var(--r-xs);
  background: var(--paper); color: var(--paper-ink); font: 400 13px/1.4 var(--ui);
  transform: rotate(-2.2deg) perspective(900px) rotateX(6deg); filter: blur(5px) brightness(.55); transition: filter 900ms var(--e-enter), transform 900ms var(--e-expo);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.7);
}
.paper::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.25), transparent 35%, rgba(0,0,0,.06)); pointer-events: none; }
.s-lock .paper { filter: none; transform: rotate(-1deg) perspective(900px) rotateX(2deg); }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--paper-ink); }
.paper-head b { display: block; font: 600 16px var(--ui); letter-spacing: .08em; }
.paper-head span { font-size: 12px; color: var(--paper-ink3); }
.paper-no { font: 500 15px var(--mono); }
.paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 0; }
.paper-grid div, .paper-no, .paper-sign { position: relative; border-radius: var(--r-xs); padding: 4px 6px; transition: background 300ms; }
.paper-grid span, .paper-sign > span { display: block; font-size: 12px; color: var(--paper-ink3); text-transform: uppercase; letter-spacing: .06em; }
.paper-grid b { font: 500 14px var(--mono); }
.paper-grid div:first-child b { font-family: var(--ui); }
.smudge b { filter: blur(.6px); opacity: .8; }
.paper-sign { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--paper-line); padding-top: 12px; flex-wrap: wrap; }
.paper-sign svg { width: 130px; height: 36px; flex: none; }
.paper-sign path { fill: none; stroke: var(--paper-ink2); stroke-width: 2; stroke-linecap: round; }
.paper-sign b { font: 500 13px var(--ui); color: var(--paper-ink2); }
.paper-stamp { position: absolute; right: -8px; bottom: 74px; padding: 6px 10px; border: 2px solid rgba(var(--negative-rgb),.55); border-radius: var(--r-sm); color: rgba(var(--negative-rgb),.75); font: 600 13px/1.1 var(--mono); letter-spacing: .1em; text-align: center; transform: rotate(-12deg); mix-blend-mode: multiply; }
.paper-stamp small { font-size: 11px; letter-spacing: .06em; }
[data-f].hit::after { content: ''; position: absolute; inset: -2px; border-radius: var(--r-xs); box-shadow: 0 0 0 1.5px var(--brand), 0 0 18px rgba(var(--brand-rgb),.45); animation: lockon 500ms var(--e-pop); }
[data-f].hit { background: rgba(var(--brand-rgb),.14); }
[data-f].hit.flag::after { box-shadow: 0 0 0 1.5px var(--attention), 0 0 18px rgba(var(--attention-rgb),.5); }
[data-f].hit.flag { background: rgba(var(--attention-rgb),.16); }
@keyframes lockon { from { opacity: 0; transform: scale(1.12); } }

.read { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-md); background: linear-gradient(180deg, rgba(var(--surface-rgb),.85), rgba(var(--canvas-rgb),.6)); box-shadow: inset 0 0 0 1px var(--hair-soft); }
.read-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hair-soft); }
.read-list { list-style: none; margin: 0; padding: 8px 0; display: grid; }
.read-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hair-soft); opacity: .18; transform: translateX(-8px); transition: opacity 500ms, transform 600ms var(--e-expo); }
.read-list li.show { opacity: 1; transform: none; }
.read-list span { font-size: 13px; color: var(--ink3); }
.read-list b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.read-list em { font-style: normal; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.read-list em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.read-list em.ok { color: var(--positive); } .read-list em.warn { color: var(--attention); }
.read-foot { margin: 16px 0; }
@media (max-width: 520px) { .read-list li { grid-template-columns: minmax(0, 1fr) auto; } .read-list span { grid-column: 1 / -1; } .paper { padding: 16px; } .paper-stamp { display: none; } }

/* ---------- roles ---------- */
.roles { background: var(--stage); }
.roles-ui { max-width: 1040px; margin: 0 auto; }
.role-tabs { position: relative; display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 48px; padding: 5px; border-radius: var(--r-pill); background: rgba(var(--surface-rgb),.7); box-shadow: inset 0 0 0 1px var(--hair-soft); overflow-x: auto; scrollbar-width: none; }
.role-tabs button { position: relative; z-index: 1; flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink2); font: 500 15px var(--ui); cursor: pointer; transition: color 250ms; white-space: nowrap; }
.role-tabs button:hover { color: var(--ink); }
.role-tabs button[aria-selected=true] { color: var(--on-brand); }
.role-ink { position: absolute; top: 5px; left: 0; height: 44px; width: 0; border-radius: var(--r-pill); background: var(--brand); transition: transform 500ms var(--e-expo), width 500ms var(--e-expo); }
.role-panels { position: relative; min-height: 300px; }
.role-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.role-panel[hidden] { display: none; }
.role-panel.on .role-copy > *, .role-panel.on .role-card { animation: roleIn 700ms var(--e-expo) both; }
.role-panel.on .role-copy > ul { animation-delay: 60ms; }
.role-panel.on .role-card { animation-delay: 120ms; }
@keyframes roleIn { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.role-copy h3 { font: 400 clamp(28px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -.025em; }
.role-copy h3 em { color: var(--brand); }
.role-copy ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.role-copy li { display: flex; gap: 12px; align-items: baseline; color: var(--ink2); font-size: 16px; }
.role-copy li::before { content: ''; flex: none; width: 14px; height: 1px; background: var(--brand); transform: translateY(-4px); }
.role-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-md); background: linear-gradient(160deg, rgba(var(--surface2-rgb),.9), rgba(var(--surface-rgb),.6)); box-shadow: inset 0 0 0 1px var(--hair-soft), 0 40px 80px -40px rgba(0,0,0,.8); }
.role-card .big { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.02em; }
.role-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--hair-soft); }
.role-split > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.role-rows { display: grid; gap: 6px; }
.role-rows div { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(var(--deep-rgb),.35); font-size: 14px; }
.role-commit { display: grid; place-items: center; height: 56px; border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); font-weight: 500; font-size: 16px; }
.role-note { margin-top: 44px; }
@media (max-width: 820px) { .role-panel { grid-template-columns: 1fr; } .role-tabs button { padding: 0 16px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--canvas); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 120px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font: 400 clamp(19px, 1.8vw, 24px)/1.3 var(--display); letter-spacing: -.01em; transition: color 200ms; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand); }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--brand); transition: transform 400ms var(--e-expo); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details > div > p { color: var(--ink2); font-size: 16px; max-width: 58ch; padding-bottom: 26px; }
.faq-list details[open] > div { animation: faqIn 500ms var(--e-expo); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- footer ---------- */
.footer { padding: 72px 0 28px; border-top: 1px solid var(--hair-soft); background: var(--stage); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .micro { margin-bottom: 6px; }
.footer-col a { color: var(--ink2); text-decoration: none; font-size: 15px; width: fit-content; transition: color 150ms; }
.footer-col a:hover { color: var(--brand); }
.footer-word { margin: 56px 0 18px; font: 400 clamp(52px, 15vw, 230px)/.82 var(--display); letter-spacing: -.05em; text-align: center; white-space: nowrap; background: linear-gradient(180deg, rgba(var(--brand-rgb),.55), rgba(var(--brand-rgb),0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--hair-soft); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* The platform default appearance (GET /public/appearance; main.js sets data-design). Copper is
   :root above. Generated from packages/tokens designForMode(id, "nightshift"), so the site is
   always the night variant of the same design the app shows. */
:root[data-design="vest"] {
  --stage: #121416; --canvas: #121416; --surface: #1A1D20; --surface2: #212528; --hairline: #2C3135;
  --ink: #F1F3F0; --ink2: #B4BAB7; --ink3: #959C99; --brand: #D4FF1F; --on-brand: #12140F; --hot: #D4FF1F;
  --canvas-rgb: 18,20,22; --surface-rgb: 26,29,32; --surface2-rgb: 33,37,40; --ink-rgb: 241,243,240; --brand-rgb: 212,255,31; --hot-rgb: 212,255,31;
  --positive-rgb: 52,211,153; --positive: #34D399;
  --negative-rgb: 252,133,150; --negative: #FC8596;
  --live-rgb: 112,174,251; --live: #70AEFB;
  --attention-rgb: 251,191,36; --attention: #FBBF24;
  --inert: #A3A8A6; --inert-tint: rgba(163,168,166,.14);
  --ui: 'Barlow', system-ui, sans-serif; --mono: 'Azeret Mono', ui-monospace, monospace; --display: 'Barlow Semi Condensed', sans-serif;
}
:root[data-design="neon"] {
  --stage: #0B1419; --canvas: #0B1419; --surface: #111D23; --surface2: #18272E; --hairline: #2A3B43;
  --ink: #EDF5F3; --ink2: #B0C0C4; --ink3: #879DA4; --brand: #43E4BD; --on-brand: #12140F; --hot: #43E4BD;
  --canvas-rgb: 11,20,25; --surface-rgb: 17,29,35; --surface2-rgb: 24,39,46; --ink-rgb: 237,245,243; --brand-rgb: 67,228,189; --hot-rgb: 67,228,189;
  --positive-rgb: 52,211,153; --positive: #34D399;
  --negative-rgb: 255,124,136; --negative: #FF7C88;
  --live-rgb: 56,189,248; --live: #38BDF8;
  --attention-rgb: 255,159,67; --attention: #FF9F43;
  --inert: #99A6B9; --inert-tint: rgba(153,166,185,.14);
  --ui: 'Sora', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; --display: 'Sora', sans-serif;
}
:root[data-design="classic"] {
  --stage: #0E1520; --canvas: #0E1520; --surface: #151E2B; --surface2: #1D2836; --hairline: #2A3745;
  --ink: #E9EEF5; --ink2: #A7B4C4; --ink3: #8795A6; --brand: #F2B33D; --on-brand: #12140F; --hot: #FFF1B8;
  --canvas-rgb: 14,21,32; --surface-rgb: 21,30,43; --surface2-rgb: 29,40,54; --ink-rgb: 233,238,245; --brand-rgb: 242,179,61; --hot-rgb: 255,241,184;
  --positive-rgb: 52,211,153; --positive: #34D399;
  --negative-rgb: 251,113,133; --negative: #FB7185;
  --live-rgb: 96,165,250; --live: #60A5FA;
  --attention-rgb: 251,191,36; --attention: #FBBF24;
  --inert: #8795A6; --inert-tint: rgba(135,149,166,.14);
  --ui: 'Geist', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace; --display: 'Geist', sans-serif;
}

/* ======================================================================
   Neon and Classic each draw the site their own way, not as Copper in another colour.
   Neither Sora nor Geist ships an italic, so their endings stay upright (no browser-slanted
   letters) and each marks the ending its own way.
   ====================================================================== */

/* Neon: the endings light up like a tube sign, with a flicker as the headline comes on. */
:root[data-design="neon"] .hero-title .accent,
:root[data-design="neon"] .h2 em,
:root[data-design="neon"] .cta-title em,
:root[data-design="neon"] .role-copy h3 em { font-style: normal; }
:root[data-design="neon"] .hero-title { font-weight: 500; letter-spacing: -.05em; }
:root[data-design="neon"] .h2,
:root[data-design="neon"] .cta-title,
:root[data-design="neon"] .role-copy h3 { font-weight: 500; letter-spacing: -.04em; }
:root[data-design="neon"] .hero-title .accent .ch {
  background: none; color: var(--brand); -webkit-text-fill-color: currentColor;
  text-shadow: 0 0 2px rgba(var(--brand-rgb), .9), 0 0 40px rgba(var(--brand-rgb), .5);
  animation: tubeOn 1400ms linear calc(var(--i) * 18ms + 1200ms) both;
}
@keyframes tubeOn {
  0%, 8%, 16% { color: rgba(var(--brand-rgb), .3); text-shadow: none; }
  6%, 12%, 30%, 100% { color: var(--brand); text-shadow: 0 0 2px rgba(var(--brand-rgb), .9), 0 0 40px rgba(var(--brand-rgb), .5); }
}
:root[data-design="neon"] .h2 em,
:root[data-design="neon"] .cta-title em,
:root[data-design="neon"] .role-copy h3 em { text-shadow: 0 0 28px rgba(var(--brand-rgb), .45); }
:root[data-design="neon"] .eyebrow,
:root[data-design="neon"] .chapter span,
:root[data-design="neon"] .marquee-track em { text-shadow: 0 0 10px rgba(var(--brand-rgb), .6); }
:root[data-design="neon"] .eyebrow::before { box-shadow: 0 0 8px rgba(var(--brand-rgb), .8); }
:root[data-design="neon"] .chapter span { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .6), 0 0 16px -4px rgba(var(--brand-rgb), .6); }
:root[data-design="neon"] .btn:not(.btn-ghost) { box-shadow: 0 0 24px -6px rgba(var(--brand-rgb), .7); }
:root[data-design="neon"] .btn:not(.btn-ghost):hover { box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .5), 0 0 40px -6px rgba(var(--brand-rgb), .85); }
:root[data-design="neon"] .nav-brand .mark,
:root[data-design="neon"] .tile .ico { filter: drop-shadow(0 0 8px rgba(var(--brand-rgb), .45)); }
:root[data-design="neon"] .footer-word { font-weight: 500; filter: drop-shadow(0 0 24px rgba(var(--brand-rgb), .35)); }

/* Classic: the night-network site. Heavy upright headlines, the hero's ending lit in amber, and
   every heading's second clause dropped to the quiet ink, so the first half carries the claim. */
:root[data-design="classic"] .hero-title .accent,
:root[data-design="classic"] .h2 em,
:root[data-design="classic"] .cta-title em,
:root[data-design="classic"] .role-copy h3 em { font-style: normal; }
:root[data-design="classic"] .hero-title { font-weight: 700; letter-spacing: -.045em; line-height: .94; }
:root[data-design="classic"] .h2,
:root[data-design="classic"] .cta-title { font-weight: 600; letter-spacing: -.035em; }
:root[data-design="classic"] .role-copy h3,
:root[data-design="classic"] .trip-steps h3,
:root[data-design="classic"] .tile h3 { font-weight: 600; letter-spacing: -.02em; }
:root[data-design="classic"] .hero-title .accent .ch {
  background: none; color: var(--brand); -webkit-text-fill-color: currentColor; animation: none;
  text-shadow: 0 0 42px rgba(var(--brand-rgb), .45);
}
:root[data-design="classic"] .h2 em,
:root[data-design="classic"] .role-copy h3 em { color: var(--ink3); }
:root[data-design="classic"] .cta-title em { color: var(--brand); text-shadow: 0 0 42px rgba(var(--brand-rgb), .4); }
:root[data-design="classic"] .chapter { color: var(--brand); }
:root[data-design="classic"] .chapter span { padding: 0; box-shadow: none; color: var(--ink3); }
:root[data-design="classic"] .chapter::before { content: ''; width: 26px; height: 1px; background: var(--brand); }
:root[data-design="classic"] .footer-word { font-weight: 700; letter-spacing: -.06em; }

/* ======================================================================
   The hero's trip story (trip-story.js): the office sign-in's card, on the site's tokens, in
   every appearance. Sizes stay on the product's scale: 12 label, 13 meta, 15 body.
   ====================================================================== */
.tstory { width: min(460px, 100%); display: grid; gap: 10px; }
.ts-routes { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.ts-now, .ts-btn {
  height: 34px; display: flex; align-items: center; border-radius: var(--r-pill);
  background: rgba(var(--canvas-rgb), .9); font: 500 13px/1 var(--ui);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ts-now { position: relative; overflow: hidden; flex: 1 1 auto; min-width: 0; gap: 10px; padding: 0 14px; border: 1px solid rgba(var(--brand-rgb), .4); color: var(--ink); }
.ts-now > * { animation: tsTitle 600ms var(--e-sheet) both; }
.ts-now b { flex: none; font: 600 12px/1 var(--mono); color: var(--brand); }
.ts-now-route { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation-delay: 90ms; }
.ts-now-km { flex: none; margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ink3); animation-delay: 180ms; }
.ts-now i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); animation: none; }
@keyframes tsTitle { from { opacity: 0; transform: translateX(-10px); } }
.ts-btn { flex: none; gap: 8px; padding: 0 12px; border: 1px solid var(--hairline); color: var(--ink2); cursor: pointer; transition: color 150ms, border-color 150ms; }
.ts-btn:hover { color: var(--ink); border-color: var(--ink3); }
.ts-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ts-pause { width: 34px; padding: 0; justify-content: center; }
.ts-pause svg { width: 14px; height: 14px; }
.ts-pause[aria-pressed=true] svg { fill: currentColor; stroke: none; }

.ts-card {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  /* Near opaque: the map behind carries its own labels, and they must not read through. */
  background: rgba(var(--surface-rgb), .94); box-shadow: inset 0 0 0 1px var(--hair-soft), 0 40px 80px -30px rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ts-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
.ts-step { position: relative; display: grid; gap: 3px; text-align: left; padding: 12px 14px 13px; border: 0; background: none; color: var(--ink3); font: inherit; cursor: pointer; min-width: 0; }
.ts-step + .ts-step { border-left: 1px solid var(--hairline); }
.ts-step span { font: 500 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.ts-step b { font: 600 14px/1.2 var(--ui); color: inherit; }
.ts-step[aria-current=step] { color: var(--ink); }
.ts-step[aria-current=step] span { color: var(--brand); }
.ts-step i { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brand); }
.ts-step[data-done] i { width: 100%; opacity: .45; }

.ts-body { position: relative; height: 322px; }
.ts-phase { position: absolute; inset: 0; padding: 16px 16px 14px; display: grid; align-content: start; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity 450ms var(--e-sheet), transform 550ms var(--e-sheet); pointer-events: none; }
.ts-phase[data-on] { opacity: 1; transform: none; pointer-events: auto; }
.ts-card[data-swap] .ts-phase[data-on] { opacity: 0; transform: translateY(-6px); }
.ts-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; opacity: 0; transform: translateX(-6px); transition: opacity 350ms var(--e-sheet), transform 450ms var(--e-sheet); }
.ts-row[data-in] { opacity: 1; transform: none; }
.ts-key { font: 500 12px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.ts-value { font: 500 15px/1.35 var(--ui); color: var(--ink); }
.ts-figure { font: 500 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.ts-quote { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hairline); background: rgba(var(--ink-rgb), .025); }
.ts-quote .ts-figure { white-space: normal; }
.ts-quote-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ts-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); font: 500 12px/1 var(--ui); white-space: nowrap; color: var(--pill-ink); background: var(--pill-tint); }
.ts-pill i { width: 6px; height: 6px; border-radius: var(--r-pill); background: currentColor; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hairline); font: 500 12px/1.2 var(--ui); color: var(--ink2); opacity: 0; transform: scale(.92); transition: opacity 300ms var(--e-sheet), transform 350ms var(--e-sheet); }
.ts-chip[data-in] { opacity: 1; transform: none; }
.ts-chip svg { width: 12px; height: 12px; stroke: var(--positive); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* the drive */
.ts-map-wrap { min-width: 0; }
.ts-map { display: block; overflow: visible; max-width: 100%; }
.ts-map text { font: 500 12px var(--mono); fill: var(--ink3); }
.ts-map .ts-town-code { fill: var(--ink2); }
.ts-dark { fill: rgba(var(--attention-rgb), .08); transition: fill 300ms; }
.ts-dark[data-on] { fill: rgba(var(--attention-rgb), .22); }
.ts-map .ts-dark-label { fill: var(--attention); opacity: 0; transition: opacity 300ms; }
.ts-axis { stroke: rgba(var(--ink-rgb), .1); }
.ts-grid { stroke: rgba(var(--ink-rgb), .06); }
.ts-profile { fill: none; stroke: rgba(var(--ink-rgb), .32); stroke-width: 1.4; }
.ts-profile-done { fill: none; stroke: var(--brand); stroke-width: 2; }
.ts-road { stroke: rgba(var(--ink-rgb), .16); stroke-width: 5; stroke-linecap: round; }
.ts-run { stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; }
.ts-toll { fill: var(--canvas); stroke: rgba(var(--ink-rgb), .45); stroke-width: 1.2; }
.ts-toll[data-past] { fill: var(--brand); }
.ts-map .ts-fee { fill: var(--brand); font-weight: 600; opacity: 0; transition: opacity 300ms; }
circle.ts-town { fill: var(--canvas); stroke: rgba(var(--ink-rgb), .5); stroke-width: 1.4; }
circle.ts-town[data-past] { fill: var(--brand); }
.ts-dot { fill: var(--brand); }
.ts-glow { fill: rgba(var(--brand-rgb), .18); transform-box: fill-box; transform-origin: center; animation: tsBreathe 1800ms ease-in-out infinite; }
.ts-draw-in { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tsDraw 1400ms var(--e-sheet) 120ms forwards; }
.ts-fill-in { animation: tsFade 900ms var(--e-sheet) 700ms both; }
@keyframes tsDraw { to { stroke-dashoffset: 0; } }
@keyframes tsFade { from { opacity: 0; } }
@keyframes tsBreathe { 50% { transform: scale(1.45); opacity: .55; } }
.ts-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ts-facts > div { display: grid; gap: 3px; min-width: 0; }
.ts-facts .ts-figure { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.ts-sync-row { align-items: center; }
.ts-sync-wrap { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ts-note { font: 500 13px/1.35 var(--ui); color: var(--ink2); }
.ts-sync { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 4px 9px; border-radius: var(--r-pill); font: 500 12px/1.2 var(--ui); color: var(--attention); background: var(--attention-tint); transition: background 300ms, color 300ms; }
.ts-sync[data-ok] { color: var(--positive); background: var(--positive-tint); }
.ts-sync i { width: 7px; height: 7px; border-radius: var(--r-pill); background: currentColor; }
.ts-stage { flex: none; }

/* the delivery */
.ts-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ts-photo { position: relative; overflow: hidden; aspect-ratio: 2 / 1; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--hairline); background: linear-gradient(160deg, rgba(var(--ink-rgb), .08), rgba(var(--ink-rgb), .02)); opacity: 0; transform: translateY(6px) rotate(-1.5deg); transition: opacity 300ms var(--e-sheet), transform 400ms var(--e-sheet); }
.ts-photo[data-in] { opacity: 1; transform: none; }
/* the written lines of a delivery note */
.ts-photo::before { content: ''; position: absolute; left: 14%; right: 14%; top: 20%; height: 3px; border-radius: var(--r-xs); background: rgba(var(--ink-rgb), .22); box-shadow: 0 7px 0 rgba(var(--ink-rgb), .14), 0 14px 0 rgba(var(--ink-rgb), .14), 0 21px 0 rgba(var(--ink-rgb), .1); }
.ts-photo::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(var(--brand-rgb), .25), transparent); }
.ts-photo[data-scan]::after { animation: tsScan 1s var(--e-sheet) both; }
@keyframes tsScan { to { top: 100%; } }
.ts-checks { display: grid; gap: 6px; }
.ts-check { display: flex; justify-content: space-between; gap: 10px; font: 400 13px/1.35 var(--ui); color: var(--ink2); opacity: 0; transition: opacity 300ms; }
.ts-check[data-in] { opacity: 1; }
.ts-check b { font: 500 13px/1.3 var(--mono); color: var(--ink); }
.ts-check em { font-style: normal; color: var(--positive); }
.ts-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hairline); background: rgba(var(--ink-rgb), .025); opacity: 0; transition: opacity 350ms; }
.ts-eq[data-in] { opacity: 1; }
.ts-eq b { font: 600 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.ts-eq span { font: 500 15px var(--mono); color: var(--ink3); }
.ts-eq .ts-profit { color: var(--positive); }
.ts-invoiced { justify-content: flex-start; align-items: center; gap: 8px; }

/* the line along the card's foot: other trips on the sample book */
.ts-ticker { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-top: 1px solid var(--hairline); font: 500 12px/1.2 var(--ui); color: var(--ink3); overflow: hidden; }
.ts-ticker i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--live); flex: none; }
.ts-ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tsTick 400ms var(--e-sheet) both; }
.ts-ticker b { font: 500 12px var(--mono); color: var(--ink2); }
@keyframes tsTick { from { opacity: 0; transform: translateY(8px); } }

@media (max-height: 820px) and (min-width: 981px) { .ts-body { height: 296px; } .ts-phase { gap: 8px; } }
/* A phone: the map is a band across the top, the copy over its foot, the story under the copy. */
@media (max-width: 980px) {
  .hero { height: auto; min-height: 0; }
  .hero-grid { position: relative; left: auto; right: auto; bottom: auto; padding: 290px 16px 56px; grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tstory { width: 100%; }
}
@media (max-width: 520px) {
  .ts-steps b { display: none; }
  .ts-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-body { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .tstory *, .tstory *::before, .tstory *::after { transition: none !important; animation: none !important; }
  .ts-draw-in { stroke-dashoffset: 0; }
}
/* Classic and Neon headlines beside the story card: a step smaller, so "One equation." holds one line. */
:root[data-design="classic"] .hero-title,
:root[data-design="neon"] .hero-title { font-size: clamp(48px, 6.4vw, 100px); }
/* Sora runs wider than Geist, so Neon takes one more step down to keep "One equation." on a line. */
:root[data-design="neon"] .hero-title { font-size: clamp(44px, 5.5vw, 86px); }
