/* cachetverify.com home, Frame B "The Seal", round 2.
   Default styles are the FINISHED state. html.motion (set in <head> only when reduced motion
   is not requested) arms start states; home.js drives them. Motion is transform and opacity only.
   Every color, radius, duration and easing is a token on :root; nothing below uses a literal. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/home/fonts/archivo-var-latin.woff2) format('woff2');
}

:root {
  /* ---- ground and surfaces ---- */
  --night: #0b0b09;            /* Darkroom: sampled from the seal footage's shadows */
  --reel: #161512;             /* raised dark panel: the AI's screen */
  --paper: #edeae5;            /* the one bright surface: the app's own stone, where sources appear */
  --paper-2: #e2ded6;          /* paper in shadow (command wells) */
  --emboss: #d4cfc5;           /* blind emboss body, a shade under the paper */
  --emboss-hi: rgba(255, 255, 255, 0.92);
  --emboss-lo: rgba(40, 36, 28, 0.5);

  /* ---- text ---- */
  --ink: #15171e;              /* on paper, 14.9:1 */
  --ink-2: #56524a;            /* secondary on paper, 6.5:1 */
  --bone: #ebe4d6;             /* primary on dark, 15.6:1 */
  --bone-2: #cfc8ba;           /* sub text on dark, 11.6:1 */
  --ash: #a39d90;              /* secondary on dark, 7.3:1 */

  /* ---- lines, glass, shadows ---- */
  --line: rgba(235, 228, 214, 0.13);
  --line-2: rgba(235, 228, 214, 0.24);
  --line-3: rgba(235, 228, 214, 0.4);
  --line-ink: rgba(21, 23, 30, 0.16);
  --line-ink-2: rgba(21, 23, 30, 0.3);
  --glass: rgba(11, 11, 9, 0.8);
  --tag-bg: rgba(11, 11, 9, 0.66);
  --beam: rgba(235, 228, 214, 0.09);
  --shadow-card: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  --shadow-proj: 0 0 0 1px rgba(235, 228, 214, 0.13), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  --black: #000000;

  /* hero scrim: dark enough across the left 62% that the sub holds AA over the lit paper */
  --hero-scrim:
    linear-gradient(90deg, rgba(11,11,9,0.97) 0%, rgba(11,11,9,0.94) 40%, rgba(11,11,9,0.86) 62%, rgba(11,11,9,0.3) 80%, rgba(11,11,9,0.05) 92%),
    linear-gradient(0deg, #0b0b09 0%, rgba(11,11,9,0.6) 16%, rgba(11,11,9,0) 38%),
    linear-gradient(180deg, rgba(11,11,9,0.7) 0%, rgba(11,11,9,0) 18%);
  --hero-scrim-phone:
    linear-gradient(0deg, #0b0b09 0%, rgba(11,11,9,0.95) 55%, rgba(11,11,9,0.7) 74%, rgba(11,11,9,0.35) 100%),
    linear-gradient(180deg, rgba(11,11,9,0.6) 0%, rgba(11,11,9,0) 20%);

  /* ---- oxblood: the brand accent, and the Doesn't match family ---- */
  --ox: #7c2529;               /* brand; buttons (paper text 8.1:1); text on paper 8.1:1 */
  --ox-text: #d9747a;          /* oxblood tint for text on dark: 6.3:1 on night, 5.9:1 on reel */
  --ox-mark: #c2525a;          /* oxblood tint for rules and dots on dark: 4.4:1 on night */
  --ox-hi: rgba(255, 255, 255, 0.14);

  /* ---- verdict colors: Confirmed and Couldn't verify keep the app's hues ---- */
  --ok: #3cc68a;  --bad: var(--ox-text); --unk: #e3a23f;    /* text on dark */
  --ok-p: #116b44; --bad-p: var(--ox);   --unk-p: #85520f;  /* text on paper */
  --ok-m: #009f63; --bad-m: var(--ox-mark); --unk-m: #cf7d00; /* marks, dots, rules on dark */
  --bad-mp: var(--ox);                                      /* marks on paper */

  /* ---- panels and the mark's arcs ---- */
  --panel: #1a1814;
  --arc: rgba(235, 228, 214, 0.1);
  --arc-2: rgba(235, 228, 214, 0.16);
  --arc-soft: rgba(235, 228, 214, 0.06);
  --glass-pill: rgba(22, 21, 18, 0.86);   /* bone on it holds 10.3:1 even over the brightest paper */

  /* ---- type: three weights per family ---- */
  --f-display: 'Archivo', 'Schibsted Grotesk', system-ui, sans-serif;   /* 600 / 700 / 850 */
  --f-body: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;  /* 400 / 500 / 600 */
  --f-src: 'Newsreader', Georgia, 'Times New Roman', serif;             /* 400 / 500 / 600 */
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;  /* 400 */
  --w-d1: 600; --w-d2: 700; --w-d3: 850;
  --w-b1: 400; --w-b2: 500; --w-b3: 600;
  --s-display: 68%;            /* condensed display */
  --s-label: 85%;              /* labels, titles */
  --track-display: -0.028em;
  --space-display: 0.06em;

  /* ---- radius scale ---- */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --r-pill: 999px;

  /* ---- motion ---- */
  --e-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --e-exit: cubic-bezier(0.4, 0, 1, 1);
  --e-move: cubic-bezier(0.4, 0, 0.2, 1);
  --e-strike: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 110ms;
  --t-mod: 240ms;
  --t-slow: 400ms;
  --t-slower: 700ms;
  --t-rise: 860ms;
  --t-draw: 460ms;
  --t-fly: 640ms;
  --t-count: 1200ms;
  --d-line2: 150ms;
  --d-draw1: 640ms;
  --d-draw2: 820ms;
  --d-credits: 900ms;
  --d-step: 60ms;
  --d-reveal: 80ms;
  --e-uncover: cubic-bezier(0.32, 0, 0.1, 1);
  --t-uncover: 1300ms;         /* the wordmark writes itself */
  --d-uncover: 100ms;
  --t-lift: 450ms;             /* then the paper lifts */
  --d-lift: 1400ms;
  --t-skip: 240ms;
  --t-trace: 2400ms;           /* the arcs draw themselves once, then hold */
  --t-nav: 900ms;
  --intro-delay: 0ms;

  --gut: clamp(20px, 4.4vw, 64px);
  --maxw: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--f-body);
  font-weight: var(--w-b1);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: var(--w-b3); }
p, h1, h2, h3, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: var(--r-s); }
.plate :focus-visible, .paper :focus-visible { outline-color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: var(--r-s);
  text-decoration: none; font-weight: var(--w-b3);
}
.skip:focus { top: 12px; }

/* ---- shared type ---- */
.display {
  font-family: var(--f-display); font-stretch: var(--s-display); font-weight: var(--w-d3);
  letter-spacing: var(--track-display); word-spacing: var(--space-display); line-height: 0.95;
}
.eyebrow {
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash);
}
.h2 {
  font-family: var(--f-display); font-stretch: var(--s-display); font-weight: var(--w-d3);
  font-size: clamp(34px, 4.6vw, 68px); line-height: 0.96; letter-spacing: var(--track-display);
  word-spacing: var(--space-display); color: var(--bone); text-wrap: balance;
}
.sec-head { display: grid; gap: 16px; }
.sec-head .h2 { max-width: 22ch; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: var(--r-pill); flex: none; }
.dot--ok { background: var(--ok-m); }
.dot--bad { background: var(--bad-m); }
.dot--unk { background: var(--unk-m); }

.tag {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  min-height: 26px; padding: 3px 11px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
}
.tag--now { background: var(--bone); color: var(--ink); }
.tag--next { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone); }
.tag--soon { border: 1px dashed var(--line-3); color: var(--ash); }
.lead-chip {
  flex: none; display: inline-block; padding: 1px 10px; border-radius: var(--r-pill); border: 1px dashed var(--line-3);
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: var(--w-b3); font-size: 16.5px;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--e-enter);
}
.btn:active { transform: scale(0.97); }
.btn__ico { width: 19px; height: 19px; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--ox { background: var(--ox); color: var(--paper); box-shadow: inset 0 1px 0 var(--ox-hi); }
.btn--ghost { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink-2); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(0.97); }
}

/* ================================================================= NAV (the pill) */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 0; pointer-events: none; }
.pill {
  pointer-events: auto;
  width: 100%; max-width: 720px; margin-inline: auto; height: 58px; padding: 0 7px 0 18px;
  display: flex; align-items: center; gap: 8px; border-radius: var(--r-pill);
  background: var(--glass-pill); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-card);
}
.motion .pill { animation: fadeUp var(--t-slow) var(--e-enter) calc(var(--intro-delay) + var(--d-line2)) both; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; flex: none; }
.brand__mark { width: 26px; height: 26px; color: var(--ox-text); transition: transform var(--t-nav) var(--e-enter); }
.brand__word {
  font-family: var(--f-src); font-weight: var(--w-b3); font-size: 22px; letter-spacing: -0.01em; color: var(--bone);
  white-space: nowrap; overflow: hidden; max-width: 160px; opacity: 1;
  transition: max-width var(--t-nav) var(--e-enter), opacity var(--t-slower) var(--e-move);
}
/* on scroll the wordmark folds away and only the mark stays (the original site's collapse) */
.nav.is-scrolled .brand__word { max-width: 0; opacity: 0; }
.nav.is-scrolled .brand__mark { transform: scale(1.1); }
.pill__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.pill__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: var(--w-b2); color: var(--bone-2); text-decoration: none;
  transition: color var(--t-fast) var(--e-move);
}
.pill__links a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pill__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--ox); color: var(--paper); font-weight: var(--w-b3); font-size: 15px; text-decoration: none;
  box-shadow: inset 0 1px 0 var(--ox-hi);
}
@media (max-width: 760px) {
  .nav { padding-inline: 10px; }
  .pill { height: 54px; padding-left: 14px; }
  .pill__links { margin-inline: auto 0; }
  .pill__links a:not([href="/login"]) { display: none; }
  .brand__word { font-size: 20px; }
}

/* ================================================================= HERO */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
}
.hero__film { position: absolute; inset: -2% 0 0 0; z-index: -1; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; background: var(--night); }
.hero__shade { position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__in {
  align-self: end; display: grid; justify-items: start; gap: 22px;
  padding-top: 120px; padding-bottom: 36px;
}
.kinetic {
  display: grid; margin-bottom: 6px;
  font-family: var(--f-display); font-stretch: var(--s-display); font-weight: var(--w-d3);
  font-size: clamp(58px, 9.4vw, 150px); line-height: 0.95; letter-spacing: var(--track-display);
  word-spacing: var(--space-display); color: var(--bone);
}
/* the mask leaves room below the descenders, so the verdict rule sits under the "g", not through it */
.kl { display: block; overflow: hidden; padding-bottom: 0.3em; margin-bottom: -0.12em; }
.kl__t { display: inline-block; }
.uw { position: relative; display: inline-block; }
.uw::after {
  content: ""; position: absolute; left: 0.02em; right: 0.08em; bottom: -0.135em; height: 0.045em;
  transform-origin: 0 50%;
}
.uw--ok::after { background: var(--ok-m); }
.uw--bad::after { background: var(--bad-m); }
.hero__h1 {
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d1);
  font-size: clamp(25px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -0.015em;
  max-width: 27ch; text-wrap: balance;
}
.hero__sub { max-width: 56ch; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.55; color: var(--bone-2); }
.vw { font-weight: var(--w-b3); white-space: nowrap; }
.vw--ok { color: var(--ok); } .vw--bad { color: var(--bad); } .vw--unk { color: var(--unk); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__free { font-size: 13.5px; color: var(--ash); margin-top: -8px; }

.credits {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding-top: 16px; padding-bottom: 24px; position: relative;
}
.credits::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line); }
.credits__lead { font-size: 14px; color: var(--ash); }
.credits__list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.credits__list li { font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 16px; color: var(--bone); }

.film-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ash); cursor: pointer; font-size: 13.5px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.film-toggle svg { width: 14px; height: 14px; }
.film-toggle:hover { color: var(--bone); }
html:not(.js) .film-toggle { display: none; }

/* hero choreography (title sequence) */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.motion .kl__t { animation: rise var(--t-rise) var(--e-enter) var(--intro-delay) both; }
.motion .kl:nth-child(2) .kl__t { animation-delay: calc(var(--intro-delay) + var(--d-line2)); }
.motion .uw--ok::after { animation: draw var(--t-draw) var(--e-strike) calc(var(--intro-delay) + var(--d-draw1)) both; }
.motion .uw--bad::after { animation: draw var(--t-draw) var(--e-strike) calc(var(--intro-delay) + var(--d-draw2)) both; }
.motion .credits__list li { animation: fadeUp var(--t-slow) var(--e-enter) both; animation-delay: calc(var(--intro-delay) + var(--d-credits) + var(--i, 0) * var(--d-step)); }

@media (max-width: 760px) {
  .hero__video { object-position: 72% 50%; }
  .hero__shade { background: var(--hero-scrim-phone); }
  .hero__in { gap: 16px; padding-top: 88px; padding-bottom: 20px; }
  .kinetic { font-size: clamp(40px, 12.2vw, 60px); }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .credits { padding-bottom: 18px; gap: 6px 16px; }
  .credits__list { gap: 2px 14px; }
  .credits__list li { font-size: 14.5px; }
  .film-toggle { margin-left: 0; min-height: 44px; }
}

/* ================================================================= SCAN */
.scan { position: relative; }
.scan__stage { position: relative; }
.scan__in { display: flex; flex-direction: column; gap: 24px; padding-block: 120px 80px; }
.scan__head { display: grid; gap: 12px; }
.scan__head .h2 { font-size: clamp(30px, 3.4vw, 50px); max-width: none; }

.scan__grid {
  display: grid; gap: 22px 30px; align-items: start;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-areas: "draft stacks" "record record";
}

.draft {
  grid-area: draft; position: relative; display: flex; flex-direction: column;
  background: var(--reel); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
}
.draft__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.draft__who { font-weight: var(--w-b3); color: var(--bone-2); }
.draft__tag { font-family: var(--f-mono); font-size: 11.5px; color: var(--ash); }
.draft__body { position: relative; padding: 16px 24px 14px; }
.draft__text { font-size: clamp(15px, 1.4vw, 20.5px); line-height: 1.58; color: var(--bone); }
.claim {
  text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  transition: opacity var(--t-mod) var(--e-move);
}
.claim[data-v="ok"] { text-decoration-color: var(--ok-m); }
.claim[data-v="bad"] { text-decoration-color: var(--bad-m); }
.claim[data-v="unk"] { text-decoration-color: var(--unk-m); text-decoration-style: dotted; text-decoration-thickness: 2.5px; }
.claim .hot { font-weight: var(--w-b3); color: var(--bad); }
.nw { white-space: nowrap; }
.pin {
  display: inline-grid; place-items: center; min-width: 1.22em; height: 1.22em; padding: 0 0.28em;
  margin-left: 0.22em; border-radius: var(--r-pill); vertical-align: 0.42em;
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d3); font-size: 0.6em; line-height: 1;
  color: var(--night);
  transition: transform var(--t-slow) var(--e-strike), opacity var(--t-fast) linear;
}
.claim[data-v="ok"] .pin { background: var(--ok-m); }
.claim[data-v="bad"] .pin { background: var(--ox-text); }
.claim[data-v="unk"] .pin { background: var(--unk-m); }
.beam { display: none; }

/* the source line, on paper: the evidence, and the peak */
.source {
  margin: 2px 16px 16px; padding: 14px 20px 16px;
  background: var(--paper); color: var(--ink); border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-slower) var(--e-enter), opacity var(--t-slow) var(--e-enter);
}
.source__cap {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2);
}
.source__q { margin: 6px 0 10px; font-family: var(--f-src); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.42; }
.source__q mark, .paper mark {
  background: none; color: inherit; font-weight: var(--w-b3);
  text-decoration: underline 2px var(--ink); text-underline-offset: 4px; text-decoration-skip-ink: none;
}
.source__v { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line-ink); }
.source__vk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: var(--w-b3); color: var(--bad-p); }
.source__vk .dot--bad { background: var(--bad-mp); }
.source__vt {
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2);
  font-size: clamp(19px, 1.7vw, 25px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
}

.stacks { grid-area: stacks; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: start; }
.stack { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 2px solid; }
.stack--ok { border-color: var(--ok-m); }
.stack--bad { border-color: var(--bad-m); }
.stack--unk { border-color: var(--unk-m); }
.stack__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stack__name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 16px; line-height: 1.15;
}
.stack__count {
  font-family: var(--f-display); font-stretch: var(--s-display); font-weight: var(--w-d3); font-size: clamp(40px, 4vw, 60px);
  line-height: 0.8; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stack--ok .stack__count { color: var(--ok); }
.stack--bad .stack__count { color: var(--bad); }
.stack--unk .stack__count { color: var(--unk); }
.stack__def { font-size: 13.5px; line-height: 1.45; color: var(--ash); min-height: 3em; }
.cards { display: grid; gap: 8px; }
.card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; row-gap: 2px; align-items: baseline;
  padding: 9px 11px 10px; border-radius: var(--r-s);
  background: var(--reel); border: 1px solid var(--line); border-left: 3px solid;
  transition: opacity var(--t-mod) var(--e-move), transform var(--t-slow) var(--e-enter);
}
.stack--ok .card { border-left-color: var(--ok-m); }
.stack--bad .card { border-left-color: var(--bad-m); }
.stack--unk .card { border-left-color: var(--unk-m); }
.card__n { font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d3); font-size: 12px; color: var(--ash); }
.card__t { font-size: 14px; font-weight: var(--w-b3); line-height: 1.3; color: var(--bone); }
.card__s { grid-column: 2; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.4; color: var(--ash); }

/* the record: below the evidence, never over it */
.record {
  grid-area: record;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 16px 26px; border-radius: var(--r-l);
  background: var(--paper); color: var(--ink);
  transition: transform var(--t-slow) var(--e-enter), opacity var(--t-mod) var(--e-enter);
}
.emboss { color: var(--emboss); filter: drop-shadow(-1px -1px 0 var(--emboss-hi)) drop-shadow(1.2px 1.6px 1px var(--emboss-lo)); }
.record__mark { width: clamp(56px, 5vw, 76px); height: auto; aspect-ratio: 1; transition: transform var(--t-slower) var(--e-strike), opacity var(--t-mod) linear; }
.record__h {
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2);
  font-size: clamp(18px, 1.6vw, 23px); line-height: 1.15; letter-spacing: -0.01em;
}
.record__counts { margin-top: 3px; font-family: var(--f-src); font-weight: var(--w-b2); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.3; }
.rv { white-space: nowrap; }
.rv--ok { color: var(--ok-p); } .rv--bad { color: var(--bad-p); } .rv--unk { color: var(--unk-p); }

/* ---- armed (motion + pinned) ---- */
.motion .scan.is-pinned { height: calc(100vh + 55vh); height: calc(100svh + 55svh); }
.motion .scan.is-pinned .scan__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .scan.is-pinned .scan__in { height: 100%; padding-block: 88px 20px; gap: 18px; }
.motion .scan.is-pinned .scan__grid { align-content: start; }

.motion .scan.is-armed .claim:not(.is-read) { opacity: 0.55; text-decoration-color: transparent; }
.motion .scan.is-armed .claim:not(.is-read) .hot { color: inherit; font-weight: inherit; }
.motion .scan.is-armed .claim:not(.is-read) .pin { opacity: 0; transform: scale(1.8); }
.motion .scan.is-armed .beam {
  display: block; position: absolute; left: 12px; right: 12px; top: 0; height: 34px; pointer-events: none;
  border-radius: var(--r-s);
  background: linear-gradient(90deg, transparent 0%, var(--beam) 12%, var(--beam) 88%, transparent 100%);
  transition: opacity var(--t-mod) linear;
  will-change: transform;
}
.motion .scan.is-armed .beam.is-off { opacity: 0; }
.motion .scan.is-armed:not(.is-src) .source { opacity: 0; transform: translateX(64px) rotate(2deg); }
.motion .scan.is-armed .card:not(.is-on) { opacity: 0; transform: translateY(10px); }
.motion .scan.is-armed:not(.is-sealed) .record { opacity: 0; transform: translateY(40px); }
.motion .scan.is-armed:not(.is-sealed) .record__mark { opacity: 0; transform: scale(1.18); }
.motion .scan.is-armed .record__mark { transition-delay: var(--t-mod); }
.stack__count.is-tick { animation: tick var(--t-slow) var(--e-strike); }
@keyframes tick { 0% { transform: scale(1.18); } 100% { transform: none; } }

@media (max-width: 1100px) {
  .scan__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "draft" "stacks" "record"; }
}
@media (max-width: 760px) {
  .scan__in { gap: 14px; padding-block: 80px 44px; }
  .motion .scan.is-pinned .scan__in { padding-block: 68px 10px; gap: 10px; }
  .scan__head { gap: 4px; }
  .scan__head .h2 { font-size: clamp(24px, 6.8vw, 30px); }
  .scan__grid { gap: 10px; }
  .draft { border-radius: var(--r-m); }
  .draft__bar { padding: 8px 14px; font-size: 11.5px; }
  .draft__tag { display: none; }
  .draft__body { padding: 9px 14px 7px; }
  .draft__text { font-size: 13.4px; line-height: 1.5; }
  .claim { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .source { margin: 2px 8px 8px; padding: 9px 12px 10px; border-radius: var(--r-s); }
  .source__cap span:first-child { display: none; }
  .source__cap { font-size: 10.5px; }
  .source__q { font-size: 14px; margin: 3px 0 6px; line-height: 1.35; }
  .source__v { padding-top: 6px; }
  .source__vk { font-size: 12px; }
  .source__vt { font-size: 16px; }
  /* on a phone the draft's own underlines and pins carry each claim; the stacks keep their counts */
  .stacks { gap: 8px; }
  .stack { padding-top: 7px; gap: 2px; }
  .stack__head { flex-direction: column; gap: 3px; }
  .stack__name { font-size: 12.5px; gap: 6px; }
  .stack__name .dot { width: 7px; height: 7px; }
  .stack__count { font-size: 28px; }
  .stack__def, .cards { display: none; }
  .record { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: var(--r-m); }
  .record__mark { width: 40px; }
  .record__h { font-size: 15px; }
  .record__counts { font-size: 14px; }
}

/* the three answers, restated where the stage is compact */
.defs { display: none; }
@media (max-width: 760px) {
  .defs { display: block; padding-block: 36px 4px; }
  .defs__list { display: grid; gap: 14px; }
  .defs__list > div { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
  .defs__list dt { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 17px; }
  .defs__list dd { color: var(--ash); font-size: 15px; }
}

/* ================================================================= CAST (static grid) */
.cast { padding-block: clamp(48px, 5vw, 80px) clamp(60px, 8vw, 110px); }
.cast__head { display: grid; }
.cast__head .eyebrow { margin-bottom: 16px; }
.cast__h, .cast__not { font-size: clamp(44px, 6.4vw, 104px); text-wrap: balance; }
.cast__h { max-width: 24ch; }
.cast__not { color: var(--ash); }
.cast__intro { margin-top: 18px; max-width: 46ch; font-size: 18px; color: var(--bone-2); }

.people {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px;
}
.frame { display: grid; gap: 12px; align-content: start; }
.frame__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-s); overflow: hidden; background: var(--reel); }
.frame__media video { width: 100%; height: 100%; object-fit: cover; }
.frame .edge {
  position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px);
  font-family: var(--f-mono); font-size: 11.5px; color: var(--bone);
  padding: 3px 8px; border-radius: var(--r-s); background: var(--tag-bg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame figcaption { display: grid; gap: 3px; }
.frame strong { font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.15; }
.frame figcaption span { font-size: 15px; line-height: 1.4; color: var(--bone-2); }
.cast__note { margin-top: 28px; font-size: 14.5px; color: var(--ash); }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .people { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .frame { grid-template-columns: 40% minmax(0, 1fr); gap: 14px; align-items: center; }
  .frame__media { aspect-ratio: 4 / 3; }
  .frame .edge { font-size: 10px; top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 2px 5px; }
  .frame strong { font-size: 16.5px; }
  .frame figcaption span { font-size: 14px; }
}

/* ================================================================= LAW OF THE GREEN */
.law { padding-block: clamp(80px, 10vw, 150px); display: grid; gap: clamp(32px, 4vw, 56px); }
.law__head { display: grid; gap: 20px; }
.law__h { font-size: clamp(48px, 8vw, 128px); line-height: 1.02; }
.law__h span { display: block; }
.law__h span:first-child { color: var(--ash); }
.law__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.law__body { display: grid; gap: 22px; font-size: clamp(17px, 1.35vw, 19.5px); color: var(--bone-2); }
.c-ok { color: var(--ok); } .c-unk { color: var(--unk); }
.lanes { display: grid; gap: 10px; }
.lane {
  display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-m); background: var(--reel); border: 1px solid var(--line);
  font-size: 15.5px; font-weight: var(--w-b3); color: var(--bone);
}
.l-arrow { height: 2px; background: var(--ash); position: relative; }
.l-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ash); border-right: 0; }
.l-to { display: inline-flex; align-items: center; gap: 8px; }
.l-to--ok { color: var(--ok); }
.l-to--lead { color: var(--bone-2); }
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.stat { display: grid; align-content: start; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.stat__n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.stat__big {
  font-family: var(--f-display); font-stretch: var(--s-display); font-weight: var(--w-d3); font-size: clamp(64px, 7vw, 108px);
  line-height: 0.85; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums;
}
.stat__unit { font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; color: var(--bone); }
.stat__d { font-size: 15.5px; color: var(--ash); max-width: 44ch; }
.stat__d .lead-chip { margin-right: 6px; }
@media (max-width: 860px) {
  .law__cols { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); font-size: 14.5px; padding: 12px 14px; }
}

/* ================================================================= PRIVACY */
.privacy { padding-block: clamp(40px, 5vw, 80px); }
.privacy__in { display: grid; gap: 16px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-2); border-radius: var(--r-l); }
.privacy__p {
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d1);
  font-size: clamp(21px, 2.3vw, 32px); line-height: 1.26; letter-spacing: -0.01em; max-width: 42ch; color: var(--bone);
}

/* ================================================================= DOWNLOAD (paper) */
.download { padding-block: clamp(50px, 6vw, 100px); }
.plate {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "seal main" "verify verify";
  gap: clamp(24px, 3vw, 44px) clamp(28px, 4vw, 56px);
  padding: clamp(26px, 5vw, 68px); border-radius: var(--r-l);
  background: var(--paper); color: var(--ink);
}
.plate__seal { grid-area: seal; width: clamp(84px, 11vw, 160px); aspect-ratio: 1; }
.plate__seal svg { width: 100%; height: 100%; }
.plate__main { grid-area: main; display: grid; gap: 16px; align-content: start; min-width: 0; }
.plate__h { font-size: clamp(48px, 7.2vw, 112px); color: var(--ink); }
.plate__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15.5px; color: var(--ink-2); }
.plate__sign { font-size: 14.5px; color: var(--ink-2); }
.plate__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.plate__note { font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.plate__verify { grid-area: verify; border-top: 1px solid var(--line-ink); min-width: 0; }
.plate__verify summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 17px;
}
.plate__verify summary::-webkit-details-marker { display: none; }
.plate__verify .chev { width: 18px; height: 18px; transition: transform var(--t-mod) var(--e-move); }
.plate__verify[open] .chev { transform: rotate(180deg); }
.plate__verify .cmds { padding-bottom: 4px; }
.cmds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cmds li { display: grid; gap: 6px; min-width: 0; }
.cmds li > p { font-size: 14.5px; font-weight: var(--w-b3); color: var(--ink); }
.cmd {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 4px 4px 16px;
  background: var(--paper-2); border-radius: var(--r-m); min-width: 0;
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--f-mono); font-size: 13.5px; color: var(--ink); padding-block: 8px; }
.copy {
  flex: none; min-width: 72px; min-height: 44px; border: 0; border-radius: var(--r-s); cursor: pointer;
  background: var(--paper); color: var(--ink); font-weight: var(--w-b3); font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-ink);
  transition: transform var(--t-fast) var(--e-enter);
}
.copy:active { transform: scale(0.96); }
@media (max-width: 700px) {
  .plate { grid-template-columns: minmax(0, 1fr); grid-template-areas: "seal" "main" "verify"; }
  .plate__ctas .btn { flex: 1 1 100%; }
  .cmd code { font-size: 12px; }
}

/* ================================================================= FOOTER */
.foot { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot__brand { display: flex; align-items: center; gap: 14px; color: var(--ash); font-size: 14.5px; }
.foot__mark { width: 30px; height: 30px; color: var(--ash); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14.5px; color: var(--bone-2); text-decoration: none; }
.foot__links a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; }

/* ================================================================= REVEALS */
.motion .reveal { opacity: 0; transform: translateY(24px); }
.motion .reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-slower) var(--e-enter), transform var(--t-slower) var(--e-enter);
  transition-delay: calc(var(--d, 0) * var(--d-reveal));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}


/* ================================================================= THE OPENING (once per session) */
.veil { display: none; }
html.intro .veil {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--paper); color: var(--ox);
  animation: veil-lift var(--t-lift) var(--e-exit) var(--d-lift) forwards;
}
html.intro { --intro-delay: var(--d-lift); }
html.intro.intro-skip { --intro-delay: 0ms; }
html.intro.intro-skip .veil { animation: veil-lift var(--t-skip) var(--e-exit) 0ms forwards; }
html.intro.intro-done .veil { display: none; }
.veil__wm { position: relative; display: inline-block; line-height: 0; }
.veil__svg { width: min(700px, 86vw); height: auto; overflow: visible; }
.veil__cover {
  position: absolute; inset: -8% -4%; background: var(--paper); transform-origin: right center;
  animation: uncover var(--t-uncover) var(--e-uncover) var(--d-uncover) both;
}
@keyframes uncover { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes veil-lift { to { transform: translateY(-100%); } }

/* ================================================================= PANELS + THE MARK'S ARCS */
.panel { position: relative; overflow: hidden; isolation: isolate; background: var(--panel); }
.arcs { position: absolute; z-index: -1; pointer-events: none; color: var(--arc); overflow: visible; will-change: transform; }
.arcs--who { width: 460px; height: 460px; right: 5%; top: 56px; }
.arcs--contact { width: 520px; height: 520px; right: 6%; top: calc(50% - 260px); color: var(--arc-2); }
.arcs .trace { stroke-dasharray: 100 100; }
.motion .arcs .trace { stroke-dashoffset: 100; }
.motion .arcs.is-drawn .trace { animation: arc-draw var(--t-trace) var(--e-move) forwards; }
.motion .arcs.is-drawn .trace + .trace { animation-delay: calc(var(--t-trace) * 0.18); }
html.still .arcs .trace { animation-play-state: paused; }
@keyframes arc-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .arcs { color: var(--arc-soft); }
  .arcs--who { width: 420px; height: 420px; right: -230px; top: -60px; }
  .arcs--contact { width: 460px; height: 460px; left: auto; right: -240px; bottom: -200px; }
}

.cast.panel { margin-top: clamp(24px, 3vw, 40px); }

/* ================================================================= COMING (one row) */
.coming { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.coming__h { font-family: var(--f-display); font-stretch: var(--s-label); font-weight: var(--w-d2); font-size: 15px; color: var(--bone-2); margin-right: 4px; }
.coming__list { display: flex; flex-wrap: wrap; gap: 8px; }
.coming__list li { padding: 5px 12px; border-radius: var(--r-pill); border: 1px dashed var(--line-3); font-size: 14px; color: var(--bone-2); }

/* ================================================================= CONTACT */
.contact { padding-block: clamp(80px, 10vw, 150px); }
.contact__in { display: grid; gap: 28px; justify-items: start; }
.contact__fig { display: grid; gap: 16px; max-width: 1000px; }
.contact__q { font-size: clamp(40px, 6vw, 92px); text-wrap: balance; }
.contact__q .hang { margin-left: -0.42em; }
.contact__who { font-size: 17px; color: var(--bone-2); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
