/* SampliFi — shared stylesheet. Single source of truth for all pages. */
/* ══════════════════════════════════════════════════════════════════
   SAMPLIFI — design tokens
   Palette is locked to the logo: magenta → purple → blue → cyan on navy.
   ══════════════════════════════════════════════════════════════════ */
:root{
  --ink:        #1a1a3e;
  --ink-2:      #2d3250;
  --muted:      #545a72;
  --muted-2:    #767d96;   /* UI tone — NOT for body text */
  --muted-ink:  #656c84;   /* AA on paper, paper-2 and white */

  --cyan:       #00b8d4;
  --teal:       #0097a7;   /* decorative only */
  --teal-ink:   #007783;   /* AA on paper and white — use for any teal TEXT */
  --blue:       #1a5caa;
  --purple:     #7c5cfc;
  --purple-ink: #6c48fc;   /* AA when purple is TEXT rather than a surface */
  --magenta:    #c850c0;

  --paper:      #f7f8fa;
  --paper-2:    #eef1f6;
  --card:       #ffffff;
  --line:       #dfe4ee;
  --line-soft:  #e9edf4;

  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--blue) 34%, var(--purple) 68%, var(--magenta) 100%);
  /* every stop clears 4.5:1 under white text — the plain --grad does not */
  --grad-cta: linear-gradient(115deg, #1a5caa 0%, #7654fc 55%, #be3cb5 100%);

  /* type scale — six steps. Nothing below .72rem (11.5px): this audience
     skews older and reads small functional labels badly. */
  --fs-3xs: .72rem;
  --fs-2xs: .78rem;
  --fs-xs:  .85rem;
  --fs-sm:  .92rem;
  --fs-md:  1rem;
  --fs-lg:  1.05rem;

  --display: "Newsreader", ui-serif, Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(.16,.84,.36,1);
  --shell: min(1180px, 92vw);
  --seam: #ccd4d7;   /* sampled from the film's final frame — see film/seam.txt */
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.65;
  font-synthesis-weight:none; -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; }
::selection{ background:rgba(124,92,252,.22); color:var(--ink); }
:root{ color-scheme:light; }
html{ scrollbar-color:var(--muted-2) var(--paper-2); scrollbar-width:thin; }
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--paper-2); }
::-webkit-scrollbar-thumb{ background:#c3cad8; border:3px solid var(--paper-2); border-radius:99px; }
::-webkit-scrollbar-thumb:hover{ background:var(--muted-2); }
input, textarea, select{ caret-color:var(--purple); }
a{ text-underline-offset:.18em; text-decoration-thickness:from-font; }
.section--ink ::selection{ background:rgba(0,184,212,.3); color:#fff; }

h1,h2,h3{ font-family:var(--display); font-weight:400; letter-spacing:-.018em; line-height:1.08; margin:0; text-wrap:balance; }
h1{ font-size:clamp(2.6rem, 6.4vw, 5rem); }
h2{ font-size:clamp(2.1rem, 4.4vw, 3.6rem); }
h3{ font-size:clamp(1.18rem, 1.7vw, 1.45rem); line-height:1.25; }
p{ margin:0 0 1.1em; }

.lede{ font-size:clamp(1.05rem,1.35vw,1.24rem); color:var(--muted); max-width:62ch; }

.wrap{ width:var(--shell); margin-inline:auto; }

/* ── skip link ─────────────────────────────────────────────── */
.skip{
  position:fixed; top:-100px; left:1rem; z-index:200; background:var(--ink); color:#fff;
  padding:.8rem 1.2rem; border-radius:8px; font-size:.92rem; font-weight:600; text-decoration:none;
  transition:top .2s;
}
.skip:focus{ top:1rem; }
.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;
}
:focus-visible{ outline:2.5px solid var(--purple); outline-offset:3px; border-radius:4px; }

/* ══════════════════════════════════════════════════════════════════
   HEADER — fixed chrome over changing footage
   ══════════════════════════════════════════════════════════════════ */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:60;
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
  padding:1.05rem clamp(1rem,4vw,2.6rem);
  color:#fff; transition:color .45s ease, background .45s ease, border-color .45s ease;
  border-bottom:1px solid transparent;
}
.site-header::before{
  content:""; position:absolute; inset:0 0 auto 0; height:230%; z-index:-1; pointer-events:none;
  background:linear-gradient(to bottom, rgba(10,12,26,.66), rgba(10,12,26,0));
  transition:opacity .45s ease;
}
.site-header.on-light{ color:var(--ink); }
.site-header.on-light::before{
  background:linear-gradient(to bottom, rgba(247,248,250,.82), rgba(247,248,250,0));
}
.site-header.docked{
  color:var(--ink);
  background:rgba(247,248,250,.86); backdrop-filter:blur(16px) saturate(1.5);
  border-bottom-color:var(--line);
}
.site-header.docked::before{ opacity:0; }

.brand{ display:grid; text-decoration:none; flex:none; }
.brand img{
  grid-area:1/1; height:40px; width:auto;
  filter:drop-shadow(0 1px 10px rgba(0,0,0,.45)); transition:opacity .4s ease, filter .45s ease;
}
/* the lifted mark reads over footage; the full-colour mark takes over on light ground */
.brand .mark-full{ opacity:0; filter:none; }
.site-header.on-light .brand .mark-light,
.site-header.docked   .brand .mark-light{ opacity:0; }
.site-header.on-light .brand .mark-full,
.site-header.docked   .brand .mark-full{ opacity:1; }

.nav{ display:flex; align-items:center; gap:clamp(1rem,2.2vw,2.1rem); }
.nav a{
  font-size:.85rem; font-weight:500; letter-spacing:.005em; text-decoration:none;
  color:currentColor; opacity:.86; position:relative; padding:.35rem 0;
  text-shadow:0 1px 16px rgba(0,0,0,.5); transition:opacity .2s;
}
.site-header.on-light .nav a, .site-header.docked .nav a{ text-shadow:none; }
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1.5px;
  background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease-out);
}
.nav a:hover{ opacity:1; }
.nav a:hover::after, .nav a.current::after{ transform:scaleX(1); }

.header-cta{
  font-family:var(--sans); font-size:.85rem; font-weight:600; letter-spacing:.005em;
  padding:.6rem 1.15rem; border-radius:100px; text-decoration:none; flex:none;
  border:1px solid currentColor; color:currentColor; background:transparent;
  transition:background .3s, color .3s, border-color .3s;
}
.header-cta:hover{ background:currentColor; border-color:currentColor; }
.header-cta:hover span{ color:var(--paper); }
.site-header.on-light .header-cta:hover span,
.site-header.docked .header-cta:hover span{ color:#fff; }

.burger{
  display:none; background:none; border:0; color:currentColor; cursor:pointer;
  padding:.5rem; width:42px; height:42px; align-items:center; justify-content:center;
}
.burger svg{ width:22px; height:22px; }

.mobile-menu{
  position:fixed; inset:0; z-index:70; background:var(--paper);
  display:flex; flex-direction:column; justify-content:center; gap:.3rem;
  padding:2rem clamp(1.4rem,6vw,3rem);
  transform:translateY(-100%); transition:transform .55s var(--ease-out); visibility:hidden;
}
.mobile-menu.open{ transform:none; visibility:visible; }
.mobile-menu a{
  font-family:var(--display); font-size:clamp(1.8rem,7vw,2.6rem); text-decoration:none;
  color:var(--ink); padding:.5rem 0; border-bottom:1px solid var(--line-soft);
}
.mobile-menu a:last-child{ border-bottom:0; color:var(--purple); }
.mobile-close{
  position:absolute; top:1.1rem; right:clamp(1rem,4vw,2.6rem);
  background:none; border:0; color:var(--ink); cursor:pointer; padding:.6rem;
}
.mobile-close svg{ width:26px; height:26px; }

/* ══════════════════════════════════════════════════════════════════
   THE FILM — tall scroll driver + sticky canvas stage
   ══════════════════════════════════════════════════════════════════ */
.film{
  /* pacing: 592 frames across this height. At 820vh a wheel notch advanced
     the film far too quickly; ~1250vh gives roughly 19px of scroll per frame,
     which reads as a camera move rather than a fast-forward. */
  position:relative; height:1250vh; background:#0c1020;
}
.stage{
  position:sticky; top:0; height:100svh; overflow:hidden;
  background:#0c1020; display:grid; place-items:center;
}
#film-canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }

.stage .grain{
  position:absolute; inset:-120%; z-index:3; pointer-events:none; opacity:.10;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
  animation:grain 1s steps(3) infinite;
}
@keyframes grain{ 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-2%)} 100%{transform:translate(0,0)} }
.stage .vignette{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background:radial-gradient(128% 96% at 50% 46%, transparent 42%, rgba(6,8,20,.52) 100%);
}
.stage::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(96deg, rgba(6,8,20,.82) 0%, rgba(6,8,20,.62) 26%, rgba(6,8,20,.22) 52%, transparent 72%);
}
@media (max-width:820px){
  .stage::before{ background:linear-gradient(to top, rgba(6,8,20,.86) 34%, rgba(6,8,20,.3) 58%, transparent 78%); }
}
/* the film runs from a blown-out clean room to a night sort hall, so the copy
   over it cannot be one fixed colour — this is the light half of that pair */
.stage.film-light::before{
  background:linear-gradient(96deg, rgba(250,251,253,.92) 0%, rgba(250,251,253,.74) 28%, rgba(250,251,253,.28) 54%, transparent 74%);
}
.stage.film-light .beat h1,
.stage.film-light .beat h2{ color:var(--ink); text-shadow:0 1px 26px rgba(255,255,255,.9); }
.stage.film-light .beat p{ color:var(--ink-2); text-shadow:0 1px 20px rgba(255,255,255,.95); }
.stage.film-light .beat::before{
  background:radial-gradient(52% 48% at 26% 50%, rgba(250,251,253,.66), rgba(250,251,253,.3) 48%, transparent 76%);
}
.stage.film-light .readout,
.stage.film-light .scroll-cue{ color:var(--ink); text-shadow:0 1px 18px rgba(255,255,255,.9); }
.stage.film-light .scroll-cue .line::after{ background:var(--ink); }
.stage.film-light .readout .track{ background:rgba(26,26,62,.24); }
.stage.film-light .btn-ghost{ border-color:rgba(26,26,62,.4); color:var(--ink); background:rgba(255,255,255,.4); }
.stage.film-light .btn-ghost:hover{ background:rgba(255,255,255,.7); border-color:var(--ink); }

.stage::after{
  content:""; position:absolute; inset:auto 0 0 0; height:42%; z-index:1; pointer-events:none;
  background:linear-gradient(to top, rgba(6,8,20,.72), rgba(6,8,20,.28) 46%, transparent);
}
.stage .seam-fade{
  position:absolute; inset:0; z-index:5; pointer-events:none; opacity:0;
  background:var(--seam);
}

/* loader */
.film-loader{
  position:absolute; inset:0; z-index:9; display:grid; place-content:center; gap:1.1rem;
  background:#0c1020; color:#fff; transition:opacity .7s ease; text-align:center;
}
.film-loader.done{ opacity:0; pointer-events:none; }
.film-loader .bar{ width:min(230px,52vw); height:2px; background:rgba(255,255,255,.16); overflow:hidden; }
.film-loader .bar i{ display:block; height:100%; width:100%; background:var(--grad); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; }
.film-loader .pct{ font-family:var(--mono); font-size:.72rem; letter-spacing:.22em; opacity:.6; }

/* beats over the film */
.beats{ position:absolute; inset:0; z-index:4; pointer-events:none; }
.beat{
  position:absolute; left:clamp(1.2rem,7vw,6.5rem); right:clamp(1.2rem,7vw,6.5rem);
  top:50%; transform:translateY(calc(-50% + var(--shift,0px))); max-width:40rem;
  opacity:0; will-change:opacity,transform;
}
/* the film's own type scale — smaller than the page's, so a three-line headline
   still clears the header above it and the custody readout below it */
.beat h1{ font-size:clamp(2rem,4.2vw,3.35rem); }
.beat h2{ font-size:clamp(1.75rem,3.4vw,2.75rem); }
.beat::before{
  content:""; position:absolute; z-index:0; inset:-70% -34% -70% -26%; pointer-events:none;
  background:radial-gradient(52% 48% at 26% 50%, rgba(6,8,20,.62), rgba(6,8,20,.3) 48%, transparent 76%);
}
.beat > *{ position:relative; z-index:1; }
.beat h1, .beat h2{ color:#fff; text-shadow:0 2px 40px rgba(0,0,0,.55); margin-bottom:.9rem; }
.beat p{ color:rgba(255,255,255,.9); font-size:clamp(.98rem,1.15vw,1.08rem); max-width:38ch; text-shadow:0 1px 24px rgba(0,0,0,.6); }
.beat .actions{ display:flex; flex-wrap:wrap; gap:.85rem; margin-top:1.7rem; pointer-events:auto; }

/* buttons */
.btn{
  font-family:var(--sans); font-size:.92rem; font-weight:600; letter-spacing:.005em;
  padding:.92rem 1.7rem; border-radius:100px; border:1px solid transparent; cursor:pointer;
  text-decoration:none; display:inline-flex; align-items:center; gap:.55rem;
  transition:transform .25s var(--ease-out), box-shadow .3s, background .3s, color .3s, border-color .3s;
  position:relative; overflow:hidden;
}
.btn svg{ width:1em; height:1em; flex:none; }
.btn-primary{ background:var(--grad-cta); color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.10), 0 8px 20px -12px rgba(0,0,0,.30); }
.btn-primary::after{
  content:""; position:absolute; inset:0; transform:translateX(-110%);
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transition:transform .75s var(--ease-out);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 2px 4px rgba(0,0,0,.12), 0 16px 32px -14px rgba(0,0,0,.38); }
.btn-primary:hover::after{ transform:translateX(110%); }
.btn-primary:active{ transform:translateY(0); }
.btn-ghost{ border-color:rgba(255,255,255,.4); color:#fff; background:rgba(255,255,255,.05); backdrop-filter:blur(6px); }
.btn-ghost:hover{ background:rgba(255,255,255,.14); border-color:#fff; transform:translateY(-2px); }
.btn-outline{ border-color:var(--line); color:var(--ink); background:var(--card); }
.btn-outline:hover{ border-color:var(--ink); transform:translateY(-2px); }

/* film readout — the audit ledger, bottom-left */
.readout{
  position:absolute; left:clamp(1.2rem,7vw,6.5rem); bottom:clamp(1.5rem,4vh,2.6rem);
  z-index:6; color:#fff; pointer-events:none; display:flex; align-items:center; gap:1rem;
  font-family:var(--mono); font-size:.78rem; letter-spacing:.1em;
  text-shadow:0 1px 20px rgba(0,0,0,.7);
}
.readout .track{ width:clamp(90px,16vw,190px); height:1.5px; background:rgba(255,255,255,.28); position:relative; }
.readout .track i{ position:absolute; inset:0; background:var(--grad); transform:scaleX(0); transform-origin:left; }
.readout .lbl{ opacity:.82; white-space:nowrap; }

.scroll-cue{
  position:absolute; right:clamp(1.2rem,7vw,6.5rem); bottom:clamp(1.5rem,4vh,2.6rem);
  z-index:6; color:#fff; pointer-events:none; opacity:.72;
  font-family:var(--mono); font-size:.72rem; letter-spacing:.1em;
  display:flex; align-items:center; gap:.6rem; transition:opacity .5s;
  text-shadow:0 1px 20px rgba(0,0,0,.7);
}
.scroll-cue .line{ display:block; width:1px; height:34px; background:currentColor; opacity:.5; position:relative; overflow:hidden; }
.scroll-cue .line::after{
  content:""; position:absolute; inset:0; background:#fff; animation:cue 2.1s var(--ease-out) infinite;
}
@keyframes cue{ 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }

/* ══════════════════════════════════════════════════════════════════
   CONTENT BELOW THE FILM
   ══════════════════════════════════════════════════════════════════ */
.landing{
  /* the handoff is a short band inside the top padding — spread over the whole
     block it drops body text onto the seam tone and fails contrast */
  background:linear-gradient(to bottom, var(--seam) 0, var(--paper) 170px) no-repeat, var(--paper);
  padding-top:clamp(4rem,9vw,8rem);
}

.section{ padding:clamp(4.5rem,9vw,8.5rem) 0; position:relative; }
.section--tall{ min-height:min(92vh,900px); display:flex; align-items:center; }
.section--tint{ background:var(--paper-2); }
.section--ink{ background:var(--ink); color:#fff; }
.section--ink .lede{ color:rgba(255,255,255,.7); }
.section--ink h1,
.section--ink h2{ color:#fff; }
/* ...but not inside a light panel sitting on that dark section */
.section--ink .panel h1,
.section--ink .panel h2,
.section--ink .panel h3{ color:var(--ink); }

.section .wrap > *{
  opacity:0; transform:translateY(26px);
  transition:opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.section.in .wrap > *{ opacity:1; transform:none; }
.section.in .wrap > *:nth-child(2){ transition-delay:.09s; }
.section.in .wrap > *:nth-child(3){ transition-delay:.18s; }
.section.in .wrap > *:nth-child(4){ transition-delay:.27s; }
.section.in .wrap > *:nth-child(5){ transition-delay:.36s; }

.head{ max-width:60rem; margin-bottom:clamp(2.6rem,5vw,4.5rem); }
.head h2{ margin-bottom:1.3rem; }

/* ── ledger strip (stats) ──────────────────────────────────── */
.ledger{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  border-top:1px solid var(--line); border-left:1px solid var(--line);
  background:var(--card);
}
.ledger .cell{ padding:clamp(1.6rem,3vw,2.6rem); border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.ledger .n{
  font-family:var(--display); font-size:clamp(3rem,5.6vw,4.6rem); line-height:1;
  letter-spacing:-.035em; margin-bottom:.55rem; color:var(--ink);
  font-variant-numeric:tabular-nums lining-nums;
}
.ledger .k{ font-family:var(--mono); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-ink); margin-bottom:.7rem; }
.ledger .d{ font-size:.92rem; color:var(--muted); line-height:1.6; margin:0; }

/* ── card grids ────────────────────────────────────────────── */
.grid{ display:grid; gap:clamp(1rem,1.7vw,1.5rem); }
.grid-3{ grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); }
.grid-4{ grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:clamp(1.5rem,2.4vw,2.1rem); position:relative; overflow:hidden;
  transition:transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.card::before{
  content:""; position:absolute; inset:0 0 auto 0; height:2px; background:var(--grad);
  transform:scaleX(0); transform-origin:left; transition:transform .55s var(--ease-out);
}
.card:hover{ transform:translateY(-4px); box-shadow:0 1px 2px rgba(0,0,0,.05), 0 18px 40px -26px rgba(0,0,0,.28); border-color:var(--line-soft); }
.card:hover::before{ transform:scaleX(1); }
.card h3{ margin-bottom:.75rem; }
.card p{ font-size:.92rem; color:var(--muted); margin:0; line-height:1.68; }
.card .ico{ margin-bottom:1.1rem; color:var(--cyan); }
.card .ico svg{ width:26px; height:26px; }

.matrix{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));
  border-top:1px solid rgba(255,255,255,.16);
}
.matrix > div{
  padding:clamp(1.5rem,2.6vw,2.2rem) clamp(1.2rem,2vw,1.8rem) clamp(1.5rem,2.6vw,2.2rem) 0;
  border-bottom:1px solid rgba(255,255,255,.16);
}
.matrix h3{ color:#fff; margin-bottom:.7rem; }
.matrix p{ font-size:.92rem; color:rgba(255,255,255,.66); margin:0; line-height:1.68; }

.section--ink .card{ background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.12); }
.section--ink .card h3{ color:#fff; }
.section--ink .card p{ color:rgba(255,255,255,.68); }
.section--ink .card .ico{ color:var(--cyan); }
.section--ink .card:hover{ border-color:rgba(255,255,255,.26); box-shadow:none; }

/* ── stakeholders ──────────────────────────────────────────── */
.stake{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:0;
  border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--card); }
.stake > div{ padding:clamp(1.8rem,3vw,2.8rem); border-right:1px solid var(--line); }
.stake > div:last-child{ border-right:0; }
.stake h3{ font-size:clamp(1.5rem,2.4vw,2rem); margin-bottom:1rem; }
.stake p{ font-size:.92rem; color:var(--muted); margin:0; }
.stake p b{ color:var(--ink); font-weight:600; }

/* ── process steps ─────────────────────────────────────────── */
.steps{ display:grid; gap:0; border-top:1px solid var(--line); }
.step{
  display:grid; grid-template-columns:auto 1fr; gap:clamp(1.2rem,3vw,3rem);
  padding:clamp(1.8rem,3.4vw,2.9rem) 0; border-bottom:1px solid var(--line);
  align-items:start; transition:background .4s;
}
.step:hover{ background:var(--card); }
.step .idx{
  font-family:var(--display); font-size:clamp(2.2rem,4vw,3.2rem); line-height:1;
  letter-spacing:-.03em; min-width:2.2ch; color:var(--muted-2);
  font-variant-numeric:tabular-nums lining-nums;
}
.step .route{
  font-family:var(--mono); font-size:.78rem; letter-spacing:.04em;
  color:var(--teal-ink); margin-bottom:.85rem; display:flex; align-items:center; gap:.55rem; flex-wrap:wrap;
}
.step .route .arw{ opacity:.5; }
.step h3{ margin-bottom:.7rem; }
.step p{ font-size:.92rem; color:var(--muted); margin:0; max-width:62ch; }

/* ── comparison table ──────────────────────────────────────── */
.table-scroll{
  overflow-x:auto; border:1px solid var(--line); border-radius:14px; background:var(--card);
  position:relative;
  /* a right-edge shadow that disappears once scrolled to the end, so it is
     discoverable on a phone that the comparison continues sideways */
  background-image:linear-gradient(to right, var(--card), transparent 12px),
                   linear-gradient(to left,  var(--card), transparent 12px),
                   linear-gradient(to right, rgba(26,26,62,.13), transparent 14px),
                   linear-gradient(to left,  rgba(26,26,62,.13), transparent 14px);
  background-position:left center, right center, left center, right center;
  background-repeat:no-repeat;
  background-size:26px 100%, 26px 100%, 14px 100%, 14px 100%;
  background-attachment:local, local, scroll, scroll;
}
.table-hint{
  /* a sentence, not a label: normal tracking, AA colour, above the tiny-text floor */
  display:none; margin-top:.7rem; font-size:var(--fs-2xs);
  color:var(--muted-ink); align-items:center; gap:.45rem;
}
@media (max-width:720px){ .table-hint{ display:flex; } }
table{ border-collapse:collapse; width:100%; min-width:660px; font-size:.92rem; }
thead th{
  text-align:left; padding:1.15rem 1.4rem; font-family:var(--mono); font-size:.78rem;
  letter-spacing:.06em; color:var(--muted); font-weight:500;
  border-bottom:1px solid var(--line); white-space:nowrap;
}
thead th:last-child{ color:var(--purple-ink); }
tbody td{ padding:1.1rem 1.4rem; border-bottom:1px solid var(--line-soft); color:var(--muted); vertical-align:top; }
tbody tr:last-child td{ border-bottom:0; }
tbody td:first-child{ color:var(--ink); font-weight:600; white-space:nowrap; }
tbody td:last-child{ color:var(--ink-2); background:linear-gradient(90deg, rgba(124,92,252,.045), rgba(200,80,192,.045)); }
tbody tr:hover td{ background:var(--paper-2); }
tbody tr:hover td:last-child{ background:linear-gradient(90deg, rgba(124,92,252,.09), rgba(200,80,192,.09)); }
.chk{ color:var(--teal-ink); margin-right:.5rem; }
.xmk{ color:#b04a6a; margin-right:.5rem; }

/* ── partners ──────────────────────────────────────────────── */
.partners{
  display:flex; flex-wrap:wrap; align-items:center; gap:clamp(1.4rem,4vw,3.4rem);
  padding:clamp(1.5rem,3vw,2.2rem) 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.partners span{
  font-family:var(--display); font-size:clamp(1.1rem,2vw,1.5rem); color:var(--ink-2);
  letter-spacing:-.01em; opacity:.78; transition:opacity .3s;
}
.partners span:hover{ opacity:1; }

/* ── timeline ──────────────────────────────────────────────── */
.timeline{ position:relative; padding-left:clamp(1.6rem,3vw,2.4rem); }
.timeline::before{ content:""; position:absolute; left:0; top:.6rem; bottom:.6rem; width:1.5px; background:var(--line); }
.tl{ position:relative; padding-bottom:clamp(2rem,3.6vw,3.2rem); }
.tl:last-child{ padding-bottom:0; }
.tl::before{
  content:""; position:absolute; left:calc(-1 * clamp(1.6rem,3vw,2.4rem) - .75px); top:.5rem;
  width:11px; height:11px; border-radius:50%; background:var(--grad); transform:translateX(-5px);
  box-shadow:0 0 0 4px var(--paper);
}
.section--tint .tl::before{ box-shadow:0 0 0 4px var(--paper-2); }
.tl .when{ font-family:var(--mono); font-size:.72rem; letter-spacing:.1em; color:var(--teal-ink); margin-bottom:.6rem; font-variant-numeric:tabular-nums; }
.tl h3{ margin-bottom:.6rem; }
.tl p{ font-size:.92rem; color:var(--muted); margin:0; max-width:60ch; }

/* ── news ──────────────────────────────────────────────────── */
.news-item{
  display:block; text-decoration:none; padding:clamp(1.4rem,2.4vw,2rem) 0;
  border-bottom:1px solid var(--line); transition:transform .4s var(--ease-out);
}
.news-item:hover{ transform:translateX(10px); }
.news-item .when{ font-family:var(--mono); font-size:.72rem; letter-spacing:.1em; color:var(--teal-ink); margin-bottom:.6rem; font-variant-numeric:tabular-nums; }
.news-item h3{ margin-bottom:.6rem; }
.news-item p{ font-size:.92rem; color:var(--muted); margin:0 0 .7rem; max-width:64ch; }
.news-item .go{ font-size:.85rem; font-weight:600; color:var(--purple-ink); display:inline-flex; align-items:center; gap:.4rem; }

/* ── quiet note / empty state ──────────────────────────────── */
.note{
  border:1px dashed var(--line); border-radius:14px; padding:clamp(1.8rem,3.4vw,2.8rem);
  background:var(--card); text-align:center;
}
.note h3{ margin-bottom:.7rem; }
.note p{ color:var(--muted); font-size:.92rem; margin:0 auto; max-width:52ch; }

/* ── contact ───────────────────────────────────────────────── */
.contact-grid{ display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(2rem,5vw,5rem); align-items:start; }
.info-row{ padding:1.1rem 0; border-bottom:1px solid rgba(255,255,255,.12); }
.info-row .k{ font-size:.85rem; font-weight:500; color:var(--cyan); margin-bottom:.35rem; }
.info-row .v{ font-size:1rem; color:#fff; text-decoration:none; }
.info-row a.v:hover{ text-decoration:underline; }
.info-row p{ margin:0; color:rgba(255,255,255,.7); font-size:.92rem; }
.confidential{
  margin-top:1.8rem; padding:1.1rem 1.3rem; border-radius:10px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  font-size:.85rem; color:rgba(255,255,255,.66); line-height:1.6;
}

form.panel{ background:var(--card); border-radius:16px; padding:clamp(1.6rem,3vw,2.6rem); border:1px solid var(--line); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field{ margin-bottom:1.1rem; }
.field label{
  display:block; font-size:.92rem; color:var(--ink-2);
  margin-bottom:.45rem; font-weight:500;
}
.field input, .field select, .field textarea{
  width:100%; font-family:var(--sans); font-size:1rem; color:var(--ink);
  padding:.85rem 1rem; border:1px solid var(--line); border-radius:9px; background:var(--paper);
  transition:border-color .25s, box-shadow .25s, background .25s;
}
.field textarea{ min-height:126px; resize:vertical; line-height:1.6; }
.field select{ appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23545a72' stroke-width='2.4' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat; background-position:right 1rem center; padding-right:2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--purple); background:var(--card);
  box-shadow:0 0 0 3.5px rgba(124,92,252,.14);
}
.field input::placeholder, .field textarea::placeholder{ color:var(--muted-2); }
.form-msg{ margin-top:1rem; font-size:.92rem; font-weight:500; display:none; align-items:center; gap:.5rem; }
.form-msg.show{ display:flex; }
.form-msg.ok{ color:var(--teal); }
.form-msg.err{ color:#b04a6a; }
.form-msg svg{ width:1.1em; height:1.1em; flex:none; }

/* ── newsletter ────────────────────────────────────────────── */
.news-band{ background:var(--ink); color:#fff; padding:clamp(3rem,6vw,5rem) 0; }
.news-band h2{ color:#fff; margin-bottom:.9rem; }
.news-band p{ color:rgba(255,255,255,.68); margin-bottom:2rem; }
.sub-form{ display:flex; gap:.7rem; flex-wrap:wrap; max-width:520px; align-items:center; }
.sub-label{
  flex:1 0 100%; font-size:.92rem; font-weight:500;
  color:rgba(255,255,255,.72); margin-bottom:-.1rem;
}
.sub-form input{
  flex:1 1 240px; font-family:var(--sans); font-size:1rem; color:#fff;
  padding:.9rem 1.15rem; border-radius:100px; border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.06); transition:border-color .25s, background .25s;
}
.sub-form input::placeholder{ color:rgba(255,255,255,.45); }
.sub-form input:focus-visible{
  /* a border-colour shift alone is not a focus indicator */
  outline:2.5px solid var(--cyan); outline-offset:2px;
  border-color:var(--cyan); background:rgba(255,255,255,.11);
}
.sub-form input:focus{ border-color:var(--cyan); background:rgba(255,255,255,.11); }

/* ── final CTA ─────────────────────────────────────────────── */
.cta-band{ position:relative; overflow:hidden; background:var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cta-band::before{
  content:""; position:absolute; inset:0; opacity:.5;
  background:radial-gradient(70% 120% at 15% 0%, rgba(0,184,212,.14), transparent 60%),
             radial-gradient(60% 120% at 90% 100%, rgba(200,80,192,.14), transparent 60%);
}
.cta-band .wrap{ position:relative; text-align:center; }
.cta-band h2{ margin-bottom:1.2rem; }
.cta-band .lede{ margin:0 auto 2.4rem; text-align:center; }
.cta-band .actions{ display:flex; gap:.9rem; justify-content:center; flex-wrap:wrap; }

/* ── footer ────────────────────────────────────────────────── */
footer{ background:var(--paper-2); padding:clamp(2.6rem,5vw,4rem) 0 2.2rem; border-top:1px solid var(--line); }
.foot-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; flex-wrap:wrap; margin-bottom:2.4rem; }
.foot-top img{ height:44px; width:auto; }
.foot-links{ display:flex; gap:clamp(1.2rem,3vw,2.4rem); flex-wrap:wrap; }
.foot-links a{ font-size:.92rem; color:var(--muted); text-decoration:none; transition:color .25s; }
.foot-links a:hover{ color:var(--ink); }
.foot-bot{
  display:flex; gap:.4rem 1rem; flex-wrap:wrap; align-items:center;
  padding-top:1.6rem; border-top:1px solid var(--line);
  font-size:.85rem; color:var(--muted-ink);
}
.foot-bot .dot{ opacity:.45; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width:960px){
  .contact-grid{ grid-template-columns:1fr; }
  .stake > div{ border-right:0; border-bottom:1px solid var(--line); }
  .stake > div:last-child{ border-bottom:0; }
}
@media (max-width:820px){
  .nav{ display:none; }
  .burger{ display:flex; }
  /* the CTA stays — hiding it here is what left phones with no route to contact */
  .header-cta{ font-size:.78rem; padding:.5rem .85rem; }
  body{ font-size:16px; }
  .film{ height:900vh; }
  .beat{ top:auto; bottom:clamp(5.5rem,16vh,9rem); transform:translateY(var(--shift,0px)); }
  .beat::before{ inset:-60% -40% -60% -40%;
    background:linear-gradient(to top, rgba(6,8,20,.82) 20%, rgba(6,8,20,.5) 62%, transparent); }
  .readout{ left:clamp(1.2rem,7vw,6.5rem); bottom:clamp(1.2rem,3vh,2rem); font-size:.72rem; gap:.7rem; }
  .scroll-cue{ display:none; }
  .field-row{ grid-template-columns:1fr; }
  .step{ grid-template-columns:1fr; gap:.9rem; }
  .step .idx{ font-size:2.4rem; }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .section .wrap > *{ opacity:1; transform:none; }
  .stage .grain{ display:none; }
}


/* ══════════════════════════════════════════════════════════════════
   PAGE HEAD — the opening band on every page that is not the film
   ══════════════════════════════════════════════════════════════════ */
.page-head{
  padding:clamp(8rem,15vw,12rem) 0 clamp(3rem,6vw,5rem);
  background:linear-gradient(to bottom, var(--paper-2), var(--paper));
  border-bottom:1px solid var(--line);
}
.page-head h1{
  /* a page title has to clearly outrank a section heading; at clamp(...,4rem)
     it rendered 64px against an h2's 57.6px, which reads as the same level */
  font-size:clamp(2.5rem,6.2vw,5rem); max-width:18ch; margin-bottom:1.4rem;
}
.page-head .lede{ max-width:58ch; }

/* ══════════════════════════════════════════════════════════════════
   STICKY CTA — the primary action, one tap away, at every width
   ══════════════════════════════════════════════════════════════════ */
.sticky-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:55;
  transform:translateY(110%); transition:transform .5s var(--ease-out);
  pointer-events:none;
}
.sticky-cta.show{ transform:none; }
.sticky-inner{
  width:var(--shell); margin-inline:auto; pointer-events:auto;
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
  background:var(--ink); color:#fff; border-radius:14px 14px 0 0;
  padding:1rem clamp(1rem,2.4vw,1.8rem);
  box-shadow:0 -2px 24px -12px rgba(0,0,0,.5);
}
.sticky-inner p{ margin:0; font-size:.92rem; color:rgba(255,255,255,.78); max-width:58ch; }
.sticky-inner .btn{ flex:none; }
@media (max-width:720px){
  .sticky-inner{ border-radius:0; padding:.75rem .9rem; gap:.75rem; }
  .sticky-inner p{ display:none; }
  .sticky-inner .btn{ width:100%; justify-content:center; }
}
@media (prefers-reduced-motion:reduce){
  .sticky-cta{ transition:none; }
}

.mobile-menu .mobile-cta{
  margin-top:1.4rem; border-bottom:0; color:#fff !important;
  background:var(--grad-cta); border-radius:100px; text-align:center;
  font-family:var(--sans); font-size:1.05rem; font-weight:600; padding:.95rem 1.5rem;
}


/* a section standing in for a page-head needs the same clearance under the fixed header */
.section--first{ padding-top:clamp(8rem,15vw,12rem); }

@media (max-width:820px){
  /* logo | CTA | burger is tight at 390px — pull the CTA to the right of the
     logo and let the burger sit hard right instead of centring the button */
  .site-header{ gap:.6rem; }
  .brand{ margin-right:auto; }
  .header-cta{ font-size:.78rem; padding:.48rem .8rem; }
}
@media (max-width:380px){
  .header-cta span{ font-size:0; }
  .header-cta span::after{ content:"Demo"; font-size:.78rem; }
}


/* header on a page with no film: dark type from the first pixel, background on scroll */
.site-header.static-page{ color:var(--ink); }
.site-header.static-page::before{ opacity:0; }
.site-header.static-page .nav a{ text-shadow:none; }
.site-header.static-page .brand .mark-light{ opacity:0; }
.site-header.static-page .brand .mark-full{ opacity:1; }
.site-header.static-page .brand img{ filter:none; }


/* the contact section stands in for a page-head, so its heading is the page h1 */
#contact h1{ font-size:clamp(2.5rem,5.2vw,4.2rem); }


/* ══════════════════════════════════════════════════════════════════
   NO JAVASCRIPT — the film is 1250vh of scroll driver whose only content
   is a canvas. Without JS that is a very tall empty box between the header
   and the page. Collapse it to a single readable screen instead.
   ══════════════════════════════════════════════════════════════════ */
.no-js .film{ height:auto; background:var(--paper); }
.no-js .stage{
  position:relative; height:auto; min-height:auto; display:block;
  background:var(--paper);            /* ink copy needs a light ground */
  padding:clamp(9rem,16vw,13rem) 0 clamp(3rem,6vw,5rem);
}
/* the header floats over footage that no longer exists */
.no-js .site-header{ color:var(--ink); }
.no-js .site-header::before{ display:none; }
.no-js .site-header .nav a{ text-shadow:none; }
.no-js .brand .mark-light{ opacity:0; }
.no-js .brand .mark-full{ opacity:1; }
.no-js .brand img{ filter:none; }
.no-js #film-canvas,
.no-js .film-loader,
.no-js .readout,
.no-js .scroll-cue,
.no-js .grain,
.no-js .vignette,
.no-js .seam-fade{ display:none; }
.no-js .stage::before,
.no-js .stage::after{ display:none; }
.no-js .beats{ position:relative; inset:auto; }
.no-js .beat{
  position:relative; inset:auto; transform:none; opacity:1 !important;
  visibility:visible !important; max-width:var(--shell); margin:0 auto 3rem;
  left:auto; right:auto; padding:0 clamp(1rem,4vw,0rem);
}
.no-js .beat::before{ display:none; }
.no-js .beat h1, .no-js .beat h2{ color:var(--ink); text-shadow:none; }
.no-js .beat p{ color:var(--muted); text-shadow:none; }
.no-js .btn-ghost{ border-color:var(--line); color:var(--ink); background:var(--card); }
/* reveal animations are JS-driven; without it everything must simply be visible */
.no-js .section .wrap > *{ opacity:1; transform:none; }
.no-js .sticky-cta{ display:none; }
