/* R+ Outbound v6 (implementations/website-design-v6.md; v5 base in website-design-v5.md).
   One memorable thing: the email trace in the hero, ending in the inbox. Everything else quiet:
   no eyebrow labels, no per-section fade-ins, hairlines instead of a card kit, mono only for real machine text. */
:root {
  --ink: #0B1020;
  --ink-2: #090D1A;
  --panel: #121A2E;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #EEF1F6;
  --slate: #8B95AB;
  --dim: #737E96;
  --signal: #3DDC97;
  --signal-a: rgba(61,220,151,0.55);
  --blue: #B9C4FF;
  --blue-a: rgba(140,160,255,0.12);
  --junk: #FF6B5E;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --max: 1160px;
  --out: cubic-bezier(.16, 1, .3, 1);
}

@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
/* Film grain: one fixed layer, adds depth to the flat navy */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(61,220,151,0.28); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--text); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* Type scale */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.035em; text-wrap: pretty; }
h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 16px; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--slate); max-width: 560px; line-height: 1.55; letter-spacing: -0.005em; }
.muted { color: var(--slate); }
.label { font-size: 14px; color: var(--slate); margin: 0 0 12px; } /* kept for sub-pages */

/* One load sequence: the headline rises word by word from a mask, the rest follows once */
h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h1 .w > span { display: inline-block; animation: rise-in 1s var(--out) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
.rise { animation: fade-in .9s var(--out) both; animation-delay: var(--d, 0s); }
@keyframes rise-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11,16,32,0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand::first-letter { color: var(--text); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { position: relative; font-size: 14px; color: var(--slate); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--out); }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on::after { transform: scaleX(1); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--signal)); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: var(--po, .7); transition: opacity .4s; }
@media (max-width: 800px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px;
  border-radius: 10px; background: var(--text); color: var(--ink) !important;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 24px -8px rgba(160,190,255,0.35);
  transition: transform .3s var(--out), box-shadow .3s var(--out), background .2s;
}
.btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 16px 34px -10px rgba(160,190,255,0.6); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn.ghost { background: transparent; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32); }
.nav .btn { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset; }

/* Sections */
section { padding: 136px 0; border-top: 1px solid var(--line); position: relative; }
section.tight { padding: 104px 0; }
section.loose { padding: 168px 0; }
@media (max-width: 600px) { section, section.tight, section.loose { padding: 80px 0; } }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 20px; }
.section-head.wide { max-width: none; display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.section-head.wide h2, .section-head.wide .lead { margin-bottom: 0; }
@media (max-width: 860px) { .section-head.wide { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Hero as a scroll story (trace.js sets .mail[data-state]) ---------- */
.hero { position: relative; padding: 0; border-top: 0; }
.hero::before {
  content: ""; position: absolute; top: -260px; left: 50%; width: min(1400px, 140vw); height: 1100px; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(ellipse 22% 55% at 50% 0%, rgba(170,190,255,0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(110,140,255,0.16), rgba(110,140,255,0.04) 50%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 900px; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 0%, #000, transparent 75%), radial-gradient(circle 220px at var(--mx, -999px) var(--my, -999px), rgba(0,0,0,.9), transparent);
          mask-image: radial-gradient(ellipse 50% 60% at 50% 0%, #000, transparent 75%), radial-gradient(circle 220px at var(--mx, -999px) var(--my, -999px), rgba(0,0,0,.9), transparent);
}
.story-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.story-intro { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.story-intro h1 { margin-bottom: 28px; }
.story-intro .actions, .story-step .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.scroll-cue { margin-top: 56px; font-size: 14px; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.scroll-cue::before { content: ""; width: 1px; height: 28px; background: linear-gradient(transparent, var(--slate)); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(-4px); opacity: .4; } 50% { transform: translateY(4px); opacity: 1; } }

/* Steps with a progress rail */
.steps { position: relative; padding-left: 40px; }
.rail { position: absolute; left: 0; top: 24vh; bottom: 35vh; width: 1px; background: var(--line-2); }
.rail i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(var(--blue), var(--signal)); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform .7s var(--out); }
.story-step { position: relative; min-height: 42vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .6s var(--out); }
.story-step h2 { position: relative; }
.story-step h2::before { content: ""; position: absolute; left: -44px; top: .52em; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .4s, background .4s; }
.story-step.on h2::before, .story-step.done h2::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(61,220,151,0.12); }
.story-step.on { opacity: 1; }
.story-step.done { opacity: .45; }
.story-step:last-child { min-height: 70vh; }
.story-step h2 { font-size: clamp(38px, 4.6vw, 64px); margin-bottom: 18px; }
.story-visual { position: relative; }
.story-visual .mail { position: sticky; top: calc(50vh - 210px); margin-top: calc(50vh - 242px); }

/* Mail panel */
.mail {
  border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(255,255,255,0.06) inset, 0 50px 100px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.3);
  transition: box-shadow .8s var(--out);
}
.mail::before { /* light catching the top edge */
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.mail-bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mail-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); display: block; }
.mail-bar .folder, .mail-bar .folder-in { margin-left: 10px; font-size: 13px; color: var(--slate); transition: opacity .5s var(--out), transform .5s var(--out); }
.mail-bar .folder-in { position: absolute; left: 72px; opacity: 0; transform: translateY(6px); color: var(--signal); font-weight: 500; }
.step-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.step-count b { color: var(--text); font-weight: 500; }
.mail-stage { position: relative; }
.mail-view { transition: opacity .6s var(--out), transform .8s var(--out), filter .6s; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px 0; }
.chip { font-size: 13px; color: var(--dim); padding: 6px 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: transparent;
  transition: color .5s var(--out), box-shadow .5s var(--out), background .5s var(--out); }
.chip em { font-style: normal; }
.chip b { color: var(--dim); font-weight: 500; transition: color .5s; }
.mail-head { padding: 14px 20px 8px; font-family: var(--mono); font-size: 13px; line-height: 2.05; color: var(--slate); }
.mail-head .k { display: inline-block; width: 64px; color: var(--dim); }
.mail-head b { color: var(--text); font-weight: 400; }
.from-addr { display: none; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; }
.mail[data-state="4"] .from-name { display: none; }
.mail[data-state="4"] .from-addr { display: inline-block; animation: type 1.1s steps(29, end) .1s forwards; }
@keyframes type { to { width: 29ch; } }
html:not(.js) .from-addr { display: none; }
.row-from { white-space: nowrap; }
.row-auth { opacity: .18; transition: opacity .6s var(--out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-auth u { text-decoration: none; transition: color .6s; }
.tag { margin-left: 10px; font-family: var(--sans); font-size: 12px; color: var(--blue); padding: 2px 8px; border-radius: 6px; background: var(--blue-a);
  opacity: 0; transform: translateX(-4px); display: inline-block; transition: opacity .5s var(--out), transform .5s var(--out), box-shadow .5s; white-space: nowrap; line-height: 1.6; }
.tag.ok { color: var(--signal); background: rgba(61,220,151,0.12); }
.mail-body { padding: 10px 20px 14px; font-size: 15px; line-height: 1.55; border-top: 1px solid var(--line); margin: 6px 20px 0; padding-left: 0; padding-right: 0; }
.mail-body p { margin: 0 0 10px; color: var(--text); }
.mail-body .sig { color: var(--slate); margin: 0; }
.mail-body .mf { font-family: var(--mono); font-size: 12.5px; color: var(--blue); background: var(--blue-a); padding: 2px 6px; border-radius: 4px; transition: box-shadow .5s, color .5s, background .5s; }
.progress { display: flex; gap: 6px; padding: 12px 20px 18px; }
.progress i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--out); }

/* Inbox finale: at step 5 the message folds into the top row of an inbox */
.inbox-view { position: absolute; inset: 0; padding: 8px 0 0; display: flex; flex-direction: column; pointer-events: none; }
.ib-row { display: grid; grid-template-columns: 18px 128px 1fr 44px; align-items: center; gap: 10px; padding: 0 20px; flex: 1; min-height: 36px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--slate); opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--out), transform .7s var(--out); }
.ib-row .dot { width: 7px; height: 7px; border-radius: 50%; }
.ib-row i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.ib-row .t { font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-align: right; }
.ib-row.us { position: relative; color: var(--text); background: linear-gradient(90deg, rgba(61,220,151,0.10), rgba(61,220,151,0.02) 70%); }
.ib-row.us::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--signal); }
.ib-row.us .dot { background: var(--signal); box-shadow: 0 0 10px rgba(61,220,151,0.8); }
.ib-row.us b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row.us .subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row.us .t { color: var(--text); }

/* States: each step lights its piece; the current one glows */
.mail[data-state="1"] .c1, .mail[data-state="2"] .c1, .mail[data-state="3"] .c1, .mail[data-state="4"] .c1,
.mail[data-state="2"] .c2, .mail[data-state="3"] .c2, .mail[data-state="4"] .c2 { color: var(--slate); background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.mail[data-state="1"] .c1 b, .mail[data-state="2"] .c1 b, .mail[data-state="3"] .c1 b, .mail[data-state="4"] .c1 b { color: var(--text); }
.mail[data-state="2"] .c2 b, .mail[data-state="3"] .c2 b, .mail[data-state="4"] .c2 b { color: var(--signal); }
.mail[data-state="1"] .c1 { box-shadow: inset 0 0 0 1px rgba(61,220,151,0.7), 0 0 26px -2px rgba(61,220,151,0.4); }
.mail[data-state="2"] .c2 { box-shadow: inset 0 0 0 1px rgba(61,220,151,0.7), 0 0 26px -2px rgba(61,220,151,0.4); }
.mail[data-state="2"] .l2 { color: var(--signal); background: rgba(61,220,151,0.12); box-shadow: 0 0 0 1px rgba(61,220,151,0.5); }
.mail[data-state="3"] .t3, .mail[data-state="4"] .t3,
.mail[data-state="4"] .t4 { opacity: 1; transform: none; }
.mail[data-state="3"] .t3 { box-shadow: 0 0 0 1px rgba(61,220,151,0.7), 0 0 22px -2px rgba(61,220,151,0.45); }
.mail[data-state="4"] .t4 { box-shadow: 0 0 0 1px rgba(61,220,151,0.7), 0 0 22px -2px rgba(61,220,151,0.45); }
.mail[data-state="4"] .row-auth { opacity: 1; }
.mail[data-state="4"] .row-auth u { color: var(--signal); }
.mail[data-state="1"] .progress i:nth-child(-n+1)::after,
.mail[data-state="2"] .progress i:nth-child(-n+2)::after,
.mail[data-state="3"] .progress i:nth-child(-n+3)::after,
.mail[data-state="4"] .progress i:nth-child(-n+4)::after,
.mail[data-state="5"] .progress i::after { transform: none; }
.mail[data-state="5"] { box-shadow: inset 0 0 0 1px var(--signal-a), 0 50px 100px -30px rgba(0,0,0,0.8), 0 0 80px -10px rgba(61,220,151,0.28); }
.mail[data-state="5"] .folder { opacity: 0; transform: translateY(-6px); }
.mail[data-state="5"] .folder-in { opacity: 1; transform: none; }
.mail[data-state="5"] .mail-view { opacity: 0; transform: translateY(-28px) scale(.96); filter: blur(4px); }
.mail[data-state="5"] .ib-row { opacity: 1; transform: none; }
.mail[data-state="5"] .ib-row:nth-child(2) { transition-delay: .08s; }
.mail[data-state="5"] .ib-row:nth-child(3) { transition-delay: .13s; }
.mail[data-state="5"] .ib-row:nth-child(4) { transition-delay: .18s; }
.mail[data-state="5"] .ib-row:nth-child(5) { transition-delay: .23s; }
.mail[data-state="5"] .ib-row:nth-child(6) { transition-delay: .28s; }
.mail[data-state="5"] .ib-row.us { transition-delay: .18s; opacity: 1; }

/* Without JS or with reduced motion: show the finished trace (message view, every piece lit) */
html:not(.js) .mail .tag, html:not(.js) .mail .row-auth { opacity: 1; transform: none; }
html:not(.js) .mail .chip b { color: var(--text); }
html:not(.js) .mail .progress i::after { transform: none; }
html:not(.js) .rise, html:not(.js) h1 .w > span { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* Small screens: panel pinned at the top, steps scroll underneath */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-visual { order: -1; position: sticky; top: 64px; z-index: 6; margin: 0 -16px; padding: 12px 16px 12px; background: var(--ink); }
  .story-visual::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--ink), transparent); pointer-events: none; }
  .story-visual .mail { position: static; margin: 0; }
  .mail-body, .row-auth { display: none; }
  .chip-row { padding-top: 12px; }
  .mail-head { line-height: 1.8; font-size: 12px; padding-top: 10px; }
  .mail-head .k { width: 56px; }
  .tag { display: none; }
  .mail[data-state="3"] .t3, .mail[data-state="4"] .t3, .mail[data-state="4"] .t4 { display: block; margin: 0 0 4px 56px; width: max-content; }
  html:not(.js) .mail .tag { display: block; margin: 0 0 4px 56px; width: max-content; }
  .ib-row { grid-template-columns: 14px 1fr 38px; font-size: 12.5px; }
  .ib-row.us .subj, .ib-row i + i, .ib-row:nth-child(n+5) { display: none; }
  .story-intro { min-height: auto; padding: 36px 0 24px; }
  .steps { padding-left: 28px; }
  .story-step h2::before { left: -32px; }
  .rail { top: 20vh; bottom: 30vh; }
  .story-step { min-height: 32vh; }
  .story-step:last-child { min-height: 48vh; }
}

/* ---------- Fit board ---------- */
.fit-board { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.fit-col { padding: 36px 40px 36px 0; }
.fit-col.no { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.fit-head { font-weight: 600; font-size: 16px; margin: 0 0 20px; }
.fit-col.no .fit-head { color: var(--slate); }
.fit-head .mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; margin-right: 10px; vertical-align: 2px; }
.fit-col.yes .mark { background: var(--signal); color: var(--ink); }
.fit-col.no .mark { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--slate); }
.fit-col ul { list-style: none; margin: 0; padding: 0; }
.fit-col li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; transition: color .3s, padding .4s var(--out); }
.fit-col.yes li { color: var(--text); }
.fit-col.no li { color: var(--slate); }
.fit-col.no li { text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 1px; transition: text-decoration-color .4s, color .3s; }
.fit-col.no li:hover { text-decoration-color: var(--dim); color: var(--dim); }
.fit-col.yes li:hover { padding-left: 8px; }
.fit-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); }
.stat { padding: 40px 40px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { padding-left: 40px; border-left: 1px solid var(--line); }
.stat .big { font-weight: 600; font-size: clamp(56px, 7vw, 100px); line-height: .9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, rgba(238,241,246,0.45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .cap { font-size: 15px; color: var(--slate); }
.stat .cap b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text); margin-right: 8px; padding: 2px 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 760px) {
  .fit-board, .fit-stats { grid-template-columns: 1fr; }
  .fit-col, .fit-col.no { padding: 28px 0; border-left: 0; }
  .fit-col.no { border-top: 1px solid var(--line); }
  .stat, .stat + .stat { padding: 28px 0 8px; border-left: 0; }
}

/* ---------- System (rifle) ---------- */
.gun { position: relative; height: 440px; margin: 8px 0 24px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' stroke='%23E8EEFF' stroke-width='1.2'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 3v8M16 21v8M3 16h8M21 16h8'/%3E%3Ccircle cx='16' cy='16' r='.8' fill='%233DDC97' stroke='none'/%3E%3C/svg%3E") 16 16, crosshair; }
@media (max-width: 600px) { .gun { height: 250px; } }
.gun::before { /* the rifle sits on a faint blueprint sheet */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 4px;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%);
}
.gun canvas { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 5px rgba(140,170,255,0.5)); opacity: 0; transition: opacity 1.2s var(--out); }
.gun.ready canvas { opacity: 1; }
.gun.no-gl { display: none; }
.gun-label { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; white-space: nowrap; font-weight: 600; font-size: 15px; margin: -18px 0 0 14px; }
.gun-label span { display: block; font-weight: 400; font-size: 13px; color: var(--slate); }
.gun.narrow .gun-label { font-size: 13px; }
.gun.narrow .gun-label[data-part="bullet"] { margin: 6px 0 0 -30px; }
@media (hover: none) { .gun { cursor: pointer; } }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line-2); padding-top: 32px; }
.part h3 { margin-bottom: 8px; }
.part p { color: var(--slate); font-size: 16px; margin: 0; }
@media (max-width: 860px) { .parts { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Method: a real sequence, drawn as a line that fills as you read ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.split h2, .sample-grid h2 { font-size: clamp(32px, 3.3vw, 46px); }
.split > .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.split .flow { padding-top: 6px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 0; } .split > .section-head { position: static; margin-bottom: 56px; } }
.flow { list-style: none; margin: 0; padding: 0; position: relative; max-width: 820px; }
.flow::before, .flow::after { content: ""; position: absolute; left: 15px; top: 16px; bottom: 52px; width: 1px; }
.flow::before { background: var(--line-2); }
.flow::after { background: linear-gradient(var(--blue), var(--signal)); transform: scaleY(var(--p, 0)); transform-origin: top; }
.flow li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 24px; padding: 0 0 40px; }
.flow .node { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--slate); position: relative; z-index: 1; transition: box-shadow .5s var(--out), color .5s; }
.flow li.passed .node { box-shadow: inset 0 0 0 1px rgba(160,180,255,0.6); color: var(--text); }
.flow li:last-child.passed .node { box-shadow: inset 0 0 0 1px rgba(61,220,151,0.7), 0 0 18px -2px rgba(61,220,151,0.5); color: var(--signal); }
.flow h3 { margin: 3px 0 6px; }
.flow p { color: var(--slate); margin: 0; font-size: 16px; max-width: 620px; }
html:not(.js) .flow::after { transform: none; }
html:not(.js) .pin-track { height: auto; }
html:not(.js) .pin-stage { position: static; height: auto; display: block; }
html:not(.js) .pin .flow li > div { opacity: 1; }
html:not(.js) .gun { display: none; }
html:not(.js) .funnel { display: none; }

/* Pinned method: once the section fills the screen it holds still, and scrolling drives the line
   and the counter instead of moving the page (ui.js). Only where the whole stage fits. */
@media (min-width: 961px) and (min-height: 760px) {
  section.pin { padding: 0; }
  .pin-track { height: 280vh; }
  .pin-stage { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; }
  .pin-stage > .wrap { width: 100%; }
  .pin .split > .section-head { position: static; }
  .pin .flow li { padding-bottom: 26px; }
  .pin .flow p { font-size: 15px; }
  .pin .flow::after { transition: none; }
  .pin .flow li > div { opacity: .38; transition: opacity .5s var(--out); }
  .pin .flow li.passed > div { opacity: 1; }
}
/* Funnel: an example list counts down as the method line passes each step (ui.js) */
.funnel { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.f-num { display: block; font-weight: 600; font-size: clamp(56px, 6vw, 88px); letter-spacing: -0.055em; line-height: .95; font-variant-numeric: tabular-nums; }
.f-unit { display: block; margin-top: 10px; font-size: 15px; color: var(--slate); min-height: 1.6em; }
.f-bar { margin-top: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.f-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--signal)); transform: scaleX(var(--f, 1)); transform-origin: left; transition: transform .9s var(--out); }
.funnel p.f-note { margin: 14px 0 0; font-size: 13px; color: var(--dim); max-width: 380px; }
.f-sub { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--dim); min-height: 1.5em; }
/* Phones: the same counter rides under the nav while the method list is on screen */
@media (max-width: 960px) {
  .funnel { position: fixed; left: 0; right: 0; top: 64px; z-index: 15; margin: 0; padding: 10px 16px 0; border: 0; border-bottom: 1px solid var(--line);
    background: rgba(11,16,32,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s var(--out), transform .35s var(--out); }
  .funnel.show { opacity: 1; transform: none; }
  .funnel::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(rgba(11,16,32,0.92), transparent); pointer-events: none; }
  .f-num { font-size: 32px; grid-row: 1 / 3; }
  .f-unit { margin: 0; font-size: 14px; min-height: 0; }
  .f-sub { font-size: 11.5px; }
  .f-bar { grid-column: 1 / -1; margin: 10px -16px 0; border-radius: 0; height: 2px; }
  .funnel p.f-note { display: none; }
}

/* ---------- Experiments ---------- */
@keyframes rec { 50% { opacity: .25; } }

/* Entry index: every experiment, filterable by the part of the rifle it is about */
.ei { margin-top: 72px; }
.ei[hidden] { display: none; }
.ei-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.ei-head h3 { font-size: 17px; }
.ei-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.ei-filter button { font: inherit; font-size: 13.5px; color: var(--slate); background: transparent; border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s, background .2s; }
.ei-filter button:hover { color: var(--text); }
.ei-filter button.on { color: var(--ink); background: var(--text); box-shadow: none; }
html:not(.js) .ei-filter { display: none; }

/* Video first: the newest episode plays large, the rest sit in a thumbnail grid.
   Players load YouTube (nocookie) only on click, so nothing third-party loads before that. */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; padding-top: 40px; border-top: 1px solid var(--line-2); }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; color: var(--text); font: inherit;
  background: radial-gradient(ellipse 70% 80% at 30% 20%, rgba(120,150,255,0.18), transparent 70%), #0E1528;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0,0,0,0.8); }
.player::before, .ev-thumb::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent 85%); mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent 85%); }
/* Episode poster: one claim, two rows, result pills. Same system at every size (container units). */
.player, .ev-thumb { container-type: inline-size; }
.p-poster { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); display: grid; gap: 2.6cqw; text-align: left; }
.p-row { display: flex; align-items: center; gap: 3cqw; }
.p-k { font-weight: 600; font-size: 6.6cqw; letter-spacing: -0.04em; line-height: 1; min-width: 7.2em; color: var(--text); white-space: nowrap; }
.p-poster .pill { font-size: max(11px, 3cqw); padding: .35em 1em; gap: .5em; }
.p-poster .pill::before { width: .45em; height: .45em; }
.pill.neutral { color: var(--slate); }
.play { position: absolute; right: 7%; bottom: 10%; width: 56px; height: 56px; border-radius: 50%; background: rgba(238,241,246,0.95); box-shadow: 0 10px 30px -6px rgba(0,0,0,0.6); transition: transform .4s var(--out), background .2s; }
.play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%); border-left: 15px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play.big { width: 76px; height: 76px; }
.play.big::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
.player:hover .play, a.ev:hover .play { transform: scale(1.08); background: #fff; }
.p-chip, .ev-st { position: absolute; left: 16px; top: 14px; font-size: 12.5px; color: var(--slate); padding: 4px 10px; border-radius: 999px; background: rgba(11,16,32,0.7); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; align-items: center; gap: 7px; }
.ev-st.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--junk); box-shadow: 0 0 10px rgba(255,107,94,0.7); animation: rec 1.6s ease-in-out infinite; }
.article-player { margin: 36px 0 8px; }
.player.nudge .p-chip { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature-text .id, .ev .id { font-family: var(--mono); font-size: 12.5px; color: var(--dim); display: block; }
.feature-text h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0; }
.feature-text p { color: var(--slate); font-size: 16px; margin: 0 0 24px; }
.feature-text .more { font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s; }
.feature-text .more:hover { border-color: var(--text); }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; margin-top: 28px; }
.ev { display: block; text-decoration: none; }
.ev[hidden] { display: none; }
.ev-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 14px;
  background: radial-gradient(ellipse 70% 90% at 25% 15%, rgba(120,150,255,0.14), transparent 70%), #0E1528; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, transform .5s var(--out); }
a.ev:hover .ev-thumb { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); transform: translateY(-3px); }
.ev .play { right: 16px; bottom: 16px; width: 40px; height: 40px; }
.ev .play::after { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.ev.soon .play { background: rgba(238,241,246,0.18); box-shadow: none; }
.ev.soon .play::after { border-left-color: rgba(238,241,246,0.6); }
.ev.soon .p-poster { opacity: .7; }
.ev h4 { margin: 8px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.ev.soon h4 { color: var(--slate); }
a.ev:hover h4 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dim); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: 28px; } .ev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ev-grid { grid-template-columns: 1fr; } .play.big { width: 56px; height: 56px; } }

/* ---------- Quote ---------- */
.quote-block .quote { max-width: 26ch; }
.quote { font-size: clamp(30px, 4.2vw, 58px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 36px; text-indent: -0.42em; text-wrap: balance; }
@media (max-width: 600px) { .quote { text-indent: 0; } }
.quote-by { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--slate); margin: 0; }
.quote-by::before { content: ""; width: 32px; height: 1px; background: var(--line-2); }
.quote-by strong { color: var(--text); font-weight: 600; }

/* ---------- Free sample ---------- */
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .sample-grid { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: c; }
.checks li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--slate); counter-increment: c; }
.checks li::before { content: "0" counter(c); font-family: var(--mono); font-size: 13px; color: var(--signal); padding-top: 3px; }
.checks li b { color: var(--text); font-weight: 600; }

/* Sample request: Netlify Forms (no third party, no JS needed) */
.sample-form { display: grid; gap: 12px; max-width: 460px; }
.sample-form .hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13.5px; color: var(--slate); }
.field input { height: 48px; padding: 0 14px; border-radius: 10px; border: 0; font: inherit; font-size: 16px; color: var(--text); background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s; }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(61,220,151,0.7), 0 0 0 4px rgba(61,220,151,0.12); }
.sample-form .btn { border: 0; cursor: pointer; font-family: inherit; margin-top: 6px; justify-self: start; }
.form-note { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.form-note a { color: var(--slate); }

/* ---------- FAQ ---------- */
.narrow .faq-list, .narrow .section-head { max-width: 820px; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; transition: color .2s; }
details summary:hover { color: #fff; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .4s var(--out);
  background: linear-gradient(var(--slate), var(--slate)) center / 14px 1.5px no-repeat, linear-gradient(var(--slate), var(--slate)) center / 1.5px 14px no-repeat; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--slate); margin: 0 0 26px; max-width: 700px; }
details[open] p { animation: fade-in .5s var(--out); }

/* ---------- Final CTA ---------- */
.cta { text-align: center; overflow: hidden; padding: 160px 0; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -380px; width: 1000px; height: 640px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(120,150,255,0.2), transparent 65%); }
.cta .wrap { position: relative; }
.mail.mini { width: min(440px, 100%); margin: 0 auto 48px; text-align: left; box-shadow: inset 0 0 0 1px var(--signal-a), 0 0 60px -14px rgba(61,220,151,0.3); }
.mail.mini .mail-bar .folder-in { position: static; opacity: 1; transform: none; margin-left: 10px; }
.mail.mini .ib-row { opacity: 1; transform: none; height: 54px; grid-template-columns: 14px 1fr auto 40px; }
@media (max-width: 600px) { .mail.mini .ib-row { grid-template-columns: 14px 1fr 40px; grid-template-rows: auto auto; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 2px; } .mail.mini .ib-row .subj { grid-column: 2 / 4; grid-row: 2; display: block; color: var(--slate); font-size: 12.5px; } }
.cta h2 { max-width: 1040px; margin: 0 auto 22px; font-size: clamp(34px, 4.6vw, 60px); text-wrap: balance; }
.cta .lead { margin: 0 auto 36px; }

/* ---------- Footer: the wordmark closes the page ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 0; font-size: 14px; color: var(--slate); overflow: hidden; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--text); }
footer .cols { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-brand strong { color: var(--text); font-weight: 700; font-size: 15px; }
.foot-brand span { font-size: 13px; color: var(--dim); }
.wordmark { display: block; margin: 56px auto 0; padding: 0 16px; max-width: 1400px; font-weight: 700; letter-spacing: -0.065em; line-height: .8; margin-bottom: -0.16em; text-align: center; white-space: nowrap;
  font-size: clamp(64px, 16.2vw, 236px); user-select: none;
  background: linear-gradient(180deg, rgba(238,241,246,0.13), rgba(238,241,246,0.015) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sub-pages (experiment + legal) ---------- */
.article { max-width: 760px; }
.article h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 20px; }
.article h2 { font-size: 26px; margin: 52px 0 14px; }
.article p { color: var(--slate); font-size: 17px; }
.article strong { color: var(--text); }
.back { display: inline-block; margin-bottom: 36px; font-size: 14px; color: var(--slate); text-decoration: none; }
.back:hover { color: var(--text); }
.tile { background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 24px; }
.results { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 15px; }
.results th { text-align: left; font-weight: 500; font-size: 13px; color: var(--dim); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.results td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.results td:first-child { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.inbox { color: var(--signal); box-shadow: inset 0 0 0 1px rgba(61,220,151,0.4); }
.pill.junk { color: var(--junk); box-shadow: inset 0 0 0 1px rgba(255,107,94,0.4); }
.inbox { color: var(--signal); }
.code { font-family: var(--mono); font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
.code .hl { background: rgba(140,160,255,0.14); color: #C9D2FF; border-radius: 4px; padding: 1px 4px; }
.caveat { border-left: 2px solid var(--line-2); padding-left: 20px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal a { color: var(--text); }
