/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Light mode: Gold & Black */
  --bg:          #FAFAF8;
  --bg-card:     #FFFFFF;
  --bg-nav:      #0A0A0A;
  --surface:     #F2EFE8;
  --border:      rgba(0,0,0,0.09);
  --text:        #0A0A0A;
  --text-2:      #3A3530;
  --text-muted:  #7A736A;
  --accent:      #C9A84C;
  --accent-dark: #A8863A;
  --accent-bg:   rgba(201,168,76,0.10);
  --nav-text:    #FFFFFF;
  --nav-link:    rgba(255,255,255,0.65);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.02);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.03);
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-pill: 999px;
  --ease:        cubic-bezier(0.16,1,0.3,1);
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  /* sky */
  --sky-top:     #FBFAF6;
  --sky-bottom:  #F3EDDF;
  --dawn:        rgba(201,168,76,0.30);
  --dawn-2:      rgba(214,140,70,0.12);
  --band:        rgba(201,168,76,0.06);
  --star-alpha:  0;
  --journey:     0;
  --font-body:   'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:          #0C0B09;
  --bg-card:     #161410;
  --bg-nav:      #080807;
  --surface:     #1E1B14;
  --border:      rgba(255,255,255,0.08);
  --text:        #F5F0E8;
  --text-2:      #C8BFA8;
  --text-muted:  #7A7060;
  --accent:      #D4AF51;
  --accent-dark: #E8C86A;
  --accent-bg:   rgba(212,175,81,0.12);
  --nav-text:    #F5F0E8;
  --nav-link:    rgba(245,240,232,0.60);
  --shadow-sm:   none;
  --shadow-md:   none;
  --sky-top:     #060607;
  --sky-bottom:  #0E0C08;
  --dawn:        rgba(212,175,81,0.42);
  --dawn-2:      rgba(196,104,44,0.18);
  --band:        rgba(255,255,255,0.025);
  --star-alpha:  1;
}

/* ─── RESET ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 6px; }

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -999px; left: 20px;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 9999;
}
.skip-link:focus { top: 16px; }

/* ─── ANNOUNCEMENT BANNER ───────────────────────────────── */
.announce-banner {
  background: var(--accent); color: #0A0A0A;
  text-align: center; padding: 0.6rem 2rem;
  font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  position: relative; z-index: 200;
}
.announce-banner a {
  color: #0A0A0A; text-decoration: underline; text-underline-offset: 2px;
  font-weight: 700;
}
.announce-banner-close {
  position: absolute; right: 1rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; line-height: 1; cursor: pointer; border: none;
  color: #0A0A0A; font-weight: 700;
  transition: background 0.2s;
}
.announce-banner-close:hover { background: rgba(0,0,0,0.22); }
.announce-banner.hidden { display: none; }

/* ─── NAV ────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s var(--ease);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: var(--nav-text);
}
.logo img { width: 40px; height: 40px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-links a {
  color: var(--nav-link); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--nav-text); }

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

/* Theme toggle: clean SVG icons */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9); }
.theme-toggle svg { display: block; width: 15px; height: 15px; }
/* Light mode → show moon (offer dark) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
/* Dark mode → show sun (offer light) */
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Social icon links: same style as theme-toggle */
.social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.social-icon:hover { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9); }
.social-icon svg { display: block; width: 15px; height: 15px; }

/* Social divider line */
.nav-social-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  background: var(--accent); color: #0A0A0A;
  border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 700;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn-nav:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Mobile toggle */
.hamburger {
  display: none; flex-direction: column; gap: 4px; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--nav-text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

/* Mobile nav */
.mobile-nav {
  display: flex;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg-nav); z-index: 99;
  padding: 2rem; flex-direction: column; gap: 1.5rem;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  color: var(--nav-link); font-size: 1.3rem; font-weight: 600;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { color: var(--nav-text); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent); color: #0A0A0A;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.30); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .btn-outline {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-bg);
}

.btn-dark {
  background: var(--text); color: var(--bg);
}
.btn-dark:hover { opacity: 0.85; transform: translateY(-2px); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: min(85vh, 760px);
  display: flex; align-items: center;
  padding: 85px 2rem 50px;
  position: relative; overflow: hidden;
}
.hero-bg-dots {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-label {
  display: inline-block;
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid currentColor; border-radius: var(--radius-pill);
  padding: 4px 14px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-2); line-height: 1.65;
  max-width: 480px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Hero card / widget */
.hero-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-md);
}
.widget-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 1rem;
}
.widget-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.widget-row:last-child { border-bottom: none; }
.widget-row-left { font-size: 0.88rem; color: var(--text-2); }
.widget-row-right {
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--text);
}
.widget-row-right.green { color: var(--accent); }

.widget-bar-wrap { margin-top: 0.5rem; }
.widget-bar-bg {
  width: 100%; height: 6px; background: var(--surface);
  border-radius: 10px; overflow: hidden;
}
.widget-bar {
  height: 100%; background: var(--accent); border-radius: 10px;
  width: 0; transition: width 1.2s var(--ease);
}

/* ─── SECTION BASE ───────────────────────────────────────── */
.section { padding: 100px 2rem; }
.section-sm { padding: 60px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: var(--accent-bg); color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 4px 14px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub {
  font-size: 1rem; color: var(--text-2); line-height: 1.6; max-width: 560px;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ─── PROGRAM SPLIT (Schoolhouse style) ──────────────────── */
.program-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.program-list { padding: 2rem; border-right: 1px solid var(--border); }
.program-item {
  padding: 1.5rem 1rem; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.program-item.active { background: var(--surface); }
.program-item h3 {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700;
  color: var(--text-muted); transition: color 0.2s; margin-bottom: 0.25rem;
}
.program-item.active h3 { color: var(--accent); }
.program-item p { font-size: 0.85rem; color: var(--text-muted); }
.program-item.active p { color: var(--text-2); }
.program-border {
  width: 3px; background: var(--accent);
  border-radius: 3px; margin: 2rem 0;
  display: none;
}
.program-item.active .program-border { display: block; }

.program-detail {
  padding: 2.5rem; background: var(--text); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
[data-theme="dark"] .program-detail { background: var(--surface); color: var(--text); }
.program-detail h2 {
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem;
}
.program-detail p { font-size: 0.95rem; line-height: 1.65; opacity: 0.8; margin-bottom: 1.5rem; }
.program-detail-features { display: flex; flex-direction: column; gap: 0.6rem; }
.program-feature {
  display: flex; align-items: center; gap: 8px; font-size: 0.875rem; opacity: 0.85;
}
.program-feature::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ─── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  background: var(--text); color: #fff;
  padding: 3rem 2rem;
}
[data-theme="dark"] .stats-strip { background: var(--surface); color: var(--text); }
.stats-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: 2.75rem; font-weight: 800; line-height: 1;
  color: var(--accent); margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.85rem; opacity: 0.7; }

/* ─── CARDS & GRIDS ──────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
[data-theme="dark"] .card {
  background: linear-gradient(180deg, #181612 0%, #13120E 100%);
  border-color: rgba(255,255,255,0.07);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 16px 32px -10px rgba(0,0,0,0.4);
}
.card h3 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem;
}
.card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ─── DISCIPLINES WORKBENCH (Home) ───────────────────────── */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 580px) {
  .disciplines-grid {
    grid-template-columns: 1fr;
  }
}

.discipline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.03);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
[data-theme="dark"] .discipline-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%), #14120E;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
}
.discipline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 16px 36px -10px rgba(0,0,0,0.5), 0 0 20px -4px rgba(201,168,76,0.14);
}

.discipline-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(201,168,76,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.discipline-card:hover .discipline-icon-wrap {
  transform: scale(1.08);
  background: rgba(201,168,76,0.22);
}
.discipline-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.discipline-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ─── FLAGSHIP HARDWARE SYSTEMS (Home) ───────────────────── */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 960px) {
  .flagship-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.flagship-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .flagship-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%), #14120E;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.5);
}
.flagship-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 22px 48px -12px rgba(0,0,0,0.6), 0 0 24px -4px rgba(201,168,76,0.16);
}
.flagship-img-wrap {
  width: 100%;
  height: 230px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.flagship-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
  display: block;
}
.flagship-card:hover .flagship-img-wrap img {
  transform: scale(1.05);
}
.flagship-body {
  padding: 1.75rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.flagship-body h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.flagship-body p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ─── TEAMS PREVIEW GRID (Home) ───────────────────────────── */
.teams-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .teams-preview-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ─── HERO SLIDESHOW ───────────────────────────────────────── */
.hero-slideshow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.5);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
[data-theme="dark"] .hero-slideshow {
  background: #14120E;
  border-color: rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.14);
}
.hero-slideshow:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,0.3);
}
.hero-slides-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1.03);
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slideshow-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 13, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
}
.hero-slide-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: color 0.2s, transform 0.2s;
}
.hero-slide-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}
.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.35rem;
}
.hero-slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.hero-slide-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}
.hero-image-caption {
  padding: 0.95rem 1.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-initials {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-bg); border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--font-head);
  font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── WORK TABS ──────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 0.5rem; margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab-btn {
  padding: 0.65rem 1.25rem; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Project card (image top) */
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.project-card:hover { border-color: var(--accent); }
.project-card-img {
  height: 200px; background: var(--surface); overflow: hidden;
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: 1.5rem; }
.project-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0.85rem; }
.pill-tag {
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--radius-pill);
  padding: 2px 10px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.pill-tag.neutral {
  background: var(--surface); color: var(--text-2); border-color: var(--border);
}
.project-card-body h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-card-body p { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; margin-bottom: 1.25rem; }
.project-specs-row {
  display: flex; gap: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem;
  flex-wrap: wrap;
}
.spec { }
.spec-key { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.spec-val { font-size: 0.85rem; font-weight: 700; color: var(--text); }

/* ─── TEAM CARDS ─────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.75rem;
  transition: border-color 0.2s var(--ease);
}
.team-card:hover { border-color: var(--accent); }
.team-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.team-card h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem;
}
.team-card .role-tag {
  font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; margin-bottom: 1rem; }
.team-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-chip {
  background: var(--surface); color: var(--text-2);
  border-radius: var(--radius-pill); padding: 2px 10px; font-size: 0.7rem; font-weight: 600;
}

/* Division cards (teams page) */
.division-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.division-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2.25rem;
  transition: border-color 0.2s var(--ease);
}
.division-card:hover { border-color: var(--accent); }
.division-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.division-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.division-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; margin-bottom: 2px; }
.division-card .sub { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.division-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.55; margin-bottom: 1.25rem; }
.division-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.div-spec-item { background: var(--surface); border-radius: var(--radius-sm); padding: 0.75rem; }
.div-spec-key { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 2px; }
.div-spec-val { font-size: 0.85rem; font-weight: 700; color: var(--text); }

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute; left: 1.25rem; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
  transform: translateX(-50%);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.75rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--accent);
  box-sizing: border-box;
  transform: translate(-50%, 0);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.timeline-item:hover::before {
  background: var(--accent);
  transform: translate(-50%, 0) scale(1.15);
}
.timeline-date {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.25rem;
}
.timeline-item h4 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem;
}
.timeline-item p { font-size: 0.875rem; color: var(--text-2); line-height: 1.55; max-width: 580px; }

/* ─── SPONSORSHIP TIERS ──────────────────────────────────── */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.tier-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.2s var(--ease);
}
.tier-card:hover { border-color: var(--accent); }
.tier-card.featured { border-color: var(--accent); }
.tier-name { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.tier-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--text); }
.tier-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }
.tier-features { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.tier-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text-2); }
.tier-feature::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ─── FORM ───────────────────────────────────────────────── */
.form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; max-width: 560px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-group small { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.amount-radio-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.amount-radio input { display: none; }
.amount-radio label {
  display: block; text-align: center;
  padding: 0.65rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.amount-radio input:checked + label { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text);
}
.faq-q .faq-icon { font-size: 1.25rem; color: var(--text-muted); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease);
}
.faq-a p { padding: 0 0 1.25rem; font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ─── CONTACT GRID ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-channel { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.channel-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.channel-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.channel-val { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.channel-val a { color: var(--accent); }

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--text); color: #fff;
  border-radius: var(--radius-lg); padding: 4rem;
  text-align: center;
}
[data-theme="dark"] .cta-banner { background: var(--surface); color: var(--text); }
.cta-banner h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.75; max-width: 500px; margin: 0 auto 2rem; line-height: 1.6; }

/* ─── SCHOOL STRIP ───────────────────────────────────────── */
.school-strip {
  background: var(--surface); padding: 1.5rem 2rem;
}
.school-strip .container {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center;
}
.school-strip p { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.school-strip span { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--text-2); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg-nav); color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-brand h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.55; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff; margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.875rem; padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding: 140px 2rem 60px; background: var(--bg);
}
.page-header .container { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.05rem; color: var(--text-2); max-width: 560px; line-height: 1.6; }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ─── INTERACTIVE HERO ROCKET ──────────────────────────────── */
.hero-interactive-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.interactive-rocket {
  position: absolute;
  width: 100px;
  height: 100px;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4)) drop-shadow(0 0 3px var(--accent));
}
[data-theme="dark"] .interactive-rocket {
  filter: drop-shadow(0 0 14px rgba(212, 175, 81, 0.5)) drop-shadow(0 0 4px var(--accent));
}
.interactive-rocket svg {
  width: 100%;
  height: 100%;
}
.rocket-flame {
  transform-origin: 50px 84px;
  animation: flame-flicker 0.12s infinite alternate ease-in-out;
}
@keyframes flame-flicker {
  0% { transform: scaleY(0.85); opacity: 0.4; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

/* Exhaust Trail Particles */
.rocket-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .interactive-rocket, .rocket-flame, .rocket-particle {
    animation: none !important;
    transition: none !important;
    display: none !important;
  }
}

/* ─── TIMELINE PROGRESS ROCKET ─────────────────────────────── */
.timeline-rocket {
  position: absolute;
  left: 1.25rem;
  width: 14px;
  height: 14px;
  top: 8px;
  transform: translateY(0) translate(-50%, 0);
  pointer-events: none;
  z-index: 5;
  will-change: transform;
}
.timeline-rocket svg {
  width: 100%;
  height: 100%;
}

/* ─── DIVISION CARD MICRO-ANIMATIONS ───────────────────────── */
.division-card {
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.division-card:hover {
  transform: translateY(-2px);
}
.division-card .division-icon svg {
  transition: transform 0.3s var(--ease);
}
.division-card.div-rocketry:hover .division-icon svg {
  transform: translateY(-4px) rotate(-5deg);
}
.division-card.div-electronics:hover .division-icon svg {
  transform: scale(1.15);
}
.division-card.div-mechanical:hover .division-icon svg {
  transform: rotate(45deg);
}
.division-card.div-software:hover .division-icon svg {
  transform: scaleX(1.15);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { font-size: 2.5rem; }
  .program-split { grid-template-columns: 1fr; }
  .program-list { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 1.25rem; }
  .hero { padding: 100px 1.25rem 60px; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .tier-grid, .cards-grid, .team-grid, .division-grid { grid-template-columns: 1fr; }
  .stats-strip .container { flex-direction: column; align-items: center; }
}

/* ─── HERO PADDING FIX (sticky header) ─────────────────────── */
.hero { padding-top: 100px; }
.page-header { padding-top: 80px; }

/* ─── TRYOUTS PAGE ───────────────────────────────────────────── */
.tryouts-hero {
  background: var(--bg-nav); color: #fff;
  padding: 80px 2rem 70px;
}
.tryouts-hero .container { max-width: 760px; }
.tryouts-hero .section-label { background: rgba(201,168,76,0.20); color: var(--accent); border: 1px solid var(--accent); }
.tryouts-hero h1 { font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.tryouts-hero p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.75); max-width: 600px; }

.info-box {
  background: var(--bg-card); border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.info-box-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent);
}
.classroom-code {
  font-family: 'Orbitron', 'Courier New', monospace; font-size: 2rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--text);
  text-shadow: 0 0 14px rgba(201,168,76,0.35);
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem; display: inline-block;
  border: 1px solid var(--border);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent); background: var(--accent-bg);
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(201,168,76,0.20); }
.copy-btn.copied { color: var(--text-muted); border-color: var(--border); background: var(--surface); }

.form-cta-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.form-cta-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.form-cta-card p { font-size: 0.875rem; color: var(--text-2); }

/* ─── TRYOUTS PAGE ENHANCEMENTS ──────────────────────────────── */
.deadline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.deadline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}
.deadline-item.urgent {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.deadline-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.deadline-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.deadline-date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.notice-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.notice-box.warning {
  border-left-color: #d97706;
  background: rgba(217, 119, 6, 0.08);
}
.notice-box.danger {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.notice-box strong {
  color: var(--text);
}

.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .membership-grid { grid-template-columns: 1fr; }
}
.membership-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s var(--ease);
}
.membership-card:hover {
  border-color: var(--accent);
}
.membership-card.highlight {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 4px 20px var(--accent-bg);
}
.membership-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}
.badge-general {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-comp {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.membership-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.membership-features {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
}
.membership-features li {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.membership-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.tryout-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-sm);
}
.tryout-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.tryout-table th {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.tryout-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
}
.tryout-table tr:last-child td {
  border-bottom: none;
}
.tryout-table tr:hover td {
  background: var(--surface);
}
.team-link {
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.team-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.team-note {
  display: inline-block;
  font-size: 0.75rem;
  color: #d97706;
  font-weight: 600;
  margin-top: 0.25rem;
  background: rgba(217, 119, 6, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
}

.assignment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.assignment-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.assignment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.assignment-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.assignment-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.35rem;
}
.assignment-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}
.assignment-detail-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.assignment-detail-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}
.assignment-detail-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
  font-weight: bold;
}

/* ─── ASSIGNMENT ACCORDION ─────────────────────────────────── */
.assignment-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.assignment-accordion:hover {
  border-color: var(--accent);
}
.assignment-accordion[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.assignment-accordion summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  list-style: none;
  background: var(--bg-card);
  transition: background 0.15s;
}
.assignment-accordion summary::-webkit-details-marker {
  display: none;
}
.assignment-accordion summary:hover {
  background: var(--surface);
}
.assignment-summary-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.assignment-summary-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.assignment-summary-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.assignment-accordion[open] .assignment-summary-icon {
  transform: rotate(45deg);
  background: var(--accent-bg);
}
.assignment-accordion-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.contact-person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-person-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.contact-person-email {
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

/* ─── BUILD GALLERY GRID ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
  display: block;
}

.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.gallery-caption h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.gallery-caption p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gallery-item img {
    height: 200px;
  }
}
/* ─── CONTENT UPDATE (Oct 2026): photos, stage labels, split layouts ─── */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.split-grid.align-start { align-items: start; }
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
.prose p { color: var(--text-2); line-height: 1.7; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a:not(.btn) { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.photo-figure {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.photo-figure img { width: 100%; height: auto; display: block; }
.photo-figure.fixed img { height: 340px; object-fit: cover; }
.photo-figure figcaption,
.gallery-caption {
  padding: 0.85rem 1.15rem; font-size: 0.82rem; line-height: 1.5;
  color: var(--text-2); background: var(--surface); border-top: 1px solid var(--border);
}

.project-card-img.contain img { object-fit: contain; background: #fff; }
.project-card-img.top img { object-position: center top; }
.project-card-body .card-link {
  color: var(--accent); font-weight: 600; font-size: 0.85rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.project-detail { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; margin: -0.5rem 0 1rem; }
.project-detail li { padding-left: 1rem; position: relative; margin-bottom: 0.3rem; }
.project-detail li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }

.highlights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 860px) { .highlights-grid { grid-template-columns: 1fr; } }
.highlight-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-md); padding: 1.25rem 1.4rem;
}
.highlight-item .h-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 0.2rem 0 0.35rem; color: var(--text); }
.highlight-item p { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }

.contact-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-actions .btn { justify-content: center; width: 100%; }
.contact-actions small { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.comp-table td .status-note { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 500; white-space: normal; margin-top: 2px; }
.skill-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.skill-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.skill-item h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.skill-item h3 span { color: var(--accent); margin-right: 0.35rem; }
.skill-item p { font-size: 0.83rem; color: var(--text-2); line-height: 1.5; }
.deadline-item.closed { opacity: 0.7; }
.assignment-h { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
@media (max-width: 640px) {
  .tab-bar { gap: 0.15rem; overflow-x: auto; scrollbar-width: none; }
  .tab-btn { padding: 0.6rem 0.7rem; font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 640px) {
  .logo { font-size: 1rem; white-space: nowrap; gap: 8px; }
  .btn-nav { white-space: nowrap; padding: 0.45rem 0.95rem; font-size: 0.82rem; }
  .nav-actions { gap: 0.5rem; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0 1rem; gap: 0.75rem; }
}
@media (max-width: 640px) {
  #leadership .team-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  #leadership .team-card { padding: 1.1rem; }
  #leadership .team-card h3 { font-size: 0.95rem; }
}
@media (max-width: 640px) {
  .comp-table thead { display: none; }
  .comp-table, .comp-table tbody, .comp-table tr, .comp-table td { display: block; width: 100%; }
  .comp-table tr { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .comp-table tr:last-child { border-bottom: none; }
  .comp-table td { border-bottom: none !important; padding: 0.2rem 1rem !important; white-space: normal !important; }
  .comp-table td:nth-child(3)::before { content: 'Skills: '; font-weight: 700; color: var(--text); }
  .comp-table td:nth-child(4)::before { content: 'Past results: '; font-weight: 700; color: var(--text); }
}
@media (max-width: 640px) {
  .announce-banner { padding: 0.55rem 2.75rem 0.55rem 1rem; font-size: 0.78rem; gap: 0.6rem; flex-wrap: wrap; }
  .announce-banner-close { right: 0.6rem; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .logo, .btn-nav { white-space: nowrap; }
}
@media (max-width: 640px) {
  .classroom-code { font-size: 1.5rem; padding: 0.65rem 1.1rem; }
}

/* ─── CLUB PAGE: BOARD ───────────────────────────────────── */
.board-officers, .board-members {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 900px; margin: 0 auto;
}
.board-officers { margin-bottom: 1.25rem; }
.board-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem 1.25rem; text-align: center;
}
.board-card .team-initials { margin: 0 auto 0.9rem; }
.board-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.board-role {
  margin-top: 0.3rem; font-size: 0.75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.05em;
}
@media (max-width: 560px) {
  .board-officers, .board-members { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .board-officers .board-card:first-child { grid-column: 1 / -1; }
  .board-card { padding: 1.1rem 0.75rem; }
  .board-card h3 { font-size: 0.95rem; }
}

/* Competition table: name links to the team's section on the Teams page */
.comp-team-link { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.comp-team-link:hover { color: var(--accent); }

/* ─── TEAMS PAGE ─────────────────────────────────────────── */
/* Room for the sticky header when a #team link scrolls to a section */
.team-panel { scroll-margin-top: 96px; }
.team-panel + .team-panel { margin-top: 3.5rem; }
.team-panel[hidden] { display: none; }
.team-panel-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
.team-panel-solo { max-width: 760px; }
.team-status { color: var(--accent) !important; font-weight: 600; }
.team-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; margin: 1.5rem 0; }
.team-fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.team-fact dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.2rem; }
.team-fact dd { font-size: 0.92rem; color: var(--text); }
.team-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.team-links .btn { padding: 0.6rem 1.2rem; font-size: 0.88rem; }
@media (max-width: 860px) {
  .team-panel-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ─── HEADER: TEAMS DROPDOWN ─────────────────────────────── */
.nav-dropdown { position: relative; display: flex; align-items: center; gap: 0.15rem; }
.nav-dropdown-toggle {
  color: var(--nav-link); display: flex; align-items: center; padding: 4px; border-radius: 4px;
  transition: color 0.2s, transform 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--nav-text); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: -1rem; z-index: 150;
  min-width: 300px; padding: 0.45rem;
  display: flex; flex-direction: column;
  background: var(--bg-nav); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
/* Invisible bridge so the menu stays open while the pointer moves down to it */
.nav-dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { transform: rotate(180deg); }
.nav-links .nav-dropdown-menu a {
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; white-space: nowrap;
}
.nav-links .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--nav-text); }
.nav-links .nav-dropdown-menu a.active { background: rgba(255,255,255,0.06); color: var(--accent); }

/* Mobile menu: team links nested under Teams */
.mobile-nav { overflow-y: auto; }
.mobile-subnav { display: flex; flex-direction: column; margin-top: -1rem; padding-left: 1rem; border-left: 2px solid rgba(201,168,76,0.4); }
.mobile-nav .mobile-subnav a { font-size: 0.98rem; font-weight: 500; padding: 0.45rem 0; border-bottom: none; }
.mobile-nav .mobile-subnav a.active { color: var(--accent); }
/* Eight nav items plus the Teams arrow need more room; switch to the menu button a bit earlier */
.logo { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Teams page: member names */
.team-members { margin: 1.5rem 0 0.5rem; }
.team-members h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.member-list { columns: 2; column-gap: 1.5rem; }
.member-list li { break-inside: avoid; padding: 0.3rem 0 0.3rem 1rem; position: relative; color: var(--text-2); }
.member-list li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.team-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.team-split .member-list { columns: 1; }
.team-count { color: var(--text-muted); font-weight: 600; font-size: 0.6em; white-space: nowrap; }
@media (max-width: 560px) { .member-list { columns: 1; } .team-split { grid-template-columns: 1fr; } }

/* ─── CLUB PAGE: JOIN ────────────────────────────────────── */
section[id], #join { scroll-margin-top: 80px; }
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.join-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
}
.join-step h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.join-step p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.join-step p a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.join-step-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0A0A0A; font-family: var(--font-head); font-weight: 800; font-size: 0.9rem;
}
.join-code-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.25rem 0 0.4rem; }
.join-step .classroom-code { font-size: 1.45rem; padding: 0.5rem 0.9rem; }
.join-step .btn { padding: 0.65rem 1.3rem; font-size: 0.9rem; }
.join-dates li { font-weight: 700; color: var(--text); padding: 0.15rem 0; }
.join-subhead { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin: 2.75rem 0 1rem; }
@media (max-width: 860px) { .join-steps { grid-template-columns: 1fr; } }
/* The chevron's padding and icon whitespace made the gap after "Teams" look wider than the rest */
.nav-dropdown-toggle { padding: 4px 0 4px 2px; margin-right: -5px; }
/* ARC build photo: keep the box the same shape as the photo so the whole rocket always shows */
.flagship-img-wrap.photo-full, .project-card-img.photo-full { height: auto; aspect-ratio: 480 / 308; }
.board-teams { margin-top: 0.35rem; font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }


/* ════════════════════════════════════════════════════════════
   LAUNCH-DAY ATMOSPHERE
   The page sits on a fixed sky: night at the top, a gold dawn
   rising behind the footer's launch field as you scroll.
   ════════════════════════════════════════════════════════════ */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky > div { position: absolute; inset: 0; }
.sky__night {
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(201,168,76,0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 4%, rgba(140,150,190,0.06), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.sky__dawn {
  background:
    radial-gradient(ellipse 110% 60% at 50% 104%, var(--dawn), var(--dawn-2) 42%, transparent 72%);
  opacity: clamp(0, calc((var(--journey) - 0.25) * 1.6), 1);
  transform: translateY(calc((1 - var(--journey)) * 12vh));
}
.sky__stars {
  opacity: calc(var(--star-alpha) * clamp(0, calc(1.15 - var(--journey) * 1.4), 1));
  transform: translateY(calc(var(--journey) * -5vh));
}
.sky__stars span {
  position: absolute; border-radius: 50%; background: #F5F0E8;
  opacity: var(--o, 0.6);
  animation: twinkle var(--d, 5s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: var(--o, 0.6); } 50% { opacity: calc(var(--o, 0.6) * 0.25); } }

/* Let the sky show through: page sections are transparent, alternating bands are a light wash */
.page-header { background: transparent; }
.section-band { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .hero-bg-dots { display: none; }

/* Footer launch field */
footer { position: relative; padding-top: 0; background: transparent; }
footer .footer-inner, footer .footer-bottom { position: relative; }
footer { --hz-h: clamp(96px, 10.42vw, 230px); }
footer::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--hz-h) - 2px); bottom: 0; background: var(--bg-nav); z-index: -1; }
.horizon { height: var(--hz-h); margin: 0 -2rem 3.5rem; color: var(--accent); background: radial-gradient(ellipse 55% 100% at 50% 100%, rgba(212,175,81,0.20), transparent 70%); }
.horizon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.horizon .hz-far { fill: var(--accent); opacity: 0.12; }
.horizon .hz-ground { fill: var(--bg-nav); }
.horizon .hz-shape * { fill: var(--bg-nav); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.horizon .hz-line, .horizon .hz-grass { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; opacity: 0.8; vector-effect: non-scaling-stroke; }
.horizon .hz-grass { opacity: 0.45; }
.horizon .hz-dash { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 6; opacity: 0.7; animation: dash-rise 3s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes dash-rise { to { stroke-dashoffset: -18; } }
@media (max-width: 640px) { .horizon { margin-bottom: 2.5rem; } }

/* ─── Display type ───────────────────────────────────────── */
h1, h2, h3, .hero-title, .section-title, .logo, .cta-banner h2 { font-family: var(--font-head); }
.hero-title { font-size: clamp(2.6rem, 4.5vw, 4.15rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.section-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.page-header h1, .tryouts-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem) !important; line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; }

/* Small numbered label above a heading: "01 / What we do" */
.eyebrow {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem;
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }

/* Heading on the left, a short paragraph on the right */
.split-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 3rem; }
.split-head .section-title { margin-bottom: 0; }
.split-head p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 470px; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

/* ─── Stats row ─────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; padding: 1.75rem 1.5rem; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat dd { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--text); }
.stat dd span { color: var(--accent); }
.stat dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 760px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.25rem 1rem; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 761px) and (max-width: 1100px) { .stat { padding: 1.5rem 1rem; } }

/* ─── Nav: links sit in a thin pill ─────────────────────── */
.nav-links {
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-pill);
  padding: 0.5rem 1.4rem; gap: 1.45rem; background: rgba(255,255,255,0.025);
}
.nav-links a.active, .nav-links .nav-dropdown-link.active { color: var(--accent); }

/* ─── Announcement: a quiet strip instead of a gold slab ── */
.announce-banner {
  background: var(--bg-nav); color: rgba(245,240,232,0.82);
  border-bottom: 1px solid rgba(212,175,81,0.28); font-weight: 500;
}
.announce-banner a { color: var(--accent); }
.announce-banner-close { background: rgba(255,255,255,0.08); color: rgba(245,240,232,0.8); }
.announce-banner-close:hover { background: rgba(255,255,255,0.16); }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fcf7f; box-shadow: 0 0 0 0 rgba(111,207,127,0.6); animation: pulse-dot 2.2s ease-out infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(111,207,127,0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(111,207,127,0); } }

@media (prefers-reduced-motion: reduce) {
  .sky__stars span, .horizon .hz-dash, .announce-dot, .hero-scene .trajectory, .page-art svg { animation: none !important; }
}

/* ─── Home hero scene: hand-drawn orbit, trajectory, planet, moon ─── */
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; color: var(--accent); pointer-events: none; }
.hero-scene * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-scene .orbit { opacity: 0.3; }
.hero-scene .orbit.faint { opacity: 0.16; stroke-dasharray: 2 9; }
.hero-scene .node { fill: currentColor; stroke: none; opacity: 0.75; }
.hero-scene .trajectory { stroke-dasharray: 5 10; opacity: 0.4; animation: dash-rise 2.4s linear infinite; }
.hero-scene .planet circle { fill: var(--sky-top); opacity: 0.95; }
.hero-scene .planet, .hero-scene .moon { opacity: 0.75; }
.hero-scene .band-line { opacity: 0.6; }
.hero-scene .plus { opacity: 0.5; }
.hero .eyebrow { margin-bottom: 1.4rem; }
@media (max-width: 900px) {
  .hero-scene .orbit, .hero-scene .orbit.faint, .hero-scene .node { opacity: 0.14; }
  .hero-scene .planet, .hero-scene .moon, .hero-scene .plus { display: none; }
}

/* ─── Page headers: title on the left, a small line drawing on the right ─── */
.page-header .container, .tryouts-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; }
.tryouts-hero .container { max-width: 1100px; }
.page-header { padding-bottom: 40px; }
.page-header-text > p:not(.eyebrow) { max-width: 600px; }
.page-art { width: clamp(170px, 19vw, 240px); color: var(--accent); margin-bottom: -10px; }
.page-art svg { display: block; width: 100%; height: auto; overflow: visible; animation: drift 7s ease-in-out infinite; }
.page-art svg * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.page-art .solid { fill: var(--sky-top); }
.tryouts-hero .page-art .solid { fill: var(--bg-nav); }
.page-art .dash { stroke-dasharray: 4 7; opacity: 0.75; }
.page-art .dot { fill: currentColor; stroke: none; }
.page-art .plus { opacity: 0.6; }
.page-art text { fill: currentColor; stroke: none; font: 700 15px var(--font-head); }
@keyframes drift { 50% { transform: translateY(-6px) rotate(-0.6deg); } }
@media (max-width: 700px) {
  .page-header .container, .tryouts-hero .container { grid-template-columns: 1fr; }
  .page-art { display: none; }
}
[data-theme="dark"] .horizon { background: radial-gradient(ellipse 55% 100% at 50% 100%, rgba(212,175,81,0.30), transparent 70%); }
@media (max-width: 640px) { .announce-dot { display: none; } }

/* ─── Photo viewer ──────────────────────────────────────── */
img.zoomable { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 34 34'%3E%3Ccircle cx='14' cy='14' r='9.5' fill='rgba(10,10,10,0.55)' stroke='%230A0A0A' stroke-width='4.5'/%3E%3Cpath d='M21 21 L30 30' stroke='%230A0A0A' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='14' r='9.5' fill='none' stroke='%23D4AF51' stroke-width='2.2'/%3E%3Cpath d='M21 21 L30 30' stroke='%23D4AF51' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M14 9.5 V18.5 M9.5 14 H18.5' stroke='%23F5F0E8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 7 7, zoom-in; }
img.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 3.5rem 4.5rem; background: rgba(6, 6, 7, 0.97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: lb-in 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
body.lightbox-open { overflow: hidden; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.lightbox-img { max-width: min(1400px, 100%); max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-md); background: #111; }
.lightbox-caption { display: flex; gap: 1.25rem; align-items: baseline; justify-content: center; flex-wrap: wrap; color: rgba(245,240,232,0.85); font-size: 0.9rem; text-align: center; max-width: 760px; }
.lightbox-count { color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; white-space: nowrap; }
.lightbox-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: #F5F0E8; font-size: 1.9rem; line-height: 1; transition: background 0.2s, color 0.2s;
}
.lightbox-btn:hover { background: rgba(212,175,81,0.22); color: #fff; }
.lightbox-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.6rem; }
@media (max-width: 640px) {
  .lightbox { padding: 3.75rem 0.75rem 1.25rem; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 1rem; width: 42px; height: 42px; }
  .lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
  .lightbox-img { max-height: calc(100vh - 11rem); }
  .lightbox-caption { padding: 0 3.5rem; }
}

/* ─── Club badge ────────────────────────────────────────── */
.hero-badge { width: 96px; height: 96px; margin-bottom: 1.25rem; filter: drop-shadow(0 6px 18px rgba(212,175,81,0.25)); }
.footer-badge { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.92; }
@media (max-width: 640px) { .hero-badge { width: 72px; height: 72px; } }

/* ─── Team photo galleries ──────────────────────────────── */
.photo-strip { margin-top: 2.5rem; }
.photo-strip h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.photo-grid img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.photo-grid img:hover { transform: translateY(-3px); border-color: var(--accent); }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Zoom affordance: magnifier button on clickable photos ─── */
.zoom-wrap { position: relative; display: block; }
.project-card-img > .zoom-wrap, .flagship-img-wrap > .zoom-wrap { height: 100%; }
.zoom-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: rgba(10,10,10,0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(212,175,81,0.6); color: #D4AF51;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.6);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.zoom-badge svg { width: 18px; height: 18px; }
.photo-grid .zoom-badge { top: 7px; right: 7px; width: 28px; height: 28px; }
.photo-grid .zoom-badge svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .zoom-badge { opacity: 0; transform: scale(0.8); }
  .zoom-wrap:hover .zoom-badge, .zoom-wrap:focus-within .zoom-badge { opacity: 1; transform: scale(1); }
}
.lightbox-extra { display: none !important; }

/* Hero: balance the space above and below the content (a touch less on top so it reads as centered) */
.hero { padding-top: 56px; padding-bottom: 80px; }
@media (max-width: 640px) { .hero { padding-top: 40px; padding-bottom: 56px; } }

/* Footnote for results earned as the nonprofit */
.fn { color: var(--accent); font-weight: 700; margin-left: 1px; }
.footnote { margin-top: 1rem; font-size: 0.82rem; line-height: 1.55; color: var(--text-muted); }
.footnote a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-left: 0.25rem; }
.stat dd .fn { font-size: 0.42em; vertical-align: top; position: relative; top: 0.2em; margin-left: 2px; }

/* ─── Team rosters by season ────────────────────────────── */
.roster { margin: 1.5rem 0 0.75rem; padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--band); }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.roster-head h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin: 0; }
.roster-season { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.roster-tabs { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-card); }
.roster-tab { padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; color: var(--text-muted); transition: background 0.2s, color 0.2s; }
.roster-tab:hover { color: var(--text); }
.roster-tab.active { background: var(--accent); color: #0A0A0A; }
.roster-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.roster-year[hidden] { display: none; }
.roster-note { font-size: 0.86rem; color: var(--text-2); line-height: 1.55; margin-bottom: 0.9rem !important; }
.roster-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.roster-groups.single { grid-template-columns: 1fr; }
.roster-groups.single .member-list { columns: 2; }
.roster-group h4 { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text); }
.roster-sub { font-size: 0.8rem; color: var(--accent) !important; font-weight: 600; margin-bottom: 0.4rem !important; }
.roster .member-list { columns: 1; }
.roster .member-list li { padding: 0.22rem 0 0.22rem 1rem; font-size: 0.92rem; }
@media (max-width: 560px) {
  .roster-groups { grid-template-columns: 1fr; }
  .roster-groups.single .member-list { columns: 1; }
}
