/* Fonts are self-hosted in /fonts: Newsreader (headlines), General Sans (text), IBM Plex Mono (labels) */
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/general-sans-400.woff2) format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/general-sans-500.woff2) format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/general-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   GNCE Mercury 26413 — site styles
   One warm near-black page, bone-white type, Newsreader for headlines
   (weight 300 at display sizes), General Sans for text, IBM Plex Mono for
   labels. The robots and the team's photos are the brightest things on
   screen. The logo's lavender appears only as small signals.
   Motion: things arrive once and slowly (see the tokens below). Nothing
   loops, autoplays, follows the cursor or is tied to the scrollbar.
   Colours, type sizes and motion timings live in :root.
   ========================================================= */

:root {
  --ink: #0f0e0d;          /* page */
  --ink-2: #171614;        /* raised surfaces, image wells, footer */
  --ink-3: #201e1b;
  --text: #ede8df;         /* bone */
  --text-2: #bbb4a8;       /* body copy and labels */
  --muted: #b3ac9f;
  --line: rgba(237, 232, 223, 0.14);
  --line-2: rgba(237, 232, 223, 0.35);
  --accent: #b69cff;       /* the logo's lavender: small signals only */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "General Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Type scale, balanced:
     page title (h1) ~112 · robot names ~76 · section title ~56 · sub-section ~36 · card title ~28 */
  --t-label: 0.875rem;                          /* 14 */
  --t-small: 0.9375rem;                         /* 15 */
  --t-body: 1.0625rem;                          /* 17 */
  --t-lead: clamp(1.35rem, 2vw, 1.75rem);
  --t-h3: clamp(1.45rem, 1.9vw, 1.75rem);
  --t-sub: clamp(1.75rem, 2.5vw, 2.25rem);
  --t-title: clamp(2.3rem, 3.9vw, 3.5rem);
  --t-model: clamp(2.6rem, 5.2vw, 4.75rem);
  --t-display: clamp(3.2rem, 7.6vw, 7rem);
  --t-figure: clamp(3rem, 6vw, 5.25rem);

  --gutter: clamp(20px, 2.6vw, 40px);
  --max: 1320px;
  --space: clamp(80px, 11vw, 168px);            /* between sections */
  --header: 64px;

  /* Motion: no springs, no overshoot */
  --ease-unveil: cubic-bezier(0.16, 1, 0.3, 1);   /* anything arriving */
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);    /* things drawn or cut: wipes, rules, indicators */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);      /* hovers and colour */
  --t-hover: 250ms;
  --t-line: 400ms;
  --t-header: 350ms;
  --t-ui: 450ms;
  --t-fade: 900ms;
  --t-rise: 1100ms;
  --t-curtain: 1200ms;
  --t-settle: 1600ms;
  --t-rule: 900ms;
  --t-stage: 1400ms;
  --t-fill: 1400ms;
  --stagger: 80ms;
  --rise-stage: 40px;
  --rise-panel: 12px;

  /* names used by inline styles in a few pages */
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --border: var(--line);
  --bg: var(--ink);
}
@media (max-width: 899px) { :root { --rise-stage: 24px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
main [id] { scroll-margin-top: 80px; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--line-2); transition: text-decoration-color var(--t-hover), color var(--t-hover); }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; font-optical-sizing: auto; }
h4 { font-weight: 500; }
h1, h2, h3, .model-name, .page-head > p, .model-copy p, .lede, .facts .v, .stat .label, .event-name, .hero-pitch { text-wrap: balance; }
p, figcaption, blockquote { text-wrap: pretty; }
strong, b { font-weight: 500; color: var(--text); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.narrow { max-width: 62ch; }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1.4;
  font-size: var(--t-label);
  letter-spacing: 0.01em;
  color: var(--text-2);
  margin-bottom: 22px;
}

/* Small lavender diamond: the one recurring mark (award, current, next, live) */
.diamond::before, .award::before, .footer-next::before {
  content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent);
  transform: rotate(45deg); margin-right: 10px; vertical-align: 0.12em; flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: transform var(--t-header) var(--ease-draw), border-color var(--t-hover);
}
.site-header.at-top { border-bottom-color: transparent; }
.site-header.is-hidden { transform: translateY(-100%); }
.skip-link {
  position: absolute; left: var(--gutter); top: 8px; z-index: 2;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--ink); text-decoration: none; font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header); max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; white-space: nowrap; font-weight: 500; font-size: 1rem; color: var(--text); text-decoration: none; transition: opacity 400ms var(--ease-unveil); }
@media (max-width: 374px) { .brand .num { display: none; } }
.brand-logo { height: 32px; width: auto; }
.brand .num { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
html.wm-visible .site-header .brand { opacity: 0; pointer-events: none; }
html.wm-visible .site-header .brand:focus-visible { opacity: 1; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { position: relative; font-size: 0.95rem; color: var(--text-2); text-decoration: none; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active::after { background: var(--accent); }
.nav-extra { display: none; }
.nav-links { align-items: center; }
.nav-links .nav-cta a { padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); }
.nav-links .nav-cta a::after { display: none; }
.nav-links .nav-cta a:hover { border-color: var(--accent); }
.nav-toggle { display: none; min-height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-family: var(--sans); font-size: 0.95rem; padding: 0 18px; cursor: pointer; }

/* Phone: a full-screen ink panel with five numbered serif links */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--header) 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 0;
    background: var(--ink);
    padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; counter-reset: nav;
    visibility: hidden; opacity: 0;
    transition: opacity 200ms, visibility 0s 200ms;
  }
  .nav-links.open { visibility: visible; opacity: 1; transition: opacity 200ms; }
  .nav-links li:not(.nav-extra) { counter-increment: nav; }
  .nav-links li:not(.nav-extra) a {
    display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-weight: 300; font-size: 2.25rem; letter-spacing: -0.02em; color: var(--text);
  }
  .nav-links li:not(.nav-extra) a::before { content: counter(nav, decimal-leading-zero); font: var(--t-label) var(--mono); letter-spacing: 0; color: var(--text-2); }
  .nav-links a::after { display: none; }
  .nav-links li:not(.nav-extra) a.active::after {
    content: ""; display: inline-block; position: static; width: 7px; height: 7px;
    background: var(--accent); transform: rotate(45deg); margin-left: 2px;
  }
  .nav-links { align-items: stretch; }
  .nav-links .nav-cta a { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-extra { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 32px; }
  .nav-extra a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--text-2); }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .nav-links.open li { animation: menu-in var(--t-ui) var(--ease-unveil) both; animation-delay: calc(var(--i, 0) * 40ms); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections and heads ---------- */

section { padding-block: calc(var(--space) / 2); }

.page-head { padding: clamp(72px, 10vw, 152px) 0 clamp(40px, 5vw, 72px); text-align: center; }
.page-head h1 { font-size: var(--t-display); font-weight: 300; letter-spacing: -0.035em; line-height: 0.95; }
.page-head > p { font-size: var(--t-lead); line-height: 1.3; color: var(--text-2); margin: 28px auto 0; max-width: 32ch; }
.breadcrumb { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); padding-top: 32px; }
.breadcrumb + .page-head { padding-top: 28px; }

.section-head { margin-bottom: clamp(36px, 4.5vw, 64px); text-align: center; }
.section-title { font-size: var(--t-title); letter-spacing: -0.03em; margin: 0 auto clamp(36px, 4.5vw, 64px); max-width: 18ch; text-align: center; }
.section-head .section-title { margin-bottom: 0; }
section.narrow { max-width: none; }
section.narrow > p { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.4; color: var(--text-2); max-width: 46ch; margin-inline: auto; }
.lede { max-width: 62ch; margin: 0 auto; text-align: center; color: var(--text-2); }

/* ---------- Home hero ---------- */

.hero { padding: clamp(40px, 6vw, 88px) 0 0; overflow-x: clip; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.hero-pitch { font-size: var(--t-lead); line-height: 1.3; max-width: 30ch; color: var(--text); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.hero-emblem { width: clamp(150px, 19vw, 260px); }
.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  /* "Mercury" fills the content width: the word measures about 3.5em at weight 300 */
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 3.52);
  letter-spacing: -0.045em;
  line-height: 0.8;
  max-width: var(--max);
  margin: clamp(40px, 6vw, 96px) auto 0;
  padding: 0 var(--gutter) 0.12em;
  white-space: nowrap;
}
.wm-mask { display: block; overflow: clip; padding-block: 0.1em 0.3em; margin-block: -0.1em -0.3em; }
.wm { display: block; }
.hero-foot { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 16px; font-family: var(--mono); font-size: 0.95rem; color: var(--text-2); }
.hero-foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); transform-origin: left; }
@media (min-width: 900px) and (min-height: 700px) {
  .hero { min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; padding-top: clamp(32px, 4vw, 56px); }
  .hero .wordmark { margin-top: auto; padding-top: clamp(16px, 2vw, 32px); }
  .hero .hero-top { margin-bottom: clamp(40px, 5vh, 64px); }
}
@media (max-width: 640px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; width: 120px; }
  .hero-foot { flex-direction: column; gap: 0; }
}
@media (max-width: 400px) {
  .hero { padding-top: 24px; }
  .hero-top { gap: 24px; }
  .hero-emblem { width: 88px; }
  .actions { margin-top: 24px; }
}
.hero-foot a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb { padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  html.js .wm { animation: rise var(--t-rise) var(--ease-unveil) 0.1s both; }
  html.js .hero-emblem { animation: fade 0.9s var(--ease-unveil) 0.2s both; }
  html.js .hero-foot::before { animation: draw var(--t-rule) var(--ease-draw) 0.45s both; }
  html.js .hero-foot > * { animation: fade 0.6s var(--ease-unveil) 0.7s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }

/* Hero photo: a wide team photo under the wordmark. Until we have one, an empty frame holds its place. */
.hero-photo { display: block; width: 100%; aspect-ratio: 21 / 9; margin-top: clamp(24px, 3vw, 40px); object-fit: cover; }
div.hero-photo { background: var(--ink-2); border: 1px solid var(--line); }
@media (max-width: 640px) { .hero-photo { aspect-ratio: 4 / 3; } }

/* Credentials ticker: scrolls across the top of the home page. The track holds the list twice,
   so moving it left by half its width loops seamlessly. Pauses on hover; still for reduced motion. */
.ticker { --ticker-h: 46px; height: var(--ticker-h); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.9rem; color: var(--text-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex-shrink: 0; list-style: none; white-space: nowrap; }
.ticker-list li::after { content: "·"; content: "·" / ""; margin: 0 22px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 900px) and (min-height: 700px) { .ticker + .hero { min-height: calc(100svh - var(--header) - 46px); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { height: auto; padding: 12px var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; width: auto; margin: 0 auto; }
  .ticker-list { flex-wrap: wrap; justify-content: center; white-space: normal; }
  .ticker-list[aria-hidden], .ticker-list li:nth-child(n+5) { display: none; }
}

/* Record row */
.strip { padding-top: clamp(24px, 3vw, 40px); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gutter); }
.facts li { padding-top: 16px; }
.facts .k { display: block; font-family: var(--mono); font-size: 0.95rem; color: var(--text); margin-bottom: 8px; }
.facts .v { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Photo + text feature */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: end; }
.feature-fig { margin: 0; }
.feature-fig figcaption, .closing-fig figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--text-2); }
.feature-img { max-width: min(100%, 927px); }
.feature-copy h2 { font-size: var(--t-title); letter-spacing: -0.03em; margin-bottom: 28px; }
.feature-copy p { color: var(--text-2); max-width: 40ch; }
.feature-copy p + p { margin-top: 12px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Text link: a short drawn line that lengthens on hover */
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 500; text-decoration: none; }
.text-link::after { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; margin-left: 12px; transition: width var(--t-line) var(--ease); }
@media (hover: hover) { .text-link:hover::after { width: 40px; } }
.text-link:focus-visible::after { width: 40px; }

/* ---------- Robot chapters (home) ---------- */

.models { display: grid; gap: clamp(64px, 9vw, 120px); }
.model { display: grid; justify-items: center; text-align: center; gap: 28px; }
@media (min-width: 900px) { .model { min-height: min(80svh, 780px); align-content: center; } }
.model-stage { margin: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 24px); max-width: 100%; }
.model-stage img { width: auto; height: auto; max-width: 100%; max-height: min(56svh, 560px); }
.model-stage .print { margin: 0; background: var(--ink-2); border: 1px solid var(--line); padding: clamp(8px, 1.6vw, 20px); }
.model-stage.pair .print img, .season-hero.pair img { aspect-ratio: 1; object-fit: cover; }
.model-stage.pair .print img { height: min(44svh, 440px); max-height: none; }
.model-link { display: block; max-width: 100%; overflow: clip; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .model-link img { transition: transform 1.2s var(--ease); }
  .model-link:hover img { transform: scale(1.03); }
  .model:has(.model-link:hover) .text-link::after { width: 40px; }
}
.model-name { font-size: var(--t-model); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.model-copy .eyebrow { margin-bottom: 14px; }
.model-copy p { color: var(--text-2); max-width: 46ch; margin: 16px auto 0; }
@media (max-width: 899px) {
  .model-stage img { max-height: 46svh; }
  .model-stage.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .model-stage.pair .print { padding: 6px; display: flex; align-items: center; justify-content: center; }
  .model-stage.pair .print img { height: auto; width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-hover), color var(--t-hover), border-color var(--t-hover);
}
.btn::after { content: "→"; content: "→" / ""; transition: transform 0.3s var(--ease); }
.btn:hover { background: transparent; color: var(--text); }
.btn:hover::after { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost::after { content: none; }
.btn.ghost:hover { border-color: var(--text); }

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: clamp(40px, 4vw, 64px) var(--gutter); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid.cols-2, .grid.pair { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid.cols-2, .grid.pair { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .grid.two { grid-template-columns: 1fr; } }

.card { border-top: 1px solid var(--line); padding-top: 18px; }
a.card { display: block; color: var(--text); text-decoration: none; }
.card h2, .card h3 { font-size: var(--t-h3); margin-bottom: 12px; line-height: 1.08; letter-spacing: -0.02em; }
.card p { color: var(--text-2); }
.card p + p { margin-top: 12px; }
.card .tag, .chapter .tag { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); margin-bottom: 12px; }
.card-quote { margin-top: 24px; padding-left: 18px; border-left: 1px solid var(--text); font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--text); }
.card-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }

/* Hairlines drawn as ::before so they can draw in (see Reveals) */
.facts li, .stat, .specs li, .index-list li, .closing-cols p, .event, .software-grid > .card, .captain-record li { position: relative; border-top: 0; }
.facts li::before, .stat::before, .specs li::before, .index-list li::before, .closing-cols p::before, .event::before, .software-grid > .card::before, .captain-record li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left;
}

/* ---------- Stats ---------- */

a.stat { display: block; color: inherit; text-decoration: none; }
a.stat .label::after { content: " →"; content: " →" / ""; color: var(--text-2); transition: color 0.25s; }
a.stat[target="_blank"] .label::after { content: " ↗"; content: " ↗" / ""; }
a.stat:hover .label, a.stat:hover .label::after { color: var(--text); }
a.stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px var(--gutter); }
.stat { padding-top: 18px; }
.stat .big { font-family: var(--serif); font-weight: 300; font-size: var(--t-figure); letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: lining-nums tabular-nums; }
.stat .big .unit { font-family: var(--mono); font-size: 0.3em; letter-spacing: 0; margin-left: 0.3em; color: var(--text-2); vertical-align: 0.25em; }
.stat .label { font-size: var(--t-small); color: var(--text-2); margin-top: 14px; max-width: 24ch; }

/* ---------- Countdown ---------- */

.countdown { border-top: 1px solid var(--line); padding-top: 18px; text-align: center; }
.countdown:not(.ready) { display: none; }
html:not(.js) .special-quotes { display: none; }
.countdown .event-name { font-family: var(--serif); font-size: var(--t-title); letter-spacing: -0.03em; line-height: 1.02; max-width: 20ch; margin-inline: auto; }
.countdown .event-date { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); margin-top: 18px; }
.countdown .timer { display: flex; justify-content: center; gap: clamp(28px, 5vw, 72px); margin-top: 48px; flex-wrap: wrap; }
.countdown .unit .n { font-family: var(--serif); font-weight: 300; font-size: var(--t-figure); letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: lining-nums tabular-nums; }
.countdown .unit .l { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); margin-top: 12px; }
.countdown.live .event-name::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); margin-right: 16px; vertical-align: 0.3em; }
.live-line { font-family: var(--mono); font-size: 0.95rem; color: var(--text-2); }
@media (max-width: 420px) { .countdown .timer { gap: 22px; } }

.timeline { position: relative; margin: 84px 8px 0; height: 76px; text-align: left; }
.tl-track { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.tl-fill { height: 100%; width: 100%; background: var(--text); transform: scaleX(var(--pct, 0)); transform-origin: left; }
.tl-today { position: absolute; top: -36px; transform: translateX(-50%); font-family: var(--mono); font-size: var(--t-label); color: var(--accent); text-align: center; }
.tl-today::after { content: ""; display: block; width: 1px; height: 16px; background: var(--accent); margin: 4px auto 0; }
.tl-pt { position: absolute; top: -4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.tl-pt .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--muted); }
.tl-pt .lbl { margin-top: 14px; width: 8rem; text-align: center; }
.tl-pt .lbl b { display: block; font-weight: 400; font-size: var(--t-small); line-height: 1.25; margin-bottom: 4px; color: var(--text-2); }
@media (min-width: 601px) { .tl-pt .lbl b { min-height: 2.5em; display: flex; flex-direction: column; justify-content: flex-end; } .tl-pt.first .lbl b { align-items: flex-start; } .tl-pt.last .lbl b { align-items: flex-end; } .tl-pt:not(.first):not(.last) .lbl b { align-items: center; } }
.tl-pt .lbl span { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
.tl-pt.first { transform: translateX(-4px); align-items: flex-start; }
.tl-pt.first .lbl { text-align: left; }
.tl-pt.last { transform: translateX(calc(-100% + 4px)); align-items: flex-end; }
.tl-pt.last .lbl { text-align: right; }
.tl-pt.past .dot { background: var(--text); border-color: var(--text); }
.tl-pt.next .dot, .tl-pt.today .dot { width: 8px; height: 8px; border-radius: 0; transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.tl-pt.next .lbl b, .tl-pt.today .lbl b { color: var(--text); }
@media (max-width: 600px) {
  .timeline { height: auto; margin: 40px 0 0; padding-left: 22px; }
  .tl-track { top: 14px; bottom: 14px; left: 4px; right: auto; width: 1px; height: auto; }
  .tl-fill, .tl-today { display: none; }
  .tl-pt, .tl-pt.first, .tl-pt.last { position: relative; left: auto !important; top: auto; transform: none; flex-direction: row; align-items: center; gap: 14px; margin-left: -22px; padding: 9px 0; }
  .tl-pt .lbl, .tl-pt.first .lbl, .tl-pt.last .lbl { margin-top: 0; width: auto; text-align: left; }
}

/* ---------- Index list (home) + preview plate ---------- */

.index-list { list-style: none; position: relative; }
.index-list::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.index-list a { display: grid; grid-template-columns: 4rem 1fr 1.2fr auto; align-items: baseline; gap: var(--gutter); padding: 26px 0; text-decoration: none; transition: padding 0.35s var(--ease), color 0.2s; }
.index-list .n { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
.index-list .t { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.75rem); letter-spacing: -0.025em; line-height: 1; }
.index-list .d { color: var(--text-2); }
.index-list .ar { display: inline-block; width: 24px; height: 1px; background: currentColor; align-self: center; transition: width var(--t-line) var(--ease), background-color var(--t-hover); }
.index-list a:hover { padding-left: 12px; }
.index-list a:hover .ar, .index-list a:focus-visible .ar { width: 40px; background: var(--accent); }
@media (max-width: 700px) {
  .index-list a { grid-template-columns: 2.5rem 1fr auto; }
  .index-list .d { grid-column: 2 / 3; grid-row: 2; font-size: var(--t-small); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) {
  .index-wrap.has-preview { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gutter); }
  .index-plate { position: relative; }
  .index-preview {
    position: absolute; top: 0; left: 0; width: min(100%, 360px); aspect-ratio: 4 / 3; margin: 0;
    background: var(--ink-2); overflow: hidden;
    transform: translateY(var(--y, 0px)); clip-path: inset(100% 0 0 0);
    transition: transform 500ms var(--ease-unveil), clip-path 450ms var(--ease-draw);
  }
  .index-preview.is-shown { clip-path: inset(0); }
  .index-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms var(--ease); }
  .index-preview img.on { opacity: 1; }
  .index-preview img.contain { object-fit: scale-down; padding: 16px; background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .index-preview, .index-preview img { transition: none; } }

/* Closing call */
.closing { padding-bottom: calc(var(--space) * 0.8); }
.closing h2 { font-size: var(--t-title); letter-spacing: -0.03em; max-width: 20ch; margin-inline: auto; text-align: center; }
.closing-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.closing-fig { margin: 0; }
.closing-fig img { max-width: min(100%, 560px); }
.closing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.closing-cols p { color: var(--text-2); padding-top: 14px; }
@media (max-width: 860px) { .closing-split { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .closing-cols { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */

.team-intro { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 72px); text-align: left; }
.team-banner { max-width: min(100%, 927px); }
.mission { border-top: 1px solid var(--line); padding-top: 18px; }
.mission h2 { font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: 0.01em; color: var(--text-2); margin-bottom: 14px; }
.mission p { font-family: var(--serif); color: var(--text); font-size: var(--t-lead); line-height: 1.3; }
@media (min-width: 900px) { .team-intro { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: end; } }

.members-grid { grid-template-columns: repeat(5, 1fr); gap: 56px var(--gutter); }
.member { text-align: left; transition: opacity 350ms var(--ease); }
.member.is-dim { opacity: 0.45; }
.member h3 { font-size: 1.6rem; margin-bottom: 6px; }
.member .exp, .member .role { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); margin-bottom: 12px; }
.member p { font-size: var(--t-small); margin-top: 8px; }
.lead-tag { display: inline-block; margin: 0 0 10px; font-size: var(--t-small); font-weight: 500; color: var(--text); }
.lead-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); margin-right: 9px; vertical-align: 0.15em; }
.leads { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 10px; }
.leads .lead-tag { margin: 0; }
/* Member cards are narrow (5 per row), so lead roles are a touch tighter: two roles fit on one line */
.members-grid .lead-tag { font-size: 0.875rem; }
.members-grid .lead-tag::before { margin-right: 7px; }
.members-grid .leads { gap: 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.chip { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
.chip + .chip::before { content: "/ "; color: var(--muted); }
.quote { margin: 18px 0 0; padding-left: 14px; border-left: 1px solid rgba(237, 232, 223, 0.4); font-family: var(--serif); font-size: 1.1rem; line-height: 1.35; color: var(--text); }
.quote::before { content: "\201C"; }
.quote::after { content: "\201D"; }
.quote:empty { display: none; }
.quote + .quote { margin-top: 12px; }
.quote.locked { color: var(--text-2); border-left-style: dotted; }
.quote.locked::before, .quote.locked::after { content: none; }
.quote.unlocking { animation: sq-shake 0.5s ease-in-out; border-left-color: var(--accent); }
@keyframes sq-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.quote.special { position: relative; border-left: 1px solid var(--accent); }
.quote.special::before, .quote.special::after { content: none; }
.quote.special .sq-badge { display: block; margin-bottom: 6px; color: var(--accent); }
.quote.special .sq-text::before { content: "\201C"; }
.quote.special .sq-text::after { content: "\201D"; }
.quote.special .sq-text { display: block; }
.quote.special.revealing .sq-badge, .quote.special.revealing .sq-text { animation: fade-up 0.7s var(--ease-unveil) both; }
.special-quotes { display: flex; justify-content: center; margin: 8px 0 0; }
.sq-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.sq-form[hidden] { display: none; }
.sq-form input { width: 220px; }
.sq-msg { flex-basis: 100%; min-height: 1.2em; font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); text-align: center; }
.sq-msg.err { color: #ff8f8f; }

/* Portrait grid: 5 per row on desktop (narrower cards), 3 on tablets, one row per member on phones */
.members-grid.people { grid-template-columns: repeat(4, 1fr); gap: 64px var(--gutter); }
@media (max-width: 1000px) { .members-grid.people { grid-template-columns: repeat(3, 1fr); } }
/* A short last row is spaced evenly: equal gaps at both edges and between cards.
   Card width W = (100% - 4 gutters) / 5; with r cards left over, each gap is (100% - r*W) / (r + 1). */
@media (min-width: 1001px) {
  .members-grid.people { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .members-grid.people > .member { flex: 0 0 calc((100% - 4 * var(--gutter)) / 5); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(1) { margin-left: calc(40% + 0.4 * var(--gutter)); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(2) { margin-left: calc(20% + 0.5333 * var(--gutter)); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(2) ~ .member { margin-left: calc(20% + 0.5333 * var(--gutter) - var(--gutter)); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(3) { margin-left: calc(10% + 0.6 * var(--gutter)); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(3) ~ .member { margin-left: calc(10% + 0.6 * var(--gutter) - var(--gutter)); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(4) { margin-left: calc(4% + 0.64 * var(--gutter)); }
  .members-grid.people > .member:nth-child(5n+1):nth-last-child(4) ~ .member { margin-left: calc(4% + 0.64 * var(--gutter) - var(--gutter)); }
}
.people .card.member { border-top: none; padding-top: 0; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; }
div.portrait { display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line); }
div.portrait span { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
div.portrait .mono-initials { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 3.6vw, 3.25rem); letter-spacing: 0.04em; color: var(--muted); }
.portrait-box { overflow: clip; margin-bottom: 18px; }
.portrait-box .portrait { margin-bottom: 0; transition: transform 1.2s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .member:hover .portrait-box .portrait { transform: scale(1.03); } }
@media (max-width: 640px) {
  .members-grid.people { grid-template-columns: 1fr; gap: 40px; }
  .people .member { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-content: start; }
  .people .member > .portrait, .people .member > .portrait-box { grid-row: 1 / span 4; width: 112px; margin: 0; align-self: start; }
  .people .member > :not(.portrait):not(.portrait-box):not(.quote) { grid-column: 2; }
  .people .member > .quote { grid-column: 1 / -1; }
  div.portrait .mono-initials { font-size: 1.75rem; }
}

/* Captain highlight */
/* Co-captains side by side on desktop; each has the photo on top and the text underneath */
.captains { display: grid; gap: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .captains { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 88px); } }
.captain { display: grid; gap: 28px; align-content: start; }
.captain-photo { margin: 0; }
.captain-photo .frame, .captain-photo img { width: 100%; max-width: 520px; }
.captain-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.captain-copy h2 { font-size: var(--t-model); font-weight: 300; letter-spacing: -0.02em; line-height: 1; margin-bottom: 18px; }
.captain-copy .eyebrow { margin-bottom: 16px; }
.captain-meta { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
.captain-record { list-style: none; margin-top: clamp(28px, 3vw, 44px); }
.captain-record li { display: grid; grid-template-columns: minmax(9rem, 2fr) 5fr; gap: 6px var(--gutter); padding: 16px 0; }
.captain-record li:last-child { border-bottom: 1px solid var(--line); }
.captain-record .k { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); padding-top: 0.3em; }
.captain-record .v { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 560px) { .captain-record li { grid-template-columns: 1fr; } }

/* Crew filter */
.crew-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 0 auto clamp(32px, 4vw, 56px); }
.crew-filter button { min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--text-2); font: 0.95rem var(--sans); cursor: pointer; transition: color var(--t-hover), border-color var(--t-hover); }
.crew-filter button:hover { color: var(--text); }
.crew-filter button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }

/* Join callout */
.cta { max-width: 760px; margin: 0 auto; text-align: center; border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 72px); }
.cta h2 { font-size: var(--t-sub); letter-spacing: -0.02em; }
.cta p { color: var(--text-2); max-width: 52ch; margin: 18px auto 28px; }

/* ---------- Season pages ---------- */

.season-hero { margin: clamp(8px, 2vw, 24px) auto 0; display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: clamp(12px, 2vw, 24px); }
.season-hero img { width: auto; height: auto; max-width: 100%; max-height: min(56svh, 560px); }
.season-hero .print { display: block; background: var(--ink-2); border: 1px solid var(--line); padding: clamp(8px, 1.6vw, 20px); }
.season-hero.pair img { height: min(48svh, 460px); max-height: none; }
.season-hero figcaption { flex-basis: 100%; text-align: center; font: var(--t-label) var(--mono); color: var(--text-2); }
@media (max-width: 899px) {
  .season-hero img { max-height: 46svh; }
  .season-hero.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .season-hero.pair .print { padding: 6px; }
  .season-hero.pair img { height: auto; width: 100%; }
  .season-hero.pair figcaption { grid-column: 1 / -1; }
}

.robot { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 800px) { .robot { grid-template-columns: 1fr; } }
.robot h3 { font-size: var(--t-sub); letter-spacing: -0.02em; margin-bottom: 20px; }
.robot p { color: var(--text-2); }

.spec-sheet { margin-top: 4px; }
.sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font: var(--t-label)/1.4 var(--mono); color: var(--text-2); padding-bottom: 12px; border-bottom: 3px double var(--line-2); }
.specs { list-style: none; }
.specs li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; font-size: var(--t-small); }
.spec-sheet .specs li:first-child::before { display: none; }
.specs li span:first-child { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); padding-top: 2px; }
.specs li span:last-child { text-align: right; }
.specs .tbd { font-family: var(--mono); color: var(--text-2); }
.sheet-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font: var(--t-label) var(--mono); color: var(--text-2); }
@media (max-width: 480px) { .specs li { flex-direction: column; gap: 4px; } .specs li span:last-child { text-align: left; } }
.figures { margin-top: clamp(40px, 5vw, 72px); }

/* Events: a logbook — mono date column, serif name */
.event { padding: 20px 0 52px; }
.event-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.event-head h3 { font-size: var(--t-sub); letter-spacing: -0.02em; }
.event-head .date, .event-body .k { font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); }
.event-photo { max-width: min(100%, 927px); margin-bottom: 28px; }
.event-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px var(--gutter); }
.event-body .v { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.01em; margin-top: 6px; line-height: 1.15; }
.event .notes { color: var(--text-2); margin-top: 20px; max-width: 62ch; }
.award { display: inline-flex; align-items: center; color: var(--text); }
.award::before { margin-right: 10px; }
@media (min-width: 900px) {
  .event { display: grid; grid-template-columns: 10rem 1fr; column-gap: var(--gutter); }
  .event-head { display: contents; }
  .event-head .date { grid-column: 1; grid-row: 1 / span 4; padding-top: 0.55em; }
  .event-head h3 { grid-column: 2; margin-bottom: 24px; }
  .event > :not(.event-head) { grid-column: 2; }
}
.empty-note { text-align: center; color: var(--text-2); }
@media (max-width: 899px) { .event-head .date { flex-basis: 100%; order: 2; } }

/* Mechanism cards */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px var(--gutter); }
.parts-grid.three { grid-template-columns: repeat(3, 1fr); }
.parts-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .parts-grid.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
@media (max-width: 820px) { .parts-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .parts-grid.three { grid-template-columns: 1fr; } }
.part-card .zoom, .part-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--ink-2); }
.part-card img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: scale-down; }
.part-card img.render, .part-card img.photo { object-fit: cover; }
.part-card img.on-black, .part-card .zoom:has(img.on-black) { background: #000; }
.part-card > div { padding-top: 16px; }
.part-card h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.part-card p { color: var(--text-2); font-size: var(--t-small); }
.feather { -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }

/* INTO THE DEEP: numbered evolution row */
.parts-grid.five { counter-reset: step; position: relative; }
.parts-grid.five .part-card { counter-increment: step; }
.parts-grid.five .part-card::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px; font: var(--t-label) var(--mono); color: var(--text-2); }

/* DECODE: transfer time by version */
.bars { list-style: none; margin-top: 18px; display: grid; gap: 10px; max-width: 420px; }
.bars li { display: grid; grid-template-columns: 3.25rem 1fr 4.5rem; align-items: center; gap: 12px; font: var(--t-label) var(--mono); color: var(--text-2); }
.bars .bar { position: relative; height: 4px; }
.bars .bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 1.5 * 100%); background: rgba(237, 232, 223, 0.4); transform-origin: left; }
.bars .best .bar::before { background: var(--text); }
.bars .best .k { display: inline-flex; align-items: center; }
.bars .best .k::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); margin-right: 8px; }
.bars b { font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* DECODE: mechanism walkthrough (built by js/main.js on big screens only) */
@media (min-width: 1000px) and (min-height: 700px) {
  .wt { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
  .wt-stage { position: sticky; top: 96px; height: min(600px, calc(100svh - 160px)); margin: 0; display: grid; background: var(--ink-2); }
  .wt-zoom { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
  .wt-zoom img { position: absolute; inset: 24px 24px 56px; margin: auto; width: auto; height: auto; max-width: calc(100% - 48px); max-height: calc(100% - 80px); opacity: 0; transform: translateY(var(--rise-panel)); transition: opacity 400ms var(--ease), transform 600ms var(--ease-unveil); }
  .wt-zoom img.is-current { opacity: 1; transform: none; transition: opacity 600ms var(--ease-unveil), transform 600ms var(--ease-unveil); }
  .wt-count { position: absolute; left: 20px; bottom: 18px; font: var(--t-label) var(--mono); color: var(--text-2); }
  .wt-rail { position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--line); }
  .wt-rail i { display: block; height: 1px; width: calc(100% / var(--n)); background: var(--text); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform var(--t-ui) var(--ease-draw); }
  .wt .parts-grid { grid-template-columns: 1fr; gap: 0; }
  .wt .part-card { min-height: 56svh; display: flex; flex-direction: column; justify-content: center; }
  .wt .part-card > .zoom, .wt .part-card > img { display: none; }
  .wt .part-card > div { padding-top: 0; }
  .wt .part-card h3 { font-size: var(--t-sub); color: var(--text-2); transition: color var(--t-hover); }
  .wt .part-card.is-current h3 { color: var(--text); }
  .wt .part-card p { font-size: var(--t-body); max-width: 46ch; }
}
@media (prefers-reduced-motion: reduce) { .wt-zoom img, .wt-zoom img.is-current, .wt-rail i { transition: none; } }

/* Other seasons */
.season-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 28px; margin-top: calc(var(--space) / 2); }
.season-pager a { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; text-decoration: none; min-height: 44px; }
.season-pager a[rel="next"] { grid-column: 2; grid-template-columns: 1fr 160px; text-align: right; }
.season-pager a[rel="next"] img { order: 2; }
.season-pager img { width: auto; max-width: 160px; max-height: 120px; justify-self: center; }
.season-pager .eyebrow { margin-bottom: 6px; }
.season-pager b { display: block; font-family: var(--serif); font-weight: 300; font-size: var(--t-sub); letter-spacing: -0.02em; line-height: 1.05; }
.season-pager a:hover b { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
@media (max-width: 600px) {
  .season-pager { grid-template-columns: 1fr; }
  .season-pager a, .season-pager a[rel="next"] { grid-column: 1; grid-template-columns: 96px 1fr; text-align: left; }
  .season-pager a[rel="next"] img { order: 0; }
  .season-pager img { max-width: 96px; max-height: 80px; }
}

/* Seasons index: one row per season */
.grid.collection { grid-template-columns: 1fr; gap: 0; }
.collection .card { display: grid; gap: 16px; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.collection .card:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .collection .card { grid-template-columns: 7fr 5fr; grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(32px, 5vw, 88px); }
  .collection .card > .season-photo { grid-column: 1; grid-row: 1 / -1; justify-self: center; align-self: center; }
  .collection .card > :not(.season-photo) { grid-column: 2; }
  .collection .card > .tag { grid-row: 2; align-self: end; }
  .collection .card > h2 { grid-row: 3; }
  .collection .card > p { grid-row: 4; align-self: start; }
}
.collection .season-photo { width: auto; height: auto; max-width: 100%; max-height: 420px; transition: transform 1.2s var(--ease); }
.collection .season-photo.print { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(8px, 1.6vw, 20px); }
.collection .tag { margin-bottom: 0; }
.collection h2 { font-size: var(--t-model); font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
.collection .card > p::after { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; margin-left: 12px; vertical-align: middle; transition: width var(--t-line) var(--ease); }
.collection .card:hover > p::after, .collection .card:focus-visible > p::after { width: 40px; }
.collection .card:hover h2, .collection .card:focus-visible h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .collection .card:hover .season-photo { transform: scale(1.03); } }
@media (max-width: 859px) { .collection .season-photo { max-height: 46svh; justify-self: center; } }

/* ---------- Outreach ---------- */

.year-tabs { position: relative; display: flex; justify-content: safe center; gap: 8px clamp(24px, 4vw, 48px); padding: 6px 6px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
@media (max-width: 360px) { .year-tabs { column-gap: 12px; } }
.year-panel:focus, .year-panel:focus-visible { outline: none; }
.year-tabs:empty { display: none; }
.year-tabs button { display: grid; gap: 2px; text-align: left; min-height: 44px; padding: 0 0 10px; margin-bottom: 4px; border: 0; background: none; color: var(--text-2); font: 1.02rem var(--sans); cursor: pointer; white-space: nowrap; transition: color var(--t-hover); }
.year-tabs button:hover { color: var(--text); }
.year-tabs .tab-year { font: var(--t-label) var(--mono); }
.year-tabs button[aria-selected="true"] { color: var(--text); }
.tab-ind { position: absolute; left: 0; bottom: 0; width: 100px; height: 1px; background: var(--text); transform-origin: left; transform: translateX(var(--x, 0)) scaleX(var(--w, 0)); transition: transform var(--t-ui) var(--ease-draw); }
.year-tabs + .year-panel { padding-top: clamp(40px, 5vw, 72px); }
@media (prefers-reduced-motion: no-preference) { .year-panel.panel-in { animation: panel-in 500ms var(--ease-unveil); } }
@media (prefers-reduced-motion: reduce) { .tab-ind { transition: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(var(--rise-panel)); } }

.chapters { display: grid; gap: clamp(64px, 7vw, 104px) var(--gutter); align-items: start; }
@media (min-width: 900px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapter { display: grid; gap: 20px; align-content: start; }
.chapter-lead { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--ink-2); }
.chapter-lead .zoom, .chapter-lead .frame { width: 100%; height: 100%; }
.chapter-lead img { width: 100%; height: 100%; object-fit: scale-down; }
.chapter-lead.fill img { object-fit: cover; }
.chapter-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chapter-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chapter-strip.shots, .chapter-strip.fit { grid-template-columns: 1fr 1fr; }
@media (max-width: 899px) {
  .chapter-strip:not(.shots):not(.fit) { grid-template-columns: 1fr 1fr; }
  .chapter-strip:not(.shots):not(.fit) > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .chapters > .chapter:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 7fr 5fr; column-gap: clamp(32px, 5vw, 88px); }
  .chapters > .chapter:last-child:nth-child(odd) > * { grid-column: 1; }
  .chapters > .chapter:last-child:nth-child(odd) > .chapter-text { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: 0; }
}
.year-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: clamp(48px, 6vw, 80px); }
.chapter-strip.shots img { aspect-ratio: 16 / 9; }
.chapter-strip.fit img { object-fit: scale-down; background: var(--ink-2); }
.chapter-text { max-width: 62ch; margin-top: 8px; }
.chapter-text h3 { font-size: var(--t-sub); letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.05; }
.chapter-text p { color: var(--text-2); }
.chapter-text p + p { margin-top: 12px; }
.chapter-film { margin: 0; }
.chapter-film video { display: block; width: 100%; aspect-ratio: 956 / 720; background: #000; }
.chapter .card-quote { margin-top: 8px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); font-weight: 300; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; }
.chapter .card-quote + .card-quote { font-size: 1.2rem; margin-top: 0; }
.chapter .card-quote cite { margin-top: 12px; }

/* ---------- Contact ---------- */

form .field { margin-bottom: 26px; }
form label:not(.choice), form legend { display: block; font: var(--t-label) var(--mono); color: var(--text-2); margin-bottom: 6px; transition: color var(--t-hover); }
form input[type="text"], form input[type="email"], form input[type="password"], form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(237, 232, 223, 0.42); border-radius: 0;
  padding: 12px 0; color: var(--text); font-family: var(--sans); font-size: 1.0625rem; transition: border-color var(--t-hover);
}
form .field:focus-within label { color: var(--text); }
form input:focus, form textarea:focus { border-bottom-color: var(--text); }
form textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { flex-basis: 100%; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 0.95rem var(--sans); color: var(--text-2); cursor: pointer; transition: background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover); }
.choice:hover span { border-color: var(--text); color: var(--text); }
.choice input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.sq-form input { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; color: var(--text); font-family: var(--sans); font-size: 1.0625rem; }
.contact-list { list-style: none; }
.contact-list li { padding: 16px 0; font-family: var(--serif); font-size: 1.4rem; }
.contact-list li + li, .contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); margin-bottom: 4px; }
.copy { margin-left: 12px; min-height: 44px; border: 0; background: none; color: var(--text-2); font: var(--t-label) var(--mono); text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; vertical-align: middle; }
.copy:hover { color: var(--text); }
.support-list { list-style: none; margin: 8px 0 28px; }
.support-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.support-list li:last-child { border-bottom: 1px solid var(--line); }
.note { font-size: var(--t-small); color: var(--text-2); margin-top: 16px; }
.form-status:empty { margin: 0; }
#support { border-top: 0; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Photo viewer (Loupe) ---------- */

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; font: inherit; }
.loupe { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.loupe[open] { display: grid; grid-template-rows: auto 1fr auto; }
.loupe::backdrop { background: var(--ink); }
.loupe-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; min-height: 0; }
.loupe-track::-webkit-scrollbar { display: none; }
.loupe-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; align-content: center; gap: 12px; margin: 0; padding: 0 16px; }
.loupe-slide img { width: auto; height: auto; max-height: 78svh; }
.loupe-slide figcaption { font: var(--t-label) var(--mono); color: var(--text-2); max-width: 62ch; text-align: center; }
.loupe-bar, .loupe-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.loupe-count { font: var(--t-label) var(--mono); color: var(--text-2); }
.loupe button { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--text); font: 1rem var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.22em; }
.loupe button:hover { text-decoration-color: currentColor; }
.loupe.single .loupe-nav, .loupe.single .loupe-count { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .loupe[open] { animation: loupe-in 300ms var(--ease-unveil); } }
@keyframes loupe-in { from { opacity: 0; transform: scale(0.98); } }
html.loupe-open { overflow: hidden; }

/* ---------- Footer (sponsors on every page) ---------- */

.site-footer { margin-top: calc(var(--space) / 2); background: var(--ink-2); color: var(--text-2); font-size: var(--t-small); border-top: 3px double var(--line-2); }
.footer-sponsors { text-align: center; padding-top: clamp(56px, 6vw, 88px); padding-bottom: 48px; }
.fs-head .k { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--text-2); margin-bottom: 12px; }
.fs-head p { color: var(--text-2); max-width: 40ch; margin-inline: auto; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 0; margin-top: 28px; }
.sponsor-row .sponsor { display: inline-flex; align-items: center; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.015em; color: var(--text); text-decoration: none; }
.sponsor-row .sponsor:not(.open) + .sponsor:not(.open)::before { content: ""; display: inline-block; width: 1px; height: 24px; background: var(--line-2); margin-inline: 28px; }
.sponsor-row .sponsor img { max-height: 48px; width: auto; }
.sponsor-row .sponsor.open { flex-basis: 100%; justify-content: center; margin-top: 12px; font-family: var(--sans); font-size: 1rem; }
@media (max-width: 600px) {
  .sponsor-row { gap: 8px 28px; }
  .sponsor-row .sponsor:not(.open) + .sponsor:not(.open)::before { display: none; }
}
.footer-main { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 24px; padding-bottom: 32px; }
.footer-main::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.footer-brand img { width: 36px; height: auto; }
.footer-brand b { display: block; font-weight: 500; }
.footer-brand small { display: block; color: var(--text-2); font-size: var(--t-label); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 26px; align-items: center; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-next { display: inline-flex; align-items: center; color: var(--text) !important; text-decoration: none; }
.footer-next::before { margin-right: 10px; }

/* ---------- Reveals ----------
   js/main.js picks the motion by element type, so pages need no attributes:
   fade (opacity only) · rise (headings and big figures lift from behind a mask)
   curtain (one to three main photos per page wipe open) · rule (hairlines draw left to right).
   Hidden start states exist only when JavaScript is running, the visitor allows motion,
   and the 2.5 s failsafe (html.reveal-all) hasn't fired. */
.mask { display: block; overflow: clip; padding-block: 0.08em 0.16em; margin-block: -0.08em -0.16em; }
.mask > span { display: block; }
.frame { display: block; width: fit-content; max-width: 100%; overflow: clip; }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reveal-all) .page-head:not(.is-split) { opacity: 0; }

  html.js:not(.reveal-all) [data-reveal="fade"]:not(.in) { opacity: 0; }
  [data-reveal="fade"] { transition: opacity var(--t-fade) var(--ease-unveil) var(--d, 0s); }
  .member[data-reveal].in { transition: opacity 350ms var(--ease); }

  html.js:not(.reveal-all) .mask > span { transform: translateY(105%); }
  .mask > span { transition: transform var(--t-rise) var(--ease-unveil) var(--d, 0s); }
  html.js:not(.reveal-all) .in .mask > span { transform: none; }

  html.js:not(.reveal-all) .frame:not(.in) { clip-path: inset(100% 0 0 0); }
  .frame { transition: clip-path var(--t-curtain) var(--ease-draw) var(--d, 0s); }
  html.js:not(.reveal-all) .frame:not(.in) img { transform: scale(var(--settle, 1.06)); }
  .frame img { transition: transform var(--t-settle) var(--ease-unveil) var(--d, 0s); }

  html.js:not(.reveal-all) [data-reveal="rule"]:not(.in) > * { opacity: 0; }
  [data-reveal="rule"] > * { transition: opacity var(--t-fade) var(--ease-unveil) calc(var(--i, 0) * var(--stagger) + 150ms); }
  html.js:not(.reveal-all) [data-reveal="rule"]:not(.in) > *::before,
  html.js:not(.reveal-all) .bars[data-reveal="rule"]:not(.in) .bar::before { transform: scaleX(0); }
  [data-reveal="rule"] > *::before, .bars[data-reveal="rule"] .bar::before { transition: transform var(--t-rule) var(--ease-draw) calc(var(--i, 0) * var(--stagger)); }
  .bars[data-reveal="rule"] .bar::before { transition-delay: calc(var(--i, 0) * 120ms + 200ms); }

  html.js:not(.reveal-all) .model:not(.in) .model-stage > * { opacity: 0; transform: translateY(var(--rise-stage)); }
  .model .model-stage > * { transition: opacity var(--t-stage) var(--ease-unveil), transform var(--t-stage) var(--ease-unveil); }
  .model .model-stage > * + * { transition-delay: 120ms; }

  html.js:not(.reveal-all) .timeline:not(.drawn) .tl-fill { transform: scaleX(0); }
  .timeline.drawn .tl-fill { transition: transform var(--t-fill) var(--ease-draw); }
  html.js:not(.reveal-all) .timeline:not(.drawn) .tl-pt, html.js:not(.reveal-all) .timeline:not(.drawn) .tl-today { opacity: 0; }
  .timeline.drawn .tl-pt { transition: opacity 0.6s var(--ease-unveil) calc(var(--i, 0) * 80ms); }
  .timeline.drawn .tl-today { transition: opacity 0.6s 1.2s; }
}

/* ---------- Robot morph between pages ----------
   Chrome and Safari 18.2+ glide a robot from the home page or the seasons list into its season page.
   Each view-transition-name may appear only once per page. Other browsers navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; }
::view-transition-group(robot-itd), ::view-transition-group(robot-decode), ::view-transition-group(robot-mercinator) {
  animation-duration: 700ms; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Reduced motion: hovers change colour or length instantly, nothing slides */
@media (prefers-reduced-motion: reduce) {
  .index-list a, .text-link::after, .btn::after, .nav-links a::after, .collection .card > p::after, .member { transition: none; }
  .index-list a:hover { padding-left: 0; }
}
