/* Karmel Capital — content portal · The Frontier Compresses (web edition).
   Karmel house style: Helvetica (self-hosted as TeX Gyre Heros), navy #005986 +
   grey #747578, one gold accent #c9a24d, light + dense + typographic. Wide web
   layout: a readable prose column with full-bleed figures. Accessible +
   responsive 320 → 1440+. */

/* Self-hosted brand typeface — TeX Gyre Heros, an open Helvetica clone (GUST
   Font License; see fonts/). Self-hosting renders the type identically on every
   OS/browser instead of resolving to Helvetica Neue / Arial / Roboto per
   platform. The family ships Regular + Bold only, so weight 800 maps to Bold. */
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-bolditalic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --navy: #005986;
  --navy-deep: #003f5f;
  --grey: #747578;
  --ink: #1f2937;
  --title: #0f1a24;
  --fill: #f2f3f5;
  --fill-2: #e7eaee;
  --light-blue: #E8F0F6;
  --border: #d9dde1;
  --white: #ffffff;
  --gold: #c9a24d;
  --gold-deep: #9c7a2e;
  --red: #b23a3a;

  --c-opus48: #c9a24d;
  --c-opus47: #005986;
  --c-gpt: #5a8aa6;
  --c-gemini: #9aa0a3;

  /* TeX Gyre Heros first (self-hosted, identical everywhere); the rest are
     metric-compatible fallbacks shown only during font load or if it fails. */
  --font: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 1200px;     /* full content width */
  --read: 720px;      /* readable prose measure */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-suspenders against any horizontal spill */
}

/* --- Accessibility helpers ------------------------------------------------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 9px 14px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; border-radius: 0 0 4px 4px; transition: top .15s; }
.skip-link:focus { top: 0; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding-inline: clamp(18px, 4vw, 36px); }

/* --- Reading progress ------------------------------------------------------ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: 60; transition: width .1s linear; }

/* --- Header (full-bleed navy rule spans the viewport) ---------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--navy); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.logo-link { display: inline-flex; align-items: center; border-radius: 2px; }
.logo { height: 42px; width: auto; display: block; }
.site-header__meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 3px; }
.meta-line { font-size: 11px; line-height: 1.3; }
.meta-line--label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--navy); }
.meta-line--muted { color: var(--grey); letter-spacing: .02em; }

/* --- Layout: wide container, prose column, full-bleed figures -------------- */
.brief { max-width: var(--wide); margin: 0 auto; padding: 8px clamp(18px, 4vw, 36px) 72px; }

/* Prose blocks sit in a centered readable column; figures fill the width. */
.measure, .section > p, .section__eyebrow, .section__title, .pullquote, .callout,
.methodology { max-width: var(--read); }

/* --- Hero: editorial split — two-tone title + convergence figure ----------- */
.hero { max-width: var(--wide); margin: 0 auto; padding: clamp(34px, 4vw, 56px) clamp(18px, 4vw, 36px) clamp(28px, 3vw, 40px); }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.hero__dateline { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-variant-numeric: tabular-nums; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) .88fr; gap: clamp(28px, 3.2vw, 48px); align-items: center; margin-top: clamp(28px, 3.5vw, 50px); }
.title { margin: 0; max-width: 13ch; font-size: clamp(40px, 7vw, 98px); line-height: .92; font-weight: 800; letter-spacing: -.04em; color: var(--navy); text-wrap: balance; }
.title__alt { color: var(--grey); }
.subtitle { margin: 24px 0 0; max-width: 42ch; font-size: clamp(16px, 1.45vw, 19px); font-style: italic; line-height: 1.55; color: var(--grey); }
.hero__fig { position: relative; }

/* Opening screen: on desktop the hero + key-figures band fill the first
   viewport so both land together. The header is sticky and in-flow, so subtract
   its height (--header-h, measured in JS; 76px fallback). The hero grows and
   centers its title/figure block; the band sits at the bottom edge. Below the
   grid breakpoint it flows naturally and may scroll — small screens won't fit
   all four figures, by design. */
@media (min-width: 861px) {
  .hero-screen { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 76px)); min-height: calc(100svh - var(--header-h, 76px)); }
  .hero { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hero__top { flex: 0 0 auto; }
  .hero__grid { flex: 1 1 auto; align-content: center; }
}

/* Convergence motif: open-weight (grey) lines climbing to meet the closed
   frontier (navy), the shaded wedge between them narrowing left → right. */
.converge { width: 100%; height: auto; max-height: 46svh; display: block; overflow: visible; }
.converge__gap { fill: rgba(116, 117, 120, .08); }
.converge__line { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.converge__line--open { stroke: var(--grey); }
.converge__line--closed { stroke: var(--navy); stroke-width: 1.9; }
.converge__dot { fill: var(--navy); }
.converge__dot--open { fill: var(--grey); }
.converge__dot--closed { fill: var(--navy); }

/* --- Key-figures band (paper fill, vertical hairlines) --------------------- */
.hero-figures { background: var(--fill); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--border); }
.hero__stats { list-style: none; max-width: var(--wide); margin: 0 auto; padding: clamp(26px, 3vw, 36px) clamp(18px, 4vw, 36px); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__stats .stat { position: relative; padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 32px); border-left: 1px solid rgba(0, 89, 134, .14); }
.stat__value { display: block; font-size: clamp(30px, 3.5vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__unit, .stat__vs { font-size: .46em; font-weight: 700; color: var(--grey); }
.stat__vs { font-style: italic; }
.stat__label { display: block; margin-top: 14px; font-size: 10.5px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .045em; color: var(--grey); max-width: 26ch; }

/* --- Hero entrance: one-time on load, reduced-motion safe ------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Pre-state, applied only once JS marks the doc (.hero-anim) — avoids FOUC
     if JS never runs, in which case the hero just shows statically. */
  .hero-anim .kicker,
  .hero-anim .title,
  .hero-anim .subtitle,
  .hero-anim .hero__dateline,
  .hero-anim .hero__stats .stat { opacity: 0; transform: translateY(14px); }
  /* No clip-path on the title: with line-height < 1 the cap tops sit above the
     content box, so a top-inset clip slices them when the font falls back to
     Arial (Windows / Chrome). Let it render — overflow stays visible all the way up. */

  .hero-ready .kicker { animation: heroRise .7s var(--ease) .08s both; }
  .hero-ready .title { animation: heroRise .8s var(--ease) .18s both; }
  .hero-ready .subtitle { animation: heroRise .7s var(--ease) .34s both; }
  .hero-ready .hero__dateline { animation: heroRise .7s var(--ease) .12s both; }

  .hero-ready .hero__stats .stat { animation: heroRise .65s var(--ease) both; }
  .hero-ready .hero__stats .stat:nth-child(1) { animation-delay: .40s; }
  .hero-ready .hero__stats .stat:nth-child(2) { animation-delay: .48s; }
  .hero-ready .hero__stats .stat:nth-child(3) { animation-delay: .56s; }
  .hero-ready .hero__stats .stat:nth-child(4) { animation-delay: .64s; }

  /* Convergence: both packs draw in (per-line delay set inline), gap + dots settle. */
  .hero-anim .converge__line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .hero-anim .converge__dot, .hero-anim .converge__gap { opacity: 0; }
  .hero-ready .converge__line { animation: heroDraw 1.5s var(--ease) both; }
  .hero-ready .converge__gap { animation: heroFade 1s ease-out 1.5s both; }
  .hero-ready .converge__dot { animation: heroFade .6s ease-out 1.7s both; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroDraw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

/* Final-state lock — JS adds .hero-done once the entrance has had time to run
   (and on any environment that freezes the animation clock), so the hero never
   stays stuck in its hidden start frame. */
.hero-done .kicker,
.hero-done .title,
.hero-done .subtitle,
.hero-done .hero__dateline,
.hero-done .hero__stats .stat { opacity: 1 !important; transform: none !important; animation: none !important; }
.hero-done .converge__line { stroke-dashoffset: 0 !important; animation: none !important; }
.hero-done .converge__dot, .hero-done .converge__gap { opacity: 1 !important; animation: none !important; }

/* --- Sections -------------------------------------------------------------- */
.section { margin-top: 60px; }
.section__eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.section__title { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: clamp(24px, 3.4vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.section > p { margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink); }

/* --- Bottom-line takeaway -------------------------------------------------- */
.pullquote { margin: 48px 0 8px; padding: 22px 26px; background: var(--fill); border-left: 3px solid var(--navy); }
.pullquote__kicker { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.pullquote__text { margin: 0; font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; line-height: 1.38; letter-spacing: -.01em; color: var(--title); }
.pullquote__sub { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

/* --- Callouts -------------------------------------------------------------- */
.callout { margin: 34px 0; padding: 20px 24px; background: var(--fill); border-left: 3px solid var(--navy); }
.callout p { margin: 0; font-size: 15px; line-height: 1.62; }
.callout p + p { margin-top: 10px; }
.callout__kicker { margin: 0 0 10px !important; max-width: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.callout--gold { border-left-color: var(--gold); }
.callout--gold .callout__kicker { color: var(--gold-deep); }
.callout em { font-style: italic; color: var(--grey); }
.callout__foot { margin-top: 12px !important; font-size: 12px; color: var(--grey); }

.pricerow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.pricerow__item { padding: 11px 12px; background: var(--white); border: 1px solid var(--border); }
.pricerow__model { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
.pricerow__price { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--navy); }

/* --- Tables ---------------------------------------------------------------- */
.leads, .implications { margin: 24px auto 0; }
.leads table, .implications { width: 100%; border-collapse: collapse; font-size: 14px; }
.leads th, .leads td, .implications th, .implications td { padding: 12px 15px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.leads thead th, .implications thead th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--white); background: var(--navy); border-color: var(--navy); }
.leads tbody tr:nth-child(even), .implications tbody tr:nth-child(even) { background: var(--fill); }
.leads tbody th[scope="row"], .implications tbody th[scope="row"] { font-weight: 700; color: var(--navy); }
.leads tbody th[scope="row"] { white-space: nowrap; }
.implications tbody th[scope="row"] { width: 34%; }

/* --- Charts (shared) ------------------------------------------------------- */
.chart { margin: 26px auto 0; padding: 24px clamp(16px, 2.5vw, 28px); background: var(--white); border: 1px solid var(--border); }
.chart--inset { margin-top: 0; }
.chart__title { margin: 0 0 18px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.chart__source { margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--grey); }
.chart__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin: 16px 0 0; font-size: 12px; color: var(--grey); }
.key { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.key::before { content: ""; width: 12px; height: 12px; }
.key--closed::before, .key--navy::before { background: var(--navy); }
.key--open::before, .key--gold::before { background: var(--gold); }
.key--blue::before { background: var(--c-gpt); }
.chart__gap { font-style: italic; font-weight: 400; }

/* Side-by-side figure rows (collapse on narrow) */
.chart-row { margin: 26px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.chart-row > .chart, .chart-row > .callout { margin: 0; max-width: none; height: 100%; }
.chart-row--aside { grid-template-columns: 2fr 3fr; align-items: center; }

.grid-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.grid-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink); }
.grid-legend i { width: 12px; height: 12px; flex: none; }

/* --- Bar charts (Fig 1 grouped + Fig 2) ------------------------------------ */
.bgrid { display: flex; flex-direction: column; gap: 18px; }
.bgrid__group { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; }
.bgrid__name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.bgrid__bench { display: block; font-size: 11px; color: var(--grey); }

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bars--compact { gap: 5px; }
.bars__row { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 14px; }
.bars--compact .bars__row { grid-template-columns: 1fr 78px; gap: 12px; }
.bars--compact .bars__label { display: none; }
.bars__label { font-size: 12.5px; color: var(--ink); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__track { position: relative; height: 16px; background: var(--fill-2); }
.bars--compact .bars__track { height: 14px; }
.bars__fill { display: block; height: 100%; } /* width is inline → always visible */
.js .chart.in .bars__fill { animation: bargrow 1s var(--ease) both; transform-origin: left center; }
@keyframes bargrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bars__fill--closed, .bars__fill--opus47 { background: var(--c-opus47); }
.bars__fill--open, .bars__fill--opus48 { background: var(--c-opus48); }
.bars__fill--gpt { background: var(--c-gpt); }
.bars__fill--gemini { background: var(--c-gemini); }
.bars__val { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars--compact .bars__val { display: flex; align-items: center; gap: 5px; }
.bars__star { color: var(--gold-deep); }
.bars__star svg { width: .9em; height: .9em; vertical-align: -.08em; } /* ★ as SVG — not in Helvetica-family fonts */
.js .chart.in .bars__row:nth-child(2) .bars__fill { animation-delay: .05s; }
.js .chart.in .bars__row:nth-child(3) .bars__fill { animation-delay: .1s; }
.js .chart.in .bars__row:nth-child(4) .bars__fill { animation-delay: .15s; }

/* --- Line charts (Fig 3/4/5, JS-built SVG) --------------------------------- */
.chart__canvas--line { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.lc { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.lc__grid { stroke: var(--border); stroke-width: 1; }
.lc__axis { fill: var(--grey); font-size: 13px; }
.lc__axis--y { text-anchor: end; }
.lc__axis--x { text-anchor: middle; }
.lc__band { fill: rgba(201, 162, 77, .12); }
.lc__baseline { stroke: var(--grey); stroke-width: 1.25; stroke-dasharray: 5 5; }
.lc__baseline-label { fill: var(--grey); font-size: 12px; paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; }
.lc__vmarker { stroke: var(--grey); stroke-width: 1; stroke-dasharray: 4 4; opacity: .6; }
.lc__leader { stroke: var(--grey); stroke-width: 1; opacity: .5; }
.lc__vmarker-label { fill: var(--grey); font-size: 11.5px; font-weight: 700; paint-order: stroke; stroke: var(--white); stroke-width: 3.5px; stroke-linejoin: round; }
.lc__line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); } /* drawn by default */
.js .chart.in .lc__line { animation: draw 1.5s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.lc__line--gold { stroke: var(--gold); }
.lc__line--blue, .lc__line--navy { stroke: var(--navy); }
.lc__dot--gold { fill: var(--gold); } .lc__dot--blue, .lc__dot--navy { fill: var(--navy); }
.lc__ptlabel { fill: var(--ink); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: var(--white); stroke-width: 3.5px; stroke-linejoin: round; }
.lc__ptlabel--muted { fill: var(--grey); font-weight: 700; }

/* --- The gate -------------------------------------------------------------- */
.gate-card { margin: 56px auto; padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
.gate-card__eyebrow { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.gate-card__title { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--title); }
.gate-card__lead { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 46ch; }
.gate-card__teases { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.gate-card__teases li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink); }
.gate-card__teases li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--gold); }

.field { margin-bottom: 13px; }
.field label { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.field input, .field select { width: 100%; padding: 11px 12px; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: 0; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px rgba(0, 89, 134, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 9px; margin: 4px 0 16px; font-size: 12px; line-height: 1.45; color: var(--grey); cursor: pointer; }
.consent input { margin-top: 1px; flex-shrink: 0; accent-color: var(--navy); }
.consent a { color: var(--navy); font-weight: 700; }

.btn { width: 100%; padding: 13px 18px; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--white); background: var(--navy); border: 0; border-radius: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--navy-deep); }
.btn:disabled { background: var(--grey); cursor: default; }
.form-msg { margin: 13px 0 0; font-size: 13px; color: var(--red); }
.form-msg:empty { margin: 0; }

/* --- Brief actions (after unlock) ------------------------------------------ */
.brief-actions { margin: 34px auto; padding: 16px 22px; background: var(--fill); border-left: 3px solid var(--gold); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; scroll-margin-top: 84px; }
.brief-actions__who { font-size: 16px; font-weight: 700; color: var(--navy); }

/* --- Soft teaser-gate ------------------------------------------------------ */
.gated { max-height: 360px; overflow: hidden; filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%); mask-image: linear-gradient(to bottom, #000 20%, transparent 100%); }
.gated.unlocked { max-height: none; overflow: visible; filter: none; opacity: 1; pointer-events: auto; user-select: auto; -webkit-mask-image: none; mask-image: none; animation: unlock .8s var(--ease); }
@keyframes unlock { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.methodology { margin: 44px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.6; color: var(--grey); }

/* --- Disclaimer ------------------------------------------------------------ */
.disclaimer { background: var(--fill); border-top: 1px solid var(--border); }
.disclaimer .wrap { padding-block: 28px 34px; }
.disclaimer__title { margin: 0 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); }
.disclaimer p { margin: 0 0 10px; max-width: 96ch; font-size: 11.5px; line-height: 1.6; color: var(--grey); }
.disclaimer p:last-child { margin-bottom: 0; }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--navy); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 20px; font-size: 12px; color: var(--grey); }
.site-footer__inner span:first-child { font-weight: 700; color: var(--navy); }
.site-footer__muted { font-style: italic; }

/* --- Reveal motion --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .gate-card { grid-template-columns: 1fr; gap: 26px; }
  .chart-row, .chart-row--aside { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  /* Figure drops below the lede — center it so it doesn't hug the left edge
     between the grid breakpoint and the phone widths. */
  .hero__fig { order: 2; width: 100%; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  /* Center each stat as a block (shrink to its content), but keep the value +
     label text left-aligned within it. */
  .hero__stats .stat { border-left: 0; padding: 0; width: fit-content; max-width: 100%; margin-inline: auto; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .bgrid__group { grid-template-columns: 1fr; gap: 8px; }
  .bars__row { grid-template-columns: 96px 1fr 42px; gap: 10px; }
  .bars--compact .bars__row { grid-template-columns: 1fr 72px; }
  .pricerow { grid-template-columns: 1fr 1fr; }
  .lc { min-width: 520px; }                /* keep chart labels legible; container scrolls */
  /* Stack the 2-column data tables so nothing overflows */
  .implications thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .implications tr { display: block; margin-bottom: 10px; border: 1px solid var(--border); }
  .implications tbody tr:nth-child(even) { background: var(--white); }
  .implications th[scope="row"], .implications td { display: block; width: auto; border: 0; padding: 12px 14px 4px; }
  .implications td { padding-top: 0; padding-bottom: 14px; color: var(--ink); }
  .implications th[scope="row"] { background: var(--fill); padding-bottom: 12px; }
}
@media (max-width: 440px) {
  .hero__stats { grid-template-columns: 1fr; }
}

/* --- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .chart.in .bars__fill, .js .chart.in .lc__line { animation: none; }
  .gated.unlocked { animation: none; }
}
