/* =========================================================
   SAKER INTELLIGENCE — site v2
   Dark, premium, image-led. One accent: falcon gold.
   Display: Sora · Body: Instrument Sans · Labels: IBM Plex Mono
   ========================================================= */

:root {
  --ink:      #0B0E14;   /* page base — deep blue-black */
  --ink-2:    #10141D;   /* raised band */
  --ink-3:    #141927;   /* card surface */
  --line:     rgba(255, 255, 255, 0.09);
  --line-soft:rgba(255, 255, 255, 0.05);
  --white:    #F2F5F9;
  --body:     #B9C2CF;
  --muted:    #8A94A6;
  --gold:     #D9A441;
  --gold-soft:rgba(217, 164, 65, 0.14);
  --gold-line:rgba(217, 164, 65, 0.35);
  --ghost-line: rgba(255, 255, 255, 0.25);
  /* positive signal — used only in evidence figures */
  --pos:      #6FCB96;
  --pos-soft: rgba(111, 203, 150, 0.13);
  --pos-line: rgba(111, 203, 150, 0.45);
  color-scheme: dark;

  --font-display: "Sora", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  /* label role reuses the display face — two fonts site-wide */
  --font-mono: "Sora", sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Type ---------- */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.06; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.15; }
.h3 { font-size: 1.25rem; line-height: 1.35; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 46em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-line);
}

.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.raised { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

/* light "evidence" section — paper ground for tangible deliverables */
.section--light {
  background: #EEF1F6;
  --white: #141A26;
  --body: #414B5C;
  --muted: #5D6980;
  --line: rgba(13, 18, 28, 0.14);
  --line-soft: rgba(13, 18, 28, 0.08);
  --ink-3: #FFFFFF;
  --gold: #A9791F;
  --gold-line: rgba(150, 105, 25, 0.45);
  --gold-soft: rgba(169, 121, 31, 0.10);
  /* paper ground needs the text-safe green in both themes */
  --pos: #2E7D52;
  --pos-soft: rgba(46, 125, 82, 0.10);
  --pos-line: rgba(46, 125, 82, 0.45);
}
.section--light .card {
  box-shadow: 0 6px 22px rgba(13, 18, 28, 0.05);
}
.section--light .card:hover {
  box-shadow: 0 16px 38px rgba(13, 18, 28, 0.12), 0 0 0 1px rgba(150, 105, 25, 0.10);
}
.section--light ::selection { background: #A9791F; color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { margin: 1.1rem 0 1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: #131007; }
.btn--gold:hover { background: #E5B558; transform: translateY(-2px); }

.btn--ghost {
  color: var(--white);
  border: 1px solid var(--ghost-line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn--lg { padding: 1.05em 2em; font-size: 1rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
}
.textlink .arrow { transition: transform 0.35s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(11, 14, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-block: 0.8rem;
}

/* lockup: mark spans both text lines; SAKER large and bold with tight
   tracking; INTELLIGENCE letter-spaced to fill the same width beneath it */
.brand { display: inline-flex; align-items: flex-end; gap: 0.6rem; }
.brand__mark { height: 46px; width: auto; flex-shrink: 0; position: relative; top: -3px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--white);
}

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.3s;
  position: relative;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav__cta { margin-left: 0.5rem; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: var(--white);
  transform: translateX(-50%);
  transition: 0.3s;
}
.nav__burger span { top: 50%; margin-top: -1px; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* mobile nav */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 1.4rem clamp(1.5rem, 5vw, 2.5rem) 3rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.mnav.open { transform: translateY(0); visibility: visible; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; }
.mnav__close { font-size: 2rem; color: var(--muted); line-height: 1; }
.mnav__links { margin: auto 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mnav__links a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  padding-block: 0.35em;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mnav__links a:hover { color: var(--gold); }
.mnav__links .mono-tag { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.2em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero--page { min-height: 78svh; }
.hero--flat { min-height: 0; padding-top: clamp(9rem, 16vw, 13rem); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* reading scrim: dark column behind the copy, landscape open right/bottom */
  background:
    linear-gradient(90deg, rgba(8,11,18,0.88) 0%, rgba(8,11,18,0.62) 36%, rgba(8,11,18,0.2) 68%, rgba(8,11,18,0.35) 100%),
    linear-gradient(180deg, rgba(8,11,18,0.42) 0%, rgba(8,11,18,0.22) 62%, rgba(8,11,18,0.55) 93%, var(--ink) 100%);
}

/* terrain mesh — canvas-drawn triangulated wireframe draped over the
   landscape (nodes, peak beams, directional glow flow). Coordinates are
   generated in the photo's pixel grid and mapped with the same cover-crop
   math as the background image, so the mesh stays glued to the terrain. */
.mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  /* quiet the lattice where the hero copy sits */
  -webkit-mask-image: linear-gradient(180deg, #000 48%, rgba(0,0,0,0.38) 78%, rgba(0,0,0,0.22) 100%);
  mask-image: linear-gradient(180deg, #000 48%, rgba(0,0,0,0.38) 78%, rgba(0,0,0,0.22) 100%);
}

.hero__inner {
  padding-block: clamp(7rem, 12vw, 9rem) clamp(3rem, 6vw, 4.5rem);
}
.hero__title { margin: 1.3rem 0 1.4rem; max-width: 13em; }
.hero__lead { max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

/* field strip — mono data line under hero content */
.fieldstrip {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.8rem, 5vw, 4rem);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.fieldstrip strong { color: var(--gold); font-weight: 500; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  transform-style: preserve-3d;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-line);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(217, 164, 65, 0.14),
    0 0 0 1px rgba(217, 164, 65, 0.08);
}
/* gold spotlight that follows the cursor */
.card::after,
.deflist__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(217, 164, 65, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::after,
.deflist__item:hover::after { opacity: 1; }

.card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .h3 { margin-top: 0.2rem; }
.card__lead { color: var(--body); }
.card__list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.2rem; }
.card__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--body);
  font-size: 0.95rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 6px; height: 6px;
  border-top: 1.5px solid rgba(217, 164, 65, 0.85);
  border-right: 1.5px solid rgba(217, 164, 65, 0.85);
  transform: rotate(45deg);
}
.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card__cta { margin-top: auto; }


/* practice cards (home) */
.practice { min-height: 100%; }
.practice .card__list { margin-bottom: 1.2rem; }

/* ---------- Situations we step into ---------- */
.situations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.situation {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--body);
  font-size: 0.97rem;
  line-height: 1.6;
}
.situation strong { color: var(--white); font-weight: 600; }
.situation__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  margin-top: 0.15rem;
}
.situation p { margin: 0; }
@media (max-width: 820px) { .situations { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 1.8rem clamp(1.2rem, 2.5vw, 2.2rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat__num .accent { color: var(--gold); }
.stat__label {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-inline: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; }
  .stat:first-child { border-top: none; }
}

/* ---------- Expanding rail (value chain / engagement / method steps) ----------
   One bar of steps; the open segment widens and reveals its one-line
   explanation, the spotlight auto-advances, hover/click/focus holds. */
.segbar { display: flex; gap: 0.6rem; min-height: 175px; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.segbar__seg {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--ink-3);
  border-radius: 14px;
  padding: 1.1rem 1.05rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: flex-grow 0.55s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  overflow: hidden;
}
.segbar__seg.open { flex-grow: 2.6; border-color: var(--gold-line); background: var(--gold-soft); }
.segbar__num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--gold); }
.segbar__title { font-family: var(--font-display); font-weight: 600; font-size: 0.97rem; color: var(--white); margin-top: 0.55rem; line-height: 1.3; }
.segbar__hint {
  font-size: 0.84rem;
  color: var(--body);
  line-height: 1.5;
  margin-top: 0.6rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.15s;
}
.segbar__seg.open .segbar__hint { opacity: 1; }
.segbar__seg:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 760px) {
  .segbar { flex-direction: column; min-height: 0; }
  .segbar__seg.open { flex-grow: 1; }
  .segbar__hint { opacity: 1; }
}

/* ---------- Descent timeline (method) ---------- */
.descent {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-left: clamp(2rem, 5vw, 3.5rem);
}
.descent::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(217, 164, 65, 0.18);
}
/* the glowing portion of the flight line — height driven by scroll */
.descent::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 2px;
  height: var(--descent-progress, 0%);
  max-height: calc(100% - 16px);
  background: linear-gradient(180deg, rgba(217,164,65,0.55), var(--gold));
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.55);
  border-radius: 2px;
}
.descent__stage { position: relative; max-width: 720px; }
/* hollow arrowhead pointing down the flight line */
.descent__stage::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2rem, 5vw, 3.5rem) + 1px);
  top: 4px;
  width: 10px; height: 10px;
  border-right: 2px solid rgba(217, 164, 65, 0.35);
  border-bottom: 2px solid rgba(217, 164, 65, 0.35);
  transform: rotate(45deg);
  background: var(--ink);
  transition: border-color 0.5s var(--ease), filter 0.5s var(--ease);
}
.descent__stage.lit::before {
  border-color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.7));
}
.descent__stage .descent__output { transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.descent__stage.lit .descent__output {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(217, 164, 65, 0.22);
}
.descent__stage .h3 { margin: 0.7rem 0 0.7rem; font-size: 1.45rem; }
.descent__output {
  margin-top: 1rem;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  padding: 0.55em 0.9em;
}

/* ---------- Pillars (method principles) ---------- */
.pillar { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pillar .h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.pillar p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Rows (insights) ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  padding: 1.7rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}
.row:hover { background: var(--ink-2); }
.row__body { display: block; transition: transform 0.45s var(--ease); }
.row:hover .row__body { transform: translateX(6px); }
.row__body .h3 { display: block; }
.row__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.row__body .h3 { font-size: 1.15rem; margin-bottom: 0.35rem; transition: color 0.3s; }
.row:hover .row__body .h3 { color: var(--gold); }
.row__body p { font-size: 0.93rem; color: var(--muted); max-width: 52em; }
.row__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 0.5rem; }
  .row__meta { order: -1; }
}

/* ---------- Checklist ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2.5rem; max-width: 860px; }
.checklist li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.5em;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  opacity: 0.85;
  transform: rotate(45deg);
}
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Image band / CTA ---------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 12vw, 10rem);
  text-align: center;
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11,14,20,0.62) 30%, rgba(11,14,20,0.62) 70%, var(--ink) 100%);
}
.band .h2 { max-width: 18em; margin-inline: auto; }
.band .lead { margin: 1.2rem auto 0; }
.band__actions { margin-top: 2.4rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.band .eyebrow { justify-content: center; }
.band .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold-line);
}

/* ---------- Split (about / contact layouts) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* definition list (about) */
.deflist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .deflist { grid-template-columns: 1fr; } }
.deflist__item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  background: var(--ink-3);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.deflist__item:hover {
  border-color: var(--gold-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 0 26px rgba(217, 164, 65, 0.10);
}
.deflist__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.deflist__item p { font-size: 0.92rem; color: var(--muted); }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
}
.tags li.gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }

/* filter pills (insights) */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filters button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.filters button:hover { border-color: var(--gold-line); color: var(--white); }
.filters button.gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }

/* quote */
.quote {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--white);
  letter-spacing: -0.01em;
}
.quote figcaption {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85em 1em;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.form__note { font-size: 0.8rem; color: var(--muted); }
.form__note a { color: var(--body); text-decoration: underline; }
.form__success {
  display: none;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--white);
  font-size: 0.95rem;
}
.form__success.show { display: block; }

/* contact info list */
.infolist { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem; }
.infolist li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.9rem;
}
.infolist .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 90px;
}
.infolist .v { color: var(--white); font-size: 0.98rem; }
.infolist a.v:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__tag { margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); max-width: 30em; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { font-size: 0.92rem; color: var(--body); transition: color 0.3s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--white); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .row, .row__body, .deflist__item { transition: none; }
  .card::after, .deflist__item::after { display: none; }
  .descent::after { height: 100%; }
  .descent__stage::before { border-color: var(--gold); }
}

/* ---------- Cookie bar ---------- */
.cookiebar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 300;
  width: min(680px, calc(100% - 2rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: rgba(16, 20, 29, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.cookiebar p { font-size: 0.88rem; color: var(--body); flex: 1 1 320px; margin: 0; }
.cookiebar a { color: var(--gold); text-decoration: underline; }
.cookiebar .btn { padding: 0.65em 1.4em; font-size: 0.88rem; }

/* skip link */
.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--gold);
  color: #131007;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.7em 1.2em;
  border-radius: 0 0 10px 0;
}
.skiplink:focus { left: 0; }

/* prose pages (privacy, terms) */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}
.prose p, .prose li { color: var(--body); font-size: 0.98rem; margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose ul li { list-style: disc; margin-bottom: 0.5rem; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   LIGHT THEME — default. `data-theme-resolved` is set on <html>
   before first paint (hardcoded in markup + boot script).
   Base rules above remain the dark palette.
   ========================================================= */
html[data-theme-resolved="light"] {
  color-scheme: light;
  --ink:      #F5F6FA;   /* page base — cool paper */
  --ink-2:    #ECEFF5;   /* raised band */
  --ink-3:    #FFFFFF;   /* card surface */
  --line:      rgba(11, 25, 43, 0.13);
  --line-soft: rgba(11, 25, 43, 0.07);
  --white:    #0F2338;   /* heading ink — brand navy */
  --body:     #3D4A5E;
  --muted:    #5F6C80;
  --gold:      #A9791F;  /* darkened for contrast on paper */
  --gold-soft: rgba(169, 121, 31, 0.10);
  --gold-line: rgba(150, 105, 25, 0.45);
  --ghost-line: rgba(11, 25, 43, 0.30);
  --pos:      #2E7D52;   /* text-safe green on paper */
  --pos-soft: rgba(46, 125, 82, 0.10);
  --pos-line: rgba(46, 125, 82, 0.45);
}
html[data-theme-resolved="light"] ::selection { background: #A9791F; color: #fff; }
html[data-theme-resolved="light"] .nav--scrolled { background: rgba(245, 246, 250, 0.86); }
html[data-theme-resolved="light"] .card:hover {
  box-shadow: 0 14px 34px rgba(11, 25, 43, 0.10), 0 0 0 1px rgba(150, 105, 25, 0.08);
}
html[data-theme-resolved="light"] .deflist__item:hover {
  box-shadow: 0 12px 28px rgba(11, 25, 43, 0.10);
}
html[data-theme-resolved="light"] .cookiebar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 50px rgba(11, 25, 43, 0.18);
}
/* evidence section reads as a white band on the paper ground */
html[data-theme-resolved="light"] .section--light { background: #FFFFFF; }
/* filled buttons keep the bright brand gold — the darkened gold is
   only needed where gold is used as text on the paper ground */
html[data-theme-resolved="light"] .btn--gold { background: #D9A441; }

/* image-led sections keep the night palette in both themes:
   photography, scrims and the gold mesh stay as designed, and the
   copy on top stays light. The hero's bottom scrim still ends at
   var(--ink), so the photo dissolves into whichever page ground
   the theme uses. */
.hero:has(.hero__bg), .band {
  --white: #F2F5F9;
  --body:  #B9C2CF;
  --muted: #8A94A6;
  --gold:      #D9A441;
  --gold-soft: rgba(217, 164, 65, 0.14);
  --gold-line: rgba(217, 164, 65, 0.35);
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ghost-line: rgba(255, 255, 255, 0.25);
}
/* the hero's own ground stays night-dark so its bottom scrim never
   washes the copy out on the light page; the section simply ends and
   the paper ground begins */
.hero:has(.hero__bg) { --ink: #0B0E14; background: var(--ink); }

/* nav floating over an image hero keeps light text until it gains
   its glass background on scroll */
html[data-theme-resolved="light"] body:has(.hero .hero__bg) .nav:not(.nav--scrolled) {
  --white: #F2F5F9;
  --body:  #C9D2DE;
  --muted: #8A94A6;
  --gold:      #D9A441;
  --gold-soft: rgba(217, 164, 65, 0.14);
  --gold-line: rgba(217, 164, 65, 0.35);
  --line:      rgba(255, 255, 255, 0.20);
  --line-soft: rgba(255, 255, 255, 0.12);
}

/* brand mark swaps with the ground it sits on */
.brand__mark--navy { display: none; }
html[data-theme-resolved="light"] .brand__mark--navy { display: block; }
html[data-theme-resolved="light"] .brand__mark--white { display: none; }
html[data-theme-resolved="light"] body:has(.hero .hero__bg) .nav:not(.nav--scrolled) .brand__mark--white { display: block; }
html[data-theme-resolved="light"] body:has(.hero .hero__bg) .nav:not(.nav--scrolled) .brand__mark--navy { display: none; }

/* ---------- Theme switch ---------- */
.themeswitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.themeswitch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.themeswitch button:hover { color: var(--white); }
.themeswitch button.active { color: var(--gold); background: var(--gold-soft); }
.mnav .themeswitch { align-self: flex-start; margin-bottom: 1.6rem; }

/* =========================================================
   EVIDENCE FIGURES — inline infographics. All colors come from
   theme variables so every figure restyles itself per theme.
   ========================================================= */
.figpanel { margin: 0; }
.figure__caption {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40em;
}
.figlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.figlegend span { display: inline-flex; align-items: center; gap: 0.55em; }
.figlegend i {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.55;
}
.figlegend .key--gold i { background: var(--gold); opacity: 1; }
.fig-scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.fig-scroll::-webkit-scrollbar { display: none; }
.fig-scroll > svg { display: block; width: 100%; height: auto; }
.fig-scroll--wide > svg { min-width: 680px; }

/* shared SVG chart text: Sora labels, body-colored */
.chart text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  fill: var(--muted);
}
.chart .chart__axislabel { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.chart .chart__strong { fill: var(--white); font-weight: 600; }
.chart .chart__gold { fill: var(--gold); }
.chart .chart__note { font-family: var(--font-body); font-weight: 400; font-size: 12.5px; }

/* ---------- 2x2 value / difficulty matrix (HTML) ---------- */
.matrixwrap { display: flex; gap: 0.9rem; max-width: 560px; }
.matrixwrap__col { flex: 1; min-width: 0; }
.matrix {
  position: relative;
  aspect-ratio: 13 / 10;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-image:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.matrix::before {
  content: "";
  position: absolute;
  inset: 0 50% 50% 0;
  background: var(--pos-soft);
  border-radius: 13px 0 0 0;
  transition: background 0.3s;
}
.matrix:hover::before { background: color-mix(in srgb, var(--pos) 16%, transparent); }
@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .matrix:hover::before { background: var(--pos-soft); }
}
.matrix__label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.matrix__label small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.matrix__label--pursue { top: 0.9rem; left: 1.1rem; color: var(--pos); }
.matrix__label--pilot { top: 0.9rem; right: 1.1rem; text-align: right; color: var(--gold); }
.matrix__label--defer { bottom: 0.9rem; left: 1.1rem; }
.matrix__label--avoid { bottom: 0.9rem; right: 1.1rem; text-align: right; }
/* dots: a 24px hit area with the visible dot inside, so hover and the
   use-case tooltip are easy to reach */
.matrix__dot {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: default;
}
.matrix__dot::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.matrix__dot--pos::before {
  background: var(--pos);
  opacity: 1;
  box-shadow: 0 0 0 5px var(--pos-soft);
}
.matrix__dot--pilot::before {
  background: var(--gold);
  opacity: 1;
  box-shadow: 0 0 0 5px var(--gold-soft);
}
.matrix__dot:hover::before { transform: translate(-50%, -50%) scale(1.45); opacity: 1; }
/* use-case tooltip */
.matrix__dot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%) translateY(3px);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--white);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35em 0.75em;
  box-shadow: 0 8px 20px rgba(9, 13, 22, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}
.matrix__dot:hover::after,
.matrix__dot.show::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.matrix__dot.show::before { transform: translate(-50%, -50%) scale(1.45); opacity: 1; }
/* dots pop in one after another when the figure reveals */
.reveal .matrix__dot::before { scale: 0; }
.reveal.in .matrix__dot::before { animation: dotpop 0.5s var(--ease) both; }
.reveal.in .matrix__dot:nth-of-type(1)::before { animation-delay: 0.15s; }
.reveal.in .matrix__dot:nth-of-type(2)::before { animation-delay: 0.25s; }
.reveal.in .matrix__dot:nth-of-type(3)::before { animation-delay: 0.35s; }
.reveal.in .matrix__dot:nth-of-type(4)::before { animation-delay: 0.45s; }
.reveal.in .matrix__dot:nth-of-type(5)::before { animation-delay: 0.55s; }
.reveal.in .matrix__dot:nth-of-type(6)::before { animation-delay: 0.65s; }
.reveal.in .matrix__dot:nth-of-type(7)::before { animation-delay: 0.75s; }
.reveal.in .matrix__dot:nth-of-type(8)::before { animation-delay: 0.85s; }
.reveal.in .matrix__dot:nth-of-type(9)::before { animation-delay: 0.95s; }
@keyframes dotpop { from { scale: 0; } 70% { scale: 1.25; } to { scale: 1; } }
.matrix__axis {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.matrix__axis--y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
}
.matrix__axis--x { display: block; text-align: center; margin-top: 0.8rem; }

/* ---------- deal-stall line (sellers) ---------- */
.stall-line { stroke: var(--muted); stroke-width: 2; fill: none; opacity: 0.75; }
.stall-line--drop { stroke-dasharray: 5 6; opacity: 0.55; }
.stall-gold { stroke: var(--gold); stroke-width: 2.5; fill: none; }
.stall-grid { stroke: var(--line-soft); stroke-width: 1; }
.stall-base { stroke: var(--line); stroke-width: 1; }
.stall-node { fill: var(--gold); }
.stall-node--halo { fill: var(--gold-soft); }
.stall-end { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: 0.7; }
/* the gold path draws itself when the figure reveals */
.reveal .stall-gold[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .stall-gold[pathLength] { animation: stalldraw 1.6s var(--ease) 0.35s both; }
@keyframes stalldraw { to { stroke-dashoffset: 0; } }

/* ---------- readiness radar ---------- */
.radar-ring { fill: none; stroke: var(--line-soft); }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-scale { font-size: 10px !important; fill: var(--muted); opacity: 0.75; }
.radar-today { fill: var(--muted); fill-opacity: 0.16; stroke: var(--muted); stroke-width: 1.5; opacity: 0.9; }
.radar-target { fill: var(--pos); fill-opacity: 0.10; stroke: var(--pos); stroke-width: 2; }
.radar-vertex { fill: var(--pos); transition: transform 0.25s var(--ease); transform-box: fill-box; transform-origin: center; }
.radar-vertex--today { fill: var(--muted); }
.radar-vertex:hover { transform: scale(1.7); }
.radar-axisgroup { cursor: default; }
.radar-axisgroup:hover .chart__strong { fill: var(--pos); }
/* polygons grow out of the centre when the figure reveals */
.reveal .radar-poly {
  opacity: 0;
  transform: scale(0.55);
  transform-box: view-box;
  transform-origin: 50% 52%;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal .radar-poly--target { transition-delay: 0.2s; }
.reveal.in .radar-poly { opacity: 1; transform: scale(1); }
.radar-legend line { stroke-width: 3; stroke-linecap: round; }

/* ---------- vertical tabs (replaces the rotator) ---------- */
.vtabs { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 900px; }
.vtabs__list { display: none; flex-direction: column; border-left: 1px solid var(--line); align-self: start; }
.vtabs--ready .vtabs__list { display: flex; }
.vtabs__list button {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.7rem 1.1rem;
  position: relative;
  transition: color 0.3s;
}
.vtabs__list button::before {
  content: "";
  position: absolute;
  left: -1px; top: 20%; bottom: 20%;
  width: 2px;
  background: transparent;
  transition: background 0.3s;
}
.vtabs__list button:hover { color: var(--white); }
.vtabs__list button.active { color: var(--gold); }
.vtabs__list button.active::before { background: var(--gold); }
/* no-JS and pre-init: all items visible, stacked */
.vtabs__item { margin-bottom: 1.4rem; }
.vtabs--ready .vtabs__item { display: none; margin-bottom: 0; }
.vtabs--ready .vtabs__item.active { display: block; animation: vfade 0.5s var(--ease); }
@keyframes vfade { from { opacity: 0; transform: translateY(10px); } }
.vtabs__item .h3 { margin-bottom: 0.7rem; }
.vtabs__item p { color: var(--muted); max-width: 44em; }
@media (max-width: 720px) { .vtabs { grid-template-columns: 1fr; } }

/* ---------- before / after outcomes ---------- */
.beforeafter { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: stretch; max-width: 980px; }
.ba-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.2rem; }
.ba-col--after { border-color: var(--pos-line); background: var(--pos-soft); }
.ba-col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.ba-col--after h3 { color: var(--pos); }
.ba-col ul li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
  color: var(--body);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--line-soft);
}
.ba-col ul li:last-child { border-bottom: none; }
.ba-col--before li::before {
  content: "";
  position: absolute; left: 2px; top: 1.05em;
  width: 9px; height: 9px;
  background:
    linear-gradient(45deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%);
  color: var(--muted);
  opacity: 0.8;
}
.ba-col--after li::before {
  content: "";
  position: absolute; left: 0; top: 0.95em;
  width: 6px; height: 10px;
  border-right: 2px solid var(--pos);
  border-bottom: 2px solid var(--pos);
  transform: rotate(40deg);
}
.ba-arrow { display: grid; place-items: center; color: var(--gold); }
@media (max-width: 760px) {
  .beforeafter { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); padding: 0.2rem 0; }
}

/* ---------- artefact document thumbnails ---------- */
.artefact-thumb {
  width: 88px;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(9, 13, 22, 0.28);
}
html[data-theme-resolved="light"] .artefact-thumb { box-shadow: 0 10px 24px rgba(11, 25, 43, 0.16); }
.artefact-thumb svg { display: block; width: 100%; height: auto; border-radius: 8px; }

/* =========================================================
   MOBILE REFINEMENTS — tighter type, smaller cards, compact
   chrome. Interactive figures switch to touch/scroll behaviour
   (segbar scroll-lit, matrix dots tappable) in main.js.
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .h1 { font-size: clamp(2.05rem, 8.6vw, 2.5rem); }
  .h2 { font-size: clamp(1.45rem, 6.4vw, 1.75rem); }
  .h3 { font-size: 1.12rem; }
  .lead { font-size: 1rem; }
  .eyebrow { font-size: 0.66rem; }
  .section { padding-block: 3.4rem; }
  .section--tight { padding-block: 2.4rem; }
  .section-head { margin-bottom: 2rem; }

  .nav { padding-block: 0.75rem; }
  .brand { transform: scale(0.85); transform-origin: left center; }
  .mnav__links a { font-size: clamp(1.5rem, 6.5vw, 2rem); }

  .card { padding: 1.25rem 1.15rem; gap: 0.75rem; border-radius: 14px; }
  .card__lead { font-size: 0.95rem; }
  .card__list li { font-size: 0.88rem; }
  .grid { gap: 0.85rem; }
  .deflist__item { padding: 1.2rem 1.25rem; }

  .hero__inner { padding-bottom: 2.4rem; }
  .hero__actions { margin-top: 1.8rem; gap: 0.7rem; }
  .btn--lg { padding: 0.9em 1.5em; font-size: 0.93rem; }
  .fieldstrip { margin-top: 2rem; gap: 0.5rem 1.6rem; }

  .stat__num { font-size: 2.1rem; }
  .stat { padding-top: 1.1rem; }
  .band { padding-block: 4.2rem; }

  .segbar__seg { padding: 0.95rem 1rem; }
  .segbar__title { font-size: 0.93rem; }
  .segbar__hint { font-size: 0.82rem; }
  .vtabs { gap: 1.2rem; }
  .vtabs__list button { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
  .ba-col { padding: 1.25rem 1.2rem 1rem; }

  /* charts scale down with their viewBox, so grow the SVG type to
     keep labels legible at phone width */
  .chart text { font-size: 15.5px; }
  .chart .chart__axislabel { font-size: 14px; }
  .chart .chart__note { font-size: 14.5px; }
  .radar-scale { font-size: 12px !important; }
  .matrixwrap { max-width: none; }
  .matrix__label { font-size: 0.84rem; }
  .matrix__label small { font-size: 0.62rem; }
  .figure__caption { font-size: 0.8rem; }
  .artefact-thumb { width: 70px; }

  .footer__grid { gap: 1.8rem; padding-bottom: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal .stall-gold[pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; }
  .reveal.in .stall-gold[pathLength] { animation: none; }
  .reveal .matrix__dot::before { scale: 1; }
  .reveal.in .matrix__dot::before { animation: none; }
  .reveal .radar-poly { opacity: 1; transform: none; transition: none; }
  .matrix__dot:hover::before, .radar-vertex:hover { transform: translate(-50%, -50%); }
  .radar-vertex:hover { transform: none; }
  .vtabs--ready .vtabs__item.active { animation: none; }
  .segbar__seg { transition: border-color 0.45s, background 0.45s; }
  .segbar__hint { opacity: 1; transition: none; }
}
