/* CAAI: the show. Homepage styles.
   Aptigram's design language (full-width colour bands, one idea per band, pill eyebrows,
   annotated sketch illustrations with callouts) in CAAI's own type and palette.
   Illustrations are drawn in HTML and SVG (.i-fit blocks), designed at 604px wide and
   zoomed down as one piece in narrower frames. */

@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* CAAI cobalt */
  --cobalt: #2546F0;
  --cobalt-deep: #1B36C9;
  --cobalt-ink: #1A2FA8;
  --cobalt-tint: #EDF0FF;
  --cobalt-2: #3B5BFF;
  --on-cobalt: #DCE3FF;
  /* Grounds and ink */
  --white: #ffffff;
  --mist: #F5F7FB;
  --line: #E3E6EB;
  --ink: #0E1116;
  --ink-2: #4A5260;
  /* Night (dark bands) */
  --night: #0F1530;
  --night-2: #1B2347;
  --on-night: #C3CBE6;
  /* The spark: one orange accent */
  --spark: #FF5A1F;
  --spark-ink: #C2410C;
  --spark-tint: #FFF0E8;
  /* Status lights */
  --st-idle: #A3ACB9;
  --st-working: #2BD47D;
  --st-blocked: #EF4444;
  --st-signoff: #F5A524;
  /* Cast */
  --c-meridian: #2546F0; --c-hatch: #F26B1D; --c-vector: #4D7C0F; --c-atlas: #4A4D52;
  --c-bitty: #13A37F; --c-echo: #D63B74; --c-tally: #9A7400;
  /* Aptigram's own colours, used only in the "Powered by Aptigram Studio" band */
  --forest: #0F3B38; --forest-2: #14514C; --teal: #198F87; --teal-bright: #3FC1B4; --teal-tint: #E8F4F2; --on-forest: #cfe3e0;

  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 32px;
  --hdr-bg: var(--cobalt);
  --ease: cubic-bezier(.25, .46, .45, .94);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--hdr-bg); transition: background-color .5s ease;
}
a { color: var(--cobalt-ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure { margin: 0; }
[data-block] { scroll-margin-top: 80px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo svg { width: 36px; height: 36px; flex: 0 0 auto; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .wm b { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.logo .wm small { font-size: 11px; font-weight: 500; opacity: .8; margin-top: 3px; letter-spacing: .01em; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.hdr .strip { height: 6px; background: var(--spark); }
.hdr .hb { background: var(--cobalt); transition: background-color .5s ease; }
.hdr .bar {
  max-width: 1180px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--white);
  transition: color .35s ease;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .cta { padding: 9px 18px; border-radius: 999px; background: var(--white); color: var(--cobalt-ink); }
.nav .cta:hover { text-decoration: none; background: var(--cobalt-tint); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--spark); box-shadow: 0 0 0 3px rgba(255, 90, 31, .25); }
.hdr.past .bar { color: var(--ink); }
.hdr.past .nav .cta { background: var(--cobalt); color: var(--white); }
.menu-btn { display: none; border: 0; background: rgba(255,255,255,.14); color: inherit; font: 500 15px var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.hdr.past .menu-btn { background: var(--mist); }
@media (max-width: 1039px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); color: var(--ink); padding: 8px var(--gutter) 20px; box-shadow: 0 16px 30px rgba(14, 17, 22, .12); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .cta { margin-top: 14px; text-align: center; border: 0; background: var(--cobalt); color: var(--white); }
  .hdr.open .nav { display: flex; }
  .hdr .bar { position: relative; }
}

/* ---------- Bands ---------- */
.band { --band-bg: var(--white); position: relative; display: flex; justify-content: center; background: var(--band-bg); color: var(--ink); }
.band.mist { --band-bg: var(--mist); }
.band.tint { --band-bg: var(--cobalt-tint); }
.band.cobalt { --band-bg: var(--cobalt); color: var(--white); }
.band.night { --band-bg: var(--night); color: var(--white); }
.band.forest { --band-bg: var(--forest); color: var(--white); }
.band.statement { min-height: min(560px, 80svh); align-items: center; }
.wrap {
  width: 100%; max-width: 1180px; padding-block: 104px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  text-align: center;
}
.wrap.left { text-align: left; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.d-84 { font-size: clamp(46px, 8.4vw, 88px); }
.d-60 { font-size: clamp(34px, 5.6vw, 58px); }
.d-48 { font-size: clamp(30px, 4.4vw, 46px); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 680px; margin-inline: auto; text-wrap: pretty; }
.wrap.left .lede { margin-inline: 0; }
.band.cobalt .lede { color: var(--on-cobalt); }
.band.night .lede { color: var(--on-night); }
.head .display { margin-bottom: 20px; }
.muted-h { display: block; color: #9AA1AD; }
.accent-h { display: block; color: var(--cobalt); }
.num { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }

.eyebrow { margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
  border-radius: 999px; padding: 6px 14px; background: var(--cobalt-tint); color: var(--cobalt-ink);
}
.pill::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 999px; background: var(--cobalt); }
.pill.live::before { background: var(--spark); box-shadow: 0 0 0 3px rgba(255, 90, 31, .25); }
.band.tint .pill { background: var(--white); }
.band.cobalt .pill { background: rgba(255,255,255,.16); color: var(--white); }
.band.cobalt .pill::before { background: var(--spark); }
.band.night .pill { background: rgba(255,255,255,.1); color: var(--white); }
.band.night .pill::before { background: var(--st-blocked); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; font-weight: 600; font-size: 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; font-family: var(--sans); transition: background-color .2s ease; }
.btn.solid { background: var(--white); color: var(--cobalt-ink); }
.btn.solid:hover { background: var(--cobalt-tint); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.85); background: transparent; color: var(--white); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.dark { background: var(--cobalt); color: var(--white); }
.btn.dark:hover { background: var(--cobalt-deep); }
.btn .play { width: 22px; height: 22px; border-radius: 999px; background: var(--spark); display: grid; place-items: center; }
.btn .play::after { content: ""; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.wrap.left .actions { justify-content: flex-start; }

.more { margin-top: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 17px; color: var(--cobalt-ink); text-decoration: none; }
.link-arrow span { border-bottom: 1.5px solid currentColor; }
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.band.night .link-arrow, .band.cobalt .link-arrow { color: var(--white); }
.fine { font-size: 13.5px; color: var(--ink-2); margin-top: 28px; }
.band.night .fine { color: var(--on-night); }

/* ---------- Annotated stage (callouts beside the art) ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 32px; max-width: 640px; margin: 56px auto 0; text-align: left; }
.stage .art { grid-column: 1 / -1; order: -1; margin-bottom: 14px; }
.callouts { display: contents; }
.co { position: relative; padding-left: 28px; }
.co .ln { display: none; }
.co .pd { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 999px; background: var(--cobalt); border: 3px solid var(--band-bg); }
.co .ct { font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
.co .cd { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.band.night .co .pd, .band.night .co .ln { background: var(--spark); }
.band.night .co .ct { color: var(--white); }
.band.night .co .cd { color: var(--on-night); }
@media (min-width: 560px) { .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .stage { grid-template-columns: 200px 640px 200px; column-gap: 38px; width: 1116px; max-width: none; align-items: stretch; position: relative; }
  .stage .art { grid-column: 2; grid-row: 1; order: 0; margin-bottom: 0; }
  .callouts { display: flex; flex-direction: column; justify-content: space-evenly; gap: 28px; grid-row: 1; position: relative; z-index: 2; }
  .callouts.l { grid-column: 1; text-align: right; }
  .callouts.r { grid-column: 3; }
  .co { padding-left: 0; }
  .co .ln { display: block; position: absolute; top: 14px; width: 58px; height: 1.5px; background: var(--cobalt); transform: rotate(var(--a, 0deg)); }
  .callouts.l .co .ln { left: calc(100% + 12px); transform-origin: left center; }
  .callouts.r .co .ln { right: calc(100% + 12px); transform-origin: right center; }
  .co .pd { top: 7px; border-color: var(--white); }
  .callouts.l .co .pd { left: calc(100% + 62px); }
  .callouts.r .co .pd { left: auto; right: calc(100% + 62px); }
  .band.night .co .pd { border-color: var(--night); }
  .band.tint .co .pd { border-color: var(--cobalt-tint); }
  .stage.pinned .callouts { display: block; }
  .stage.pinned .co { position: absolute; left: 0; right: 0; }
}

/* ---------- Illustration frame and kit ---------- */
.frame { border-radius: 30px; padding: 18px; background: var(--cobalt-tint); container-type: inline-size; overflow: hidden; }
.band.tint .frame { background: var(--white); }
.band.mist .frame { background: var(--white); }
.band.night .frame { background: var(--night-2); }
@media (max-width: 560px) { .frame { padding: 10px; border-radius: 22px; } }

.i-fit { width: 604px; margin-inline: auto; color: var(--ink); font-size: 13px; line-height: 1.4; text-align: left; }
@container (max-width: 603px) { .i-fit { zoom: .93; } }
@container (max-width: 563px) { .i-fit { zoom: .86; } }
@container (max-width: 523px) { .i-fit { zoom: .8; } }
@container (max-width: 483px) { .i-fit { zoom: .73; } }
@container (max-width: 443px) { .i-fit { zoom: .66; } }
@container (max-width: 403px) { .i-fit { zoom: .6; } }
@container (max-width: 363px) { .i-fit { zoom: .53; } }
@container (max-width: 323px) { .i-fit { zoom: .47; } }

.sp { flex: 1; }
.i-row { display: flex; align-items: center; gap: 10px; }
.i-col { display: flex; flex-direction: column; gap: 8px; }
.i-mut { color: var(--ink-2); }
.i-sm { font-size: 12px; }
.i-xs { font-size: 11px; }
.i-lbl { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.i-hd { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.i-win { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.i-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.i-bar > i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.i-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.i-card.soft { background: var(--mist); border-color: transparent; }
.i-card.dark { background: var(--night); border-color: var(--night); color: var(--white); }
.i-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; background: var(--mist); color: var(--ink-2); }
.i-chip.ok { background: #E3F8EC; color: #0E7A45; }
.i-chip.wait { background: #FDF1DC; color: #7A4E0C; }
.i-chip.stop { background: #FDE8E8; color: #B42318; }
.i-chip.co-b { background: var(--cobalt-tint); color: var(--cobalt-ink); }
.i-chip.line { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.i-chip.dark { background: var(--night); color: var(--white); }
.i-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--cobalt); color: var(--white); }
.i-btn.line { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.i-sk { display: block; height: 7px; border-radius: 999px; background: var(--line); }
.av { flex: 0 0 auto; display: block; overflow: visible; }
.av svg { display: block; width: 100%; height: 100%; }
.av.s28 { width: 28px; height: 28px; border-radius: 9px; }
.av.s36 { width: 36px; height: 36px; }
.av.s44 { width: 44px; height: 44px; border-radius: 14px; }
.av.human { display: grid; place-items: center; background: var(--spark-tint); color: var(--spark-ink); font: 600 11px var(--sans); }
.lamp { display: inline-block; width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.lamp.working { background: var(--st-working); box-shadow: 0 0 0 3px rgba(43, 212, 125, .22); }
.lamp.blocked { background: var(--st-blocked); box-shadow: 0 0 0 3px rgba(239, 68, 68, .22); }
.lamp.signoff { background: var(--st-signoff); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.lamp.idle { background: var(--st-idle); }

/* ---------- This week: the episode ---------- */
.episode { display: grid; gap: 40px; margin-top: 8px; text-align: left; align-items: center; }
@media (min-width: 980px) { .episode { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.ep-no { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--spark-ink); margin-bottom: 14px; }
.episode .prev { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--spark); background: var(--white); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--ink-2); }
.episode .prev b { display: block; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.chapters { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.chapters li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.chapters li .num { color: var(--ink-2); font-size: 13px; width: 44px; }
.chapters li.on { color: var(--cobalt-ink); }
.chapters li.on .num { color: var(--cobalt-ink); }
.cliff { margin-top: 22px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.cliff small { display: block; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--spark-ink); margin-bottom: 6px; }

.player { background: var(--night); border-radius: 18px; overflow: hidden; color: var(--white); }
.player .scr { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 30% 40%, #2A3566 0%, #141B3B 60%, #0B1027 100%); }
.player .scr .who { position: absolute; left: 4%; bottom: 0; width: 46%; }
.player .scr .who svg { width: 100%; height: auto; display: block; }
.player .frameline { position: absolute; inset: 6%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; pointer-events: none; }
.player .rec { position: absolute; left: 7%; top: 9%; display: flex; gap: 6px; align-items: center; font: 500 10px var(--mono); letter-spacing: .1em; color: rgba(255,255,255,.75); }
.player .rec::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--st-blocked); }
.player .lower { position: absolute; left: 50%; right: 6%; top: 26%; }
.player .lower .nm { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.player .lower .rl { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 2px; }
.player .lower .bar { width: 46px; height: 3px; border-radius: 3px; margin: 12px 0; }
.player .wave { display: flex; gap: 3px; align-items: center; height: 26px; }
.player .wave i { display: block; width: 3px; border-radius: 3px; background: rgba(255,255,255,.55); }
.player .sub { position: absolute; left: 8%; right: 8%; bottom: 7%; text-align: center; font-size: 15px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.player .sub span { background: rgba(10, 14, 32, .72); padding: 3px 8px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.7; }
.player .ctrl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font: 500 11.5px var(--mono); color: rgba(255,255,255,.75); }
.player .ctrl .pb { width: 26px; height: 26px; border-radius: 999px; background: var(--spark); display: grid; place-items: center; flex: 0 0 auto; }
.player .ctrl .pb::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.player .tl { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.player .tl .done { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--spark); }
.player .tl i { position: absolute; top: -3px; width: 2px; height: 10px; background: rgba(255,255,255,.5); }

/* ---------- Projects (seasons) ---------- */
.seasons { display: grid; gap: 16px; margin-top: 52px; text-align: left; }
@media (min-width: 900px) { .seasons { grid-template-columns: repeat(3, 1fr); } }
.season { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--white); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; }
.season .top { background: var(--pc-t); padding: 22px 22px 0; display: flex; align-items: flex-end; justify-content: space-between; min-height: 170px; }
.season .top .kind { align-self: flex-start; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--white); padding: 4px 9px; border-radius: 999px; color: var(--pc); }
.season .top svg { width: 132px; height: auto; display: block; margin-bottom: -4px; }
.season .bd { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.season h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.season .lead { font-size: 13.5px; color: var(--ink-2); margin-top: -6px; }
.season .lead b { color: var(--pc); font-weight: 600; }
.season p { font-size: 15.5px; line-height: 1.5; }
.lifecycle { display: flex; gap: 3px; margin-top: 4px; }
.lifecycle i { flex: 1; height: 6px; border-radius: 3px; background: var(--mist); }
.lifecycle i.done { background: var(--pc); opacity: .35; }
.lifecycle i.now { background: var(--pc); }
.lc-lbl { display: flex; justify-content: space-between; font: 500 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.season .st { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.season .st .num { font-size: 24px; }
.season .st span { font-size: 13px; color: var(--ink-2); }

/* ---------- Follow (vote and sign-up) ---------- */
.follow { display: grid; gap: 18px; max-width: 880px; margin: 48px auto 0; text-align: left; }
@media (min-width: 860px) { .follow { grid-template-columns: 1fr 1fr; } }
.card-c { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 22px; }
.card-c h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; margin-bottom: 14px; }
.vote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vote button { border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; border-radius: 14px; padding: 14px; font: 600 16px var(--sans); cursor: pointer; text-align: left; }
.vote button:hover { background: rgba(255,255,255,.1); }
.vote button small { display: block; font: 500 12px var(--mono); color: var(--on-cobalt); margin-top: 2px; }
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin-top: 14px; background: rgba(255,255,255,.2); }
.split i { display: block; background: #fff; }
.card-c .meta { font: 500 12px var(--mono); color: var(--on-cobalt); margin-top: 8px; }
.signup { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input { flex: 1 1 200px; min-height: 48px; border-radius: 999px; border: 0; padding: 0 18px; font: 500 16px var(--sans); color: var(--ink); }
.card-c p { font-size: 15px; color: var(--on-cobalt); margin-bottom: 14px; }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--white); }
footer .wrap { text-align: left; padding-block: 64px 40px; }
.ft-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .ft-top { grid-template-columns: 1.3fr 2fr; } }
.ft-top p { color: var(--on-night); font-size: 15.5px; max-width: 420px; margin-top: 16px; }
.ft-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 640px) { .ft-links { grid-template-columns: repeat(4, 1fr); } }
.ft-links h4 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-night); }
.ft-links a { display: block; color: var(--white); text-decoration: none; font-size: 15px; padding: 4px 0; }
.ft-links a:hover { text-decoration: underline; }
.ft-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--on-night); }

/* ---------- Reveal ---------- */
.rv-on [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rv-on [data-rv].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv-on [data-rv] { opacity: 1; transform: none; transition: none; } }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .wrap { padding-block: 72px; }
  .stage:has(.callouts) .art { display: none; }
}

/* The player's text scales with the player, so the subtitle never covers the name on phones. */
.player .scr { container-type: inline-size; }
@container (max-width: 520px) {
  .player .lower .nm { font-size: 15px; }
  .player .lower .rl { font-size: 8.5px; }
  .player .wave { display: none; }
  .player .sub { font-size: 11px; bottom: 5%; }
}

/* ---------- Shared bits for the new blocks ---------- */
.sub-h { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin: 72px 0 18px; text-align: left; }
.good { color: #0E7A45; }
.bad { color: #B42318; }
.gb { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gb i { display: block; height: 100%; border-radius: 999px; background: var(--cobalt); }
.gb.sm { height: 5px; width: 100%; max-width: 160px; margin-top: 6px; }
.tbl { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 22px; text-align: left; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 880px; }
.tbl th { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; font-size: 12.5px; color: var(--ink-2); }
.tbl td b { font-weight: 600; }

/* ---------- 6. Powered by Aptigram Studio ---------- */
.band.forest .lede { color: var(--on-forest); }
.band.forest .pill { background: rgba(255,255,255,.1); color: var(--teal-bright); }
.band.forest .pill::before { background: var(--teal-bright); }
.band.forest .frame { background: var(--forest-2); }
.band.forest .co .pd, .band.forest .co .ln { background: var(--teal-bright); }
.band.forest .co .pd { border-color: var(--forest); }
.band.forest .co .ct { color: var(--white); }
.band.forest .co .cd { color: var(--on-forest); }
.band.forest .btn.solid { color: var(--forest); }
.apt { display: flex; flex-direction: column; gap: 12px; }
.apt .arr { flex: 0 0 auto; color: var(--teal); }
.apt .team { display: flex; gap: 0; padding: 8px 10px; }
.apt .team .av { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.apt .team .av:first-child { margin-left: 0; }
.apt .i-chip.t { background: var(--teal-tint); color: #12706A; }
.apt .trust { gap: 8px; flex-wrap: wrap; }
.apt .os { padding: 12px 14px; border-radius: 16px; background: var(--forest); color: var(--white); gap: 6px; }
.apt .os .i-chip.dk { background: rgba(255,255,255,.12); color: var(--on-forest); }
.mwin { flex: 1 1 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.mwin-bar { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.mwin-bar > i { width: 5px; height: 5px; border-radius: 999px; background: var(--line); }
.mwin-bar b { margin-left: 3px; }
.mwin-body { display: flex; flex-direction: column; gap: 6px; padding: 9px 8px; }

/* ---------- 7. Take part ---------- */
.tp { display: grid; gap: 16px; margin-top: 48px; text-align: left; }
@media (min-width: 980px) { .tp { grid-template-columns: repeat(3, 1fr); } }
.tp-l { color: var(--on-cobalt) !important; margin-bottom: 10px; }
.pq { padding: 12px 0 16px; border-bottom: 1px solid rgba(255,255,255,.18); }
.pq:last-child { border-bottom: 0; padding-bottom: 0; }
.pq b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }
.tp select, .tp textarea, .tp input { width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; font: 500 15px var(--sans); color: var(--ink); margin-bottom: 10px; }
.tp textarea { resize: vertical; }
.tp .btn { width: 100%; justify-content: center; }
.goalbar > .i-chip { justify-self: start; }

/* ---------- 1. Hero: the team first, then the question ---------- */
.hero { overflow: hidden; }
.hero .castrow { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; max-width: 980px; margin: 10px auto 44px; }
.hero .castrow a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--white); }
.hero .castrow .fig { display: block; width: 100%; }
.hero .castrow svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero .castrow b { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin-top: 2px; }
.hero .castrow small { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-cobalt); margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .castrow .fig { animation: bob 3.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
  .hero .castrow a:hover .fig { animation: hop .7s ease-out; }
  .hero .castrow .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; animation-delay: var(--dl, 0s); }
  .hero .castrow .halo { transform-box: fill-box; transform-origin: center; animation: glow 2.2s ease-in-out infinite; animation-delay: var(--dl, 0s); }
  .hero .castrow .jet { transform-box: fill-box; transform-origin: center top; animation: jet .3s ease-in-out infinite alternate; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-22px); } 70% { transform: translateY(2px); } 100% { transform: translateY(0); } }
@keyframes blink { 0%, 92%, 97%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.1); } }
@keyframes glow { 0%, 100% { opacity: .15; transform: scale(.85); } 50% { opacity: .55; transform: scale(1.25); } }
@keyframes jet { from { transform: scaleY(.8); opacity: .7; } to { transform: scaleY(1.15); opacity: 1; } }
@media (max-width: 760px) {
  .hero .castrow { grid-template-columns: repeat(4, 1fr); row-gap: 12px; margin-bottom: 32px; }
  .hero .castrow a:nth-child(n+5) { transform: translateX(50%); }
  .hero .castrow b { font-size: 13px; }
  .hero .castrow small { font-size: 8px; }
}

/* ---------- 2. What's New ---------- */
.news-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); text-align: left; }
.news { display: grid; gap: 20px; margin-top: 24px; text-align: left; }
@media (min-width: 960px) { .news { grid-template-columns: 2fr 1fr; } }
.news-row { display: grid; gap: 20px; margin-top: 20px; text-align: left; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.side { display: grid; gap: 20px; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--mist); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.lead-story { display: flex; flex-direction: column; gap: 16px; }
.lead-story .thumb { aspect-ratio: 16 / 9; border-radius: 18px; }
.lead-story h3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; line-height: 1.12; margin: 6px 0 10px; }
.lead-story p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 680px; }
.ls-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; }
.ls-links .link-arrow { font-size: 16px; }
.story { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.story .thumb { margin-bottom: 6px; }
.story:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.story:hover .thumb img { transform: scale(1.03); }
.story h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; }
.story p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.more-s { font-size: 13.5px; font-weight: 600; color: var(--cobalt-ink); margin-top: 2px; }
.more-s::after { content: " \2192"; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.tag { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt-ink); background: var(--cobalt-tint); padding: 3px 8px; border-radius: 999px; }

/* Story illustrations: the cast in small sketch scenes */
.ill { position: absolute; inset: 0; background: var(--bg); overflow: hidden; container-type: inline-size; }
.ill::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: rgba(14, 17, 22, .05); }
.ill .ch { position: absolute; z-index: 1; display: block; }
.ill .ch svg { display: block; width: 100%; height: auto; }
.ill .ch.flip svg { transform: scaleX(-1); }
.ill .ib, .ill .ic, .ill .icard { position: absolute; z-index: 2; }
.ill .ib { max-width: 34%; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 1.4cqw 1.8cqw; font: 600 max(10px, 2.2cqw)/1.3 var(--sans); box-shadow: 0 6px 16px rgba(14,17,22,.08); }
.ill .ib.r { border-radius: 14px 14px 4px 14px; }
.ill .ic { background: var(--night); color: var(--white); border-radius: 999px; padding: .9cqw 2cqw; font: 500 max(9px, 1.8cqw) var(--mono); white-space: nowrap; }
.ill .ic b { color: #7CF7E4; font-weight: 500; }
.ill .icard { display: flex; flex-direction: column; gap: 1.2cqw; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 2.4cqw; font-size: max(10px, 2.6cqw); line-height: 1.3; box-shadow: 0 10px 24px rgba(14,17,22,.1); }
.ill .icard .i-lbl { font-size: max(8px, 1.8cqw); }
.ill .icard b { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.ill .icard s { text-decoration-color: #EF4444; text-decoration-thickness: 2px; }
.ill .icard .i-sk { height: 1.2cqw; min-height: 5px; }
.ill .icard mark { background: #FDE8E8; color: #B42318; padding: 0 3px; border-radius: 4px; box-shadow: 0 0 0 2px #EF4444; }
.ill .icard .i-chip { align-self: flex-start; font-size: max(9px, 1.8cqw); }
.ill .stamp { position: absolute; right: -6%; bottom: -16%; transform: rotate(-9deg); border: 2px solid #EF4444; color: #EF4444; background: #fff; font: 600 max(10px, 2.4cqw) var(--mono); letter-spacing: .14em; padding: .6cqw 1.8cqw; border-radius: 8px; }
.ill .win { padding: 0; overflow: hidden; gap: 0; }
.ill .win .wb { display: flex; align-items: center; gap: 5px; padding: 1.4cqw 2cqw; border-bottom: 1px solid var(--line); font-size: max(9px, 2cqw); font-weight: 600; }
.ill .win .wb i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); }
.ill .win .pv { display: grid; place-items: center; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #2A3566, #141B3B); }
.ill .win .pp { width: 7cqw; height: 7cqw; border-radius: 99px; background: var(--spark); position: relative; }
.ill .win .pp::after { content: ""; position: absolute; left: 40%; top: 30%; border-left: 2.4cqw solid #fff; border-top: 1.5cqw solid transparent; border-bottom: 1.5cqw solid transparent; }
.ill .win .i-chip { margin: 2cqw; }
.ill .lg { display: grid; grid-template-columns: 1fr auto auto; gap: 1.6cqw; align-items: center; padding-top: 1.4cqw; border-top: 1px solid var(--line); }
.ill .lg b { font-family: var(--mono); font-weight: 500; }

/* ---------- 4. Project Leaderboard ---------- */
.lb { margin-top: 48px; }
.lb table { min-width: 760px; font-size: 15px; }
.lb td { padding: 18px 16px; }
.tbl .rk { font-size: 20px; color: var(--ink-2); width: 40px; }
.tbl .pl { font-size: 17px; white-space: nowrap; }
.tbl .pl .tr { font-size: 11px; color: var(--ink-2); }
.tbl .gl { font-size: 14px; }

/* ---------- 5. Spotlight ---------- */
.spot { display: grid; gap: 40px; align-items: center; text-align: left; }
@media (min-width: 980px) { .spot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.spot .lede { margin-inline: 0; margin-top: 16px; }
.spot .prev { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--spark); background: var(--night-2); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--on-night); }
.spot .prev b { display: block; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.spot .actions { justify-content: flex-start; margin-top: 28px; }
.spot .player { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

/* ---------- 6. Projects ---------- */
.season p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.plinks { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: auto; padding-top: 6px; }
.plinks .link-arrow { font-size: 15px; min-height: 40px; }
.apt .team { gap: 2px; }
.apt .team .av { margin-left: 0; box-shadow: none; }
.tp-note { font-size: 14px; color: var(--on-cobalt); margin-top: 16px; }
.tp-note a { color: #fff; font-weight: 600; }
.tp-count { font: 500 12px var(--mono); color: var(--on-cobalt); margin-top: 8px; }

/* ---------- 2. What's New: layout rules ----------
   Every card has a fixed image ratio, a headline of at most two lines and a summary of at most three,
   so card heights are predictable. On wide screens the lead story's image grows to fill whatever height
   the side column needs, so the two columns always end level and nothing leaves white space. */
.story h3, .lead-story h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.story p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.lead-story p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.story .thumb { aspect-ratio: 16 / 10; flex: 0 0 auto; }
@media (min-width: 960px) {
  .news { align-items: stretch; }
  .lead-story { height: 100%; }
  .lead-story .thumb { flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; }
  .side { grid-template-rows: auto auto; align-content: start; }
}

/* Scene parts */
.ill .bignum { position: absolute; left: 6%; top: 8%; z-index: 1; font: 600 26cqw/1 var(--display); letter-spacing: -0.06em; color: #C9CDD3; }
.ill .bignum i { font-style: normal; color: #EF4444; margin-left: 1cqw; }
.ill .ic s { text-decoration-color: #EF4444; text-decoration-thickness: 2px; color: rgba(255,255,255,.6); }
.ill .shop { position: absolute; left: 6%; bottom: 14%; width: 46%; height: 62%; z-index: 1; background: #fff; border: 2px solid #1F2A3A; border-radius: 6px 6px 0 0; }
.ill .shop .awn { position: absolute; left: -6%; right: -6%; top: 14%; height: 16%; border: 2px solid #1F2A3A; border-radius: 4px 4px 12px 12px; background: repeating-linear-gradient(90deg, #F26B1D 0 12%, #fff 12% 24%); }
.ill .shop .sign { position: absolute; left: 0; right: 0; top: 2%; text-align: center; font: 600 max(8px, 2.2cqw) var(--mono); letter-spacing: .14em; color: #1F2A3A; }
.ill .shop .win2 { position: absolute; left: 8%; width: 54%; top: 40%; bottom: 10%; border: 2px solid #1F2A3A; border-radius: 4px; background: #FFF6E6; display: flex; flex-direction: column; justify-content: space-evenly; padding: 0 8%; }
.ill .shop .win2 i { display: block; height: 10%; border-radius: 99px; background: #E9B872; }
.ill .shop .door { position: absolute; right: 8%; width: 22%; top: 40%; bottom: 0; border: 2px solid #1F2A3A; border-bottom: 0; border-radius: 4px 4px 0 0; background: #FFD6AE; }
.ill .hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.ill:has(.hills)::after, .ill:has(.shop)::after { display: none; }

/* ---------- 3. The Dashboard ----------
   Every tile: an icon, a one-line label, the value, one line of detail and its own small visual.
   Labels never wrap, so the grid stays even. */
.dash { display: grid; gap: 12px; margin-top: 48px; text-align: left; }
.drow { display: grid; gap: 12px; }
.drow.money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.drow.market { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.drow.work { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .drow.market { grid-template-columns: repeat(3, minmax(0, 1fr)); } .drow.work { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .drow.money, .drow.market, .drow.work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dt { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 16px 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s ease; }
.dt:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 17, 22, .08); }
.dt .ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 8px; }
.dt .ico svg { width: 17px; height: 17px; }
.dt .i-lbl { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt .v { font-size: 26px; line-height: 1.15; margin-top: 2px; white-space: nowrap; }
.drow.money .dt .v { font-size: 36px; }
.dt .s { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt .s.good { color: #0E7A45; font-weight: 600; }
.dt .s.bad { color: #B42318; font-weight: 600; }
.dt .goal-l { font-size: 11.5px; }
.dt.cobalt { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.dt.cobalt .i-lbl, .dt.cobalt .s { color: var(--on-cobalt); }
.dt.dark { background: var(--night); border-color: var(--night); color: #fff; }
.dt.dark .i-lbl { color: var(--on-night); }
.dt.dark .s.good { color: #6EE7A8; }
.dt .spark { position: absolute; right: 16px; top: 16px; }
.dt.dark .spark polyline, .dt.dark .spark circle { stroke: #8FA4FF; }
.dt.dark .spark circle { fill: #8FA4FF; }
.bars { position: absolute; right: 16px; top: 16px; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.bars i { display: block; width: 7px; border-radius: 2px; }
.drow.work .bars { position: static; height: 22px; margin-top: 10px; }
.ring { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: conic-gradient(var(--c) calc(var(--p) * 1%), #EEF0F4 0); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 999px; background: #fff; }
.ring b { position: relative; font: 500 10.5px var(--mono); }
.vis { display: block; margin-top: 10px; }
.vis .meter, .vis .stack, .vis .segs { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #EEF0F4; }
.vis .meter i { display: block; background: #7C5CE0; border-radius: 999px; }
.vis .stack i { display: block; height: 100%; }
.vis .mt { display: block; font-size: 11px; color: var(--ink-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis .dots { display: flex; flex-wrap: wrap; gap: 4px; }
.vis .dots i { width: 9px; height: 9px; border-radius: 3px; background: #13A37F; }
.vis .segs { gap: 3px; background: none; }
.vis .segs i { flex: 1; border-radius: 3px; background: #2BD47D; }
.vis .segs i.miss { background: #FDE8E8; box-shadow: inset 0 0 0 1.5px #EF4444; }

/* Header: a thin night-blue line along the top */
.hdr .strip { background: var(--night); }


/* Project Leaderboard: a solid header row */
.lb thead th { background: var(--cobalt); color: #fff; border-bottom: 0; }

/* Logo: normal on light grounds, reversed on cobalt and dark ones. The header swaps as you scroll. */
.logo svg { width: 42px; height: 42px; }
.logo .lm-normal { display: none; }
.hdr.past .logo .lm-normal { display: block; }
.hdr.past .logo .lm-reverse { display: none; }

/* Speech bubbles: white, with a tail pointing at whoever is speaking */
.ill .ib { border: 0; border-radius: 16px; box-shadow: 0 8px 20px rgba(14,17,22,.12); max-width: 30%; }
.ill .ib::after { content: ""; position: absolute; bottom: -1.5cqw; width: 0; height: 0; border-top: 1.8cqw solid #fff; border-left: 1.2cqw solid transparent; border-right: 1.2cqw solid transparent; }
.ill .ib.tail-br::after { right: 18%; transform: skewX(-24deg); }
.ill .ib.tail-bl::after { left: 18%; transform: skewX(24deg); }
.ill .ib.tail-b::after { left: 50%; margin-left: -1.2cqw; }
.ill .ib.tail-b { max-width: 36%; text-align: center; }

/* Lead scene: a showdown sunburst with a halftone texture */
.ill.burst { background:
  radial-gradient(circle at 50% 100%, rgba(255,255,255,.9) 0 14%, rgba(255,255,255,0) 46%),
  repeating-conic-gradient(from 0deg at 50% 100%, #C9D3FF 0deg 7deg, #E4E9FF 7deg 14deg); }
.ill.burst::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(rgba(37,70,240,.16) 1.2px, transparent 1.4px); background-size: 12px 12px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.ill.burst::after { background: rgba(27, 54, 201, .10); }
.ill .ib::after { bottom: -2.2cqw; border-top-width: 2.6cqw; border-left-width: 1.6cqw; border-right-width: 1.6cqw; }
.ill .ib.tail-b { max-width: 46%; white-space: nowrap; }
.ill .ib.tail-b::after { margin-left: -1.6cqw; }

/* Lead scene: a boardroom at dusk */
.ill.boardroom { background: #DCE1F2; }
.ill.boardroom::after { display: none; }
.ill .sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ill .table { position: absolute; left: -2%; right: -2%; bottom: 0; height: 19%; z-index: 2; }
.ill .table .top { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(180deg, #9A7556, #84634A); clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%); }
.ill .table .front { position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: linear-gradient(180deg, #5E4535, #4A3628); border-top: 2px solid #B48A66; }
.ill .table .papers { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); display: flex; gap: 4cqw; }
.ill .table .papers i { display: block; width: 6cqw; height: 2.2cqw; background: #F7F3EA; border-radius: 2px; transform: skewX(-12deg); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.ill .table .papers i:nth-child(2) { transform: skewX(0); width: 7cqw; }
.ill .table .papers i:nth-child(3) { transform: skewX(12deg); }
.ill.boardroom .ch { z-index: 1; }
.ill.boardroom .ib { z-index: 3; }
