/* =====================================================================
   Food security 2026 — "The Movement"
   A cascade simulator: seed a movement, protect your first followers,
   reach the 25% tipping point across a field of 200 dots — then it tips
   on its own. House style: AxiaOrigin × ValuesMove (see ../../CLAUDE.md).
   Vanilla CSS, no dependencies.
   ===================================================================== */

:root {
  /* Palette — balanced between both brands (§3) */
  --aubergine: #2A2140;   /* banner spine + the dark simulator canvas */
  --crimson:   #FC2454;   /* AxiaOrigin accent — shared chrome + committed followers + the meter */
  --purple:    #90489C;   /* ValuesMove accent — equal weight (why tab, evidence rule) */
  --sky:       #00B4E4;   /* interaction: focus rings + the "warming" waverers + weak ties */
  --paper:     #F7F3EE;   /* soft warm tone — subtle fills */
  --page:      #EEEAE3;   /* page canvas — warm neutral */
  --surface:   #FFFFFF;   /* elevated surfaces: banner */
  --ink:       #241F2B;   /* body text */
  --ink-soft:  #5C5666;   /* secondary text */
  --hairline:  color-mix(in srgb, var(--ink) 14%, transparent);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1100px;
  --banner-h: 92px;       /* measured & overwritten by JS for the one-screen game */
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }   /* the attribute must win over flex/grid display */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ol, ul, figure { margin: 0; }

/* Accessibility — skip link + focus rings (§12) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  padding: 0.6rem 1rem; background: var(--surface); color: var(--ink);
  border-radius: 0 0 6px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible,
input:focus-visible,
button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

.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;
}

/* =====================================================================
   BANNER (§5)
   ===================================================================== */
.banner {
  position: relative; z-index: 50; background: var(--surface);
  box-shadow: 0 8px 24px -10px rgba(36, 31, 43, 0.20), 0 2px 6px -3px rgba(36, 31, 43, 0.10);
}
.banner__spine { height: 4px; background: var(--aubergine); }

.banner__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
}

.banner__home {
  position: absolute; left: clamp(1rem, 4vw, 2rem); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem;
  font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  background: transparent; border: 1px solid var(--hairline); border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.banner__home:hover {
  color: var(--crimson);
  border-color: color-mix(in srgb, var(--crimson) 45%, var(--hairline));
}
.banner__home-icon { width: 17px; height: 17px; flex: 0 0 auto; }

.banner__lockup { display: flex; align-items: center; gap: clamp(1.1rem, 4vw, 2.6rem); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; transition: opacity 0.15s ease; }
.brand:hover img { opacity: 0.78; }
.brand--axia   img { height: 28px; }
.brand--values img { height: 36px; }
.brand-divider { width: 1px; height: 34px; background: var(--hairline); }

/* "Why we do this" tab (§14) */
.banner__why {
  position: absolute; right: clamp(1rem, 3vw, 2rem); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1rem; border: 0; border-radius: 999px;
  --why-shadow: 0 6px 18px -6px color-mix(in srgb, var(--crimson) 55%, transparent);
  background: linear-gradient(135deg, var(--crimson), var(--purple));
  color: #fff; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: var(--why-shadow);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.banner__why:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--crimson) 62%, transparent); }
.banner__why-chevron { width: 15px; height: 15px; flex: 0 0 auto; transition: transform 0.3s ease; }
.banner__why[aria-expanded="true"] .banner__why-chevron { transform: rotate(180deg); }
@keyframes whyPulse {
  0%   { box-shadow: var(--why-shadow), 0 0 0 0   color-mix(in srgb, var(--crimson) 50%, transparent); }
  70%  { box-shadow: var(--why-shadow), 0 0 0 13px color-mix(in srgb, var(--crimson) 0%, transparent); }
  100% { box-shadow: var(--why-shadow), 0 0 0 0   color-mix(in srgb, var(--crimson) 0%, transparent); }
}
.banner__why.is-hint { animation: whyPulse 1.5s ease-out 0s 3; }

.why-drawer {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--aubergine);
  box-shadow: 0 24px 40px -18px rgba(36, 31, 43, 0.55);
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s ease; z-index: 49;
}
.banner.is-why-open .why-drawer { grid-template-rows: 1fr; }
.why-drawer__clip { overflow: hidden; }
.why-drawer__content { position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.9rem, 5vw, 2.9rem) clamp(1.5rem, 4vw, 2.6rem); }
.why-drawer__content h2 { margin: 0 0 1rem; font-family: var(--font-head); font-optical-sizing: auto;
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem); font-weight: 600; color: var(--surface); }
.why-drawer__content p { margin: 0 0 0.9rem; max-width: 66ch; line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem); color: color-mix(in srgb, var(--paper) 82%, var(--aubergine)); }
.why-drawer__content p:last-child { margin-bottom: 0; }
.why-drawer__content strong { color: var(--surface); font-weight: 600; }
.why-drawer__content em { font-style: italic; color: color-mix(in srgb, var(--paper) 92%, var(--aubergine)); }
.why-drawer__close { position: absolute; top: clamp(1rem, 2.5vw, 1.5rem); right: clamp(1rem, 3vw, 1.8rem);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--paper) 32%, transparent); background: transparent;
  color: color-mix(in srgb, var(--paper) 75%, var(--aubergine)); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.why-drawer__close svg { width: 20px; height: 20px; }
.why-drawer__close:hover { color: #fff; border-color: var(--crimson); background: color-mix(in srgb, var(--crimson) 24%, transparent); }

/* =====================================================================
   THE SIMULATOR — dark aubergine canvas (§3), one screen on desktop
   ===================================================================== */
.sim {
  --on-dark:       var(--surface);
  --on-dark-body:  color-mix(in srgb, var(--paper) 80%, var(--aubergine));
  --on-dark-quiet: color-mix(in srgb, var(--paper) 58%, var(--aubergine));
  --on-dark-line:  color-mix(in srgb, var(--paper) 18%, transparent);

  color: var(--on-dark-body);
  /* layered depth: a soft purple glow up top + a crimson ember low, over deep aubergine, with a vignette */
  background:
    radial-gradient(120% 80% at 50% -8%, color-mix(in srgb, var(--purple) 26%, transparent), transparent 62%),
    radial-gradient(90% 60% at 50% 118%, color-mix(in srgb, var(--crimson) 12%, transparent), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, color-mix(in srgb, #000 34%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, #000 6%, var(--aubergine)), color-mix(in srgb, #000 20%, var(--aubergine)));
  padding: clamp(1.4rem, 3vw, 2rem) 1.5rem clamp(1.6rem, 3.5vw, 2.4rem);
}
.sim__inner { max-width: 780px; margin: 0 auto; width: 100%; }

/* ---- the counter ---- */
.counter { width: 100%; max-width: 640px; margin: 0 auto; }
.counter__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.counter__figures { display: flex; align-items: baseline; gap: 0.55rem; }
.counter__num {
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 0.9; color: var(--surface);
  text-shadow: 0 0 26px color-mix(in srgb, var(--crimson) 40%, transparent);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.counter.is-tipped .counter__num { color: color-mix(in srgb, var(--surface) 82%, var(--crimson));
  text-shadow: 0 0 34px color-mix(in srgb, var(--crimson) 62%, transparent); }
.counter__meta { display: flex; flex-direction: column; line-height: 1.15; }
.counter__of { font-size: 0.78rem; color: var(--on-dark-quiet); }
.counter__pct {
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 1.02rem; color: color-mix(in srgb, var(--surface) 80%, var(--crimson));
}
.howto {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; min-height: 36px;
  font-size: 0.82rem; color: var(--on-dark-body); background: color-mix(in srgb, var(--surface) 6%, transparent);
  border: 1px solid var(--on-dark-line); border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.howto svg { width: 16px; height: 16px; }
.howto:hover { color: var(--surface); border-color: color-mix(in srgb, var(--sky) 60%, transparent);
  background: color-mix(in srgb, var(--sky) 12%, transparent); }

.counter__track {
  position: relative; height: 14px; border-radius: 999px;
  background: color-mix(in srgb, #000 28%, var(--aubergine));
  border: 1px solid var(--on-dark-line);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.45);
}
.counter__fill {
  height: 100%; border-radius: 999px; min-width: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--crimson) 62%, #000), var(--crimson) 72%, color-mix(in srgb, var(--crimson) 55%, var(--sky)));
  box-shadow: 0 0 18px -1px color-mix(in srgb, var(--crimson) 78%, transparent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.counter__flag { position: absolute; top: -5px; bottom: -5px; left: 25%; width: 2px;
  background: color-mix(in srgb, var(--paper) 62%, transparent); border-radius: 2px; }
.counter__flag::before { content: ""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 78%, transparent); }
.counter__flag span {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-quiet);
}
.counter:not(.is-tipped) .counter__flag::before { animation: flagPulse 2s ease-in-out infinite; }
@keyframes flagPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--paper) 55%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper) 0%, transparent); }
}
.counter.is-tipped .counter__flag { background: color-mix(in srgb, var(--crimson) 70%, transparent); }
.counter.is-tipped .counter__flag span { color: color-mix(in srgb, var(--surface) 78%, var(--crimson)); }

/* ---- the 200-dot field (seamless, no card) ---- */
.field { position: relative; margin: clamp(0.9rem, 2.5vh, 1.4rem) auto 0; width: 100%; }
.field__canvas { display: block; width: 100%; aspect-ratio: 4 / 3.2; height: auto; }
.field__tag {
  position: absolute; right: 0.2rem; bottom: 0.1rem;
  font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 42%, var(--aubergine)); pointer-events: none;
}

/* ---- live narration + tips ---- */
.sim__narrate {
  text-align: center; max-width: 52ch; margin: clamp(0.9rem, 2.5vh, 1.4rem) auto 0; min-height: 2.7em;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(1.05rem, 0.94rem + 0.55vw, 1.34rem); line-height: 1.3; color: var(--on-dark);
  transition: opacity 0.25s ease;
}
.sim__narrate strong { color: var(--crimson); font-weight: 600; }
.sim__narrate em { font-style: normal; color: color-mix(in srgb, var(--surface) 78%, var(--sky)); }
.sim__narrate.is-tip {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  color: color-mix(in srgb, var(--surface) 74%, var(--sky));
}
.sim__narrate.is-tip::before {
  content: "Tip"; margin-right: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.1em;
  color: var(--aubergine); background: color-mix(in srgb, var(--sky) 78%, #fff);
}

/* ---- the action console ---- */
.console { width: 100%; max-width: 640px; margin: clamp(0.9rem, 2.5vh, 1.4rem) auto 0; }
.console__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.7rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-quiet);
}
.console__round b, .console__points b { color: var(--on-dark); }
.console__points { display: inline-flex; align-items: center; gap: 0.5rem; }
.pips { display: inline-flex; gap: 4px; }
.pips i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson); box-shadow: 0 0 8px -1px color-mix(in srgb, var(--crimson) 70%, transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pips i.is-spent { background: color-mix(in srgb, var(--paper) 20%, transparent); box-shadow: none; transform: scale(0.82); }

.tactics { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
.tactic {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 0.65rem; row-gap: 0.1rem;
  min-height: 44px; padding: 0.7rem 0.85rem; text-align: left; cursor: pointer;
  border: 1px solid var(--on-dark-line); border-radius: 13px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--surface) 5%, transparent), transparent 60%),
    color-mix(in srgb, #000 6%, var(--aubergine));
  color: var(--on-dark); font-family: var(--font-body);
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.tactic:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--crimson) 55%, transparent);
  box-shadow: 0 12px 26px -16px rgba(0,0,0,0.8), 0 0 20px -8px color-mix(in srgb, var(--crimson) 50%, transparent);
}
.tactic:active:not(:disabled) { transform: translateY(0); }
.tactic:disabled { opacity: 0.4; cursor: not-allowed; }
.tactic__icon { grid-row: 1 / 3; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--crimson);
  border-radius: 9px; background: color-mix(in srgb, var(--crimson) 14%, transparent); }
.tactic[data-tactic="signal"] .tactic__icon { color: var(--sky); background: color-mix(in srgb, var(--sky) 14%, transparent); }
.tactic[data-tactic="protect"] .tactic__icon { color: color-mix(in srgb, var(--crimson) 55%, var(--purple));
  background: color-mix(in srgb, var(--purple) 16%, transparent); }
.tactic--special .tactic__icon { color: color-mix(in srgb, var(--sky) 60%, var(--purple));
  background: color-mix(in srgb, var(--purple) 18%, transparent); }
.tactic__icon svg { width: 19px; height: 19px; }
.tactic__name { font-size: 0.96rem; font-weight: 600; color: var(--on-dark); }
.tactic__desc { grid-column: 2; font-size: 0.76rem; line-height: 1.35; color: var(--on-dark-body); }
.tactic__cost { display: none; }   /* keep the console compact for one screen */

/* the "New" flag on the rotating 4th tactic */
.tactic__new {
  position: absolute; top: -7px; right: 10px; padding: 0.12rem 0.5rem; border-radius: 999px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--crimson), var(--purple));
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--crimson) 60%, transparent); display: none;
}
.tactic--special.is-fresh .tactic__new { display: inline-block; }
.tactic--special.is-fresh { border-color: color-mix(in srgb, var(--sky) 50%, transparent);
  box-shadow: 0 0 22px -8px color-mix(in srgb, var(--sky) 55%, transparent); }

/* a quick flash when any tactic fires */
.tactic.is-fired { animation: tacticFire 0.4s ease; }
@keyframes tacticFire {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--crimson) 55%, transparent); }
  100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--crimson) 0%, transparent); }
}

.console__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 0.9rem; }
.btn-resolve, .btn-reset {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0.55rem 1.5rem;
  border-radius: 999px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-resolve {
  border: 0; color: #fff;
  background: linear-gradient(135deg, var(--crimson), color-mix(in srgb, var(--crimson) 68%, var(--purple)));
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--crimson) 75%, transparent);
}
.btn-resolve svg { width: 18px; height: 18px; }
.btn-resolve:hover:not(:disabled) { filter: brightness(1.07); }
.btn-resolve:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }
.btn-resolve.is-ready:not(:disabled) { animation: resolvePulse 1.6s ease-in-out infinite; }
@keyframes resolvePulse {
  0%, 100% { box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--crimson) 75%, transparent); }
  50% { box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--crimson) 92%, transparent); }
}
.btn-reset {
  background: color-mix(in srgb, var(--surface) 6%, transparent); color: var(--on-dark);
  border: 1px solid var(--on-dark-line);
}
.btn-reset svg { width: 17px; height: 17px; }
.btn-reset:hover { color: var(--crimson); border-color: color-mix(in srgb, var(--crimson) 60%, transparent);
  background: color-mix(in srgb, var(--crimson) 12%, transparent); }

/* =====================================================================
   EVIDENCE CALLOUT (dedicated) — quiet ground, giant typographic figure
   ===================================================================== */
/* shared: a small line icon in a tinted circle, used in section eyebrows */
.sec-ic { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px;
  border-radius: 50%; margin-right: 0.55rem; }
.sec-ic svg { width: 15px; height: 15px; }
.sec-ic--purple  { color: var(--purple);  background: color-mix(in srgb, var(--purple) 15%, transparent); }
.sec-ic--crimson { color: var(--crimson); background: color-mix(in srgb, var(--crimson) 13%, transparent); }

.evidence { padding: clamp(2.6rem, 7vw, 4.5rem) 1.5rem clamp(2.2rem, 5vw, 3.2rem); background: var(--page); }
.evidence__inner {
  max-width: 980px; margin: 0 auto;
  display: grid; gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--hairline); border-radius: 24px;
  background:
    radial-gradient(120% 130% at 14% 18%, color-mix(in srgb, var(--crimson) 8%, transparent), transparent 52%),
    radial-gradient(120% 130% at 92% 90%, color-mix(in srgb, var(--purple) 7%, transparent), transparent 55%),
    var(--surface);
  box-shadow: 0 34px 64px -44px rgba(36, 31, 43, 0.45);
}
@media (min-width: 780px) { .evidence__inner { grid-template-columns: auto 1fr; } }

.evidence__figure {
  display: flex; align-items: flex-start; justify-content: center;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  line-height: 0.9; color: var(--crimson); letter-spacing: -0.02em;
}
.evidence__approx { font-size: clamp(2.6rem, 1.5rem + 5vw, 4.4rem); margin-top: 0.28em; color: color-mix(in srgb, var(--crimson) 55%, var(--ink)); }
.evidence__num { font-size: clamp(6rem, 3rem + 16vw, 12rem); font-variant-numeric: tabular-nums; }
.evidence__pct { font-size: clamp(2.6rem, 1.5rem + 5vw, 4.4rem); margin-top: 0.28em; }

.evidence__body { max-width: 52ch; border-left: 3px solid color-mix(in srgb, var(--purple) 55%, transparent);
  padding-left: clamp(1.1rem, 3vw, 1.8rem); }
.evidence__eyebrow { display: inline-flex; align-items: center; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); }
.evidence__title {
  margin-top: 0.5rem; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.12; color: var(--ink);
}
.evidence__lead { margin-top: 0.9rem; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem); line-height: 1.6; color: var(--ink-soft); }
.evidence__lead strong { color: var(--crimson); font-weight: 700; }
.evidence__src { margin-top: 1.1rem; font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); }
.evidence__src a { color: var(--purple); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--purple) 40%, transparent); transition: color 0.15s ease, border-color 0.15s ease; }
.evidence__src a:hover { color: var(--crimson); border-color: var(--crimson); }

/* =====================================================================
   CASE STUDIES — three real UK movements, each opens a modal
   ===================================================================== */
.cases { padding: clamp(2.6rem, 7vw, 4.5rem) 1.5rem clamp(3rem, 8vw, 5rem);
  background: color-mix(in srgb, var(--aubergine) 5%, var(--paper));
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.cases__inner { max-width: var(--maxw); margin: 0 auto; }
.cases__eyebrow { display: inline-flex; align-items: center; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); }
.cases__title { margin-top: 0.4rem; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); line-height: 1.14; color: var(--ink); }
.cases__intro { margin-top: 0.6rem; max-width: 60ch; font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }

.cases__grid { list-style: none; margin: clamp(1.4rem, 4vw, 2.2rem) 0 0; padding: 0;
  display: grid; gap: clamp(0.8rem, 2vw, 1.2rem); grid-template-columns: repeat(3, 1fr); }
.case-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; width: 100%; height: 100%;
  padding: clamp(1.3rem, 2.5vw, 1.7rem); text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: 0 18px 40px -28px rgba(36,31,43,0.55);
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.case-card:hover { transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(36,31,43,0.6); border-color: color-mix(in srgb, var(--crimson) 40%, var(--hairline)); }
.case-card__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 0.3rem;
  color: var(--crimson); background: color-mix(in srgb, var(--crimson) 10%, transparent); }
.case-card__ic svg { width: 23px; height: 23px; }
.case-card[data-modal="modal-sfp"]  .case-card__ic { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); }
.case-card[data-modal="modal-wage"] .case-card__ic { color: var(--sky);    background: color-mix(in srgb, var(--sky) 12%, transparent); }
.case-card__jump { display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1; color: var(--crimson); }
.case-card__jump svg { width: 22px; height: 22px; color: color-mix(in srgb, var(--crimson) 60%, var(--purple)); }
.case-card__label { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.case-card__sub { font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft); }
.case-card__more { margin-top: auto; padding-top: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--purple);
  display: inline-flex; align-items: center; gap: 0.3rem; }
.case-card__more::after { content: "→"; transition: transform 0.15s ease; }
.case-card:hover .case-card__more { color: var(--crimson); }
.case-card:hover .case-card__more::after { transform: translateX(3px); }

.cases__note { margin: clamp(1.4rem, 4vw, 2rem) 0 0; max-width: 76ch; font-size: 0.82rem; line-height: 1.6; color: var(--ink-soft); }
.cases__note strong { color: var(--crimson); font-weight: 700; }

/* =====================================================================
   MODALS — intro/how-to-play + the three case studies (dark on aubergine)
   ===================================================================== */
.modal {
  --on-dark:       var(--surface);
  --on-dark-body:  color-mix(in srgb, var(--paper) 82%, var(--aubergine));
  --on-dark-quiet: color-mix(in srgb, var(--paper) 58%, var(--aubergine));
  --on-dark-line:  color-mix(in srgb, var(--paper) 20%, transparent);
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, #000 64%, var(--aubergine));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1; width: min(540px, 100%); min-width: 0; max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--on-dark-body);
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--purple) 24%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, #000 8%, var(--aubergine)), color-mix(in srgb, #000 22%, var(--aubergine)));
  border: 1px solid var(--on-dark-line); border-radius: 20px;
  box-shadow: 0 34px 80px -22px rgba(0,0,0,0.7);
  transform: translateY(14px) scale(0.98); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: clamp(0.9rem, 2.5vw, 1.3rem); right: clamp(0.9rem, 2.5vw, 1.3rem);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid var(--on-dark-line); background: transparent; color: var(--on-dark-quiet); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { color: #fff; border-color: var(--crimson); background: color-mix(in srgb, var(--crimson) 24%, transparent); }
.modal__eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--surface) 70%, var(--purple)); }
.modal__title { margin-top: 0.4rem; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.08; color: var(--surface); }
.modal__lede { margin-top: 0.8rem; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem); line-height: 1.5; color: var(--on-dark-body); }
.modal__lede em { font-style: normal; font-weight: 600; color: color-mix(in srgb, var(--surface) 80%, var(--crimson)); }

/* ---- intro popup: wider, two-column designed layout ---- */
.modal--wide .modal__box { width: min(720px, 100%); }
.guide__head { max-width: 60ch; }
.guide__head .modal__lede { margin-top: 0.7rem; }

/* three full-width cards stacked vertically; the wide box keeps each short */
.guide { margin-top: 0.8rem; display: grid; grid-template-columns: 1fr; gap: 0.42rem; }
.guide__block { min-width: 0; padding: 0.62rem 1.05rem; border-radius: 13px; overflow-wrap: break-word;
  background: color-mix(in srgb, #000 8%, var(--aubergine)); border: 1px solid var(--on-dark-line); }
.guide__h { margin: 0 0 0.4rem; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--surface) 66%, var(--sky)); }
.guide__block > p { margin: 0; font-size: 0.92rem; line-height: 1.48; color: var(--on-dark-body); }
.guide__sub { margin-bottom: 0.65rem !important; }
.guide b { color: var(--surface); font-weight: 600; }

/* goal mini-viz — echoes the in-game counter */
.goalviz { margin-top: 1.05rem; }
.goalviz__track { position: relative; height: 10px; border-radius: 999px;
  background: color-mix(in srgb, #000 26%, var(--aubergine)); border: 1px solid var(--on-dark-line); }
.goalviz__fill { position: absolute; inset: 0 auto 0 0; width: 25%; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--crimson) 60%, #000), var(--crimson));
  box-shadow: 0 0 12px -1px color-mix(in srgb, var(--crimson) 70%, transparent); }
.goalviz__flag { position: absolute; top: -4px; bottom: -4px; left: 25%; width: 2px;
  background: color-mix(in srgb, var(--paper) 66%, transparent); }
.goalviz__flag span { position: absolute; top: -1.45rem; left: 0; transform: translateX(-30%); white-space: nowrap;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; color: color-mix(in srgb, var(--surface) 78%, var(--crimson)); }
.goalviz__ticks { display: flex; justify-content: space-between; margin-top: 0.55rem;
  font-size: 0.66rem; font-variant-numeric: tabular-nums; color: var(--on-dark-quiet); }

/* tactics as icon rows (colours match the console) */
.guide__tactics { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.guide__tactics li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; line-height: 1.4; color: var(--on-dark-body); }
.guide__ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.guide__ic svg { width: 18px; height: 18px; }
.guide__ic--recruit { color: var(--crimson); background: color-mix(in srgb, var(--crimson) 15%, transparent); }
.guide__ic--protect { color: color-mix(in srgb, var(--crimson) 52%, var(--purple)); background: color-mix(in srgb, var(--purple) 16%, transparent); }
.guide__ic--signal { color: var(--sky); background: color-mix(in srgb, var(--sky) 15%, transparent); }

/* rules as number/warn chips */
.guide__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.guide__rules li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.65rem;
  font-size: 0.9rem; line-height: 1.4; color: var(--on-dark-body); }
.guide__chip { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-size: 0.85rem; color: var(--surface);
  background: color-mix(in srgb, var(--crimson) 22%, transparent); border: 1px solid color-mix(in srgb, var(--crimson) 40%, transparent); }
.guide__chip--warn { color: color-mix(in srgb, var(--surface) 80%, var(--sky));
  background: color-mix(in srgb, var(--sky) 18%, transparent); border-color: color-mix(in srgb, var(--sky) 40%, transparent); }

.modal__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.55rem; margin-top: 1rem;
  font-size: 0.9rem; color: var(--on-dark-quiet); }
.modal__stat b { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 1.7rem; line-height: 1; color: var(--crimson); }
.modal__stat span { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.modal__stat i { font-style: normal; font-size: 1.2rem; color: var(--on-dark-quiet); padding: 0 0.15rem; }
.modal__body { margin-top: 1rem; font-size: 1rem; line-height: 1.62; color: var(--on-dark-body); }
.modal__body b { color: var(--surface); font-weight: 600; }
.modal__frame { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--on-dark-line);
  font-size: 0.82rem; line-height: 1.5; font-style: italic; color: var(--on-dark-quiet); }
.modal__src { margin-top: 0.7rem; font-size: 0.82rem; color: var(--on-dark-quiet); }
.modal__src a { color: color-mix(in srgb, var(--surface) 82%, var(--purple)); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 26%, transparent); transition: color 0.15s ease, border-color 0.15s ease; }
.modal__src a:hover { color: var(--crimson); border-color: var(--crimson); }

.modal__cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1.05rem; min-height: 46px;
  padding: 0.65rem 1.8rem; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--crimson), color-mix(in srgb, var(--crimson) 68%, var(--purple)));
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--crimson) 70%, transparent);
  transition: filter 0.15s ease;
}
.modal__cta:hover { filter: brightness(1.07); }

/* =====================================================================
   CLOSING (§6)
   ===================================================================== */
.closing { padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(3.5rem, 9vw, 5.5rem); text-align: center;
  background: linear-gradient(180deg, var(--page) 0%, color-mix(in srgb, var(--aubergine) 13%, var(--page)) 100%); }
.closing__spark { display: inline-flex; color: var(--crimson); margin-bottom: clamp(1rem, 3vw, 1.5rem); }
.closing__spark svg { width: 46px; height: 46px; }
@media (prefers-reduced-motion: no-preference) {
  .closing__spark svg circle:nth-child(2) { transform-origin: center; animation: sparkRing 3.4s ease-out infinite; }
  .closing__spark svg circle:nth-child(3) { transform-origin: center; animation: sparkRing 3.4s ease-out infinite 0.5s; }
}
@keyframes sparkRing { 0% { opacity: 0.5; transform: scale(0.7); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.closing__statement {
  max-width: 640px; margin: 0 auto;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.42; color: var(--ink);
}
.closing__body { max-width: 640px; margin: 24px auto 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); opacity: 0.82; }

/* the CTA — a highlighted card that draws the eye to the LinkedIn button */
.closing__cta { max-width: 620px; margin: clamp(1.9rem, 4vw, 2.8rem) auto 0;
  padding: clamp(1.5rem, 3.5vw, 2.1rem) clamp(1.4rem, 4vw, 2.2rem) clamp(1.6rem, 3.5vw, 2.2rem);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--crimson) 26%, var(--hairline));
  border-radius: 20px;
  box-shadow: 0 30px 64px -34px rgba(36, 31, 43, 0.5), 0 0 0 5px color-mix(in srgb, var(--crimson) 6%, transparent); }
.closing__cta-eyebrow { margin: 0 0 0.55rem; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); }
.closing__prompt { margin: 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5;
  font-weight: 500; color: var(--ink); }
.closing__prompt strong { color: var(--crimson); font-weight: 700; }
.closing__cta .cta-linkedin { margin-top: clamp(1.2rem, 3vw, 1.6rem); }
.cta-linkedin {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 32px; padding: 0.8rem 1.5rem;
  background: var(--crimson); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  line-height: 1; text-decoration: none; border-radius: 999px; transition: background 0.15s ease;
}
.cta-linkedin__icon { width: 20px; height: 20px; flex: 0 0 auto; }
.cta-linkedin:hover { background: color-mix(in srgb, var(--crimson) 85%, #000); }

/* =====================================================================
   FOOTER (§15)
   ===================================================================== */
.footer {
  background: color-mix(in srgb, var(--ink) 82%, #000); color: var(--surface);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(1.6rem, 5vw, 3rem) clamp(2rem, 6vw, 4rem); }
.footer__message { flex: 1 1 420px; max-width: 640px; }
.footer__lead { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.2rem, 1.02rem + 0.8vw, 1.6rem); line-height: 1.35; color: var(--surface); }
.footer__body { margin: clamp(0.9rem, 2vw, 1.15rem) 0 0; max-width: 60ch; font-size: 1rem; line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 74%, var(--aubergine)); }
.footer__body strong { color: var(--surface); font-weight: 600; }
.footer__contact { flex: 0 0 auto; }
.footer__contact-title { margin: 0 0 0.75rem; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: color-mix(in srgb, var(--paper) 56%, var(--aubergine)); }
.footer__contact-list { list-style: none; margin: 0; padding: 0; }
.footer__contact-list li { margin: 0 0 0.5rem; } .footer__contact-list li:last-child { margin-bottom: 0; }
.footer__contact-list a { color: var(--surface); font-size: 1rem; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 26%, transparent); transition: color 0.15s ease, border-color 0.15s ease; }
.footer__contact-list a:hover { color: var(--crimson); border-color: var(--crimson); }

/* Sources & method — collapsed dark end-matter (outlined ghost bar) */
.footer__sources { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.footer__sources-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.1rem; cursor: pointer; list-style: none; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  background: color-mix(in srgb, var(--paper) 4%, transparent);
  color: color-mix(in srgb, var(--paper) 74%, var(--aubergine));
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.footer__sources-summary::-webkit-details-marker { display: none; }
.footer__sources-summary:hover { color: var(--surface);
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
  background: color-mix(in srgb, var(--paper) 7%, transparent); }
.footer__sources-label { display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.footer__sources-ic { width: 17px; height: 17px; flex: 0 0 auto; opacity: 0.85; }
.footer__sources-chevron { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 0.25s ease; }
.footer__sources[open] .footer__sources-chevron { transform: rotate(180deg); }
.footer__sources-body { padding: 1.1rem 0.25rem 0.1rem; }
.footer__src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; max-width: 92ch; }
.footer__src-list li { font-size: 0.82rem; line-height: 1.55; color: color-mix(in srgb, var(--paper) 62%, var(--aubergine)); }
.footer__src-list strong { color: color-mix(in srgb, var(--paper) 88%, var(--aubergine)); font-weight: 600; }
.footer__src-list em { font-style: italic; }
.footer__src-list a { color: color-mix(in srgb, var(--paper) 82%, var(--purple)); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); transition: color 0.15s ease, border-color 0.15s ease; }
.footer__src-list a:hover { color: var(--crimson); border-color: var(--crimson); }

.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 1.75rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); }
.footer__lockup { display: inline-flex; align-items: center; gap: clamp(0.9rem, 3vw, 1.5rem); }
.footer__lockup .brand--axia img { height: 58px; } .footer__lockup .brand--values img { height: 38px; }
.footer__lockup .brand-divider { height: 44px; background: color-mix(in srgb, var(--paper) 22%, transparent); }
.footer__meta { font-size: 0.82rem; letter-spacing: 0.02em; color: color-mix(in srgb, var(--paper) 56%, var(--aubergine)); }

/* ---- scroll-reveal (evidence + cases + closing); JS adds .is-in ---- */
.reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-on-scroll.is-in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* Desktop: the whole game on one screen (no scroll to reach the console) */
@media (min-width: 760px) {
  /* a definite height (not just min-height) lets the flex children distribute,
     so the field shrinks and the whole game fits one screen */
  .sim { height: calc(100svh - var(--banner-h)); min-height: 520px;
    display: flex; flex-direction: column; overflow: hidden; }
  .sim__inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .field { flex: 1 1 0; min-height: 0; position: relative; margin-top: clamp(0.5rem, 1.6vh, 1.2rem); }
  .field__canvas { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
}

/* tablet & down — home pill + why tab drop into the banner column */
@media (max-width: 768px) {
  .banner__inner { position: static; flex-direction: column; gap: 0.85rem; text-align: center; }
  .banner__home { position: static; transform: none; }
  .banner__why  { position: static; transform: none; }
  .cases__grid { grid-template-columns: 1fr; }
}
/* phones — keep logos side by side but trim their size */
@media (max-width: 600px) {
  .banner__lockup { gap: 1.2rem; }
  .brand--axia   img { height: 22px; }
  .brand--values img { height: 28px; }
  .brand-divider { height: 26px; }
}
/* narrow — one-column tactics as full-width thumb targets, taller field */
@media (max-width: 560px) {
  .tactics { grid-template-columns: 1fr; }
  .field__canvas { aspect-ratio: 1 / 1; }
  .counter__num { font-size: 2.2rem; }
  .console__foot { flex-direction: column; }
  .btn-resolve, .btn-reset { width: 100%; justify-content: center; }
}

/* Motion (§7, §12, §14) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-on-scroll { opacity: 1; transform: none; }
  .modal__box { transform: none; }
}
