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

/* CRITICAL: No overflow:hidden on html — that was breaking scroll */
html {
  scroll-behavior: smooth;
  font-family: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}
body {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000;
  color: #e8e8e8;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}
.seo-heading{
    position:absolute;
    left:-9999px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}
/* =========================================================
   PREMIUM FONT IMPORTS
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Outfit:wght@100;200;300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
  --bg: #020202;
  --bg2: #080808;
  --white: #ffffff;
  --muted: #6e6e82;
  --purple: #7c3aed;
  --purple2: #a855f7;
  --purple3: #c084fc;
  --accent: #9333ea;
  --chrome-lo: #2a2a2a;
  --chrome-mid: #8a8a9a;
  --chrome-hi: #d4d4e8;
  --chrome-peak: #f0f0ff;
  --chrome-glow: rgba(192, 192, 220, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.025);
  --glass2: rgba(255, 255, 255, 0.05);
  --transition: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Unbounded", sans-serif;
  --font-hero: "Cinzel Decorative", serif;
  --font-editorial: "Playfair Display", serif;
  --font-body: "Barlow Condensed", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-elegant: "Cormorant Garamond", serif;
}

/* =========================================================
   CANVAS FX LAYERS
========================================================= */
#nebulaCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 1;
}
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.6;
}

/* =========================================================
   GLOBAL FX
========================================================= */
.noise {
  position: fixed;
  inset: 0;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px
  );

  background-size: 4px 4px;

  opacity: 0.18;

  pointer-events: none;

  z-index: 1;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 20%,
    transparent 75%
  );
  pointer-events: none;
  z-index: -1;
}

/* =========================================================
   PARALLAX HERO LAYERS
========================================================= */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.layer-back {
  background: radial-gradient(
    circle at 30% 60%,
    rgba(124, 58, 237, 0.04),
    transparent 50%
  );
  filter: blur(60px);
}
.layer-mid {
  background: radial-gradient(
    circle at 70% 40%,
    rgba(59, 130, 246, 0.02),
    transparent 50%
  );
  filter: blur(80px);
}

/* =========================================================
   SCROLLBAR
========================================================= */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: #030303;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    var(--chrome-hi),
    var(--purple2),
    var(--chrome-mid)
  );
  border-radius: 999px;
}

/* =========================================================
   SCROLL PROGRESS
========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: linear-gradient(
    to right,
    var(--purple),
    var(--purple2),
    rgba(255, 255, 255, 0.4)
  );
  z-index: 99999;
  will-change: width;
  transform: translateZ(0);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* =========================================================
   CURSOR
========================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
}
.cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.9);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}
.cursor-ring.hover {
  width: 52px;
  height: 52px;
  opacity: 0.25;
  border-color: var(--purple2);
}

/* =========================================================
   PRELOADER
========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
#preloaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.preloader-logo {
  width: min(240px, 60vw);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.3));
}
.loader-line-wrap {
  width: min(300px, 70vw);
  height: 1px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}
.loader-line {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--purple),
    rgba(255, 255, 255, 0.5)
  );
  animation: loader 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loader {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.loader-text {
  font-size: 0.65rem;
  letter-spacing: 6px;
  opacity: 0.3;
  font-family: var(--font-mono);
  position: relative;
  z-index: 2;
}
.loader-percent {
  opacity: 0.3;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}

/* =========================================================
   NAVBAR
========================================================= */
nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  z-index: 5000;
  transition: var(--transition);
}
nav#navbar.scrolled {
  background: rgba(2, 2, 2, 0.9);
  backdrop-filter: blur(32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 5vw;
}
.nav-brand img {
  width: auto;
  height: 42px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.55;
  transition: var(--transition);
  position: relative;
  font-family: var(--font-body);
  text-transform: uppercase;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--purple2);
  transition: var(--transition);
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.icon-btn:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 1.5px;
  background: white;
  transition: var(--transition);
}

/* =========================================================
   HERO GALAXY CANVAS
========================================================= */
#heroGalaxyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
#torchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* =========================================================
   HERO AMBIENT FLOATING WORDS
========================================================= */
.hero-ambient-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.ambient-word {
  position: absolute;
  font-family: var(--font-elegant);
  font-style: italic;
  color: rgba(210, 190, 255, 0.22);
  font-weight: 300;
  letter-spacing: 0.14em;
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
  /* No CSS animation — JS drives visibility through torch */
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 140px 5vw 100px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(4px) brightness(0);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(2, 2, 2, 0.55) 75%,
    rgba(2, 2, 2, 0.92) 100%
  );
  z-index: 4;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 12;
  max-width: 1200px;
  text-align: center;
  will-change: transform;
}

.hero-topline {
  font-size: 0.62rem;
  letter-spacing: 9px;
  opacity: 0;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  color: var(--chrome-mid);
  animation: heroFadeUp 0.8s ease 0.3s forwards;
}

/* =========================================================
   INTERACTIVE HERO LOGO — cinematic float + glow reveal
========================================================= */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-bottom: 0;
  z-index: 12;
}
#logoParticleCanvas {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  left: -60px;
  top: -60px;
}
.hero-logo {
  width: min(900px, 88vw);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: heroLogoReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  filter: drop-shadow(0 0 35px rgba(148, 80, 255, 0.55))
    drop-shadow(0 0 80px rgba(120, 50, 240, 0.25));
  transition: filter 0.6s ease;
  transform-origin: center center;
  display: block;
  cursor: default;
}
.hero-logo-wrap:hover .hero-logo {
  filter: drop-shadow(0 0 55px rgba(168, 85, 247, 0.75))
    drop-shadow(0 0 120px rgba(124, 58, 237, 0.4))
    drop-shadow(0 0 180px rgba(100, 30, 200, 0.2));
}
.hero-logo-wrap::before {
  display: none;
}
.hero-logo-wrap:hover::before {
  display: none;
}
@keyframes heroLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-heading {
  margin-top: 20px;
  font-family: var(--font-hero);
  font-size: clamp(1.2rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 6px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 1.2s forwards;
  background: linear-gradient(
    135deg,
    var(--chrome-peak) 0%,
    var(--chrome-hi) 40%,
    var(--purple3) 70%,
    var(--chrome-hi) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description {
  max-width: 500px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  line-height: 1.9;
  letter-spacing: 1px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 1.6s forwards;
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}
.hero-buttons {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 1.9s forwards;
}
.hero-stats {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 2.2s forwards;
}
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-stat {
  padding: 22px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}
.hero-stat:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(168, 85, 247, 0.14);
  transform: translateY(-4px);
}
.hero-stat h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 400;
  font-family: var(--font-display);
  letter-spacing: 1px;
  background: linear-gradient(
    135deg,
    var(--chrome-peak),
    var(--chrome-hi),
    var(--purple3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat p {
  margin-top: 5px;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 2.8s forwards;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.12);
  }
}
.scroll-label {
  font-size: 0.55rem;
  letter-spacing: 4px;
  opacity: 0.25;
  font-family: var(--font-mono);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  transition: var(--transition);
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.5s ease;
}
.btn:hover::after {
  transform: translateX(110%) skewX(-20deg);
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple2) 50%,
    var(--chrome-mid) 100%
  );
  color: white;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(124, 58, 237, 0.32),
    0 0 0 1px rgba(168, 85, 247, 0.25);
}
.btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035),
    rgba(192, 192, 220, 0.055)
  );
  color: var(--chrome-hi);
  backdrop-filter: blur(12px);
  border-color: rgba(192, 192, 220, 0.1);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(192, 192, 220, 0.09);
  border-color: rgba(192, 192, 220, 0.2);
}

/* =========================================================
   STORY STRIP — cinematic scroll-driven panels
========================================================= */
.story-strip {
  position: relative;
  background: #020202;
  overflow: visible;
}
.story-panel {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 5vw;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.story-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(124, 58, 237, 0.035),
    transparent 70%
  );
  pointer-events: none;
}
.story-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
  overflow: visible;
}
.story-word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1;
  opacity: 0;
  transform: translateY(60px);
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.story-word.revealed {
  opacity: 1;
  transform: translateY(0);
}
.story-line-accent .story-word {
  background: linear-gradient(
    135deg,
    var(--chrome-peak) 0%,
    var(--chrome-hi) 30%,
    var(--purple3) 60%,
    var(--chrome-hi) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(4rem, 14vw, 13rem);
}
.story-line-sub .story-word {
  font-size: clamp(3rem, 9vw, 8rem);
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   SECTION DIVIDER
========================================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 60px 5vw 0;
  max-width: 800px;
  margin-inline: auto;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.07),
    transparent
  );
}
.divider-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.divider-label {
  font-size: 0.62rem;
  letter-spacing: 5px;
  opacity: 0.35;
  font-family: var(--font-mono);
}
.divider-icon {
  opacity: 0.18;
  font-size: 0.5rem;
}

/* =========================================================
   SCHOOL SECTION
========================================================= */
.school-section {
  padding: 80px 5vw;
  text-align: center;
  position: relative;
}
.school-inner {
  max-width: 860px;
  margin-inline: auto;
  padding: 52px 48px;
  border-radius: 34px;
  background: linear-gradient(
    145deg,
    rgba(14, 14, 14, 0.95),
    rgba(8, 8, 8, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
}
.school-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(124, 58, 237, 0.035),
    transparent 55%
  );
  pointer-events: none;
}
.school-tag {
  font-size: 0.64rem;
  letter-spacing: 6px;
  opacity: 0.3;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.school-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: 3px;
  line-height: 1;
  font-weight: 400;
  background: linear-gradient(
    135deg,
    var(--chrome-hi) 0%,
    var(--chrome-peak) 30%,
    var(--purple3) 60%,
    var(--chrome-hi) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.school-sub {
  font-size: 0.72rem;
  letter-spacing: 3px;
  opacity: 0.28;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.school-divider {
  width: 44px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  margin: 0 auto 28px;
}
.school-desc {
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.94rem;
}

/* =========================================================
   SECTION
========================================================= */
.section {
  position: relative;
  padding: 110px 5vw;
}
.section-header {
  text-align: center;
  margin-bottom: 68px;
}
.section-tag {
  font-size: 0.64rem;
  letter-spacing: 6px;
  opacity: 0.3;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 4px;
  background: linear-gradient(
    160deg,
    var(--chrome-peak) 0%,
    var(--chrome-hi) 30%,
    var(--purple3) 55%,
    var(--chrome-hi) 75%,
    var(--chrome-peak) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin-inline: auto;
}
.about-card {
  padding: 36px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(124, 58, 237, 0.07),
    transparent 55%
  );
  opacity: 0;
  transition: 0.4s ease;
}
.about-card:hover::before {
  opacity: 1;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.12);
}
.about-icon {
  font-size: 1.7rem;
  margin-bottom: 18px;
  opacity: 0.45;
}
.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: var(--font-display);
}
.about-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9rem;
}

/* =========================================================
   LEGACY MARQUEE
========================================================= */
.legacy-marquee-section {
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(0, 0, 0, 0.3);
  user-select: none;
}
.legacy-track-wrap {
  overflow: hidden;
  padding: 30px 0;
}
.legacy-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: legacyScroll 30s linear infinite;
}
.legacy-word {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8.5rem);
  letter-spacing: 4px;
  line-height: 1;
  opacity: 0.055;
  white-space: nowrap;
  padding: 0 32px;
  font-weight: 400;
  background: linear-gradient(
    135deg,
    var(--chrome-peak),
    var(--purple3),
    var(--chrome-hi)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  transition: opacity 0.4s ease;
}
.legacy-track:hover .legacy-word {
  opacity: 0.1;
}
@keyframes legacyScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   EVENTS
========================================================= */
.events-slider-wrap {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.event-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.038),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.055);
  transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  cursor: pointer;
}
.event-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.45),
    rgba(96, 165, 250, 0.25),
    rgba(168, 85, 247, 0.45)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.event-card:hover::before {
  opacity: 0.35;
}
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.035),
    transparent
  );
  transform: translateX(-120%);
}
.event-card:hover::after {
  transition: 0.8s ease;
  transform: translateX(120%);
}
.event-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(124, 58, 237, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: 0.4s ease;
  pointer-events: none;
}
.event-card:hover .event-card-glow {
  opacity: 1;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(168, 85, 247, 0.08);
}

.event-number {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 3.5rem;
  font-weight: 700;
  opacity: 0.028;
  font-family: var(--font-display);
}
.event-category {
  display: inline-flex;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.6rem;
  letter-spacing: 3px;
  font-family: var(--font-mono);
  opacity: 0.65;
}
.event-content h3 {
  margin-top: 18px;
  font-size: 1.65rem;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  font-weight: 700;
}
.event-content p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.88rem;
}
.event-meta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 0.73rem;
  font-family: var(--font-mono);
}
.event-meta span {
  opacity: 0.45;
}
.event-meta span::before {
  content: "◆ ";
  font-size: 0.4rem;
  opacity: 0.3;
  vertical-align: middle;
  margin-right: 3px;
}

.events-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.7rem;
  opacity: 0.6;
}
.events-dots::before {
  content: "← Swipe • Tap Dots to Navigate →";
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0.4;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
}
.events-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  cursor: pointer;
}
.events-dots .dot.active {
  background: white;
  width: 18px;
  border-radius: 999px;
}

/* =========================================================
   SCHEDULE
========================================================= */
.schedule-wrapper {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
  padding: 48px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(12, 12, 12, 0.98),
    rgba(6, 6, 6, 0.99)
  );
  border: 1px solid rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(22px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
}
.schedule-wrapper::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.05),
    transparent 70%
  );
  top: -230px;
  right: -130px;
  filter: blur(45px);
  pointer-events: none;
}
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 44px;
  background: rgba(255, 255, 255, 0.018);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  width: fit-content;
  margin-inline: auto;
}
.tab-btn {
  padding: 10px 26px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: white;
  color: #050505;
}
.tab-btn:not(.active):hover {
  color: white;
}
.schedule-day {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  position: absolute;
  width: 100%;
}
.schedule-day.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}
.schedule-item {
  display: grid;
  grid-template-columns: 88px 30px 1fr;
  gap: 0 22px;
  align-items: start;
  margin-bottom: 0;
}
.schedule-item.last .sch-connector {
  display: none;
}
.schedule-time-col {
  text-align: right;
  padding-top: 20px;
}
.sch-time {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: white;
  line-height: 1;
}
.sch-ampm {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 2px;
  opacity: 0.28;
  margin-top: 4px;
}
.sch-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}
.sch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.45);
  position: relative;
  z-index: 2;
}
.sch-connector {
  width: 1px;
  flex: 1;
  min-height: 44px;
  background: linear-gradient(
    to bottom,
    rgba(124, 58, 237, 0.25),
    rgba(255, 255, 255, 0.015)
  );
  margin-top: 6px;
}
.schedule-info {
  padding: 16px 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.035);
  transition: var(--transition);
  margin-bottom: 10px;
}
.schedule-item:hover .schedule-info {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}
.schedule-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 700;
  font-family: var(--font-display);
}
.schedule-info p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.sch-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.54rem;
  letter-spacing: 3px;
  font-family: var(--font-mono);
  opacity: 0.35;
}

/* =========================================================
   TRAILER
========================================================= */
.trailer-wrapper {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(8, 8, 8, 0.95);
  transition: 0.45s ease;
}
.trailer-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.trailer-video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.trailer-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(124, 58, 237, 0.06),
    transparent 60%
  );
  pointer-events: none;
}

/* =========================================================
   SCHOOLS ROLLING STRIP
========================================================= */
.schools-section {
  overflow: hidden;
  padding-bottom: 80px;
}
.schools-rail-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.schools-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 0;
}
.schools-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.schools-track-left {
  animation: schoolsLeft 30s linear infinite;
}
.schools-track-right {
  animation: schoolsRight 35s linear infinite;
}
@keyframes schoolsLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes schoolsRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.schools-rail:hover .schools-track {
  animation-play-state: paused;
}

.school-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: default;
}
.school-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}
.school-card-alt {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.1);
}
.school-card-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  opacity: 0.28;
  letter-spacing: 2px;
}
.school-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
}
.school-card-loc {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.3;
  letter-spacing: 1px;
}

/* =========================================================
   GALLERY
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 10px;
  max-width: 1280px;
  margin-inline: auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.045);
  transition: 0.4s ease;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(124, 58, 237, 0.18),
    transparent 40%
  );
  opacity: 0;
  transition: 0.4s ease;
}
.gallery-item:hover::before {
  opacity: 1;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
}
.gallery-item:nth-child(1) {
  grid-column: span 7;
  height: 360px;
}
.gallery-item:nth-child(2) {
  grid-column: span 5;
  height: 360px;
}
.gallery-item:nth-child(3) {
  grid-column: span 4;
  height: 230px;
}
.gallery-item:nth-child(4) {
  grid-column: span 4;
  height: 230px;
}
.gallery-item:nth-child(5) {
  grid-column: span 4;
  height: 230px;
}
.gallery-item:nth-child(6) {
  grid-column: span 12;
  height: 170px;
}

/* =========================================================
   PEOPLE BEHIND SRISHTI (Team section)
========================================================= */
.team-section {
  padding-bottom: 60px;
}
.team-tiers {
  max-width: 1060px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 58px;
}
.tier-label {
  font-size: 0.6rem;
  letter-spacing: 5px;
  opacity: 0.25;
  margin-bottom: 22px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  text-align: center;
}
.team-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.team-card {
  padding: 28px 24px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  transition: var(--transition);
  min-width: 160px;
}
.team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.15);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.25),
    rgba(168, 85, 247, 0.12)
  );
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin: 0 auto 14px;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  opacity: 0.3;
  text-transform: uppercase;
}

/* Sponsor cards reused in team section */
.sponsor-card {
  padding: 22px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(13px);
  transition: var(--transition);
  text-align: center;
  min-width: 160px;
}
.sponsor-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}
.sponsor-title {
  min-width: 240px;
  padding: 32px 50px;
}
.sponsor-logo-placeholder {
  width: 74px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  letter-spacing: 2px;
  opacity: 0.22;
  font-family: var(--font-mono);
}
.sponsor-title .sponsor-logo-placeholder {
  width: 100px;
  height: 60px;
  margin-bottom: 12px;
}
.sponsor-name {
  font-size: 0.72rem;
  opacity: 0.32;
  letter-spacing: 1px;
}

.sponsors-marquee-wrap {
  max-width: 1060px;
  margin: 48px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 32px;
}
.sponsors-marquee {
  overflow: hidden;
}
.sponsors-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: sponsorScroll 18s linear infinite;
}
.sponsors-track span {
  font-size: 0.72rem;
  letter-spacing: 4px;
  opacity: 0.15;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 32px;
  font-family: var(--font-mono);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
@keyframes sponsorScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.sponsors-marquee:hover .sponsors-track {
  animation-play-state: paused;
}

/* =========================================================
   COUNTDOWN
========================================================= */
.countdown-section {
  position: relative;
  overflow: hidden;
}
.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 50%,
    rgba(124, 58, 237, 0.035),
    transparent 70%
  );
  pointer-events: none;
}
.countdown-transmission {
  margin-top: 12px;
  font-size: 0.77rem;
  color: rgba(168, 85, 247, 0.6);
  font-family: var(--font-mono);
  letter-spacing: 2px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 960px;
  margin-inline: auto;
}
.time-card {
  padding: 44px 16px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(14, 14, 14, 0.98),
    rgba(8, 8, 8, 0.99)
  );
  border: 1px solid rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.time-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(124, 58, 237, 0.05),
    transparent 55%
  );
  pointer-events: none;
}
.time-card:hover {
  border-color: rgba(168, 85, 247, 0.15);
  transform: translateY(-4px);
}
.time-card h3 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.time-card p {
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.58rem;
  font-family: var(--font-mono);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  position: relative;
  overflow: hidden;
  padding: 120px 5vw 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.05),
    transparent 70%
  );
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
}
.footer-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.footer-school {
  font-size: 0.64rem;
  letter-spacing: 5px;
  opacity: 0.22;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.footer-logo {
  width: min(180px, 45vw);
}
.footer-title {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 6px;
  background: linear-gradient(
    160deg,
    var(--chrome-peak) 0%,
    var(--chrome-hi) 30%,
    var(--purple3) 55%,
    var(--chrome-hi) 75%,
    var(--chrome-peak) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-text {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-display);
}
.footer-socials {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-socials a {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

/* =========================================================
   TOAST
========================================================= */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  opacity: 0;
  transition: 0.4s ease;
  pointer-events: none;
  z-index: 99998;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   MOBILE MENU
========================================================= */
/* =========================================================
   MOBILE MENU FIX
========================================================= */

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  position: fixed;

  top: 0;
  right: 0;

  width: 78vw;

  max-width: 320px;

  height: 100dvh;

  background: rgba(4, 4, 6, 0.97);

  backdrop-filter: blur(24px);

  z-index: 10000;

  padding: 90px 26px 40px;

  display: flex;

  flex-direction: column;

  gap: 18px;

  transform: translateX(100%);

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  overflow-y: auto;

  overflow-x: hidden;

  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;

  top: 24px;
  right: 24px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.03);

  color: white;

  font-size: 1rem;

  display: flex;

  align-items: center;

  justify-content: center;
}

.mobile-link {
  color: white;

  text-decoration: none;

  font-size: 1rem;

  letter-spacing: 1px;

  opacity: 0.85;

  padding: 8px 0;
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .schedule-wrapper {
    padding: 34px 28px;
  }
  .schedule-item {
    grid-template-columns: 68px 26px 1fr;
    gap: 0 12px;
  }
  .sch-time {
    font-size: 1.5rem;
  }
}

/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: -60px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top-btn.visible {
  bottom: 30px;
}
.scroll-top-btn:hover {
  background: rgba(124, 58, 237, 1);
  transform: translateY(-3px);
}

/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: -60px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top-btn.visible {
  bottom: 30px;
}
.scroll-top-btn:hover {
  background: rgba(124, 58, 237, 1);
  transform: translateY(-3px);
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 768px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding-top: 130px;
  }
  .hero-heading {
    font-size: clamp(2.2rem, 9.5vw, 4rem);
    letter-spacing: -1px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 290px;
  }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .hero-stat {
    padding: 11px 5px;
    border-radius: 12px;
  }
  .hero-stat h3 {
    font-size: 1.1rem;
  }
  .hero-stat p {
    font-size: 0.48rem;
    letter-spacing: 1px;
  }
  .section-divider {
    padding-top: 34px;
    gap: 12px;
  }
  .school-inner {
    padding: 32px 18px;
  }
  .school-name {
    font-size: clamp(1.6rem, 8vw, 3rem);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .legacy-word {
    font-size: clamp(3rem, 13vw, 5.5rem);
  }
  .section-title {
    letter-spacing: -1px;
  }
  .story-word {
    font-size: clamp(2.5rem, 9vw, 5rem);
  }
  .story-line-accent .story-word {
    font-size: clamp(3rem, 11vw, 7rem);
  }
  .events-grid {
    display: flex;
    overflow-x: scroll;
    gap: 10px;
    padding: 0 5vw;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 5vw;
    -webkit-overflow-scrolling: touch;
  }
  .events-grid::-webkit-scrollbar,
  .events-grid {
    scrollbar-width: none;
  }
  .events-grid::-webkit-scrollbar {
    display: none;
  }
  .event-card {
    flex: 0 0 calc(100vw - 10vw - 10px);
    width: calc(100vw - 10vw - 10px);
    min-width: calc(100vw - 10vw - 10px);
    max-width: calc(100vw - 10vw - 10px);
    scroll-snap-align: start;
    min-height: 250px;
    padding: 22px 18px;
  }
  .event-number {
    font-size: 2rem;
  }
  .event-content h3 {
    font-size: 1.2rem;
  }
  .event-content p {
    font-size: 0.8rem;
  }
  .events-dots {
    display: flex;
  }
  .schedule-wrapper {
    padding: 22px 16px;
  }
  .schedule-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px;
  }
  .schedule-time-col {
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding-top: 0;
  }
  .sch-dot-col {
    display: none;
  }
  .sch-time {
    font-size: 1.6rem;
  }
  .schedule-info {
    padding: 12px 14px;
  }
  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .time-card {
    padding: 18px 5px;
    border-radius: 14px;
  }
  .time-card h3 {
    font-size: 1.55rem;
    letter-spacing: -1px;
  }
  .time-card p {
    font-size: 0.42rem;
    letter-spacing: 1px;
  }
  .team-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }
  .team-card {
    padding: 16px 12px;
    min-width: auto;
  }
  .team-name {
    font-size: 0.85rem;
  }
  .team-role {
    font-size: 0.5rem;
  }
  .hero-scroll-hint {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .gallery-item {
    height: 110px !important;
    grid-column: auto !important;
    border-radius: 12px;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2 !important;
    height: 160px !important;
  }
  .gallery-item:nth-child(6) {
    grid-column: span 2 !important;
    height: 120px !important;
  }
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    right: 16px;
  }
  .scroll-top-btn.visible {
    bottom: 20px;
  }
}

/* =========================================================
   RESPONSIVE — LANDSCAPE MOBILE
========================================================= */
@media (max-height: 500px) and (max-width: 1024px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hero-content {
    gap: 8px;
  }
  .hero-stat {
    padding: 8px 4px;
  }
  .hero-stat h3 {
    font-size: 1rem;
  }
  .hero-buttons {
    gap: 6px;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.7rem;
  }
  .section {
    padding: 60px 5vw;
  }
  .section-title {
    font-size: clamp(1.8rem, 5vw, 4rem);
  }
}

/* =========================================================
   RESPONSIVE — VERY SMALL SCREENS
========================================================= */
@media (max-width: 480px) {
  .hero-heading {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .countdown-grid {
    gap: 8px;
  }
  .time-card {
    padding: 20px 8px;
  }
  .time-card h3 {
    font-size: 1.2rem;
  }
  .hero-stat h3 {
    font-size: 0.9rem;
  }
  .event-card {
    min-height: 220px;
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 6;
    height: 250px;
  }
  .gallery-item:nth-child(2) {
    grid-column: span 3;
    height: 180px;
  }
  .gallery-item:nth-child(3) {
    grid-column: span 3;
    height: 180px;
  }
  .gallery-item:nth-child(4) {
    grid-column: span 2;
    height: 160px;
  }
  .gallery-item:nth-child(5) {
    grid-column: span 2;
    height: 160px;
  }
  .gallery-item:nth-child(6) {
    grid-column: span 2;
    height: 160px;
  }
}

/* =========================================================
   CURSOR TRAIL — REMOVED (replaced by torch effect)
========================================================= */

/* =========================================================
   SPARKLE ANIMATION
========================================================= */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(168, 85, 247, 0.4));
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
  pointer-events: none;
  animation: sparkleFloat 1.2s ease-out forwards;
}
@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0);
  }
}

/* =========================================================
   HOLOGRAPHIC EVENT CARDS — rainbow shimmer follows mouse
========================================================= */
.event-card {
  --holo-x: 50%;
  --holo-y: 50%;
  --holo-opacity: 0;
  --holo-angle: 0deg;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

/* Holographic shimmer layer */
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 80% at var(--holo-x) var(--holo-y),
    rgba(255, 0, 128, 0.22) 0%,
    rgba(255, 100, 0, 0.18) 12%,
    rgba(255, 220, 0, 0.16) 24%,
    rgba(0, 255, 150, 0.16) 36%,
    rgba(0, 150, 255, 0.18) 48%,
    rgba(150, 0, 255, 0.2) 60%,
    rgba(255, 0, 200, 0.18) 72%,
    transparent 85%
  );
  mix-blend-mode: screen;
  opacity: var(--holo-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

/* Foil shimmer overlay */
.event-card .holo-foil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    calc(var(--holo-angle)),
    transparent 0%,
    rgba(255, 255, 255, 0.03) 1%,
    transparent 2%,
    rgba(168, 85, 247, 0.04) 3%,
    transparent 4%
  );
  mix-blend-mode: overlay;
  opacity: var(--holo-opacity);
  pointer-events: none;
  z-index: 11;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

/* =========================================================
   MAGNETIC BUTTONS — spring physics
========================================================= */
.btn {
  transition:
    transform 0.15s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
  will-change: transform;
}
.btn.magnetic-near {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.4),
    0 0 60px rgba(168, 85, 247, 0.15);
}
.btn-primary.magnetic-near {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 80px rgba(124, 58, 237, 0.25),
    0 14px 36px rgba(124, 58, 237, 0.32);
}

/* =========================================================
   HERO GALAXY EFFECTS — ambient light layers
========================================================= */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 30%,
      rgba(80, 20, 180, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 80% 70%,
      rgba(50, 10, 120, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 80% 30% at 50% 90%,
      rgba(0, 0, 0, 0.8) 0%,
      transparent 100%
    );
  pointer-events: none;
}

/* =========================================================
   STORY STRIP — LANDO STYLE MEGA UPGRADE
========================================================= */
.story-strip {
  position: relative;
  z-index: 10;
  overflow: visible;
}

.story-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: #020202;
}

/* Behind each panel — shifted gradient light */
.story-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 60% at 50% 60%,
    rgba(124, 58, 237, 0.04),
    transparent 70%
  );
  animation: panelPulse 6s ease-in-out infinite;
}
@keyframes panelPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.story-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15em;
  line-height: 1;
}

/* Story word base */
.story-word {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 9rem);
  letter-spacing: -0.01em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.12);
  transition: none;

  /* LANDO STYLE: starts blurred, small, offset */
  opacity: 0;
  filter: blur(20px);
  transform: translateY(40px) scale(0.9);
  will-change: opacity, filter, transform;
}

/* Revealed state */
.story-word.revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
  color: rgba(255, 255, 255, 0.88);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.6s ease;
}

/* Accent line words — chrome + bigger */
.story-line-accent .story-word {
  font-size: clamp(5.5rem, 15vw, 12rem);
  background: linear-gradient(
    160deg,
    var(--chrome-peak) 0%,
    var(--chrome-hi) 25%,
    var(--purple3) 50%,
    rgba(255, 255, 255, 0.9) 70%,
    var(--chrome-peak) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: none;
}
.story-line-accent .story-word.revealed {
  animation: chromeShift 4s ease-in-out infinite;
}
@keyframes chromeShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* "IS HERE." sub line — mono style */
.story-line-sub .story-word {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 2.2rem);
  letter-spacing: 8px;
  color: rgba(168, 85, 247, 0.7);
  filter: blur(5px);
  transform: translateY(20px);
}
.story-line-sub .story-word.revealed {
  color: rgba(168, 85, 247, 0.9);
  text-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 60px rgba(168, 85, 247, 0.2);
}

/* Panel 2 special — words from sides */
[data-story="1"] .story-word:nth-child(odd) {
  transform: translateX(-60px) translateY(20px) scale(0.9);
}
[data-story="1"] .story-word:nth-child(even) {
  transform: translateX(60px) translateY(20px) scale(0.9);
}
[data-story="1"] .story-word.revealed {
  transform: translateX(0) translateY(0) scale(1);
}

/* Panel 3 — SRISHTI 2K26 neon outline effect */
[data-story="2"] .story-line-accent .story-word.revealed {
  text-shadow:
    0 0 20px rgba(168, 85, 247, 0.6),
    0 0 40px rgba(124, 58, 237, 0.4),
    0 0 80px rgba(168, 85, 247, 0.2);
  filter: none;
}

/* Horizontal rule between panels */
.story-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(168, 85, 247, 0.3), transparent);
  pointer-events: none;
}
[data-story="2"]::after {
  display: none;
}

/* =========================================================
   SCHOOL SECTION — LOGO + MEGA GLOW
========================================================= */
.school-section {
  position: relative;
  overflow: hidden;
}
.school-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(124, 58, 237, 0.06),
    transparent 70%
  );
  pointer-events: none;
  animation: schoolGlow 8s ease-in-out infinite;
}
@keyframes schoolGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.school-inner {
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.013);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 80px rgba(124, 58, 237, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  padding: 60px 40px !important;
  max-width: 760px;
  margin-inline: auto;
}

/* Animated neon border */
.school-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 33px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 70%,
    rgba(168, 85, 247, 0.6) 80%,
    rgba(255, 255, 255, 0.3) 85%,
    rgba(168, 85, 247, 0.6) 90%,
    transparent 100%
  );
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate {
  to {
    --border-angle: 360deg;
  }
}
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Logo display */
.school-logo-halo {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}
.school-section-logo {
  width: min(220px, 55vw);
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.5))
    drop-shadow(0 0 80px rgba(168, 85, 247, 0.25));
  position: relative;
  z-index: 2;
  animation: logoFloat 5s ease-in-out infinite;
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}
.school-section-logo:hover {
  filter: drop-shadow(0 0 80px rgba(124, 58, 237, 0.9))
    drop-shadow(0 0 160px rgba(168, 85, 247, 0.5));
  transform: scale(1.05) translateY(-4px);
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glowing rings — REMOVED */
.school-logo-ring {
  display: none;
}

/* School name chrome */
.school-name {
  background: linear-gradient(
    160deg,
    var(--chrome-peak) 0%,
    var(--chrome-hi) 30%,
    var(--purple3) 55%,
    var(--chrome-hi) 75%,
    var(--chrome-peak) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: chromeShift 6s ease-in-out infinite;
  text-shadow: none;
}

/* =========================================================
   SCHEDULE — GLOW REDESIGN
========================================================= */
.schedule-wrapper {
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.08);
}
.schedule-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(168, 85, 247, 0.6),
    rgba(124, 58, 237, 0.8),
    rgba(168, 85, 247, 0.6),
    transparent
  );
  border-radius: 999px;
}

/* Time — chrome gradient numbers */
.sch-time {
  background: linear-gradient(
    135deg,
    var(--chrome-peak),
    var(--chrome-hi),
    var(--purple3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2rem !important;
}

/* Dot pulse animation */
.sch-dot {
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.45);
  }
  50% {
    box-shadow:
      0 0 28px rgba(168, 85, 247, 0.9),
      0 0 60px rgba(124, 58, 237, 0.4);
  }
}

/* Schedule item hover — glow border */
.schedule-item:hover .schedule-info {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow:
    0 0 30px rgba(124, 58, 237, 0.08),
    inset 0 0 20px rgba(168, 85, 247, 0.03);
  transform: translateX(6px);
}

/* Schedule info heading chrome */
.schedule-info h4 {
  background: linear-gradient(135deg, #fff, rgba(192, 192, 220, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Item entrance stagger — set via JS */
.schedule-item {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.schedule-item.sch-visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   SECTION HEADER — ENHANCED
========================================================= */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--chrome-peak) 0%,
    var(--purple3) 50%,
    var(--chrome-peak) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: chromeShift 5s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.section-header:hover .section-title::after {
  opacity: 1;
}

/* =========================================================
   TEAM CARDS — HOVER CHROME GLOW
========================================================= */
.team-card {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: conic-gradient(
    from 0deg,
    transparent 75%,
    rgba(168, 85, 247, 0.4) 85%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  animation: teamBorderSpin 3s linear infinite paused;
}
.team-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes teamBorderSpin {
  to {
    --border-angle: 360deg;
  }
}

.team-card:hover .team-avatar {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 60px rgba(124, 58, 237, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
}
.team-avatar {
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* =========================================================
   COUNTDOWN CARDS
========================================================= */
.time-card {
  transition: var(--transition);
}

/* =========================================================
   NAV LINKS — CHROME HOVER
========================================================= */
.nav-links a:hover {
  background: linear-gradient(135deg, var(--chrome-peak), var(--purple3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   GALLERY ITEMS — HOLO HOVER
========================================================= */
.gallery-item {
  --g-holo-x: 50%;
  --g-holo-y: 50%;
  --g-holo-opacity: 0;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 60% 60% at var(--g-holo-x) var(--g-holo-y),
    rgba(168, 85, 247, 0.25) 0%,
    rgba(0, 200, 255, 0.15) 35%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: var(--g-holo-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

/* =========================================================
   DIVIDER BADGE — SPIN
========================================================= */
.divider-icon {
  display: inline-block;
  animation: badgeSpin 8s linear infinite;
  color: rgba(168, 85, 247, 0.6);
}
@keyframes badgeSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   FLOATING NEON ORBS — hero ambient
========================================================= */
/* hero orbs removed */

/* =========================================================
   ABOUT CARDS — TILT GLOW
========================================================= */
.about-card {
  --card-x: 50%;
  --card-y: 50%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 60% 60% at var(--card-x) var(--card-y),
    rgba(168, 85, 247, 0.12) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.about-card:hover::after {
  opacity: 1;
}

/* =========================================================
   HERO STAT CARDS — CHROME GLOW ON HOVER
========================================================= */
.hero-stat {
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(168, 85, 247, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-stat:hover::before {
  opacity: 1;
}
.hero-stat:hover h3 {
  animation: statGlow 0.4s ease forwards;
}
@keyframes statGlow {
  to {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  }
}

/* =========================================================
   FOOTER — LOGO HOVER GLOW
========================================================= */
.footer-logo {
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
  cursor: pointer;
}
.footer-logo:hover {
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.8))
    drop-shadow(0 0 80px rgba(168, 85, 247, 0.4));
  transform: scale(1.08) translateY(-4px);
}

/* =========================================================
   EVENTS SECTION TAG — NEON
========================================================= */
.section-tag {
  font-size: 0.62rem;
  letter-spacing: 6px;
  color: rgba(168, 85, 247, 0.7);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  font-family: var(--font-mono);
}

/* =========================================================
   SPARKLE ELEMENTS
========================================================= */
.sparkle {
  position: absolute;
  pointer-events: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.9);
  animation: sparkleFade 1.2s ease forwards;
}
@keyframes sparkleFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--sx, 0px), var(--sy, -40px)) scale(0);
    opacity: 0;
  }
}

/* =========================================================
   GLITCH EFFECT — on hover section titles (fixed: no clip-path flicker)
========================================================= */
.section-title {
  position: relative;
  cursor: default;
}
.section-title:hover {
  animation: textGlitch 0.5s steps(3) 1;
}
@keyframes textGlitch {
  0% {
    transform: skewX(0deg) translateX(0);
  }
  20% {
    transform: skewX(-1.5deg) translateX(-2px);
  }
  40% {
    transform: skewX(2deg) translateX(2px);
  }
  60% {
    transform: skewX(-1deg) translateX(-1px);
  }
  80% {
    transform: skewX(1deg) translateX(1px);
  }
  100% {
    transform: skewX(0deg) translateX(0);
  }
}

/* =========================================================
   SCROLL-TO-TOP BUTTON
========================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(12px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  font-size: 1.1rem;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top-btn:hover {
  background: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
}
/* =========================================================
   STORY REVEAL LOGO — panel 3 logo instead of text
========================================================= */
/* =========================================================
   STORY LOGO REVEAL — CLEAN CINEMATIC VERSION
========================================================= */

.story-line-logo {
  position: relative;
  overflow: visible;
}

.story-reveal-logo {
  width: min(72vw, 720px);
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;

  opacity: 0;
  transform: translateY(80px) scale(0.92);

  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s ease;

  /* KEEP LOGO SHARP */
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.18))
    drop-shadow(0 0 80px rgba(124, 58, 237, 0.1));

  will-change: transform, opacity;
}

/* reveal state */
.story-word.revealed.story-reveal-logo {
  opacity: 1;

  transform: translateY(0) scale(1);

  filter: drop-shadow(0 0 38px rgba(168, 85, 247, 0.22))
    drop-shadow(0 0 120px rgba(124, 58, 237, 0.14));
}

/* SOFT LIGHT BEHIND LOGO */
.story-line-logo::before {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 70%;
  height: 70%;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.16) 0%,
    rgba(124, 58, 237, 0.08) 35%,
    transparent 75%
  );

  filter: blur(60px);

  opacity: 0;

  transition: opacity 1.6s ease;

  pointer-events: none;
}

/* glow reveal */
.story-panel[data-story="2"] .story-word.revealed.story-reveal-logo + * {
  opacity: 1;
}

/* fallback safer selector */
.story-panel[data-story="2"] .story-line-logo.revealed::before,
.story-panel[data-story="2"] .story-word.revealed ~ * {
  opacity: 1;
}
@keyframes storyLogoFloat {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.008) translateY(-8px);
  }
}

/* =========================================================
   SCHOOL GALAXY CANVAS
========================================================= */
#schoolGalaxyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.school-section > *:not(#schoolGalaxyCanvas) {
  position: relative;
  z-index: 1;
}
/* Make the school-inner card more transparent so stars show through */
.school-inner {
  background: rgba(4, 2, 12, 0.72) !important;
  backdrop-filter: blur(28px) !important;
}

/* =========================================================
   TYPOGRAPHY CHAR HOVER — hero heading (flicker-free)
========================================================= */
.hero-heading.chars-split {
  cursor: default;
}
.hero-char {
  display: inline-block;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1)
      calc(var(--ci, 0) * 0.022s),
    filter 0.36s ease calc(var(--ci, 0) * 0.018s),
    color 0.3s ease;
  cursor: default;
  will-change: transform, filter;
}
/* Lift on parent hover — stable, no flicker */
.hero-heading.chars-split:hover .hero-char {
  transform: translateY(-5px) scale(1.07);
  filter: drop-shadow(0 0 9px rgba(168, 85, 247, 0.85));
}
.hero-heading.chars-split:hover .hero-char:nth-child(3n + 1) {
  transform: translateY(-8px) scale(1.1) rotate(-2.5deg);
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.9));
}
.hero-heading.chars-split:hover .hero-char:nth-child(3n + 2) {
  transform: translateY(-4px) scale(1.06) rotate(1.8deg);
  filter: drop-shadow(0 0 8px rgba(200, 160, 255, 0.8));
}
.hero-heading.chars-split:hover .hero-char:nth-child(3n) {
  transform: translateY(-11px) scale(1.13) rotate(3.5deg);
  filter: drop-shadow(0 0 16px rgba(220, 100, 255, 0.95))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.hero-char.hero-space {
  pointer-events: none;
  transition: none;
}

/* ===== CINEMATIC PATCHES ===== */

.hero,
.hero-overlay,
.hero-content,
.hero-logo,
.section-title,
.hero-heading {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform-style: preserve-3d;
}

.hero {
  background: transparent !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(168, 85, 247, 0.1),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(124, 58, 237, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.03),
      transparent 45%
    );
  filter: blur(60px);
  animation: nebulaShift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes nebulaShift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.08);
  }
}

.hero-logo {
  animation:
    heroLogoReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
    cinematicFloat 7s ease-in-out infinite 2.5s;
}

@keyframes cinematicFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.01);
  }
}

.hero-heading,
.section-title,
.nav-links a,
.about-card h3 {
  will-change: transform, opacity;
}

.hero-heading:hover,
.section-title:hover {
  transform: translateZ(0);
}

.ambient-word {
  animation: ambientDrift 16s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  filter: blur(0.2px);
}

.ambient-word:nth-child(2n) {
  animation-duration: 22s;
}

.ambient-word:nth-child(3n) {
  animation-duration: 28s;
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0px, 0px, 0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translate3d(24px, -14px, 0px) rotate(1deg);
    opacity: 0.18;
  }
  100% {
    transform: translate3d(-18px, 16px, 0px) rotate(-1deg);
    opacity: 0.12;
  }
}

.hero-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.18),
    transparent 60%
  );
  filter: blur(45px);
  z-index: 0;
  opacity: 0.9;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

.event-card,
.about-card,
.hero-stat,
.btn {
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    background 0.45s ease;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(2, 2, 2, 0.35) 65%,
    rgba(2, 2, 2, 0.88) 100%
  ) !important;
}

/* ===== ULTRA CINEMATIC NAVBAR ===== */

nav#navbar {
  padding: 10px 2.2vw !important;
  background: rgba(8, 8, 12, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

nav#navbar.scrolled {
  padding: 8px 2vw !important;
  background: rgba(5, 5, 8, 0.48) !important;
  backdrop-filter: blur(36px) saturate(220%);
}

.nav-brand img {
  width: 28px !important;
  opacity: 0.95;
}

.nav-links {
  gap: 14px !important;
}

.nav-links a {
  font-size: 0.62rem !important;
  letter-spacing: 1.8px;
  opacity: 0.62;
}

.icon-btn {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

/* ===== STORY LOGO FIX ===== */

.story-line-logo {
  margin-bottom: 20px;
}

.story-reveal-logo {
  width: min(700px, 80vw);
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s ease;
  filter: drop-shadow(0 0 35px rgba(148, 80, 255, 0.55))
    drop-shadow(0 0 80px rgba(120, 50, 240, 0.25));
}

.story-word.revealed.story-reveal-logo {
  opacity: 1;
  transform: translateY(0px) scale(1);
}

.story-line-sub {
  position: relative;
  z-index: 4;
  margin-top: 10px;
}

.story-line-sub .story-word {
  font-size: clamp(4rem, 10vw, 9rem);
  opacity: 0.75;
  text-shadow:
    0 0 20px rgba(168, 85, 247, 0.35),
    0 0 80px rgba(124, 58, 237, 0.2);
}

.story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(168, 85, 247, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.03),
      transparent 30%
    );
  pointer-events: none;
}

/* ===== MASSIVE GALAXY / NEBULA ATMOSPHERE ===== */

#nebulaCanvas {
  opacity: 1;
  filter: saturate(150%) contrast(120%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(132, 0, 255, 0.18),
      transparent 20%
    ),
    radial-gradient(circle at 80% 30%, rgba(82, 0, 255, 0.16), transparent 24%),
    radial-gradient(
      circle at 60% 75%,
      rgba(174, 0, 255, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 35% 60%,
      rgba(255, 255, 255, 0.05),
      transparent 18%
    );
  mix-blend-mode: screen;
  filter: blur(80px);
  animation: galaxyFloat 20s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes galaxyFloat {
  0% {
    transform: translate3d(-2%, 0%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, -2%, 0) scale(1.08);
  }
}

/* ===== CINEMATIC MICRO ANIMATIONS ===== */

.hero-stat {
  animation: statFloat 8s ease-in-out infinite;
}

.hero-stat:nth-child(2) {
  animation-delay: 1s;
}

.hero-stat:nth-child(3) {
  animation-delay: 2s;
}

.hero-stat:nth-child(4) {
  animation-delay: 3s;
}

@keyframes statFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section-title {
  text-shadow:
    0 0 35px rgba(168, 85, 247, 0.18),
    0 0 80px rgba(124, 58, 237, 0.08);
}

.about-card:hover,
.event-card:hover {
  box-shadow:
    0 20px 60px rgba(124, 58, 237, 0.16),
    0 0 0 1px rgba(168, 85, 247, 0.12);
}

/* ===== BETTER MOBILE VISIBILITY ===== */

@media (max-width: 768px) {
  nav {
    padding: 8px 14px !important;
  }

  .nav-links {
    display: none;
  }

  .story-line-sub .story-word {
    font-size: clamp(2.6rem, 13vw, 5rem);
  }

  .story-reveal-logo {
    width: 92vw;
  }
}

/* ===== FINAL HERO / NAV / BACKGROUND FIXES ===== */

/* Navbar fully fixed above canvas */
nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999 !important;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Push all bg layers properly */
#nebulaCanvas,
#particleCanvas,
.hero::before,
.hero::after {
  top: 0;
  left: 0;
}

/* Remove background flicker */
body,
.hero,
.section,
.story-strip {
  transform: translateZ(0);
  backface-visibility: hidden;
}

#nebulaCanvas,
#particleCanvas {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Hero section more alive */
.hero {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(124, 58, 237, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(168, 85, 247, 0.12),
      transparent 20%
    ),
    radial-gradient(circle at 60% 70%, rgba(95, 0, 180, 0.18), transparent 30%),
    #020202;
}

/* Strong visible nebula atmosphere */
.hero::before {
  opacity: 1;
  filter: blur(55px) saturate(170%);
}

.hero::after {
  opacity: 0.95;
  filter: blur(65px) saturate(180%);
}

/* Story logo only */
.story-line-logo {
  margin-bottom: 0;
}

.story-reveal-logo {
  display: block;
  margin: auto;
  filter: drop-shadow(0 0 45px rgba(168, 85, 247, 0.65))
    drop-shadow(0 0 110px rgba(124, 58, 237, 0.35))
    drop-shadow(0 0 220px rgba(80, 0, 180, 0.22));
}

/* Better cinematic logo movement */
.story-reveal-logo.revealed {
  animation: storyLogoFloat 7s ease-in-out infinite;
}

@keyframes storyLogoFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.015);
  }
}

/* Torch radius HALF */
#torchCanvas {
  opacity: 0.92;
}

/* Smooth anchor scroll */
html {
  scroll-behavior: smooth !important;
}

/* Better menu spacing */
.nav-links {
  align-items: center;
}

.nav-links a {
  padding: 4px 0;
}

/* More visible galaxies */
.galaxy-orb {
  mix-blend-mode: screen;
  opacity: 0.45 !important;
}

/* Extra atmospheric stars */
.hero .cinematic-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 25px rgba(168, 85, 247, 0.45);
  pointer-events: none;
  z-index: 2;
  animation: starPulse 4s ease-in-out infinite;
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.8);
  }
}

/* ===== SAFE SCROLL FIX ===== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

/* prevent overlay layers blocking wheel/touchpad scroll */
#nebulaCanvas,
#particleCanvas,
#auroraCanvas,
.noise,
.grid-overlay,
.hero-overlay,
.parallax-layer {
  pointer-events: none !important;
}

/* ensure preloader fully disappears */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}

/* seamless navbar */
nav#navbar {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* remove top seam */
nav#navbar.scrolled {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* extend hero behind navbar */
.hero {
  padding-top: 160px !important;
  margin-top: -100px;
}

/* stable hover animation */
.events-grid {
  overflow: visible;
}

.event-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.22);
}

/* movement logo reveal */
.story-reveal-logo {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  filter: blur(12px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-word.revealed.story-reveal-logo {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) drop-shadow(0 0 40px rgba(168, 85, 247, 0.5))
    drop-shadow(0 0 100px rgba(124, 58, 237, 0.24));
}

/* gpu acceleration */
.hero-content,
.parallax-layer,
.hero-logo,
.story-word,
.section-title {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* better preloader */
#preloader {
  background: radial-gradient(
    circle at center,
    rgba(124, 58, 237, 0.16),
    rgba(0, 0, 0, 1) 70%
  );
}

.preloader-logo {
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.45));
}

/* =========================================================
   CRITICAL SCROLL FIXES
========================================================= */

html,
body {
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: auto;
}

body {
  position: relative;
  touch-action: auto;
}

/* ALL CANVASES MUST IGNORE POINTERS */
canvas {
  pointer-events: none !important;
}

/* missing canvas fix */
#auroraCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none !important;
}

/* hero overflow fix */
.hero {
  overflow: clip;
}

/* ensure no invisible layer blocks scroll */
.hero-overlay,
.parallax-layer,
.hero-ambient-words,
.noise,
.grid-overlay,
.scroll-progress {
  pointer-events: none !important;
}

/* preloader full disable */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

/* mobile scroll stability */
body.menu-open {
  overflow: hidden;
}

/* smoother transforms */
.hero-content {
  will-change: transform;
  transform-style: preserve-3d;
}

/* prevent weird mobile touch blocking */
* {
  -webkit-tap-highlight-color: transparent;
}

/* FIX BLACK BAR TOP */
nav#navbar {
  background: transparent;
}

nav#navbar.scrolled {
  background: rgba(2, 2, 2, 0.72);
  backdrop-filter: blur(24px);
}

/* =========================================================
   MOBILE STORY FIX
========================================================= */
/* =========================================================
   MOBILE STORY FIX
========================================================= */

@media (max-width: 768px) {
  .story-panel {
    min-height: 52vh;

    padding: 70px 5vw;

    overflow: hidden;
  }

  .story-line {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 0;

    overflow: visible;
  }

  .story-word {
    font-size: 18vw;

    line-height: 0.82;

    letter-spacing: -2px;

    text-align: center;

    white-space: normal;

    word-break: keep-all;

    overflow-wrap: normal;
  }

  .story-line-accent .story-word {
    font-size: 19vw;

    line-height: 0.78;
  }
}
/* prevent stuck preloaders */

body.loaded {
  overflow-y: auto !important;
}

#preloader {
  will-change: opacity;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto !important;
}

body {
  position: relative;
}

/* Preloader visibility handled in css/animations.css + js/preloader.js */

.preloader-logo {
  animation: preloaderFloat 4s ease-in-out infinite;
}

@keyframes preloaderFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}
/* =========================================================
   MOBILE MASTER FIX
========================================================= */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    overflow-x: hidden;
  }

  /* =========================================
     GLOBAL
  ========================================= */

  .section {
    padding: 80px 5vw;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .section-title {
    font-size: clamp(2.4rem, 14vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: 1px;
  }

  .section-tag {
    font-size: 0.55rem;
    letter-spacing: 4px;
  }

  /* =========================================
     NAVBAR
  ========================================= */

  nav {
    padding: 18px 5vw;
  }

  nav.scrolled {
    padding: 14px 5vw;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-brand img {
    width: 34px;
  }

  /* =========================================
     HERO
  ========================================= */

  .hero {
    min-height: 100svh;
    padding: 110px 5vw 80px;
  }

  .hero-topline {
    letter-spacing: 4px;
    font-size: 0.5rem;
    margin-bottom: 18px;
  }

  .hero-logo {
    width: 96vw;
    max-width: 96vw;
  }

  .hero-description {
    max-width: 92%;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    min-height: 52px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 34px;
  }

  .hero-stat {
    padding: 18px 12px;
    border-radius: 18px;
  }

  .hero-stat h3 {
    font-size: 1.4rem;
  }

  .hero-stat p {
    font-size: 0.52rem;
    letter-spacing: 1.8px;
  }

  .hero-scroll-hint {
    bottom: 24px;
  }

  /* =========================================
     AMBIENT WORDS
  ========================================= */

  .ambient-word {
    opacity: 0.12 !important;
    font-size: 10vw !important;
  }

  /* =========================================
     STORY STRIP
  ========================================= */

  .story-strip {
    overflow: visible;
  }

  .story-panel {
    min-height: 52vh;
    padding: 70px 5vw;
    overflow: visible;
  }

  .story-line {
    overflow: visible;
    width: 100%;
    gap: 0.15em;
  }

  .story-word {
    font-size: 14vw;
    line-height: 0.95;
    letter-spacing: 0;
    text-align: center;
    transform: none;
  }

  .story-line-accent .story-word {
    font-size: 17vw;
  }

  .story-reveal-logo {
    width: 92vw;
    max-width: 92vw;
  }

  /* =========================================
     DIVIDER
  ========================================= */

  .section-divider {
    gap: 12px;
    padding: 50px 5vw 0;
  }

  .divider-label {
    font-size: 0.5rem;
    letter-spacing: 3px;
  }

  /* =========================================
     SCHOOL SECTION
  ========================================= */

  .school-section {
    padding: 70px 5vw;
  }

  .school-inner {
    padding: 38px 22px;
    border-radius: 24px;
  }

  .school-name {
    font-size: clamp(2rem, 12vw, 4rem);
    letter-spacing: 1px;
  }

  .school-sub {
    font-size: 0.62rem;
    letter-spacing: 2px;
  }

  .school-desc {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  /* =========================================
     ABOUT
  ========================================= */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-card {
    padding: 26px;
    border-radius: 22px;
  }

  /* =========================================
     MARQUEE
  ========================================= */

  .legacy-track-wrap {
    padding: 20px 0;
  }

  .legacy-word {
    font-size: 20vw;
    padding: 0 18px;
  }

  /* =========================================
     EVENTS
  ========================================= */

  .events-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;

    padding-bottom: 12px;

    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .events-grid::-webkit-scrollbar {
    display: none;
  }

  .event-card {
    min-width: 84vw;
    scroll-snap-align: center;
    min-height: 260px;
    padding: 24px;
    border-radius: 22px;
  }

  .event-number {
    font-size: 3.5rem;
  }

  .event-content h3 {
    font-size: 1.5rem;
  }

  /* =========================================
     SCHEDULE
  ========================================= */

  .schedule-wrapper {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .schedule-tabs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 90px;
  }

  .schedule-item {
    gap: 14px;
  }

  .schedule-info h4 {
    font-size: 1rem;
  }

  .schedule-info p {
    font-size: 0.82rem;
  }

  /* =========================================
     GALLERY
  ========================================= */

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item {
    min-height: 240px;
  }

  /* =========================================
     TEAM
  ========================================= */

  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* =========================================
     COUNTDOWN
  ========================================= */

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .count-box {
    padding: 22px 12px;
  }

  .count-value {
    font-size: 2rem;
  }

  /* =========================================
     FOOTER
  ========================================= */

  footer {
    padding: 60px 5vw 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* =========================================
     MOBILE PERFORMANCE
  ========================================= */

  .noise {
    opacity: 0.08;
  }

  .grid-overlay {
    opacity: 0.3;
  }

  .layer-back,
  .layer-mid {
    filter: blur(40px);
  }

  .hero-logo,
  .story-reveal-logo {
    filter: drop-shadow(0 0 18px rgba(148, 80, 255, 0.35))
      drop-shadow(0 0 42px rgba(120, 50, 240, 0.12));
  }

  /* disable expensive hover states */
  .event-card:hover,
  .about-card:hover,
  .hero-stat:hover {
    transform: none;
  }
}
/* =========================================================
   MOBILE HERO LOGO COMPOSITION FIX
========================================================= */

@media (max-width: 768px) {
  .hero-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: visible;

    margin-top: 10px;
  }

  .hero-logo {
    width: 118vw;
    max-width: none;

    margin-left: -9vw;

    object-fit: contain;

    transform-origin: center center;

    filter: contrast(1.05) brightness(1.04)
      drop-shadow(0 0 18px rgba(148, 80, 255, 0.28));
  }
}

/* =========================================================
   TEAM SECTION MOBILE FIX
========================================================= */

@media (max-width: 768px) {
  .team-section .section-title,
  .team-title {
    font-size: clamp(2.2rem, 11vw, 4rem);

    line-height: 0.9;

    letter-spacing: -1px;

    text-align: center;

    max-width: 100%;

    white-space: normal;

    overflow-wrap: break-word;

    padding-inline: 4vw;
  }

  .team-section .section-header {
    margin-bottom: 42px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;

    gap: 12px;
  }

  .team-card {
    padding: 18px 14px;

    min-height: 180px;

    border-radius: 20px;
  }

  .team-card h3 {
    font-size: 1rem;

    line-height: 1.1;
  }

  .team-card p {
    font-size: 0.52rem;

    letter-spacing: 2px;
  }
}
/* =========================================================
   REAL OVERFLOW FIX
========================================================= */

html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* ONLY stop accidental overflow */
body {
  position: relative;
}

/* media safety */
img,
video {
  max-width: 100%;
  height: auto;
}

/* prevent giant sections causing scroll */
.hero,
.story-strip,
.section {
  overflow-x: clip;
}

/* marquee fix */
.legacy-marquee-section {
  overflow: hidden;
}

/* canvas layers */
canvas {
  max-width: 100%;
  pointer-events: none;
}

/* mobile only */
@media (max-width: 768px) {
  .hero {
    padding-inline: 5vw;
  }

  .hero-logo {
    width: min(95vw, 700px);
  }

  .story-reveal-logo {
    width: min(92vw, 650px);
  }

  .events-grid {
    overflow-x: auto;
  }
}
/* =========================================================
   MOBILE OVERFLOW FIX
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* prevents transformed elements creating side scroll */
body {
  position: relative;
}

/* FIX HERO OVERFLOW */
.hero {
  overflow: hidden;
}

/* floating ambient words were causing overflow */
.hero-ambient-words {
  overflow: hidden;
  width: 100%;
}

/* marquee containment */
.legacy-marquee-section {
  overflow: hidden;
}

/* prevent giant elements from exceeding viewport */
.hero-logo,
.story-reveal-logo,
.section-title,
.team-title {
  max-width: 100%;
}

/* media safety */
img,
video,
canvas {
  max-width: 100%;
}

/* =========================================================
   MOBILE HERO LOGO FIX
========================================================= */

@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-logo {
    width: min(88vw, 560px);

    margin: 0 auto;

    display: block;

    transform: none !important;
  }
}
/* =========================================================
   MOBILE TYPOGRAPHY
========================================================= */

@media (max-width: 768px) {
  .section-title {
    font-size: clamp(2.2rem, 10vw, 4rem);
    line-height: 0.95;
    letter-spacing: 0;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 90%;
  }

  .story-word {
    font-size: 13vw;
    line-height: 0.9;
  }

  .story-line-accent .story-word {
    font-size: 16vw;
  }

  .legacy-word {
    font-size: 18vw;
  }

  .team-title {
    font-size: 11vw;
    line-height: 0.92;
  }

  .event-content h3 {
    font-size: 1.3rem;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }
}
/* =========================================================
   MOBILE HERO STATS STRIP
========================================================= */

@media (max-width: 768px) {
  .hero-stats {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    margin-top: 28px;

    padding: 12px 10px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(18px);

    overflow: hidden;
  }

  .hero-stat {
    flex: 1;

    min-width: 0;

    padding: 0;

    background: none;

    border: none;

    border-radius: 0;

    backdrop-filter: none;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 2px;
  }

  .hero-stat:hover {
    transform: none;
  }

  .hero-stat h3 {
    font-size: 1.15rem;

    line-height: 1;

    margin: 0;
  }

  .hero-stat p {
    font-size: 0.42rem;

    letter-spacing: 1px;

    line-height: 1;

    text-align: center;

    opacity: 0.6;
  }
}

/* =========================================================
   MOBILE COUNTDOWN
========================================================= */

@media (max-width: 768px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
  }

  .count-box {
    min-height: 100px;

    padding: 18px 10px;

    border-radius: 18px;
  }

  .count-value {
    font-size: 2rem;

    line-height: 1;
  }

  .count-label {
    font-size: 0.5rem;

    letter-spacing: 2px;
  }
}
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
/* =========================================================
   FINAL MOBILE FIX
========================================================= */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }

  body {
    position: relative;
  }

  /* =========================================
     GLOBAL
  ========================================= */

  * {
    box-sizing: border-box;
  }

  img,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }

  section,
  .section,
  .hero,
  .story-strip,
  .story-panel {
    overflow-x: hidden;
  }

  /* =========================================
     HERO
  ========================================= */

  .hero {
    padding-inline: 5vw;
  }

  .hero-logo {
    width: min(88vw, 560px);
    margin-inline: auto;
    display: block;
  }

  /* =========================================
     STORY FIX
  ========================================= */

  .story-panel {
    min-height: 48vh;

    padding: 60px 4vw;

    display: flex;

    justify-content: center;

    align-items: center;
  }

  .story-line {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    overflow: visible;
  }

  .story-word {
    font-size: 16vw;

    line-height: 0.82;

    letter-spacing: -2px;

    text-align: center;

    white-space: normal;

    word-break: keep-all;

    overflow-wrap: normal;

    max-width: 100%;
  }

  .story-line-accent .story-word {
    font-size: 17vw;

    line-height: 0.78;
  }

  /* =========================================
     COUNTDOWN FIX
  ========================================= */

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    width: 100%;
  }

  .count-box {
    min-height: 95px;

    padding: 16px 8px;

    border-radius: 16px;
  }

  .count-value {
    font-size: 1.9rem;

    line-height: 1;
  }

  .count-label {
    font-size: 0.48rem;

    letter-spacing: 1.5px;
  }

  /* =========================================
     MOBILE MENU FIX
  ========================================= */

  .mobile-menu {
    width: 78vw;

    max-width: 320px;

    overflow-x: hidden;
  }

  /* =========================================
     REMOVE RIGHT BLACK SPACE
  ========================================= */

  .hero-ambient-words,
  .legacy-marquee-section,
  .legacy-track-wrap {
    overflow: hidden;
  }
}
/* =========================================================
   FINAL MOBILE PATCH
========================================================= */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  /* =========================================
     REMOVE ALL SIDE OVERFLOW
  ========================================= */

  .hero,
  .story-strip,
  .story-panel,
  .section,
  .countdown-section,
  .legacy-marquee-section {
    overflow-x: hidden !important;
  }

  /* =========================================
     STORY TEXT FIX
  ========================================= */

  .story-line {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    overflow: visible;
  }

  .story-word {
    font-size: 15vw !important;

    line-height: 0.82;

    letter-spacing: -1px;

    text-align: center;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;

    max-width: 92vw;
  }

  .story-line-accent .story-word {
    font-size: 16vw !important;
  }

  /* =========================================
     COUNTDOWN FIX
  ========================================= */

  .countdown-grid {
    width: 100%;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

    padding-inline: 4vw;
  }

  .count-box {
    width: 100%;

    min-width: 0;

    min-height: 90px;

    padding: 14px 8px;

    border-radius: 16px;
  }

  .count-value {
    font-size: 1.8rem;
  }

  .count-label {
    font-size: 0.45rem;

    letter-spacing: 1px;
  }

  /* =========================================
     MOBILE MENU
  ========================================= */

  .mobile-menu {
    width: 78vw;

    max-width: 320px;

    overflow-x: hidden;
  }
}

/* =========================================================
   OVERRIDE STORY MOBILE FIX
========================================================= */

@media (max-width: 768px) {
  .story-panel {
    overflow: hidden !important;
    padding: 60px 6vw !important;
  }

  .story-line {
    width: 100% !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    overflow: visible !important;
  }

  .story-word {
    font-size: 13vw !important;

    line-height: 0.84 !important;

    letter-spacing: -1px !important;

    text-align: center !important;

    max-width: 100% !important;

    white-space: normal !important;

    word-break: normal !important;

    overflow-wrap: normal !important;
  }

  .story-line-accent .story-word {
    font-size: 13vw !important;
  }
}

@media (max-width: 768px) {
  .story-line-accent .story-word {
    font-size: 12vw !important;

    letter-spacing: -0.5px !important;
  }
}
