/* ===========================================================================
   Hackathon @ Hotwire
   Palette and mood lifted from the event flyer: near-black navy, a single
   crimson accent, thin constellation lines, generous negative space.
   =========================================================================== */

:root {
  --bg:          #0a0e18;
  --bg-2:        #0d1220;
  --surface:     #131a2b;
  --surface-2:   #171f33;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --red:         #ef3b52;
  --red-bright:  #ff5f73;
  --red-dim:     rgba(239, 59, 82, 0.16);

  --text:        #e9edf5;
  --text-2:      #c3cbdb;
  --muted:       #949fb5;

  --ok:          #3ddc97;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Depth. One perspective value keeps every tilted surface in the same
     imagined room; mixing them makes cards look like separate scenes. */
  --perspective: 1400px;
  --lift: 0 30px 60px -22px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --lift-red: 0 30px 70px -24px rgba(239, 59, 82, 0.45), 0 0 0 1px rgba(239, 59, 82, 0.3);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute is only a UA `display: none`, so any author rule that
   sets `display` silently defeats it. Several elements here are grid or flex
   AND toggled by `hidden`, so make the attribute win outright. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* Sticky header must not cover the target of an in-page jump. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
img, canvas { max-width: 100%; display: block; }

a { color: var(--red-bright); text-decoration-color: rgba(255, 95, 115, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.accent { color: var(--red); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
  box-shadow: 0 8px 26px rgba(239, 59, 82, 0.28);
}
.btn-primary:hover { --btn-bg: var(--red-bright); --btn-bd: var(--red-bright); }

.btn-ghost:hover { --btn-bd: var(--red); background: var(--red-dim); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 24, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 13vw, 150px) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(239, 59, 82, 0.16), transparent 62%),
    radial-gradient(760px 420px at 92% 8%, rgba(239, 59, 82, 0.09), transparent 60%),
    var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Keeps the constellation from competing with the headline. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.1) 0%, rgba(10, 14, 24, 0.55) 62%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.hero-title {
  font-size: clamp(2.7rem, 9vw, 6.2rem);
  font-weight: 200;
  letter-spacing: -0.035em;
  margin-bottom: clamp(28px, 4vw, 44px);
  /* Lifts the headline off the constellation behind it. */
  text-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
}

.hero-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-bottom: 26px;
}
.hero-date time {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero-date-note { color: var(--muted); font-size: 0.95rem; }

.hero-lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--text-2);
  max-width: 34ch;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 118px));
  gap: 12px;
  margin: 0 0 22px;
}
.countdown-cell {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(31, 41, 66, 0.8), rgba(19, 26, 43, 0.66));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
  /* Per-cell perspective, not a shared one on the row: a single vanishing
     point keystones the outer tiles and they stop looking equal-width. */
  transform: perspective(900px) rotateX(9deg);
  transform-origin: center bottom;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.countdown:hover .countdown-cell {
  transform: perspective(900px) rotateX(0deg) translateZ(10px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95);
}
.countdown dt {
  order: 2;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown dd {
  order: 1;
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Once the event has passed the script collapses this to a single message. */
.countdown.is-past { grid-template-columns: 1fr; }
.countdown.is-past .countdown-cell:not(:first-child) { display: none; }
.countdown.is-past dt { display: none; }
.countdown.is-past dd { font-size: 1.05rem; font-weight: 500; margin: 0; }

.hero-stat { color: var(--muted); font-size: 0.95rem; }
.hero-stat strong { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------- sections */

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 300;
  margin-bottom: 16px;
}
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* ----------------------------------------------------------------- facts */

.section-facts {
  padding-block: clamp(48px, 6vw, 72px);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  perspective: var(--perspective);
}
.fact {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transform-style: preserve-3d;
  box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.fact:hover {
  transform: translateZ(26px) rotateX(3deg);
  border-color: rgba(239, 59, 82, 0.35);
  box-shadow: var(--lift);
}
.fact h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.fact p { color: var(--text-2); font-size: 0.975rem; }
.fact strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- tracks */

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  perspective: var(--perspective);
}

.track {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease);
}
/* While the pointer is inside, JS drives the transform and needs to track it
   closely; the slow easing above is for the spring back on exit. */
.track.is-tilting { transition: border-color 0.3s, box-shadow 0.3s; }
.track:hover { border-color: rgba(239, 59, 82, 0.45); box-shadow: var(--lift-red); }

/* A sheen that follows the pointer, so the surface reads as angled rather
   than as a flat rectangle that happens to be rotated. */
.track::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.07),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.track:hover::before { opacity: 1; }

/* Content sits on planes in front of the card face. */
.track-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 16px;
  transform: translateZ(45px);
}
.track h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 12px;
  transform: translateZ(32px);
}
.track p { color: var(--text-2); font-size: 0.95rem; transform: translateZ(18px); }
.track-egs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.track-egs span {
  display: block;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}

/* -------------------------------------------------------------- timeline */

.timeline {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 76px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.timeline li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding-block: 16px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 27px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--bg-2);
}
.t-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.925rem;
  padding-top: 2px;
}
.t-body { display: block; }
.t-body strong { display: block; font-weight: 600; margin-bottom: 3px; }
.t-body span { color: var(--muted); font-size: 0.925rem; }

.judging-wrap { perspective: var(--perspective); }
.judging {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 60%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 30px;
  transform-style: preserve-3d;
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.judging.is-tilting { transition: box-shadow 0.3s; }
.judging h3, .judging ul { transform: translateZ(22px); }
.judging h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.judging ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.judging li { margin-bottom: 8px; font-size: 0.95rem; }
.judging li:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- why */

.section-why {
  background:
    radial-gradient(700px 320px at 78% 50%, rgba(239, 59, 82, 0.11), transparent 65%),
    var(--bg);
}
.why-inner { max-width: 44ch; }
.why-quote {
  font-size: clamp(1.4rem, 3.6vw, 2.15rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------------ form */

.register-wrap { max-width: 760px; }

/* Team vs individual. Two real choices, so they get equal visual weight
   rather than one being a link tucked under the other. */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 34px;
  perspective: var(--perspective);
}
.mode-option {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  text-align: left;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 60%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease), border-color 0.25s, background-color 0.25s, box-shadow 0.45s var(--ease);
}
.mode-option.is-tilting { transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s; }
.mode-option strong { font-size: 1rem; font-weight: 600; color: var(--text); transform: translateZ(26px); }
.mode-option span { font-size: 0.85rem; color: var(--muted); transform: translateZ(14px); }
.mode-option:hover { border-color: rgba(239, 59, 82, 0.5); box-shadow: var(--lift); }
.mode-option.is-active {
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(239, 59, 82, 0.22) 0%, var(--red-dim) 60%);
  box-shadow: var(--lift-red);
}
.mode-option.is-active strong { color: #fff; }

.form { display: grid; gap: 30px; }

/* The mode panels are plain wrappers; their children keep the form's rhythm
   rather than collapsing into a single block. */
#teamFields, #soloFields { display: grid; gap: 30px; }
#teamFields[hidden], #soloFields[hidden] { display: none; }

.field { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }

.field > label, .field > legend {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text);
  padding: 0;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 6px;
}

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.975rem;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
input::placeholder, textarea::placeholder { color: #6b768c; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--red-dim);
}
textarea { resize: vertical; min-height: 84px; }

.hint { font-size: 0.82rem; color: var(--muted); }

.error { font-size: 0.85rem; color: var(--red-bright); font-weight: 500; }
[aria-invalid="true"] { border-color: var(--red); }

/* Track picker: flyer-style outlined pills. */
.track-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
  cursor: pointer;
}
.chip input:hover + span { border-color: rgba(239, 59, 82, 0.55); color: var(--text); }
.chip input:checked + span {
  border-color: var(--red);
  background: var(--red-dim);
  color: #fff;
}
.chip input:focus-visible + span { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* Member rows */
.members { display: grid; gap: 14px; }

.member {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 16px;
  background: rgba(19, 26, 43, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.member-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.member-cell { display: grid; gap: 6px; min-width: 0; }
.member-cell.is-wide { grid-column: 1 / -1; }
.member-cell label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}
.member-remove {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}
.member-remove:hover { border-color: var(--red); color: var(--red-bright); background: var(--red-dim); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.form-note { color: var(--muted); font-size: 0.875rem; }

.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 500;
  border: 1px solid var(--red);
  background: var(--red-dim);
  color: #ffd2d8;
}

.success {
  background: var(--surface);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  display: grid;
  gap: 14px;
}
.success h3 { font-size: 1.5rem; font-weight: 600; }
.success p { color: var(--text-2); font-size: 0.975rem; }
.success strong { color: var(--ok); }

/* ------------------------------------------------------------------- faq */

.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 22px 44px 22px 0;
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-bright); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 24px; color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}
.footer-title { font-weight: 600; }
.footer-meta, .footer-contact { color: var(--muted); font-size: 0.9rem; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: rgba(10, 14, 24, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: none;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; }

  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .countdown { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  .mode-switch { grid-template-columns: 1fr; }

  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline li::before { left: 1px; top: 22px; }

  .member { grid-template-columns: 1fr; }
  .member-head { margin-bottom: 2px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .hero-actions .btn { width: 100%; }
  .countdown dd { font-size: 1.3rem; }
}

/* --------------------------------------------------------------- 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;
  }
  /* Flatten the whole 3D layer. The JS skips tilt, parallax and the rotating
     point cloud for these users, so nothing is left driving a transform. */
  .btn:hover,
  .track, .track:hover,
  .fact, .fact:hover,
  .mode-option,
  .countdown-cell,
  .countdown:hover .countdown-cell,
  .judging,
  .hero-inner,
  .track-index, .track h3, .track p,
  .mode-option strong, .mode-option span,
  .judging h3, .judging ul {
    transform: none !important;
  }
  .track::before { display: none; }
}

/* ----------------------------------------------------------------- print */

@media print {
  .site-header, .hero-canvas, .hero-veil, .nav-toggle, .form, .btn { display: none; }
  body { background: #fff; color: #000; }
}
