/* ==========================================================================
   TigerHacks — site styles
   Black / white / orange, murder-mystery case-file aesthetic.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-normal.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic.woff2") format("woff2");
  font-weight: 500 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2ed;
  --muted: #a5a29c;
  --dim: #6f6c67;
  --orange: #f47b2a;
  --orange-2: #ff9447;
  --orange-ink: #1a0d03;
  --paper: #f2eee5;
  --paper-2: #e7e1d4;
  --ink: #0d0d0d;
  --ink-muted: #55524c;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--orange); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Film-grain overlay for the whole page */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper ::selection { background: var(--ink); color: var(--paper); }
.section--orange { background: var(--orange); color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.section--paper .eyebrow { color: #b4500f; }
.section--orange .eyebrow { color: var(--ink); }

.display {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; font-weight: 600; color: var(--orange); }
.section--paper .display em { color: #c4560e; }
.section--orange .display em { color: var(--bg); }

.h2 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
.h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section--paper .lead { color: var(--ink-muted); }

.section-head { display: grid; align-content: start; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--orange-ink); box-shadow: 0 10px 30px -10px rgba(244, 123, 42, 0.6); }
.btn--primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(244, 123, 42, 0.7); }

.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--text); }
.btn--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #262626; transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn--dark:hover::before { transform: translateY(0); }
.section--paper .btn--ghost { border-color: rgba(0, 0, 0, 0.2); color: var(--ink); }
.section--paper .btn--ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.04); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--orange);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.01em; z-index: 2; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(244, 123, 42, 0);
  transition: box-shadow 0.4s var(--ease), transform 0.6s var(--ease);
}
.brand__mark img { width: 30px; height: 30px; }
.brand:hover .brand__mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(244, 123, 42, 0.35); transform: rotate(-8deg); }
.brand__name { font-size: 1.15rem; }
.brand__year { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--orange); border: 1px solid rgba(244, 123, 42, 0.4); padding: 2px 7px; border-radius: 999px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--text); }

.header-cta { display: none; }

.menu-toggle {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s, transform 0.6s var(--ease), color 0.25s;
}
.mobile-menu__link small { font-family: var(--font-mono); font-size: 0.75rem; color: var(--orange); letter-spacing: 0.1em; }
.mobile-menu__link[aria-current="page"] { color: var(--orange); font-style: italic; }
.menu-open .mobile-menu__link { opacity: 1; transform: none; }
.menu-open .mobile-menu__list li:nth-child(1) .mobile-menu__link { transition-delay: 0.15s; }
.menu-open .mobile-menu__list li:nth-child(2) .mobile-menu__link { transition-delay: 0.2s; }
.menu-open .mobile-menu__list li:nth-child(3) .mobile-menu__link { transition-delay: 0.25s; }
.menu-open .mobile-menu__list li:nth-child(4) .mobile-menu__link { transition-delay: 0.3s; }
.menu-open .mobile-menu__list li:nth-child(5) .mobile-menu__link { transition-delay: 0.35s; }
.mobile-menu__foot { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); display: grid; gap: 4px; }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(56px, 9vh, 110px);
  display: flex; align-items: center;
  overflow: hidden;
  --mx: 70%;
  --my: 35%;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
/* Flashlight that follows the pointer */
.hero__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(244, 123, 42, 0.16), transparent 60%),
    radial-gradient(900px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.05), transparent 70%);
  transition: background 0.1s linear;
}
.hero__tiger {
  position: absolute;
  right: -8vw; top: 50%;
  width: min(62vw, 820px);
  transform: translateY(-50%);
  opacity: 0.045;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}
.hero__inner { position: relative; z-index: 1; width: 100%; display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
.hero__inner > * { min-width: 0; }
@media (min-width: 1040px) { .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); } }

.hero__kicker { margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(3.4rem, 12.5vw, 8.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.06em 0.04em 0.16em 0; margin-bottom: -0.12em; }
.hero__title .line > span { display: inline-block; }
@media (min-width: 1040px) { .hero__title { font-size: clamp(4.6rem, 7.4vw, 7.8rem); } }
.hero__title .year {
  font-style: italic;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
  letter-spacing: -0.02em;
}
.hero__tagline { margin-top: 28px; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); max-width: 40ch; }
.nowrap { white-space: nowrap; }
.hero__tagline strong { color: var(--text); font-weight: 600; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.hero__meta div { display: flex; align-items: center; gap: 10px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--orange); }

/* Intro animation for hero lines */
.js .hero__title .line > span { transform: translateY(105%); }
.js .is-loaded .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }

/* Case file card */
.case-card {
  position: relative;
  background: linear-gradient(180deg, #151515, #0f0f0f);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.case-card::before {
  /* folder tab */
  content: "";
  position: absolute; top: -12px; left: 22px;
  width: 120px; height: 14px;
  background: #151515;
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.case-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.case-card__id { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.case-card__id strong { color: var(--text); font-weight: 600; }
.stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  padding: 4px 8px;
  border-radius: 4px;
  transform: rotate(-4deg);
}
.case-card__rows { display: grid; margin-top: 4px; }
.case-card__row { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.case-card__row:last-child { border-bottom: 0; }
.case-card__row dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.case-card__row dd { color: var(--text); }
.case-card__row dd.redacted { color: var(--muted); }
.case-card__row .bad { color: var(--orange); font-weight: 600; }

.terminal {
  margin-top: 18px;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: #c9c6bf;
  min-height: 132px;
}
.terminal .prompt { color: var(--orange); }
.terminal .ok { color: #9be39b; }
.terminal .warn { color: var(--orange-2); }
.terminal .cursor { display: inline-block; width: 7px; height: 1em; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 1;
  transform: translateX(-50%);
  display: none;
  flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1040px) and (min-height: 760px) { .scroll-cue { display: flex; } }

/* ---------- Crime-scene tape ---------- */
.tape-wrap { position: relative; height: 150px; overflow: hidden; margin-block: -40px; z-index: 2; pointer-events: none; }
.tape {
  position: absolute; left: -5%; width: 110%;
  background: var(--orange);
  color: var(--ink);
  padding: 12px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.tape--a { top: 30px; transform: rotate(-2.5deg); }
.tape--b { top: 70px; transform: rotate(1.8deg); background: #e9e5dc; opacity: 0.95; }
.tape__track { display: inline-flex; animation: marquee 38s linear infinite; }
.tape--b .tape__track { animation-direction: reverse; animation-duration: 46s; }
.tape__track span { padding-inline: 18px; }
.tape__track span::after { content: "\25CF"; margin-left: 36px; font-size: 0.6em; vertical-align: 2px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About / brief ---------- */
.brief { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .brief { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }
.brief__text { display: grid; gap: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-muted); }
.brief__text p:first-child { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.5; font-family: var(--font-serif); font-weight: 500; }
.brief__text p:first-child::first-letter {
  float: left;
  font-size: 3.4em; line-height: 0.85;
  padding: 6px 12px 0 0;
  font-weight: 800; color: #c4560e;
}
.brief__sig { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.06em; }
.brief__sig::before { content: ""; width: 40px; height: 1px; background: currentColor; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(0, 0, 0, 0.14); margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 20px 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.14); }
@media (min-width: 800px) { .stat { border-bottom: 0; } .stat + .stat { padding-left: 24px; border-left: 1px solid rgba(0, 0, 0, 0.14); } }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stat__num sup { font-size: 0.45em; color: #c4560e; vertical-align: top; margin-left: 2px; }
.stat__label { margin-top: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Feature cards (format) ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease), background-color 0.4s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), rgba(244, 123, 42, 0.12), transparent 50%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: rgba(244, 123, 42, 0.45); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.14em; }
.card__icon {
  width: 48px; height: 48px; margin: 22px 0 26px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(244, 123, 42, 0.1);
  border: 1px solid rgba(244, 123, 42, 0.28);
  color: var(--orange);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card--alert { border-color: rgba(244, 123, 42, 0.5); background: linear-gradient(180deg, rgba(244, 123, 42, 0.1), var(--bg-2) 60%); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }

/* ---------- Schedule timeline ---------- */
.timeline-wrap { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .timeline-wrap { grid-template-columns: 0.8fr 1.2fr; } .timeline-wrap .section-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.timeline { position: relative; padding-left: 36px; }
.timeline::before,
.timeline__progress {
  content: "";
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line-2);
}
.timeline__progress { background: var(--orange); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline li { position: relative; padding: 0 0 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -36px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}
.timeline li.is-active::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 6px rgba(244, 123, 42, 0.18); }
.timeline time { font-family: var(--font-mono); font-size: 0.85rem; color: var(--orange); letter-spacing: 0.06em; }
.timeline h3 { margin-top: 6px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }
.timeline .dur { display: inline-block; margin-left: 12px; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); }
.timeline li.is-main h3 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
.timeline-note { margin-top: 28px; font-size: 0.85rem; color: var(--dim); font-family: var(--font-mono); }

/* ---------- Evidence board (gallery) ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; } }
.exhibit {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
@media (min-width: 900px) {
  .exhibit { aspect-ratio: auto; }
  .exhibit--tall { grid-row: span 2; }
  .exhibit--wide { grid-column: span 2; grid-row: span 2; }
}
.exhibit img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) contrast(1.05) brightness(0.85); transform: scale(1.02); transition: filter 0.6s, transform 1s var(--ease); }
.exhibit:hover img, .exhibit:focus-visible img { filter: none; transform: scale(1.06); }
.exhibit__tag {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  padding: 4px 8px; border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.exhibit::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.4s;
}
.exhibit:hover::after { border-color: rgba(244, 123, 42, 0.6); }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: rgba(5, 5, 5, 0.94);
  color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; animation: fade 0.3s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { display: grid; gap: 14px; justify-items: center; padding: 64px 16px; }
.lightbox img { max-height: calc(100vh - 160px); max-width: min(92vw, 1400px); width: auto; border-radius: 8px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); }
.lightbox figcaption { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lightbox__btn {
  position: fixed;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(20, 20, 20, 0.8);
  display: grid; place-items: center;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox__btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Schools marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: inline-flex; white-space: nowrap; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; font-style: italic; color: var(--muted); padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee__item::after { content: "\2726"; font-style: normal; font-size: 0.6em; color: var(--orange); }

/* ---------- Team ---------- */
.team-lead { display: grid; gap: 16px; }
@media (min-width: 720px) { .team-lead { grid-template-columns: repeat(3, 1fr); } }
.person {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.person:hover { border-color: rgba(244, 123, 42, 0.45); transform: translateY(-3px); }
.person__mono {
  flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; font-style: italic;
  background: var(--orange); color: var(--ink);
}
.person__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.person__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.person__file { position: absolute; right: 18px; top: 16px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--dim); letter-spacing: 0.1em; }

.roster { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 860px) { .roster { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.roster h3 { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.roster h3 span { color: var(--dim); }
.roster ul { columns: 1; column-gap: 32px; }
@media (min-width: 560px) { .roster .roster__alumni ul { columns: 2; } }
.roster li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; display: flex; align-items: center; gap: 12px; transition: color 0.25s, padding-left 0.4s var(--ease); }
.roster li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color 0.3s; flex: none; }
.roster li:hover { color: var(--orange-2); padding-left: 6px; }
.roster li:hover::before { background: var(--orange); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .faq { grid-template-columns: 0.8fr 1.2fr; } }
.accordion { border-top: 1px solid rgba(0, 0, 0, 0.16); }
.accordion details { border-bottom: 1px solid rgba(0, 0, 0, 0.16); }
.accordion summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); transition: background-color 0.3s, transform 0.5s var(--ease); }
.accordion summary .plus::before, .accordion summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease), background-color 0.3s; }
.accordion summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion details[open] summary .plus { background: var(--ink); transform: rotate(180deg); }
.accordion details[open] summary .plus::before, .accordion details[open] summary .plus::after { background: var(--paper); }
.accordion details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion summary:hover { color: #b4500f; }
.accordion .answer { padding: 0 56px 26px 0; color: var(--ink-muted); }
.accordion .answer a { color: #b4500f; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__title { font-size: clamp(3rem, 10vw, 8rem); line-height: 0.95; }
.cta p { margin: 24px auto 40px; max-width: 46ch; font-size: 1.15rem; color: rgba(13, 13, 13, 0.75); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn--ghost { border-color: rgba(0, 0, 0, 0.3); color: var(--ink); }
.cta .btn--ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.06); }
.cta__fingerprint { position: absolute; width: 520px; right: -140px; bottom: -180px; opacity: 0.1; color: var(--ink); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 96px); padding-bottom: 32px; background: var(--bg); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 18px; color: var(--muted); max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col address { color: var(--muted); font-style: normal; font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--orange); }
.footer-word {
  margin-top: clamp(56px, 8vw, 96px);
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(3rem, 15vw, 14rem);
  line-height: 0.9;
  overflow: hidden;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  user-select: none;
  text-align: center;
}
.footer-word em { -webkit-text-stroke-color: rgba(244, 123, 42, 0.5); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.82rem; color: var(--dim); }

/* ---------- Interior page header ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 128px));
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero__grid { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 70%); }
.page-hero__inner { position: relative; display: grid; gap: 24px; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7rem); }
.page-hero .lead { margin-top: 4px; }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim); letter-spacing: 0.08em; }
.breadcrumbs ol { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.breadcrumbs a:hover { color: var(--orange); }

/* ---------- Rules page ---------- */
.rules { display: grid; gap: 16px; counter-reset: rule; }
.rule {
  counter-increment: rule;
  display: grid; grid-template-columns: auto 1fr; gap: 20px 28px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.rule:hover { border-color: var(--line-2); }
.rule::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1;
  color: var(--orange);
  min-width: 2ch;
}
.rule h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.rule p { color: var(--muted); max-width: 70ch; }
.rule--alert { border-color: var(--orange); background: linear-gradient(120deg, rgba(244, 123, 42, 0.14), var(--bg-2) 55%); position: relative; overflow: hidden; }
.rule--alert .stamp { position: absolute; right: 20px; top: 20px; font-size: 0.72rem; }
@media (max-width: 600px) { .rule { grid-template-columns: 1fr; gap: 12px; } .rule--alert .stamp { position: static; justify-self: start; } }
.rules-aside { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.rules-aside p { color: var(--muted); }

/* ---------- Problems archive ---------- */
.dossiers { display: grid; gap: 20px; }
.dossier {
  display: grid; gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.dossier:hover { border-color: var(--line-2); }
@media (min-width: 900px) { .dossier { grid-template-columns: 220px 1fr; align-items: start; gap: 48px; } }
.dossier__year { font-family: var(--font-serif); font-weight: 800; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.dossier__year span { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.dossier h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.015em; }
.dossier p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.dossier__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dossier details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.dossier summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.dossier summary::-webkit-details-marker { display: none; }
.dossier summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--orange); transition: transform 0.4s var(--ease); }
.dossier details[open] summary::before { transform: rotate(45deg); }
.dossier summary:hover { color: var(--text); }
.pdf-frame { margin-top: 18px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pdf-frame iframe { width: 100%; height: min(78vh, 900px); border: 0; }

/* ---------- Results ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.tab {
  position: relative; z-index: 1;
  padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab:hover:not([aria-selected="true"]) { color: var(--text); }
.tabs__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--orange); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }

.results-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.search input {
  width: 100%; min-height: 48px;
  padding: 0 16px 0 46px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: inherit; font-size: 0.95rem;
  transition: border-color 0.3s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--orange); }

.year-panel[hidden] { display: none; }
.year-panel + .year-panel { margin-top: 80px; }
.js .year-panel + .year-panel { margin-top: 0; }
.year-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.year-panel__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.year-panel__head p { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

.podium { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 820px) { .podium { grid-template-columns: repeat(3, 1fr); align-items: end; } .podium .place-1 { order: 2; } .podium .place-2 { order: 1; } .podium .place-3 { order: 3; } }
.place {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.place-1 { background: linear-gradient(160deg, rgba(244, 123, 42, 0.22), var(--bg-2) 60%); border-color: rgba(244, 123, 42, 0.6); }
@media (min-width: 820px) { .place-1 { padding-block: 40px; } }
.place__rank { font-family: var(--font-serif); font-style: italic; font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--orange); }
.place-2 .place__rank, .place-3 .place__rank { color: var(--text); opacity: 0.8; }
.place__rank sup { font-size: 0.4em; }
.place__team { margin-top: 14px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.place__detail { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.place__detail .mono { font-family: var(--font-mono); font-size: 0.82rem; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.results-table { font-size: 0.95rem; min-width: 620px; }
.results-table th {
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-3);
  white-space: nowrap;
}
.results-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.results-table tr:last-child td { border-bottom: 0; }
.results-table td:nth-child(2) { color: var(--text); font-weight: 600; }
.results-table td.rank { font-family: var(--font-mono); color: var(--dim); width: 64px; }
.results-table td.num, .results-table th.num { text-align: right; font-family: var(--font-mono); }
.results-table td.num { color: var(--text); }
.results-table tbody tr { transition: background-color 0.2s; }
.results-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.results-table tbody tr.top td.rank { color: var(--orange); font-weight: 700; }
.results-table .na { color: var(--dim); }
.results-table mark { background: rgba(244, 123, 42, 0.3); color: var(--text); border-radius: 3px; padding: 0 2px; }
.no-match { padding: 28px; text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; }
.results-note { margin-top: 16px; font-size: 0.82rem; color: var(--dim); font-family: var(--font-mono); }

/* ---------- Registration ---------- */
.register-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .register-grid { grid-template-columns: 0.75fr 1.25fr; align-items: start; } .register-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.register-aside { display: grid; gap: 16px; }
.checklist { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.checklist h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.checklist li svg { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }
.checklist a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.form-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.form-frame__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-3); border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.form-frame__dots { display: flex; gap: 6px; }
.form-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.form-frame__dots i:first-child { background: var(--orange); }
.form-frame iframe { width: 100%; height: 1250px; border: 0; background: #fff; }
@media (max-width: 860px) { .form-frame iframe { height: 1400px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.notfound h1 { font-size: clamp(6rem, 22vw, 16rem); line-height: 0.85; }
.notfound p { margin: 20px auto 36px; color: var(--muted); max-width: 44ch; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Decrypt / scramble text helper */
[data-scramble] { font-variant-ligatures: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .tape__track, .marquee__track { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  body::after, .site-header, .mobile-menu, .tape-wrap, .scroll-cue, .hero__bg, .cta, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Theme badge (hero) ---------- */
.hero__theme {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(244, 123, 42, 0.45);
  border-radius: 999px;
  background: rgba(244, 123, 42, 0.08);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hero__theme strong { color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.hero__theme-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(244, 123, 42, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(244, 123, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 123, 42, 0); } }

/* ---------- Team leads ---------- */
.leads { display: grid; gap: 16px; }
@media (min-width: 640px) { .leads { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .leads--page { gap: 24px; } }
.lead-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.lead-card:hover { border-color: rgba(244, 123, 42, 0.5); transform: translateY(-4px); }
.lead-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(244, 123, 42, 0.16), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px),
    var(--bg-3);
}
.lead-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lead-card:hover .lead-card__photo img { transform: scale(1.04); }
.lead-card__photo .exhibit__tag { z-index: 1; }
.lead-card__mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(4rem, 9vw, 7rem);
  color: var(--orange);
  opacity: 0.85;
}
.lead-card__body { padding: 22px 24px 26px; }
.lead-card__name { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.lead-card__role { margin-top: 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.lead-card__school { margin-top: 4px; font-size: 0.92rem; color: var(--muted); }
.leads:not(.leads--page) .lead-card__photo { aspect-ratio: 1 / 1; }
.menu-open .mobile-menu__list li:nth-child(6) .mobile-menu__link { transition-delay: 0.4s; }
