/* ===========================================================
   CCNY Racing — Baja SAE  •  shared stylesheet
   Brand: deep purple + violet, dark "track" backdrop
   =========================================================== */

:root {
  --purple-900: #1d0f33;
  --purple-800: #2a1352;
  --purple-700: #3d1d72;
  --purple-600: #51268f;
  --purple-500: #6b34b8;
  --violet-400: #9a63e0;
  --violet-300: #b794f0;
  --violet-200: #d6c2f5;

  --ink: #15091f;
  --paper: #ffffff;
  --cloud: #f5f2fa;
  --mist: #ece6f6;

  --text: #221534;
  --text-soft: #5b4d70;
  --text-invert: #f4eefc;
  --text-invert-soft: #c8b9e0;

  --gold: #f4b41a;
  --line: rgba(123, 92, 184, 0.22);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(29, 15, 51, 0.10);
  --shadow-md: 0 14px 40px rgba(29, 15, 51, 0.16);
  --shadow-lg: 0 30px 70px rgba(29, 15, 51, 0.28);

  --maxw: 1180px;
  --nav-h: 74px;

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Oswald", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--purple-600); text-decoration: none; }
a:hover { color: var(--purple-500); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--purple-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-3px);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--dark {
  background: radial-gradient(120% 130% at 80% 0%, var(--purple-700) 0%, var(--purple-900) 60%);
  color: var(--text-invert);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--violet-300); }
.section--mist { background: var(--cloud); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 1.08rem; }
.section--dark .section-head p { color: var(--text-invert-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--purple-500), var(--violet-400));
  color: #fff;
  box-shadow: 0 10px 26px rgba(107, 52, 184, 0.42);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(107, 52, 184, 0.55); }
.btn--gold {
  background: var(--gold);
  color: #2a1300;
  box-shadow: 0 10px 26px rgba(244, 180, 26, 0.4);
}
.btn--gold:hover { color: #2a1300; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--outline {
  background: transparent;
  border-color: var(--purple-500);
  color: var(--purple-600);
}
.btn--outline:hover { background: var(--purple-500); color: #fff; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(21, 9, 31, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.brand-text { font-family: var(--display); font-weight: 700; line-height: 1; color: #fff; }
.nav.scrolled .brand-text { color: var(--ink); }
.brand-text strong { display: block; font-size: 1.12rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand-text span { font-size: 0.66rem; letter-spacing: 0.32em; color: var(--violet-300); }
.nav.scrolled .brand-text span { color: var(--purple-500); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--text-invert);
  padding: 8px 11px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--violet-300); background: rgba(255,255,255,0.08); }
.nav.scrolled .nav-links a:hover { color: var(--purple-600); background: var(--mist); }
.nav-links a.active { color: #fff; background: rgba(154, 99, 224, 0.32); }
.nav.scrolled .nav-links a.active { color: var(--purple-600); background: var(--mist); }
.nav-links .btn { color: #fff; padding: 9px 16px; margin-left: 6px; }

/* Nav dropdown */
.has-dropdown { position: relative; }
.nav-drop-toggle {
  font-family: var(--display); font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
  font-size: 0.82rem; white-space: nowrap; background: none; border: none; cursor: pointer;
  color: var(--text-invert); padding: 8px 11px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px; transition: color .15s, background .15s;
}
.nav.scrolled .nav-drop-toggle { color: var(--text); }
.nav-drop-toggle:hover { color: var(--violet-300); background: rgba(255,255,255,0.08); }
.nav.scrolled .nav-drop-toggle:hover { color: var(--purple-600); background: var(--mist); }
.nav-drop-toggle.active { color: #fff; background: rgba(154, 99, 224, 0.32); }
.nav.scrolled .nav-drop-toggle.active { color: var(--purple-600); background: var(--mist); }
.nav-drop-toggle svg { width: 11px; height: 11px; transition: transform .2s; }
.has-dropdown:hover .nav-drop-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: rgba(255,255,255,0.99); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: 10px 13px; border-radius: 7px; color: var(--text) !important;
  white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.dropdown a:hover { background: var(--mist); color: var(--purple-600) !important; }
.dropdown a.active { background: var(--mist); color: var(--purple-600) !important; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: #fff; border-radius: 2px; transition: .3s;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(21,9,31,0.92) 0%, rgba(35,16,66,0.78) 36%, rgba(29,15,51,0.32) 70%, rgba(29,15,51,0.10) 100%),
    linear-gradient(0deg, rgba(21,9,31,0.72), rgba(21,9,31,0) 45%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--violet-300); }
.hero__lead { margin-top: 22px; font-size: 1.2rem; color: var(--text-invert-soft); max-width: 600px; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-invert-soft); font-size: 0.74rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--violet-300), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100%{opacity:.3; transform: scaleY(.6);} 50%{opacity:1; transform: scaleY(1);} }

/* page hero (shorter, for inner pages) */
.pagehero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  color: #fff;
  overflow: hidden;
}
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(21,9,31,0.93) 0%, rgba(42,19,82,0.8) 55%, rgba(61,29,114,0.55) 100%);
}
.pagehero .container { position: relative; z-index: 2; }
.pagehero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
.pagehero p { margin-top: 16px; max-width: 620px; color: var(--text-invert-soft); font-size: 1.12rem; }
.crumbs { font-size: 0.82rem; letter-spacing: 0.05em; color: var(--violet-300); margin-bottom: 16px; text-transform: uppercase; }
.crumbs a { color: var(--violet-300); }
.crumbs a:hover { color: #fff; }

/* ---------- Photo marquee ---------- */
.marquee-wrap { background: var(--purple-900); padding: 22px 0; }
.marquee {
  overflow: hidden; position: relative; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee.dragging { cursor: grabbing; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 55s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee.dragging .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 230px; width: auto; border-radius: 12px; object-fit: cover;
  filter: saturate(1.05); pointer-events: none; user-select: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 760px) { .marquee__track img { height: 160px; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tab-btn, .filter-btn {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.92rem; padding: 12px 26px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--text-soft); border: 1.5px solid var(--line);
  transition: all .18s ease;
}
.tab-btn:hover, .filter-btn:hover { color: var(--purple-600); border-color: var(--violet-400); }
.tab-btn.active, .filter-btn.active {
  background: linear-gradient(135deg, var(--purple-600), var(--violet-400));
  color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(107,52,184,0.32);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabfade .45s ease both; }
@keyframes tabfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Event schedule ---------- */
.sched-note {
  max-width: 860px; margin: 0 auto 36px; text-align: center;
  background: #fff4d6; border: 1px solid #f0d894; color: #7a5600;
  padding: 14px 22px; border-radius: var(--radius-sm); font-size: 0.95rem;
}
.event-list { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.event {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event__date {
  text-align: center; border-right: 1px solid var(--line); padding-right: 20px;
  font-family: var(--display);
}
.event__date .m { color: var(--purple-500); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; }
.event__date .d { font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--ink); }
.event__date .y { font-size: 0.78rem; color: var(--text-soft); }
.event__info h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 3px; }
.event__info p { color: var(--text-soft); font-size: 0.92rem; }
.event__meta { margin-top: 8px; font-size: 0.88rem; }
.event__meta strong { color: var(--purple-600); }
.event--featured { grid-template-columns: 124px 1fr auto; border-color: var(--violet-400); box-shadow: 0 14px 40px rgba(107,52,184,0.16); }
.event--featured .event__date .d { font-size: 1.55rem; letter-spacing: -0.01em; }
.event--featured .event__info h3 { font-size: 1.45rem; }
.event__info .loc { display: inline-flex; align-items: center; gap: 6px; }
.event__info .loc svg { width: 14px; height: 14px; color: var(--purple-500); }
.badge {
  font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.badge--up { background: var(--mist); color: var(--purple-600); }
.badge--tba { background: #fff4d6; color: #9a6b00; border: 1px solid #f0d894; }
.badge--done { background: #e9f9ee; color: #1d6b39; }
@media (max-width: 620px) {
  .event { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .event__date { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: flex; gap: 8px; justify-content: center; align-items: baseline; }
}

/* ---------- Alumni ---------- */
.alum-banner {
  max-width: 820px; margin: 0 auto 40px; text-align: center;
  background: var(--mist); border: 1px dashed var(--violet-400); color: var(--purple-600);
  padding: 14px 22px; border-radius: var(--radius-sm); font-size: 0.95rem;
}
.alum-card { text-align: center; }
.alum-card .avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  font-size: 1.7rem; color: #fff; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--purple-600), var(--violet-400));
  box-shadow: 0 8px 20px rgba(107,52,184,0.3);
}
.alum-card h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 2px; }
.alum-card .year { font-family: var(--display); color: var(--purple-500); font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.alum-card .now { color: var(--text); font-weight: 600; font-size: 0.96rem; }
.alum-card .now span { display: block; color: var(--text-soft); font-weight: 400; font-size: 0.9rem; }
.alum-card blockquote { margin-top: 14px; font-style: italic; color: var(--text-soft); font-size: 0.92rem; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Masonry gallery + lightbox ---------- */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.gallery-masonry { column-count: 3; column-gap: 16px; }
.g-item {
  position: relative; display: block; width: 100%; margin: 0 0 16px;
  break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden;
  cursor: zoom-in; box-shadow: var(--shadow-sm); background: var(--mist);
}
.g-item img { width: 100%; display: block; transition: transform .55s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px; color: #fff; font-size: 0.9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(21,9,31,0.85));
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.g-item:hover .g-item__cap { opacity: 1; transform: none; }
.g-item__tag {
  position: absolute; top: 12px; left: 12px; font-family: var(--display);
  font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(21,9,31,0.7); color: var(--violet-200); padding: 4px 10px;
  border-radius: 999px; backdrop-filter: blur(4px);
}
.g-item.hide { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(13, 5, 22, 0.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__cap {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: var(--text-invert-soft); font-size: 0.95rem; padding: 0 20px;
}
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .18s, transform .18s;
}
.lightbox__btn:hover { background: var(--purple-500); transform: scale(1.06); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 960px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 560px) {
  .gallery-masonry { column-count: 1; }
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .lightbox { padding: 16px; }
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--violet-300);
  line-height: 1;
}
.section:not(.section--dark) .stat .num { color: var(--purple-600); }
.stat .label {
  margin-top: 8px;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-invert-soft);
}
.section:not(.section--dark) .stat .label { color: var(--text-soft); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--violet-300); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple-600), var(--violet-400));
  color: #fff; margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; margin-bottom: 8px; text-transform: uppercase; }
.card p { color: var(--text-soft); font-size: 0.98rem; }

/* split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split__media.round img { border-radius: 24px; }
.split__body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 18px; }
.split__body p { color: var(--text-soft); margin-bottom: 16px; }
.section--dark .split__body p { color: var(--text-invert-soft); }
.split__body .btn { margin-top: 10px; }

/* feature list with check */
.flist { list-style: none; margin-top: 8px; }
.flist li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text-soft); }
.section--dark .flist li { color: var(--text-invert-soft); }
.flist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1300' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* spec grid */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spec {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.section:not(.section--dark) .spec { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-sm); }
.spec .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-300); margin-bottom: 6px; }
.section:not(.section--dark) .spec .k { color: var(--purple-500); }
.spec .v { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.section:not(.section--dark) .spec .v { color: var(--ink); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--violet-400), var(--purple-700));
}
.tl-item { position: relative; padding: 0 0 42px 56px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 6px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 4px solid var(--purple-900);
  box-shadow: 0 0 0 3px rgba(244,180,26,0.3);
}
.tl-item .yr { font-family: var(--display); font-weight: 700; color: var(--violet-300); font-size: 1.05rem; letter-spacing: 0.05em; }
.tl-item h3 { font-size: 1.35rem; margin: 4px 0 8px; text-transform: uppercase; color: #fff; }
.tl-item p { color: var(--text-invert-soft); }

/* ---------- Sponsor wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logo-wall .cell {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  height: 120px;
  display: grid; place-items: center;
  padding: 22px;
  transition: transform .2s, box-shadow .2s;
}
.logo-wall .cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.logo-wall .cell img { max-height: 64px; width: auto; object-fit: contain; }

/* ---------- Sponsorship tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tier__range { font-family: var(--display); font-size: 1.05rem; color: var(--text-soft); margin: 2px 0 18px; }
.tier__bar { height: 5px; border-radius: 4px; margin-bottom: 20px; }
.tier ul { list-style: none; display: grid; gap: 11px; }
.tier ul li { position: relative; padding-left: 26px; font-size: 0.93rem; color: var(--text-soft); }
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b34b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.tier ul li.off { color: #b9aecb; }
.tier ul li.off::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9bedd' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E");
}
.tier--bronze .tier__name { color: #a9651f; }
.tier--bronze .tier__bar { background: linear-gradient(90deg,#c98a3e,#8a5316); }
.tier--silver .tier__name { color: #6f7785; }
.tier--silver .tier__bar { background: linear-gradient(90deg,#b8c0cc,#7c8593); }
.tier--gold .tier__name { color: #c89417; }
.tier--gold .tier__bar { background: linear-gradient(90deg,#f4c948,#caa01a); }
.tier--platinum { border-color: var(--violet-400); box-shadow: 0 14px 40px rgba(107,52,184,0.2); }
.tier--platinum .tier__name { color: var(--purple-600); }
.tier--platinum .tier__bar { background: linear-gradient(90deg,#9a63e0,#51268f); }
.tier__flag {
  align-self: flex-start; font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; background: var(--purple-600); color: #fff;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Goal / progress ---------- */
.goal-card {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  border-radius: var(--radius);
  padding: 44px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.goal-card h3 { color: #fff; font-size: 1.8rem; text-transform: uppercase; }
.progress { height: 16px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; margin: 22px 0 12px; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #ffd76a); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.goal-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-invert-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-600), var(--violet-400));
  display: grid; place-items: center; color: #fff;
}
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 1.05rem; text-transform: uppercase; }
.contact-card .role { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-500); margin-bottom: 4px; }
.contact-card a { font-size: 0.98rem; word-break: break-word; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; color: var(--text); background: var(--cloud);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet-400); background: #fff;
  box-shadow: 0 0 0 4px rgba(154,99,224,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.86rem; color: var(--text-soft); margin-top: 6px; }
.form-success { display: none; padding: 16px; border-radius: var(--radius-sm); background: #e9f9ee; border: 1px solid #9fe0b3; color: #1d6b39; margin-bottom: 18px; font-weight: 600; }
.form-success.show { display: block; }
.form-error { display: none; padding: 16px; border-radius: var(--radius-sm); background: #fdeaea; border: 1px solid #f3b4b4; color: #9b1c1c; margin-bottom: 18px; font-weight: 600; }
.form-error.show { display: block; }
.form-error a { color: #9b1c1c; text-decoration: underline; }

/* social row */
.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center; transition: transform .18s, background .18s;
}
.socials a:hover { transform: translateY(-3px); background: rgba(154,99,224,0.3); }
.socials a img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: .85; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery a { overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.08); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(29,15,51,0.92), rgba(61,29,114,0.85)),
    var(--cta-img, none);
  background-size: cover; background-position: center;
  border-radius: var(--radius); padding: 64px 48px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; }
.cta-band p { color: var(--text-invert-soft); max-width: 560px; margin: 14px auto 28px; }
.cta-band .btn { margin: 0 7px; }

/* ---------- Footer ---------- */
.footer { background: var(--purple-900); color: var(--text-invert-soft); padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand img { width: 54px; }
.footer .brand-text strong { color: #fff; }
.footer p { margin-top: 16px; font-size: 0.94rem; max-width: 320px; }
.footer h5 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-invert-soft); font-size: 0.94rem; }
.footer ul a:hover { color: var(--violet-300); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.84rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .grid--4, .tiers, .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
/* Collapse the nav to a hamburger menu before the six links get cramped */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,0.98); padding: 16px 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--text); white-space: normal; }
  .nav-links a.active { color: var(--purple-600); background: var(--mist); }
  .nav-links .btn { justify-content: center; margin-top: 6px; margin-left: 0; }
  /* dropdown becomes an inline accordion on mobile */
  .has-dropdown { position: static; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; color: var(--text); padding: 9px 14px; }
  .nav-drop-toggle.active { background: var(--mist); color: var(--purple-600); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 2px 0 6px 16px; min-width: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .nav-drop-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 760px) {
  .stats, .grid--3, .specs { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .stats, .grid--2, .grid--3, .grid--4, .tiers, .logo-wall, .specs { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .goal-card { padding: 30px; }
}
