/* ============================================================
   BREAKEVENFX — styles.css
   Dark, futuristic, finance-grade. Every pixel intentional.
   ============================================================ */

:root {
  --bg: #04060e;
  --bg-2: #070b18;
  --bg-3: #0b1124;
  --ink: #eef3ff;
  --muted: #93a0bd;
  --faint: #5b6680;
  --accent: #5b9dff;
  --accent-deep: #3b6fd9;
  --gold: #ffc24b;
  --violet: #7c5cff;
  --cyan: #4cc9ff;
  --line: rgba(147, 160, 189, 0.14);
  --card: rgba(13, 19, 38, 0.6);
  --glass: rgba(7, 11, 24, 0.72);
  --radius: 20px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 0.68, 0.12, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #061026; }

.mono { font-family: var(--font-mono); }
.container { width: min(1180px, 92vw); margin: 0 auto; position: relative; z-index: 2; }

.gradient-text {
  background: linear-gradient(92deg, var(--accent) 0%, var(--cyan) 55%, var(--violet) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.85s;
}
.preloader.done { transform: translateY(-100%); visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  letter-spacing: 0.02em; margin-bottom: 22px;
}
.preloader-logo span { color: var(--accent); }
.preloader-bar {
  width: 220px; height: 2px; background: rgba(147,160,189,0.18);
  border-radius: 2px; overflow: hidden; margin: 0 auto 14px;
}
.preloader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px var(--accent);
}
.preloader-pct { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.2em; }

/* ============ Cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(91, 157, 255, 0.45);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}
.cursor-ring.hovering {
  width: 58px; height: 58px;
  border-color: rgba(91, 157, 255, 0.9);
  background: rgba(91, 157, 255, 0.07);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ Ambient ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet));
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 200;
}
#scene-canvas { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 36%, rgba(4, 6, 14, 0.74) 100%);
}

.aurora {
  position: fixed; border-radius: 50%; filter: blur(110px);
  z-index: 0; pointer-events: none; opacity: 0.32;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora-1 { width: 52vw; height: 52vw; left: -18vw; top: -16vw; background: radial-gradient(circle, rgba(59,111,217,0.30), transparent 65%); }
.aurora-2 { width: 44vw; height: 44vw; right: -16vw; top: 22vh; background: radial-gradient(circle, rgba(124,92,255,0.28), transparent 65%); animation-delay: -8s; animation-duration: 32s; }
.aurora-3 { width: 40vw; height: 40vw; left: 28vw; bottom: -24vh; background: radial-gradient(circle, rgba(76,201,255,0.2), transparent 65%); animation-delay: -16s; animation-duration: 38s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 2; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px min(4vw, 48px);
  transition: transform 0.45s var(--ease-out), background 0.35s, border-color 0.35s, padding 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.nav.hidden { transform: translateY(-110%); }
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0%;
  background: var(--accent); transition: width 0.3s var(--ease-out);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 110;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px auto; transition: transform 0.3s, opacity 0.3s; border-radius: 2px;
}
.nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 6, 14, 0.96);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  padding: 10px 0; transition: color 0.25s, transform 0.25s;
}
.mobile-menu a:hover { color: var(--accent); transform: translateX(6px); }
.mobile-menu a.accent { color: var(--accent); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 16px 30px; border-radius: 100px; text-decoration: none;
  cursor: pointer; border: 0; position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
  will-change: transform;
}
.btn-small { padding: 11px 22px; font-size: 0.88rem; }
.btn-solid {
  background: linear-gradient(95deg, var(--accent) 0%, #7c5cff 100%);
  color: #061026;
  box-shadow: 0 0 0 0 rgba(91, 157, 255, 0.4), 0 10px 32px -10px rgba(91, 157, 255, 0.55);
}
.btn-solid:hover {
  box-shadow: 0 0 0 5px rgba(91, 157, 255, 0.14), 0 16px 44px -8px rgba(91, 157, 255, 0.6);
}
.btn-ghost {
  color: var(--ink); background: transparent;
  box-shadow: inset 0 0 0 1px rgba(147,160,189,0.36);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 120px min(4vw, 48px) 110px;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; width: min(1180px, 92vw); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.32em;
  color: var(--accent); padding: 10px 18px;
  border: 1px solid rgba(91,157,255,0.25); border-radius: 100px;
  background: rgba(91,157,255,0.05);
  margin-bottom: 34px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,157,255,0.55); }
  50% { box-shadow: 0 0 0 8px rgba(91,157,255,0); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
}
body.loaded .hero-title .word-inner { transform: translateY(0); }

.hero-sub {
  max-width: 560px; color: var(--muted); font-size: 1.13rem;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-mini-stats {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.85rem;
}
.hero-mini-stats > div:not(.divider) { display: flex; flex-direction: column; }
.hero-mini-stats strong { color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.hero-mini-stats .divider { width: 1px; height: 34px; background: var(--line); }

/* staged entrance */
.rise {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
body.loaded .rise { opacity: 1; transform: translateY(0); filter: blur(0); }
body.loaded .d1 { transition-delay: 0.15s; }
body.loaded .d4 { transition-delay: 0.55s; }
body.loaded .d5 { transition-delay: 0.7s; }
body.loaded .d6 { transition-delay: 0.85s; }
body.loaded .d7 { transition-delay: 1.1s; }

.scroll-hint {
  position: absolute; right: min(4vw, 48px); bottom: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--faint); font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  writing-mode: vertical-rl;
  z-index: 2;
}
.scroll-hint-line {
  width: 1px; height: 56px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-hint-line::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%; background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -40%; } 100% { top: 110%; }
}

/* ============ Ticker ============ */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 14, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex; gap: 48px; padding-right: 48px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  white-space: nowrap;
}
.t-up { color: var(--accent); }
.t-down { color: #ff6b81; }
.t-brand { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Reveal-on-scroll ============ */
[data-reveal] {
  opacity: 0; transform: translateY(36px); filter: blur(8px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ============ Sections shared ============ */
section { position: relative; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.34em;
  color: var(--accent); margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 26px; max-width: 760px;
}

/* ============ Stats ============ */
.stats { padding: 110px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(7,11,24,0.4), transparent); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.stat {
  padding: 36px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.stat:hover {
  border-color: rgba(91,157,255,0.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(91,157,255,0.25);
}
.stat-value {
  font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600;
  background: linear-gradient(180deg, var(--ink), #9fb2d8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1.1; margin-bottom: 10px;
}
.stat-label { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; min-height: 3em; }
.stat-bar { height: 3px; background: rgba(147,160,189,0.15); border-radius: 3px; overflow: hidden; }
.stat-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 3px;
  transition: width 1.6s var(--ease-out) 0.35s;
  box-shadow: 0 0 10px rgba(91,157,255,0.6);
}
.stat.in .stat-bar i { width: var(--w); }

/* ============ Mission ============ */
.mission { padding: 150px 0; }
.mission-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center;
}
.mission-copy p { color: var(--muted); margin-bottom: 18px; max-width: 540px; }
.mission-points { margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }
.mission-point { display: flex; gap: 18px; align-items: flex-start; }
.point-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.25rem; color: var(--accent);
  background: rgba(91,157,255,0.07);
  border: 1px solid rgba(91,157,255,0.22);
}
.mission-point strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 2px; }
.mission-point p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* orbit visual */
.mission-visual { display: grid; place-items: center; }
.orbit-system { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(147,160,189,0.22);
}
.orbit-a { animation: spin 26s linear infinite; }
.orbit-b { inset: 13%; animation: spinRev 20s linear infinite; }
.orbit-c { inset: 27%; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
.orbit-dot {
  position: absolute; top: -5px; left: 50%; margin-left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.orbit-chip {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--ink); padding: 6px 13px; border-radius: 100px;
  background: var(--bg-3); border: 1px solid var(--line);
  white-space: nowrap;
}
/* counter-rotate chips (inverse of their ring) so labels stay upright */
@keyframes chipCCW { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); } }
@keyframes chipCW  { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }
.orbit-a .orbit-chip { animation: chipCCW 26s linear infinite; }
.orbit-b .orbit-chip { animation: chipCW 20s linear infinite; }
.orbit-c .orbit-chip { animation: chipCCW 14s linear infinite; }
.orbit-b .orbit-chip { bottom: auto; top: -14px; background: var(--bg-3); }
.orbit-b .orbit-dot { top: auto; bottom: -5px; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.orbit-c .orbit-dot { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.orbit-core {
  position: absolute; inset: 38%;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #11203f, var(--bg-2));
  border: 1px solid rgba(91,157,255,0.3);
}
.orbit-core-glow {
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,157,255,0.22), transparent 70%);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 1; }
}
.orbit-core-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.02em;
  position: relative;
}
.orbit-core-text em { font-style: normal; color: var(--accent); }

/* ============ Programs ============ */
.programs { padding: 150px 0; background: linear-gradient(180deg, transparent, rgba(7,11,24,0.55) 30%, rgba(7,11,24,0.55) 70%, transparent); }
.program-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  perspective: 1200px;
}
.program-card {
  position: relative; overflow: hidden;
  padding: 36px 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.45s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.program-card:hover {
  border-color: rgba(91,157,255,0.45);
  box-shadow: 0 30px 60px -28px rgba(91,157,255,0.3);
}
.card-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(91,157,255,0.12), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.program-card:hover .card-glare { opacity: 1; }
.program-num {
  font-size: 0.78rem; color: var(--accent); letter-spacing: 0.3em;
  margin-bottom: 50px;
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(91,157,255,0.25); background: rgba(91,157,255,0.05);
}
.program-card h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.program-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.program-meta {
  font-size: 0.66rem; letter-spacing: 0.22em; color: var(--faint);
  border-top: 1px solid var(--line); padding-top: 16px;
}

/* ============ Impact / timeline ============ */
.impact { padding: 150px 0; }
.timeline { position: relative; margin-top: 70px; padding-left: 48px; max-width: 720px; }
.timeline-line {
  position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(147,160,189,0.15); border-radius: 2px; overflow: hidden;
}
.timeline-line i {
  display: block; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--accent), var(--violet));
  box-shadow: 0 0 12px rgba(91,157,255,0.5);
  transition: height 0.2s linear;
}
.timeline-item { position: relative; padding-bottom: 56px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute; left: -48px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem; color: var(--accent);
  background: var(--bg-2); border: 1px solid rgba(91,157,255,0.35);
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-body h3 {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.timeline-body p { color: var(--muted); max-width: 520px; }

/* ============ Voices ============ */
.voices { padding: 130px 0 150px; background: linear-gradient(180deg, transparent, rgba(7,11,24,0.5)); }
.carousel {
  position: relative; margin-top: 30px;
  padding: 64px 56px 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.quote-mark {
  position: absolute; top: 6px; left: 36px;
  font-family: var(--font-display); font-size: 7rem; line-height: 1;
  color: rgba(91,157,255,0.16);
  pointer-events: none;
}
.slides { position: relative; min-height: 190px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.slide p {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 500; line-height: 1.45; letter-spacing: -0.01em;
  margin-bottom: 26px; max-width: 880px;
}
.slide em { color: var(--accent); font-style: normal; }
.slide footer { color: var(--muted); font-size: 0.92rem; }
.slide footer strong { color: var(--ink); }
.carousel-dots { display: flex; gap: 10px; margin-top: 34px; }
.carousel-dots button {
  width: 34px; height: 4px; border-radius: 4px; border: 0; cursor: pointer;
  background: rgba(147,160,189,0.25);
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.carousel-dots button.active { background: var(--accent); width: 52px; box-shadow: 0 0 10px rgba(91,157,255,0.5); }

/* ============ Join ============ */
.join { padding: 150px 0 170px; }
.join-inner {
  position: relative; text-align: center;
  padding: 90px min(6vw, 70px);
  border-radius: 34px;
  border: 1px solid rgba(91,157,255,0.22);
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(91,157,255,0.13), transparent 70%),
    var(--card);
  overflow: hidden;
}
.join-glow {
  position: absolute; left: 50%; top: -130px; transform: translateX(-50%);
  width: 560px; height: 280px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(91,157,255,0.28), transparent 70%);
  filter: blur(50px);
  animation: corePulse 5s ease-in-out infinite;
  pointer-events: none;
}
.join-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px; position: relative;
}
.join-sub { color: var(--muted); max-width: 520px; margin: 0 auto 44px; position: relative; }
.join-form {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; margin-bottom: 30px;
}
.join-form input {
  background: rgba(4,6,14,0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body); font-size: 0.98rem;
  padding: 16px 24px; border-radius: 100px;
  width: min(280px, 100%);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.join-form input::placeholder { color: var(--faint); }
.join-form input:focus {
  border-color: rgba(91,157,255,0.6);
  box-shadow: 0 0 0 4px rgba(91,157,255,0.1);
}
.join-form input.error { border-color: #ff6b81; box-shadow: 0 0 0 4px rgba(255,107,129,0.12); }
.join-success {
  display: none; color: var(--accent); font-weight: 500; position: relative;
  margin-bottom: 30px;
}
.join-success.show { display: block; animation: successIn 0.6s var(--ease-out); }
@keyframes successIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.join-foot {
  font-size: 0.66rem; letter-spacing: 0.3em; color: var(--faint); position: relative;
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); position: relative; z-index: 2; background: rgba(4,6,14,0.7); }
.footer-marquee {
  overflow: hidden; padding: 34px 0 6px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.footer-marquee-track {
  display: flex; width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(147,160,189,0.22);
  white-space: nowrap;
  user-select: none;
}
.footer-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding: 50px 0 44px;
}
.footer-brand p { color: var(--faint); font-size: 0.88rem; margin-top: 8px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 0.64rem; letter-spacing: 0.22em; color: var(--faint); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .stats-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; gap: 56px; }
  .mission-visual { order: -1; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .nav-burger { display: block; }
  .stats-grid, .program-grid { grid-template-columns: 1fr; }
  .carousel { padding: 56px 26px 40px; }
  .slides { min-height: 300px; }
  .hero { padding-bottom: 90px; }
  .hero-mini-stats .divider { display: none; }
  .join-inner { padding: 64px 22px; }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; padding: 9px 14px; }
  .timeline { padding-left: 42px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], .rise { opacity: 1; transform: none; filter: none; }
  .hero-title .word-inner { transform: none; }
}
