/* =========================================================
   Who gets the map?
   Light theme. Vanilla CSS, no framework.
   ========================================================= */

:root {
  /* surfaces */
  --bg:        #f6f7f9;
  --bg-tint:   #eef1f5;
  --card:      #ffffff;
  --line:      #dde3ea;
  --line-soft: #e9edf2;

  /* ink */
  --ink:       #10161d;
  --ink-2:     #3d4b5a;
  --ink-3:     #6b7b8c;

  /* brand + chain colours, taken from the maps themselves */
  --shaw:      #d92b2b;   /* red on the maps */
  --shaw-soft: #fbe9e9;
  --gv:        #e8a900;   /* yellow on the maps */
  --gv-soft:   #fdf4dd;
  --cathay:    #3d7fd6;   /* blue on the maps */
  --cathay-soft:#e7f0fb;
  --new:       #cf2fb4;   /* magenta, the new site */

  --accent:    #0f5fd8;
  --accent-dk: #0a49a8;
  --good:      #17845a;
  --warn:      #b26a00;

  --shadow-sm: 0 1px 2px rgba(16,22,29,.05), 0 2px 6px rgba(16,22,29,.05);
  --shadow-md: 0 4px 10px rgba(16,22,29,.07), 0 12px 28px rgba(16,22,29,.08);
  --shadow-lg: 0 10px 24px rgba(16,22,29,.10), 0 28px 60px rgba(16,22,29,.12);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22,.9,.32,1);
  --pop:  cubic-bezier(.34,1.35,.64,1);

  --wrap: 1360px;
}

/* Director (this round): "cater to... 2560x1440... look just like
   1920x1080." --wrap is a flat px cap, so its share of the viewport
   shrinks from 71% at 1920px to 53% at 2560px, stranding the whole
   two-column layout in a growing grey field. Keeps the 1920px share
   through 2560px instead. */
@media (min-width: 1920px) {
  :root {
    --wrap: clamp(1360px, calc(1360px + (100vw - 1920px) * 0.708), 1813px);
  }
}

/* Self-hosted fonts (site-wide font kit, shared from /fonts) instead of the
   Google Fonts API, so this page has no external network dependency and
   stays fully standalone. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype-variations"),
       url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype-variations"),
       url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", Manrope, sans-serif;
  margin: 0 0 .4em;
  letter-spacing: -.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.8rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
a { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }


/* =========================================================
   Header and tabs
   ========================================================= */

.site-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .55rem max(1.1rem, calc((100vw - var(--wrap)) / 2));
  background: rgba(246,247,249,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 15px; height: 15px; border-radius: 4px;
  background: linear-gradient(135deg, var(--shaw) 0 50%, var(--gv) 50% 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
}

.tabs {
  position: relative;
  display: flex; gap: .1rem;
  margin: 0 auto; overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative; z-index: 1;
  border: 0; background: transparent;
  color: var(--ink-3);
  font: 700 .88rem/1 Manrope, sans-serif;
  padding: .82rem .78rem;
  border-radius: var(--r-sm);
  white-space: nowrap; cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.tab:hover { color: var(--ink); background: var(--bg-tint); }
.tab.is-on { color: var(--ink); }

.tab-ink {
  position: absolute; bottom: 4px; left: 0;
  height: 3px; border-radius: 3px;
  background: var(--accent);
  transition: transform .34s var(--ease), width .34s var(--ease);
  pointer-events: none;
}

.head-cta { flex: none; }

@media (max-width: 1120px) {
  .site-head { flex-wrap: wrap; row-gap: .3rem; }
  .tabs { order: 3; width: 100%; margin: 0; padding-bottom: .2rem; }
  .brand { margin-right: auto; }
}


/* scroll progress rail */
.scroll-rail {
  position: sticky; top: 0; z-index: 39;
  height: 3px; background: transparent; margin-top: -3px;
}
.scroll-rail i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--shaw), var(--new));
  transition: width .12s linear;
}


/* =========================================================
   Layout
   ========================================================= */

main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.1rem; }

.panel { display: none; padding: 3.4rem 0 4.5rem; scroll-margin-top: 160px; }
.panel.is-on { display: block; }
.panel:focus { outline: none; }

.panel.is-on > * {
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

.kicker {
  display: flex; align-items: center; gap: .5rem;
  font: 700 .78rem/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .06em;
  color: var(--accent);
  margin: 0 0 .7rem;
}
.kicker-warn { color: var(--warn); }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--shaw); flex: none;
  box-shadow: 0 0 0 0 rgba(217,43,43,.45);
  animation: ping 2.4s infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(217,43,43,0); } }

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2.5rem; margin-bottom: 2rem;
}
.sec-head h2 { max-width: 16ch; }
.sec-sub { max-width: 42ch; color: var(--ink-2); margin: 0 0 .4rem; }
.sec-head-tight { margin-top: 4rem; }

@media (max-width: 860px) {
  .sec-head { display: block; }
  .sec-head h2 { max-width: none; }
  .sec-sub { margin-top: .8rem; }
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 800 .95rem/1 Manrope, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--pop), box-shadow .2s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--gv); outline-offset: 3px; }

.btn-lg { padding: 1.02rem 1.5rem; font-size: 1.02rem; }
.btn-xl { padding: 1.18rem 1.9rem; font-size: 1.12rem; }
.btn-sm { padding: .6rem .95rem; font-size: .85rem; }

.btn-primary {
  background: var(--shaw); border-color: var(--shaw); color: #fff;
  box-shadow: 0 3px 0 #a81f1f, var(--shadow-md);
}
.btn-primary:hover { background: #e63636; border-color: #e63636; box-shadow: 0 4px 0 #a81f1f, var(--shadow-lg); }
.btn-primary:active { box-shadow: 0 1px 0 #a81f1f, var(--shadow-sm); }

.btn-solid {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 3px 0 #000, var(--shadow-md);
}
.btn-solid:hover { background: #1d2937; border-color: #1d2937; }
.btn-solid:active { box-shadow: 0 1px 0 #000, var(--shadow-sm); }

.btn-ghost { background: var(--card); color: var(--ink); border-color: #c9d3de; }
.btn-ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent-dk); }

.btn-ic { font-size: 1.05em; line-height: 1; }
.ic { font-size: .92em; opacity: .75; }
.ic-slide { display: inline-block; transition: transform .22s var(--pop); }
.btn:hover .ic-slide { transform: translateX(5px); }

/* attention pulse on the main call to action, first few seconds only */
.btn-primary.btn-lg,
.btn-primary.btn-xl { animation: invite 2.6s var(--ease) 3; }
@keyframes invite {
  0%, 100% { box-shadow: 0 3px 0 #a81f1f, var(--shadow-md), 0 0 0 0 rgba(217,43,43,.34); }
  50%      { box-shadow: 0 3px 0 #a81f1f, var(--shadow-md), 0 0 0 13px rgba(217,43,43,0); }
}

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 0; }
.cta-center { justify-content: center; margin-top: 3rem; }
.cta-stack { display: grid; justify-items: start; gap: .8rem; }
.cta-pair { display: flex; flex-wrap: wrap; gap: .6rem; }


/* =========================================================
   Hero
   ========================================================= */

.hero {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 2.6rem; align-items: center;
  padding-bottom: 3.5rem;
}

.hero h1 em { font-style: normal; color: var(--shaw); }

.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  line-height: 1.55; color: var(--ink-2); max-width: 46ch;
}
.lead-2 { font-weight: 700; color: var(--ink); }

.analogy {
  margin-top: 2rem; padding: .95rem 1.1rem;
  border-left: 4px solid var(--gv);
  background: var(--gv-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2); font-size: .97rem;
}
.analogy b { color: var(--ink); }


/* ---------- the four frame stage ---------- */

.stage {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stage-view {
  position: relative;
  aspect-ratio: 903 / 499;
  background: #0d1219;
  transition: background .8s var(--ease);
  overflow: hidden;
}

.frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .75s var(--ease), transform 1.5s var(--ease);
}
.frame.is-on { opacity: 1; transform: scale(1); }

.stage-glow {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0,0,0,.28);
}

.stage-cap {
  display: grid; gap: .28rem;
  padding: 1.05rem 1.2rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
}
.cap-step {
  font: 700 .72rem/1 "Space Grotesk", sans-serif;
  letter-spacing: .08em; color: var(--ink-3);
}
.stage-cap strong { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; }
.stage-cap span:last-child { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }

.stage-bars { padding: .9rem 1.2rem; display: grid; gap: .55rem; }

.bar-row {
  display: grid; grid-template-columns: 116px 1fr 74px;
  align-items: center; gap: .7rem;
  transition: opacity .5s var(--ease);
}
.bar-row.is-gone { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.bar-label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.bar-track {
  height: 13px; border-radius: 99px;
  background: var(--bg-tint); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(16,22,29,.08);
}
.bar-fill {
  display: block; height: 100%; border-radius: 99px;
  transition: width .85s var(--pop);
}
.bar-gv     { background: linear-gradient(90deg, #f0bb2e, var(--gv)); }
.bar-shaw   { background: linear-gradient(90deg, #ef5555, var(--shaw)); }
.bar-cathay { background: linear-gradient(90deg, #6ba3e8, var(--cathay)); }
.bar-new    { background: linear-gradient(90deg, #e061cc, var(--new)); }
.bar-num {
  font: 700 .95rem/1 "Space Grotesk", sans-serif;
  text-align: right; font-variant-numeric: tabular-nums;
}

.stage-nav {
  display: flex; align-items: center; gap: .45rem;
  padding: .3rem 1.2rem 1.05rem;
}
.pip {
  flex: 1; height: 30px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  display: grid; align-items: center;
}
.pip i {
  display: block; height: 5px; border-radius: 99px;
  background: var(--line); transition: background .25s var(--ease);
}
.pip:hover i { background: #b9c5d2; }
.pip.is-on i { background: var(--shaw); }
.pip:focus-visible { outline: 3px solid var(--gv); outline-offset: 2px; border-radius: 4px; }

.pip-play {
  flex: none; width: 30px; height: 30px;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--card); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .2s var(--ease), transform .16s var(--pop);
}
.pip-play:hover { border-color: var(--shaw); transform: scale(1.08); }
.pip-play:focus-visible { outline: 3px solid var(--gv); outline-offset: 2px; }
.ic-pause {
  width: 8px; height: 9px;
  border-left: 3px solid var(--ink); border-right: 3px solid var(--ink);
}
.pip-play:not(.is-playing) .ic-pause {
  width: 0; height: 0; border: 0;
  border-left: 8px solid var(--ink);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  margin-left: 2px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
}


/* =========================================================
   Big numbers
   ========================================================= */

.bignums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.bignum {
  padding: 1.4rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.bignum b {
  display: block;
  font: 700 clamp(3rem, 5.5vw, 4.6rem)/.95 "Space Grotesk", sans-serif;
  letter-spacing: -.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: .5rem;
}
.bignum.is-alert b { color: var(--warn); }
.bignum h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.bignum p { color: var(--ink-2); font-size: .93rem; margin: 0; }


/* =========================================================
   Verdict block
   ========================================================= */

.verdict {
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: 2rem; align-items: center;
  padding: 2.2rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #131b24, #23303f);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.verdict .kicker { color: #ffcf5c; }
.verdict h2 { color: #fff; max-width: 20ch; }
.verdict p { color: #c3cede; max-width: 54ch; }
.verdict .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.verdict .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.verdict-stat {
  text-align: center; padding: 1.3rem 1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  background: rgba(255,255,255,.05);
}
.verdict-stat span { display: block; font-size: .85rem; color: #9fb0c4; }
.swing {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: .5rem 0;
}
.swing b {
  font: 700 clamp(1.7rem, 3vw, 2.5rem)/1 "Space Grotesk", sans-serif;
  color: #8e9db0;
}
.swing b.up { color: #58e39d; }
.swing i { color: #ffcf5c; font-style: normal; font-size: 1.5rem; }
.verdict-stat:hover .ic-slide { transform: translateX(5px); }

@media (max-width: 980px) {
  .bignums { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
}


/* =========================================================
   Before / after comparison slider
   ========================================================= */

.compare-wrap { margin-bottom: 3rem; }

.compare {
  position: relative;
  aspect-ratio: 903 / 499;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #0d1219;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmp-clip {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 44px; margin-left: -22px; padding: 0;
  border: 0; background: transparent; cursor: ew-resize;
  display: grid; place-items: center;
}
.cmp-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 21px;
  width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.5);
}
.cmp-handle span {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink);
  font-size: .7rem; font-weight: 800; letter-spacing: -1px;
  box-shadow: var(--shadow-md);
  transition: transform .16s var(--pop);
}
.cmp-handle:hover span { transform: scale(1.12); }
.cmp-handle:focus-visible span { outline: 3px solid var(--gv); outline-offset: 3px; }

.cmp-tag {
  position: absolute; top: 14px;
  padding: .35rem .7rem; border-radius: 99px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font: 800 .74rem/1 "Space Grotesk", sans-serif;
  box-shadow: var(--shadow-sm);
}
.cmp-tag-l { left: 14px; }
.cmp-tag-r { right: 14px; }

.cmp-hint { text-align: center; color: var(--ink-2); font-size: .93rem; margin-top: .9rem; }
.cmp-hint b { color: var(--ink); }


/* =========================================================
   Story grids and figures
   ========================================================= */

.story-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 1.8rem; align-items: center;
  margin-bottom: 3rem;
}
.story-grid-rev .fig { order: 2; }
.story-copy h3 { margin-bottom: .6rem; }
.story-copy p { color: var(--ink-2); }

.fig {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fig img {
  width: 100%; height: auto;
  background: #fff;
}
.fig-dark img { background: #0d1219; }
.fig figcaption {
  padding: .8rem 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .87rem; color: var(--ink-3); line-height: 1.5;
}
.fig-tall img { max-height: 460px; object-fit: contain; }
.fig-card figcaption { font-size: .92rem; color: var(--ink-2); }
.fig-card figcaption b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .25rem; }

.split-stat {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
  margin: 1.2rem 0;
}
.split-stat div {
  padding: .9rem 1rem; border-radius: var(--r-sm);
  background: var(--gv-soft); border: 1px solid #f0dfae;
}
.split-stat div.muted { background: var(--shaw-soft); border-color: #f2cfcf; }
.split-stat b {
  display: block;
  font: 700 1.7rem/1 "Space Grotesk", sans-serif;
  color: var(--warn);
}
.split-stat .muted b { color: var(--shaw); }
.split-stat span { font-size: .84rem; color: var(--ink-2); }

.note {
  padding: .85rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--bg-tint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .93rem; color: var(--ink-2) !important;
}

.ticks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.ticks li {
  position: relative; padding-left: 1.7rem;
  color: var(--ink-2); font-size: .96rem;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--shaw-soft); color: var(--shaw);
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.ticks b { color: var(--ink); }

.src { font-size: .8rem; color: var(--ink-3); margin-top: .7rem; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid-rev .fig { order: 0; }
  .split-stat { grid-template-columns: 1fr; }
}


/* =========================================================
   Decision lab
   ========================================================= */

.lab {
  display: grid; grid-template-columns: .95fr 1fr 1.05fr;
  gap: 1rem; align-items: start;
}

.lab-choices { display: grid; gap: .55rem; align-content: start; }

.choice {
  position: relative;
  display: block; width: 100%; text-align: left;
  padding: .95rem 2.4rem .95rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--pop), box-shadow .2s var(--ease),
              border-color .2s var(--ease), background .2s var(--ease);
}
.choice::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: var(--line);
  transition: background .2s var(--ease), top .2s var(--ease), bottom .2s var(--ease);
}
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c2cedb; }
.choice:hover::before { top: 6px; bottom: 6px; background: #b9c5d2; }
.choice:active { transform: translateY(1px) scale(.99); }
.choice:focus-visible { outline: 3px solid var(--gv); outline-offset: 3px; }

.choice.is-on { border-color: var(--shaw); background: #fffafa; box-shadow: var(--shadow-md); }
.choice.is-on::before { background: var(--shaw); top: 6px; bottom: 6px; }

.choice b { display: block; font-size: 1.06rem; font-family: "Space Grotesk", sans-serif; }
.choice small { display: block; color: var(--ink-3); font-size: .85rem; margin-top: .15rem; }

.choice-tag {
  display: inline-block; margin-bottom: .35rem;
  padding: .2rem .5rem; border-radius: 99px;
  font: 800 .66rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .04em;
  background: var(--bg-tint); color: var(--ink-3);
}
.choice-good { background: #e2f5ec; color: var(--good); }
.choice-warn { background: var(--gv-soft); color: var(--warn); }
.choice-bad  { background: var(--shaw-soft); color: var(--shaw); }

.choice-arrow {
  position: absolute; right: 1rem; top: 50%; margin-top: -.6rem;
  color: var(--ink-3); font-size: 1.1rem;
  transition: transform .22s var(--pop), color .2s var(--ease);
}
.choice:hover .choice-arrow { transform: translateX(5px); color: var(--shaw); }
.choice.is-on .choice-arrow { color: var(--shaw); }

.lab-out {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.lab-out h3 { margin-bottom: .3rem; }
.lab-desc { color: var(--ink-2); font-size: .95rem; min-height: 3.2em; }
.lab-out .bar-row { grid-template-columns: 108px 1fr 72px; margin-top: .7rem; }

.lab-impact { margin-top: 1.4rem; }
.lab-impact b {
  display: block;
  font: 700 clamp(2.1rem, 3.2vw, 2.9rem)/1 "Space Grotesk", sans-serif;
  color: var(--good);
  font-variant-numeric: tabular-nums;
}
.lab-impact b.is-neg { color: var(--shaw); }
.lab-impact span { font-size: .87rem; color: var(--ink-3); }

.lab-foot {
  margin: 1.2rem 0 0; padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  font-size: .86rem; color: var(--ink-3);
}

@media (max-width: 1080px) {
  .lab { grid-template-columns: 1fr 1fr; }
  .lab > .fig { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .lab { grid-template-columns: 1fr; }
}


/* =========================================================
   Ranking table
   ========================================================= */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.rank { width: 100%; border-collapse: collapse; min-width: 720px; }
.rank th, .rank td {
  padding: .85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: .93rem;
}
.rank thead th {
  background: var(--bg-tint);
  font: 800 .78rem/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .03em;
  color: var(--ink-2);
  white-space: nowrap;
  position: sticky; top: 0;
}
.rank th.num, .rank td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank th.sortable { cursor: pointer; user-select: none; }
.rank th.sortable:hover { color: var(--accent); background: #e4eaf1; }
.rank th.sortable::after { content: " ⇅"; opacity: .4; font-size: .9em; }
.rank th.sortable.is-sorted::after { content: " ▾"; opacity: 1; color: var(--accent); }
.rank tbody tr { transition: background .16s var(--ease); }
.rank tbody tr:hover { background: var(--bg-tint); }
.rank tbody tr.is-top { background: #fffaf0; }
.rank tbody tr.is-top td { font-weight: 700; }
.rank tbody tr:last-child td { border-bottom: 0; }
.rank .medal {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-tint); color: var(--ink-2);
  font: 800 .78rem/1 "Space Grotesk", sans-serif;
}
.rank tr.is-top .medal { background: var(--gv); color: #fff; }

.minibar {
  display: block; width: 110px; height: 6px; border-radius: 99px;
  background: var(--bg-tint); margin: .3rem 0 0 auto; overflow: hidden;
}
.minibar i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--shaw); width: 0;
  transition: width .8s var(--pop);
}


/* =========================================================
   Danger block and ladder
   ========================================================= */

.danger {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 2rem; align-items: center;
  margin: 3.5rem 0;
  padding: 2rem;
  border: 1px solid #f1cccc;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fff6f6, #fdecec);
}
.danger h2 { color: var(--shaw); max-width: 18ch; }
.danger p { color: var(--ink-2); }
.danger .note { background: #fff; border-left-color: var(--shaw); }

.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ladder li {
  display: grid; grid-template-columns: 1fr 62px;
  align-items: center; gap: .8rem;
  padding: .5rem .8rem;
  background: #fff; border: 1px solid #f1dada; border-radius: var(--r-sm);
  font-size: .9rem;
}
.ladder li b { font-weight: 700; }
.ladder li span {
  text-align: right; font-variant-numeric: tabular-nums;
  font: 700 .95rem/1 "Space Grotesk", sans-serif; color: var(--shaw);
}
.ladder li.is-worst { border-color: var(--shaw); background: var(--shaw); color: #fff; }
.ladder li.is-worst span { color: #fff; }

@media (max-width: 860px) {
  .danger { grid-template-columns: 1fr; }
}


/* =========================================================
   Method steps
   ========================================================= */

.steps {
  position: relative;
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
}
.step-rail {
  position: absolute; left: 26px; right: 26px; top: 27px;
  height: 3px; background: var(--line); border-radius: 3px; z-index: 0;
}
.step-rail::after {
  content: ""; display: block; height: 100%; border-radius: 3px;
  background: var(--shaw); width: var(--fill, 0%);
  transition: width .45s var(--ease);
}

.step {
  position: relative; z-index: 1;
  display: grid; justify-items: start; gap: .55rem;
  padding: .9rem 1rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--card); cursor: pointer; text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--pop), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c2cedb; }
.step:active { transform: translateY(1px) scale(.99); }
.step:focus-visible { outline: 3px solid var(--gv); outline-offset: 3px; }
.step.is-on { border-color: var(--shaw); box-shadow: var(--shadow-md); }

.step b {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-tint); color: var(--ink-3);
  font: 800 .92rem/1 "Space Grotesk", sans-serif;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.step.is-on b, .step.is-done b { background: var(--shaw); color: #fff; }
.step span { font: 800 .98rem/1.2 Manrope, sans-serif; }

.method {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: 1.4rem; align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.method-copy p { color: var(--ink-2); }
.method .fig { box-shadow: none; }

.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
.proof {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.proof b {
  display: block;
  font: 700 1.6rem/1 "Space Grotesk", sans-serif;
  color: var(--accent); margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.proof h4 { margin-bottom: .3rem; }
.proof p { font-size: .89rem; color: var(--ink-2); margin: 0; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-rail { display: none; }
  .method { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Maths section
   ========================================================= */

.axiom {
  padding: 1.8rem 2rem;
  border-radius: var(--r-lg);
  background: var(--ink); color: #fff;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.axiom p {
  margin: 0; max-width: 62ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35; letter-spacing: -.02em;
}

.three-up {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
.three-up .fig img { aspect-ratio: 4 / 3; object-fit: cover; }

.formula {
  padding: 1.6rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.formula p { color: var(--ink-2); font-size: .95rem; }
.formula b { color: var(--ink); }
.eq {
  padding: 1.1rem 1.2rem; margin-bottom: 1.1rem;
  border-radius: var(--r-sm);
  background: var(--bg-tint);
  border: 1px dashed #c9d3de;
}
.eq-line {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem; line-height: 1.5; color: var(--ink);
}
.eq i { font-style: italic; color: var(--shaw); font-weight: 700; }
.minus { color: var(--shaw); font-weight: 800; }

@media (max-width: 860px) {
  .three-up { grid-template-columns: 1fr; }
}


/* =========================================================
   Limits
   ========================================================= */

.limit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
.limit {
  padding: 1.3rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
.limit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.limit-no {
  display: block;
  font: 800 .78rem/1 "Space Grotesk", sans-serif;
  color: var(--ink-3); margin-bottom: .7rem;
}
.limit h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.limit p { color: var(--ink-2); font-size: .92rem; margin: 0; }

.next {
  padding: 2rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #eef3fa, #e3ecf7);
  border: 1px solid #d3e0ee;
}
.next p { color: var(--ink-2); max-width: 56ch; }

@media (max-width: 980px) { .limit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .limit-grid { grid-template-columns: 1fr; } }


/* =========================================================
   Footer
   ========================================================= */

.site-foot {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: var(--ink-3);
}
.foot-links { display: flex; gap: 1.2rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }


/* =========================================================
   Small screens
   ========================================================= */

@media (max-width: 620px) {
  body { font-size: 16px; }
  .panel { padding: 2rem 0 3rem; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .bar-row { grid-template-columns: 104px 1fr 62px; }
  .lab-out .bar-row { grid-template-columns: 104px 1fr 62px; }
  .bar-label { font-size: .78rem; }
  .verdict, .danger, .next, .axiom { padding: 1.3rem; }
  .site-foot { flex-direction: column; }
}


/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .frame { transform: none; }
}
