@font-face { font-family: "Oswald"; src: url("fonts/OswaldBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/OswaldMedium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosTextRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosTextSemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Night-pitch palette shared with the deck (tools/kit.py COLORS). Dark only by design. */
:root {
  --bg: #0C1511;
  --surface: #16221C;
  --line: #24332C;
  --chalk: #F2F1EA;
  --muted: #8FA096;
  --volt: #D4FF3A;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Golos Text", "Segoe UI", sans-serif;

  --fs-14: 0.875rem; --fs-16: 1rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-32: 2rem;
  --fs-48: clamp(2rem, 1.2rem + 3.4vw, 3rem);
  --fs-72: clamp(2.5rem, 1.2rem + 5.6vw, 4.5rem);
  --fs-hero: clamp(3.5rem, 1rem + 11vw, 11rem);

  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px;
  --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px;

  --r-card: 12px;
  --r-pill: 999px;
  --stroke: 1px;
  --stroke-hero: 6px;
  --dot: 40px;
  --tap: 44px;

  --max: 1200px;
  --gutter: 16px;
  --dur-ui: 150ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--chalk);
  font: 400 var(--fs-16)/1.55 var(--font-text);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
h1, h2, h3, blockquote, .final, .motto__text { text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: var(--s-16); top: -100px; z-index: 30; background: var(--volt); color: var(--bg); padding: var(--s-8) var(--s-16); border-radius: var(--r-pill); }
.skip:focus { top: var(--s-16); }

.kicker {
  font: 500 var(--fs-16)/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-24);
}

/* Header */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-12) var(--gutter); transition: background var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
  border-bottom: var(--stroke) solid transparent;
}
.bar.is-solid { background: var(--bg); border-color: var(--line); }
.bar__name { font: 500 var(--fs-16)/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.lang { display: flex; border: var(--stroke) solid var(--line); border-radius: var(--r-pill); padding: var(--s-4); }
.lang button {
  min-width: var(--tap); min-height: var(--tap); border: 0; background: transparent; border-radius: var(--r-pill); cursor: pointer;
  font: 500 var(--fs-14)/1 var(--font-display); letter-spacing: .1em; padding-inline: var(--s-8);
}
.lang button[aria-pressed="true"] { background: var(--volt); color: var(--bg); }

/* The travelling ball: one element, animated onto each section's anchor. */
/* Round clip: only the inner image rotates, so the box never grows past the viewport edge. */
.ball-seams { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; opacity: 0; pointer-events: none; border-radius: 50%; overflow: hidden; }
.ball-seams img { display: block; width: 100%; height: 100%; }
.ball {
  position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none;
  background: transparent; border: 0 solid var(--volt); border-radius: 50%;
  will-change: transform, width, height;
}
.anchor--disc { aspect-ratio: 1; border-radius: 50%; background: var(--volt); }
.anchor--ring { border: var(--stroke-hero) solid var(--volt); border-radius: 50%; }
.anchor--frame { border: var(--stroke-hero) solid var(--volt); border-radius: var(--r-card); }
.anchor--medal { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 22%, var(--volt) 23%); }
.anchor--dot { display: block; flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--volt); }
/* With the ball active, anchors hand their shape to it; portrait and photo keep their content. */
.js-ball .anchor--disc, .js-ball .anchor--medal, .js-ball .anchor--dot { background: transparent; }
.js-ball .anchor--ring, .js-ball .anchor--frame { border-color: transparent; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; padding-block: var(--s-128) var(--s-64); overflow: hidden; }
.pitch { position: absolute; inset: 0; pointer-events: none; }
.pitch::before {
  content: ""; position: absolute; width: 70vmax; aspect-ratio: 1; border: var(--stroke) solid var(--line); border-radius: 50%;
  right: -22vmax; top: 50%; transform: translateY(-50%);
}
.pitch::after { content: ""; position: absolute; top: 0; bottom: 0; right: 13vmax; border-left: var(--stroke) solid var(--line); }
@media (max-width: 640px) { .pitch::after { display: none; } }
.hero__grid { position: relative; display: grid; gap: var(--s-48); align-items: center; }
.hero__title { font: 700 var(--fs-hero)/1.06 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--volt); }
.hero__intro { max-width: 38ch; margin-top: var(--s-32); font-size: var(--fs-20); color: var(--muted); }
.hero__ball { width: min(56vw, 360px); justify-self: end; }
.hero__scroll { position: relative; margin-top: var(--s-64); font: 500 var(--fs-14)/1.4 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.4fr 1fr; } }

/* Jury strip */
.jury { border-block: var(--stroke) solid var(--line); padding-block: var(--s-48); background: var(--surface); }
.jury__list { display: grid; gap: var(--s-24); counter-reset: q; }
.jury__list li { display: grid; gap: var(--s-8); counter-increment: q; }
.jury__q { font: 500 var(--fs-14)/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }
.jury__q::before { content: "0" counter(q); display: block; margin-bottom: var(--s-8); font: 700 var(--fs-48)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--volt); }
.jury__a { font: 700 var(--fs-24)/1.2 var(--font-display); text-transform: uppercase; }
@media (min-width: 1024px) { .jury__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-48); } }

.who, .idea, .ladder, .frames, .results, .motto { padding-block: clamp(var(--s-48), 7vw, var(--s-96)); }
[data-section] + [data-section] { margin-top: clamp(var(--s-48), 7vw, var(--s-96)); }

/* Who */
.who__grid { display: grid; gap: var(--s-48); align-items: center; margin-bottom: var(--s-96); }
.portrait {
  width: min(70vw, 320px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  font: 700 clamp(4rem, 3rem + 4vw, 6rem)/1 var(--font-display); color: var(--volt);
}
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.who__name { font: 700 var(--fs-72)/1.06 var(--font-display); text-transform: uppercase; margin-bottom: var(--s-24); overflow-wrap: anywhere; }
.who__role { font-size: var(--fs-24); margin-bottom: var(--s-8); }
@media (min-width: 1024px) { .who__grid { grid-template-columns: auto 1fr; gap: var(--s-96); } }

.credo { margin-top: clamp(var(--s-48), 7vw, var(--s-96)); }
.credo__label, .traits__label { display: flex; align-items: center; gap: var(--s-12); }
.credo__text { font: 700 var(--fs-72)/1.1 var(--font-display); max-width: 24ch; }
.traits { margin-top: clamp(var(--s-48), 7vw, var(--s-96)); }

/* Scoreboard: giant outlined numerals instead of cards. */
.board { display: grid; gap: var(--s-48); }
.board__item { display: grid; gap: var(--s-8); border-top: var(--stroke) solid var(--line); padding-top: var(--s-16); }
.board__num {
  font: 700 clamp(3.5rem, 2rem + 7vw, 9rem)/.82 var(--font-display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px var(--volt); margin-bottom: var(--s-16);
}
.board__title { font: 700 var(--fs-32)/1.2 var(--font-display); text-transform: uppercase; }
.board__sub { color: var(--muted); font-size: var(--fs-20); max-width: 28ch; }
@media (min-width: 768px) { .board { grid-template-columns: repeat(3, 1fr); gap: var(--s-32); } }

/* Idea + orbit */
.idea__title { font: 700 var(--fs-72)/1.1 var(--font-display); text-transform: uppercase; max-width: 18ch; margin-bottom: var(--s-24); }
.idea__goal { max-width: 52ch; font-size: var(--fs-20); }
.idea__grid { display: grid; gap: var(--s-48); align-items: center; }
.idea__ball { width: clamp(120px, 30vw, 300px); justify-self: end; }
@media (min-width: 1024px) { .idea__grid { grid-template-columns: 1fr auto; gap: var(--s-96); } }
/* Phones: 2-1-2 around the ball (grid, so nothing can slide off a 360 px screen). */
.orbit { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); align-items: center; }
.orbit__list { display: contents; }
/* Orbit line behind the pills (pills have their own fill, so the line passes under them). */
.orbit::before { content: ""; position: absolute; left: 4%; right: 4%; top: 12%; bottom: 22%; border: 2px solid var(--line); border-radius: 50%; pointer-events: none; }
.orbit > * { position: relative; }
.orbit__list li:nth-child(1) { order: 1; } .orbit__list li:nth-child(2) { order: 2; }
.orbit__core { order: 3; grid-column: 1 / -1; justify-self: center; width: clamp(110px, 32vw, 160px); margin-block: var(--s-8); }
.orbit__list li:nth-child(3) { order: 4; } .orbit__list li:nth-child(4) { order: 5; }
.orbit__list li:nth-child(5) { order: 6; grid-column: 1 / -1; justify-self: center; min-width: 60%; }
.orbit__list li {
  position: relative; /* the ul is display:contents, so .orbit > * never reaches the pills */
  border: var(--stroke) solid var(--volt); background: var(--surface); border-radius: var(--r-pill);
  padding: var(--s-12) var(--s-16); font-size: clamp(var(--fs-14), .8rem + .8vw, var(--fs-20)); line-height: 1.25; text-align: center;
}
@media (min-width: 1024px) {
  .orbit { height: 520px; display: block; }
  .orbit__list { display: block; }
  .orbit__list li:nth-child(n) { min-width: 0; }
  .orbit::before { left: 50%; right: auto; top: 50%; bottom: auto; width: 720px; height: 380px; transform: translate(-50%, -50%); }
  .orbit > * { position: static; }
  .orbit__core { position: absolute; left: 50%; top: 50%; width: 200px; margin: 0; transform: translate(-50%, -50%); }
  .orbit__list li { position: absolute; left: 50%; top: 50%; width: 300px; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); }
}

/* Ladder */
.ladder__title { font: 700 var(--fs-48)/1.12 var(--font-display); text-transform: uppercase; max-width: 20ch; margin-bottom: var(--s-48); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-12); align-items: end; height: clamp(300px, 24vw, 360px); }
.step {
  position: relative; background: var(--surface); border: var(--stroke) solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0;
  min-width: 0; overflow-wrap: normal; hyphens: none;
  padding: var(--s-12); font: 700 clamp(var(--fs-16), 1rem + 1vw, var(--fs-32))/1 var(--font-display); text-transform: uppercase;
  color: var(--chalk); transition: background var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.step:nth-child(1) { height: 36%; } .step:nth-child(2) { height: 62%; } .step:nth-child(3) { height: 88%; }
.step.is-active { background: var(--volt); color: var(--bg); }
.step__sub { display: block; margin-top: var(--s-8); font: 400 var(--fs-14)/1.25 var(--font-text); text-transform: none; color: var(--muted); }
.step.is-active .step__sub { color: var(--bg); }
.step__num { position: absolute; right: var(--s-12); bottom: var(--s-8); font: 700 clamp(2.5rem, 1.5rem + 4vw, 5rem)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--muted); }
.step.is-active .step__num { color: var(--bg); -webkit-text-stroke: 0; }
/* Short steps on phones have no room for the numeral next to the caption. */
@media (max-width: 640px) { .step__num { display: none; } }
.step__target { position: absolute; left: 50%; bottom: calc(100% + var(--s-8)); width: var(--s-48); transform: translateX(-50%); }
.step__growth { display: block; margin-top: var(--s-8); font-size: var(--fs-32); color: var(--volt); }
.range { display: block; margin-top: var(--s-32); }
.range input { width: 100%; min-height: var(--tap); margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: var(--r-pill); }
.range input::-moz-range-track { height: 4px; background: var(--line); border-radius: var(--r-pill); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--volt); }
.range input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--volt); }
.range__hint { margin-top: var(--s-8); font-size: var(--fs-14); }
.ladder { padding-bottom: var(--s-32); }
.ladder + .frames { padding-top: var(--s-48); }

/* Frames */
.frames__grid { display: grid; gap: var(--s-32); align-items: start; }
.frame__media { overflow: hidden; border-radius: var(--r-card); border: var(--stroke-hero) solid transparent; }
.frame figcaption { margin-top: var(--s-12); }
.frame__media:not(.anchor), .js-ball:not([data-ball="frames"]) .frame__media { border: var(--stroke) solid var(--line); padding: 5px; }
.js-ball[data-ball="frames"] .anchor--frame { padding: 0; }
@media (min-width: 768px) { .frames__grid { grid-template-columns: 1fr 1fr; } }

/* Results */
.results__personal { display: grid; gap: var(--s-48); align-items: center; margin-bottom: var(--s-96); }
/* The ball lands here and carries the award count, as on the deck's slide 11. */
/* While the ball is elsewhere the anchor shows its own lime disc, so "38" never sits on the dark page. */
.medal, .js-ball .medal { background: var(--volt); border-radius: 50%; }
.js-ball[data-ball="personal"] .medal { background: transparent; }
.medal { position: relative; z-index: 6; width: min(56vw, 260px); display: grid; place-content: center; text-align: center; color: var(--bg); }
.medal__count { font: 700 clamp(3.5rem, 2rem + 5vw, 5.5rem)/1 var(--font-display); }
.medal__label { margin-top: var(--s-8); }
.medal__label { font: 700 var(--fs-16)/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.toplist { display: grid; gap: var(--s-32); }
.toplist li { display: grid; grid-template-columns: 5.2ch 1fr; gap: var(--s-24); align-items: baseline; }
.toplist__year { font: 700 var(--fs-32)/1 var(--font-display); color: var(--volt); font-variant-numeric: tabular-nums; }
.toplist__title { font: 700 clamp(var(--fs-24), 1rem + 1.6vw, 2.5rem)/1.15 var(--font-display); text-transform: uppercase; }
.toplist .muted { font-size: var(--fs-16); margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .results__personal { grid-template-columns: auto 1fr; gap: var(--s-64); }
  /* Three awards side by side so the row spans the whole content width. */
  .toplist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-32); }
  .toplist li { grid-template-columns: 1fr; gap: var(--s-12); border-top: 2px solid var(--volt); padding-top: var(--s-16); align-items: start; }
  .toplist__title { font-size: clamp(var(--fs-24), .6rem + 1.2vw, 2rem); overflow-wrap: anywhere; min-height: 2.3em; }
}

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); margin-bottom: var(--s-48); }
.podium li { display: grid; justify-items: center; align-content: start; text-align: center; gap: var(--s-4); }
.podium__place {
  position: relative; z-index: 6; width: clamp(72px, 18vw, 140px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--volt); color: var(--volt);
  display: grid; place-items: center; font: 700 clamp(2.25rem, 1.4rem + 4vw, 4.5rem)/1 var(--font-display);
}
.podium__place--lead { background: var(--volt); color: var(--bg); }
.podium__target { position: absolute; inset: -2px; z-index: -1; }
.podium__title { font-size: clamp(var(--fs-14), .8rem + 1vw, var(--fs-20)); font-weight: 600; margin-top: var(--s-12); overflow-wrap: anywhere; }
.podium .muted { font-size: clamp(.75rem, .7rem + .5vw, var(--fs-16)); }
.results__lead { font-size: var(--fs-20); max-width: 52ch; color: var(--muted); margin-bottom: var(--s-48); }

.all { border-top: var(--stroke) solid var(--line); padding-top: var(--s-24); }
.all summary {
  cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: var(--s-12);
  font: 500 var(--fs-20)/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em;
}
.all__count { color: var(--bg); background: var(--volt); border-radius: var(--r-pill); padding: var(--s-4) var(--s-12); font-size: var(--fs-14); }
.all__grid { display: grid; gap: var(--s-12); margin-top: var(--s-32); }
.award { border: var(--stroke) solid var(--line); border-radius: var(--r-card); padding: var(--s-16) var(--s-24); display: grid; gap: var(--s-4); align-content: start; }
.award__meta { font: 500 var(--fs-14)/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.award__meta b { color: var(--volt); font-weight: 500; }
.award__title { font-weight: 600; overflow-wrap: anywhere; }
.award__event { font-size: var(--fs-14); color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 768px) { .all__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.all__group { grid-column: 1 / -1; margin-top: var(--s-24); font: 500 var(--fs-16)/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }
.all__group:first-child { margin-top: 0; }

/* Motto */
.motto__text { font: 700 clamp(2.1rem, 1rem + 5.6vw, 4.5rem)/1.1 var(--font-display); text-transform: uppercase; }
.motto__text span { display: block; }
.road { position: relative; display: flex; justify-content: space-between; align-items: center; margin-block: var(--s-64); padding-right: var(--s-48); }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--muted); }
.road span { position: relative; width: var(--s-12); height: var(--s-12); border-radius: 50%; background: var(--muted); }
.road__end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.final { font: 700 var(--fs-48)/1.12 var(--font-display); max-width: 22ch; color: var(--volt); }

.foot { border-top: var(--stroke) solid var(--line); padding-block: var(--s-32); color: var(--muted); font-size: var(--fs-14); }
.foot__row { display: flex; flex-wrap: wrap; gap: var(--s-16); justify-content: space-between; }

/* Reveal: only when JS + motion are on; content is visible otherwise. */
.js-motion .reveal { opacity: 0; transform: translateY(var(--s-24)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
