:root {
  --bg: #0a1324;
  --surface: #13213b;
  --ink: #ffffff;
  --muted: #a9b3c5;
  --accent: #c9a227;
  --accent-ink: #0a1324;
  --field-1: #1d3764;
  --field-1-ink: #ffffff;
  --field-2: #eef0f3;
  --field-2-ink: #0a1324;
  --tone-a: #e3e7ee;
  --tone-b: #d6dce6;
  --tone-c: #c9d1de;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.5rem, 12.5vw, 11.875rem);
  --step-big: clamp(3.5rem, 9vw, 8.125rem);

  --gap: 8px;
  --margin: 24px;
  --pad: 24px;
  --axis: 42%;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.photo { filter: grayscale(1) contrast(1.05); object-fit: cover; width: 100%; height: 100%; }

/* ---------- top bar (tiles) ---------- */
.bar {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--gap);
  padding: var(--margin) var(--margin) 0;
  height: calc(60px + var(--margin));
}
.bar > * { background: var(--surface); display: flex; align-items: center; }
.mark { background: var(--accent); color: var(--accent-ink); justify-content: center; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.05em; text-decoration: none; }
.links { padding-left: calc(50% - 68px); gap: 28px; }
.links a, .act { text-decoration: none; font-size: var(--step-small); font-weight: 500; }
.links a:hover { color: var(--accent); }
.act { background: var(--ink); color: var(--accent-ink); padding: 0 22px; transition: background .2s var(--ease), color .2s var(--ease); }
.act:hover { background: var(--accent); }
.act:active, .btn:active { transform: translateY(1px); }

/* ---------- hero board ---------- */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  padding: var(--gap) var(--margin);
  height: calc(100svh - 60px - var(--margin));
  min-height: 620px;
}
.board > * { overflow: hidden; position: relative; }
.name { background: var(--field-2); color: var(--field-2-ink); padding: var(--pad); display: flex; flex-direction: column; justify-content: flex-end; }
.name h1 .big { display: block; font-size: var(--step-display); font-weight: 500; letter-spacing: -0.05em; line-height: .85; }
.name h1 .sub { display: block; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.2; font-weight: 500; margin-top: 18px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.duo > p { padding: var(--pad); font-size: var(--step-lead); line-height: 1.25; font-weight: 500; }
.duo .dark { background: var(--surface); }
.duo .gold { background: var(--accent); color: var(--accent-ink); }

/* ---------- intro statement tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 38svh 38svh auto;
  gap: var(--gap);
  padding: 120px var(--margin) 0;
}
.tiles > * { overflow: hidden; }
.slogan { grid-column: 1 / 9; grid-row: 1 / 3; background: #050a14; padding: 20px; display: flex; align-items: flex-end; }
.slogan h2 { font-size: var(--step-big); line-height: .86; text-transform: uppercase; }
.figure-tile { grid-column: 9 / 13; grid-row: 1; background: var(--field-2); color: var(--field-2-ink); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.figure-tile strong { font-size: var(--step-big); line-height: .86; letter-spacing: -0.05em; font-weight: 600; }
.figure-tile span { font-size: var(--step-small); font-weight: 500; }
.tile-photo { grid-column: 9 / 13; grid-row: 2; }
.long { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: repeat(12, 1fr); padding: 40px 0; }
.long p { grid-column: 7 / 13; padding: 0 40px; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- spines (pinned deck) ---------- */
.deck-wrap { height: 220svh; margin-top: 160px; }
.deck-stage { position: sticky; top: 0; height: 100svh; padding: 120px var(--margin) 0; overflow: hidden; display: flex; flex-direction: column; }
.deck-stage h2 { font-size: var(--step-head); margin-bottom: 40px; }
.deck { position: relative; height: 380px; overflow: hidden; }
.card {
  position: absolute; top: 0; left: 0; height: 100%; width: min(620px, 70vw);
  padding: 32px; color: var(--field-2-ink);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .5s var(--ease), width .5s var(--ease);
  cursor: pointer; border: 0; text-align: left; font: inherit;
}
.card:nth-child(3n+1) { background: var(--tone-a); }
.card:nth-child(3n+2) { background: var(--tone-b); }
.card:nth-child(3n) { background: var(--tone-c); }
.card h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.03em; white-space: normal; min-width: 556px; max-width: 556px; }
.card p { margin-top: 14px; font-size: var(--step-body); min-width: 556px; max-width: 556px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; font-size: var(--step-body); font-weight: 500; min-width: 556px; max-width: 556px; }
.card.spine { width: 120px; }
.card.spine > *, .card.ahead > * { visibility: hidden; }
.card.spine::before { content: attr(data-year); position: absolute; left: 32px; bottom: 32px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.deck-note { margin-top: 48px; font-size: var(--step-body); }
.deck-note a { color: var(--accent); }

/* ---------- live season picker ---------- */
.season { margin-top: 160px; padding: 0 var(--margin); display: grid; grid-template-columns: 42fr 58fr; gap: var(--gap); }
.season-head { background: var(--field-1); color: var(--field-1-ink); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.season-head h2 { font-size: var(--step-head); }
.season-head label { font-size: var(--step-body); font-weight: 500; }
.season input[type=range] { width: 100%; accent-color: var(--accent); height: 44px; cursor: pointer; }
.season-out { background: var(--field-2); color: var(--field-2-ink); padding: 32px; min-height: 420px; display: flex; flex-direction: column; gap: 18px; }
.season-out .yr { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.05em; line-height: .85; }
.season-out .status { font-size: var(--step-lead); font-weight: 500; }
.season-out dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.season-out dt { font-weight: 500; }
.season-out dd { margin: 0; }
.season-out.off { background: #050a14; color: var(--ink); }

/* ---------- stats mosaic ---------- */
.stats { margin-top: 200px; }
.stats h2 { font-size: var(--step-head); margin: 0 var(--margin) 40px; padding-left: calc(var(--axis) - var(--margin)); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; height: 66vw; max-height: 1000px; }
.mosaic .stack { display: grid; grid-template-rows: 1fr 1fr; }
.fig { padding: 28px; }
.fig strong { display: block; font-size: var(--step-big); line-height: .9; letter-spacing: -0.05em; font-weight: 600; }
.fig span { display: block; margin-top: 12px; font-size: var(--step-body); max-width: 26ch; }
.fig.a { background: var(--accent); color: var(--accent-ink); }
.fig.b { background: var(--field-1); }

/* ---------- gallery drag row ---------- */
.gallery { margin-top: 200px; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--margin) 32px 6vw; }
.gallery-head h2 { font-size: var(--step-head); }
.row { display: flex; gap: 12px; height: 68svh; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 6vw; scrollbar-width: none; cursor: grab; scroll-padding-inline: 6vw; }
.row::-webkit-scrollbar { display: none; }
.row > * { flex: none; height: 100%; scroll-snap-align: start; }
.m-tall { aspect-ratio: 3 / 4; }
.m-wide { aspect-ratio: 16 / 10; }
.m-pair { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 4 / 6.2; }
.row figure { margin: 0; position: relative; overflow: hidden; }
.row figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 8px 12px; font-size: var(--step-small); }

/* ---------- about ---------- */
.about { margin-top: 200px; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; }
.about h2 { grid-column: 1 / 13; font-size: var(--step-head); }
.about .lead { grid-column: 1 / 7; margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; }
.about .wide { grid-column: 1 / 9; margin-top: 72px; position: relative; aspect-ratio: 16 / 10; }
.about .wide p { position: absolute; top: 0; right: 0; width: 320px; padding: 20px; background: var(--field-2); color: var(--field-2-ink); font-size: var(--step-body); }
.about .side { grid-column: 9 / 13; margin-top: 72px; display: flex; flex-direction: column; gap: 24px; }
.map { background: var(--field-1); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 24px; }
.map svg { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; font-size: var(--step-small); }
.facts dt { color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: var(--step-body); font-weight: 500; }

/* ---------- history page text ---------- */
.text-page { margin-top: 160px; padding: 0 var(--margin); display: grid; grid-template-columns: var(--axis) 1fr; }
.text-page > h2 { grid-column: 2; font-size: var(--step-head); margin-bottom: 40px; max-width: 16ch; }
.era { display: contents; }
.era .when { grid-column: 1; padding: 6px 32px 40px 24px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.era .what { grid-column: 2; padding-bottom: 40px; max-width: 40ch; columns: 1; }
.era .what p + p { margin-top: 14px; }
.colour-page { margin-top: 160px; background: var(--field-1); padding: 120px var(--margin); display: grid; grid-template-columns: var(--axis) 1fr; }
.colour-page blockquote { grid-column: 2; margin: 0; font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; max-width: 26ch; }
.colour-page cite { display: block; margin-top: 24px; font-style: normal; font-size: var(--step-body); color: var(--muted); }
.table-page { margin-top: 160px; padding: 0 var(--margin); display: grid; grid-template-columns: var(--axis) 1fr; }
.table-page h2 { grid-column: 2; font-size: var(--step-head); margin-bottom: 32px; }
.table-page table { grid-column: 2; border-collapse: collapse; max-width: 640px; }
.table-page td, .table-page th { text-align: left; padding: 12px 16px 12px 0; vertical-align: top; }
.table-page tr:nth-child(odd) td { background: var(--surface); }
.table-page td:first-child { padding-left: 12px; white-space: nowrap; font-weight: 500; }
.table-page th { font-weight: 500; color: var(--muted); }
.sub-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap) var(--margin); height: 78svh; min-height: 560px; }
.sub-hero .name h1 .big { font-size: var(--step-display); }

/* ---------- footer ---------- */
footer { margin-top: 200px; background: var(--accent); color: var(--accent-ink); padding: 40px var(--margin) 32px; min-height: 90svh; display: flex; flex-direction: column; overflow: hidden; }
.wordmark { font-size: 20.5vw; font-weight: 600; letter-spacing: -0.06em; line-height: .8; white-space: nowrap; margin: 0 0 -0.12em; }
.foot-row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.places { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 6px; }
.places a { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; line-height: 1.15; }
.places a:hover { text-decoration: underline; text-underline-offset: 6px; }
.cols { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: var(--step-small); }
.cols p { margin-bottom: 8px; font-weight: 600; }
.cols a { display: block; margin-bottom: 6px; }
.legal { margin-top: auto; padding-top: 96px; display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }
.legal p { max-width: 70ch; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
.shutter { clip-path: inset(0 0 0 100%); }
.shutter img { transform: scale(1.12); transition: transform 1.1s var(--ease); }
.shutter.open { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
.shutter.open img { transform: scale(1); }
.no-js .shutter { clip-path: none; }
.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-2%); } }
.row figure img { transition: transform .6s var(--ease); }
.row figure:hover img { transform: scale(1.04); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise.in { opacity: 1; transform: none; transition: none; }
  .shutter, .shutter.open { clip-path: none; transition: none; }
  .shutter img { transform: none; }
  .drift { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gap: 6px; --margin: 16px; --pad: 20px; }
  .bar { grid-template-columns: 52px 1fr; height: auto; }
  .bar .links { display: none; }
  .bar > * { min-height: 52px; }
  .act { justify-content: center; }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; min-height: 0; }
  .board .name { grid-column: 1 / 3; min-height: 34svh; }
  .name h1 .big { font-size: 22vw; }
  .board .p1 { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .board .p2 { display: none; }
  .duo { grid-column: 1 / 3; }
  .duo > p { aspect-ratio: 1; font-size: 1.125rem; padding: 16px; }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh auto auto; padding-top: 96px; }
  .slogan { grid-column: 1 / 3; grid-row: 1; }
  .slogan h2 { font-size: 15vw; }
  .figure-tile { grid-column: 1; grid-row: 2; aspect-ratio: 1; }
  .figure-tile strong { font-size: 15vw; }
  .tile-photo { grid-column: 2; grid-row: 2; aspect-ratio: 1; }
  .long { grid-column: 1 / 3; grid-row: 3; display: block; padding: 20px 0; }
  .long p { padding: 0; font-size: 1.125rem; }
  .deck-wrap { height: auto; margin-top: 120px; }
  .deck-stage { position: static; height: auto; padding: 0 var(--margin); }
  .deck-stage h2 { font-size: 10vw; margin-bottom: 24px; }
  .deck { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .card.ahead > * { visibility: visible; }
  .card, .card.spine { position: static; width: 100%; transform: none !important; height: auto; min-height: 220px; cursor: default; }
  .card h3, .card p, .card .foot { min-width: 0; max-width: none; }

  .card .foot { margin-top: 20px; }
  .season { grid-template-columns: 1fr; margin-top: 120px; }
  .season-out { min-height: 0; }
  .season-out .yr { font-size: 26vw; }
  .stats { margin-top: 120px; }
  .stats h2 { padding-left: 0; }
  .mosaic { grid-template-columns: 1fr; height: auto; max-height: none; }
  .mosaic > img { aspect-ratio: 4 / 3; }
  .mosaic .stack { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fig { aspect-ratio: 1; padding: 16px; }
  .fig strong { font-size: 13vw; }

  .gallery { margin-top: 120px; }
  .gallery-head { padding-left: 20px; }
  .row { height: 62svh; gap: 8px; padding: 0 20px; }
  .m-tall { width: 72vw; aspect-ratio: auto; }
  .m-pair { width: 64vw; aspect-ratio: auto; }
  .m-wide { width: 88vw; height: 60%; align-self: center; aspect-ratio: auto; }
  .about { display: block; margin-top: 120px; }
  .about h2 { font-size: 9vw; }
  .about .lead { font-size: 1.125rem; }
  .about .wide { margin-top: 40px; aspect-ratio: auto; }
  .about .wide img { aspect-ratio: 4 / 3; }
  .about .wide p { position: static; width: auto; margin-top: 0; }
  .about .side { margin-top: 24px; }
  .text-page, .colour-page, .table-page { display: block; margin-top: 120px; }
  .text-page > h2 { margin-bottom: 24px; }
  .era .when { display: block; padding: 0 0 6px; }
  .era .what { display: block; padding-bottom: 32px; }
  .colour-page { padding: 72px var(--margin); }
  .table-page table { width: 100%; }
  .sub-hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .sub-hero .name { min-height: 34svh; }
  .sub-hero .name h1 .big { font-size: 15vw; }
  .sub-hero .p1 { aspect-ratio: 4 / 3; }
  footer { margin-top: 120px; min-height: 0; }
  .wordmark { font-size: 19.5vw; }
  .foot-row { display: block; margin-top: 40px; }

  .cols { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .legal { padding-top: 56px; flex-direction: column; }
}
.era-title { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.colour-page blockquote p { margin: 0; }
