/* ============================================================
   ZEROGRAVITY — DESIGN TOKENS
   Palette: mission-control black + red/blue/yellow signal colors
   Type: Orbitron (display) / Space Grotesk (body) / Space Mono (data)
   ============================================================ */
:root {
  --void:        #08080c;
  --void-soft:   #101018;
  --panel:       #15151e;
  --panel-2:     #1b1b26;
  --line:        rgba(244, 244, 242, 0.12);
  --line-strong: rgba(244, 244, 242, 0.22);

  --white:  #f4f4f2;
  --muted:  #9797a3;
  --muted-2:#6a6a76;

  --red:    #e8384f;
  --red-2:  #ff5468;
  --blue:   #3d8bfd;
  --blue-2: #6ba8ff;
  --yellow: #ffc72c;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container: 1240px;
  --nav-h: 120px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scrollbar-gutter: stable;
}
section[id], #contact { scroll-margin-top: var(--nav-h); }
/* Neon Contact Highlight Box */
.ts-neon-contact-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(17, 17, 24, 0.95);
  border: 1.5px solid #00f0ff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-neon-contact-box:hover {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4), inset 0 0 12px rgba(0, 240, 255, 0.15);
}

.ts-neon-contact-label {
  font-family: var(--font-display, var(--ts-font-display, sans-serif));
  font-size: 13px;
  font-weight: 700;
  color: #ffc72c;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(255, 199, 44, 0.4);
}

.ts-neon-contact-numbers {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 700;
  color: #00f0ff;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.ts-neon-contact-numbers a {
  color: #00f0ff;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.ts-neon-contact-numbers a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px #00f0ff;
}

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--void); 
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted); 
}

body.custom-cursor-active, body.custom-cursor-active a, body.custom-cursor-active button { cursor: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; }
::selection { background: var(--red); color: var(--white); }

/* Blueprint grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 860px) {
  body, a, button { cursor: auto; }
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--yellow);
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--blue-2);
  opacity: 0.35;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--red-2);
  opacity: 0.55;
}
.cursor-dot.is-hidden, .cursor-ring.is-hidden { opacity: 0; }
@media (max-width: 860px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed; inset: 0;
  background: var(--void);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preloader-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform-origin: center center;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1), opacity 1s;
  will-change: transform;
}
.preloader-lockup.is-pulsing {
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.4));
}

.preloader-astronaut {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-100px) scale(0.8);
  /* The transition is handled via JS classes/inline styles */
}
.preloader-astronaut.is-visible {
  opacity: 1;
}

.astronaut-img {
  width: 220px;
  height: auto;
  position: relative;
  z-index: 2;
}

.astronaut-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue);
  filter: blur(24px);
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
}
.astronaut-glow.is-breathing {
  animation: breathe 2s ease-in-out infinite alternate;
}
@keyframes breathe {
  0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.preloader-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: filter 0.3s;
}
.wordmark-line {
  display: flex;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 10vw, 120px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
}
.wordmark-line.accent-outline {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}
.preloader-letter {
  display: inline-block;
  opacity: 0;
  position: relative;
  /* Initial off-screen transforms applied via JS */
}
.preloader-letter.is-active {
  opacity: 1;
  transform: translate(0, 0) rotate(0) !important;
}

.letter-trail {
  position: absolute;
  top: 0; left: 0;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
}


.preloader-word-stack {
  display: flex; gap: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 24px);
  letter-spacing: 0.18em;
  color: var(--yellow);
}
.preloader-word {
  opacity: 0.15;
  transition: opacity 0.6s var(--ease), color 0.6s var(--ease);
}
.preloader-word.is-active { opacity: 1; color: var(--yellow); text-shadow: 0 0 12px rgba(255, 199, 44, 0.5); }
.preloader-word.is-done { opacity: 1; color: var(--yellow); }

.preloader-dot {
  opacity: 0.3;
  color: var(--yellow);
}

.preloader-status {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono);
}
#preloader-percent { font-size: 13px; color: var(--yellow); letter-spacing: 0.05em; }
.preloader-label { font-size: 10px; color: var(--muted-2); letter-spacing: 0.18em; }

/* ============ SHARED ============ */
.section-inner { max-width: var(--container); margin: 0 auto; padding: 140px 32px; position: relative; z-index: 1; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-lede { color: var(--muted); max-width: 560px; font-size: 17px; }
.accent-yellow { color: var(--yellow); }
.accent-outline {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 8px var(--red); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Status dot in about panel */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  margin-right: 6px;
  animation: pulse-green 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse-green { 0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); } 50% { opacity: 0.5; box-shadow: 0 0 4px rgba(52, 211, 153, 0.3); } }

/* Clipped-corner buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px;
  border: 1px solid transparent;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--blue-2); color: var(--blue-2); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Scroll reveal */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 0.08s); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================
   NAVBAR
   ========================================================== */
:root {
  --nav-h: 90px;
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1150;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  will-change: transform, background-color, height;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: 
    background 0.4s ease, 
    backdrop-filter 0.4s ease, 
    -webkit-backdrop-filter 0.4s ease, 
    border-color 0.4s ease, 
    box-shadow 0.4s ease, 
    height 0.4s ease;
}

.navbar.is-scrolled {
  background: rgba(15, 15, 20, 0.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
  height: 75px;
}

.navbar-inner {
  max-width: 1440px; margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  display: flex; align-items: center; justify-content: flex-start;
  flex-shrink: 0;
}

.brand-logo {
  display: block; width: auto; height: auto;
}

.brand-logo--club {
  height: 120px; 
  width: 168px; /* Strictly 1.4 aspect ratio to crop the 1.5 ratio image */
  object-fit: cover;
  object-position: 80% center; /* Crops transparent edges perfectly */
  filter: invert(1) brightness(1.15) contrast(1.15);
  mix-blend-mode: screen;
}

.nav-links { 
  display: none; 
}

.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--yellow);
}

.hamburger { 
  display: flex; /* Always show hamburger */ 
  flex-direction: column; 
  gap: 5px; 
  width: 44px; 
  height: 44px; 
  align-items: center; 
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  z-index: 1200; 
  cursor: pointer;
  transition: background 0.3s ease;
}
.hamburger:active { background: rgba(255,255,255,0.15); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-link { font-family: var(--font-display); font-size: 24px; font-weight: 700; transition: color 0.3s var(--ease); }
.mobile-link:hover { color: var(--yellow); }
.mobile-cta { margin-top: 14px; }

@media (max-width: 900px) {
  :root { --nav-h: 75px; }
  
  .navbar-inner { 
    padding: 0 20px; 
  }
  
  .brand {
    /* No margins needed */
  }
  
  .brand-logo--club { 
    height: 70px;
    width: 98px; /* 1.4 aspect ratio maintains identical cropping and maximizes gap */
  }
  
  .nav-links { display: none; }
  
  .hamburger { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 44px; 
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
  }
  .hamburger:active { background: rgba(255,255,255,0.15); }
  .hamburger span { width: 22px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 0 32px 40px;
  padding-top: 60px;
}
.starfield { position: absolute; inset: 0; z-index: 0; opacity: 0.6; width: 100%; height: 100%; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.08;
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../assets/images/hero/group-photo.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.15);
}
.hero-bg-dim {
  filter: brightness(0.65) grayscale(0.1);
}
.hero-bg-sharp {
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.2) contrast(1.1);
  mask-image: radial-gradient(circle 60px at var(--cx, -500px) var(--cy, -500px), black 0%, black 5px, rgba(0,0,0,0.5) 15px, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 60px at var(--cx, -500px) var(--cy, -500px), black 0%, black 5px, rgba(0,0,0,0.5) 15px, transparent 100%);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,12,0.55) 0%, rgba(8,8,12,0.65) 40%, var(--void) 96%);
}

.hero-content { position: relative; z-index: 2; max-width: 1000px; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto; width: 100%; }
.eyebrow { display: none; }
.hero-title { font-family: var(--font-display); font-weight: 900; line-height: 0.94; margin-bottom: 12px; }
.hero-title .line { display: block; font-size: clamp(56px, 18vw, 168px); letter-spacing: 0.01em; }
.hero-title .line:first-child { color: var(--white); }
.hero-title .line.accent-outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero-tagline { font-family: var(--font-mono); font-size: clamp(12px, 1.8vw, 12px); letter-spacing: 0.2em; color: var(--yellow); margin-bottom: 12px; }
.hero-sub { max-width: 600px; color: var(--muted); font-size: clamp(18px, 2.7vw, 14.25px); margin-bottom: 24px; line-height: 1.4; padding: 0 8px; }
.hero-actions { display: none; }

.scroll-cue {
  position: absolute; bottom: 32px; right: 32px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted-2);
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--red), transparent); animation: scroll-cue 2s ease-in-out infinite; }
@keyframes scroll-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ============ MOBILE RESPONSIVENESS ============ */
@media (max-width: 768px) {
  .hero {
    padding: 0 16px 60px;
    padding-top: 80px;
    min-height: auto;
  }
  .hero-content {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0 12px 40px;
    padding-top: 70px;
    min-height: auto;
  }
  .hero-title { margin-bottom: 8px; }
  .hero-tagline { margin-bottom: 8px; font-size: 10.5px; }
  .hero-sub { margin-bottom: 20px; font-size: clamp(16.5px, 2.4vw, 19.5px); }
  .hero-content { margin-top: 15px; padding: 0 4px; }
}

@media (max-width: 375px) {
  .hero {
    padding: 0 10px 35px;
    padding-top: 65px;
  }
  .hero-title .line { font-size: clamp(48px, 16vw, 120px); }
  .hero-tagline { font-size: 9px; letter-spacing: 0.15em; }
  .hero-sub { font-size: clamp(15px, 2.1vw, 18px); padding: 0 2px; }
}

/* ============ ABOUT ============ */
.about { position: relative; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; margin-top: 50px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 20px; max-width: 520px; }
.about-copy strong { font-weight: 600; }

.about-copy p:first-child { margin-top: 0; }
.zg-large { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--white); line-height: 1; vertical-align: baseline; margin-right: 4px; }
.what-we-do { position: relative; }
.what-we-do::before { content: ''; position: absolute; left: -30px; top: 0; bottom: 0; width: 1px; background: var(--line); }

.what-we-do-title { margin-top: 0; font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 24px; color: var(--white); line-height: 1; }
.what-we-do-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.what-we-do-list li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.what-we-do-list strong { color: var(--white); font-weight: 600; }

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-logo { height: 100px; }
}

/* ============ LAUNCH SEQUENCE & RIBBON ============ */
#launchSequence {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--void);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s var(--ease);
}
#launchSequence.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.launch-message {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 72px);
  color: var(--white);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}
.launch-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.launch-timer {
  display: flex;
  justify-content: center;
  align-items: center;
}
#countdownNumber {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 150px);
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255,199,44,0.5);
  animation: pulse-countdown 1s infinite;
}
@keyframes pulse-countdown {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

#ribbonScene {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: radial-gradient(circle at center, #1b2845 0%, var(--void) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 1s var(--ease);
}
#ribbonScene.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ribbon {
  position: absolute;
  top: 50%;
  width: 55vw;
  height: 16px;
  background: linear-gradient(90deg, #e8384f, #ff5468);
  box-shadow: 0 4px 15px rgba(232,56,79,0.4);
  margin-top: -8px;
}
.ribbon-left {
  right: 50%;
  border-radius: 8px 0 0 8px;
  transform-origin: left center;
}
.ribbon-right {
  left: 50%;
  border-radius: 0 8px 8px 0;
  transform-origin: right center;
}
.cutting-rocket {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -50px;
  width: 100px;
  height: 150px;
  z-index: 10;
}
.svg-fire {
  animation: flicker 0.1s infinite alternate;
  transform-origin: top center;
}
.svg-fire-inner {
  animation: flicker 0.05s infinite alternate-reverse;
  transform-origin: top center;
}
@keyframes flicker {
  0% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1.3); opacity: 0.8; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .what-we-do::before { display: none; }
  .section-inner { padding: 80px 20px; }
  .section-title { font-size: clamp(24px, 5vw, 52px); }
  .about-copy p { font-size: clamp(14px, 2vw, 17px); }
  .what-we-do-list li { font-size: clamp(13px, 2vw, 17px); }
}

/* ============ CORE TEAM ============ */
.core-team { position: relative; border-top: 1px solid var(--line); background: var(--void-soft); }
.leadership-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }

.lead-card, .dept-card, .pr-card {
  position: relative; z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease), z-index 0s 0.35s;
  opacity: 0; transform: translateY(24px);
}
.lead-card.in-view, .dept-card.in-view, .pr-card.in-view { opacity: 1; transform: translateY(0); }
.lead-card:hover, .pr-card:hover { border-color: var(--red); transform: scale(1.15); background: var(--panel-2); z-index: 10; transition-delay: 0s; }
.dept-card:hover { border-color: var(--red); background: var(--panel-2); }
.dept-pair > div { transition: transform 0.35s var(--ease); position: relative; z-index: 1; }
.dept-pair > div:hover { transform: scale(1.15); z-index: 10; }

/* Corner bracket reticle accents on hover */
.corner-bracket { position: absolute; width: 14px; height: 14px; border-color: var(--blue-2); opacity: 0; transition: opacity 0.35s var(--ease); }
.lead-card:hover .corner-bracket, .dept-card:hover .corner-bracket, .pr-card:hover .corner-bracket { opacity: 0.9; }
.corner-bracket.tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner-bracket.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

/* Member photo placeholder */
.member-photo {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--void-soft);
  border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 20px;
  color: var(--muted-2);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.member-photo:hover { border-color: var(--muted); }
.member-photo.is-loaded { border: 1px solid var(--line); background-size: cover; background-position: center top; }
.member-photo.is-loaded .ph-icon, .member-photo.is-loaded .ph-label { display: none; }
.ph-icon svg { width: 26px; height: 26px; opacity: 0.5; }
.ph-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-align: center; padding: 0 10px; }

.lead-card .member-photo { aspect-ratio: 1/1; }
.member-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.linkedin-link { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
.linkedin-link:hover { color: var(--blue-2); text-decoration: underline; }
.member-role { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--yellow); text-transform: uppercase; }
.lead-card .member-role { color: var(--red-2); }

/* Guest Card (Smaller adjustment) */
.guest-card {
  width: 100%;
  max-width: 350px;
  padding: 32px;
}
.guest-card .member-photo {
  margin-bottom: 24px;
  border-width: 1px;
}
.guest-card .member-name {
  font-size: 22px;
  margin-bottom: 6px;
}
.guest-card .member-role {
  font-size: 15px;
}
.guest-card .member-role span {
  font-size: 14px !important;
}
.lead-card.guest-card:hover {
  transform: scale(1.10); /* Re-adjust hover scale */
}

.dept-card { display: flex; flex-direction: column; }
.dept-card--centered { grid-column: 1 / -1; max-width: calc(50% - 10px); margin: 0 auto; width: 100%; }
@media (max-width: 900px) { .dept-card--centered { max-width: 100%; } }
.dept-name {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.14em;
  color: var(--blue-2); margin-bottom: 16px; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.dept-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dept-pair .member-photo { aspect-ratio: 1/1; margin-bottom: 14px; }
.dept-single .member-photo { max-width: 140px; margin: 0 auto 14px; }

.pr-block { grid-column: 1 / -1; margin-top: 24px; }
.pr-title { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.14em; color: var(--blue-2); margin-bottom: 16px; text-transform: uppercase; }
.pr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pr-card .member-photo { aspect-ratio: 1/1; margin-bottom: 16px; }

.mobile-only { display: none !important; }

@media (max-width: 900px) {
  .leadership-row { grid-template-columns: 1fr; }
  
  .dept-grid { display: none; grid-template-columns: 1fr; }
  .dept-grid.is-expanded { display: grid; }
  
  .mobile-only { display: inline-flex !important; }
  .mobile-only.is-hidden { display: none !important; }
  
  .pr-row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .dept-pair { grid-template-columns: 1fr; }
}

/* ============ ABOUT STATS ============ */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.about-stat-col {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--line-strong);
}
.about-stat-col:last-child {
  border-right: none;
}
.about-stat-col .stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-stat-col .stat-label {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stat-col { border-bottom: 1px solid var(--line-strong); }
  .about-stat-col:nth-child(even) { border-right: none; }
  .about-stat-col:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .about-stats-grid { grid-template-columns: 1fr; }
  .about-stat-col { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .about-stat-col:last-child { border-bottom: none; }
}

/* ============ TIMELINE & CINEMATIC STAGE ============ */
.timeline { position: relative; border-top: 1px solid var(--line); padding-bottom: 120px; }
.cinematic-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0.4; }
.cinematic-stars {
  position: absolute; width: 2px; height: 2px; background: transparent;
  box-shadow: 100px 200px #fff, 300px 400px #fff, 500px 100px #fff, 700px 600px #fff, 900px 300px #fff, 1200px 500px #fff, 1400px 100px #fff;
  animation: starSlide 150s linear infinite;
}
.cinematic-particles {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(30, 41, 59, 0.3) 0%, transparent 60%);
}
@keyframes starSlide { from { transform: translateY(0); } to { transform: translateY(-1000px); } }

.timeline .section-inner { position: relative; z-index: 1; }
.timeline-track {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; margin-top: 60px; max-width: 800px; margin-inline: auto;
}
.timeline-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: var(--line); z-index: 0; transform: translateY(-50%);
  transition: background 0.4s var(--ease);
}
.timeline-node {
  position: relative; z-index: 1;
  background: var(--void); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-mono); font-size: 14px;
  padding: 10px 24px; border-radius: 40px;
  cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.timeline-node::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 0; height: 2px;
  background: var(--yellow); transform: translateX(-50%); transition: width 0.4s var(--ease);
}
.timeline-node:hover:not(:disabled) {
  background: var(--panel-2); color: var(--white); border-color: var(--blue-2);
  transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.timeline-node.is-active {
  color: var(--white); border-color: var(--yellow); box-shadow: 0 0 20px rgba(255, 199, 44, 0.15);
}
.timeline-node.is-active::after { width: 24px; }
.timeline-node:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 600px) {
  .timeline-track { 
    flex-direction: row; 
    gap: 16px; 
    overflow-x: auto; 
    justify-content: flex-start; 
    padding: 10px 20px; 
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .timeline-track::-webkit-scrollbar { display: none; }
  .timeline-node { scroll-snap-align: center; flex-shrink: 0; }
  .timeline-line { display: none; }
}

/* ============ EVENTS ============ */
.events { position: relative; border-top: 1px solid var(--line); }
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }

@media (min-width: 769px) {
  .events-grid > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 12px);
  }
}
.event-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.event-card.in-view { opacity: 1; transform: translateY(0); }
.event-card:hover { border-color: var(--blue); background: var(--panel-2); transform: translateY(-4px); }



/* Corner brackets on event cards */
.event-card::before,
.event-card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--blue-2);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 2;
}
.event-card::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.event-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.event-card:hover::before, .event-card:hover::after { opacity: 0.9; }

.event-media {
  aspect-ratio: 16/10;
  background: var(--void-soft);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted-2);
  position: relative;
  overflow: hidden;
}
.event-card.is-wide .event-media { border-bottom: none; border-right: 1px solid var(--line); aspect-ratio: auto; height: 100%; }
.event-media.is-loaded { background-size: cover; background-position: center; }
.event-media.is-loaded .ph-icon, .event-media.is-loaded .ph-label { display: none; }
.event-media .ph-icon svg { width: 30px; height: 30px; opacity: 0.4; }
.event-media .ph-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-align: center; padding: 0 20px; }

.event-body { padding: 26px 28px 30px; }
.event-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--yellow); border: 1px solid rgba(255,199,44,0.35);
  padding: 4px 10px; margin-bottom: 14px;
}
.event-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.event-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ============ UTILITIES & TYPOGRAPHY ============ */
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 500px; margin-bottom: 30px; }

@media (max-width: 860px) {
  .events-grid { 
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .events-grid::-webkit-scrollbar { display: none; }
  .event-card { 
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .event-card.is-wide { grid-template-columns: 1fr; }
  .event-card.is-wide .event-media { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 16/10; height: auto; }
}

/* ============ REGISTER CTA ============ */
.register-cta { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.register-inner {
  position: relative; max-width: var(--container); margin: 0 auto;
  padding: 130px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.register-grid-overlay {
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(circle at center, rgba(232,56,79,0.14), transparent 60%);
  pointer-events: none;
}
.register-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 16px; position: relative; z-index: 1;
}
.register-sub { color: var(--muted); font-size: 19px; margin-bottom: 36px; max-width: 460px; position: relative; z-index: 1; }
.register-inner .btn { position: relative; z-index: 1; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: var(--void-soft); position: relative; z-index: 1; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 80px 32px 50px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo { height: 120px; width: auto; object-fit: contain; border-radius: 4px; filter: invert(1); mix-blend-mode: screen; }
.footer-tag { color: var(--muted); font-size: 14px; margin-bottom: 24px; max-width: 260px; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  color: var(--muted);
}
.social-icon:hover { border-color: var(--red); color: var(--red-2); transform: translateY(-3px); }

.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 20px; }
.footer-col a {
  display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 12px;
  transition: color 0.3s var(--ease); width: fit-content;
}
.footer-col a:hover { color: var(--white); }
.footer-address { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 32px; max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .section-inner { padding: 100px 22px; }
  .register-inner { padding: 90px 22px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .preloader-letter { opacity: 1 !important; transform: none !important; }
  .preloader-astronaut { opacity: 1 !important; transform: none !important; }
  .astronaut-glow { display: none !important; }
}

/* ============ FOCUS STATES ============ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

/* ============ KEYBOARD SKIP LINK (accessibility) ============ */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  font-family: var(--font-mono); font-size: 14px;
  background: var(--yellow); color: var(--void);
  padding: 12px 20px; z-index: 99999;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px;
  width: auto; height: auto;
}

/* ============ MAGAZINE CINEMATIC STAGE ============ */
.magazine-stage {
  position: relative; width: 100%; min-height: 600px;
  display: flex; justify-content: center; align-items: center;
  margin-top: 80px; perspective: 1500px;
}
.magazine-loading {
  position: absolute; color: var(--yellow); font-family: var(--font-mono); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 10;
}
.magazine-spinner {
  width: 32px; height: 32px; border: 2px solid var(--line);
  border-top-color: var(--yellow); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.flip-book-wrapper {
  position: relative; z-index: 20; transform-style: preserve-3d;
  cursor: zoom-in; transition: opacity 0.5s var(--ease), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}
.flip-book-wrapper.is-closing {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.95) translateZ(-100px) !important;
}

/* Entrance Animation */
.cinematic-entrance {
  animation: cinematicRise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes cinematicRise {
  0% { opacity: 0; transform: translateY(150px) scale(0.85) rotateX(10deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
}

/* Idle Hover */
.is-idle {
  animation: cinematicFloat 6s ease-in-out infinite alternate;
}
@keyframes cinematicFloat {
  0% { transform: translateY(0px) rotateX(2deg); }
  100% { transform: translateY(-12px) rotateX(-1deg); }
}

.book-shadow {
  position: absolute; bottom: -20px; left: 5%; right: 5%; height: 30px;
  background: rgba(0,0,0,0.7); filter: blur(25px); border-radius: 50%;
  z-index: -1; transition: opacity 0.5s;
}
.is-fullscreen .book-shadow { opacity: 0; }

/* Realistic Book Styling */
.hardcover-book {
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.8),
    0 4px 15px rgba(0,0,0,0.5);
  border-radius: 4px 8px 8px 4px;
}
.flip-book .page {
  background: #f8f9fa;
  overflow: hidden;
}
.flip-book .page canvas {
  width: 100%; height: 100%; object-fit: contain; background: #fff;
}
.flip-book .page.--left { border-radius: 6px 0 0 6px; }
.flip-book .page.--right { border-radius: 0 6px 6px 0; }

/* Fullscreen Mode Transition */
.fullscreen-backdrop {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(4, 4, 8, 0.95); backdrop-filter: blur(15px);
  opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease);
}
.is-fullscreen-body .fullscreen-backdrop { opacity: 1; pointer-events: auto; }

.flip-book-wrapper.is-fullscreen {
  position: fixed !important; z-index: 3002;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
  cursor: default;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  animation: none !important; /* kill float */
}

/* ============ GALLERY MARQUEE MODAL ============ */
.gallery-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 8, 12, 0.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.gallery-modal.is-open {
  opacity: 1; pointer-events: auto;
}
.gallery-close {
  position: absolute; top: 24px; right: 32px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-strong); color: var(--white);
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer; z-index: 2001;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gallery-close:hover { transform: scale(1.1); background: var(--red); border-color: var(--red); color: white; }

.marquee-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  white-space: nowrap;
  scroll-behavior: auto; /* JS handles smooth scroll */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.marquee-container::-webkit-scrollbar { display: none; }

.marquee-track {
  display: flex;
  gap: 20px;
  align-items: center;
  width: max-content;
}

.gallery-img {
  height: 60vh;
  max-height: 500px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.crossfade-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.crossfade-layer.active {
  opacity: 1;
  z-index: 2;
}

/* ==================================================================
   COMPREHENSIVE RESPONSIVE — TABLETS (max-width: 860px)
   ================================================================== */
@media (max-width: 860px) {
  /* -- Preloader -- */
  .astronaut-img { width: 140px; }
  .wordmark-line { font-size: clamp(48px, 9vw, 72px); }
  .preloader-lockup { gap: 12px; }
  .preloader-word-stack { gap: 16px; font-size: clamp(12px, 2.2vw, 18px); }

  /* -- Hero -- */
  .hero { padding: 0 20px 60px; }
  .hero-title .line { font-size: clamp(96px, 16vw, 200px); }
  .hero-sub { font-size: 24px; margin-bottom: 28px; }
  .hero-actions { gap: 12px; }
  .btn-lg { padding: 14px 28px; font-size: 14px; }

  /* -- About -- */
  .section-inner { padding: 100px 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .what-we-do::before { display: none; }

  /* -- Core Team -- */
  .leadership-row { grid-template-columns: 1fr; gap: 20px; }
  .dept-grid { grid-template-columns: 1fr; gap: 16px; }
  .pr-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lead-card:hover, .pr-card:hover { transform: scale(1.05); }
  .dept-pair > div:hover { transform: scale(1.05); }

  /* -- Events -- */
  .events-grid { grid-template-columns: 1fr; gap: 20px; }
  .event-card.is-wide { grid-template-columns: 1fr; }
  .event-card.is-wide .event-media { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 16/10; height: auto; }

  /* -- Register CTA -- */
  .register-inner { padding: 90px 22px; }

  /* -- Footer -- */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* -- Gallery Modal -- */
  .gallery-img { height: 45vh; max-height: 350px; }
  .gallery-close { width: 44px; height: 44px; top: 16px; right: 16px; }
}

/* ==================================================================
   RESPONSIVE — SMALL TABLETS / LARGE PHONES (max-width: 700px)
   ================================================================== */
@media (max-width: 700px) {
  /* -- Preloader -- */
  .preloader-lockup { flex-direction: column; gap: 10px; }
  .astronaut-img { width: 120px; }
  .wordmark-line { font-size: clamp(40px, 10vw, 60px); }
  .preloader-wordmark { align-items: center; }
  .preloader-word-stack { gap: 12px; font-size: clamp(11px, 2.5vw, 16px); flex-wrap: wrap; justify-content: center; }

  /* -- Hero -- */
  .hero { padding: 0 16px 50px; min-height: 90vh; }
  .hero-content { padding: 0 4px; }
  .hero-title .line { font-size: clamp(80px, 18vw, 160px); }
  .eyebrow { font-size: 15px; letter-spacing: 0.1em; }
  .hero-tagline { font-size: clamp(15px, 3.75vw, 21px); letter-spacing: 0.12em; }
  .hero-sub { font-size: 22.5px; padding: 0 10px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* -- Core Team -- */
  .pr-row { grid-template-columns: 1fr; }
  .lead-card, .dept-card, .pr-card { padding: 20px; }
  .member-name { font-size: 15px; }
  .member-role { font-size: 11px; }

  /* -- Events -- */
  .event-body { padding: 20px 22px 24px; }
  .event-title { font-size: 17px; }
  .event-desc { font-size: 13px; }

  /* -- Gallery Modal -- */
  .gallery-img { height: 35vh; max-height: 280px; border-radius: 6px; }
  .marquee-track { gap: 12px; }

  /* -- Scroll cue -- */
  .scroll-cue { display: none; }
}

/* ==================================================================
   RESPONSIVE — PHONES (max-width: 480px)
   ================================================================== */
@media (max-width: 480px) {
  /* -- Preloader -- */
  .astronaut-img { width: 90px; }
  .wordmark-line { font-size: clamp(32px, 11vw, 48px); }
  .preloader-word-stack { gap: 8px; font-size: 11px; }
  .preloader-inner { gap: 18px; }

  /* -- Navbar -- */
  :root { --nav-h: 80px; }
  .navbar.is-scrolled { height: 70px; }
  .brand-logo--club { 
    height: 70px; 
    width: 98px; /* Enforces the 1.4 ratio crop */
    margin-left: 0; 
    margin-top: 4px; 
  }
  .navbar-inner { padding: 0 16px; /* Removed justify-content: flex-end hack */ }
  .mobile-link { font-size: 20px; }

  /* -- Hero -- */
  .hero { padding: 0 14px 40px; }
  .hero-title .line { font-size: clamp(64px, 18vw, 128px); }
  .hero-tagline { font-size: 15px; letter-spacing: 0.08em; margin-bottom: 16px; }
  .hero-sub { font-size: 21px; margin-bottom: 24px; }
  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }

  /* -- Shared sections -- */
  .section-inner { padding: 70px 16px; }
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .section-lede { font-size: 15px; }
  .section-eyebrow { font-size: 10px; letter-spacing: 0.12em; }

  /* -- About -- */
  .about-copy p { font-size: 15px; }
  .zg-large { font-size: 24px; }
  .what-we-do-title { font-size: 24px; }
  .what-we-do-list li { font-size: 15px; }

  /* -- Core Team -- */
  .dept-pair { grid-template-columns: 1fr; }
  .lead-card, .dept-card, .pr-card { padding: 16px; }
  .dept-name { font-size: 13px; }

  /* -- Events -- */
  .event-card:hover { transform: none; }
  .event-body { padding: 16px 18px 20px; }
  .event-title { font-size: 16px; }
  .event-tag { font-size: 9px; padding: 3px 8px; }

  /* -- Register CTA -- */
  .register-inner { padding: 60px 16px; }
  .register-title { font-size: clamp(24px, 7vw, 40px); }
  .register-sub { font-size: 15px; }

  /* -- Footer -- */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 50px 16px 30px; }
  .footer-logo { height: 80px; }
  .footer-tag { font-size: 13px; }
  .footer-bottom { padding: 16px; flex-direction: column; align-items: center; text-align: center; }

  /* -- Gallery Modal -- */
  .gallery-img { height: 28vh; max-height: 220px; border-radius: 4px; }
  .gallery-close { width: 40px; height: 40px; top: 12px; right: 12px; }
  .marquee-track { gap: 10px; }
}

/* ==================================================================
   RESPONSIVE — VERY SMALL PHONES (max-width: 360px)
   ================================================================== */
@media (max-width: 360px) {
  .astronaut-img { width: 70px; }
  .wordmark-line { font-size: clamp(26px, 12vw, 40px); }
  .hero-title .line { font-size: clamp(52px, 20vw, 100px); }
  .brand-logo--club { height: 70px; }
  :root { --nav-h: 70px; }
  .navbar.is-scrolled { height: 60px; }
  .section-inner { padding: 50px 12px; }
  .footer-inner { padding: 40px 12px 24px; }
  .gallery-img { height: 22vh; max-height: 180px; }
}

/* ============ UPCOMING EVENTS POPUP ============ */
.event-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.event-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.event-popup-modal {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  will-change: transform, opacity;
  transform: scale(0.95) translateY(20px) translateZ(0);
  backface-visibility: hidden;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.event-popup-overlay.is-active .event-popup-modal {
  transform: scale(1) translateY(0) translateZ(0);
  opacity: 1;
}
.event-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.event-popup-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}
.event-popup-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.popup-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 24px;
  color: var(--yellow);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.popup-subtitle {
  color: var(--muted);
  font-size: 14px;
}
.event-popup-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.event-popup-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--panel-2);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.event-popup-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.05);
}
.event-popup-item:nth-child(1) { border-left-color: var(--yellow); }
.event-popup-item:nth-child(2) { border-left-color: var(--red); }
.event-popup-item:nth-child(3) { border-left-color: var(--blue); }
.event-popup-item:nth-child(4) { border-left-color: var(--white); }

.event-popup-date {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  min-width: 75px;
  text-align: center;
}
.event-popup-details h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--white);
}
.event-popup-details p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.event-popup-actions {
  text-align: center;
}
.poster-preview-wrapper {
  display: flex;
  gap: 16px;
  margin: 0 0 24px;
}

.poster-preview-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.poster-preview-label {
  display: block;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.poster-preview-section p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.poster-preview-button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 12px;
}
@media (max-width: 520px) {
  .poster-preview-wrapper {
    flex-direction: column;
  }
  .poster-preview-section {
    align-items: flex-start;
    flex-direction: column;
  }
  .poster-preview-button {
    width: 100%;
    justify-content: center;
  }
}
.popup-btn {
  width: 100%;
  justify-content: center;
}

/* --- GAMES POPUP STYLES --- */
.games-popup-modal {
  max-width: 800px;
  width: 95%;
  max-height: 90dvh;
  overflow-y: auto;
}
.game-details-panel {
  max-width: 600px;
  width: 95%;
  max-height: 90dvh;
  overflow-y: auto;
}
.games-categories-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.games-category-title {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.game-card {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-card--featured {
  grid-column: 1 / -1;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
}
.game-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.game-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.game-card-info {
  font-size: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 4px;
  margin: 8px 0;
}
.game-card-info span {
  display: block;
  margin-bottom: 4px;
}
.game-card-info span:last-child {
  margin-bottom: 0;
}
.game-card-info strong {
  color: var(--yellow);
}
.btn-yellow {
  background: var(--yellow);
  color: #000 !important;
  font-weight: 800;
  border: none;
}
.btn-yellow:hover {
  background: var(--white);
  color: #000 !important;
  transform: translateY(-2px);
}

/* TechnoSpark Hero Logo Banner */
.btn-technospark-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 20px 40px;
  border: 2px solid rgba(232, 56, 79, 0.4);
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  animation: ts-banner-pulse 2.5s ease-in-out infinite;
  cursor: pointer;
}
.btn-technospark-banner:hover {
  animation: none;
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 199, 44, 0.7);
  background: rgba(10, 10, 15, 0.8);
  box-shadow: 0 0 40px rgba(232, 56, 79, 0.3), 0 0 80px rgba(255, 199, 44, 0.15);
}
.ts-logo-img {
  height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(232, 56, 79, 0.4));
  transition: filter 0.3s ease;
}
.btn-technospark-banner:hover .ts-logo-img {
  filter: drop-shadow(0 0 25px rgba(232, 56, 79, 0.6));
}
.ts-popup-logo {
  height: auto;
  width: 100%;
  max-width: 450px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(232, 56, 79, 0.3));
  margin-bottom: 12px;
}
.ts-banner-date {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(135deg, #e8384f, #c62040);
  padding: 6px 24px;
  border-radius: 4px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 0 20px rgba(232, 56, 79, 0.35);
}
.ts-banner-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--yellow);
  text-transform: uppercase;
}
@keyframes ts-banner-pulse {
  0%, 100% {
    border-color: rgba(232, 56, 79, 0.4);
    box-shadow: 0 0 20px rgba(232, 56, 79, 0.15), 0 0 50px rgba(255, 199, 44, 0.05);
  }
  50% {
    border-color: rgba(255, 199, 44, 0.5);
    box-shadow: 0 0 30px rgba(232, 56, 79, 0.25), 0 0 70px rgba(255, 199, 44, 0.1);
  }
}
@media (max-width: 600px) {
  .ts-logo-img {
    height: clamp(40px, 12vw, 80px);
  }
  .btn-technospark-banner {
    padding: 14px 20px;
    gap: 10px;
  }
  .ts-banner-date {
    font-size: clamp(12px, 2.5vw, 14px);
  }
  .ts-banner-cta {
    font-size: clamp(11px, 2.2vw, 13px);
  }
}

@media (max-width: 375px) {
  .ts-logo-img {
    height: clamp(35px, 10vw, 50px);
  }
  .btn-technospark-banner {
    padding: 12px 16px;
    gap: 8px;
  }
  .ts-banner-date {
    font-size: 11px;
  }
  .ts-banner-cta {
    font-size: 10px;
  }
}
.game-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--panel-2);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
.game-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-info-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.game-info-value {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}

/* ============ PDF VIEWER POPUP ============ */
.pdf-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.pdf-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.pdf-popup-modal {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  width: 95%;
  height: 90vh;
  max-width: 1200px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-popup-overlay.is-active .pdf-popup-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.pdf-popup-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: auto;
  padding: 24px;
}
.pdf-popup-container canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.pdf-popup-modal .event-popup-close {
  background: var(--void);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  z-index: 2;
}
