/* ZGCM-1.5 project page, dark edition.
   Deep-navy page, one hue family per section and per benchmark group, layered backgrounds
   (see BACKGROUNDS + COLOUR at the end). Palette and fonts come from tokens.css; data
   colours keep the poster/video meaning (ZGCM blue, base grey, declines amber, skills lavender). */

:root {
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: inset 0 1px 0 rgba(255, 255, 255, .045), 0 18px 40px -26px rgba(0, 0, 0, .75);
  --shadow-3: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .9);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec-pad: clamp(84px, 10vw, 144px);
  --on-dark: #F3F6FB;
  --on-dark-2: #C9D3E3;
  --on-dark-muted: #9DAAC0;
  --best: color-mix(in srgb, var(--zg-blue) 36%, var(--zg-panel));
  --second: color-mix(in srgb, var(--zg-blue) 17%, var(--zg-panel));
  --ours-tint: rgba(106, 160, 240, .07);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--zg-paper);
  color: var(--zg-ink);
  font-family: var(--zg-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
img, video { display: block; max-width: 100%; }
a { color: var(--zg-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--zg-navy); }
strong, b { font-weight: 600; }
em { font-style: italic; }
sub { font-size: .72em; line-height: 0; }
code, pre { font-family: var(--zg-mono); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--zg-blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(106, 160, 240, .34); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.i { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--zg-ink); color: var(--zg-paper); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--zg-paper); }

/* ---------- shared type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hue-a, var(--zg-blue));
}
.kicker__num {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--zg-muted); font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
.kicker__num::after { content: ""; width: 28px; height: 1px; background: var(--zg-line-strong); }
.kicker--plain { color: var(--zg-muted); }

.sec-head {
  --guide-size: clamp(125px, 14vw, 176px);
  display: grid; grid-template-columns: minmax(0, 900px) var(--guide-size);
  align-items: center; justify-content: space-between; gap: clamp(22px, 4vw, 70px);
  margin-bottom: clamp(40px, 5vw, 68px);
}
.kangaroo-guide {
  display: block; flex: none; width: var(--guide-size); height: var(--guide-size);
  pointer-events: none; user-select: none;
}
.kangaroo-guide img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
@media (max-width: 680px) {
  .sec-head {
    --guide-size: 80px; grid-template-columns: minmax(0, 1fr) var(--guide-size);
    gap: 0 12px;
  }
  .sec-head__copy { display: contents; }
  .sec-head .kicker { grid-column: 1; grid-row: 1; }
  .sec-head > .kangaroo-guide { grid-column: 2; grid-row: 1; }
  .sec-head .sec-title, .sec-head .lede, .sec-head .sec-attrib { grid-column: 1 / -1; }
}
.sec-title {
  margin-top: 18px;
  font-family: var(--zg-serif);
  font-size: clamp(38px, 1.6rem + 3.2vw, 64px);
  line-height: 1.04; letter-spacing: -.022em; font-weight: 500;
  color: var(--zg-ink);
  text-wrap: balance;
}
.sec-title em { font-weight: 400; color: var(--zg-blue); }
.sec-title--quote { font-size: clamp(34px, 1.4rem + 2.9vw, 58px); line-height: 1.1; max-width: 22em; }
.sec-title--quote .q { margin-left: -.42em; }
.sec-attrib { margin-top: 18px; font-size: 14px; color: var(--zg-muted); display: flex; align-items: center; gap: 10px; }
.sec-attrib::before { content: ""; width: 22px; height: 1px; background: var(--zg-line-strong); }
.lede {
  margin-top: 22px; max-width: 64ch;
  font-size: clamp(17px, .95rem + .35vw, 19.5px); line-height: 1.62; color: var(--zg-ink-2);
}
.block-head { margin-bottom: 28px; max-width: 760px; }
.block-title {
  font-family: var(--zg-serif); font-weight: 500;
  font-size: clamp(26px, 1.1rem + 1.2vw, 34px); line-height: 1.15; letter-spacing: -.015em;
  text-wrap: balance;
}
.block-lede { margin-top: 10px; font-size: 16px; line-height: 1.62; color: var(--zg-ink-2); max-width: 66ch; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--zg-blue);
}
.text-link:hover { text-decoration: underline; }
.prose p + p { margin-top: 1em; }

/* ---------- cards ---------- */
.card {
  --card-pad: clamp(20px, 2.6vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .024), rgba(255, 255, 255, 0) 140px), var(--zg-panel);
  border: 1px solid var(--zg-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--card-pad);
}
.card__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--zg-muted);
}
.card__title {
  margin-top: 8px;
  font-family: var(--zg-serif); font-weight: 500;
  font-size: clamp(23px, 1.05rem + .9vw, 30px); line-height: 1.18; letter-spacing: -.012em;
  text-wrap: balance;
}
.card__body { margin-top: 12px; font-size: 15.5px; line-height: 1.62; color: var(--zg-ink-2); max-width: 68ch; }
.card__body + .card__body { margin-top: 10px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ======================================================================
   NAV
   ====================================================================== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  color: var(--on-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.site-nav[data-state="hero-solid"] {
  background: rgba(19, 29, 51, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.site-nav[data-state="page"] {
  color: var(--on-dark);
  background: rgba(9, 14, 27, .72);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-size: 19px; line-height: 1; letter-spacing: -.01em;
  border-radius: 8px;
}
.wordmark:hover { color: inherit; }
.wordmark__mark { width: 28px; height: 28px; flex: none; }
.wordmark__text b { font-weight: 700; }
.wordmark__ver { font-weight: 400; color: var(--zg-blue); }
.site-nav .wordmark__ver,
.wordmark--light .wordmark__ver { color: #B6D4E6; }
.site-nav .wordmark__mark,
.wordmark--light .wordmark__mark { --mark-stroke: url(#zg-grad); --mark-head: #6AA0F0; }

.site-nav__links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav__links a {
  position: relative;
  padding: 8px 13px; border-radius: 999px;
  color: inherit; text-decoration: none;
  font-size: 14.5px; font-weight: 500; opacity: .78;
  transition: opacity .2s, background-color .2s, color .2s;
}
.site-nav__links a:hover { opacity: 1; background: rgba(255, 255, 255, .09); }
.site-nav[data-state="page"] .site-nav__links a:hover { background: rgba(255, 255, 255, .08); }
.site-nav__links a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, .12); }
.site-nav[data-state="page"] .site-nav__links a[aria-current="true"] { color: #fff; background: rgba(106, 160, 240, .2); }

.site-nav__toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: inherit; cursor: pointer;
}
.site-nav[data-state="page"] .site-nav__toggle { border-color: var(--zg-line-strong); }
.burger { position: relative; width: 18px; height: 12px; }
.burger i {
  position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 8.5px; }
.site-nav__toggle[aria-expanded="true"] .burger i:first-child { top: 5.2px; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .burger i:last-child { top: 5.2px; transform: rotate(-45deg); }

.site-nav__sheet {
  position: absolute; top: calc(var(--nav-h) + 6px); left: var(--gutter); right: var(--gutter);
  display: grid; gap: 2px; padding: 10px;
  background: var(--zg-panel-2); color: var(--zg-ink);
  border: 1px solid var(--zg-line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
}
.site-nav__sheet[hidden] { display: none; }
.site-nav__sheet a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--zg-ink); text-decoration: none;
}
.site-nav__sheet a span { font-size: 12px; color: var(--zg-muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.site-nav__sheet a:hover, .site-nav__sheet a[aria-current="true"] { background: var(--zg-blue-100); color: var(--zg-blue); }

.site-nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.site-nav[data-state="page"] .site-nav__progress { opacity: 1; }
.site-nav__progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--zg-teal), var(--zg-blue), var(--zg-violet), var(--zg-peach));
}

@media (max-width: 1000px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: inline-flex; }
}

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--on-dark);
  background: transparent;
  padding: calc(var(--nav-h) + clamp(44px, 6.5vw, 92px)) 0 clamp(150px, 15vw, 200px);
}
.hero__backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 58% at 78% 30%, rgba(156, 124, 244, .34), transparent 66%),
    radial-gradient(30% 42% at 96% 78%, rgba(242, 189, 142, .2), transparent 70%),
    radial-gradient(44% 62% at 6% 96%, rgba(76, 195, 201, .2), transparent 70%),
    radial-gradient(46% 52% at 34% 4%, rgba(106, 160, 240, .26), transparent 72%);
}
.hero__backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 72% 42%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 68% at 72% 42%, #000 10%, transparent 72%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(24px, 3vw, 56px); align-items: center;
}
.hero__kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(205, 199, 218, .28); background: rgba(143, 134, 190, .10);
  font-size: 13.5px; font-weight: 500; letter-spacing: .01em; color: #E2DEF0;
}
.hero__title { margin-top: 26px; font-family: var(--zg-serif); color: #fff; }
.hero__name {
  display: block; white-space: nowrap;
  font-size: clamp(44px, .6rem + 5.4vw, 92px);
  line-height: .98; letter-spacing: -.03em; font-weight: 500;
}
.hero__sub {
  display: block; margin-top: 20px; max-width: 19.5em;
  font-size: clamp(24px, .9rem + 1.9vw, 38px); line-height: 1.16; letter-spacing: -.012em;
  font-weight: 400; color: #DCE4F0;
  text-wrap: balance;
}
.hero__sub em {
  color: #B6D4E6;
  background: linear-gradient(100deg, #8EC0FF 0%, #B9A6FF 55%, #FFC9A0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .07em; margin-right: -.07em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__byline { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__team {
  --guide-size: 68px; display: inline-flex; gap: 9px; align-items: center;
  font-family: var(--zg-sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #fff;
  padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, .18);
}
.hero__affils { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.hero__affils li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.3; color: var(--on-dark-2); }
.hero__affils img { width: 36px; height: 36px; flex: none; opacity: .96; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 22px 0 18px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; letter-spacing: .005em;
  color: #fff; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .24);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.pill .i { width: 19px; height: 19px; }
a.pill[href]:hover { background: #fff; color: var(--zg-night); border-color: #fff; transform: translateY(-1px); }
.pill--primary { background: #fff; color: var(--zg-night); border-color: #fff; }
a.pill--primary[href]:hover { background: #E6EDF7; border-color: #E6EDF7; }
.pill[aria-disabled="true"] { cursor: default; }
.pill__badge {
  margin-left: 2px; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  background: #ECE9F7; color: #5E5891;
}
.pill__badge--dark { background: rgba(143, 134, 190, .22); color: #E2DEF0; }

/* hero visual: orbit of benchmark names around the RSI mark */
.hero__visual { position: relative; }
.orbit { display: block; width: 100%; height: auto; overflow: visible; }
.orbit__ring { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.orbit__ring--h { stroke: rgba(205, 199, 218, .20); stroke-dasharray: 2 5; }
.orbit__label { font-family: var(--zg-sans); font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.orbit__label--t { fill: #E8EEF7; }
.orbit__label--h { fill: #D9D3EE; font-style: italic; }
.orbit__dot--t { fill: #B6D4E6; }
.orbit__dot--h { fill: none; stroke: #CDC7DA; stroke-width: 1.2; }
.orbit__glow { fill: rgba(143, 134, 190, .16); filter: blur(18px); }
.orbit__stroke { stroke-dasharray: var(--len, 300); stroke-dashoffset: 0; }
.js .orbit.is-drawing .orbit__stroke { animation: draw-mark 2.8s cubic-bezier(.65, 0, .25, 1) .25s both; }
.js .orbit.is-drawing .orbit__head { animation: head-in .7s var(--ease) 2.65s both; transform-origin: 71px 63px; }
.js .orbit.is-drawing .orbit__glow { animation: glow 6s ease-in-out 3s infinite; }
@keyframes draw-mark { from { stroke-dashoffset: var(--len, 300); } to { stroke-dashoffset: 0; } }
@keyframes head-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.orbit__legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 4px;
  font-size: 13px; color: var(--on-dark-muted);
}
.orbit__legend span { display: inline-flex; align-items: center; gap: 8px; }
.orbit__legend b { color: var(--on-dark); font-weight: 600; }
.odot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.odot--t { background: #B6D4E6; }
.odot--h { border: 1.3px solid #CDC7DA; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: -1; max-width: 440px; margin: -8px auto -28px; width: 100%; }
  .orbit__legend { display: none; }
}
@media (max-width: 560px) {
  .hero__visual { max-width: 320px; margin: -12px auto -34px; }
  .hero__team { border-right: 0; padding-right: 0; width: 100%; }
  .hero__affils { gap: 10px; flex-direction: column; }
  .pill { height: 44px; padding: 0 18px 0 15px; font-size: 15px; }
}

/* ======================================================================
   STATS
   ====================================================================== */
.stats { position: relative; z-index: 2; margin-top: clamp(-132px, -10vw, -96px); }
.stats__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: rgba(18, 26, 44, .66);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(160, 180, 220, .14); border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.stat { position: relative; padding: 28px clamp(14px, 1.5vw, 24px) 26px; }
.stat__headline { --guide-size: clamp(35px, 3.4vw, 50px); display: flex; gap: 5px; align-items: center; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--zg-line); }
.stat__num {
  font-family: var(--zg-serif); font-weight: 500;
  font-size: clamp(36px, .6rem + 2.3vw, 50px); line-height: 1; letter-spacing: -.025em;
  color: var(--zg-ink); white-space: nowrap;
}
.stat__of { color: var(--s, var(--zg-blue)); font-size: .62em; letter-spacing: -.01em; }
.stat__unit {
  margin-left: 4px; font-family: var(--zg-sans); font-size: .28em; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--s, var(--zg-blue)); vertical-align: .1em;
}
.stat__x { color: var(--s, var(--zg-blue)); font-weight: 400; margin-left: 1px; }
.stat__num--word {
  font-style: italic; font-weight: 400; color: var(--zg-rose);
  background: linear-gradient(100deg, var(--zg-violet), var(--zg-rose) 60%, var(--zg-peach));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em; margin-right: -.08em;
}
.stat__label { margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--zg-muted); max-width: 19ch; }
@media (max-width: 1140px) {
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3n + 1)::before { display: none; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--zg-line); }
}
@media (max-width: 600px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 16px 20px; }
  .stat::before { display: none; }
  .stat:nth-child(even)::before { display: block; top: 20px; bottom: 20px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--zg-line); }
  .stat__num { font-size: 38px; }
  .stat__label { font-size: 13px; }
}
@media (max-width: 380px) {
  .stat { padding-inline: 12px; }
  .stat__num { font-size: clamp(29px, 9vw, 34px); }
}

/* ======================================================================
   FIGURE SLOTS (teaser, data composition)
   ====================================================================== */
.teaser { padding-top: clamp(48px, 6vw, 84px); }
.teaser__caption { --guide-size: 54px; display: inline-flex; gap: 10px; align-items: center; }
.slot { position: relative; }
.slot__frame {
  position: relative; overflow: hidden;
  aspect-ratio: var(--slot-ratio, 2.2);
  background: var(--zg-panel);
  border: 1px solid var(--zg-line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.slot__img { width: 100%; height: auto; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease); }
.slot:not(.is-loaded) .slot__img { position: absolute; inset: 0; height: 100%; }
.slot.is-loaded .slot__frame { aspect-ratio: auto; padding: clamp(10px, 1.6vw, 20px); background: #F3F6FA; }
.slot.is-loaded .slot__img { opacity: 1; max-height: 86vh; margin-inline: auto; }
.slot[data-slot="teaser"].is-loaded .slot__frame { background: #F8FBFF; }
.slot__ph {
  position: absolute; inset: clamp(10px, 1.4vw, 16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center;
  border: 1.5px dashed var(--zg-line-strong); border-radius: calc(var(--r-xl) - 8px);
  background:
    repeating-linear-gradient(135deg, rgba(160, 180, 220, .05) 0 1px, transparent 1px 16px),
    var(--zg-wash);
  color: var(--zg-muted);
}
.slot.is-loaded .slot__ph { display: none; }
.slot__ph-icon { width: 30px; height: 30px; color: var(--zg-navy-2); opacity: .7; margin-bottom: 4px; }
.slot__ph-title { font-family: var(--zg-serif); font-size: clamp(20px, 1rem + .8vw, 26px); color: var(--zg-ink-2); letter-spacing: -.01em; }
.slot__ph-meta { font-size: 13px; color: var(--zg-muted); }
.slot__ph-meta span { margin-inline: 4px; }
.slot__ph-meta code { font-size: 12px; color: var(--zg-ink-2); background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 5px; }
.fig-cap { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--zg-muted); }

/* ======================================================================
   VIDEO
   ====================================================================== */
.video-sec { padding-top: clamp(64px, 8vw, 112px); }
.video-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.video-sec__intro { --guide-size: clamp(60px, 7vw, 90px); display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }
.video-sec__title {
  margin-top: 10px; font-family: var(--zg-serif); font-weight: 500;
  font-size: clamp(28px, 1.2rem + 1.5vw, 40px); line-height: 1.1; letter-spacing: -.018em;
}
.video-sec__title em { font-weight: 400; color: var(--zg-blue); }
.video-sec__dl[hidden] { display: none; }
.video-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  background: var(--zg-night);
  box-shadow: var(--shadow-3);
}
.video-frame__el { width: 100%; height: 100%; object-fit: contain; background: #0E1526; }
.video-frame__ph {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; text-align: center;
  color: var(--on-dark);
  background:
    radial-gradient(60% 80% at 82% 20%, rgba(143, 134, 190, .28), transparent 60%),
    radial-gradient(50% 70% at 8% 100%, rgba(43, 92, 158, .45), transparent 70%),
    linear-gradient(158deg, var(--zg-night), var(--zg-night-2));
}
.video-frame__ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
}
.js .video-frame:not(.is-ready) .video-frame__ph { display: flex; }
.js .video-frame:not(.is-ready) .video-frame__el { visibility: hidden; }
.video-frame__ph-inner { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; align-items: center; }
.video-frame__mark { width: clamp(56px, 8vw, 96px); height: clamp(56px, 8vw, 96px); --mark-stroke: url(#zg-grad); --mark-head: #6AA0F0; }
.video-frame__ph-kicker {
  margin-top: clamp(14px, 2vw, 26px);
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #CFC6FF;
}
.video-frame__ph-title {
  margin-top: 10px; font-family: var(--zg-serif); font-weight: 500;
  font-size: clamp(26px, 1rem + 2.6vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: #fff;
}
.video-frame__ph-title em { font-weight: 400; color: #B6D4E6; }
.video-frame__ph-note { margin-top: 12px; font-size: clamp(13px, .8rem + .3vw, 15.5px); color: var(--on-dark-2); }
.video-frame__ph-play {
  position: absolute; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 1;
  display: grid; place-items: center;
  width: clamp(40px, 5vw, 56px); height: clamp(40px, 5vw, 56px); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .8);
}
.video-frame__ph-play .i { width: 42%; height: 42%; margin-left: 3px; }
@media (max-width: 560px) {
  .video-frame__ph-note { display: none; }
  .video-frame__ph-play { display: none; }
}

/* ======================================================================
   SECTIONS
   ====================================================================== */
.section { padding-block: var(--sec-pad); }
.video-sec + .section { margin-top: clamp(24px, 4vw, 48px); }
.section--wash { background: transparent; }

/* ---------- overview ---------- */
.question {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px 40px; align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid rgba(237, 241, 248, .42); border-bottom: 1px solid var(--zg-line);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.question__label { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--zg-muted); }
.question__text {
  font-family: var(--zg-serif); font-weight: 500;
  font-size: clamp(24px, 1rem + 1.4vw, 36px); line-height: 1.2; letter-spacing: -.015em;
  text-wrap: balance;
}
.question__text em { font-weight: 400; color: var(--zg-blue); }

.abstract { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 16px 40px; }
.abstract__title { font-family: var(--zg-serif); font-size: clamp(28px, 1.2rem + 1.2vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
.abstract__body { font-size: clamp(16.5px, .95rem + .2vw, 18px); line-height: 1.7; color: var(--zg-ink-2); max-width: 70ch; }
.abstract__body strong { color: var(--zg-ink); }

.lessons { margin-top: clamp(64px, 8vw, 104px); }
.lessons__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.lessons__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lesson {
  --accent: var(--zg-blue); --accent-soft: var(--zg-blue-100);
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--zg-panel); border: 1px solid var(--zg-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.lesson::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.lesson--skills { --accent: var(--zg-lav-500); --accent-soft: var(--zg-lav-100); --accent-ink: var(--zg-lav); }
.lesson--transfer { --accent: var(--zg-blue); --accent-soft: var(--zg-blue-100); --accent-ink: var(--zg-blue); }
.lesson--cost { --accent: var(--zg-amber-500); --accent-soft: var(--zg-amber-100); --accent-ink: var(--zg-amber); }
.lesson__num { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); display: flex; justify-content: space-between; gap: 8px; }
.lesson__num span { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--zg-muted); }
.lesson__title { margin-top: 14px; font-family: var(--zg-serif); font-size: clamp(23px, 1rem + .8vw, 28px); line-height: 1.16; letter-spacing: -.012em; text-wrap: balance; }
.lesson__body { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--zg-ink-2); flex: 1; }
.lesson__ev {
  margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--zg-ink-2);
}
.lesson__ev b { font-size: 16px; color: var(--zg-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lesson__link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent-ink);
}
.lesson__link .i { transition: transform .2s var(--ease); }
.lesson__link:hover { color: var(--accent-ink); }
.lesson__link:hover .i { transform: translateX(3px); }

/* ---------- method ---------- */
.loop { padding: 0; overflow: hidden; }
.loop__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 6px clamp(20px, 4vw, 56px);
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 2.6vw, 36px) 0;
}
.loop__epigraph {
  --star-gold: #ffda91;
  position: relative; grid-column: 2; grid-row: 1 / span 2; justify-self: start;
  padding: 2px 31px 2px 19px; border-inline-start: 1px solid rgba(236, 202, 151, .34);
}
.loop__epigraph::before {
  content: ""; position: absolute; left: -5px; top: calc(50% - 6px); width: 9px; height: 12px;
  background: #edc895;
  clip-path: polygon(50% 0, 61% 40%, 100% 50%, 61% 60%, 50% 100%, 39% 60%, 0 50%, 39% 40%);
}
.loop__epigraph i {
  display: block; font: italic 400 clamp(22px, 1.8vw, 28px)/1.15 var(--zg-serif); color: #d7daea;
}
.loop__epigraph > [lang="zh-Hans"] {
  display: block; margin-top: 5px; color: var(--zg-ink-2);
  font: 400 15px/1.55 "Songti SC", "Noto Serif CJK SC", SimSun, serif; letter-spacing: .08em;
}
.epigraph__journey { color: #c9b4f0; }
.epigraph__astra { color: var(--star-gold); }
.epigraph__stars {
  position: absolute; right: 0; top: -2px; width: 26px; height: 24px; pointer-events: none;
  background: radial-gradient(circle at 77% 65%, #b6c6f2 1px, transparent 1.6px);
}
.epigraph__stars::before, .epigraph__stars::after {
  content: ""; position: absolute; background: var(--star-gold);
  clip-path: polygon(50% 0, 61% 40%, 100% 50%, 61% 60%, 50% 100%, 39% 60%, 0 50%, 39% 40%);
}
.epigraph__stars::before { width: 11px; height: 15px; left: 2px; top: 8px; }
.epigraph__stars::after { width: 7px; height: 9px; left: 16px; top: 0; background: #dbcef7; }
.loop__hint { grid-column: 1; font-size: 13px; color: var(--zg-muted); }
.loop__body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 8px; padding: 8px clamp(12px, 2vw, 28px) 0; }
.loop__diagram { min-height: 300px; }
.loop__diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.loop__panel { padding: 12px clamp(8px, 1.6vw, 20px) 24px 0; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.lp__step { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-lav); }
.lp__title { margin-top: 10px; font-family: var(--zg-serif); font-size: clamp(26px, 1.1rem + 1.2vw, 36px); line-height: 1.1; letter-spacing: -.015em; }
.lp__body { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--zg-ink-2); max-width: 46ch; }
.lp__tag { margin-top: 18px; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--zg-blue-100); color: var(--zg-navy); font-size: 13px; font-weight: 600; }
.lp__nav { margin-top: 26px; display: flex; gap: 8px; }
.lp__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--zg-line-strong); background: var(--zg-panel-2); color: var(--zg-ink-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.lp__btn:hover { border-color: var(--zg-navy-2); color: var(--zg-ink); }
.lp__btn--prev .i { transform: scaleX(-1); }
.loop__foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px; padding: 18px clamp(20px, 2.6vw, 36px);
  background: var(--zg-wash); border-top: 1px solid var(--zg-line);
  font-size: 15px; color: var(--zg-ink-2);
}
.loop__foot .i { color: var(--zg-blue); width: 20px; height: 20px; }
.loop__foot strong { color: var(--zg-ink); }

.lnode { cursor: pointer; outline: none; }
.lnode__c { fill: var(--zg-panel); stroke: var(--zg-line-strong); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.lnode__n { font-family: var(--zg-sans); font-size: 14px; font-weight: 700; fill: var(--zg-ink-2); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.lnode__label { font-family: var(--zg-sans); font-size: 13.5px; font-weight: 500; fill: var(--zg-ink-2); pointer-events: none; }
.lnode__ring { fill: none; stroke: var(--zg-blue); stroke-width: 2; opacity: 0; }
.lnode__hit { fill: transparent; }
.lnode:hover .lnode__label { fill: var(--zg-ink); }
.lnode:hover .lnode__c { stroke: var(--zg-blue); }
.lnode:focus-visible .lnode__ring { opacity: 1; }
.lnode.is-active .lnode__c { fill: var(--zg-blue); stroke: var(--zg-blue); filter: drop-shadow(0 0 10px rgba(106, 160, 240, .7)); }
.lnode.is-active .lnode__n { fill: var(--zg-paper); }
.lnode.is-active .lnode__label { fill: var(--zg-ink); font-weight: 600; }
.lnode.is-done .lnode__c { fill: var(--zg-blue-100); stroke: var(--zg-blue-300); }
.loop-track { fill: none; stroke: var(--zg-lav-300); stroke-width: 2; }
.loop-flow { fill: none; stroke: var(--zg-lav-500); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .loop-flow { animation: flow 2.4s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
.loop-arrow { fill: var(--zg-lav-500); }
.loop-chord { fill: none; stroke: var(--zg-lav-500); stroke-width: 1.4; stroke-dasharray: 4 4; }
.loop-chord-label { font-family: var(--zg-sans); font-size: 11.5px; font-style: italic; fill: var(--zg-lav); text-anchor: middle; }
.loop-token { fill: var(--zg-blue); stroke: var(--zg-panel); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(106, 160, 240, .8)); }
.loop-center-k { font-family: var(--zg-sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; fill: var(--zg-muted); text-anchor: middle; }
.loop-center-t { font-family: var(--zg-serif); font-size: 21px; fill: var(--zg-ink); text-anchor: middle; }

.fig-cards { margin-top: 24px; display: grid; gap: 24px; }
.fig-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.fig-card__text { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px); }
.fig-card__text .card__kicker { grid-column: 1; grid-row: 1; align-self: end; }
.fig-card__text .card__title { grid-column: 1; grid-row: 2; }
.fig-card__text .card__body { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: end; }
.fig-card__media { position: relative; min-width: 0; padding-top: 6px; }
.fig-scroll { border-radius: var(--r-md); background: #F3F6FA; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.fig-scroll img { width: 100%; height: auto; }
.fig-card .fig-cap { grid-column: 1 / -1; margin-top: 0; padding-top: 14px; border-top: 1px solid var(--zg-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fig-zoom {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--zg-line-strong); background: var(--zg-panel-2); color: var(--zg-ink-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.fig-zoom:hover { border-color: var(--zg-navy-2); color: var(--zg-ink); }
@media (max-width: 900px) {
  .fig-card__text { grid-template-columns: minmax(0, 1fr); }
  .fig-card__text .card__body { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .fig-card .fig-cap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border: 1px solid var(--zg-line); }
  .fig-scroll img { width: 760px; max-width: none; }
}

.routes { margin-top: clamp(64px, 8vw, 100px); }
.routes__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.route {
  --tone: var(--zg-blue-200); --tone-ink: var(--zg-navy);
  display: flex; flex-direction: column;
  padding: 26px 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, var(--zg-panel)), var(--zg-panel) 74%);
  border: 1px solid color-mix(in srgb, var(--tone) 34%, var(--zg-line));
}
.route--teacher { --tone: var(--zg-teal); --tone-ink: var(--zg-teal); }
.route--skillteacher { --tone: var(--zg-blue); --tone-ink: var(--zg-blue); }
.route--self { --tone: var(--zg-violet); --tone-ink: var(--zg-lav); }
.route__num { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tone-ink); }
.route__title { margin-top: 10px; font-family: var(--zg-serif); font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.route__who { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--zg-line); font-size: 14px; font-weight: 600; color: var(--zg-ink); }
.route__who span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-muted); margin-bottom: 2px; }
.route__body { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--zg-ink-2); }

.skillfree {
  margin-top: 20px; padding: 22px clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-lg); background: var(--zg-lav-100); border: 1px solid var(--zg-lav-300);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 16px 32px; align-items: center;
}
.skillfree__title { font-family: var(--zg-serif); font-size: clamp(21px, 1rem + .6vw, 25px); line-height: 1.2; letter-spacing: -.01em; }
.skillfree__title em { color: var(--zg-lav); }
.skillfree__flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.sf {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; background: var(--zg-panel-2); border: 1px solid var(--zg-line-strong);
  font-size: 13.5px; font-weight: 500; color: var(--zg-ink-2); white-space: nowrap;
}
.sf:not(:last-child) { margin-right: 30px; }
.sf:not(:last-child)::after {
  content: ""; position: absolute; right: -24px; top: 50%; width: 18px; height: 1.5px; background: var(--zg-lav-500);
}
.sf:not(:last-child)::before {
  content: ""; position: absolute; right: -24px; top: calc(50% - 3.5px); width: 7px; height: 7px;
  border-top: 1.5px solid var(--zg-lav-500); border-right: 1.5px solid var(--zg-lav-500); transform: rotate(45deg);
}
.sf b { color: var(--zg-lav); font-weight: 700; }
.sf--strip { background: var(--zg-lav-300); border-color: var(--zg-lav-300); color: var(--zg-ink); text-decoration: line-through; text-decoration-color: rgba(185, 174, 242, .6); }
.sf--eval { background: var(--zg-blue-strong); border-color: var(--zg-blue); color: #fff; font-weight: 600; box-shadow: 0 0 20px -4px rgba(106, 160, 240, .6); }

.datamix { margin-top: clamp(64px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.datamix__text .block-title { margin-top: 12px; }
.tags { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--zg-panel-2); border: 1px solid var(--zg-line-strong); font-size: 13.5px; font-weight: 500; color: var(--zg-ink-2); }

.setup { margin-top: clamp(56px, 7vw, 88px); }
.setup__grid {
  margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--zg-line); border-radius: var(--r-lg); background: var(--zg-panel); overflow: hidden;
}
.setup__grid > div { padding: 18px 20px; border-right: 1px solid var(--zg-line); border-bottom: 1px solid var(--zg-line); }
.setup__grid > div:nth-child(4n) { border-right: 0; }
.setup__grid > div:nth-last-child(-n + 4) { border-bottom: 0; }
.setup__grid dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zg-muted); }
.setup__grid dd { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--zg-ink); font-weight: 500; }

/* ======================================================================
   RESULTS
   ====================================================================== */
.suite { display: grid; gap: 14px; margin-bottom: 28px; }
.suite__row { display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; align-items: start; }
.suite__label { display: flex; flex-direction: column; font-size: 13px; color: var(--zg-muted); padding-top: 5px; }
.suite__label b { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-ink); }
.suite__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.suite__list li { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--zg-panel-2); border: 1px solid var(--zg-line); color: var(--zg-ink-2); }
.suite__list--held li { background: var(--zg-lav-100); border-color: var(--zg-lav-300); }

.board { padding-bottom: 24px; }
.board__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.board__controls { margin-top: 22px; }
.board__legend { margin: 16px 0 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--zg-muted); min-height: 20px; }
.board__note { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--zg-muted); max-width: 110ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--zg-line-strong); background: transparent; color: var(--zg-ink-2);
  font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--zg-navy-2); color: var(--zg-ink); }
.chip[aria-pressed="true"] { background: var(--g, var(--zg-peach)); border-color: var(--g, var(--zg-peach)); color: #0B1120; }
.chip__count { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .62; }

.switch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  border: 1px solid var(--zg-line-strong); background: transparent; color: var(--zg-ink-2);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.switch:hover { border-color: var(--zg-navy-2); color: var(--zg-ink); }
.switch__track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--zg-line-strong); transition: background-color .2s; flex: none; }
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(19, 29, 51, .25); transition: transform .22s var(--ease);
}
.switch[aria-checked="true"] { color: var(--zg-ink); border-color: var(--zg-blue-300); background: var(--zg-blue-100); }
.switch[aria-checked="true"] .switch__track { background: var(--zg-blue); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(16px); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--zg-wash); border: 1px solid var(--zg-line); }
.seg button {
  padding: 6px 13px; border-radius: 999px; border: 0; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--zg-muted); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--zg-ink); }
.seg button[aria-pressed="true"] { background: var(--zg-panel-3); color: var(--zg-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--zg-ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sw { display: inline-block; flex: none; }
.sw--dot { width: 10px; height: 10px; border-radius: 50%; }
.sw--bar { width: 14px; height: 10px; border-radius: 2px; }
.sw--line { width: 18px; height: 3px; border-radius: 2px; }
.sw--cell { width: 16px; height: 12px; border-radius: 3px; }
.sw--base { background: var(--zg-base); }
.sw--ours { background: var(--zg-blue); }
.sw--gain { background: var(--zg-blue); }
.sw--loss { background: var(--zg-amber-500); }
.sw--best, .sw--second { width: 30px; }
.sw--best { background: linear-gradient(90deg, color-mix(in srgb, var(--zg-g-swe) 42%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-pro) 42%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-tool) 42%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-work) 42%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-bio) 42%, var(--zg-panel))); }
.sw--second { background: linear-gradient(90deg, color-mix(in srgb, var(--zg-g-swe) 20%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-pro) 20%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-tool) 20%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-work) 20%, var(--zg-panel)), color-mix(in srgb, var(--zg-g-bio) 20%, var(--zg-panel))); }
.sw--mix { background: var(--zg-lav-500); }
.sw--expert { background: var(--zg-amber-500); }
.sw--b0 { background: var(--zg-base); }
.sw--proj { background: var(--zg-blue-300); }
.sw--mean { background: rgba(76, 195, 201, .3); }
.sw--rating { background: var(--zg-teal); width: 8px; height: 8px; }
.sw--whisker { width: 16px; height: 9px; border-left: 1.5px solid var(--zg-ink-2); border-right: 1.5px solid var(--zg-ink-2); background: linear-gradient(var(--zg-ink-2), var(--zg-ink-2)) center / 100% 1.5px no-repeat; }
.legend--tight { gap: 6px 16px; font-size: 12.5px; }
.legend--cells, .legend--lines { font-size: 12.5px; }

/* tables */
.tbl-wrap {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border: 1px solid var(--zg-line); border-radius: var(--r-md); background: var(--zg-panel);
}
.tbl-wrap:focus-visible { outline-offset: 2px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--zg-line); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl th { font-weight: 600; color: var(--zg-ink-2); }
.tbl thead th { vertical-align: bottom; background: var(--zg-panel-2); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl .num { text-align: right; }
.tbl .dash { color: var(--zg-muted); }

.board .tbl-wrap { margin-inline: calc(-1 * var(--card-pad)); border-radius: 0; border-left: 0; border-right: 0; }
.tbl--board th, .tbl--board td { padding: 10px 9px; }
.tbl--board th:last-child, .tbl--board td:last-child { padding-right: var(--card-pad); }
.tbl--board th:first-child, .tbl--board td:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--zg-panel); padding-left: var(--card-pad);
}
.tbl--board tbody th:first-child { min-width: 220px; }
.tbl--board .group-row th:first-child, .tbl--board .pinned-sep th:first-child { padding-left: var(--card-pad); }
.grp-label { left: var(--card-pad); }
.tbl--board thead th:first-child { background: var(--zg-panel-2); }
.tbl-wrap.is-scrolled .tbl--board th:first-child, .tbl-wrap.is-scrolled .tbl--board td:first-child { box-shadow: 6px 0 12px -8px rgba(0, 0, 0, .75); }
.tbl--board .grp-row th {
  position: static; text-align: center; padding: 10px 8px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-muted);
  border-bottom: 1px solid var(--zg-line); background: var(--zg-panel-2);
}
.tbl--board .grp-row th:first-child { position: sticky; }
.tbl--board .grp-row .grp--ref { color: var(--zg-lav); }
.mh { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.mh__name { font-size: 12.5px; font-weight: 600; color: var(--zg-ink); line-height: 1.25; white-space: nowrap; }
.mh__meta { font-size: 11.5px; font-weight: 500; color: var(--zg-muted); }
.sort-btn {
  display: inline-flex; align-items: flex-end; gap: 4px;
  padding: 4px 6px; margin: -4px -6px; border: 0; background: none; cursor: pointer; border-radius: 8px; color: inherit; text-align: right;
}
.sort-btn:hover { background: var(--zg-wash); }
.sort-ind { width: 8px; height: 12px; flex: none; opacity: .35; position: relative; align-self: center; }
.sort-ind::before, .sort-ind::after { content: ""; position: absolute; left: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.sort-ind::before { top: 0; border-bottom: 4.5px solid currentColor; }
.sort-ind::after { bottom: 0; border-top: 4.5px solid currentColor; }
th[aria-sort="descending"] .sort-ind { opacity: 1; color: var(--zg-blue); }
th[aria-sort="descending"] .sort-ind::before { opacity: .25; }
th[aria-sort="ascending"] .sort-ind { opacity: 1; color: var(--zg-blue); }
th[aria-sort="ascending"] .sort-ind::after { opacity: .25; }
.tbl--board th:first-child .sort-btn { text-align: left; }

.tbl--board td.col-ours, .tbl--board th.col-ours { background: var(--ours-tint); }
.tbl--board thead th.col-ours { box-shadow: inset 0 3px 0 var(--zg-blue); background: color-mix(in srgb, var(--zg-blue) 16%, var(--zg-panel-2)); }
.tbl--board td.col-ours { font-weight: 600; color: var(--zg-ink); }
.tbl--board .col-ref { color: var(--zg-ink-2); }
.tbl--board .col-ref-first { border-left: 2px solid var(--zg-line); }
.tbl--board td.best { background: color-mix(in srgb, var(--g, var(--zg-blue)) 38%, var(--zg-panel)); font-weight: 700; color: #fff; }
.tbl--board td.second { background: color-mix(in srgb, var(--g, var(--zg-blue)) 18%, var(--zg-panel)); }
.tbl--board td.d-pos-1 { background: rgba(106, 160, 240, .12); }
.tbl--board td.d-pos-2 { background: rgba(106, 160, 240, .25); }
.tbl--board td.d-pos-3 { background: rgba(106, 160, 240, .42); color: #fff; }
.tbl--board td.d-neg-1 { background: rgba(215, 136, 74, .14); }
.tbl--board td.d-neg-2 { background: rgba(215, 136, 74, .28); }
.tbl--board td.d-neg-3 { background: rgba(215, 136, 74, .46); color: #fff; }
.tbl--board td.d-base { color: var(--zg-muted); font-style: italic; font-weight: 400; }
.tbl--board .group-row th, .tbl--board .pinned-sep th {
  position: static; max-width: none; padding: 12px 12px 8px; background: var(--zg-inset); text-align: left;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-ink-2);
}
.tbl--board .pinned-sep th { padding: 8px 12px 6px; background: var(--zg-panel-2); color: var(--zg-muted); font-weight: 600; font-size: 11px; }
.grp-label { position: sticky; left: 12px; }
.tbl--board tbody tr:not(.group-row):not(.pinned-sep):hover > * { box-shadow: inset 0 99px 0 rgba(255, 255, 255, .035); }
.tbl--board tbody th[scope="row"] { font-weight: 500; }
.bm { display: flex; flex-direction: column; gap: 2px; }
.bm__name { font-weight: 600; color: var(--zg-ink); font-size: 14px; }
.bm__meta { font-size: 11.5px; color: var(--zg-muted); font-weight: 500; }
.unit-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--zg-lav-100); color: var(--zg-lav); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; vertical-align: 1px; }


/* gains */
.gains { margin-top: 24px; }
.gains__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 32px; align-items: end; }
.gains__tools { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.gains .viz { margin-top: 20px; }
.viz--elo { margin-top: 8px !important; padding-top: 14px; border-top: 1px dashed var(--zg-line); }

/* head-to-head */
.h2h { margin-top: clamp(56px, 7vw, 88px); }
.h2h__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hcard { display: flex; flex-direction: column; padding: 24px; }
.hcard__vs { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-muted); }
.hcard__opp { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--zg-ink); }
.hcard__opp span { font-weight: 500; color: var(--zg-muted); margin-left: 6px; font-size: 14px; }
.hcard__score { margin-top: 18px; font-family: var(--zg-serif); font-size: 64px; line-height: .95; letter-spacing: -.03em; font-weight: 500; color: var(--zg-blue); }
.hcard__score small { font-size: .42em; color: var(--zg-muted); letter-spacing: -.01em; font-weight: 400; margin-left: 2px; }
.hcard__desc { margin-top: 8px; font-size: 14px; color: var(--zg-ink-2); min-height: 2.8em; }
.hstrip { margin-top: 18px; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.hcell { aspect-ratio: 1 / 1.35; border-radius: 3px; background: var(--zg-other); border: 0; padding: 0; cursor: default; }
.hcell--win { background: var(--zg-blue); }
.hcell--tie { background: repeating-linear-gradient(135deg, var(--zg-blue) 0 2px, var(--zg-blue-300) 2px 5px); }
.hcell--loss { background: var(--zg-other); }
.hcell--na { background: transparent; box-shadow: inset 0 0 0 1px var(--zg-line); }
.hcell:hover, .hcell:focus-visible { outline: 2px solid var(--zg-ink); outline-offset: 1px; }
.hkey { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--zg-muted); }
.hkey span { display: inline-flex; align-items: center; gap: 6px; }
.hkey i { width: 10px; height: 12px; border-radius: 2px; display: inline-block; }

/* held-out */
.heldout { margin-top: 24px; }
.heldout__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(24px, 3vw, 48px); align-items: start; margin-bottom: 26px; }
.heldout__text .legend { margin-top: 18px; }
.tbl--ood { min-width: 640px; }
.tbl--ood th:first-child, .tbl--ood td:first-child { min-width: 230px; position: sticky; left: 0; z-index: 2; background: var(--zg-panel); }
.tbl--ood thead th:first-child { background: var(--zg-panel-2); }
.tbl--ood td.col-ours, .tbl--ood th.col-ours { background: var(--ours-tint); }
.tbl--ood thead th.col-ours { box-shadow: inset 0 3px 0 var(--zg-blue); background: color-mix(in srgb, var(--zg-blue) 16%, var(--zg-panel-2)); }
.tbl--ood td.top { font-weight: 700; color: var(--zg-ink); }
.tbl--ood .col-ref { border-left: 2px solid var(--zg-line); color: var(--zg-ink-2); }
.tbl--ood .grp-row th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-muted); text-align: center; padding: 10px 8px 6px; }
.tbl--ood .grp-row .grp--ref { color: var(--zg-lav); }
.dchip { display: inline-block; min-width: 54px; margin-left: 8px; padding: 1px 6px; border-radius: 5px; font-size: 12px; font-weight: 600; text-align: center; }
.dchip--pos { background: var(--zg-blue-100); color: var(--zg-blue); }
.dchip--neg { background: var(--zg-amber-100); color: var(--zg-amber); }

/* ======================================================================
   CHARTS (SVG)
   ====================================================================== */
.viz { position: relative; width: 100%; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz text { font-family: var(--zg-sans); }
.ax-grid { stroke: var(--zg-grid); stroke-width: 1; shape-rendering: crispEdges; }
.ax-zero { stroke: var(--zg-ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.ax-tick { font-size: 11.5px; fill: var(--zg-muted); font-variant-numeric: tabular-nums; }
.ax-title { font-size: 11.5px; fill: var(--zg-muted); font-weight: 500; }
.row-label { font-size: 13.5px; fill: var(--zg-ink); font-weight: 500; }
.row-sub { font-size: 11.5px; fill: var(--zg-muted); }
.val { font-size: 13px; fill: var(--zg-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.val--muted { fill: var(--zg-muted); font-weight: 500; }
.val--pos { fill: var(--zg-blue); }
.val--neg { fill: var(--zg-amber); }
.val--lav { fill: var(--zg-lav); }
.viz .val, .viz .row-sub, .viz .note-text { paint-order: stroke; stroke: var(--viz-bg, var(--zg-panel)); stroke-width: 3px; stroke-linejoin: round; }
.viz svg.is-narrow .row-label { paint-order: stroke; stroke: var(--viz-bg, var(--zg-panel)); stroke-width: 4px; stroke-linejoin: round; }
.mini .viz .val, .mini .viz .row-sub, .mini .viz svg.is-narrow .row-label { stroke: var(--zg-inset); }
.hit { fill: transparent; cursor: default; outline: none; }
.hit-row:focus-visible .hit-bg, .hit-row:hover .hit-bg { fill: rgba(106, 160, 240, .1); }
.hit-row { outline: none; }
.hit-bg { fill: transparent; transition: fill .15s; }
.hit-row:focus-visible .hit-bg { stroke: var(--zg-blue); stroke-width: 1.5; }
.note-text { font-size: 11.5px; fill: var(--zg-muted); font-style: italic; }

/* tooltip */
.tooltip {
  position: fixed; z-index: 80; pointer-events: none;
  min-width: 160px; max-width: 300px;
  padding: 10px 12px 11px; border-radius: 10px;
  background: #1B2541; color: #fff;
  border: 1px solid rgba(160, 180, 220, .18);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .85);
  font-size: 12.5px; line-height: 1.45;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tooltip.is-on { opacity: 1; transform: none; }
.tooltip[hidden] { display: block; visibility: hidden; }
.tt__title { font-weight: 600; font-size: 12.5px; color: #fff; margin-bottom: 6px; }
.tt__row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tt__key { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark-2); }
.tt__key i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.tt__val { font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.tt__note { margin-top: 6px; color: var(--on-dark-muted); font-size: 12px; }

/* ======================================================================
   FINDINGS
   ====================================================================== */
.lesson-group { --accent: var(--zg-blue); --accent-ink: var(--zg-blue); --accent-soft: var(--zg-blue-100); }
.lesson-group + .lesson-group { margin-top: clamp(64px, 8vw, 104px); }
.lesson-group--skills { --accent: var(--zg-lav-500); --accent-ink: var(--zg-lav); --accent-soft: var(--zg-lav-100); }
.lesson-group--cost { --accent: var(--zg-amber-500); --accent-ink: var(--zg-amber); --accent-soft: var(--zg-amber-100); }
.lg-head { display: grid; grid-template-columns: 140px 1fr; gap: 4px 28px; align-items: baseline; margin-bottom: 28px; padding-top: 22px; border-top: 2px solid var(--accent); }
.lg-head__num { grid-row: span 2; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.lg-head__title { font-family: var(--zg-serif); font-size: clamp(28px, 1.2rem + 1.5vw, 42px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.lg-head__lede { margin-top: 8px; font-size: 16.5px; color: var(--zg-ink-2); max-width: 62ch; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.finding { display: flex; flex-direction: column; }
.finding--wide { grid-column: 1 / -1; }
.finding__tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font-size: 13px; color: var(--zg-muted); font-weight: 500; }
.finding__tag b { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.finding__title { margin-top: 14px; font-family: var(--zg-serif); font-size: clamp(22px, 1rem + .8vw, 28px); line-height: 1.18; letter-spacing: -.012em; text-wrap: balance; }
.finding__body { margin-top: 12px; font-size: 15.5px; line-height: 1.62; color: var(--zg-ink-2); max-width: 66ch; }
.finding__aside { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--accent); font-size: 14px; line-height: 1.55; color: var(--zg-muted); max-width: 62ch; }
.finding__tools { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.finding .viz { margin-top: 16px; }
.finding__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 3.4vw, 52px); align-items: start; }
.finding__split--even { align-items: center; }
.finding__charts { display: grid; gap: 22px; }
.mini { padding: 16px 18px 12px; border-radius: var(--r-md); background: var(--zg-inset); border: 1px solid var(--zg-line); }
.mini__title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zg-muted); }
.mini .viz { margin-top: 8px; }
.legend--lines { margin-bottom: 4px; }

.tflow { margin-top: 22px; display: grid; gap: 8px; counter-reset: s; }
.tflow__step {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; background: var(--zg-inset); border: 1px solid var(--zg-line);
  font-size: 14.5px; font-weight: 500; color: var(--zg-ink);
}
.tflow__step + .tflow__step::before, .tflow__split::before {
  content: ""; position: absolute; left: 25px; top: -9px; width: 1.5px; height: 9px; background: var(--zg-line-strong);
}
.tflow__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--zg-lav-100); color: var(--zg-lav); font-size: 12px; font-weight: 700; flex: none; }
.tflow__split { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tflow__out { padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; }
.tflow__out b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tflow__out--keep { background: var(--zg-blue-100); color: var(--zg-ink); border: 1px solid var(--zg-blue-300); }
.tflow__out--keep b { color: var(--zg-blue); }
.tflow__out--swap { background: var(--zg-amber-100); color: var(--zg-ink); border: 1px solid var(--zg-amber-300); }
.tflow__out--swap b { color: var(--zg-amber); }

.cost { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--zg-line-strong); }
.cost__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zg-amber); }
.cost .viz { margin-top: 6px; }

.factrow { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.factrow li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--zg-inset); border: 1px solid var(--zg-line); }
.factrow__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zg-muted); }
.factrow__vals { font-size: 14.5px; color: var(--zg-ink-2); }
.factrow__vals b { font-size: 17px; color: var(--zg-ink); font-variant-numeric: tabular-nums; }
.factrow__vals b.ours { color: var(--zg-blue); }
.factrow__vals b.is-cost { color: var(--zg-amber); }
.factrow__vals i { font-style: normal; margin-inline: 6px; color: var(--zg-line-strong); }

.ctx { padding: 20px; border-radius: var(--r-md); background: var(--zg-inset); border: 1px solid var(--zg-line); }
.ctx__row { margin-top: 16px; }
.ctx__who { font-size: 13px; font-weight: 600; color: var(--zg-ink); margin-bottom: 6px; }
.ctx__bar { display: flex; height: 40px; border-radius: 8px; overflow: hidden; background: var(--zg-panel); box-shadow: inset 0 0 0 1px var(--zg-line); }
.ctx__bar > span {
  flex: 0 0 calc(var(--w) * 1%); min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 3px; font-size: 11.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: clip;
  border-right: 2px solid var(--zg-inset);
}
.ctx__bar > span:last-child { border-right: 0; }
.seg-plan { background: var(--zg-blue-200); color: var(--zg-navy); }
.seg-tools { background: var(--zg-blue-300); color: var(--zg-ink); }
.seg-check { background: #406A9E; color: var(--zg-ink); }
.seg-deliver { background: var(--zg-blue); color: #0B1120; }
.seg-free { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(160, 180, 220, .1) 6px 7px); }
.seg-loop { background: var(--zg-amber-300); color: #F6D9BE; }
.seg-loop--2 { background: #8A5733; }
.seg-out { background: var(--zg-amber-500); color: #1B0F06; }
.ctx__axis { margin-top: 8px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--zg-muted); }
.ctx__bar > span.is-tight { color: transparent; }
.ctx__bar > span.is-tight .i { display: none; }
.ctx__key { display: none; list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--zg-line); flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--zg-ink-2); }
.ctx.has-tight .ctx__key { display: flex; }
.ctx__key li { display: inline-flex; align-items: center; gap: 6px; }
.ctx__key i { width: 12px; height: 10px; border-radius: 2px; display: inline-block; }
.ctx__axis span:last-child { color: var(--zg-amber); font-weight: 600; }

.takeaway {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(64px, 8vw, 104px); padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-xl); color: var(--on-dark);
  background:
    radial-gradient(60% 90% at 90% 10%, rgba(156, 124, 244, .34), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(215, 136, 74, .26), transparent 70%),
    radial-gradient(40% 60% at 50% 50%, rgba(106, 160, 240, .1), transparent 70%),
    linear-gradient(158deg, #121B36, #1A2550);
  box-shadow: var(--shadow-3);
}
.takeaway__kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #CFC6FF; }
.takeaway__text {
  margin-top: 16px; max-width: 26em;
  font-family: var(--zg-serif); font-size: clamp(28px, 1.1rem + 2.2vw, 46px); line-height: 1.14; letter-spacing: -.018em; color: #fff;
  text-wrap: balance;
}
.takeaway__text em { color: #B6D4E6; }
.takeaway__next {
  margin-top: clamp(26px, 3vw, 40px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: 170px 1fr; gap: 8px 28px; font-size: 16px; line-height: 1.6; color: var(--on-dark-2);
}
.takeaway__next p:last-child { max-width: 70ch; }
.takeaway__label { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }

/* ======================================================================
   EFFICIENCY
   ====================================================================== */
.waterfall__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px clamp(24px, 3.4vw, 52px); align-items: start; }
.waterfall__chart .legend { margin-bottom: 8px; }
.kv { margin-top: 22px; display: grid; gap: 1px; background: var(--zg-line); border: 1px solid var(--zg-line); border-radius: var(--r-md); overflow: hidden; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--zg-panel); }
.kv dt { font-size: 13px; color: var(--zg-muted); }
.kv dd { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--zg-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv dd b { font-size: 16px; color: var(--zg-ink); }
.mx { margin-top: 24px; }
.mx__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(24px, 3.4vw, 56px); align-items: center; }
.specs { margin-top: 20px; display: grid; gap: 10px; }
.specs > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; font-size: 14px; line-height: 1.5; padding-top: 10px; border-top: 1px solid var(--zg-line); }
.specs dt { font-weight: 700; color: var(--zg-ink); font-size: 13px; letter-spacing: .04em; }
.specs dd { color: var(--zg-ink-2); }
.callout4 { margin-top: 22px; display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; border-radius: var(--r-md); background: var(--zg-blue-100); }
.callout4__num { font-family: var(--zg-serif); font-size: 56px; line-height: 1; letter-spacing: -.03em; color: var(--zg-blue); font-weight: 500; }
.callout4__num span { font-weight: 400; }
.callout4__label { font-size: 15px; font-weight: 600; color: var(--zg-ink); }
.mx__serving { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--zg-line); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 24px clamp(24px, 3.4vw, 52px); align-items: start; }
.mx__serving-title { margin-top: 6px; font-family: var(--zg-serif); font-size: clamp(21px, 1rem + .8vw, 27px); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; color: var(--zg-ink); }
.mx__serving-fig { margin: 0; display: grid; gap: 14px; }
.mx__serving-fig .fig-cap { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fig-scroll--pad { padding: 14px 16px; background: #FFFFFF; }
@media (max-width: 960px) {
  .mx__serving { grid-template-columns: minmax(0, 1fr); }
  .mx__serving-fig .fig-cap { flex-direction: column; align-items: flex-start; }
}
.ai4ai { margin-top: 24px; }
.ai4ai__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(24px, 3.4vw, 56px); align-items: start; }
.insights { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.insights li { font-size: 14.5px; line-height: 1.55; color: var(--zg-ink-2); padding-left: 16px; position: relative; }
.insights li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--zg-blue); }
.insights b { color: var(--zg-ink); }
.levels { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 6px; }
.levels li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: baseline; font-size: 13px; color: var(--zg-ink-2); }
.levels b { font-size: 12px; color: var(--zg-blue); letter-spacing: .04em; }
.ai4ai__chart .legend { margin-bottom: 6px; }

/* ======================================================================
   RELEASE
   ====================================================================== */
.release { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rcard {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 120px), var(--zg-panel); border: 1px solid var(--zg-line); box-shadow: var(--shadow-2);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.rcard__icon { width: 30px; height: 30px; color: var(--zg-blue); }
.rcard__title { margin-top: 10px; font-family: var(--zg-serif); font-size: 25px; line-height: 1.15; letter-spacing: -.01em; }
.rcard__body { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--zg-ink-2); flex: 1; }
.rcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 60px; }
.rcard__foot { margin-top: 20px; }
.rcard__host { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-muted); margin-bottom: 3px; }
.rcard__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.rcard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rcard__link:focus-visible { outline: none; }
.rcard:focus-within { outline: 2px solid var(--zg-blue); outline-offset: 3px; }
.rcard__qr { width: 64px; height: 64px; flex: none; padding: 5px; border-radius: 10px; background: #fff; }

/* ======================================================================
   CITE + TEAM
   ====================================================================== */
.bib { position: relative; border-radius: var(--r-lg); background: var(--zg-panel); border: 1px solid var(--zg-line); box-shadow: var(--shadow-2); overflow: hidden; }
.bib__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--zg-line); background: var(--zg-panel-2); }
.bib__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--zg-muted); }
.bib__copy {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--zg-line-strong); background: var(--zg-panel-3); color: var(--zg-ink); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bib__copy:hover { border-color: var(--zg-navy-2); }
.bib__copy.is-done { background: var(--zg-blue-strong); border-color: var(--zg-blue); color: #fff; }
.bib__code { margin: 0; padding: 20px 22px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--zg-ink); tab-size: 2; }
.bib__code .k { color: var(--zg-blue); font-weight: 600; }
.bib__code .f { color: var(--zg-lav); }
@media (max-width: 600px) {
  /* phones: wrap long fields with a hanging indent so the whole entry reads without sideways scrolling */
  .bib__code { white-space: pre-wrap; overflow-wrap: break-word; padding: 16px 16px 18px; font-size: 12.5px; line-height: 1.65; }
}
.bib__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.team { margin-top: clamp(56px, 7vw, 88px); }
.team__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--zg-line); }
.team__affils { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.team__affils li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--zg-ink-2); }
.team__affils img { width: 44px; height: 44px; }
.team__grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px clamp(24px, 3vw, 48px); }
.team__role { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zg-ink); }
.team__role span { margin-left: 8px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--zg-muted); }
.team__names { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; color: var(--zg-ink-2); }
.team__col--wide .team__names { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; }
.team__contact { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--zg-ink-2); }
.team__contact .i { color: var(--zg-blue); }

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer { margin-top: clamp(24px, 4vw, 48px); background: rgba(5, 8, 16, .86); border-top: 1px solid rgba(255, 255, 255, .06); color: var(--on-dark-2); }
.footer__inner { padding-block: 52px 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer .wordmark { color: #fff; font-size: 21px; }
.footer__tag { margin-top: 14px; font-family: var(--zg-serif); font-size: 19px; line-height: 1.35; color: var(--on-dark-2); max-width: 32em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: flex-end; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--on-dark); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.footer__links a[href]:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer__base { grid-column: 1 / -1; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--on-dark-muted); }
.footer__seals { display: flex; gap: 12px; opacity: .8; }
.footer__seals img { width: 34px; height: 34px; }

/* ======================================================================
   LIGHTBOX
   ====================================================================== */
.lightbox { width: min(96vw, 1600px); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--zg-panel); box-shadow: var(--shadow-3); color: var(--zg-ink); }
.lightbox::backdrop { background: rgba(3, 6, 14, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--zg-line); }
.lightbox__title { font-size: 14px; font-weight: 600; }
.lightbox__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--zg-line-strong); background: var(--zg-panel-2); color: var(--zg-ink); cursor: pointer; }
.lightbox__body { padding: 16px; overflow: auto; max-height: calc(92vh - 60px); }
.lightbox__body img { width: 100%; height: auto; min-width: 900px; padding: 14px; border-radius: 10px; background: #F3F6FA; }


/* ---------- additions for script-built parts ---------- */
.sw--ourscol { background: var(--ours-tint); box-shadow: inset 0 2px 0 var(--zg-blue), inset 0 0 0 1px var(--zg-line); }
.sw--dpos { background: linear-gradient(90deg, rgba(106, 160, 240, .14), rgba(106, 160, 240, .46)); }
.sw--dneg { background: linear-gradient(90deg, rgba(215, 136, 74, .16), rgba(215, 136, 74, .5)); }
.legend__note { flex-basis: 100%; font-size: 12.5px; color: var(--zg-muted); }
.tbl--board.is-delta td { font-weight: 600; }
.tbl--board.is-delta td.d-base { font-weight: 400; }

.mx-cell { transform-box: fill-box; transform-origin: center; }
.js .reveal:not(.is-in) .mx-cell { opacity: 0; }
.js .reveal.is-in .mx-cell { animation: cell-in .45s var(--ease) both; animation-delay: calc(var(--i) * 2.6ms + 120ms); }
@keyframes cell-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.mx__visual { display: flex; flex-direction: column; align-items: center; }
.mx__visual .viz { display: flex; flex-direction: column; align-items: center; }
.mx-legend { width: 100%; margin-top: 14px; display: grid; gap: 6px; font-size: 13.5px; color: var(--zg-ink-2); }
.mx-legend p { display: flex; align-items: center; gap: 10px; }
.mx-legend b { font-variant-numeric: tabular-nums; color: var(--zg-ink); min-width: 2.2em; text-align: right; }
.mx-key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.mx-key--mx { background: var(--zg-blue); }
.mx-key--w8 { background: var(--zg-lav-500); }

.finding__split--table { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.finding__tools--top { margin-top: 0; margin-bottom: 12px; }
.abl-legend { margin-top: 22px; display: grid; gap: 10px; }
.abl-legend > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; font-size: 14px; line-height: 1.45; padding-top: 10px; border-top: 1px solid var(--zg-line); }
.abl-legend dt { font-weight: 700; color: var(--zg-ink); }
.abl-legend dd { color: var(--zg-ink-2); }
.tbl--abl { font-size: 13.5px; }
.tbl--abl th, .tbl--abl td { padding: 8px 10px; }
.tbl--abl thead th { white-space: nowrap; line-height: 1.25; vertical-align: bottom; }
.tbl--abl thead .two { display: inline-block; text-align: right; white-space: normal; width: min-content; }
.tbl--abl tbody th { font-weight: 500; color: var(--zg-ink); white-space: normal; min-width: 150px; }
.tbl--abl td.col-ours, .tbl--abl th.col-ours { background: var(--ours-tint); }
.tbl--abl thead th.col-ours { box-shadow: inset 0 3px 0 var(--zg-blue); background: color-mix(in srgb, var(--zg-blue) 16%, var(--zg-panel-2)); color: var(--zg-ink); }
.tbl--abl td.best { background: color-mix(in srgb, var(--g, var(--zg-blue)) 38%, var(--zg-panel)); font-weight: 700; color: #fff; }
.tbl--abl td.second { background: color-mix(in srgb, var(--g, var(--zg-blue)) 18%, var(--zg-panel)); }
.tbl--ood tbody th { font-weight: 500; color: var(--zg-ink); }
.mini__foot { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--zg-muted); }
.lp__btn span { pointer-events: none; }
.hkey i.hcell--win { background: var(--zg-blue); }
.hkey i.hcell--loss { background: var(--zg-other); }
.hkey i.hcell--na { background: transparent; box-shadow: inset 0 0 0 1px var(--zg-line-strong); }
.hkey i.hcell--tie { background: repeating-linear-gradient(135deg, var(--zg-blue) 0 2px, var(--zg-blue-300) 2px 5px); }
@media (max-width: 900px) {
  .finding__split--table { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1100px) {
  .release { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .waterfall__grid, .ai4ai__grid { grid-template-columns: minmax(0, 1fr); }
  .mx__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__col--wide { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 900px) {
  .lessons__grid, .routes__grid, .h2h__grid { grid-template-columns: minmax(0, 1fr); }
  .lesson { padding: 24px 22px 20px; }
  .loop__body { grid-template-columns: minmax(0, 1fr); }
  .loop__panel { padding: 0 clamp(8px, 2vw, 16px) 24px; min-height: 0; }
  .loop__diagram { min-height: 0; }
  .skillfree { grid-template-columns: minmax(0, 1fr); }
  .datamix { grid-template-columns: minmax(0, 1fr); }
  .setup__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup__grid > div:nth-child(4n) { border-right: 1px solid var(--zg-line); }
  .setup__grid > div:nth-child(2n) { border-right: 0; }
  .setup__grid > div:nth-last-child(-n + 4) { border-bottom: 1px solid var(--zg-line); }
  .setup__grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .gains__head { grid-template-columns: minmax(0, 1fr); }
  .gains__tools { align-items: flex-start; }
  .heldout__grid { grid-template-columns: minmax(0, 1fr); }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .finding__split { grid-template-columns: minmax(0, 1fr); }
  .mx__grid { grid-template-columns: minmax(0, 1fr); }
  .lg-head { grid-template-columns: minmax(0, 1fr); }
  .lg-head__num { grid-row: auto; }
  .suite__row { grid-template-columns: minmax(0, 1fr); }
  .question, .abstract { grid-template-columns: minmax(0, 1fr); }
  .takeaway__next { grid-template-columns: minmax(0, 1fr); }
  .hcard__desc { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tbl--board tbody th:first-child { min-width: 0; width: 138px; max-width: 138px; white-space: normal; }
  .tbl--ood th:first-child, .tbl--ood td:first-child { min-width: 0; width: 128px; max-width: 128px; white-space: normal; }
  .tbl--ood { min-width: 560px; }
  .tbl--board thead tr:last-child th:first-child { width: 138px; }
  .tbl--board .bm__name { font-size: 13px; line-height: 1.3; }
  .tbl--board .unit-tag { margin-left: 0; margin-top: 2px; }
  .tbl--board th, .tbl--board td { padding: 9px 8px; }
  .grp-label { white-space: normal; display: inline-block; max-width: calc(100vw - 64px); }
  .release { grid-template-columns: minmax(0, 1fr); }
  .team__grid { grid-template-columns: minmax(0, 1fr); }
  .team__col--wide .team__names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__links { justify-content: flex-start; margin-left: -12px; }
  .setup__grid { grid-template-columns: minmax(0, 1fr); }
  .setup__grid > div { border-right: 0 !important; border-bottom: 1px solid var(--zg-line) !important; }
  .setup__grid > div:last-child { border-bottom: 0 !important; }
  .video-sec__head { flex-direction: column; align-items: flex-start; }
  .loop__head { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .loop__epigraph { grid-column: 1; grid-row: auto; }
  .tflow__split { grid-template-columns: minmax(0, 1fr); }
  .lessons__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .board__head { flex-direction: column; }
  .rcard__qr { width: 56px; height: 56px; }
  .hero__kicker { border-radius: 16px; }
  .hero__kicker span[aria-hidden] { display: none; }
  .kv > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .callout4__num { font-size: 46px; }
  .hcard__score { font-size: 54px; }
  .sf:not(:last-child) { margin-right: 0; }
  .sf:not(:last-child)::before, .sf:not(:last-child)::after { display: none; }
  .skillfree__flow { flex-direction: column; align-items: stretch; gap: 0; }
  .skillfree__flow .sf { justify-content: center; }
  .skillfree__flow .sf + .sf { margin-top: 18px; }
  .skillfree__flow .sf + .sf::after { content: ""; display: block !important; position: absolute; left: 50%; top: -15px; right: auto; width: 1.5px; height: 12px; background: var(--zg-lav-500); }
}

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

@media print {
  .site-nav, .video-sec, .fig-zoom, .tooltip { display: none !important; }
  .hero { padding-top: 40px; }
  .js .reveal { opacity: 1; transform: none; }
}

.nw { white-space: nowrap; }
.roster { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--zg-line-strong); }
.roster__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zg-muted); }
.roster__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.roster__list li { padding: 5px 10px; border-radius: 999px; background: var(--zg-panel-2); border: 1px solid var(--zg-line-strong); font-size: 13px; font-weight: 500; color: var(--zg-ink-2); white-space: nowrap; }
.roster__note { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--zg-muted); }

/* ======================================================================
   BACKGROUNDS + COLOUR (dark edition)
   Layers, back to front: page gradient, ambient glows that follow the section in
   view (body[data-tone], set by bg.js), the trajectory canvas (bg.js), film grain;
   then per-section dividers, glows, a fine grid and an outlined section numeral.
   ====================================================================== */
@property --tone-a { syntax: '<color>'; inherits: true; initial-value: #6AA0F0; }
@property --tone-b { syntax: '<color>'; inherits: true; initial-value: #9C7CF4; }
@property --tone-c { syntax: '<color>'; inherits: true; initial-value: #4CC3C9; }

html { background: var(--zg-paper); }
body {
  background: transparent;
  --tone-a: var(--zg-blue); --tone-b: var(--zg-violet); --tone-c: var(--zg-peach);
  transition: --tone-a 1.6s var(--ease), --tone-b 1.6s var(--ease), --tone-c 1.6s var(--ease);
}
body[data-tone="overview"]   { --tone-a: var(--zg-violet);    --tone-b: var(--zg-peach);    --tone-c: var(--zg-blue); }
body[data-tone="method"]     { --tone-a: var(--zg-lav-500);   --tone-b: var(--zg-blue);     --tone-c: var(--zg-teal); }
body[data-tone="results"]    { --tone-a: var(--zg-blue);      --tone-b: var(--zg-teal);     --tone-c: var(--zg-gold); }
body[data-tone="skills"]     { --tone-a: var(--zg-violet);    --tone-b: var(--zg-lav-500);  --tone-c: var(--zg-blue); }
body[data-tone="transfer"]   { --tone-a: var(--zg-blue);      --tone-b: var(--zg-teal);     --tone-c: var(--zg-violet); }
body[data-tone="cost"]       { --tone-a: var(--zg-amber-500); --tone-b: var(--zg-rose);     --tone-c: var(--zg-violet); }
body[data-tone="efficiency"] { --tone-a: var(--zg-teal);      --tone-b: var(--zg-blue);     --tone-c: var(--zg-green); }
body[data-tone="release"]    { --tone-a: var(--zg-violet);    --tone-b: var(--zg-rose);     --tone-c: var(--zg-peach); }
body[data-tone="cite"]       { --tone-a: var(--zg-blue);      --tone-b: var(--zg-lav-500);  --tone-c: var(--zg-teal); }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -12%, #13204A 0%, rgba(19, 32, 74, 0) 62%),
    linear-gradient(180deg, #0B1224 0%, var(--zg-paper) 70%);
}
.bg__glow { position: absolute; border-radius: 50%; will-change: transform; }
.bg__glow--a {
  width: 78vmax; height: 78vmax; top: -38vmax; right: -30vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone-a) 30%, transparent), transparent 74%);
}
.bg__glow--b {
  width: 84vmax; height: 84vmax; bottom: -46vmax; left: -36vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone-b) 24%, transparent), transparent 74%);
}
.bg__glow--c {
  width: 54vmax; height: 54vmax; top: 34%; left: 52%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone-c) 13%, transparent), transparent 74%);
}
.bg__flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg__grain {
  position: absolute; inset: 0; opacity: .085; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
@media (prefers-reduced-motion: no-preference) {
  .bg__glow--a { animation: bg-drift-a 46s ease-in-out infinite alternate; }
  .bg__glow--b { animation: bg-drift-b 58s ease-in-out infinite alternate; }
  .bg__glow--c { animation: bg-drift-c 40s ease-in-out infinite alternate; }
  .hero__backdrop::before { animation: aurora 24s ease-in-out infinite alternate; }
}
@keyframes bg-drift-a { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.08); } }
@keyframes bg-drift-b { to { transform: translate3d(10vmax, -6vmax, 0) scale(1.1); } }
@keyframes bg-drift-c { to { transform: translate3d(-14vmax, 10vmax, 0) scale(.92); } }
@keyframes aurora { to { transform: translate3d(-3%, 2.5%, 0) scale(1.07); } }

/* ---------- sections: hues, dividers, glows, grid, numerals ---------- */
#video      { --hue-a: var(--zg-blue);     --hue-b: var(--zg-violet); }
#overview   { --num: "01"; --hue-a: var(--zg-violet);  --hue-b: var(--zg-peach); }
#method     { --num: "02"; --hue-a: var(--zg-lav-500); --hue-b: var(--zg-teal); }
#results    { --num: "03"; --hue-a: var(--zg-blue);    --hue-b: var(--zg-teal); }
#findings   { --num: "04"; --hue-a: var(--zg-violet);  --hue-b: var(--zg-amber-500); }
#efficiency { --num: "05"; --hue-a: var(--zg-teal);    --hue-b: var(--zg-blue); }
#release    { --num: "06"; --hue-a: var(--zg-violet);  --hue-b: var(--zg-rose); }
#cite       { --num: "07"; --hue-a: var(--zg-blue);    --hue-b: var(--zg-lav-500); }

.section { position: relative; isolation: isolate; overflow-x: clip; --hue-a: var(--zg-blue); --hue-b: var(--zg-violet); }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 3%, color-mix(in srgb, var(--hue-a) 55%, transparent) 32%, color-mix(in srgb, var(--hue-b) 55%, transparent) 68%, transparent 97%) top / 100% 1px no-repeat,
    radial-gradient(48% 560px at 10% 0, color-mix(in srgb, var(--hue-a) 15%, transparent), transparent 72%),
    radial-gradient(34% 460px at 96% 2%, color-mix(in srgb, var(--hue-b) 12%, transparent), transparent 72%);
}
.section::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 780px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(190, 205, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 205, 235, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(56% 74% at 26% 0, #000 0%, transparent 76%);
  mask-image: radial-gradient(56% 74% at 26% 0, #000 0%, transparent 76%);
}
.section > .container { position: relative; }
.section > .container::before {
  content: var(--num, ""); position: absolute; z-index: -1; pointer-events: none;
  top: -.2em; right: var(--gutter);
  font-family: var(--zg-serif); font-style: italic; font-weight: 400;
  font-size: clamp(150px, 19vw, 300px); line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--hue-a), var(--hue-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .08em; opacity: .16;
}

/* gradient accent words in titles follow the section hues */
.sec-title em, .question__text em, .video-sec__title em, .lg-head__title em {
  font-weight: 400;
  background: linear-gradient(100deg, var(--hue-a, var(--zg-blue)) 0%, var(--hue-b, var(--zg-lav)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .07em; margin-right: -.07em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.takeaway__text em {
  background: linear-gradient(100deg, #8EC0FF 0%, #B9A6FF 55%, #FFC9A0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .07em; margin-right: -.07em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- stats: one hue per number ---------- */
.stat:nth-child(1) { --s: var(--zg-blue); }
.stat:nth-child(2) { --s: var(--zg-teal); }
.stat:nth-child(3) { --s: var(--zg-gold); }
.stat:nth-child(4) { --s: var(--zg-peach); }
.stat:nth-child(5) { --s: var(--zg-violet); }
.stat:nth-child(6) { --s: var(--zg-rose); }
.stat::after {
  content: ""; position: absolute; left: clamp(14px, 1.5vw, 24px); top: 0;
  width: 34px; height: 2px; border-radius: 0 0 2px 2px;
  background: var(--s); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--s) 70%, transparent);
}

/* ---------- benchmark groups ---------- */
[data-g="swe"]  { --g: var(--zg-g-swe); }
[data-g="pro"]  { --g: var(--zg-g-pro); }
[data-g="tool"] { --g: var(--zg-g-tool); }
[data-g="work"] { --g: var(--zg-g-work); }
[data-g="bio"]  { --g: var(--zg-g-bio); }
.chip[data-g]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--g) 70%, transparent); }
.chip[data-g]:hover { border-color: color-mix(in srgb, var(--g) 60%, var(--zg-line-strong)); }
.chip[data-g][aria-pressed="true"]::before { background: #0B1120; box-shadow: none; opacity: .6; }
.chip[aria-pressed="true"] { box-shadow: 0 0 22px -6px color-mix(in srgb, var(--g, var(--zg-peach)) 80%, transparent); }
.tbl--board tr[data-g] > th:first-child, .tbl--abl tr[data-g] > th:first-child { box-shadow: inset 3px 0 0 var(--g); }
.tbl--board tbody tr[data-g]:hover > th:first-child { box-shadow: inset 3px 0 0 var(--g), inset 0 99px 0 rgba(255, 255, 255, .035); }
.tbl-wrap.is-scrolled .tbl--board tr[data-g] > th:first-child { box-shadow: inset 3px 0 0 var(--g), 6px 0 12px -8px rgba(0, 0, 0, .75); }
.tbl--board .group-row[data-g] th {
  background: color-mix(in srgb, var(--g) 12%, var(--zg-inset));
  color: color-mix(in srgb, var(--g) 74%, #fff);
  box-shadow: inset 3px 0 0 var(--g);
}
.suite__list li[data-g] {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--g) 11%, var(--zg-panel-2));
  border-color: color-mix(in srgb, var(--g) 40%, var(--zg-line));
}
.suite__list li[data-g]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.suite__list--held li { color: var(--zg-lav); }

/* ---------- surfaces with colour ---------- */
.lesson {
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%), var(--zg-panel);
}
.lesson::before { box-shadow: 0 0 24px 2px color-mix(in srgb, var(--accent) 65%, transparent); }
.lesson-group .card {
  background: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 64%), var(--zg-panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 50%, transparent), var(--shadow-2);
}
.lg-head { border-top: 2px solid; border-image: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent) 55%, transparent) 1; }
.lg-head__num { text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.mini, .ctx { --viz-bg: var(--zg-inset); }
.callout4 { background: linear-gradient(110deg, color-mix(in srgb, var(--zg-teal) 16%, var(--zg-panel)), color-mix(in srgb, var(--zg-blue) 16%, var(--zg-panel))); }
.callout4__num {
  background: linear-gradient(100deg, var(--zg-teal), var(--zg-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em;
}
.release .rcard:nth-child(1) { --r: var(--zg-blue); }
.release .rcard:nth-child(2) { --r: var(--zg-teal); }
.release .rcard:nth-child(3) { --r: var(--zg-violet); }
.release .rcard:nth-child(4) { --r: var(--zg-peach); }
.release .rcard { background: radial-gradient(110% 70% at 0% 0%, color-mix(in srgb, var(--r) 15%, transparent), transparent 62%), var(--zg-panel); }
.release .rcard:hover { border-color: color-mix(in srgb, var(--r) 55%, var(--zg-line)); box-shadow: var(--shadow-3), 0 26px 60px -30px color-mix(in srgb, var(--r) 60%, transparent); }
.release .rcard__icon { color: var(--r); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--r) 55%, transparent)); }
.release .rcard__link { color: var(--r); }
.takeaway::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(156, 124, 244, .75), rgba(106, 160, 240, .35) 45%, rgba(215, 136, 74, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.video-frame { box-shadow: 0 0 0 1px rgba(160, 180, 220, .14), 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 140px -40px rgba(106, 160, 240, .45); }
.stats__grid { box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 255, 255, .02), 0 30px 120px -50px rgba(156, 124, 244, .45); }
.team__affils img { filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }

@media (max-width: 640px) {
  .section > .container::before { font-size: 104px; top: -.42em; opacity: .1; }
  .section::after { height: 560px; }
}
@media print {
  .bg { display: none; }
  html, body { background: #fff; }
}
