/* ============================================================
   Delta Sigma Pi — Alpha Kappa Chapter
   Theme: F1 / Grand Prix — carbon, race red, podium gold
   ============================================================ */

:root {
  --black: #060608;
  --carbon-1: #0b0b0f;
  --carbon-2: #111117;
  --carbon-3: #17171f;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.18);

  --red: #e10600;
  --red-bright: #ff2a1f;
  --red-dark: #8f0400;

  --gold: #d4af37;
  --gold-bright: #f2ce5e;

  --purple: #7a3ecb;
  --purple-bright: #9a63e8;

  --white: #f4f4f7;
  --muted: #9a9aa8;
  --muted-dim: #6c6c78;

  --radius: 4px;
  --radius-lg: 10px;
  --max-width: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* subtle carbon-fiber weave across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 5px);
  opacity: 0.5;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Orbitron", "Titillium Web", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  color: #fff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.mono { font-family: "Titillium Web", monospace; letter-spacing: 0.08em; }

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Lights-out preloader ---------- */

.lights-out {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.lights-out.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.lights-out .rig { display: flex; gap: 22px; }

.lights-out .bulb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2a0605;
  border: 2px solid #3a0d0b;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
  transition: background 0.15s, box-shadow 0.15s;
}
.lights-out .bulb.on {
  background: var(--red-bright);
  box-shadow: 0 0 22px 6px rgba(255, 42, 31, 0.75), inset 0 0 8px rgba(255,255,255,0.4);
}

.lights-out .caption {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}
.lights-out .caption strong { color: var(--gold-bright); }

body.no-scroll { overflow: hidden; height: 100%; }

/* ---------- Launch FX: fires the instant lights go out ---------- */

.launch-fx {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}

.launch-fx .flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #fff, rgba(255,255,255,0) 62%);
  opacity: 0;
}
.launch-fx.fire .flash { animation: flashOut 0.55s ease-out forwards; }

.launch-fx .streak {
  position: absolute;
  left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), rgba(212,175,55,0.55), transparent);
  opacity: 0;
  filter: blur(1px);
}
.launch-fx.fire .streak { animation: streakSweep 0.65s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.launch-fx .streak.s1 { top: 14%; height: 7%; animation-delay: 0s; }
.launch-fx .streak.s2 { top: 47%; height: 10%; animation-delay: 0.06s; }
.launch-fx .streak.s3 { top: 78%; height: 6%; animation-delay: 0.12s; }

.launch-fx .title-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  letter-spacing: 5px;
  font-size: clamp(26px, 6vw, 62px);
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.85), 0 0 90px rgba(225,6,0,0.65);
  opacity: 0;
  transform: scale(0.85);
  text-align: center;
  padding: 0 20px;
}
.launch-fx.fire .title-flash { animation: titlePop 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@keyframes flashOut {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes streakSweep {
  0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateX(220%) skewX(-12deg); opacity: 0; }
}
@keyframes titlePop {
  0% { opacity: 0; transform: scale(0.85); }
  28% { opacity: 1; transform: scale(1.04); }
  55% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); filter: blur(3px); }
}

/* ---------- Hero punch-in (synced to launch FX) ---------- */

.hero-punch-in {
  opacity: 0;
  transform: scale(1.07);
  filter: blur(10px);
  transition: opacity 0.7s var(--ease), transform 0.85s var(--ease), filter 0.8s var(--ease);
}
.hero-punch-in.show { opacity: 1; transform: scale(1); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .launch-fx { display: none; }
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 12px 0;
  border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--black), 0 0 18px rgba(225, 6, 0, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text .line1 { font-family: "Orbitron", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.brand-text .line2 { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover { color: var(--gold-bright); text-decoration: none; background: rgba(255,255,255,0.06); }

.nav-links a[aria-current="page"] {
  color: var(--black);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--carbon-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease), opacity 0.3s;
    padding: 0 6px;
  }
  .nav-links.open { max-height: 420px; opacity: 1; padding: 8px 6px; }
  .nav-links a { display: block; padding: 13px 14px; border-radius: 8px; }
}

/* ---------- Marquee ticker ---------- */

.ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  position: relative;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker 26s linear infinite;
  will-change: transform;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  padding: 9px 0;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.ticker span::after { content: "◆"; margin: 0 26px; color: rgba(255,255,255,0.6); font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Checkered divider ---------- */

.checker-strip {
  height: 14px;
  background: repeating-conic-gradient(#0b0b0f 0% 25%, #d9d9de 0% 50%) 0 0 / 14px 14px;
  opacity: 0.9;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(225,6,0,0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(212,175,55,0.10), transparent 60%),
    linear-gradient(180deg, var(--black), var(--carbon-1) 60%, var(--carbon-2));
  overflow: hidden;
}

.hero .speed-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
}
.hero .speed-lines span {
  position: absolute;
  right: -20%;
  width: 160%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: streak 3.6s linear infinite;
}
.hero .speed-lines span:nth-child(2) { top: 22%; animation-delay: -0.8s; opacity: 0.6; }
.hero .speed-lines span:nth-child(3) { top: 48%; animation-delay: -1.9s; opacity: 0.4; height: 2px; }
.hero .speed-lines span:nth-child(4) { top: 68%; animation-delay: -2.6s; opacity: 0.5; }
.hero .speed-lines span:nth-child(5) { top: 84%; animation-delay: -0.3s; opacity: 0.3; }
.hero .speed-lines span:nth-child(1) { top: 8%; }
@keyframes streak { from { transform: translateX(-30%); } to { transform: translateX(30%); } }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 11.5px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 10px;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 999px;
  background: rgba(212,175,55,0.06);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px 2px rgba(255,42,31,0.8);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--red-bright), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-snap), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
  position: relative;
}
.btn:hover { transform: translateY(-3px); text-decoration: none; }
.btn:active { transform: translateY(-1px); }

.btn-red {
  background: linear-gradient(120deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(225,6,0,0.6);
}
.btn-red:hover { box-shadow: 0 14px 36px -6px rgba(225,6,0,0.75); }

.btn-outline {
  background: transparent;
  border-color: var(--line-bright);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--black);
  box-shadow: 0 10px 30px -8px rgba(212,175,55,0.5);
}
.btn-gold:hover { box-shadow: 0 14px 36px -6px rgba(212,175,55,0.65); }

/* ---------- Section shells ---------- */

section { padding: 100px 0; position: relative; }
section.tight { padding: 70px 0; }
section.alt { background: var(--carbon-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-bright);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red-bright); display: inline-block; }
.section-head h2 { margin: 14px 0 12px; font-size: clamp(26px, 3.6vw, 38px); }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Page header (non-home) ---------- */

.page-header {
  position: relative;
  padding: 160px 0 64px;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(225,6,0,0.16), transparent 60%),
    linear-gradient(180deg, var(--black), var(--carbon-1));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-header .kicker { color: var(--gold-bright); }
.page-header .kicker::before { background: var(--gold-bright); }
.page-header h1 { margin: 14px 0 12px; font-size: clamp(30px, 5vw, 48px); }
.page-header p { color: var(--muted); max-width: 640px; margin: 0; font-size: 16.5px; }
.page-header p a { border-bottom: 1px solid rgba(242,206,94,0.4); }

/* ---------- Sector cards (home quick links) ---------- */

.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }

.sector-card {
  position: relative;
  display: block;
  padding: 30px 26px 28px;
  background: linear-gradient(160deg, var(--carbon-2), var(--carbon-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.sector-card:hover {
  text-decoration: none;
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.15);
}
.sector-card .num {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted-dim);
  margin-bottom: 18px;
}
.sector-card .num span { color: var(--red-bright); }
.sector-card h3 { font-size: 19px; margin: 0 0 8px; }
.sector-card p { margin: 0; color: var(--muted); font-size: 14px; }
.sector-card .go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.sector-card .go .arrow { transition: transform 0.3s var(--ease-snap); }
.sector-card:hover .go .arrow { transform: translateX(5px); }

/* corner brackets, HUD-style */
.sector-card::before, .sector-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(212,175,55,0);
  transition: border-color 0.4s, opacity 0.4s;
  opacity: 0;
}
.sector-card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.sector-card::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.sector-card:hover::before, .sector-card:hover::after { border-color: var(--gold-bright); opacity: 1; }

/* ---------- Telemetry stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--carbon-2);
}
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

.stat-cell {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .value {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--gold-bright);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-cell .label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Generic cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(160deg, var(--carbon-2), var(--carbon-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.card:hover { border-color: var(--line-bright); transform: translateY(-4px); }
.card h3 { margin: 12px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card p a { color: var(--gold-bright); }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(225,6,0,0.12);
  border: 1px solid rgba(225,6,0,0.3);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ---------- Callout ---------- */

.callout {
  border-left: 3px solid var(--gold);
  background: rgba(212,175,55,0.06);
  padding: 18px 22px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 14.5px;
  color: var(--white);
  margin: 26px 0;
}
.callout strong { color: var(--gold-bright); }

/* ============================================================
   Events / Race Calendar
   ============================================================ */

.round-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(150deg, var(--carbon-2), var(--carbon-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.round-card:hover { border-color: rgba(212,175,55,0.4); transform: translateX(4px); }
.round-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red-bright), var(--gold));
}

@media (max-width: 720px) {
  .round-card { grid-template-columns: 1fr; text-align: left; }
  .round-card .round-date { flex-direction: row; gap: 10px; }
}

.round-num {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted-dim);
  text-transform: uppercase;
}
.round-num span { color: var(--red-bright); font-size: 15px; }

.round-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
}
.round-date .month { font-family: "Orbitron", sans-serif; font-size: 10.5px; letter-spacing: 1.5px; color: var(--gold-bright); text-transform: uppercase; }
.round-date .day { font-family: "Orbitron", sans-serif; font-size: 26px; font-weight: 800; line-height: 1.2; }

.round-body h3 { font-size: 19px; margin: 0 0 10px; }
.round-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.round-desc { color: var(--muted); font-size: 14px; max-width: 60ch; margin: 0 0 14px; }
.round-meta span { display: inline-flex; align-items: center; gap: 6px; }

.round-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: rgba(255,255,255,0.03);
  color: var(--white);
}
.tag-open { border-color: rgba(60,200,120,0.4); color: #6ee7a0; background: rgba(60,200,120,0.08); }
.tag-members { border-color: rgba(122,62,203,0.5); color: var(--purple-bright); background: rgba(122,62,203,0.1); }
.tag-invite { border-color: rgba(212,175,55,0.55); color: var(--gold-bright); background: rgba(212,175,55,0.1); }
.tag a { color: inherit; }

.event-note {
  border: 1px dashed rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.05);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--white);
  margin-top: 28px;
}
.event-note code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ============================================================
   Dress Code / Technical Regulations
   ============================================================ */

.reg-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  margin-bottom: 24px;
  background: linear-gradient(150deg, var(--carbon-2), var(--carbon-1));
  overflow: hidden;
}
.reg-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.reg-card.c-hard::before { background: #eceff1; }
.reg-card.c-medium::before { background: var(--gold); }
.reg-card.c-wet::before { background: var(--purple-bright); }

.reg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.reg-head h3 { font-size: 20px; }

.wear-label {
  margin: 18px 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted-dim);
}
.wear-list { margin: 0; padding-left: 0; list-style: none; max-width: 640px; }
.wear-list li { margin-bottom: 9px; font-size: 14.5px; padding-left: 22px; position: relative; }
.wear-list li::before { content: "✓"; position: absolute; left: 0; color: #6ee7a0; font-weight: 700; }

/* ============================================================
   Recruitment / Join the Grid
   ============================================================ */

.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li {
  display: flex;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.req-list li:last-child { border-bottom: none; }

.req-check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(225,6,0,0.12);
  border: 1px solid rgba(225,6,0,0.4);
  color: var(--red-bright);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.req-list h3 { font-size: 16px; margin: 0 0 4px; color: #fff; }
.req-list p { margin: 0; color: var(--muted); font-size: 14.5px; }
.req-list em { color: var(--gold-bright); font-style: normal; }

.track {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: turn;
  position: relative;
}
.track::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-bright) 0 10px, transparent 10px 18px);
}

.turn {
  counter-increment: turn;
  position: relative;
  padding: 0 0 34px 64px;
}
.turn:last-child { padding-bottom: 0; }
.turn::before {
  content: counter(turn);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--carbon-2);
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.turn .tag-label {
  font-family: "Orbitron", sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--red-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.turn h3 { font-size: 18px; margin: 0 0 6px; }
.turn p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ============================================================
   About / Team History
   ============================================================ */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-bright);
}
.timeline li {
  position: relative;
  padding: 4px 0 34px 30px;
}
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 4px var(--black), 0 0 14px rgba(255,42,31,0.6);
}
.timeline .yr {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}
.timeline h3 { font-size: 17px; margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(225,6,0,0.25), transparent 70%),
    linear-gradient(180deg, var(--carbon-1), var(--black));
  border-top: 1px solid var(--line);
}
.cta-band h2 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 34px); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; font-size: 16px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--muted);
  padding: 54px 0 28px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* ---------- Scroll-to-top ---------- */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--carbon-2);
  border: 1px solid var(--line-bright);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { border-color: var(--gold-bright); }

/* ---------- Hero photo variant ---------- */

.hero.has-photo { background: var(--black); }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(1.05) contrast(1.05); }
.hero-photo .overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,6,8,0.94) 25%, rgba(6,6,8,0.55) 58%, rgba(6,6,8,0.85)),
    linear-gradient(180deg, rgba(6,6,8,0.25), rgba(6,6,8,0.4) 55%, var(--black) 97%);
}
.hero.has-photo .speed-lines { opacity: 0.25; }

/* ---------- Page header photo variant ---------- */

.page-header.has-photo { padding: 190px 0 70px; }
.ph-photo { position: absolute; inset: 0; z-index: 0; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,6,8,0.94) 30%, rgba(6,6,8,0.6) 62%, rgba(6,6,8,0.88));
}
.page-header.has-photo .container { position: relative; z-index: 1; }

/* ---------- Round card photo ---------- */

.round-card.has-photo { position: relative; overflow: hidden; }
.round-card.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  z-index: 0;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.round-card.has-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,6,8,0.96) 32%, rgba(6,6,8,0.72) 65%, rgba(6,6,8,0.45));
  z-index: 0;
}
.round-card.has-photo:hover::before { opacity: 0.36; transform: scale(1.05); }
.round-card.has-photo > * { position: relative; z-index: 1; }

/* ---------- SVP spotlight ---------- */

.svp-spotlight {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(160deg, var(--carbon-2), var(--carbon-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 820px) { .svp-spotlight { grid-template-columns: 1fr; padding: 26px; gap: 28px; } }

.svp-spotlight .photo {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8);
}
.svp-spotlight .photo img { width: 100%; display: block; }

.svp-spotlight .role {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 8px;
}
.svp-spotlight h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 4px; }
.svp-spotlight .quote {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gold-bright);
  margin: 18px 0 22px;
  line-height: 1.5;
}

.svp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
@media (max-width: 480px) { .svp-facts { grid-template-columns: 1fr; } }
.svp-facts .fact { border-left: 2px solid var(--gold); padding-left: 12px; }
.svp-facts .fact .k {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 3px;
}
.svp-facts .fact .v { font-size: 15px; color: #fff; }

/* ---------- View transitions ---------- */

::view-transition-old(root) { animation: page-out 0.4s var(--ease-snap) forwards; }
::view-transition-new(root) { animation: page-in 0.5s var(--ease) forwards; }
@keyframes page-out { to { opacity: 0; transform: scale(0.99); } }
@keyframes page-in { from { opacity: 0; transform: scale(1.01); } }
