/* ============================================================
   Consilena — landing experience
   Warm paper & ink · OKLCH · Fraunces / Geist / Geist Mono
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fraunces Variable";
  src: url("../assets/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Variable";
  src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Variable";
  src: url("../assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: oklch(0.972 0.012 85);
  --surface: oklch(0.993 0.005 90);
  --ink: oklch(0.23 0.015 60);
  --ink-2: oklch(0.45 0.02 60);
  --ink-3: oklch(0.6 0.02 65);
  --line: oklch(0.88 0.015 80);
  --line-strong: oklch(0.8 0.02 78);

  --brass: oklch(0.55 0.13 70);
  --brass-bright: oklch(0.72 0.12 78);
  --brass-deep: oklch(0.45 0.11 65);

  --agree: oklch(0.55 0.13 155);
  --contradict: oklch(0.55 0.14 35);
  --verify: oklch(0.55 0.18 22);

  --night: oklch(0.165 0.008 70);
  --night-2: oklch(0.21 0.012 70);
  --night-line: oklch(0.32 0.02 72);
  --night-ink: oklch(0.93 0.01 85);
  --night-ink-2: oklch(0.72 0.015 80);

  --font-display: "Fraunces Variable", "Iowan Old Style", Georgia, serif;
  --font-ui: "Geist Variable", system-ui, sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, "SF Mono", monospace;

  --shadow-card: 0 2px 6px oklch(0.35 0.04 70 / 0.08), 0 18px 44px oklch(0.35 0.04 70 / 0.12);
  --shadow-soft: 0 1px 2px oklch(0.35 0.04 70 / 0.06), 0 8px 20px oklch(0.35 0.04 70 / 0.07);

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--night); /* JS animates toward --paper on scroll */
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

::selection { background: oklch(0.55 0.13 70 / 0.3); }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--night);
  display: grid; place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 18px; }
.preloader-inner svg { width: 76px; height: 76px; animation: premark 1.9s ease-in-out infinite; }
@keyframes premark { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }
#preload-pct {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--night-ink-2);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  color: var(--night-ink);
  transition: color 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}
.nav.on-paper { color: var(--ink); background: oklch(0.972 0.012 85 / 0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-logo { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; text-decoration: none; }
.nav-logo em { font-style: normal; color: var(--brass-bright); }
.nav.on-paper .nav-logo em { color: var(--brass); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  background: none; border: 1px solid currentColor; border-radius: 999px;
  color: inherit; padding: 6px 14px; cursor: pointer; opacity: 0.85;
}
.lang-toggle:hover { opacity: 1; }
.nav-cta {
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; text-decoration: none;
  background: var(--brass); color: oklch(0.98 0.008 85);
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--brass-deep); }

/* ---------- shared scene scaffolding ---------- */
.scene { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.scene-inner { max-width: 1180px; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); margin-block-end: 18px;
}
.scene h2 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 20ch;
}
.scene .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: var(--measure); margin-block-start: 22px; }
.scene--dark { color: var(--night-ink); }
.scene--dark .lede { color: var(--night-ink-2); }
.scene--dark .eyebrow { color: var(--brass-bright); }

.reveal { opacity: 0; transform: translateY(20px); }
html.no-motion .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */
#hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img.hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 30%;
  transform: scale(1.1);
  will-change: transform;
}
.hero-media::after { /* vignette + bottom fade into the page */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 40%, transparent 40%, oklch(0.165 0.008 70 / 0.75) 100%),
    linear-gradient(to top, var(--night) 0%, transparent 26%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-copy {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); max-width: 1320px; margin-inline: auto;
  color: var(--night-ink);
}
.hero-copy .eyebrow { color: var(--brass-bright); }
.hero-title {
  font-family: var(--font-display); font-weight: 540;
  font-size: clamp(52px, 9vw, 124px); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 11ch;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word > span { display: inline-block; will-change: transform; }
.hero-sub { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.55; color: var(--night-ink-2); max-width: 46ch; margin-block-start: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 38px; }
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: oklch(0.98 0.008 85); box-shadow: 0 8px 28px oklch(0.55 0.13 70 / 0.35); }
.btn-brass:hover { background: var(--brass-deep); }
.btn-ghost { border: 1px solid oklch(0.93 0.01 85 / 0.4); color: var(--night-ink); }
.btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.scene:not(.scene--dark) .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.scene:not(.scene--dark) .btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.hero-proof {
  display: flex; gap: clamp(18px, 4vw, 56px); flex-wrap: wrap;
  margin-block-start: clamp(34px, 6vh, 64px);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--night-ink-2);
}
.hero-proof b { display: block; font-size: 19px; letter-spacing: 0; color: var(--night-ink); font-weight: 600; }

.scroll-cue {
  position: absolute; inset-block-end: 26px; inset-inline-start: 50%; translate: -50% 0; z-index: 3;
  display: grid; justify-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--night-ink-2);
}
.scroll-cue .line { width: 1px; height: 44px; background: linear-gradient(var(--brass-bright), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(1) translateY(8px); opacity: 0; } }

/* ---------- pain: many tools -> one ---------- */
#pain .chips-stage { position: relative; height: clamp(320px, 44vh, 460px); margin-block-start: 48px; }
.chip-tool {
  position: absolute; inset-inline-start: 50%; inset-block-start: 50%;
  font-family: var(--font-mono); font-size: 13px; white-space: nowrap;
  color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 20px; background: var(--surface);
  will-change: transform, opacity;
}
.codex-card {
  position: absolute; inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%;
  text-align: center; padding: 34px 46px; border-radius: var(--radius);
  border: 1px solid var(--brass);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  opacity: 0; scale: 0.85;
}
.codex-card .mark { font-family: var(--font-display); font-size: 30px; color: var(--brass); }
.codex-card p { font-size: 14px; color: var(--ink-2); margin-block-start: 8px; max-width: 30ch; }

/* ---------- risk: scales ---------- */
/* midnight-hero: only the hero keeps the night ground. #pain carries its own
   solid paper so its ink text is always on paper even while the body color is
   still mid-transition behind it — the dark→light blend reads at the seam. */
#hero { background: var(--night); }
#pain { background: var(--paper); border-block-start: 1px solid var(--line); }
#risk { padding-block: 0; }

/* pain/risk/privacy keep .scene--dark markup but read paper-light */
#pain, #risk, #privacy { color: var(--ink); }
#pain .lede, #risk .lede, #privacy .lede { color: var(--ink-2); }
#pain .eyebrow, #risk .eyebrow, #privacy .eyebrow { color: var(--brass); }
.risk-pin { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; min-height: 100svh; padding: 90px var(--gutter); max-width: 1320px; margin-inline: auto; }
.risk-visual { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 90px oklch(0.08 0.01 70 / 0.65); }
.risk-visual img { width: 100%; height: clamp(320px, 58vh, 620px); object-fit: cover; will-change: transform; transform: scale(1.12); }
.risk-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px oklch(0.72 0.12 78 / 0.18); border-radius: inherit; }
.trust-meter { margin-block-start: 34px; max-width: 420px; }
.trust-meter .row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-2); margin-block-end: 8px; }
.trust-meter .row b { color: var(--agree); font-weight: 600; }
.trust-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.trust-fill { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--brass), oklch(0.62 0.13 155)); }
.risk-flags { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.risk-flags li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.risk-flags .dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 999px; translate: 0 -1px; }
.dot--agree { background: var(--agree); } .dot--contradict { background: var(--contradict); } .dot--verify { background: var(--verify); }

/* ---------- models: consensus ---------- */
#models { padding-block: 0; }
.models-pin { min-height: 100svh; padding: 110px var(--gutter) 90px; max-width: 1180px; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; }
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block-start: 44px; }
.model-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 18px; box-shadow: var(--shadow-soft); will-change: transform, opacity;
}
.model-card .who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.model-card .who .sig { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); }
.model-card .who .sig img { width: 15px; height: 15px; display: block; }
.model-card .skeleton { margin-block-start: 14px; display: grid; gap: 8px; }
.model-card .skeleton i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.model-card .skeleton i:nth-child(2) { width: 86%; } .model-card .skeleton i:nth-child(3) { width: 72%; }
.verdict-card {
  margin-block-start: 18px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: var(--shadow-card); padding: 26px clamp(18px, 3vw, 34px);
  position: relative; will-change: transform, opacity;
}
.verdict-card .seal {
  position: absolute; inset-block-start: -26px; inset-inline-end: 28px;
  width: 56px; height: 56px; color: var(--brass);
  filter: drop-shadow(0 8px 18px oklch(0.55 0.13 70 / 0.45));
  rotate: -8deg;
}
.verdict-card .seal svg { width: 100%; height: 100%; display: block; }
.nav-mark { width: 21px; height: 21px; display: inline-block; vertical-align: -4px; margin-inline-end: 9px; }
.verdict-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.claims { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.claims li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5;
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper);
}
.claims .tag { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: oklch(0.98 0.008 85); translate: 0 2px; }
.tag--agree { background: var(--agree); } .tag--contradict { background: var(--contradict); } .tag--unique { background: var(--brass); }
.claims .cite { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-deep); white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; margin-inline-start: auto; align-self: center; }

/* ---------- law: grounded ---------- */
#law .law-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 80px); align-items: start; margin-block-start: 10px; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-block-start: 40px; }
.counter { border-block-start: 2px solid var(--brass); padding-block-start: 14px; }
.counter b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 560; letter-spacing: -0.01em; display: block; line-height: 1; }
.counter span { font-size: 13.5px; color: var(--ink-2); display: block; margin-block-start: 8px; }
.cite-demo { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); padding: 24px; }
.cite-demo .q { font-size: 14.5px; line-height: 1.65; }
.cite-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-deep);
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 1px 9px;
  cursor: default; transition: background 0.2s, color 0.2s;
}
.cite-chip:hover, .cite-chip.lit { background: var(--brass); color: oklch(0.98 0.008 85); border-color: var(--brass); }
.cite-pop {
  margin-block-start: 16px; border-inline-start: 3px solid var(--brass); background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2);
}
.cite-pop .src { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--brass-deep); display: block; margin-block-start: 10px; }
.juris { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 26px; }
.juris span { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; color: var(--ink-2); }
.juris span.deep { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- gallery (horizontal) ---------- */
#gallery { padding: 0; }
.gallery-head { padding: clamp(70px, 9vh, 110px) var(--gutter) 18px; max-width: 1180px; margin-inline: auto; }
.gallery-track-wrap { overflow: hidden; }
.gallery-track { display: flex; gap: clamp(18px, 2.4vw, 30px); padding: 18px var(--gutter) 64px; width: max-content; }
.panel {
  flex: 0 0 auto; width: clamp(260px, 24vw, 340px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.panel .emblem { aspect-ratio: 4 / 3; overflow: hidden; border-block-end: 1px solid var(--line); background: oklch(0.95 0.012 85); }
.panel .emblem img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s ease; }
.panel:hover .emblem img { scale: 1.045; }
.panel .body { padding: 20px 22px 24px; }
.panel h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.panel p { font-size: 14px; color: var(--ink-2); margin-block-start: 8px; line-height: 1.55; }
.panel .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--brass); display: block; margin-block-end: 10px; }

/* ---------- lawyers ---------- */
#lawyers .law-grid2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.handshake { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.gate { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.gate li { position: relative; padding: 18px 0 18px 56px; border-block-start: 1px solid var(--line); }
.gate li:last-child { border-block-end: 1px solid var(--line); }
.gate li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; inset-block-start: 18px;
  font-family: var(--font-mono); font-size: 13px; color: var(--brass);
}
.gate b { display: block; font-size: 15.5px; font-weight: 600; }
.gate span { font-size: 14px; color: var(--ink-2); }
.gate .lock { color: var(--verify); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.gate .open { color: var(--agree); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- privacy (dark interlude) ---------- */
#privacy { min-height: 92svh; display: grid; align-items: center; }
.privacy-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 90px); align-items: center; max-width: 1180px; margin-inline: auto; }
.veiled { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 90px oklch(0.08 0.01 70 / 0.7); }
.veiled img { will-change: transform; transform: scale(1.08); }
#privacy h2 { max-width: 16ch; }
.privacy-claims { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.privacy-claims li { display: flex; gap: 14px; font-size: 15px; color: var(--ink-2); align-items: baseline; }
.privacy-claims li::before { content: "§"; font-family: var(--font-display); color: var(--brass); }
.privacy-claims b { color: var(--ink); font-weight: 600; }

/* ---------- pricing ---------- */
.plinths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block-start: 50px; align-items: end; }
.plinth {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-card); padding: 28px 26px 30px; will-change: transform, opacity;
}
.plinth.featured { border-color: var(--brass); box-shadow: 0 24px 70px oklch(0.55 0.13 70 / 0.22); padding-block: 38px; }
.plinth .tier { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.plinth .price { font-family: var(--font-display); font-size: 44px; font-weight: 560; margin-block-start: 12px; line-height: 1; }
.plinth .price small { font-family: var(--font-ui); font-size: 14px; color: var(--ink-3); font-weight: 400; }
.plinth ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.plinth ul li::before { content: "— "; color: var(--brass); }
.payg-note { margin-block-start: 26px; font-size: 14.5px; color: var(--ink-2); max-width: var(--measure); }
.payg-note code { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.final-cta { text-align: center; margin-block-start: clamp(70px, 10vh, 120px); }
.final-cta h2 { margin-inline: auto; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
footer {
  padding: 60px var(--gutter) 80px; border-block-start: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--ink-2);
}
footer .fine { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-3); max-width: 64ch; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .hero-media video, .hero-media img.hero-still { object-position: 50% 10%; }
  /* statue fills the frame on phones: anchor copy to the bottom over a strong scrim */
  .hero-media::after {
    background:
      linear-gradient(to top, var(--night) 6%, oklch(0.165 0.008 70 / 0.82) 40%, oklch(0.165 0.008 70 / 0.25) 62%, transparent 80%),
      radial-gradient(140% 70% at 50% 0%, transparent 55%, oklch(0.165 0.008 70 / 0.45) 100%);
  }
  .hero-copy { justify-content: flex-end; padding-block-end: 40px; }
  .hero-title { font-size: clamp(44px, 13vw, 64px); }
  .hero-sub { font-size: 15px; margin-block-start: 18px; }
  .hero-ctas { margin-block-start: 24px; }
  .hero-proof { margin-block-start: 20px; gap: 14px 26px; }
  .scroll-cue { display: none; }
}
@media (max-width: 920px) {
  .risk-pin, #law .law-grid, #lawyers .law-grid2, .privacy-wrap { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .model-card { display: flex; align-items: center; gap: 16px; }
  .model-card .skeleton { flex: 1; margin-block-start: 0; }
  .plinths { grid-template-columns: 1fr; }
  .risk-visual img { height: 44vh; }
  .hero-media video, .hero-media img.hero-still { object-position: 62% 22%; }
  .hero-proof { gap: 20px; }
  /* gallery: vertical stack on mobile */
  .gallery-track { width: auto; flex-direction: column; align-items: center; padding-block-end: 80px; }
  .panel { width: min(100%, 420px); }
  .panel .emblem { aspect-ratio: 16 / 10; }
}

/* phones/tablets: no persistent compositor layers (iOS memory pressure -> reload loop);
   GSAP promotes layers for the duration of each tween anyway */
@media (max-width: 920px) {
  .hero-media video, .hero-media img.hero-still, .hero-title .word > span,
  .chip-tool, .risk-visual img, .model-card, .verdict-card, .veiled img, .plinth {
    will-change: auto;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader-inner svg .beam, .scroll-cue .line { animation: none; }
}
html.no-motion .hero-media video { display: none; }
html.no-motion #hero-canvas { display: none; }
html.no-motion body { background: var(--paper); }

/* ---------- method viz: jurisdictions + models feed the mark ---------- */
.method-viz { position: relative; height: clamp(400px, 54vh, 560px); margin-block-start: 38px; }
.viz-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-line { fill: none; stroke: oklch(0.68 0.04 75); stroke-width: 1.8; stroke-dasharray: 6 6; opacity: 0.9; }
.viz-pulse { fill: var(--brass); opacity: 0; }
.viz-center {
  position: absolute; inset-inline-start: 50%; inset-block-start: 48%; translate: -50% -50%;
  display: grid; justify-items: center; gap: 6px; z-index: 2;
}
.viz-center svg {
  width: clamp(64px, 7vw, 90px); height: auto; color: var(--ink);
  background: var(--paper); border-radius: 50%; /* opaque backing: feed lines never show through the mark cutouts */
  filter: drop-shadow(0 10px 24px oklch(0.35 0.04 70 / 0.25));
}
.viz-center span { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.viz-node {
  position: absolute; translate: -50% -50%; z-index: 2; width: max-content;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-soft);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  cursor: default; transition: border-color 0.25s;
}
.viz-node:hover { border-color: var(--brass); }
.viz-node b { color: var(--ink); font-weight: 600; }
.viz-node .flag { font-size: 15px; line-height: 1; }
.viz-node img { width: 14px; height: 14px; }
@media (max-width: 920px) {
  .method-viz { height: 380px; }
  .viz-node { padding: 6px 10px; font-size: 10.5px; gap: 5px; }
  .viz-node .full { display: none; }
  .viz-center svg { width: 58px; }
}

/* ---------- section CTAs (every road leads to start) ---------- */
.section-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }
.panel--cta { display: grid; align-content: center; border-color: var(--brass); }
.panel--cta .body .btn { margin-block-start: 18px; }
