/* 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
   Editorial: warm near-black page, bone-white type, an editorial serif
   (Newsreader) for headlines, a geometric sans (General Sans) for text,
   IBM Plex Mono for small labels. Hairlines, real photographs, generous
   space. The logo's lavender appears only as a small signal.
   Colours and type sizes live in :root.
   ========================================================= */

:root {
  --ink: #0f0e0d;          /* page */
  --ink-2: #171614;        /* raised surfaces, image wells */
  --ink-3: #201e1b;
  --text: #ede8df;         /* bone */
  --text-2: #bbb4a8;       /* body copy */
  --muted: #948d81;        /* labels */
  --line: rgba(237, 232, 223, 0.14);
  --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;

  --t-label: 0.8125rem;                         /* 13 */
  --t-small: 0.9375rem;                         /* 15 */
  --t-body: 1.0625rem;                          /* 17 */
  --t-lead: clamp(1.35rem, 2vw, 1.75rem);       /* ~26 */
  --t-h3: clamp(1.35rem, 1.95vw, 1.7rem);       /* ~27 */
  --t-title: clamp(2.3rem, 4.6vw, 4rem);        /* ~64 */
  --t-display: clamp(3rem, 7.5vw, 7rem);        /* ~112 */

  --gutter: clamp(20px, 2.6vw, 40px);
  --max: 1320px;
  --space: clamp(80px, 11vw, 168px);            /* between sections */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* names used by inline styles in a few pages */
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --border: var(--line);
  --bg: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
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; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: rgba(237, 232, 223, 0.35); transition: text-decoration-color 0.2s, color 0.2s; }
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; }
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: left; }
.muted { color: var(--muted); }
.narrow { max-width: 62ch; }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 22px;
}

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

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 14, 13, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1rem; color: var(--text); text-decoration: none; }
.brand-logo { height: 32px; width: auto; }
.brand .num { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.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 { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { background: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-family: var(--sans); font-size: 0.9rem; padding: 7px 16px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.6rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--accent); }
}

/* ---------- 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); letter-spacing: -0.035em; line-height: 0.92; }
.page-head p { font-size: var(--t-lead); line-height: 1.3; color: var(--text-2); margin: 28px auto 0; max-width: 32ch; }
@media (min-width: 900px) {
  .page-head { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gutter); align-items: end; }
  .page-head > * { grid-column: 1 / -1; }
  .page-head > h1 + p { margin: 28px auto 0; }
}

.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; }

/* ---------- 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: 400;
  /* "Mercury" fills the content width (the word measures about 3.57em in Newsreader) */
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 3.62);
  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;
}
.hero-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-label); color: var(--muted); background-clip: content-box; }
.hero-foot { border-top: none; background: linear-gradient(var(--line), var(--line)) content-box top / 100% 1px no-repeat; }
@media (max-width: 640px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; width: 120px; }
  .hero-foot { flex-direction: column; }
}

/* 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 { border-top: 1px solid var(--line); padding-top: 16px; }
.facts .k { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); margin-bottom: 8px; }
.facts .v { display: block; font-family: var(--serif); font-size: 1.55rem; 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 figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.feature-img { width: 100%; }
.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; }
.text-link { display: inline-block; margin-top: 28px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--text); padding-bottom: 3px; }
.text-link::after { content: " →"; display: inline-block; transition: transform 0.3s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Index list (home) */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 4rem 1fr 1.2fr auto; align-items: baseline; gap: var(--gutter); padding: 26px 0; border-bottom: 1px solid var(--line); 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(--muted); }
.index-list .t { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 3rem); letter-spacing: -0.025em; line-height: 1; }
.index-list .d { color: var(--text-2); }
.index-list .ar { font-size: 1.4rem; transition: transform 0.35s var(--ease); }
.index-list a:hover { padding-left: 12px; }
.index-list a:hover .ar { transform: translateX(6px); color: 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); }
}

/* 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-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 40px; max-width: 900px; }
.closing-cols p { color: var(--text-2); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 700px) { .closing-cols { grid-template-columns: 1fr; } }

/* ---------- 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 0.25s, color 0.25s;
}
.btn::after { 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: rgba(237, 232, 223, 0.35); }
.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 h3 { font-size: var(--t-h3); margin-bottom: 12px; line-height: 1.08; }
.card p { color: var(--text-2); }
.card p + p { margin-top: 12px; }
.card .tag { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); margin-bottom: 12px; }

/* Images: one treatment everywhere — square corners, image wells in ink-2, slow hover zoom */
.photo-card, .part-card, a.card { overflow: hidden; }
.card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; margin-bottom: 20px; }
.card-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.card-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; }
.card-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.card-gallery.row3 { grid-template-columns: repeat(3, 1fr); }
.card-gallery .card-video { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.card.wide { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.card.wide .card-gallery { margin-bottom: 0; }
@media (min-width: 861px) { .card.wide > div:last-child { position: sticky; top: 96px; } }
@media (max-width: 860px) { .card.wide { grid-template-columns: 1fr; } }
.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(--muted); }
.ph { background: var(--ink-2); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--mono); font-size: var(--t-label); aspect-ratio: 16 / 9; padding: 10px; }

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

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px var(--gutter); }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat .big { font-family: var(--serif); font-size: clamp(3.6rem, 7.5vw, 6.5rem); letter-spacing: -0.04em; line-height: 0.95; }
.stat .label { font-size: var(--t-small); color: var(--text-2); margin-top: 14px; max-width: 24ch; }
.stats.words .big { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.02em; }

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

.countdown { border-top: 1px solid var(--line); padding-top: 18px; text-align: center; }
.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(--muted); 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-size: clamp(3.4rem, 7vw, 6rem); 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(--muted); margin-top: 12px; }
.countdown .comp-day { font-family: var(--serif); font-size: var(--t-display); letter-spacing: -0.035em; color: var(--accent); }
.countdown.live .event-name::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-right: 16px; vertical-align: 0.25em; }

.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%; background: var(--text); }
.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); }
.tl-pt .lbl span { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.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 { 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; }
}

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

.team-banner { width: 100%; margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 2 / 1; object-fit: cover; object-position: center 72%; }
.mission { text-align: left; margin-top: 40px; max-width: 34ch; 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.02em; color: var(--muted); margin-bottom: 14px; }
.page-head .mission p { font-family: var(--serif); color: var(--text); margin: 0; max-width: none; font-size: var(--t-lead); line-height: 1.3; }
@media (min-width: 900px) { .page-head > .team-banner + .mission { grid-column: 2; max-width: none; } }
section.narrow p { font-size: var(--t-lead); line-height: 1.4; color: var(--text-2); max-width: 46ch; font-family: var(--serif); }

.members-grid { grid-template-columns: repeat(5, 1fr); gap: 56px var(--gutter); }
@media (max-width: 1100px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .members-grid { grid-template-columns: 1fr; } }
.member { text-align: left; }
.avatar { display: none; }
.member h3 { font-size: 1.45rem; margin-bottom: 8px; }
.member .exp, .member .role { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); margin-bottom: 14px; }
.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; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 0.15em; }
.leads { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 10px; }
.leads .lead-tag { margin: 0; }
.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(--muted); 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); } }
.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) both; }
.special-quotes { display: flex; margin: 8px 0 0; }
.sq-form { display: flex; flex-wrap: wrap; align-items: 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(--muted); }
.sq-msg.err { color: #ff8f8f; }

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

.breadcrumb { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); padding-top: 32px; }
.robot { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 800px) { .robot { grid-template-columns: 1fr; } }
.robot h3 { font-size: clamp(1.75rem, 2.8vw, 2.45rem) !important; letter-spacing: -0.025em; margin-bottom: 20px !important; }
.robot p.muted { color: var(--text-2); }
.robot > img.robot-photo { width: 100%; max-width: none !important; margin: 0 !important; }
.specs { list-style: none; border-top: 1px solid var(--line); margin-top: 28px !important; }
.specs li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.specs li span:first-child { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); padding-top: 2px; }
.specs li span:last-child { text-align: right; }

.event { border-top: 1px solid var(--line); 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: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.025em; }
.event-head h3 a { text-decoration: none; }
.event-head h3 a:hover { text-decoration: underline; }
.event-head h3 .ext { font-family: var(--sans); font-size: 0.5em; color: var(--muted); vertical-align: 0.5em; }
.event-head .date, .event-body .k { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.event-photo { width: 100%; 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; gap: 8px; color: var(--text); }
.award::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.season-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-2); margin-bottom: 20px; transition: transform 0.8s var(--ease); }
.robot-photo { width: 100%; background: var(--ink-2); }
img.cutout { object-fit: contain; background: var(--ink-2); padding: clamp(14px, 2vw, 28px); }
.robot-photo.cutout { background: none; padding: 0; }
a.card:hover .season-photo, .photo-card:hover img { transform: scale(1.03); }

.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 img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ink-2); }
.part-card img.photo, .part-card img.render { object-fit: cover; }
.part-card img.cutout { object-fit: contain; }
.part-card div { padding-top: 16px; }
.part-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.part-card p { color: var(--text-2); font-size: var(--t-small); }

.tier-title { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); margin: 28px 0 14px; }
.sponsors { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

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

form .field { margin-bottom: 22px; }
form label { display: block; font-size: var(--t-small); color: var(--text-2); margin-bottom: 8px; }
form input, form textarea, form select { width: 100%; background: var(--ink-2); border: 1px solid rgba(237, 232, 223, 0.22); border-radius: 0; padding: 13px 14px; color: var(--text); font-family: var(--sans); font-size: 1.05rem; transition: border-color 0.2s; }
form select option { background: var(--ink); color: var(--text); }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--text); }
form textarea { min-height: 150px; resize: vertical; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.4rem; }
.contact-list .k { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); margin-bottom: 4px; }
.support-list { list-style: none; margin: 8px 0 28px; border-top: 1px solid var(--line); }
.support-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.note { font-size: var(--t-small); color: var(--muted); margin-top: 16px; }

/* ---------- Robot carousel (home) ---------- */

.robot-carousel { position: relative; width: 100%; }
.robot-carousel .slides { position: relative; display: grid; }
.robot-carousel .slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.robot-carousel .slide.active { opacity: 1; visibility: visible; transition: opacity 0.9s ease, visibility 0s; z-index: 1; }
.robot-carousel .slide .frame img { transform: scale(1.03); transition: transform 3.5s ease-out; }
.robot-carousel .slide.active .frame img { transform: scale(1); }
.robot-carousel .frame { aspect-ratio: 16 / 9; background: var(--ink-2); overflow: hidden; }
.robot-carousel .frame img { width: 100%; height: 100%; }
.robot-carousel .frame.native { position: relative; display: flex; align-items: center; justify-content: center; }
.robot-carousel .frame.native .backdrop { position: absolute; inset: -30px; background-position: center; background-size: cover; filter: blur(30px) brightness(0.38) saturate(0.7); }
.robot-carousel .frame.native img { position: relative; height: calc(100% - 64px); width: auto; aspect-ratio: 1241 / 1141; max-width: calc(100% - 64px); object-fit: cover; }
.robot-carousel figcaption { font-size: var(--t-small); color: var(--text-2); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.robot-carousel figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--text); }
.car-btn { position: absolute; top: calc(50% - 30px); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(237, 232, 223, 0.4); background: rgba(15, 14, 13, 0.5); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 3; transition: background 0.25s, color 0.25s; }
.car-btn:hover { background: var(--text); color: var(--ink); }
.car-btn.prev { left: 18px; }
.car-btn.next { right: 18px; }
.car-dots { position: relative; z-index: 3; display: flex; gap: 8px; margin-top: 14px; }
.car-dots button { width: 28px; height: 2px; padding: 0; border: none; background: var(--line); cursor: pointer; }
.car-dots button.active { background: var(--text); }
@media (max-width: 600px) { .robot-carousel .frame { aspect-ratio: 4 / 3; } .car-btn { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .robot-carousel .slide, .robot-carousel .slide .frame img { transition: none; } }

/* ---------- Outreach year tabs ---------- */

.year-tabs { display: flex; flex-wrap: wrap; gap: 8px 32px; border-bottom: 1px solid var(--line); }
.year-tabs button { font-family: var(--sans); font-size: 1.02rem; padding: 0 0 14px; margin-bottom: -1px; cursor: pointer; border: none; border-bottom: 1px solid transparent; background: none; color: var(--muted); transition: color 0.2s; }
.year-tabs button:hover { color: var(--text); }
.year-tabs button.active { color: var(--text); border-bottom-color: var(--text); }
.year-tabs + .year-panel { padding-top: clamp(40px, 5vw, 72px); }

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

.site-footer { margin-top: calc(var(--space) / 2); background: var(--ink-2); color: var(--muted); font-size: var(--t-small); }
.footer-sponsors { display: grid; grid-template-columns: 4fr 8fr; gap: 20px var(--gutter); align-items: start; padding-top: clamp(56px, 6vw, 88px); padding-bottom: 48px; background: linear-gradient(var(--line), var(--line)) content-box bottom / 100% 1px no-repeat; }
.fs-head .k { display: block; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); margin-bottom: 12px; }
.fs-head p { color: var(--text-2); max-width: 32ch; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: baseline; }
.sponsor-row .sponsor { 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 img { max-height: 52px; width: auto; }
.sponsor-row .sponsor.open { flex-basis: 100%; margin-top: 8px; font-family: var(--sans); font-size: 1rem; color: var(--text); text-decoration: underline; text-decoration-color: rgba(237, 232, 223, 0.35); }
.sponsor-row .sponsor.open:hover { text-decoration-color: var(--accent); }
@media (max-width: 760px) { .footer-sponsors { grid-template-columns: 1fr; } }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 24px; padding-bottom: 32px; }
.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(--muted); font-size: var(--t-label); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; }
.footer-links a { color: var(--text-2); }

/* ---------- Page-load and scroll reveals ---------- */
/* Only when JavaScript is running (html.js) and the visitor allows motion. */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- Team: portrait grid ---------- */
.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); } }
/* 4 per row on desktop. When the last row has 3 (e.g. 4-4-3), space them evenly:
   equal gaps at both edges and between cards. Card width W = (100% - 3 gutters) / 4,
   so each of the 4 gaps is (100% - 3W) / 4 = 100%/16 + 9 gutters/16. */
@media (min-width: 1001px) {
  .members-grid.people { display: flex; flex-wrap: wrap; }
  .members-grid.people > .member { flex: 0 0 calc((100% - 3 * var(--gutter)) / 4); }
  .members-grid.people > .member:nth-child(4n+1):nth-last-child(3) { margin-left: calc(100% / 16 + 9 * var(--gutter) / 16); }
  .members-grid.people > .member:nth-child(4n+1):nth-last-child(3) ~ .member { margin-left: calc(100% / 16 + 9 * var(--gutter) / 16 - var(--gutter)); }
}
@media (max-width: 720px) { .members-grid.people { grid-template-columns: repeat(2, 1fr); gap: 44px 16px; } }
.people .card.member { border-top: none; padding-top: 0; }
.portrait {
  display: flex; align-items: flex-end;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px;
  background:
    linear-gradient(rgba(237, 232, 223, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(237, 232, 223, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--ink-2);
  border: 1px solid var(--line);
}
img.portrait { display: block; border: none; filter: grayscale(1) contrast(1.05); transition: filter 0.5s var(--ease); }
.member:hover img.portrait { filter: none; }
.portrait span { padding: 12px 14px; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.people .member h3 { font-size: 1.55rem; margin-bottom: 6px; }
.people .member .exp { margin-bottom: 12px; }

/* Labels: larger and brighter so event names, dates and section labels read clearly */
:root {
  --muted: #b3ac9f;
  --t-label: 0.875rem;   /* 14px */
}
.eyebrow, .hero-foot, .facts .k, .event-head .date, .event-body .k, .specs li span:first-child,
.countdown .event-date, .countdown .unit .l, .stat .label, .member .exp, .card .tag,
.contact-list .k, .breadcrumb, .fs-head .k, .robot-carousel figcaption, .tl-pt .lbl span {
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.facts .k { font-size: 0.95rem; color: var(--text); }
.hero-foot { font-size: 0.95rem; }
.eyebrow { color: var(--text-2); }

/* ---------- Heading scale, balanced ----------
   Page title (h1)      ~112px   one per page
   Section title (h2)    ~56px   Members, Events, The Robot…
   Sub-section (h3 lg)   ~36px   robot summary, event names, join callout
   Card title (h3)       ~28px   cards, mechanisms, outreach events
   Name (h3 member)      ~26px
   Big figures           ~84px   stats and countdown, between h1 and h2 */
:root {
  --t-display: clamp(3.2rem, 7.6vw, 7rem);
  --t-title: clamp(2.3rem, 3.9vw, 3.5rem);
  --t-sub: clamp(1.75rem, 2.5vw, 2.25rem);
  --t-h3: clamp(1.45rem, 1.9vw, 1.75rem);
}
.page-head h1 { font-size: var(--t-display); }
.section-title, .feature-copy h2, .closing h2, .countdown .event-name { font-size: var(--t-title); }
.robot h3, .event-head h3, .cta h2 { font-size: var(--t-sub) !important; letter-spacing: -0.02em; }
.card h3, .part-card h3 { font-size: var(--t-h3); }
.people .member h3, .member h3 { font-size: 1.6rem; }
.stat .big, .countdown .unit .n { font-size: clamp(3rem, 6vw, 5.25rem); }
.index-list .t { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
.facts .v { font-size: 1.5rem; }
