/* The Middle Three — design system
   Type: Schibsted Grotesk (display) + Atkinson Hyperlegible (text)
   Palette: six stickers, calibrated. Two hues per view.
   Rules: 19px body, 1.7 leading, ~62ch measure, nothing under 12.5px,
   every page opens in prose. Numbers standing alone: display face.
   Mono + tabular figures only where digits align in columns. */

:root {
  --paper: #FAF9F5;
  --ink: #181C22;
  --ink-soft: #4E545C;
  --ink-faint: #9AA0A8;
  --line: #D8DAD4;
  --line-soft: #E6E5DF;
  --chrome: #E9EAEC;
  --dark: #12151B;
  --red: #C8102E;
  --blue: #0F5BBF;
  --green: #00945A;
  --orange: #E85D04;
  --yellow: #FFD500;
  --yellow-ground: #FFF3B8;
  --display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Atkinson Hyperlegible', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a.quiet { color: inherit; text-decoration: none; }
a.quiet:hover { color: var(--blue); }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 40px); }

/* ---------- masthead ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.topbar .wrap { display: flex; gap: 18px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar .edition { margin-left: auto; }
.topbar strong { font-weight: 700; color: var(--ink); }

.masthead { padding: 34px 0 22px; text-align: center; }
.masthead .lockup { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; color: inherit; }
.masthead .word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 74px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.masthead .strap {
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Five sections, set big enough to read as the site's spine. They never
   wrap: on a narrow screen the row scrolls sideways instead, so the
   masthead stays one line deep however small the phone. */
.mainnav { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
/* width:max-content plus auto margins centres the row when it fits and
   falls back to the left edge when it does not, so the first section is
   never clipped the way a centred overflow clips it. */
.mainnav > .wrap { overflow-x: auto; scrollbar-width: none; }
.mainnav > .wrap::-webkit-scrollbar { display: none; }
.mainnav ul {
  list-style: none; margin: 0 auto; padding: 0; width: max-content;
  display: flex; gap: clamp(15px, 3.4vw, 54px); flex-wrap: nowrap;
}
.mainnav a {
  display: block; padding: 15px 2px; white-space: nowrap;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(15.5px, 1.5vw, 21px);
  letter-spacing: 0.01em; text-decoration: none; color: var(--ink);
}
.mainnav a:hover { color: var(--red); }
.mainnav a[aria-current] { color: var(--red);
  box-shadow: inset 0 -4px 0 0 var(--red); }

/* the current section's siblings, quieter by a whole step */
.subnav { border-bottom: 1px solid var(--line); background: #F4F3EE; }
.subnav > .wrap { overflow-x: auto; scrollbar-width: none; }
.subnav > .wrap::-webkit-scrollbar { display: none; }
.subnav ul {
  list-style: none; margin: 0 auto; padding: 0; width: max-content;
  display: flex; gap: clamp(13px, 2.4vw, 30px); flex-wrap: nowrap;
}
.subnav a {
  display: block; padding: 9px 2px; white-space: nowrap;
  font-size: 15px; font-weight: 700; text-decoration: none;
  color: var(--ink-soft);
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink);
  box-shadow: inset 0 -3px 0 0 var(--ink); }
.topbar a { color: var(--ink-soft); }
.topbar a:hover { color: var(--ink); }

/* interior pages: compact masthead */
.masthead.compact { padding: 18px 0 14px; text-align: left; }
.masthead.compact .word { font-size: 30px; }
.masthead.compact .strap { display: none; }

.crumb { font-size: 13.5px; color: var(--ink-soft); padding: 12px 0 0; }
.crumb a { color: var(--ink-soft); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
.kicker {
  font-family: var(--text); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 10px;
}
.kicker.live { color: var(--red); }
.kicker.live::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-right: 8px; vertical-align: 1px;
}
/* One fixed measure for all prose so large and small text share a right
   edge (ch units differ per font size — that misaligned the columns). */
.prose { max-width: 620px; }
/* Ledes under page headlines run wider (~78ch) so the opening text keeps
   visual continuity with the headline above it. Body prose stays at ~62ch. */
.prose.lede { max-width: 900px; }
.prose p { margin: 0 0 1em; }
.lede { font-size: 22px; line-height: 1.6; }
.lede b, .lede strong { font-weight: 700; background: linear-gradient(transparent 68%, var(--yellow-ground) 0); }
.small { font-size: 14.5px; color: var(--ink-soft); }
.footnote { font-size: 13px; color: var(--ink-faint); }

/* numbers standing alone: display face. (No tabular figures here — a lone
   number wants natural spacing; tabular is for columns only.) */
.bignum {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- section plumbing ---------- */
.section { padding: 40px 0 8px; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 34px 0 0; }
.section-head {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 26px;
}
.section-head h2 { font-size: 27px; font-weight: 900; }
.section-head .more { margin-left: auto; font-size: 14.5px; white-space: nowrap; }
/* On narrow screens the side note drops below the heading instead of
   squeezing it into one-word lines. */
@media (max-width: 640px) {
  .section-head { flex-wrap: wrap; }
  .section-head .more { margin-left: 0; white-space: normal;
    flex-basis: 100%; order: 2; }
}

.grid { display: grid; gap: clamp(20px, 3vw, 42px); }
.grid > * { min-width: 0; }
.g-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: 1fr 1fr 1fr; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 940px) { .g-hero, .g-3, .g-main { grid-template-columns: 1fr; } .g-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g-2, .g-4 { grid-template-columns: 1fr; } }

.rail > * + * { margin-top: 30px; }

/* ---------- tables: mono tabular figures, digits align ---------- */
.scrollx { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  font-family: var(--text); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  text-align: left; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink);
}
table.data td {
  padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 16.5px; vertical-align: baseline;
}
table.data td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; text-align: right; }
/* A short date is one thing to read, not a number to line up: left-aligned,
   never wrapped, and wide enough for the longest day-and-month it can hold. */
table.data td.datecell, table.data th.datecell {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 15px; text-align: left; white-space: nowrap; width: 1%;
  padding-right: 20px;
}
table.data th.datecell { font-family: var(--text); font-size: 12.5px; }
/* Column headers all share one voice; numeric ones only right-align. */
table.data th.num, table.data th.time, table.data th.rectime { text-align: right; }
table.data tr.hero td { background: #F4F2EA; }
table.data .bar { height: 9px; background: var(--line-soft); position: relative; min-width: 90px; }
table.data .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink-soft); }
table.data .bar.rec i { background: var(--red); }

/* ---------- modules ---------- */
.card { border: 1px solid var(--line); padding: 22px 24px; background: #FFFFFF66; }
.card .bignum { font-size: 46px; }
.card .cap { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* Coloured stat cards — sticker-tint grounds, semantic per the palette:
   red = records/live, green = PBs, blue = data/scale, orange = go-and-do,
   yellow = ground only (ink numerals, never yellow text). */
.card.c-red    { background: #F9E7EA; border-color: #EFC9CF; border-top: 4px solid var(--red); }
.card.c-green  { background: #E4F3ED; border-color: #C5E2D6; border-top: 4px solid var(--green); }
.card.c-blue   { background: #E7EEF9; border-color: #C9D8EF; border-top: 4px solid var(--blue); }
.card.c-orange { background: #FCEDE2; border-color: #F2D4BE; border-top: 4px solid var(--orange); }
.card.c-yellow { background: var(--yellow-ground); border-color: #EFDE9C; border-top: 4px solid var(--yellow); }
.card.c-red .bignum { color: var(--red); }
.card.c-green .bignum { color: var(--green); }
.card.c-blue .bignum { color: var(--blue); }
.card.c-orange .bignum { color: var(--orange); }
.card .cap a { color: inherit; }

/* full-width wire board: items flow into columns, newspaper-style */
.wirecols { columns: 3 340px; column-gap: clamp(24px, 3vw, 46px); }
.wirecols .wire li:first-child { padding-top: 0; }
.wirecols .wire li { break-inside: avoid; }

/* THE TIME RULE — one logic, site-wide:
   In data contexts (tables, wire, lists, cards) every time is display face,
   bold. Colour encodes status: red = record, green = personal best,
   ink = ordinary result. In running prose, times stay in the body face.
   Mono is never for times — only IDs, dates and metadata. */
.t {
  font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: 1.12em; letter-spacing: -0.01em; white-space: nowrap;
}
.t.rec { color: var(--red); }
.t.pb { color: var(--green); }
table.data td.time {
  font-family: var(--display); font-weight: 800; font-size: 17px;
  color: var(--ink); text-align: right; letter-spacing: -0.01em; white-space: nowrap;
}
table.data td.rectime {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--red); text-align: right; letter-spacing: -0.01em; white-space: nowrap;
}

.wire { list-style: none; margin: 0; padding: 0; }
.wire li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; line-height: 1.5; align-items: baseline; }
.wire li:last-child { border-bottom: 0; }
.wire .d { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); white-space: nowrap; min-width: 52px; flex-shrink: 0; }
.wire .tag { font-family: var(--text); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; min-width: 30px; }
.wire .tag.wr { color: var(--red); }
.wire .tag.cr { color: var(--orange); }
.wire .tag.nr { color: var(--blue); }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; line-height: 1.55; }
.plain li:last-child { border-bottom: 0; }

/* ---------- THE COVER: the edition's cinematic opening ---------- */
.cover {
  position: relative; overflow: hidden; background: var(--dark); color: #F2F1EC;
  min-height: min(94vh, 980px); display: flex; flex-direction: column;
  justify-content: center; padding: 60px 0 90px;
}
.cover .atmos {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 72% 30%, rgba(200,16,46,0.16), transparent 60%),
    radial-gradient(900px 600px at 20% 80%, rgba(15,91,191,0.12), transparent 60%);
}
.cover .grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cover .folio {
  position: relative; z-index: 2; text-align: center; font-size: 13.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #8B919A;
  margin-bottom: clamp(28px, 5vh, 60px);
}
.cover .folio b { color: #F2F1EC; }
.cover .coverwrap { position: relative; z-index: 2; }
.cover .kicker.live { color: #FF5D73; }
.coverhead {
  font-family: var(--display); font-weight: 900; color: #fff;
  font-size: clamp(44px, 7.2vw, 108px); line-height: 0.98; letter-spacing: -0.025em;
  max-width: 14ch;
}
.coverhead .w {
  display: inline-block; opacity: 0; transform: translateY(0.45em);
  animation: wordup 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes wordup { to { opacity: 1; transform: none; } }
.covernum {
  position: absolute; right: -1%; top: 60%; transform: translateY(-40%);
  font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: clamp(90px, 13vw, 195px); letter-spacing: -0.04em;
  color: #FF5D73; text-shadow: 0 0 90px rgba(200,16,46,0.35); z-index: 0;
  opacity: 0.92;
}
.cover .kicker, .coverhead, .cover .standfirst, .cover .coverlink, .cover .folio {
  position: relative; z-index: 2;
}
.cover .standfirst { margin-top: 26px; font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.55; color: #C9CCD2; max-width: 560px; }
.cover .standfirst b { color: #fff; }
.cover .coverlink { display: inline-block; margin-top: 26px;
  font: 700 16px var(--display); color: #fff; background: var(--red);
  padding: 13px 26px; text-decoration: none; }
.cover .coverlink:hover { background: #A50D26; }
.cover .cuefleet { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  perspective: 1400px; }
@media (max-width: 940px) {
  .covernum { position: static; transform: none; font-size: clamp(70px, 20vw, 120px);
    margin-top: 18px; }
  .cover .cuefleet .c3, .cover .cuefleet .s3, .cover .cuefleet .cb3,
  .cover .aurora, .cover .pfield { display: none; }
}

/* the wire as a ticker across the cover's foot */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(11,13,17,0.82); border-top: 1px solid #262B34;
  overflow: hidden; padding: 11px 0; backdrop-filter: blur(3px);
}
.ticker .track {
  display: flex; gap: 3.2em; width: max-content;
  animation: tickmove 55s linear infinite; will-change: transform;
}
.ticker:hover .track { animation-play-state: paused; }
.ticker .item { white-space: nowrap; font-size: 14.5px; color: #C9CCD2; }
.ticker .item .tag { font-weight: 700; letter-spacing: 0.08em; margin-right: 8px; }
.ticker .item .tag.wr { color: #FF5D73; }
.ticker .item .tag.cr { color: #FF9A4D; }
.ticker .item .tag.nr { color: #6EA8FF; }
.ticker .item a { color: #F2F1EC; }
.ticker .item .t { color: #fff; font-size: 1em; }
@keyframes tickmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .coverhead .w { animation: none; opacity: 1; transform: none; }
  .ticker .track { animation: none; }
}

/* charts that draw themselves when revealed */
.essaychart.in polyline.line, .drawline.in polyline {
  stroke-dasharray: 3000; stroke-dashoffset: 3000;
  animation: drawin 2.2s ease-out forwards;
}
@keyframes drawin { to { stroke-dashoffset: 0; } }

/* ---------- the hero band: match-night ground, three colour cubes ---------- */
.heroband {
  background: var(--dark); color: #F2F1EC;
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 80px) 0;
}
.heroband h1 { color: #fff; }
.heroband .prose { color: #C9CCD2; }
.heroband .prose b { color: #fff; background: none; }
.heroband .lede b, .heroband .lede strong { background: none; }
.heroband a { color: #9DBCEF; }
.heroband .kicker.live { color: #FF5D73; }
.heroband .kicker.live::before { background: #FF5D73; }
.heroband .herotext { position: relative; z-index: 1; max-width: 56%; }
.cubestage {
  position: absolute; top: 0; right: 0; bottom: 0; width: 48%;
  pointer-events: none; perspective: 1400px;
}
@media (max-width: 940px) {
  .cubestage { display: none; }
  .heroband .herotext { max-width: none; }
}

/* ---------- find your page ---------- */
.find {
  background: var(--dark); color: #F2F1EC;
  padding: clamp(34px, 5vw, 58px) 0;
}
.find h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; color: #fff; }
.find .prose { color: #C9CCD2; }
.find .prose b { color: #fff; }
.find form { display: flex; gap: 0; max-width: 560px; margin-top: 22px; }
.find input[type="search"] {
  flex: 1; min-width: 0; font: 400 19px var(--text); color: var(--ink);
  background: var(--paper); border: 0; padding: 15px 18px; border-radius: 0;
}
.find button {
  font: 700 16px var(--display); letter-spacing: 0.04em;
  background: var(--red); color: #fff; border: 0; padding: 15px 26px; cursor: pointer;
}
.find button:hover { background: #A50D26; }
.find .results { max-width: 560px; margin-top: 4px; }
.find .results a {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 14px;
  background: #1B1F27; color: #F2F1EC; text-decoration: none; border-bottom: 1px solid #262B34;
  font-size: 16.5px;
}
.find .results a:hover { background: #232936; }
.find .results .id { font-family: var(--mono); font-size: 12.5px; color: #8B919A; margin-left: auto; }
.find .hint { font-size: 13.5px; color: #8B919A; margin-top: 10px; }

/* ---------- census chart ---------- */
.census svg { width: 100%; height: auto; display: block; overflow: visible; }
.census .axis { font: 12.5px var(--text); fill: var(--ink-soft); }

/* ---------- the magazine: essays ---------- */
.essayhero { padding: clamp(48px, 7vw, 90px) 0; }
/* hero scenes: cubes, ghost numerals, data-as-imagery */
.heroscene { position: absolute; inset: 0; pointer-events: none; perspective: 1400px; overflow: hidden; }
.heroscene .ghostnum {
  position: absolute; font-family: var(--display); font-weight: 900;
  font-size: clamp(180px, 30vw, 420px); line-height: 1; letter-spacing: -0.04em;
  color: rgba(242, 241, 236, 0.05); white-space: nowrap;
}
.heroscene svg.heroarea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; }
.cuberow { display: flex; gap: clamp(6px, 1vw, 14px); flex-wrap: wrap; align-items: center;
  position: relative; z-index: 1; padding: 26px 0 0; max-width: 720px; }
.cuberow .mini { width: 30px; height: 30px; border-radius: 6px; border: 2px solid rgba(242,241,236,.25); }
.cuberow .mini.back { background: #3A404B; border-color: #3A404B; }
.cuberow .mini.alive { background: linear-gradient(135deg, #C8102E 33%, #00945A 33% 66%, #0F5BBF 66%); border-color: transparent; }
.cuberow-cap { position: relative; z-index: 1; font-size: 13.5px; color: #8B919A; margin-top: 10px; }
.ao5tiles.inhero { justify-content: flex-start; padding: 30px 0 0; position: relative; z-index: 1; }
.ao5tiles.inhero .tile { font-size: clamp(26px, 4vw, 52px); padding: 22px 26px; background: #1B1F27; }
.ao5tiles.inhero .tile.rec { background: var(--red); }
@media (max-width: 940px) { .heroscene .c3 { display: none; } }
/* On small screens the hero scene sits under the text — art never fights
   ink. The band becomes clean type on dark. */
@media (max-width: 720px) { .heroscene { display: none; } }
.essayhero .kicker { color: #FF5D73; }
.essayhero h1 { font-size: clamp(38px, 5.6vw, 78px); font-weight: 900; color: #fff; max-width: 20ch; }
.essayhero .standfirst {
  margin-top: 22px; font-size: clamp(19px, 2vw, 24px); line-height: 1.55;
  color: #C9CCD2; max-width: 620px;
}
.essayhero .standfirst b { color: #fff; }
.essay { max-width: 620px; margin: 0 auto; padding: 46px 0 10px; }
.essay p { margin: 0 0 1.35em; }
.essay p:first-child::first-letter {
  font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 0.85;
  float: left; padding: 6px 10px 0 0; color: var(--red);
}
.essay h2 { font-size: 24px; margin: 1.6em 0 0.7em; }
.essay .pullstat {
  font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 64px);
  color: var(--red); line-height: 1; margin: 34px 0 8px; letter-spacing: -0.02em;
}
.essay .pullcap { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 26px; }
.essay .src { font-size: 13px; color: var(--ink-faint); }
.essaychart { max-width: 860px; margin: 0 auto; padding: 30px 0 0; }
.essaychart svg { width: 100%; height: auto; display: block; }

/* ---------- scrollytelling ---------- */
.reveal.armed { opacity: 0; transform: translateY(30px); }
.reveal.armed.in { opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.storybody { position: relative; }
.essayfloat { position: absolute; pointer-events: none; z-index: 0; }
@supports (animation-timeline: view()) {
  .drift { animation: driftup linear both; animation-timeline: view(); }
  @keyframes driftup { from { transform: translateY(14vh); } to { transform: translateY(-14vh); } }
}
.sceneband {
  width: 100vw; position: relative; left: calc(50% - 50vw);
  background: var(--dark); color: #F2F1EC;
  padding: clamp(44px, 6vw, 80px) clamp(18px, 6vw, 90px);
  margin: 52px 0; overflow: hidden; text-align: center;
}
.sceneband .scenenum {
  font-family: var(--display); font-weight: 900; color: #fff;
  font-size: clamp(54px, 8vw, 110px); line-height: 1; letter-spacing: -0.03em;
}
.sceneband .scenenum .dim { color: #5A6472; }
.sceneband .scenenum .hot { color: #FF5D73; }
.sceneband p { color: #C9CCD2; max-width: 620px; margin: 16px auto 0; font-size: 17px; }
@media (max-width: 940px) { .essayfloat { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .drift { animation: none !important; }
}

/* ---------- THE DESIGN KIT (see design/DESIGN-KIT.md for the catalogue)
   Per-story accent: set --accent / --accent-bright on the article root. ---------- */

/* K1-K4: hued hero grounds — each story can own a different night sky */
.heroband.g-reddark { background: #200A0F; }
.heroband.g-bluedark { background: #0A1626; }
.heroband.g-greendark { background: #07211A; }
.heroband.g-orangedark { background: #241305; }

/* K5: outlined ghost headline word */
.heroscene .ghostword {
  position: absolute; font-family: var(--display); font-weight: 900;
  font-size: clamp(120px, 22vw, 340px); line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(242, 241, 236, 0.09);
  white-space: nowrap;
}

/* K6: timeline rule — year ticks across a hero band */
.timerule { position: absolute; left: 0; right: 0; bottom: 26px; display: flex;
  justify-content: space-between; padding: 0 5%; }
.timerule span { font-family: var(--mono); font-size: 12.5px; color: rgba(242,241,236,.35);
  border-left: 1px solid rgba(242,241,236,.25); padding-left: 6px; }

/* K7: typographic stack (country names etc. as hero art) */
.typestack { position: absolute; right: -20px; top: 0; text-align: right;
  font-family: var(--display); font-weight: 900; line-height: 0.95;
  font-size: clamp(40px, 6vw, 92px); letter-spacing: -0.03em;
  color: rgba(242, 241, 236, 0.07); }
.typestack .lit { color: var(--accent-bright, #FF5D73); opacity: 0.85; }

/* K8: versus panel — two names face off */
.versus { display: flex; align-items: center; gap: 4%; justify-content: center;
  width: 100vw; position: relative; left: calc(50% - 50vw);
  background: var(--dark); padding: clamp(40px, 6vw, 72px) 5%; margin: 52px 0; }
.versus .side { font-family: var(--display); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1; color: #fff; }
.versus .side small { display: block; font-family: var(--text); font-weight: 400;
  font-size: clamp(13px, 1.2vw, 16px); color: #8B919A; margin-top: 10px; letter-spacing: 0; }
.versus .vs { font-family: var(--display); font-weight: 900;
  font-size: clamp(20px, 2.4vw, 34px); color: var(--accent-bright, #FF5D73); }
.versus .side.right { text-align: right; }

/* K9: record-age meter list — bars as biography */
.meterlist { list-style: none; margin: 0; padding: 0; }
.meterlist li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.meterlist .row { display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; font-size: 16.5px; }
.meterlist .who { min-width: 0; }
.meterlist .val { font-family: var(--display); font-weight: 800; white-space: nowrap;
  color: var(--accent, var(--red)); }
.meterlist .meter { height: 10px; background: var(--line-soft); margin-top: 8px;
  position: relative; border-radius: 5px; overflow: hidden; }
.meterlist .meter i { position: absolute; inset: 0 auto 0 0;
  background: var(--accent, var(--red)); border-radius: 5px; }

/* K10: dumbbell comparison — one life, two numbers */
.dumbbell { margin: 34px 0; }
.dumbbell .track { position: relative; height: 12px; background: var(--line-soft);
  border-radius: 6px; }
.dumbbell .dot { position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; border: 4px solid var(--paper); }
.dumbbell .lab { display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 14.5px; color: var(--ink-soft); }
.dumbbell .lab b { font-family: var(--display); font-size: 22px; color: var(--ink); }

/* K11: chapter numerals */
.chap { display: flex; align-items: baseline; gap: 14px; margin: 2.2em 0 0.6em; }
.chap .n { font-family: var(--display); font-weight: 900; font-size: 44px;
  color: var(--accent, var(--red)); line-height: 1; }
.chap h2 { margin: 0; }

/* K12: margin note */
.marginnote { float: right; width: 240px; margin: 6px -260px 18px 24px;
  padding: 16px 18px; border-left: 3px solid var(--accent, var(--red));
  background: #FFFFFF88; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 1200px) { .marginnote { float: none; width: auto; margin: 18px 0; } }

/* K13: stat trio */
.stattrio { display: flex; gap: clamp(20px, 4vw, 54px); flex-wrap: wrap; margin: 30px 0; }
.stattrio div { min-width: 120px; }
.stattrio .n { font-family: var(--display); font-weight: 900; font-size: 40px;
  color: var(--accent, var(--red)); line-height: 1; }
.stattrio .c { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* K14: hued scenebands */
.sceneband.g-bluedark { background: #0A1626; }
.sceneband.g-greendark { background: #07211A; }
.sceneband.g-orangedark { background: #241305; }

/* K15: dot grid — populations as marks */
.dotgrid { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 8px; max-width: 560px; }
.dotgrid i { width: 16px; height: 16px; border-radius: 4px; background: var(--line); }
.dotgrid i.on { background: var(--accent, var(--red)); }

/* K16: end mark — three squares close every story */
.endmark { display: flex; gap: 7px; justify-content: center; padding: 34px 0 8px; }
.endmark i { width: 13px; height: 13px; border-radius: 3px; background: var(--ink); }
.endmark i:nth-child(2) { background: var(--accent, var(--red)); }

/* K17: accent plumbing inside essays */
.essay { --accent: var(--red); --accent-bright: #FF5D73; }
.essay.a-blue { --accent: var(--blue); --accent-bright: #6EA8FF; }
.essay.a-green { --accent: var(--green); --accent-bright: #34C08B; }
.essay.a-orange { --accent: var(--orange); --accent-bright: #FF9A4D; }
.essay .pullstat { color: var(--accent); }
.essay p:first-child::first-letter { color: var(--accent); }
.essay a { color: var(--accent); }
.factlist .fignum { color: var(--accent, var(--red)); }

/* the ao5 tiles: five solves, two faded */
.ao5tiles { display: flex; gap: 12px; justify-content: center; padding: 10px 0 4px; flex-wrap: wrap; }
.ao5tiles .tile {
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 34px);
  padding: 18px 20px; border-radius: 10px; background: #1B1F27; color: #F2F1EC;
}
.ao5tiles .tile.out { opacity: 0.32; text-decoration: line-through; }
.ao5tiles .tile.rec { background: var(--red); color: #fff; }
.ao5tiles + .pullcap { text-align: center; }

/* story cards (fronts + homepage strip) — hue-keyed per story */
.storycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(18px, 2.5vw, 34px); }
.storycard { display: block; text-decoration: none; color: inherit; border-top: 4px solid var(--red); padding-top: 14px; }
.storycard .kicker { margin-bottom: 6px; }
.storycard h3 { font-size: 22px; font-weight: 900; line-height: 1.15; }
.storycard p { font-size: 15.5px; color: var(--ink-soft); margin: 8px 0 0; }
.storycard.h-red { border-top-color: var(--red); }
.storycard.h-blue { border-top-color: var(--blue); }
.storycard.h-green { border-top-color: var(--green); }
.storycard.h-orange { border-top-color: var(--orange); }
.storycard.h-red .kicker, .storycard.h-red:hover h3 { color: var(--red); }
.storycard.h-blue .kicker, .storycard.h-blue:hover h3 { color: var(--blue); }
.storycard.h-green .kicker, .storycard.h-green:hover h3 { color: var(--green); }
.storycard.h-orange .kicker, .storycard.h-orange:hover h3 { color: var(--orange); }

/* numbers hub fact list */
.factlist { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.factlist li { padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 17.5px; line-height: 1.6; }
.factlist .fignum { font-family: var(--display); font-weight: 800; color: var(--red); }

/* ---------- footer ---------- */
footer.site {
  margin-top: 64px; border-top: 2px solid var(--ink);
  padding: 30px 0 60px; font-size: 14px; color: var(--ink-soft);
}
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site .provenance { max-width: 66ch; line-height: 1.7; }
footer.site .motto { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 16px; }
footer.site a { color: var(--ink-soft); }

/* ---------- page hero (interior) ---------- */
.pagehead { padding: 26px 0 10px; }
.pagehead h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; }
.pagehead .meta { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
.pagehead .meta .id { font-family: var(--mono); font-size: 13px; }

/* record hero number */
.recnum { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 10vw, 120px); letter-spacing: -0.03em; line-height: 0.95; font-variant-numeric: tabular-nums; }

/* progression chart */
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { font: 12.5px var(--text); fill: var(--ink-soft); }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.chart .dot { fill: var(--blue); }
.chart .dot.pb { fill: var(--green); }
.chart .flag { font: 700 12.5px var(--text); fill: var(--green); }

/* ---------- the reduction, performed (homepage masthead) ---------- */
.anim rect { transition: opacity .9s ease, transform .9s cubic-bezier(.6,0,.3,1), fill .9s ease; }
.anim.s1 .corner { opacity: 0; }
.anim.s2 .flank { opacity: .14; }
.anim.s2 .fl { transform: translateX(-7px); }
.anim.s2 .fr { transform: translateX(7px); }
.anim.s2 .m1 { fill: var(--red); }
.anim.s2 .m2 { fill: var(--green); }
.anim.s2 .m3 { fill: var(--blue); }

/* ---------- the cube system ----------
   .c3 is a parameterised 3D cube: --s size, --dur spin period, --rx tilt.
   .wire = ghost outline (backdrop art), .solid = sticker-grid brand cube.
   Fields of cubes sit behind content (.hero-stage > .cubefield). */
.hero-stage { position: relative; }
.cubefield {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  perspective: 1200px;
}
.hero-stage > *:not(.cubefield) { position: relative; z-index: 1; }
.c3 {
  position: absolute; width: var(--s, 200px); height: var(--s, 200px);
  transform-style: preserve-3d;
  animation: c3spin var(--dur, 60s) linear infinite;
}
.c3 .face { position: absolute; inset: 0; border-radius: calc(var(--s) * 0.08); }
.c3.solid .face { border-radius: 10px; }
.c3 .coreface { position: absolute; inset: 0; background: #0B0D11; }
.c3 .cf1 { transform: translateZ(calc(var(--s) / 2 - 4px)); }
.c3 .cf2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2 - 4px)); }
.c3 .cf3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2 - 4px)); }
.c3 .cf4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2 - 4px)); }
.c3 .cf5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2 - 4px)); }
.c3 .cf6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2 - 4px)); }
.c3.wire .face {
  border: 2px solid var(--wc, rgba(24, 28, 34, 0.08));
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--s) * 0.047); padding: calc(var(--s) * 0.047);
}
.c3.wire .face i {
  border: 1.5px solid var(--wc, rgba(24, 28, 34, 0.08));
  border-radius: calc(var(--s) * 0.03); background: transparent;
}
.c3.solid .face {
  background: #0B0D11; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--s) * 0.047); padding: calc(var(--s) * 0.047);
}
.c3.solid .face i { border-radius: calc(var(--s) * 0.04); background: var(--c, #FAF9F5); }
.c3 .f1 { transform: translateZ(calc(var(--s) / 2)); }
.c3 .f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.c3 .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.c3 .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.c3 .f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.c3 .f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes c3spin {
  from { transform: rotateX(var(--rx, -22deg)) rotateY(0deg); }
  to { transform: rotateX(var(--rx, -22deg)) rotateY(360deg); }
}

/* generic 3D solid (tetra, octa, dodeca, disc) — faces carry matrix3d */
.s3 {
  position: absolute; width: var(--s, 200px); height: var(--s, 200px);
  transform-style: preserve-3d;
  animation: c3spin var(--dur, 60s) linear infinite;
}
.s3 .sface { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d;
  backface-visibility: hidden; }
.s3 .score { position: absolute; left: 50%; top: 50%; }
.s3 .sface svg { display: block; }
.s3 .sedge {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2);
  height: calc(var(--r) * 2); border-radius: 50%;
  transform: translate(-50%, -50%); background: #0B0D11;
}
@media (prefers-reduced-motion: reduce) { .s3 { animation: none; } }
@media (max-width: 940px) { .cubefield .s3 { display: none; } }
@media (max-width: 940px) { .cubefield { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .c3 { animation: none; transform: rotateX(var(--rx, -22deg)) rotateY(-32deg); }
}

/* ---------- the cube (dark band) ---------- */
.cubewrap { perspective: 900px; display: flex; justify-content: center; padding: 10px 0 26px; }
.cube3d {
  width: 148px; height: 148px; position: relative;
  transform-style: preserve-3d;
  animation: cubespin 32s linear infinite;
}
.cube3d .coreface { position: absolute; inset: 0; background: #0B0D11; }
.cube3d .cf1 { transform: translateZ(70px); }
.cube3d .cf2 { transform: rotateY(180deg) translateZ(70px); }
.cube3d .cf3 { transform: rotateY(90deg) translateZ(70px); }
.cube3d .cf4 { transform: rotateY(-90deg) translateZ(70px); }
.cube3d .cf5 { transform: rotateX(90deg) translateZ(70px); }
.cube3d .cf6 { transform: rotateX(-90deg) translateZ(70px); }
.cube3d .face { border-radius: 8px !important; 
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 7px;
  background: #0B0D11; border-radius: 12px;
}
.cube3d .face i { border-radius: 6px; background: var(--c, #FAF9F5); }
.cube3d .f1 { transform: translateZ(74px); }
.cube3d .f2 { transform: rotateY(180deg) translateZ(74px); }
.cube3d .f3 { transform: rotateY(90deg) translateZ(74px); }
.cube3d .f4 { transform: rotateY(-90deg) translateZ(74px); }
.cube3d .f5 { transform: rotateX(90deg) translateZ(74px); }
.cube3d .f6 { transform: rotateX(-90deg) translateZ(74px); }
@keyframes cubespin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to { transform: rotateX(-22deg) rotateY(360deg); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim rect { transition: none !important; }
  .cube3d { animation: none; transform: rotateX(-22deg) rotateY(-32deg); }
}

/* ---------- K18: the cubie engine — a 3×3 built from its 26 real pieces.
   .cb3 spins like .c3. Inside, each .cubie is a small 3D box positioned by
   --x/--y/--z. Modes: .flow = the cube breathes apart into pieces and
   reassembles; .cbl.turn = the top layer twists a quarter-turn and back. */
.cb3 { position: absolute; width: var(--s, 300px); height: var(--s, 300px);
  transform-style: preserve-3d;
  animation: c3spin var(--dur, 52s) linear infinite; }
.cb3 .cbl { position: absolute; inset: 0; transform-style: preserve-3d; }
.cb3 .cbl.turn { animation: cbtwist 9s cubic-bezier(.68, 0, .32, 1) infinite; }
.cb3 .cubie { position: absolute; left: 50%; top: 50%;
  width: var(--u); height: var(--u);
  margin: calc(var(--u) / -2) 0 0 calc(var(--u) / -2);
  transform-style: preserve-3d;
  transform: translate3d(var(--x), var(--y), var(--z)); }
.cb3.flow .cubie {
  animation: cbflow 12s cubic-bezier(.6, 0, .4, 1) infinite alternate; }
.cb3 .cfc { position: absolute; inset: 1%; border-radius: 14%;
  background: #0B0D11; backface-visibility: hidden; }
.cb3 .cfc b { position: absolute; inset: 8%; border-radius: 18%;
  background: var(--c, transparent); }
.cb3 .cfc1 { transform: translateZ(calc(var(--u) / 2)); }
.cb3 .cfc2 { transform: rotateY(180deg) translateZ(calc(var(--u) / 2)); }
.cb3 .cfc3 { transform: rotateY(90deg) translateZ(calc(var(--u) / 2)); }
.cb3 .cfc4 { transform: rotateY(-90deg) translateZ(calc(var(--u) / 2)); }
.cb3 .cfc5 { transform: rotateX(90deg) translateZ(calc(var(--u) / 2)); }
.cb3 .cfc6 { transform: rotateX(-90deg) translateZ(calc(var(--u) / 2)); }
@keyframes cbflow {
  0%, 10% { transform:
    translate3d(calc(var(--x) * 1.55), calc(var(--y) * 1.55), calc(var(--z) * 1.55))
    rotateX(calc(var(--rj, 0) * 1deg)) rotateY(calc(var(--rj, 0) * -1deg)); }
  55%, 100% { transform: translate3d(var(--x), var(--y), var(--z)); }
}
@keyframes cbtwist {
  0%, 24% { transform: rotateY(0deg); }
  40%, 62% { transform: rotateY(90deg); }
  78%, 100% { transform: rotateY(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cb3, .cb3 .cbl.turn, .cb3.flow .cubie { animation: none; }
  .cb3 { transform: rotateX(var(--rx, -22deg)) rotateY(-32deg); }
}

/* ---------- K19: particle field — sticker confetti drifting up a dark band.
   Each <i> carries --px (left), --pc (colour), --pd (duration), --po (delay),
   --pa (opacity), --pw (size), --ph (climb height). ---------- */
.pfield { position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0; }
.pfield i { position: absolute; display: block; left: var(--px); top: 104%;
  width: var(--pw, 7px); height: var(--pw, 7px); border-radius: 2.5px;
  background: var(--pc, #FAF9F5); opacity: 0;
  animation: pdrift var(--pd, 18s) linear infinite;
  animation-delay: var(--po, 0s); }
@keyframes pdrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--pa, .45); }
  82% { opacity: var(--pa, .45); }
  100% { transform: translateY(calc(var(--ph, 640px) * -1.15)) rotate(300deg);
    opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pfield { display: none; } }

/* ---------- K20: aurora — two slow blurred colour fields breathing behind
   a dark band. Each <i>: --ac colour, --ax0/--ay0 → --ax1/--ay1 drift. */
.aurora { position: absolute; inset: -12%; pointer-events: none; z-index: 0;
  filter: blur(44px); }
.aurora i { position: absolute; display: block; width: 52%; height: 52%;
  border-radius: 50%; opacity: var(--aa, .17);
  background: radial-gradient(circle at 50% 50%, var(--ac), transparent 68%);
  animation: adrift var(--ad, 28s) ease-in-out infinite alternate; }
@keyframes adrift {
  from { transform: translate3d(var(--ax0, 0), var(--ay0, 0), 0) scale(1); }
  to { transform: translate3d(var(--ax1, 10%), var(--ay1, -6%), 0) scale(1.3); }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ---------- K21: the lead splash — the newspaper front-page lead.
   Full-width dark panel above the story grid: splash headline left,
   living scene right. Hue classes recolour kicker and tag. ---------- */
.leadsplash { position: relative; display: grid; contain: paint;
  grid-template-columns: 1.15fr .85fr; text-decoration: none; color: #F2F1EC;
  background: var(--dark); border-radius: 14px; overflow: hidden;
  margin-bottom: clamp(24px, 3vw, 40px); min-height: 360px; }
.leadsplash .lstext { position: relative; z-index: 2;
  padding: clamp(26px, 3.5vw, 48px); align-self: center; }
.leadsplash .lslabel { font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #9AA0A8;
  margin: 0 0 14px; }
.leadsplash .lslabel::after { content: ""; display: block; width: 44px;
  height: 3px; margin-top: 10px; background: var(--red); }
.leadsplash h3 { font-family: var(--display); font-weight: 900; color: #fff;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.04;
  letter-spacing: -0.5px; margin: 8px 0 0; }
.leadsplash:hover h3 { text-decoration: underline;
  text-decoration-thickness: 3px; text-underline-offset: 6px; }
.leadsplash .lstand { color: #C9CCD2; font-size: clamp(15.5px, 1.5vw, 18.5px);
  line-height: 1.55; margin: 18px 0 0; max-width: 54ch; }
.leadsplash .lstand b { color: #fff; }
.leadsplash .lstag { display: inline-block; margin-top: 22px;
  font-weight: 700; font-size: 14px; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px;
  padding: 7px 16px; }
.leadsplash .lscene { position: relative; z-index: 1; overflow: hidden;
  contain: paint; perspective: 1100px; }
.leadsplash.h-red .kicker { color: #FF5D73; }
.leadsplash.h-blue .kicker { color: #7FA9E8; }
.leadsplash.h-green .kicker { color: #58C99A; }
.leadsplash.h-orange .kicker { color: #FFA45C; }
.leadsplash.h-red .lslabel::after, .leadsplash.h-red:hover .lstag
  { background: var(--red); border-color: var(--red); }
.leadsplash.h-blue .lslabel::after, .leadsplash.h-blue:hover .lstag
  { background: var(--blue); border-color: var(--blue); }
.leadsplash.h-green .lslabel::after, .leadsplash.h-green:hover .lstag
  { background: var(--green); border-color: var(--green); }
.leadsplash.h-orange .lslabel::after, .leadsplash.h-orange:hover .lstag
  { background: var(--orange); border-color: var(--orange); }
@media (max-width: 860px) {
  .leadsplash { grid-template-columns: 1fr; min-height: 0; }
  .leadsplash .lscene { order: -1; height: 190px; }
  .leadsplash .lstext { padding: 22px 20px 28px; }
  .leadsplash h3 { font-size: clamp(27px, 7.5vw, 34px); }
}

/* ---------- Test Yourself: scramble modules ---------- */
.tymod { border-top: 4px solid var(--green); padding: 18px 0 34px;
  border-bottom: 1px solid var(--line-soft); }
.tymod h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.tymod h3 a { text-decoration: none; }
.tymeta { font-size: 15.5px; color: var(--ink-soft); margin: 6px 0 0; }
.scrambles { list-style: none; margin: 18px 0 0; padding: 0; max-width: 780px; }
.scrambles li { display: flex; gap: 14px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.scrambles .d { font-family: var(--display); font-weight: 800; font-size: 15px;
  color: var(--green); flex: 0 0 16px; }
.scrambles code { font-family: var(--mono); font-size: 14.5px;
  letter-spacing: 0.04em; overflow-wrap: anywhere; }
.tycubes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tyinvite { font-size: 16.5px; margin-top: 18px; max-width: 620px; }
.tymod .t { font-weight: 800; }
@media (max-width: 720px) { .tycubes { justify-content: center; } }

/* ---------- race the final: the in-page timer ---------- */
.race { margin-top: 26px; background: var(--dark); border-radius: 12px;
  padding: clamp(18px, 2.5vw, 30px); color: #C9CCD2; }
.race .rc-disp { font-family: var(--display); font-weight: 900;
  font-size: clamp(54px, 7vw, 96px); line-height: 1; color: #fff;
  letter-spacing: -0.02em; cursor: pointer; user-select: none;
  font-variant-numeric: tabular-nums; }
.race .rc-disp.hot { color: #FF5D73; }
.race .rc-status { font-size: 15px; max-width: 54ch; margin: 10px 0 0; }
.race .rc-row { display: flex; gap: 16px; align-items: center;
  margin-top: 16px; flex-wrap: wrap; }
.race .rc-btn { font-family: var(--display); font-weight: 700;
  font-size: 16px; color: #fff; background: var(--green); border: 0;
  border-radius: 999px; padding: 11px 22px; cursor: pointer; }
.race .rc-btn:hover { filter: brightness(1.1); }
.race .rc-alt { background: none; border: 0; color: #8B919A;
  font-size: 13.5px; text-decoration: underline; cursor: pointer;
  padding: 0; }
.race .rc-form { display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; }
.race .rc-form input { width: 92px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #3A404B; background: #1A1F27; color: #fff;
  font-family: var(--mono); font-size: 15px; }
.race .rc-verdict { font-size: 17px; color: #fff; margin: 18px 0 8px; }
.race .rc-verdict .t { color: #58C99A; }
.race .rc-note { font-size: 13px; color: #8B919A; }
.race .rc-note a { color: #9DBCEF; }
.race .rc-table { width: 100%; max-width: 460px; border-collapse: collapse;
  font-size: 15px; }
.race .rc-table td { padding: 7px 10px 7px 0;
  border-bottom: 1px solid #262B34; }
.race .rc-table td.num { font-family: var(--mono);
  font-variant-numeric: tabular-nums; text-align: right; }
.race .rc-table tr.you td { background: rgba(0, 148, 90, .18);
  color: #fff; font-weight: 700; }
.race .rc-table tr.you .t { color: #58C99A; }
.race .rc-share { margin-top: 16px; background: #1A1F27;
  border: 1.5px solid rgba(255, 255, 255, .25); }
.race .rc-share:hover { border-color: var(--green); }

/* ---------- the algorithm player ---------- */
/* The cube players and the Megaminx player share their frame, notation
   strip and controls; only the thing being animated differs, a stack of
   3D cubies in one case and an SVG net in the other. */
.algplayer, .megaplayer { background: var(--dark); border-radius: 14px;
  padding: clamp(18px, 2.5vw, 30px); color: #C9CCD2; margin-top: 22px; }
.megaplayer { text-align: center; }
.megaplayer svg { max-width: 100%; height: auto; }
.algplayer .alg-stage { margin: 0 auto; perspective: 1100px;
  display: flex; align-items: center; justify-content: center; }
.algplayer .alg-poser { transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(-38deg); }
.algplayer .alg-asm { position: relative; transform-style: preserve-3d; }
.algplayer .alg-group { position: absolute; inset: 0;
  transform-style: preserve-3d; }
.algplayer .alg-cubie { position: absolute; left: 50%; top: 50%;
  transform-style: preserve-3d; }
.algplayer .alg-face { position: absolute; inset: 1%; border-radius: 14%;
  background: #0B0D11; backface-visibility: hidden; }
.algplayer .alg-face b { position: absolute; inset: 8%; border-radius: 18%;
  display: block; }
.algplayer .alg-f0 { transform: translateZ(calc(var(--u) / 2)); }
.algplayer .alg-f1 { transform: rotateY(180deg) translateZ(calc(var(--u) / 2)); }
.algplayer .alg-f2 { transform: rotateY(90deg) translateZ(calc(var(--u) / 2)); }
.algplayer .alg-f3 { transform: rotateY(-90deg) translateZ(calc(var(--u) / 2)); }
.algplayer .alg-f4 { transform: rotateX(90deg) translateZ(calc(var(--u) / 2)); }
.algplayer .alg-f5 { transform: rotateX(-90deg) translateZ(calc(var(--u) / 2)); }
.algplayer .alg-strip, .megaplayer .alg-strip { display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 18px; }
.algplayer .alg-strip span, .megaplayer .alg-strip span { font-family: var(--mono); font-size: 20px;
  font-weight: 700; color: #5A6472; padding: 4px 10px; border-radius: 8px;
  transition: color .2s, background .2s; }
.algplayer .alg-strip span.now, .megaplayer .alg-strip span.now { color: #fff; background: var(--green); }
.algplayer .alg-strip span.did, .megaplayer .alg-strip span.did { color: #C9CCD2; }
.algplayer .alg-bar, .megaplayer .alg-bar { display: flex; gap: 10px; justify-content: center;
  align-items: center; margin-top: 16px; flex-wrap: wrap; }
.algplayer .alg-bar button, .megaplayer .alg-bar button { font-family: var(--display); font-weight: 700;
  font-size: 15px; color: #fff; background: #1A1F27;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; }
.algplayer .alg-bar button:hover, .megaplayer .alg-bar button:hover { border-color: var(--green); }
.algplayer .alg-bar select, .megaplayer .alg-bar select { background: #1A1F27; color: #fff;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .algplayer .alg-group { transition: none !important; }
}

/* ---------- Learn: levels, steps, journey ---------- */
.levelnav { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.levelnav .lvl { display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink-soft); font-family: var(--display);
  font-weight: 700; font-size: 15px; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 16px 8px 8px; }
.levelnav .lvl .n { display: inline-flex; width: 28px; height: 28px;
  border-radius: 50%; align-items: center; justify-content: center;
  background: var(--line-soft); font-size: 14px; }
.levelnav .lvl.on { color: var(--ink); border-color: var(--ink); }
.levelnav .lvl.on .n { background: var(--green); color: #fff; }
.stepslist { list-style: none; margin: 0; padding: 0; max-width: 480px; }
.stepslist li { border-bottom: 1px solid var(--line-soft); }
.stepslist a { display: flex; gap: 16px; align-items: baseline;
  padding: 13px 4px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 18px; }
.stepslist a:hover { color: var(--green); }
.stepslist .n { font-weight: 900; color: var(--green); min-width: 22px; }
.stepslist.big a { font-size: clamp(20px, 2.4vw, 26px); padding: 16px 4px; }
.journey { display: flex; justify-content: space-between; gap: 18px;
  margin-top: 40px; border-top: 2px solid var(--ink); padding-top: 16px;
  flex-wrap: wrap; }
.journey a { font-family: var(--display); font-weight: 700;
  text-decoration: none; font-size: 16.5px; }
.journey .jnext { margin-left: auto; text-align: right; }

/* ---------- the big foot: a living dark band to end every page ---------- */
footer.bigfoot { position: relative; overflow: hidden; background: var(--dark);
  border-top: none;
  color: #C9CCD2; margin-top: 70px; padding: 54px 0 40px;
  contain: paint; }
footer.bigfoot .footscene { position: absolute; inset: 0; z-index: 0;
  pointer-events: none; perspective: 1000px; }
footer.bigfoot .footghost { position: absolute; left: -20px; bottom: -34px;
  font-family: var(--display); font-weight: 900; white-space: nowrap;
  font-size: clamp(80px, 12vw, 170px); letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 236, .07); }
footer.bigfoot .footwrap { position: relative; z-index: 1; }
footer.bigfoot .footbrand { display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; }
footer.bigfoot .footbrand .word { font-family: var(--display);
  font-weight: 900; font-size: 28px; color: #fff; letter-spacing: -0.02em; }
footer.bigfoot .footbrand .strap { font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: #8B919A; }
footer.bigfoot .footmap { display: grid; gap: 26px 34px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 30px 0 34px; position: relative; z-index: 2; }
footer.bigfoot .footcol ul { list-style: none; margin: 8px 0 0; padding: 0; }
footer.bigfoot .footcol li { margin-bottom: 5px; }
footer.bigfoot .foothead { font-family: var(--display); font-weight: 900;
  font-size: 17px; color: #FAF9F5; text-decoration: none; }
footer.bigfoot .foothead:hover { color: #58C99A; }
footer.bigfoot .footcol a { font-size: 14.5px; color: #B9BEC6;
  text-decoration: none; }
footer.bigfoot .footcol ul a:hover { color: #FAF9F5; }
footer.bigfoot .provenance a { color: #9DBCEF; }
footer.bigfoot .motto { font-family: var(--display); font-weight: 800;
  color: #fff; }
@media (max-width: 720px) {
  footer.bigfoot .footscene { display: none; }
}

/* ---- Level 3 case library ---------------------------------------- */
.casetop { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px;
  align-items: start; margin-bottom: 26px; }
.casetop-diag { display: flex; justify-content: center; padding-top: 14px; }
.casetop-diag svg { width: 100%; max-width: 230px; height: auto; }
.casetop-player { display: flex; justify-content: center; }
@media (max-width: 720px) {
  .casetop { grid-template-columns: 1fr; }
  .casetop-diag svg { max-width: 180px; }
}
.casetext { max-width: 62ch; }
.casefam { font-family: var(--display, "Schibsted Grotesk"), sans-serif;
  font-weight: 700; font-size: 19px; margin: 34px 0 12px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.casegrid { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px; }
.casecard { display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 8px 10px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: #FFFFFF; color: var(--ink);
  transition: border-color .15s, transform .15s; }
.casecard:hover { border-color: var(--orange); transform: translateY(-2px);
  color: var(--ink); }
.casecard svg { width: 86px; height: 86px; }
.cc-label { font-weight: 700; font-size: 14px; }
.cc-sub { font-size: 12px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; }

/* ---- the recognition trainer -------------------------------------- */
.trainer { max-width: 560px; margin: 0 auto; }
.tr-modes { display: flex; gap: 8px; justify-content: center;
  margin-bottom: 22px; flex-wrap: wrap; }
.tr-modes button { font: 700 14px/1 var(--body, "Atkinson Hyperlegible");
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent;
  color: var(--ink); }
.tr-modes button[aria-pressed="true"] { background: var(--ink);
  color: var(--paper); }
.tr-stage { display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 26px 16px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: #FFFFFF; }
.tr-stage .tr-diag { width: 190px; height: 190px; }
.tr-diag svg { width: 100%; height: 100%; }
.tr-rot-1 svg { transform: rotate(90deg); }
.tr-rot-2 svg { transform: rotate(180deg); }
.tr-rot-3 svg { transform: rotate(270deg); }
.tr-clock { font-family: var(--display, "Schibsted Grotesk"), sans-serif;
  font-weight: 900; font-size: 26px; font-variant-numeric: tabular-nums; }
.tr-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  width: 100%; margin-top: 8px; }
.tr-answers button { font: 700 15px/1.25 var(--body, "Atkinson Hyperlegible");
  padding: 13px 10px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent;
  color: var(--ink); min-height: 48px; }
.tr-answers button:hover { border-color: var(--orange);
  color: var(--orange); }
.tr-answers button.hit { background: var(--green); border-color: var(--green);
  color: #fff; }
.tr-answers button.miss { background: var(--red); border-color: var(--red);
  color: #fff; }
.tr-answers button.reveal { border-color: var(--green);
  color: var(--green); }
.tr-next { margin-top: 14px; font-size: 14px; color: var(--ink-soft);
  min-height: 40px; text-align: center; }
.tr-next a { color: var(--blue); }
.tr-stats { display: flex; gap: 26px; justify-content: center;
  margin-top: 22px; font-variant-numeric: tabular-nums;
  color: var(--ink-soft); font-size: 14.5px; flex-wrap: wrap; }
.tr-stats b { font-family: var(--display, "Schibsted Grotesk"), sans-serif;
  font-size: 21px; color: var(--ink); display: block; text-align: center; }
.tr-worst { margin-top: 30px; }
.tr-worst table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tr-worst td, .tr-worst th { padding: 7px 8px; text-align: left;
  border-bottom: 1px solid var(--line-soft); }
.tr-worst td.time { font-variant-numeric: tabular-nums; }

/* ---- Level 1 goal figures ------------------------------------------ */
.stepgoal { margin: 22px auto 0; display: flex; flex-direction: column;
  align-items: center; gap: 8px; max-width: 250px; }
.stepgoal svg { width: 140px; height: auto; }
.stepgoal figcaption { font-size: 13.5px; color: var(--ink-soft);
  text-align: center; line-height: 1.5; }

/* ---- the timer ------------------------------------------------------
   Built for a ten-year-old at arm's length: one instruction visible at
   a time, numbered steps, and a clock big enough to read across a
   room. Two hues carry status and nothing else — green for go and for
   a personal best, red for a penalty. */
.timerwrap { max-width: 780px; margin: 0 auto; }

.tm-events { display: flex; gap: 10px; justify-content: center;
  margin-bottom: 22px; }
.tm-events button { font: 900 20px/1 "Schibsted Grotesk", sans-serif;
  padding: 13px 30px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid var(--ink); background: transparent;
  color: var(--ink); }
.tm-events button[aria-pressed="true"] { background: var(--ink);
  color: var(--paper); }

.tm-step { border: 2px solid var(--ink); border-radius: 18px;
  padding: 20px 20px 24px; margin-bottom: 20px; background: #fff; }
.tm-steplabel { display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; font: 700 19px/1.3 "Atkinson Hyperlegible", sans-serif;
  color: var(--ink); }
.tm-steplabel span:first-child { flex: 0 0 auto; width: 34px; height: 34px;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  font: 900 19px/34px "Schibsted Grotesk", sans-serif; text-align: center; }
.tm-scramble { text-align: center; font: 900 clamp(22px, 4.6vw, 38px)/1.45
  "Schibsted Grotesk", sans-serif; letter-spacing: 0.055em;
  word-spacing: 0.28em; padding: 6px 0 4px; }
.tm-skip { display: block; margin: 12px auto 0;
  font: 700 14px/1 "Atkinson Hyperlegible", sans-serif; padding: 9px 16px;
  border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-soft); }
.tm-skip:hover { border-color: var(--ink); color: var(--ink); }

.tm-stage { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; min-height: 300px;
  border-radius: 14px; background: #F4F3EE; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none; }
.tm-stage:focus-visible { outline: 4px solid var(--green);
  outline-offset: 3px; }
.tm-clock { font: 900 clamp(76px, 20vw, 168px)/0.95 "Schibsted Grotesk",
  sans-serif; font-variant-numeric: tabular-nums; color: var(--ink);
  letter-spacing: -0.02em; }
.tm-clock.tm-arming { color: var(--ink-faint); }
.tm-clock.tm-armed { color: var(--green); }
.tm-clock.tm-pb { color: var(--green); }
.tm-clock.tm-warn8 { color: var(--ink); }
.tm-clock.tm-warn, .tm-clock.tm-over { color: var(--red); }
.tm-hint { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft);
  text-align: center; padding: 0 24px 10px; max-width: 44ch; }

.tm-five { text-align: center; margin: 26px 0 4px;
  font-variant-numeric: tabular-nums; font-size: 21px; min-height: 30px; }
.tm-five .drop { color: var(--ink-faint); text-decoration: line-through; }
.tm-five .keep { font-weight: 900; font-family: "Schibsted Grotesk",
  sans-serif; }
.tm-five-label { display: block; font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.tm-five-avg { font-family: "Schibsted Grotesk", sans-serif; font-weight: 900;
  color: var(--green); margin-left: 8px; }
.tm-quiet { font-size: 14.5px; color: var(--ink-faint); text-align: center;
  max-width: 48ch; margin: 0 auto; }

.tm-stats { display: grid; gap: 12px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
.tm-stats span { padding: 12px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center; }
.tm-stats b { display: block; font: 900 26px/1.15 "Schibsted Grotesk",
  sans-serif; color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; margin-bottom: 3px; text-transform: none; }

.tm-spark { margin-top: 24px; }
.tm-spark svg { width: 100%; height: 64px; }

.tm-history { margin-top: 26px; }
.tm-history table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tm-history td, .tm-history th { padding: 9px 8px; text-align: left;
  border-bottom: 1px solid var(--line-soft); }
.tm-history th { font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); }
.tm-history td.time { font: 900 18px/1 "Schibsted Grotesk", sans-serif;
  font-variant-numeric: tabular-nums; }
.tm-history tr[data-n] { cursor: pointer; }
.tm-history tr[data-n]:hover td { background: #F4F3EE; }
.tm-scr { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.05em; }

.tm-tools { margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; gap: 14px; }
.tm-session select { font: 700 15px "Atkinson Hyperlegible", sans-serif;
  padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 10px;
  background: #fff; color: var(--ink); }
.tm-mode { display: flex; gap: 10px; justify-content: center;
  margin: 14px 0 6px; }
.tm-mode button { font: 700 17px/1.2 "Atkinson Hyperlegible", sans-serif;
  padding: 12px 22px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); cursor: pointer; }
.tm-mode button[aria-pressed="true"] { background: var(--ink);
  color: var(--paper); }
.tm-voice { font-size: 15px; color: var(--ink); display: flex; gap: 9px;
  justify-content: center; align-items: center; margin: 0 0 10px; }
.tm-voice input { width: 20px; height: 20px; flex: 0 0 auto;
  accent-color: var(--orange); }
.tm-toolrow { display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; }
.tm-tools button { font: 700 14.5px/1 "Atkinson Hyperlegible", sans-serif;
  padding: 11px 16px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent;
  color: var(--ink-soft); }
.tm-tools button:hover { border-color: var(--ink); color: var(--ink); }

/* every session you have kept, so an old one is one click away */
.tm-sessions { margin-top: 30px; padding-top: 24px;
  border-top: 1px solid var(--line); }
.tm-sessions .tm-h3 { font-family: var(--display); font-weight: 900;
  font-size: 20px; margin: 0 0 4px; }
.tm-sessions .tm-quiet { text-align: left; margin: 0 0 14px; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tm-table td, .tm-table th { padding: 9px 12px 9px 0; text-align: left;
  border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tm-table th { font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); }
.tm-table tr.tm-cur td { background: #F4F3EE; }
.tm-table .tm-rowtools { text-align: right; }
.tm-link { font: 700 15px/1 "Atkinson Hyperlegible", sans-serif;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 3px; }
.tm-link:hover { color: var(--ink); }
.tm-link.tm-danger { color: var(--red); font-weight: 400; font-size: 14px; }

@media (max-width: 560px) {
  .tm-step { padding: 16px 13px 18px; border-radius: 14px; }
  .tm-stage { min-height: 240px; }
  .tm-steplabel { font-size: 17px; }
}

/* ---- 2x2 lane case grids ------------------------------------------- */
.o2grid { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px; margin-bottom: 14px; }
.o2cell { display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px 8px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; }
.o2cell .kicker { margin: 0; }

/* phones: all five sections still fit on one line */
@media (max-width: 430px) {
  .mainnav a { font-size: 15px; padding: 13px 1px; }
  .subnav a { font-size: 13.5px; }
}

/* Square-1 lane: wedge-chart figures */
.sq1shape { margin: 18px 0; }
.sq1shape .pair { display: flex; gap: 14px; align-items: center; }
.sq1shape figcaption { font-size: 13.5px; color: var(--ink);
  opacity: .75; margin-top: 6px; max-width: 34ch; }
.sq1grid { display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 18px; }
.sq1grid .sq1shape { margin: 6px 0; }
.sq1chain { display: flex; flex-wrap: wrap; gap: 14px 22px;
  margin-top: 20px; }
.sq1step .pair { display: flex; gap: 8px; }
.sq1step .cap { font-size: 12.5px; opacity: .7; margin: 4px 0 0;
  text-align: center; }
.sq1endnote { font-size: 14.5px; margin-top: 14px; opacity: .85; }
.sq1mid { font-size: 12.5px; color: var(--red); margin: 4px 0 0; }

/* the polyhedron player */
.poly3d, .sq13d { display: inline-block; max-width: 300px; }
.notrow { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 22px; }
.notrow .notdemo { margin: 0; }
.notrow .notdemo figcaption { max-width: 230px; margin-top: 6px; }
/* the 3D players' notation strip and controls: same conventions as the
   flat players' dark strip, restated for the paper ground they sit on */
.poly3d .alg-strip, .sq13d .alg-strip { display: flex; gap: 8px;
  flex-wrap: wrap; margin-top: 10px; }
.poly3d .alg-strip span, .sq13d .alg-strip span {
  font-family: var(--mono); font-size: 17px; color: var(--ink); }
.poly3d .alg-strip span.now, .sq13d .alg-strip span.now {
  color: #fff; background: var(--green); padding: 0 5px;
  border-radius: 4px; }
.poly3d .alg-strip span.did, .sq13d .alg-strip span.did {
  color: #C9CCD2; }
.sq13d + .sq13d { display: block; margin-top: 18px; }
/* the compare-any-two tool on the versus index */
.cmp-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.cmp-picker { flex: 1; min-width: 240px; position: relative; }
.cmp-picker input { width: 100%; font: 400 18px var(--text);
  color: var(--ink); background: #fff; border: 1.5px solid var(--ink);
  border-radius: 10px; padding: 13px 16px; }
.cmp-results { position: absolute; left: 0; right: 0; top: 100%;
  z-index: 30; background: #fff; border: 1.5px solid var(--ink);
  border-radius: 10px; margin-top: 6px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(24,28,34,.14); }
.cmp-results:empty { display: none; }
.cmp-hit { display: block; width: 100%; text-align: left;
  font: 400 16px var(--text); color: var(--ink); background: none;
  border: 0; padding: 10px 14px; cursor: pointer; }
.cmp-hit:hover { background: #EDF2FA; }
.cmp-line { font: 400 19px/1.6 var(--text); margin: 22px 0 6px; }
.cmp-note { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }
.cmp-out .scrollx { margin-top: 18px; }
.poly3d-scene { display: block; width: 240px; height: 240px;
  max-width: 100%; }
.poly3d-bar { display: flex; gap: 14px; align-items: center;
  margin-top: 14px; }
.poly3d-bar button { font: 700 14px/1 "Atkinson Hyperlegible", sans-serif;
  padding: 7px 16px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink); cursor: pointer; }
.poly3d-readout { font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12.5px; opacity: .75; overflow-wrap: anywhere; }
