/* ═══════════════════════════════════════
   Biocomputing Competition & Summit
   Warm greige · geometric grotesk · pill CTAs
   ═══════════════════════════════════════ */

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

:root {
  --bg:        #e3dfdb;  /* warm greige page */
  --panel:     #d7d2cb;  /* deeper greige card */
  --panel-2:   #ddd9d3;  /* lighter card */
  --ink:       #1c1b1d;  /* near-black */
  --ink-soft:  #6d6a64;  /* muted */
  --ink-faint: #928e87;  /* faintest */
  --cream:     #fffce3;  /* accent fill */
  --line:      rgba(28, 27, 29, 0.16);
  --line-strong: rgba(28, 27, 29, 0.30);

  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 72px;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

/* ── Lenis smooth scroll ───────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Wordmark ─────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}

.wordmark-main {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

/* ── Header / Nav ──────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  padding: 1rem clamp(1rem, 3vw, 2rem) 0;
  transition: padding 0.3s ease;
}

/* Content floats in a pill; glass only appears on scroll */
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem 0.5rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled .header-inner {
  background: rgba(227, 223, 219, 0.16);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 24px rgba(28, 27, 29, 0.07);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav .nav-link {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover { color: var(--ink); }

/* Pill buttons in nav */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.pill-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.pill-outline:hover { background: var(--ink); color: var(--bg); }

.pill-cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.pill-cream:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(28,27,29,0.12); }

.pill-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.pill-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(28,27,29,0.18); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem;
  padding: 0 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── Reveal on scroll ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(6px);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered siblings — cards cascade in instead of snapping together */
.reveal { transition-delay: calc(var(--stagger, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Scroll fill (word-by-word) ─────────── */
/* Words start faint and fill to solid as they scroll up past a line. */
.scroll-fill .word {
  opacity: var(--fill, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-fill .word { opacity: 1; transition: none; }
}

/* ── Hero (split layout) ───────────────── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 3.5rem;
  overflow: hidden;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: 2.75rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1;
}
.meta-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 3rem;
  align-items: end;
}

.hero-headline {
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-aside { padding-bottom: 0.8rem; }

.eyebrow {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.4rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-scroll {
  align-self: center;
  margin-top: 4rem;
  width: 64px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.hero-scroll:hover { transform: translateY(3px); }

/* ── Section scaffolding ───────────────── */
.section { padding: 4.5rem 0; }
.section-head {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 20ch;
}
.section-intro {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

/* ── Overview (big rounded panel) ──────── */
.overview .panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem);
}

.overview-lede {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 24ch;
  margin-bottom: 3.5rem;
}
.overview-lede em { font-style: italic; color: var(--ink); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 2.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-num {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 12rem;
}

/* ── Sponsors ──────────────────────────── */
.sponsor-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sponsor-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: transparent;
  padding: 1.5rem;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease;
}
.sponsor-logo-item img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.22s ease, opacity 0.22s ease;
}
.sponsor-logo-item .logo-invert {
  filter: invert(1) opacity(0.7);
}
.sponsor-logo-item img.logo-wide {
  max-height: 68px;
}
.sponsor-logo-item:hover {
  border-color: var(--ink);
  background: rgba(28, 27, 29, 0.02);
  transform: translateY(-3px);
}
.sponsor-logo-item:hover img {
  filter: grayscale(0) opacity(1);
}
.sponsor-logo-item:hover .logo-invert {
  filter: invert(1) opacity(1);
}

/* ── Universities ──────────────────────── */
.universities-lede {
  font-size: 1.4rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 34ch;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

/* Auto-scrolling marquee of partner universities */
.uni-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.uni-track {
  display: flex;
  gap: 3.25rem;
  width: max-content;
  animation: uni-scroll 55s linear infinite;
}

@keyframes uni-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.uni-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  background: var(--panel-2);
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.uni-tile:hover { background: var(--panel); transform: translateY(-2px); }

/* In the marquee: no card — just a grayscale logo + name flowing past */
.uni-track .uni-tile {
  flex: none;
  background: none;
  padding: 0;
  border-radius: 0;
  opacity: 0.55;
  filter: grayscale(1);
}
.uni-track .uni-tile:hover { background: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .uni-track { animation: none; flex-wrap: wrap; }
  .uni-track .uni-tile { opacity: 1; }
}

.uni-mark {
  flex: none;
  width: 38px; height: 38px;
  object-fit: contain;
}

.uni-tile span:last-child {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Host institution — a statement, not a card */
.uni-host {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.uni-host-mark {
  flex: none;
  width: 66px; height: 66px;
  object-fit: contain;
}
.uni-host-name {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.uni-sub {
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 2.75rem;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.arrow-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.arrow-link:hover {
  opacity: 0.85;
}
.arrow-link:hover span {
  transform: translateX(4px);
}

/* ── Apply (dark panel) ────────────────── */
.apply .panel {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 6rem);
  text-align: center;
}
.apply .section-label { color: var(--cream); justify-content: center; }
.apply .section-label::before { background: var(--cream); }

.apply-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f4f1ec;
  margin-bottom: 1.4rem;
}
.apply-sub {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #b6b2ac;
  max-width: 44ch;
  margin: 0 auto 2.8rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.waitlist-row {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  transition: border-color 0.2s ease;
}
.waitlist-row:focus-within { border-color: rgba(255,252,227,0.6); }

.waitlist-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f4f1ec;
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
}
.waitlist-form input::placeholder { color: #8f8b85; }

.waitlist-form button {
  position: relative;
  overflow: hidden;
  flex: none;
  background: var(--cream);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 1.6rem;
  height: 46px;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.waitlist-form button:hover { transform: translateY(-1px); }

.btn-sent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  background: var(--cream);
  color: var(--ink);
}
.waitlist-form.submitted .btn-text { opacity: 0; }
.waitlist-form.submitted .btn-sent { opacity: 1; }
.waitlist-form.submitted input { pointer-events: none; opacity: 0.5; }
.waitlist-form.submitted button { pointer-events: none; }

.form-error {
  font-size: 0.9rem;
  color: #e0a89a;
  min-height: 1rem;
}

/* ── About ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.about-head {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  position: sticky;
  top: 6rem;
}
.about-body p {
  font-size: 1.5rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.about-body p.muted { color: var(--ink); }
.about-body p:last-child { margin-bottom: 0; }

/* ── Tracks ────────────────────────────── */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.track-card {
  background: var(--panel-2);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.track-card:hover { background: var(--panel); transform: translateY(-3px); }
.track-num {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.track-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 0.7rem;
}
.track-desc {
  font-size: 1.05rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

/* ── Schedule ──────────────────────────── */
.schedule-day {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-strong);
}
.schedule-day:last-child { border-bottom: 1px solid var(--line-strong); }
.schedule-when { }
.schedule-when h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.schedule-when p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.schedule-list li {
  display: flex;
  gap: 1.5rem;
  padding: 0.55rem 0;
}
.schedule-time {
  flex: none;
  width: 5.5rem;
  font-size: 1rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.schedule-what {
  font-size: 1.05rem;
  color: var(--ink);
}

/* ── FAQ ───────────────────────────────── */
.faq-list { max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.faq-icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
}
.faq-icon::before { width: 22px; height: 2px; }
.faq-icon::after  { width: 2px; height: 22px; }
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding: 0 0 1.7rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ── Footer ────────────────────────────── */
.site-footer { padding: 4rem 0 2.5rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.footer-tag {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 30ch;
  line-height: 1.45;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
}
.footer-copy {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ── Subpages ──────────────────────────── */
.page { padding-top: 9rem; }
.page-head { padding-bottom: 2.5rem; }
.page-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
}
.page-lede {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 56ch;
}

.prose { max-width: 64ch; }
.prose h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.8rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; line-height: 1.62; }
.prose ul { list-style: disc; margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.55; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink-soft); }

/* Team */
.team-group-title {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 3rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.team-group-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.team-card {
  background: var(--panel-2);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.team-card:hover { transform: translateY(-3px); background: var(--panel); }
.team-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.team-name { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.team-role { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contact-card {
  display: block;
  background: var(--panel-2);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
a.contact-card:hover { transform: translateY(-3px); background: var(--panel); }
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.contact-value { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.contact-sub { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* ── Responsive ────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
  .hero-aside { padding-bottom: 0; max-width: 480px; }
  .sponsor-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat-row { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-head { position: static; top: auto; }
  .track-grid { grid-template-columns: 1fr; }
  .schedule-day { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 3.5rem 0; }
  .about-body p { font-size: 1.25rem; }
}

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
  .site-nav .nav-partner { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  .container { padding: 0 1.25rem; }

  /* Hero breathes better without the tall min-height on small screens */
  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero-meta { margin-top: 1.75rem; gap: 1.2rem 1.75rem; }
  .hero-scroll { margin-top: 2.5rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .pill { flex: 1 1 auto; }

  .section { padding: 3rem 0; }
  .about-body p { font-size: 1.18rem; }
  .about-body p:not(:last-child) { margin-bottom: 1.2rem; }

  .sponsor-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }

  .overview .panel { padding: 2rem 1.5rem; }
  .apply .panel { padding: 2.5rem 1.5rem; }

  .waitlist-row { flex-direction: column; background: transparent; border: none; padding: 0; gap: 0.8rem; }
  .waitlist-form input { border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-pill); padding: 0.9rem 1.4rem; }
  .waitlist-form button { height: 50px; width: 100%; }

  /* FAQ answers can wrap to more lines on narrow screens — avoid clipping */
  .faq-item.open .faq-a { max-height: 520px; }
  .faq-q { font-size: 1.15rem; padding: 1.3rem 0; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .header-inner { padding-left: 1.1rem; gap: 0.75rem; }
  .wordmark-sub { display: none; }
}

@media (max-width: 400px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-meta { gap: 1rem 1.25rem; }
  .arrow-link { font-size: 1rem; }
  .sponsor-logo-item { height: 100px; padding: 1rem; }
}
