/* Tarent landing · "The thread"
 * Static-first: every rule outside `html.motion` describes the finished page.
 * Animated and hidden states live only under `html.motion`, which the head
 * script sets and landing/thread.js confirms (reduced motion never gets it). */

:root {
  --ink: #0a1526; --ink-2: #12213a; --ink-3: #1b2b48;
  --blue: #2145ca; --blue-2: #16308f; --blue-soft: #e2e8fb;
  --tint: #f4f8fd; --paper: #ffffff;
  --text: #1f2a3d; --muted: #4a5568; --faint: #6b7a90; --line: #d5dbe5; --line-2: #e6eaf1;
  --ok: #0f9d58; --warn: #e8940a; --red: #dc2626; --noise: #803325; --unset: #e3e6ef; --pink: #4c6fff;
  --on-dark: #e8edf7; --on-dark-2: #a9b6cf; --dark-line: #2b3a57;
  --nav-h: 4.25rem;
  --r-card: 0.875rem;
  --shadow: 0 1.125rem 2.75rem rgba(10, 21, 38, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: auto; font-size: clamp(16px, calc(8px + .55vw), 24px); }
body { background: var(--paper); color: var(--text); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.875rem); font-weight: 750; }
h2 em, h1 em { font-style: normal; color: var(--blue); }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.wrap { max-width: 73.75rem; margin: 0 auto; padding-inline: 1.75rem; }
.eyebrow { font: 600 0.75rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.875rem; }
.eyebrow.center, .center { text-align: center; }
.eyebrow.light { color: #a9b8f5; }
.sub { color: var(--muted); max-width: 40rem; margin-top: 0.875rem; }
.ph { background: #fff4d6; color: #6b4a00; border-radius: 0.25rem; padding: 0 0.25rem; font-size: .92em; }
.confirm { display: inline-block; vertical-align: middle; font: 600 0.625rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: #fff4d6; color: #6b4a00; border-radius: 0.25rem; padding: 0.1875rem 0.3125rem; margin-left: 0.25rem; }
.skip-link { position: absolute; left: -9999px; top: 0.5rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.5rem 0.75rem; border-radius: 0.5rem; }
.skip-link:focus { left: 0.75rem; }

/* Buttons & small bits */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 650; font-size: 1rem; border-radius: 0.625rem; padding: 0.8125rem 1.25rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-pri { background: var(--blue); color: #fff; }
.btn-pri:hover { background: var(--blue-2); }
.btn-sec { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-sec:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-soft); }
.btn-sm { font-size: 0.875rem; padding: 0.5rem 0.875rem; border-radius: 0.5rem; }
.btn-block { width: 100%; }
.ava { flex: none; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: linear-gradient(135deg, #2145ca, #16308f); color: #fff; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; }
.ava.teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.ava.grey { background: #475569; }
.ava.a { background: linear-gradient(135deg, #f59e0b, #b45309); }
.lc-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lc-who b { color: var(--ink); font-size: 0.9375rem; }
.lc-who span { color: var(--muted); font-size: 0.8125rem; }
.tier { font: 600 0.6875rem/1 var(--font-mono); padding: 0.3125rem 0.4375rem; border-radius: 0.375rem; white-space: nowrap; font-style: normal; }
.tier.hi { background: var(--blue-soft); color: #1a36a0; }
.tier.md { background: #fdf0dc; color: #7a4a00; }
.chip-btn { font: 600 0.8125rem/1 var(--font-sans); padding: 0.5rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip-btn.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-btn.ghost { color: var(--muted); }
button.chip-btn:hover { border-color: var(--blue); }
button.chip-btn.pri:hover { background: var(--blue-2); }
.ch-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.ch-no { font: 600 0.75rem/1 var(--font-mono); border: 1px solid currentColor; border-radius: 1.25rem; padding: 0.25rem 0.5625rem; color: var(--blue); }
.ch-name { font: 600 0.75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dark .ch-no { color: #a9b8f5; }
.dark .ch-name { color: var(--on-dark-2); }
.rec-k { display: block; font: 600 0.6875rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.5rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(0.625rem); border-bottom: 1px solid var(--line-2); }
.nav-in { max-width: 73.75rem; margin: 0 auto; padding: 0 1.75rem; height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 1.375rem; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; cursor: pointer; }
.nav-toggle span { width: 1rem; height: 1.8px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero field (fixed canvas, drawn only while the hero shows) ---------- */
.sea { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
html.motion .sea { display: block; }
main, .foot { position: relative; }
section { position: relative; }
.s-hero > .wrap { position: relative; z-index: 1; width: 100%; }
.s-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(240px, 42vh, 480px); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C120 2 240 22 360 12 S600 2 720 12 S960 22 1080 12 S1320 2 1440 12' fill='none' stroke='%232145ca' stroke-opacity='.5' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 72 C120 62 240 82 360 72 S600 62 720 72 S960 82 1080 72 S1320 62 1440 72' fill='none' stroke='%232145ca' stroke-opacity='.3' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 128 C120 118 240 138 360 128 S600 118 720 128 S960 138 1080 128 S1320 118 1440 128' fill='none' stroke='%232145ca' stroke-opacity='.18' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") top / 100% 100% no-repeat, linear-gradient(rgb(230,236,252) 0%, rgb(223,230,250) 5%, rgb(207,217,245) 10%, rgb(189,203,240) 15%, rgb(177,193,236) 20%, rgb(173,189,234) 25%, rgb(157,173,221) 30%, rgb(132,150,202) 35%, rgb(107,125,182) 40%, rgb(86,106,166) 45%, rgb(78,98,160) 50%, rgb(73,93,153) 55%, rgb(62,81,134) 60%, rgb(48,65,111) 65%, rgb(35,50,89) 70%, rgb(26,40,75) 75%, rgb(24,38,71) 80%, rgb(21,34,64) 85%, rgb(16,28,53) 90%, rgb(12,23,42) 95%, rgb(10,21,38) 100%); }
html.motion .s-hero::after { display: none; }

/* ---------- P01 · Hero ---------- */
.s-hero { min-height: calc(100vh - var(--nav-h)); padding: 4vh 0 calc(clamp(240px, 42vh, 480px) + 6vh); display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center; width: 100%; }
.hero-h1 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero-h1 .w { display: inline-block; }
html.motion .hero-h1 .w { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.lede { font-size: 1.1875rem; color: var(--muted); margin-top: 1.375rem; max-width: 35rem; }
.audience { font-weight: 650; color: var(--ink); margin-top: 1rem; }
.cta-row { display: flex; gap: 0.75rem; margin-top: 1.625rem; flex-wrap: wrap; }
.hero-h1 .hl { color: var(--blue); }
.hero-trust { margin-top: 2.25rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; font-size: 0.9375rem; color: var(--muted); }
.trust li { white-space: nowrap; }
.trust li::before { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--blue); margin-right: 0.5rem; vertical-align: middle; }
.card-kicker { font: 600 0.6875rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.75rem; }
.lc-stack { position: relative; max-width: 27.5rem; }
.lc-stack .lead-card { position: relative; z-index: 2; }
/* more suggestions waiting behind this one: offset, smaller, blurred, faded */
.lc-ghost { position: absolute; inset: 0; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; box-shadow: 0 0.75rem 2rem rgba(10,21,38,.08); display: grid; grid-template-columns: 2.125rem 1fr; grid-auto-rows: min-content; gap: 0.5rem 0.75rem; pointer-events: none; }
.lc-ghost.g1 { transform: translate(1rem, 1rem) scale(.97); filter: blur(1.5px); opacity: .75; }
.lc-ghost.g2 { transform: translate(2rem, 2rem) scale(.94); filter: blur(2.5px); opacity: .45; }
.lc-ghost .g-ava { grid-row: span 2; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: #c7d0ea; }
.lc-ghost .g-l { height: 0.625rem; border-radius: 0.3125rem; background: #dfe4ef; align-self: center; }
.lc-ghost .g-l.w1 { width: 45%; } .lc-ghost .g-l.w2 { width: 65%; }
.lc-ghost .g-row { grid-column: 1 / -1; height: 2.375rem; border-radius: 0.5625rem; background: #f4f6fb; border: 1px solid var(--line-2); }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; box-shadow: var(--shadow); max-width: 27.5rem; }
.lc-head { display: flex; align-items: center; gap: 0.75rem; }
.lc-head .lc-who { flex: 1; }
.lc-score { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.lc-score b { font-size: 2.125rem; line-height: 1; color: var(--blue); font-weight: 800; }
.lc-reasons { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 1.125rem 0; }
.lc-reasons li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--ink); background: #fbfcfe; border: 1px solid var(--line-2); border-radius: 0.5625rem; padding: 0.5625rem 0.75rem; }
.lc-reasons li i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--ok); flex: none; }
.lc-reasons li b { margin-left: auto; font: 600 0.8125rem/1 var(--font-mono); color: var(--ok); }
.lc-acts { display: flex; gap: 0.5rem; }

/* ---------- Proof (just before the demo) ---------- */
.s-proof { padding: 14vh 0; z-index: 2; background: #fff; }
.proof-in { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.proof-in .eyebrow { margin: 0; }
.proof-quote { position: relative; max-width: 50rem; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 2.75rem 3rem 2.25rem; box-shadow: var(--shadow); }
.pq-mark { position: absolute; top: -1rem; left: 2.75rem; width: 2.75rem; height: 2rem; color: var(--blue); background: #fff; padding: 0 0.5rem; box-sizing: content-box; }
.proof-quote blockquote { display: grid; gap: 0.875rem; }
.proof-quote blockquote p { font-size: 1.25rem; line-height: 1.55; color: var(--ink); font-weight: 450; text-wrap: pretty; }
.proof-quote figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; margin-top: 1.75rem; padding-top: 1.375rem; border-top: 1px solid var(--line-2); }
.pq-who b { display: block; font-size: 1rem; color: var(--ink); }
.pq-who span { font-size: 0.875rem; color: var(--muted); }
.pq-logo { display: block; height: 1.125rem; width: auto; }

/* ---------- Scroll-locked sections (shared) ---------- */
.lock { z-index: 2; }
.pin { position: relative; overflow: hidden; }
html.motion .lock.pinned .pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
html.motion .lock.pinned .pin > .wrap { width: 100%; }

/* ---------- P03 · Problem ---------- */
.s-problem .pin { padding: 12vh 0; }
.flood { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
html.motion .flood { display: block; }
.frags span { position: absolute; left: var(--x); top: var(--y); font-size: 0.875rem; color: #8292b0; opacity: .38; white-space: nowrap; pointer-events: none; }
html:not(.motion) .frags { display: none; }
.problem-in { position: relative; z-index: 2; display: grid; gap: 2.5rem; }
.problem-claim { text-align: center; }
.problem-claim h2 { margin-inline: auto; max-width: 60rem; font-size: clamp(2.5rem, 5vw, 5.25rem); letter-spacing: -.03em; line-height: 1.03; }
.s-problem .eyebrow { color: #a9b8f5; }
.stat { font: 500 0.875rem/1.4 var(--font-mono); color: var(--on-dark-2); margin-top: 1.25rem; }
.pains { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.pains li { border-top: 1px solid #33456a; padding-top: 1.25rem; }
.pains h3 { color: #fff; font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: 700; }
.pains p { color: var(--on-dark-2); margin-top: 0.625rem; font-size: 1.0625rem; }
.pain-no { display: block; font: 600 0.75rem/1 var(--font-mono); letter-spacing: .14em; color: #a9b8f5; margin-bottom: 0.875rem; }
.pain-quote { margin-top: 1rem; border-left: 0.1875rem solid #6b82c9; padding-left: 0.75rem; font-style: italic; color: var(--on-dark); font-size: 0.9375rem; }
.pain-quote cite { display: block; font-style: normal; font-size: 0.8125rem; color: var(--on-dark-2); margin-top: 0.375rem; }
.found { text-align: center; font-size: clamp(1.5rem, 2.8vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.found em { font-style: normal; color: #a9b8f5; }
.lit-dot { display: none; }

/* Motion: the navy ground is painted by the sea canvas behind this section, so
   the tiles falling out of the hero stay visible here; the pin itself is clear. */
html.motion .s-problem.pinned .pin { padding: calc(var(--nav-h) + 2vh) 0 4vh; background: transparent; }
html.motion .s-problem .frags { position: absolute; inset: 0; will-change: transform; }
html.motion .s-problem .frags span { opacity: .22; }
html.motion .s-problem.pinned .problem-in { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.75rem, 4.5vh, 3.25rem); }
html.motion .s-problem.pinned .problem-claim, html.motion .s-problem.pinned .pains { opacity: var(--po, 1); transition: none; }
html.motion .s-problem.pinned .problem-claim { text-align: center; transform: translateY(var(--cy, 0px)); }
html.motion .s-problem.pinned .problem-claim h2 { margin: 0 auto; }
html.motion .s-problem.pinned .pains li { opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 1.5rem)); }
html.motion .s-problem.pinned .found { text-align: center; opacity: calc(var(--fo, 0) * var(--fo2, 1)); transform: translateY(calc((1 - var(--fo, 0)) * 1rem)); }
html.motion .s-problem.pinned .lit-dot { display: block; position: absolute; left: 0; top: 0; width: 0.4375rem; height: 0.4375rem; margin: -0.21875rem 0 0 -0.21875rem; border-radius: 50%; background: #9fb0ff; box-shadow: 0 0 0.5rem rgba(125,149,255,.9); opacity: var(--lo, 0); transform: translate(var(--dx, 50vw), var(--dy, 50vh)); z-index: 4; }
.seek-ring { display: none; }
html.motion .s-problem.pinned .seek-ring { display: block; position: absolute; left: 0; top: 0; width: var(--rr, 12rem); height: var(--rr, 12rem); margin: calc(var(--rr, 12rem) / -2) 0 0 calc(var(--rr, 12rem) / -2); transform: translate(var(--dx, 50vw), var(--dy, 50vh)); border: 2px solid #7d95ff; border-radius: 50%; box-shadow: 0 0 0 0.375rem rgba(125,149,255,.1); opacity: var(--rop, 0); z-index: 3; pointer-events: none; }

/* ---------- P04 · Ingestion ---------- */
.dark .pin { background: var(--ink); color: var(--on-dark); }
.dark h2 { color: #fff; }
.dark h2 em { color: #a9b8f5; }
.s-ingest .pin { padding: 12vh 0; }
/* Problem and Ingestion are both dark. In the finished, static page they
   read as two separate chapters: a faint lit edge at the seam, a slightly
   lighter band that settles back into the page ink, and a soft glow behind
   the funnel and record. While the story is playing they stay one continuous
   dark space (the separation only appears once Ingestion has finished and is
   off screen, or when motion is off). */
html:not(.motion) .s-ingest .pin, .s-ingest.done .pin { background:
    radial-gradient(ellipse 46rem 30rem at 50% 62%, rgba(76,111,255,.09), transparent 70%),
    linear-gradient(180deg, #13223d 0, #0e1a30 9rem, var(--ink) 26rem); }
html:not(.motion) .s-ingest .pin::before, .s-ingest.done .pin::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(72rem, 92%); height: 1px; background: linear-gradient(90deg, transparent, rgba(143,163,255,.45) 30%, rgba(143,163,255,.45) 70%, transparent); z-index: 1; pointer-events: none; }
html.motion .s-ingest.pinned .pin { padding: 0; }
.ingest-in { text-align: center; }
.ingest-in .ch-head { justify-content: center; }
.ingest-in h2 { max-width: 47.5rem; margin: 0 auto; }
.ingest-stage { display: flex; flex-direction: column; align-items: center; margin-top: clamp(1.25rem, 4vh, 2.5rem); }
.counters { display: flex; justify-content: center; gap: 3rem; text-align: center; }
.counters b { display: block; font-size: 2rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.counters span { font-size: 0.875rem; color: var(--on-dark-2); }
.machine { position: relative; max-width: 38rem; width: 100%; margin: 0 auto; }
/* The intake: one wide funnel into the top of the record. The sources sit
   around its mouth and stream into it; everything drains into the card. */
.intake { position: relative; height: 8rem; margin-top: 1.75rem; }
.intake::before { content: ""; position: absolute; left: 22%; right: 22%; top: 0; bottom: -1px; background: linear-gradient(rgba(125,149,255,0), rgba(125,149,255,.06) 35%, rgba(125,149,255,.18)); -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); border-radius: 0.5rem 0.5rem 0 0; }
.funnel { position: absolute; inset: 0; width: 100%; height: 100%; display: none; -webkit-mask-image: linear-gradient(transparent, rgba(0,0,0,.35) 18%, #000 45%); mask-image: linear-gradient(transparent, rgba(0,0,0,.35) 18%, #000 45%); }
html.motion .funnel { display: block; }
.src { position: absolute; z-index: 2; width: 3rem; height: 3rem; border-radius: 0.75rem; background: #fff; display: grid; place-items: center; box-shadow: 0 0.375rem 1.125rem rgba(0,0,0,.35); }
.src img { width: 1.625rem; height: auto; }
/* the sources sit in a row across the funnel's mouth and pour into it */
.src { top: 0; transform: translate(-50%, -55%); }
.src[data-src="0"] { left: 31%; }
.src[data-src="1"] { left: 50%; }
.src[data-src="2"] { left: 69%; }
.record { position: relative; z-index: 2; text-align: left; background: #0f1d33; border: 1px solid var(--dark-line); border-radius: var(--r-card); padding: 1.125rem 1.25rem; box-shadow: 0 1.875rem 3.75rem rgba(0,0,0,.35); }
.rec-head { display: flex; align-items: center; gap: 0.75rem; }
.rec-head b { display: block; color: #fff; }
.rec-head span span { font-size: 0.8125rem; color: var(--on-dark-2); }
.rec-fields { margin: 0.75rem 0 0.875rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.rf { display: grid; grid-template-columns: 5.75rem 1fr; gap: 0.5rem; padding: 0.375rem 0; border-bottom: 1px solid var(--dark-line); font-size: 0.875rem; }
.rf dt { font: 600 0.6875rem/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #8ea0c0; }
.rf dd { color: var(--on-dark); }
/* grade on the left, one key reason on the right with a count of the rest;
   the others fan out of it when it lifts into the Classify strip */
.rec-foot { display: flex; align-items: flex-start; gap: 1.5rem; }
.rec-foot .rec-why { flex: 1 1 0; min-width: 0; }
.record .rk-g.rk-hide, .tvf-dark .rk-g.rk-hide, .rk-more[hidden] { display: none !important; }
.record .rk-g .pills, .tvf-dark .rk-g .pills { flex-wrap: nowrap; }
.record .rk-g li, .tvf-dark .rk-g li { white-space: nowrap; }
/* the last group that fits takes the rest of the row and truncates */
.rk-g.rk-trunc { flex: 1 1 0 !important; min-width: 0; }
.rk-g.rk-fill { flex: 1 1 auto !important; }
.rk-trunc .rk-l, .rk-trunc .pills li.pick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rk-trunc .pills { min-width: 0; }
.rk-g { position: relative; }
.rk-more { position: absolute; top: -0.5rem; right: -0.5rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3125rem; border-radius: 0.625rem; background: #4c6fff; color: #fff; font: 700 0.625rem/1.25rem var(--font-sans); text-align: center; box-shadow: 0 0 0 2px #0f1d33; }
.cls-ref .rk-more { display: none; }
.tvf-light .rk-more { display: block; box-shadow: 0 0 0 2px #fff; }
/* Key reasons, as the product shows them: a "last thread" line, then grouped
   boxes (engagement, deal signals, timing, other), each with a coloured edge */
.rk-last { font-size: 0.75rem; color: #8ea0c0; margin: -0.125rem 0 0.5rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--dark-line); }
.rk-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.rk-g { --c: #94a3b8; border: 1px solid var(--dark-line); border-left: 3px solid var(--c); border-radius: 0.5rem; padding: 0.4375rem 0.5625rem 0.5rem; background: rgba(255,255,255,.02); min-width: 0; }
.rk-g.o { grid-column: 1 / -1; }
/* compact: one row, one reason per group (the full set lives in the product) */
.record .rk-last, .tvf-dark .rk-last, .record .rk-g.o, .tvf-dark .rk-g.o, .record .rk-g li:not(.pick), .tvf-dark .rk-g li:not(.pick) { display: none; }
.record .rk-groups, .tvf-dark .rk-groups { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0.5rem; }
.record .rk-g, .tvf-dark .rk-g { flex: 0 0 auto; padding: 0.3125rem 0.5625rem 0.4375rem; }
.rk-g.e { --c: #22a55a; } .rk-g.d { --c: #14b8a6; } .rk-g.t { --c: #4f8df5; } .rk-g.o { --c: #94a3b8; }
.rk-l { display: block; font: 700 0.625rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin-bottom: 0.3125rem; }
.rk-g .pills { gap: 0.25rem; }
.tiles { display: flex; gap: 0.375rem; }
.tiles i { flex: none; width: 1.875rem; height: 1.875rem; border-radius: 0.4375rem; background: #16243d; border: 1px solid #2b3a57; display: grid; place-items: center; font: 700 0.8125rem/1 var(--font-sans); font-style: normal; color: #5d6f92; }
.tiles i.on { background: var(--ok); border: 1px solid #0b7a44; color: #fff; }
/* a suggested grade, as the product shows it: a pulsing blue border, not a fill
   (a filled tile is a grade someone has chosen) */
.tiles i.sgst { border: 2px solid #4c6fff; color: #dfe6ff; animation: sugPulse 1.6s ease-in-out infinite; }
@keyframes sugPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(76,111,255,.6); } 60% { box-shadow: 0 0 0 0.375rem rgba(76,111,255,0); } }
.tiles i.stepping { border: 1px solid #a9b8f5; color: #fff; background: #22345a; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.pills li { font-size: 0.75rem; font-weight: 500; line-height: 1.3; color: var(--on-dark); background: #1a2944; border: 1px solid #2b3a57; border-radius: 1.25rem; padding: 0.1875rem 0.5rem; }
.dark .rec-k { color: #8ea0c0; }
.dust { display: none; }

html.motion .rf dd { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
html.motion .rf.on dd { opacity: 1; transform: none; }
html.motion .pills li { opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease); }
html.motion .pills li.on { opacity: 1; transform: none; }
html.motion .tiles i.on:not(.lock-g) { background: #16243d; border: 1px solid #2b3a57; color: #5d6f92; }
html.motion .tiles i.sgst:not(.lock-g) { border: 1px solid #2b3a57; color: #5d6f92; animation: none; }
html.motion .tiles i.sgst.lock-g { animation: pop .4s var(--ease), sugPulse 1.6s .4s ease-in-out infinite; }
html.motion .dust { display: block; position: absolute; left: 20%; right: 20%; top: 100%; height: 5.625rem; opacity: var(--dust, 0); pointer-events: none; }
html.motion .dust i { position: absolute; top: 0; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: #4a5f88; animation: fall 2.4s linear infinite; }
.dust i:nth-child(1) { left: 5%; animation-delay: -.2s !important; } .dust i:nth-child(2) { left: 14%; animation-delay: -1.1s !important; } .dust i:nth-child(3) { left: 23%; animation-delay: -.6s !important; }
.dust i:nth-child(4) { left: 31%; animation-delay: -1.8s !important; } .dust i:nth-child(5) { left: 40%; animation-delay: -.9s !important; } .dust i:nth-child(6) { left: 49%; animation-delay: -2.1s !important; }
.dust i:nth-child(7) { left: 57%; animation-delay: -.4s !important; } .dust i:nth-child(8) { left: 66%; animation-delay: -1.4s !important; } .dust i:nth-child(9) { left: 74%; animation-delay: -.1s !important; }
.dust i:nth-child(10) { left: 83%; animation-delay: -1.6s !important; } .dust i:nth-child(11) { left: 91%; animation-delay: -.7s !important; } .dust i:nth-child(12) { left: 97%; animation-delay: -2.3s !important; }
@keyframes fall { from { transform: translateY(0); opacity: .9; } to { transform: translateY(5rem); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- P05 · Classify ---------- */
.s-classify .pin { background: var(--tint); padding: 12vh 0; }
/* the grade key: what each grade means, spelled out (the reassurance this section is for) */
html.motion .s-classify.pinned .pin { padding: 0; }
/* Simon's grade and reasons, carried over from the Ingestion record: the
   reference for what a "suggested grade" is */
.cls-ref { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.875rem 2.5rem; width: 100%; max-width: 100%; margin-top: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 0.875rem 1.125rem; box-shadow: 0 0.625rem 1.75rem rgba(10,21,38,.08); }
.cr-who { display: flex; align-items: center; gap: 0.625rem; align-self: center; }
.cr-who b { display: block; color: var(--ink); font-size: 0.9375rem; }
.cr-who small { display: block; color: var(--faint); font-size: 0.75rem; }
/* one row: who · grade · a compact set of key reasons (one per group, as many as fit) */
.cls-ref { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 1rem 2.5rem; padding: 1rem 1.5rem; }
.cls-ref .rk-last, .cls-ref .rk-g.o { display: none; }
.cls-ref .rk-g .pills li { display: none; }
.cls-ref .rk-g .pills li.pick { display: block; }
.cls-ref .rk-g { padding: 0.3125rem 0.625rem 0.4375rem; }
.cls-ref .rec-why { max-width: none; }
.cls-ref .pills { flex-wrap: wrap; }
.cls-ref .tiles i { background: #f1f3f8; border: 1px solid var(--line); color: #98a2b3; }
.cls-ref .tiles i.sgst, html.motion .cls-ref .tiles i.sgst:not(.lock-g) { background: #fff; border: 2px solid #4c6fff; color: #2145ca; animation: sugPulse 1.6s ease-in-out infinite; }
.cls-ref .tiles i.on, html.motion .cls-ref .tiles i.on:not(.lock-g) { background: var(--ok); border: 1px solid #0b7a44; color: #fff; animation: pop .4s var(--ease); }
.cls-ref .pills li, html.motion .cls-ref .pills li { color: var(--ink); border-color: #e2e6ee; background: #f1f3f8; opacity: 1; transform: none; }
.cls-ref .rk-last { color: var(--muted); border-bottom-color: var(--line-2); }
.cls-ref .rk-g { border-color: var(--line-2); border-left-color: var(--c); background: #fff; }
.cls-ref .rk-g.e { --c: #16a34a; } .cls-ref .rk-g.d { --c: #0d9488; } .cls-ref .rk-g.t { --c: #3b82f6; } .cls-ref .rk-g.o { --c: #94a3b8; }
.cls-ref .rec-why { min-width: 0; }
.cls-ref .rk-groups { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0.5rem; }
.cls-ref .rk-g { flex: 0 1 auto; }
.cls-ref .rk-g.o { grid-column: auto; }
html.motion .cls-ref.awaiting { visibility: hidden; }
html.motion .rec-foot.lifted { visibility: hidden; }
.tv-foot { overflow: hidden; border-radius: var(--r-card); border: 1px solid transparent; transform-origin: 0 0; }
.tv-foot > div { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tvf-dark { padding: 0; } .tvf-dark .rec-k { color: #8ea0c0; }
.tvf-dark .pills li { opacity: 1 !important; transform: none !important; }
.tvf-light.cls-ref { margin: 0; box-shadow: none; border: 0; max-width: none; }
.cls-state i { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 0.1875rem; outline: 1.5px dashed #4c6fff; outline-offset: 1px; margin-right: 0.5rem; vertical-align: -1px; }
.cls-state { margin-top: 0.625rem; font: 600 0.75rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.outcome { margin-top: 0.875rem; font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.outcome.never { color: #9b1c1c; }
.outcome.kept { color: var(--ok); }
.lock-ico { width: 0.75rem; height: 0.75rem; border: 2px solid currentColor; border-radius: 0.1875rem; position: relative; top: 2px; }
.lock-ico::before { content: ""; position: absolute; left: 1px; top: -7px; width: 0.375rem; height: 0.375rem; border: 2px solid currentColor; border-bottom: 0; border-radius: 0.3125rem 0.3125rem 0 0; }

/* red and spam drop out of play once graded: faded right back and greyed */
/* a grade someone accepted from Tarent's suggestion: a dashed blue outline */
html.motion .outcome { opacity: var(--oo, 0); transition: opacity .3s; }

/* ---------- P06 · Score ---------- */
.s-score .pin { padding: 12vh 0; background: radial-gradient(ellipse 50rem 32rem at 50% 58%, rgba(76,111,255,.08), transparent 70%), var(--ink); }
html.motion .s-score.pinned .pin { padding: 0; }
.score-layout { display: grid; grid-template-columns: 1fr 1.05fr .8fr; gap: 2.25rem; align-items: center; margin-top: 1.875rem; }
.email { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.125rem 1.25rem; font-size: 0.9375rem; }
.em-head { display: flex; align-items: center; gap: 0.625rem; }
.em-head b { display: block; color: var(--ink); font-size: 0.9375rem; }
.em-head span span { font-size: 0.8125rem; color: var(--muted); }
.em-subj { font-weight: 650; color: var(--ink); margin: 0.75rem 0 0.375rem; }
.em-body { color: var(--text); }
.em-meta { font-size: 0.875rem; color: var(--muted); margin-top: 0.625rem; }
.em-owed { margin-top: 0.625rem; }
mark { background: rgba(33, 69, 202, .13); color: inherit; border-radius: 0.25rem; padding: 0 0.1875rem; }
mark.warm { background: rgba(232, 148, 10, .2); }
mark.owed { display: inline-block; background: #fff4e5; color: #9a5a00; font-weight: 600; font-size: 0.875rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; }
.deck { position: relative; }
.ghost-card { position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); display: flex; align-items: flex-start; justify-content: space-between; padding: 1.125rem; filter: blur(3px); opacity: .55; }
.ghost-card b { font-size: 2.5rem; line-height: 1; font-weight: 800; color: #8a96a8; }
.score-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.125rem; box-shadow: var(--shadow); }
.sc-head { display: flex; align-items: center; gap: 0.75rem; }
.sc-head .lc-who { flex: 1; }
.sc-num { font-size: 2.5rem; line-height: 1; color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-reasons { list-style: none; display: grid; gap: 0.4375rem; margin: 1rem 0 0.75rem; }
.sc-reasons li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--ink); background: #fbfcfe; border: 1px solid var(--line-2); border-radius: 0.5625rem; padding: 0.5625rem 0.75rem; min-height: 2.5rem; }
.sc-reasons li i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--ok); flex: none; }
.sc-reasons li b { margin-left: auto; font: 600 0.8125rem/1 var(--font-mono); color: var(--ok); }
.sc-flag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 650; color: var(--blue); background: var(--blue-soft); border-radius: 1.25rem; padding: 0.375rem 0.75rem; }
.sc-flag i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--blue); }
.score-note { font-size: 0.9375rem; color: var(--muted); display: grid; gap: 0.625rem; }
.score-note b { color: var(--ink); font-weight: 650; }
.dark .score-note { color: #d6deec; font-size: 1rem; line-height: 1.6; }
.dark .score-note .rec-k { color: #a9b8f5; }
.dark .score-note b { color: #fff; }

/* the next suggestion, waiting behind Simon's card; seen only once his card leaves for the board */
html.motion .ghost-card { opacity: 0; transition: opacity .4s; }
html.motion .deck.next .ghost-card { opacity: .55; }
html.motion .sc-reasons li:not(.on) { background: transparent; border-style: dashed; }
html.motion .sc-reasons li:not(.on) > * { opacity: 0; }
html.motion .sc-reasons li.on > * { animation: fadeIn .3s var(--ease); }
html.motion .sc-flag { opacity: var(--fan, 0); }
html.motion .score-card.awaiting { visibility: hidden; }
html.motion mark.sent { background: rgba(33,69,202,.06); outline: 1px dashed rgba(33,69,202,.35); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* ---------- P07 · Pipeline ---------- */
.s-pipeline { background: #fff; z-index: 2; }
.s-pipeline .pin { padding: 16vh 0 10vh; background: #fff; }
/* held on screen for a moment (no animation), so the board can be read before moving on */
html.motion .s-pipeline.pinned .pin { padding: var(--nav-h) 0 0; }
.pipe-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.pipe-copy { display: block; }
.pipe-copy h2, .pipe-copy p { max-width: none; }
.pipe-copy h2 { text-wrap: balance; }
.pipe-copy h2 em { display: block; }
.pipe-copy p { color: var(--muted); margin-top: 0.875rem; }
.board { position: relative; display: grid; grid-template-columns: 20rem 1fr; gap: 1.25rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow); }
.col-lb { white-space: nowrap; font: 600 0.6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.625rem; display: flex; align-items: center; gap: 0.375rem; }
.col-sug .col-lb { color: var(--blue); margin-bottom: 0; }
.ct { background: var(--line-2); color: var(--ink); border-radius: 0.625rem; padding: 2px 0.375rem; font-size: 0.625rem; }
.col-sug { border-right: 1px dashed var(--line); padding-right: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.sug { background: var(--blue-soft); border: 1px solid rgba(33,69,202,.35); border-radius: 0.75rem; padding: 0.75rem; }
.sug + .sug { background: #fff; border-color: var(--line); }
.sug-top { display: flex; align-items: center; gap: 0.5rem; }
.sug-top .lc-who { flex: 1; }
.sug-top .ava { width: 1.75rem; height: 1.75rem; font-size: 0.625rem; }
.sug-top .lc-who b { font-size: 0.875rem; }
.sug-top .lc-who span { font-size: 0.75rem; }
.sug-why-line { font-size: 0.7812rem; color: var(--muted); margin: 0.5rem 0 0.625rem; }
.sug-why { background: #fff; border: 1px solid var(--line-2); border-radius: 0.5rem; padding: 0.625rem; margin-bottom: 0.625rem; font-size: 0.7812rem; }
.sug-why p { font: 600 0.625rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.375rem; }
.sug-why ol { padding-left: 1rem; display: grid; gap: 0.25rem; color: var(--ink); }
.sug-why small { display: block; color: var(--muted); }
.sug-acts { display: flex; gap: 0.375rem; }
.sug-acts .chip-btn { padding: 0.4375rem 0.625rem; font-size: 0.7812rem; white-space: nowrap; }
.sug-empty { font-size: 0.8125rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }
.minis { display: grid; gap: 0.5rem; }
.mini { background: #fff; border: 1px solid var(--line); border-left: 0.1875rem solid var(--ok); border-radius: 0.5rem; padding: 0.5rem 0.5625rem; min-width: 0; }
.mini.a { border-left-color: var(--warn); } .mini.b { border-left-color: var(--blue); }
.mini.new { background: var(--blue-soft); }
.mini.mini b { display: block; font-size: 0.875rem; color: var(--ink); line-height: 1.3; }
.mini span { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.35; margin-top: 0.125rem; }
.toast { position: absolute; right: 1rem; bottom: -18px; background: var(--ink); color: #fff; font-size: 0.8125rem; padding: 0.625rem 0.875rem; border-radius: 0.625rem; opacity: 0; transform: translateY(0.5rem); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.ghost-cursor { position: absolute; left: 0; top: 0; width: 1.375rem; height: 1.625rem; opacity: 0; pointer-events: none; z-index: 5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 26'%3E%3Cpath d='M2 2v19l5-4.5 3.6 7.5 3-1.4-3.6-7.4 6.6-.6z' fill='white' stroke='%230a1526' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; transition: transform .8s var(--ease), opacity .3s; }
.ghost-cursor.click::after { content: ""; position: absolute; left: -8px; top: -8px; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--blue); animation: ring .5s ease-out forwards; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.pipe-cta { margin-top: 1.75rem; font-size: 1.0625rem; color: var(--muted); }
.pipe-cta a { color: var(--blue); font-weight: 650; text-decoration: none; margin-left: 0.25rem; white-space: nowrap; }
.pipe-cta a span { display: inline-block; transition: transform .2s var(--ease); }
.pipe-cta a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.pipe-cta a:hover span { transform: translateX(0.1875rem); }
html.motion @keyframes sugIn { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
.chip-btn.press { transform: scale(.92); transition: transform .15s; }
html.motion #sugSimon.awaiting { visibility: hidden; }
@keyframes land { 0% { transform: translateY(0); } 30% { transform: translateY(0.375rem); } 60% { transform: translateY(-2px); } 100% { transform: none; } }

/* ---------- P08 · Why partners ---------- */
.s-why .pin { padding: 14vh 0 12vh; background: var(--tint); }
.why-head { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.why-nav { display: flex; gap: 0.625rem; flex: none; }
.why-arrow { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; }
.why-arrow svg { width: 1.25rem; height: 1.25rem; }
.why-arrow:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.why-arrow:disabled { opacity: .35; cursor: default; }
.why-arrow:focus-visible, .why-dots button:focus-visible, .track:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* the carousel: native horizontal scroll with snap, first card lined up with the page column */
.track-wrap { margin-top: 2.5rem; --gut: max(1.75rem, calc((100vw - 73.75rem) / 2 + 1.75rem)); }
.track { list-style: none; display: flex; gap: 1.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0.25rem var(--gut) 0.5rem; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.panel { flex: none; width: min(34rem, 80vw); scroll-snap-align: start; background: var(--ink-2); border: 1px solid var(--dark-line); border-radius: 1.125rem; padding: 2.125rem; color: var(--on-dark-2); display: flex; flex-direction: column; gap: 0.625rem; transition: border-color .3s; }
.panel.cur { border-color: #6b82c9; }
.panel h3 { color: #fff; font-size: clamp(1.5rem, 2.2vw, 2.25rem); }
.panel > p { font-size: 1.125rem; }
.pn { font: 600 0.75rem/1 var(--font-mono); color: #8ea0c0; }
.vig { margin-top: 1.125rem; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; background: #0c182c; border: 1px solid var(--dark-line); border-radius: 0.875rem; padding: 1.25rem; font-size: 0.9375rem; min-height: 15rem; }
.vig .ava { width: 2rem; height: 2rem; font-size: 0.6875rem; }
.vk { font: 600 0.6875rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #8ea0c0; margin-bottom: 0.375rem; }
.vr-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.vr-head b { display: block; color: #fff; }
.vr-head small { display: block; color: #8ea0c0; font-size: 0.8125rem; }
.vr-head em { margin-left: auto; font: 600 0.6875rem/1 var(--font-mono); font-style: normal; color: #a9b8f5; background: rgba(169,184,245,.12); padding: 0.375rem 0.5rem; border-radius: 0.375rem; white-space: nowrap; }
.vig-rec dl div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.5625rem 0; border-top: 1px solid var(--dark-line); }
.vig-rec dt { font: 600 0.6875rem/1.8 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #8ea0c0; }
.vig-rec dd { color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vq, .vo { display: grid; grid-template-columns: auto 8.5rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 0.75rem; padding: 0.4375rem 0; }
.vq b, .vo b { color: var(--on-dark-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vq > span:not(.ava), .vo > span:not(.ava) { font: 600 0.8125rem/1 var(--font-mono); color: #8ea0c0; text-align: right; white-space: nowrap; }
.vq i, .vo i { height: 0.5rem; border-radius: 0.25rem; background: #1a2944; position: relative; overflow: hidden; }
.vq i::after, .vo i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: #3d5585; border-radius: inherit; transform-origin: left; }
.vq.flag i::after { background: var(--warn); }
.vq.flag > span:not(.ava) { color: #f5c26b; }
.vq.flag em { grid-column: 2 / -1; justify-self: start; font: 600 0.6875rem/1 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: #fdf0dc; color: #7a4a00; padding: 0.375rem 0.5rem; border-radius: 0.375rem; margin-top: -0.125rem; }
/* business development: a small dashboard (illustrative figures) */
.bd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.bd-stats div { background: rgba(255,255,255,.035); border: 1px solid var(--dark-line); border-radius: 0.5rem; padding: 0.625rem 0.75rem; }
.bd-stats b { display: block; color: #fff; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bd-stats span { display: block; font-size: 0.75rem; line-height: 1.3; color: #9aabc8; margin-top: 0.25rem; }
.bd-chart { display: flex; align-items: flex-end; gap: 0.4375rem; height: 5.5rem; padding: 0.5rem 0.25rem 0; border-bottom: 1px solid var(--dark-line); margin-top: 0.375rem; }
.bd-chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, #a9b8f5, #4c6fff); border-radius: 0.25rem 0.25rem 0 0; opacity: .85; }
.bd-chart i:last-child { opacity: 1; }
.bd-cap { font-size: 0.75rem; color: #8ea0c0; }
html.motion .panel.on .bd-chart i { animation: growUp .7s var(--ease) both; }
html.motion .panel.on .bd-chart i:nth-child(n) { animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes growUp { from { height: 0; } }
/* marketing: an event list built from the whole firm's contacts */
.mk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.mk-head b { display: block; color: #fff; font-size: 1.0625rem; }
.mk-head small { display: block; color: #9aabc8; font-size: 0.8125rem; line-height: 1.4; margin-top: 0.125rem; }
.mk-head b { line-height: 1.3; }
.mk-head em { font-style: normal; font: 600 0.75rem/1 var(--font-mono); color: #dfe6ff; background: rgba(76,111,255,.22); border-radius: 0.375rem; padding: 0.375rem 0.5rem; white-space: nowrap; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.25rem 0; }
.mk-chips span { font-size: 0.75rem; color: #dbe3ff; border: 1px solid #3a4a6a; border-radius: 1rem; padding: 0.1875rem 0.5625rem; }
.mk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.625rem; padding: 0.4375rem 0; border-top: 1px solid var(--dark-line); }
.mk-row b { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-row > span:last-child { font-size: 0.8125rem; color: #9aabc8; white-space: nowrap; }

html.motion .panel.on .vig-rec dd { animation: fadeIn .45s var(--ease) both; }
html.motion .panel.on .vig-rec dl div:nth-child(2) dd { animation-delay: .25s; } html.motion .panel.on .vig-rec dl div:nth-child(3) dd { animation-delay: .5s; } html.motion .panel.on .vig-rec dl div:nth-child(4) dd { animation-delay: .75s; }
html.motion .panel.on .vr-head em { animation: pop .5s 1s var(--ease) both; }
html.motion .panel.on .vq i::after, html.motion .panel.on .vo i::after { animation: fillbar 1s var(--ease) both; }
html.motion .panel.on .vq:nth-of-type(3) i::after, html.motion .panel.on .vo:nth-of-type(3) i::after { animation-delay: .15s; }
html.motion .panel.on .vq:nth-of-type(4) i::after, html.motion .panel.on .vo:nth-of-type(4) i::after { animation-delay: .3s; }
html.motion .panel.on .vq.flag em { animation: pop .5s 1.1s var(--ease) both; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes press { 0%, 100% { transform: none; } 50% { transform: scale(.9); background: var(--blue-2); } }
@keyframes slotIn { from { opacity: 0; transform: translateY(-1.25rem); } to { opacity: 1; transform: none; } }

html.motion .reveal { opacity: 0; transform: translateY(0.875rem); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0s); }
html.motion .reveal.in { opacity: 1; transform: none; }

/* ---------- P10 · Under the hood ---------- */
.s-hood { background: #fff; padding: 16vh 0 12vh; z-index: 2; }
.s-hood.dark { background: var(--ink); color: var(--on-dark); }
.s-hood.dark .step-no { color: #a9b8f5; }
.s-hood.dark .hood-text h3 { color: #fff; }
.s-hood.dark .hood-text p { color: #d6deec; }
.s-hood.dark .hv-mail, .s-hood.dark .hv-why, .s-hood.dark .hv-graph { color: var(--ink); border-color: transparent; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.35); }
.hood-rows { display: grid; gap: clamp(4rem, 10vh, 7rem); margin-top: clamp(2.5rem, 6vh, 4rem); }
.hood-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hood-row.flip .hood-visual { order: 2; }
/* each picture is only as big as its own card */
.hood-visual { display: flex; justify-content: center; }
.hood-row.flip .hood-visual { justify-content: center; }
.hv-mail, .hv-why, .hv-graph { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; max-width: 32rem; width: 100%; font-size: 1rem; box-shadow: var(--shadow); margin: 0; }
.hv-graph { padding: 1rem 1.25rem 1.125rem; }
.hv-mail > p { margin-top: 0.75rem; }
.sigs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: 1rem; }
.sigs li { font-size: 0.875rem; color: var(--ink); border-left: 2px solid var(--blue); padding-left: 0.5rem; }
.sigs b { display: block; font: 600 0.625rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.graph { width: 100%; max-width: 34rem; height: auto; }
.graph .edges line { stroke: #8fa0ea; stroke-width: 1.6; }
.graph .edges line.mute { stroke: #cfd7ea; }
.graph .n circle { fill: var(--ok); }
.graph .n.a circle { fill: var(--warn); }
.graph .n.hub circle { fill: var(--blue); }
.graph .n circle.ring { fill: none; stroke: var(--blue); stroke-width: 2; }
.graph .n text { fill: #fff; font: 700 11px/1 var(--font-sans); text-anchor: middle; dominant-baseline: central; }
.graph .n.hub text { font-size: 16px; }
/* names sit on a white halo so the connection lines never run through them */
.graph .lb { font: 500 11px/1 var(--font-sans); fill: var(--muted); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.graph .lb.strong { font-weight: 700; fill: var(--ink); }
.graph-cap { text-align: center; font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }
.ring-key { display: inline-block; width: 0.6875rem; height: 0.6875rem; border: 2px solid var(--blue); border-radius: 50%; vertical-align: -1px; }
.hw-top { display: flex; align-items: center; gap: 0.625rem; }
.hw-top .lc-who { flex: 1; }
.hw-call { background: var(--tint); border-radius: 0.625rem; padding: 0.75rem; margin: 0.875rem 0; color: var(--ink); }
.hv-why ol { list-style: none; display: grid; gap: 0.625rem; }
.hv-why li { border-left: 0.1875rem solid var(--blue); padding-left: 0.625rem; color: var(--ink); }
.hv-why small { display: block; color: var(--muted); font-size: 0.8125rem; }
.step-no { font: 600 0.75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.hood-text h3 { font-size: clamp(1.75rem, 2.8vw, 2.75rem); margin: 0.75rem 0; }
.hood-text p { color: var(--muted); font-size: 1.125rem; }
html.motion .graph .n { transform-box: fill-box; transform-origin: center; }
html.motion .hood-visual.in .graph .n { animation: nodeIn .5s var(--ease) both; animation-delay: calc(.25s + var(--d, 0s)); }
html.motion .hood-visual.in .graph .edges line { stroke-dasharray: 200; animation: draw 1s .25s var(--ease) both; }
@keyframes nodeIn { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
/* ---------- P11 · FAQ ---------- */
.s-faq { background: #fff; padding: 12vh 0; z-index: 2; }
.s-faq.dark { background: var(--ink); color: var(--on-dark); }
.s-faq.dark details { border-bottom-color: var(--dark-line); }
.s-faq.dark summary { color: #fff; }
.s-faq.dark summary:hover { color: #c9d3ff; }
.s-faq.dark summary::after { border-color: #8ea0c0; }
.s-faq.dark details p { color: #d6deec; font-size: 1.0625rem; line-height: 1.65; }
.s-faq.dark details a { color: #a9b8f5; }
.s-faq.dark summary:focus-visible { outline: 2px solid #8fa3ff; outline-offset: 4px; border-radius: 0.25rem; }
.faq-in h2 { text-align: center; }
.faq-list { position: relative; max-width: 48.75rem; margin: 2.25rem auto 0; }
/* categories: a heading row that opens to its questions */
.faq-cat { border-bottom: 1px solid var(--dark-line); }
.faq-cat > summary { display: flex; align-items: baseline; gap: 0.875rem; padding: 1.5rem 2.125rem 1.5rem 0; font-size: 1.375rem; font-weight: 750; letter-spacing: -.01em; }
.faq-cat > summary small { font: 600 0.75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #8ea0c0; }
.faq-cat > summary::after { top: 2rem; }
.faq-cat[open] > summary::after { top: 2.25rem; }
.faq-qs { padding: 0 0 1rem 1.25rem; border-left: 2px solid #2f4170; margin: 0 0 1.25rem 0.25rem; }
.faq-qs details:last-child { border-bottom: 0; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.125rem 2.125rem 1.125rem 0; font-weight: 650; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.375rem; top: 1.5rem; width: 0.5625rem; height: 0.5625rem; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .25s; }
details[open] > summary::after { transform: rotate(-135deg); top: 1.75rem; }
details p { color: var(--muted); padding-bottom: 1.125rem; max-width: 42.5rem; }
@supports (interpolate-size: allow-keywords) {
  html.motion .faq-list { interpolate-size: allow-keywords; }
  html.motion details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  html.motion details[open]::details-content { height: auto; }
}

/* ---------- P12 · Book a demo ---------- */
.s-demo { background: var(--tint); padding: 14vh 0; z-index: 2; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.demo-copy > p { color: var(--muted); margin-top: 1rem; }
.ticks { list-style: none; display: grid; gap: 0.5rem; margin-top: 1.375rem; }
.ticks li { padding-left: 1.75rem; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232145ca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/1.125rem no-repeat; }
/* the enquiry card: step 1 sends the request, step 2 (optional) adds detail, then done */
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 1.125rem; padding: 1.75rem; box-shadow: var(--shadow); overflow: hidden; }
.demo-card.morphing { transition: height .42s var(--ease); }
.dc-title { font-size: 1.375rem; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.dc-title.dc-long { font-size: 1.1875rem; line-height: 1.35; max-width: none; text-wrap: pretty; }
.dc-sub { font-size: 0.9375rem; color: var(--muted); margin: 0.25rem 0 1.25rem; }
.dc-sent { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #0b6135; background: #e8f6ee; border-radius: 1rem; padding: 0.375rem 0.75rem 0.375rem 0.375rem; margin-bottom: 0.875rem; }
.dc-tick { display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--ok); }
.dc-tick::after { content: ""; width: 0.4375rem; height: 0.21875rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0.5px, -0.5px); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.fld .fld-l { display: block; font: 600 0.6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3125rem; }
.fld textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.6875rem 0.75rem; border-radius: 0.5625rem; border: 1px solid var(--line); background: #f7f9fc; color: var(--ink); resize: vertical; min-height: 5rem; }
.fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 0.1875rem rgba(33,69,202,.18); background: #fff; }
.seg { display: flex; gap: 0.375rem; }
.seg button { flex: 1; font: 600 0.9375rem/1 var(--font-sans); padding: 0.6875rem 0.5rem; border-radius: 0.5625rem; border: 1px solid var(--line); background: #f7f9fc; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.seg button:hover { border-color: #9fb1ea; }
.seg button[aria-checked="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.seg button:focus-visible, .btn-skip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-skip { display: block; margin: 0.625rem auto 0; background: none; border: 0; font: 600 0.9375rem/1 var(--font-sans); color: var(--muted); padding: 0.5rem; cursor: pointer; }
.btn-skip:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.demo-done { text-align: center; padding: 1.5rem 0 0.5rem; outline: none; }
.demo-done .dc-sub { margin-bottom: 0.5rem; }
.done-anim { width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; }
.done-anim svg { width: 100%; height: 100%; }
.da-ring { fill: #e8f6ee; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 189; stroke-dashoffset: 189; animation: daRing .6s var(--ease) forwards; }
.da-tick { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: daTick .35s .45s var(--ease) forwards; }
@keyframes daRing { to { stroke-dashoffset: 0; } }
@keyframes daTick { to { stroke-dashoffset: 0; } }
.fld { margin-bottom: 0.75rem; }
.fld label { display: block; font: 600 0.6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3125rem; }
.fld input { width: 100%; font-size: 1rem; padding: 0.6875rem 0.75rem; border-radius: 0.5625rem; border: 1px solid var(--line); background: #f7f9fc; color: var(--ink); }
.fld input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 0.1875rem rgba(33,69,202,.18); background: #fff; }
.fld input[aria-invalid="true"] { border-color: var(--red); background: #fff7f7; }
.err { color: #b42318; font-size: 0.8125rem; margin-top: 0.3125rem; min-height: 0; }
.err:empty { display: none; }
.form-err { margin-top: 0.625rem; }
.fine { font-size: 0.75rem; color: var(--muted); margin-top: 0.625rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- P13 · Footer ---------- */
.foot { background: #fff; z-index: 2; padding: 3rem 0 3.25rem; border-top: 1px solid var(--line-2); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: baseline; gap: 0.75rem 1.5rem; flex-wrap: wrap; }
.foot-brand p { color: var(--muted); font-size: 0.875rem; margin: 0; }
.foot-built { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; white-space: nowrap; }
.foot-built img { display: block; height: 2.75rem; width: auto; }
.fb-txt { display: flex; flex-direction: column; gap: 0.125rem; margin-bottom: 0.25rem; }   /* sits level with the logo's square, above its bubbles */
.fb-txt small { font: 600 0.625rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fb-txt b { font-size: 0.9375rem; font-weight: 650; color: var(--ink); line-height: 1.2; }
.fb-txt b span { color: var(--faint); font-weight: 500; transition: transform .2s var(--ease), color .2s; display: inline-block; }
.foot-built:hover .fb-txt b { color: var(--blue); }
.foot-built:hover .fb-txt b span { color: var(--blue); transform: translate(1px, -1px); }
.foot-built:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 0.25rem; }

/* pinned sections: centre content in the space below the sticky nav */
html.motion .lock.pinned .pin { padding: var(--nav-h) 0 0; }

/* ---------- Travellers & lockbar ---------- */
.tl { position: fixed; inset: 0; pointer-events: none; z-index: 40; display: none; }
.tl-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
html.motion .tl { display: block; }
.tv { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.tv-dot { width: 0.4375rem; height: 0.4375rem; margin: -0.21875rem 0 0 -0.21875rem; border-radius: 50%; background: #9fb0ff; box-shadow: 0 0 0.5rem rgba(125,149,255,.9); }
.tv-tile { width: 1.875rem; height: 1.875rem; border-radius: 0.4375rem; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem; transform-origin: 0 0; }
.tv-morph { overflow: hidden; background: var(--ok); border: 1px solid transparent; transform-origin: 0 0; }
.tvm-in .ava { width: 2.125rem; height: 2.125rem; }
.tvm-in { display: flex; align-items: center; gap: 0.75rem; padding: 1.125rem; opacity: var(--mi, 0); white-space: nowrap; }
.tvm-in b { color: var(--ink); font-size: 0.9375rem; }
.tv-phrase { background: var(--blue); color: #fff; font-size: 0.8125rem; font-weight: 600; padding: 0.3125rem 0.625rem; border-radius: 0.5rem; white-space: nowrap; box-shadow: 0 0.5rem 1.25rem rgba(33,69,202,.35); }
.tv-card { display: flex; align-items: flex-start; gap: 0.625rem; background: #fff; border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.75rem; box-shadow: var(--shadow); transform-origin: 0 0; overflow: hidden; }
.tv-card > b { color: var(--ink); font-size: 0.875rem; white-space: nowrap; }
.tv-card > i { margin-left: auto; font-style: normal; font-weight: 800; color: var(--blue); font-size: 1.375rem; line-height: 1; }
.tv-card > .ava { width: 1.75rem; height: 1.75rem; font-size: 0.625rem; }
.lockbar { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; display: flex; align-items: center; gap: 0.75rem; background: rgba(10,21,38,.86); color: #fff; border-radius: 1.875rem; padding: 0.625rem 0.875rem; opacity: 0; transform: translateY(0.625rem); transition: opacity .3s, transform .3s; pointer-events: none; }
.lockbar.show { opacity: 1; transform: none; }
.beats { list-style: none; display: flex; gap: 0.375rem; }
.beats li { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .3s; }
.beats li.on { background: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .cls-ref { flex-wrap: wrap; }
  .cls-ref .rec-why { flex-basis: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-visual { max-width: 30rem; }
  .lc-ghost.g1 { transform: translate(0.625rem, 0.625rem) scale(.97); }
  .lc-ghost.g2 { transform: translate(1.25rem, 1.25rem) scale(.94); }
  .score-layout { grid-template-columns: 1fr 1fr; }
  .score-note { grid-column: 1 / -1; }
  .board { grid-template-columns: 1fr; }
  .col-sug { border-right: 0; padding-right: 0; border-bottom: 1px dashed var(--line); padding-bottom: 1rem; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .col-sug .col-lb { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap, .nav-in { padding-inline: 1rem; }
  :root { --nav-h: 3.75rem; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 0.75rem 0; }
  .nav-links .btn { margin-top: 0.5rem; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-in { gap: 0.625rem; }
  .logo { font-size: 1.3125rem; }
  .s-hero { padding: 2rem 0 calc(clamp(240px, 42vh, 480px) + 2.25rem); min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.875rem; }
  .lede { font-size: 1.0625rem; }
  .pains { grid-template-columns: 1fr; gap: 1.25rem; }
  .problem-claim h2 { font-size: 2.25rem; }
  html.motion .s-problem.pinned .pain-quote, html.motion .s-problem.pinned .stat { display: none; }
  html.motion .s-problem.pinned .pains li { padding-top: 0.875rem; }
  html.motion .s-problem.pinned .pains h3 { font-size: 1.1875rem; }
  html.motion .s-problem.pinned .pains p { font-size: 0.9375rem; margin-top: 0.375rem; }
  .vig { min-height: 0; padding: 1rem; }
  .vr-head em { display: none; }
  .vq, .vo { grid-template-columns: auto 6.5rem minmax(0, 1fr) 3.5rem; gap: 0.5rem; }
  .vig-rec dl div { grid-template-columns: 6rem minmax(0, 1fr); }
  .ingest-stage { margin-top: 1.125rem; }
  .counters b { font-size: 1.875rem; }
  .rf { grid-template-columns: 1fr; gap: 0; }
  .cls-ref { gap: 0.625rem 1rem; padding: 0.625rem 0.75rem; margin-top: 0.875rem; }
  html.motion .s-classify.pinned .sub { font-size: 0.875rem; margin-top: 0.5rem; }
  html.motion .s-classify.pinned h2 { font-size: 1.625rem; }
  .cr-who small, .cls-ref .rk-last, .cls-ref .rk-g.o { display: none; }
  .cls-ref .rk-g { flex-basis: 40%; }
  .cls-ref { flex-wrap: wrap; gap: 0.625rem 1rem; }
  .cls-ref .rec-why { flex-basis: 100%; }
  .cls-ref .rk-groups { flex-wrap: wrap; }
  .cls-ref .rk-g { flex: 1 1 40%; }
  .outcome { grid-column: 1 / -1; margin-top: 2px; }
  .score-layout { grid-template-columns: 1fr; gap: 1.125rem; margin-top: 1rem; }
  .score-note { display: none; }
  .email { font-size: 0.875rem; padding: 0.875rem; }
  .em-meta, .em-subj { display: none; }
  .sc-reasons li { padding: 0.4375rem 0.625rem; min-height: 2.125rem; font-size: 0.8125rem; }
  .s-pipeline .pin { padding-top: 10vh; }
  /* phones: the Suggested column in full, with the board carrying on to the
     right (To contact peeking in, fading out) */
  .board { grid-template-columns: minmax(0, 1fr) 4.75rem; gap: 0.75rem; padding: 0.75rem; overflow: hidden; }
  .col-sug { border-right: 1px dashed var(--line); padding-right: 0.75rem; border-bottom: 0; padding-bottom: 0; display: flex; flex-direction: column; }
  .cols { grid-template-columns: repeat(4, 10.5rem); width: max-content; -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.55) 3.5rem, transparent 6.5rem); mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.55) 3.5rem, transparent 6.5rem); pointer-events: none; }
  .sug { padding: 0.625rem; }
  .sug-acts .chip-btn { padding: 0.375rem 0.5rem; font-size: 0.75rem; }
  .sug-acts { flex-wrap: nowrap; }
  .pipe-cta { font-size: 1rem; }
  .proof-quote { padding: 2.25rem 1.25rem 1.5rem; }
  .pq-mark { left: 1rem; width: 2.25rem; height: 1.625rem; top: -0.8125rem; }
  .proof-quote blockquote p { font-size: 1.0625rem; }
  .why-nav { display: none; }
  .track-wrap { margin-top: 1.5rem; --gut: 1rem; }
  .track { gap: 0.875rem; }
  .panel { width: 86vw; padding: 1.375rem; }
  .panel > p { font-size: 1rem; }
  .s-why .vig { padding: 1rem; min-height: 0; }
  .s-why .vq, .s-why .vo { grid-template-columns: auto minmax(0, 1fr) 2.25rem auto; }
  .hood-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .hood-row.flip .hood-visual { order: 0; }
  .hood-text h3 { font-size: 1.625rem; }
  .hood-text p { font-size: 1rem; }
  .hv-mail, .hv-why, .hv-graph { font-size: 0.875rem; padding: 1rem; }
  .sigs { display: none; }
  .demo-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .demo-card { padding: 1.25rem; }
  .fld-row { grid-template-columns: 1fr; }
  .lockbar { right: 0.75rem; bottom: 0.75rem; }
  html.motion .lock.pinned .pin { padding-bottom: 3.625rem; }
    .ingest-in h2 { font-size: 1.5625rem; }
  .ingest-in .ch-head { margin-bottom: 0.5rem; }
  .ingest-stage { gap: 0.625rem; margin-top: 0.875rem; }
  .counters { gap: 1.75rem; }
  .counters b { font-size: 1.5rem; }
  .counters span { font-size: 0.75rem; }
  .src { width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; }
  .src img { width: 1.375rem; }
  .intake { height: 7.5rem; margin-top: 2rem; }
  .src[data-src="0"] { left: 28%; }
  .src[data-src="2"] { left: 72%; }
  .record { padding: 0.75rem 0.875rem; }
  .rec-fields { margin: 0.5rem 0; }
  .rec-foot { gap: 1rem; }
  .rf { padding: 0.25rem 0; font-size: 0.8125rem; }
  .tiles i { width: 1.5rem; height: 1.5rem; font-size: 0.6875rem; }
  .pills li { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; }
  .rec-k { margin-bottom: 0.3125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html.motion .s-ingest .dust { display: none; }
html.motion body { overflow-anchor: none; }
.tv-card > :not(.tvc-full) { opacity: var(--h, 1); }
.tv-card .tvc-full { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; box-shadow: none; border: 0; }
.s-classify .sub { max-width: none; }
/* the stats column scales with the grid beside it */
@media (min-width: 761px) {
  .outcome { font-size: clamp(0.875rem, 1.05vw, 1.0625rem); margin-top: clamp(0.875rem, 1.8vh, 1.375rem); }
}



/* grade key on smaller screens */

@media (max-width: 760px) {
  .bd-stats { gap: 0.375rem; }
  .bd-stats div { padding: 0.5rem; }
  .bd-stats b { font-size: 1.25rem; }
  .bd-stats span { font-size: 0.6875rem; }
  .bd-chart { height: 4rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Peter's strip is the headline: a larger suggested grade */
.cls-ref .rec-grade .rec-k { font-size: 0.75rem; margin-bottom: 0.625rem; }
.cls-ref .tiles { gap: 0.5rem; }
.cls-ref .tiles i { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; font-size: 1.125rem; }
.cls-ref .tiles i.sgst, html.motion .cls-ref .tiles i.sgst:not(.lock-g) { border-width: 2.5px; }

/* the grade key sits a level below the strip: no cards, just four quiet columns */
.gkey { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
.gkey li { padding: 0.25rem 1.5rem; border-left: 1px solid #d9dfea; }
.gkey li:first-child { padding-left: 0; border-left: 0; }
.gk-top { display: flex; align-items: center; gap: 0.625rem; }
.gk-top i { flex: none; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 0.375rem; font: 700 0.75rem/1 var(--font-sans); font-style: normal; color: #fff; }
.gkey li.n .gk-top i { background: var(--noise); } .gkey li.r .gk-top i { background: var(--red); } .gkey li.a .gk-top i { background: var(--warn); } .gkey li.g .gk-top i { background: var(--ok); }
.gk-top span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.gk-top b { color: var(--ink); font-size: 0.9375rem; line-height: 1.2; }
.gk-top small { font: 600 0.625rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.gk-top small.priv { color: #b42318; }
.gk-top small.shr { color: #0b7a44; }
.gkey li > p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1080px) {
  .gkey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
  .gkey li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .cls-ref .tiles i { width: 2.25rem; height: 2.25rem; font-size: 0.9375rem; }
  .gkey { margin-top: 1.25rem; gap: 0.875rem 0; }
  .gkey li { padding: 0 0.875rem; }
  .gk-top b { font-size: 0.875rem; }
  .gkey li > p { font-size: 0.8125rem; margin-top: 0.375rem; }
}

/* ---------- Phones: steady pinned screens, and everything fits ---------- */
/* pinned screens use the same stable height the scroll locks are measured
   with; on phones the toolbar can cover the bottom, so content centres in
   the part that is always visible */
html.motion .lock.pinned > .pin { height: var(--vh-lock, 100vh); }
html.motion .s-ingest.pinned > .pin, html.motion .s-classify.pinned > .pin, html.motion .s-score.pinned > .pin, html.motion .s-pipeline.pinned > .pin { padding-bottom: var(--vh-gap, 0px); }
html.motion .s-problem.pinned > .pin { padding-bottom: calc(4vh + var(--vh-gap, 0px)); }
@media (max-width: 760px) {
  .lockbar { display: none; }   /* the beat dots sat on top of the content */
  /* Problem */
  html.motion .s-problem.pinned .problem-claim h2 { font-size: clamp(1.5rem, 7vw, 1.875rem); }
  html.motion .s-problem.pinned .problem-in { gap: clamp(0.875rem, 2.4vh, 1.5rem); }
  html.motion .s-problem.pinned .pains li { padding-top: 0.625rem; }
  html.motion .s-problem.pinned .pains li + li { margin-top: 0.625rem; }
  html.motion .s-problem.pinned .pains h3 { font-size: 1.0625rem; }
  html.motion .s-problem.pinned .pains p { font-size: 0.875rem; line-height: 1.45; margin-top: 0.25rem; }
  html.motion .s-problem.pinned .found { font-size: 1.25rem; }
  /* Data security */
  html.motion .s-classify.pinned h2 { font-size: 1.5rem; }
  html.motion .s-classify.pinned .sub { font-size: 0.8125rem; line-height: 1.5; }
  .cls-ref .rk-g .pills li.pick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .cls-ref .rk-g { min-width: 0; }
  /* Score */
  html.motion .s-score.pinned h2 { font-size: 1.5rem; }
  html.motion .s-score.pinned .email { padding: 0.75rem 0.875rem; font-size: 0.8125rem; }
  html.motion .s-score.pinned .score-card { padding: 0.75rem 0.875rem; }
  html.motion .s-score.pinned .sc-num { font-size: 2rem; }
  html.motion .s-score.pinned .sc-reasons { gap: 0.3125rem; margin: 0.625rem 0 0.5rem; }
  html.motion .s-score.pinned .sc-reasons li { min-height: 1.875rem; padding: 0.3125rem 0.625rem; }
}
/* shorter phones (and any phone while its toolbar is showing) */
@media (max-width: 760px) and (max-height: 760px) {
  html.motion .s-problem.pinned .pains p { display: none; }
  html.motion .s-classify.pinned .gkey li > p { display: none; }
  html.motion .s-classify.pinned .gkey { gap: 0.625rem 0; }
  html.motion .s-score.pinned .em-subj { display: none; }
  html.motion .s-score.pinned .ch-head { margin-bottom: 0.375rem; }
}
/* the smallest phones (iPhone SE size) */
@media (max-width: 760px) and (max-height: 620px) {
  html.motion .s-ingest.pinned .intake { height: 5.5rem; margin-top: 1rem; }
  html.motion .s-ingest.pinned h2, html.motion .s-classify.pinned h2, html.motion .s-score.pinned h2 { font-size: 1.3125rem; }
  html.motion .s-ingest.pinned .rf { padding: 0.125rem 0; }
  html.motion .s-classify.pinned .sub { font-size: 0.75rem; line-height: 1.4; }
  html.motion .s-classify.pinned .gkey { margin-top: 0.625rem; gap: 0.375rem 0; }
  html.motion .s-classify.pinned .cls-ref { margin-top: 0.625rem; padding: 0.5rem 0.625rem; }
  html.motion .s-classify.pinned .rk-l { margin-bottom: 0.125rem; }
  html.motion .s-score.pinned .email { font-size: 0.75rem; line-height: 1.45; }
  html.motion .s-score.pinned .em-head .ava, html.motion .s-score.pinned .sc-head .ava { width: 1.75rem; height: 1.75rem; }
  html.motion .s-score.pinned .sc-num { font-size: 1.625rem; }
  html.motion .s-score.pinned .score-layout { gap: 0.625rem; margin-top: 0.625rem; }
  html.motion .s-score.pinned .sc-reasons li { min-height: 1.625rem; font-size: 0.75rem; }
}

@media (max-width: 760px) { .s-why .vig { justify-content: flex-start; } }

/* carousel dots: small and quiet; each button is a comfortable tap target,
   the dot itself is drawn inside it */
.why-dots { display: flex; justify-content: center; margin-top: 1.5rem; }
.why-dots button { position: relative; width: 1.5rem; height: 1.75rem; padding: 0; border: 0; border-radius: 0.5rem; background: none; cursor: pointer; }
.why-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.375rem; height: 0.375rem; border-radius: 0.1875rem; background: #c3cad8; transform: translate(-50%, -50%); transition: width .25s var(--ease), background .25s; }
.why-dots button:hover::before { background: #97a3ba; }
.why-dots button.on::before { width: 0.875rem; background: #6b82c9; }
/* phones: a slim peek so the suggestion cards keep their full width */
@media (max-width: 440px) {
  .board { grid-template-columns: minmax(0, 1fr) 2.75rem; gap: 0.5rem; padding: 0.625rem; }
  .col-sug { padding-right: 0.5rem; min-width: 0; }
  .sug { min-width: 0; }
  .sug-acts { gap: 0.3125rem; }
  .sug-acts .chip-btn { padding: 0.375rem 0.4375rem; font-size: 0.71875rem; }
  .sug-top .tier { font-size: 0.625rem; padding: 0.25rem 0.375rem; }
}
/* every card in a board column is the same width and height */
.col-sug { display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-auto-rows: 1fr; align-items: stretch !important; gap: 0.625rem; }
.col-sug > .sug { width: auto; min-width: 0; display: flex; flex-direction: column; }
.col-sug > .sug .sug-acts { margin-top: auto; }
.minis { grid-auto-rows: 1fr; align-items: stretch; }
@media (min-width: 761px) and (max-width: 1080px) { .col-sug { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* footer on phones: one centred column; the Blue Hat credit sits under a hairline */
@media (max-width: 760px) {
  .foot { padding: 2.25rem 0 2.5rem; }
  .foot-in { flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
  .foot-brand { flex-direction: column; align-items: center; gap: 0.375rem; }
  .foot-brand .logo { font-size: 1.375rem; margin: 0; }
  .foot-brand p { font-size: 0.8125rem; }
  .foot-built { padding-top: 1.25rem; border-top: 1px solid var(--line-2); width: 100%; justify-content: center; gap: 0.625rem; }
  .foot-built img { height: 2.25rem; }
  .fb-txt { text-align: left; margin-bottom: 0.1875rem; }
  .fb-txt b { font-size: 0.875rem; }
}
