/* ======================================================================
   VALIENT 2K26 — TOKENS
====================================================================== */
:root {
  --black: #050505;
  --panel: #0c0a0b;
  --dark-red: #8011db;
  --red: #B00020;
  --bright-red: #FF1A1A;
  --crimson: #DC143C;
  --white: #FFFFFF;
  --silver: #B8B8B8;
  --silver-dim: #7a7a7a;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
body.intro-active { overflow: hidden; height: 100vh; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 400;
}

p { margin: 0; }

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

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

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--bright-red);
  margin-bottom: 0.6rem;
}
.section-kicker.center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.4rem;
}
.section-title.center { text-align: center; }

/* ======================================================================
   BUTTONS
====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--bright-red));
  color: var(--white);
  box-shadow: 0 0 18px rgba(255, 26, 26, 0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255, 26, 26, 0.65), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: rgba(176, 0, 32, 0.08);
  color: var(--white);
  border-color: rgba(255, 26, 26, 0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--bright-red);
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
  transform: translateY(-2px);
}

.btn-large { padding: 1.2rem 2.6rem; font-size: 1.3rem; }

/* ======================================================================
   SIDE IMAGES (fixed left/right rails)
====================================================================== */
.side-image {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 5;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: grayscale(0.25) contrast(1.05) brightness(0.85);
  transition: opacity 0.6s ease;
}
.side-image.has-image { opacity: 0.9; }

.side-image-left {
  left: 0;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.9) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.9) 55%, transparent 100%);
}
.side-image-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55), rgba(69,0,10,0.25) 50%, rgba(5,5,5,0.55));
}

.side-image-right {
  right: 0;
  mask-image: linear-gradient(270deg, rgba(0,0,0,0.9) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0.9) 55%, transparent 100%);
}
.side-image-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55), rgba(69,0,10,0.25) 50%, rgba(5,5,5,0.55));
}

@media (max-width: 1400px) {
  .side-image { width: 100px; }
}
@media (max-width: 1100px) {
  .side-image { display: none; }
}

/* ======================================================================
   CINEMATIC INTRO
====================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(ellipse at center, #0a0000 0%, #000 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  transition: opacity 0.9s ease;
}
.intro.intro-hide { opacity: 0; pointer-events: none; }

.intro-spark {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--bright-red);
  border-radius: 50%;
  box-shadow: 0 0 20px 8px rgba(255,26,26,0.8);
  animation: spark-pulse 2.4s ease-in-out infinite;
}
@keyframes spark-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2.4); opacity: 1; }
}

.intro-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(176,0,32,0.12) 1px, transparent 1px),
    linear-gradient(rgba(176,0,32,0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0;
  animation: lines-fade 4s ease forwards 0.4s;
}
@keyframes lines-fade { to { opacity: 0.5; } }

.intro-line {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--silver);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
}
.intro.show-line1 #introLine1 { opacity: 1; transform: translateY(0); }
.intro.show-line2 #introLine1 { opacity: 0; }
.intro.show-line2 #introLine2 { opacity: 1; transform: translateY(0); color: var(--bright-red); }
.intro.show-title #introLine2 { opacity: 0; }

.intro-title {
  font-size: clamp(3rem, 12vw, 7rem);
  color: var(--white);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
  text-shadow: 0 0 40px rgba(255,26,26,0.6);
}
.intro-title span { color: var(--bright-red); }
.intro.show-title .intro-title { opacity: 1; transform: scale(1); }

.intro-final {
  position: static;
  margin-top: 1.2rem;
  color: var(--bright-red);
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
}
.intro.show-final .intro-final { opacity: 1; transform: translateY(0); }
.intro.show-final .intro-title { transform: scale(1) translateY(-1.5rem); }

.skip-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.skip-btn:hover { border-color: var(--bright-red); color: var(--white); }

/* ======================================================================
   NAVIGATION
====================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.navbar.scrolled {
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(176,0,32,0.35), 0 10px 30px rgba(0,0,0,0.5);
  padding: 0.7rem 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo em { font-style: normal; color: var(--bright-red); }
.nav-emblem {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bright-red);
  box-shadow: 0 0 12px 4px rgba(255,26,26,0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--silver);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px; width: 0;
  background: var(--bright-red);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.chev { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.25s ease; }
.nav-dropdown.open .chev { transform: rotate(180deg); }

.nav-register {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--bright-red));
  box-shadow: 0 0 16px rgba(255,26,26,0.4);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.nav-register:hover { box-shadow: 0 0 26px rgba(255,26,26,0.75); transform: translateY(-1px); }

.nav-dropdown { position: relative; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 280px;
  background: rgba(9,4,5,0.97);
  border: 1px solid rgba(176,0,32,0.4);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 24px rgba(176,0,32,0.25);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.dropdown-item:hover {
  background: rgba(176,0,32,0.15);
  border-left-color: var(--bright-red);
  padding-left: 1.2rem;
}
.dropdown-item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.dropdown-item-tag {
  font-size: 0.78rem;
  color: var(--silver-dim);
}

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

/* ======================================================================
   HERO
====================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(69,0,10,0.25), transparent 60%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.75) 55%, rgba(5,5,5,0.97) 100%),
    linear-gradient(90deg, rgba(5,5,5,0.85), transparent 30%, transparent 70%, rgba(5,5,5,0.85));
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -10px;
  background: var(--bright-red);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255,26,26,0.7);
  animation: float-up linear infinite;
  opacity: 0.8;
}
@keyframes float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
}

.hero-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: grayscale(0.2) contrast(1.05) brightness(0.8);
  transition: opacity 0.6s ease;
}
.hero-side.has-image { opacity: 0.85; }

.hero-side-left {
  left: 0;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.85) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.85) 40%, transparent 100%);
}
.hero-side-right {
  right: 0;
  mask-image: linear-gradient(270deg, rgba(0,0,0,0.85) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0.85) 40%, transparent 100%);
}

@media (max-width: 900px) {
  .hero-side { display: none; }
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 0 50px rgba(255,26,26,0.45);
}
.hero-title span { color: var(--bright-red); }

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--silver);
  margin-top: 0.8rem;
  letter-spacing: 0.03em;
}
.hero-sub2 {
  font-size: 0.95rem;
  color: var(--bright-red);
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
}
.hero-tagline {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--silver);
  font-size: 1.05rem;
}
.hero-fee-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--silver-dim);
}
.hero-fee-note strong {
  color: var(--bright-red);
  font-weight: 600;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown { margin-top: 3rem; }
.countdown-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
  margin-bottom: 0.8rem;
}
.countdown-grid {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(176,0,32,0.08);
  border: 1px solid rgba(176,0,32,0.35);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  min-width: 62px;
}
.countdown-unit span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--bright-red);
  text-shadow: 0 0 12px rgba(255,26,26,0.5);
}
.countdown-unit small {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  margin-top: 0.2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--bright-red);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-cue 1.8s ease infinite;
}
@keyframes scroll-cue {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* ======================================================================
   ORIGIN STORY
====================================================================== */
.origin {
  max-width: var(--container);
  margin: 8rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.origin-image {
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.origin-image.in-view { opacity: 1; transform: translateX(0); }
.origin-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.05);
}
.origin-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,26,26,0.5);
  border-radius: var(--radius);
  pointer-events: none;
}

.origin-text {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}
.origin-text.in-view { opacity: 1; transform: translateX(0); }
.origin-text blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--bright-red);
  margin: 0.6rem 0 1.4rem;
  font-style: normal;
}
.origin-text p { color: var(--silver); margin-bottom: 1rem; max-width: 62ch; }
.origin-close {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-top: 1.2rem;
}

/* ======================================================================
   STATS
====================================================================== */
.stats {
  max-width: var(--container);
  margin: 0 auto 8rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat {
  padding: 2rem 1rem;
  border: 1px solid rgba(176,0,32,0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(176,0,32,0.06), transparent);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--bright-red);
  text-shadow: 0 0 18px rgba(255,26,26,0.4);
}
.stat small {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
}

/* ======================================================================
   MISSIONS / EVENTS
====================================================================== */
.missions {
  max-width: var(--container);
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}
.non-tech-heading { margin-top: 4.5rem; }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.mission-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,0,32,0.3);
  background: var(--panel);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mission-card.in-view { opacity: 1; transform: translateY(0); }
.mission-card:hover, .mission-card:focus-visible {
  border-color: var(--bright-red);
  box-shadow: 0 0 30px rgba(255,26,26,0.35);
  transform: translateY(-6px);
}

.mission-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75) saturate(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.mission-card:hover .mission-card-img { transform: scale(1.08); filter: brightness(0.55); }

.mission-card-body { padding: 1.3rem 1.4rem 1.5rem; position: relative; }
.mission-card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--bright-red);
  margin-bottom: 0.35rem;
}
.mission-card-name {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.mission-card-meta {
  font-size: 0.82rem;
  color: var(--silver-dim);
}
.mission-card-cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mission-card:hover .mission-card-cta { opacity: 1; transform: translateY(0); }

/* ======================================================================
   MODAL
====================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: linear-gradient(165deg, #0d0405, #050505);
  border: 1px solid rgba(255,26,26,0.4);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(176,0,32,0.25);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}
.modal-backdrop.open .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--bright-red); }

.modal-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--bright-red);
  margin-bottom: 0.5rem;
}
.modal-title { font-size: 1.9rem; margin-bottom: 0.3rem; }
.modal-tagline { color: var(--silver); font-size: 0.9rem; margin-bottom: 1rem; }
.modal-desc { color: var(--silver); margin-bottom: 1.4rem; white-space: pre-line; }

.modal-rules {
  color: var(--silver);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(176,0,32,0.25);
  border-radius: var(--radius);
  background: rgba(176,0,32,0.05);
}
.modal-rules:empty { display: none; margin-bottom: 0; }

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.modal-meta div {
  border: 1px solid rgba(176,0,32,0.3);
  border-radius: var(--radius);
  padding: 0.7rem 0.5rem;
  text-align: center;
}
.modal-meta span { display: block; font-size: 0.68rem; color: var(--silver-dim); letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.modal-meta strong { font-family: var(--font-display); font-size: 1rem; font-weight: 400; }

.modal-meta { margin-bottom: 0; }

/* ======================================================================
   TIMELINE
====================================================================== */
.timeline-section {
  max-width: var(--container);
  margin: 0 auto 8rem;
  padding: 0 1.5rem;
}
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 2.2rem;
  border-left: 1px solid rgba(176,0,32,0.35);
}
.tl-item {
  position: relative;
  padding-bottom: 2.6rem;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.in-view { opacity: 1; transform: translateX(0); }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -2.55rem;
  top: 0.2rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bright-red);
  box-shadow: 0 0 12px 3px rgba(255,26,26,0.6);
}
.tl-act { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--bright-red); margin-bottom: 0.3rem; }
.tl-time { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.tl-label { color: var(--silver); margin-top: 0.2rem; }

/* ======================================================================
   HERO SHOWCASE (scrolling strip)
====================================================================== */
.hero-showcase {
  margin: 0 auto 8rem;
  overflow: hidden;
}
.hero-showcase-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: scroll-track 32s linear infinite;
}
.hero-showcase:hover .hero-showcase-track { animation-play-state: paused; }
@keyframes scroll-track {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-showcase-card {
  min-width: 220px;
  height: 300px;
  border-radius: var(--radius);
  border: 1px solid rgba(176,0,32,0.35);
  background: linear-gradient(165deg, rgba(176,0,32,0.1), rgba(5,5,5,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--silver-dim);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.hero-showcase-card:hover {
  border-color: var(--bright-red);
  box-shadow: 0 0 24px rgba(255,26,26,0.3);
}
.hero-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

/* ======================================================================
   HEADQUARTERS
====================================================================== */
.hq {
  max-width: var(--container);
  margin: 0 auto 8rem;
  padding: 0 1.5rem;
}
.hq-dept { color: var(--silver); margin-bottom: 3rem; }

.hq-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

.hq-map-frame {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid rgba(176,0,32,0.35);
  background: radial-gradient(circle at 50% 40%, rgba(176,0,32,0.18), #0a0505 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}
.hq-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(176,0,32,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,0,32,0.15) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hq-map-pin {
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--bright-red);
  transform: rotate(-45deg);
  box-shadow: 0 0 24px 8px rgba(255,26,26,0.5);
  position: relative;
  z-index: 1;
}
.hq-map-btn { position: relative; z-index: 1; }

.hq-info { display: flex; flex-direction: column; gap: 0.9rem; }
.hq-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(176,0,32,0.25);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.hq-row:hover { border-color: var(--bright-red); background: rgba(176,0,32,0.08); }
.hq-row span { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--silver-dim); }
.hq-row strong { font-family: var(--font-display); font-size: 1rem; font-weight: 400; }

/* ======================================================================
   HACKATHON (dedicated section, separate from the missions grid)
====================================================================== */
.hackathon-cta {
  position: relative;
  margin: 0 auto 8rem;
  max-width: var(--container);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,0,32,0.35);
  isolation: isolate;
}
.hackathon-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(1.1);
  transform: scale(1.03);
  z-index: -2;
}
.hackathon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55), rgba(5,5,5,0.92) 70%, #050505 100%);
  z-index: -1;
}
.hackathon-inner {
  position: relative;
  padding: 5rem 1.5rem;
  text-align: center;
}
.hackathon-blurb {
  max-width: 56ch;
  margin: 0 auto 2.6rem;
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hackathon-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 720px;
  margin: 0 auto 2.6rem;
}
.hackathon-fact {
  border: 1px solid rgba(176,0,32,0.3);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  background: rgba(176,0,32,0.06);
}
.hackathon-fact span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  margin-bottom: 0.35rem;
}
.hackathon-fact strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
}

@media (max-width: 640px) {
  .hackathon-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================================================================
   FINAL CTA
====================================================================== */
.final-cta {
  position: relative;
  text-align: center;
  padding: 8rem 1.5rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(69,0,10,0.4), #000 75%);
  overflow: hidden;
}
.final-particles { position: absolute; inset: 0; pointer-events: none; }
.final-cta h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--silver);
}
.final-cta-em { color: var(--bright-red) !important; margin-bottom: 2.2rem; text-shadow: 0 0 30px rgba(255,26,26,0.5); }
.final-cta .btn { position: relative; z-index: 2; }

/* ======================================================================
   FOOTER
====================================================================== */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(176,0,32,0.25);
}
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; }
.footer-logo em { font-style: normal; color: var(--bright-red); }
.footer-tag { color: var(--silver-dim); font-size: 0.85rem; margin-top: 0.4rem; }
.footer-quote { font-style: italic; color: var(--silver); margin-top: 0.8rem; }
.footer-home-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--bright-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-home-link:hover { color: var(--white); }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin: 1.6rem 0;
}
.footer-socials a { font-size: 0.85rem; color: var(--silver); transition: color 0.2s ease; }
.footer-socials a:hover { color: var(--bright-red); }
.footer-copy { font-size: 0.75rem; color: var(--silver-dim); }

/* ======================================================================
   RESPONSIVE
====================================================================== */
@media (max-width: 900px) {
  .origin { grid-template-columns: 1fr; gap: 2.5rem; }
  .hq-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(320px, 84vw);
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 1.8rem 2rem;
    gap: 0.4rem;
    border-left: 1px solid rgba(176,0,32,0.3);
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links .nav-link { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-register { width: 100%; text-align: center; margin-top: 0.6rem; }

  .nav-dropdown { width: 100%; }
  .dropdown-panel {
    position: static;
    transform: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav-dropdown.open .dropdown-panel {
    max-height: 400px;
    padding: 0.3rem 0 0.6rem;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-grid .gallery-item:nth-child(3n+1) { grid-row: span 1; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .countdown-grid { gap: 0.5rem; }
  .countdown-unit { min-width: 52px; padding: 0.5rem 0.6rem; }
}
