:root {
  --bg: #0c0714;
  --bg-2: #12091f;
  --surface: rgba(32, 16, 56, 0.72);
  --surface-strong: rgba(47, 22, 82, 0.78);
  --purple: #7c3aed;
  --violet: #a855f7;
  --glow: #c084fc;
  --text: #ffffff;
  --muted: #e2d9f3;
  --line: rgba(192, 132, 252, 0.26);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 72% 16%, rgba(168, 85, 247, 0.28), transparent 28rem),
    radial-gradient(circle at 8% 86%, rgba(124, 58, 237, 0.2), transparent 26rem),
    var(--bg);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  overflow-x: hidden;
  cursor: crosshair;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 44%, rgba(192, 132, 252, 0.08) 45%, transparent 46% 100%);
  animation: scan 10s linear infinite; /* <-- Changed from 4.8s to 15s */
  z-index: -1;
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-aura,
  .cursor-readout {
    display: none !important;
  }
}

.starfield-canvas,
.cursor-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield-canvas {
  z-index: 0;
  mix-blend-mode: screen;
}

.cursor-aura {
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 255, 255, 0.16), rgba(192, 132, 252, 0.18) 8rem, transparent 18rem);
  transition: opacity 180ms ease;
}

.cursor-readout {
  position: fixed;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 50%);
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translate(18px, 18px) scale(0.94);
  padding: 7px 10px;
  border: 1px solid rgba(192, 132, 252, 0.48);
  border-radius: 999px;
  color: white;
  background: rgba(13, 8, 25, 0.78);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.28);
  backdrop-filter: blur(12px);
  font: 900 0.72rem "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
}

body.cursor-active .cursor-aura {
  opacity: 1;
}

body.cursor-active .cursor-readout.active {
  opacity: 1;
  transform: translate(18px, 18px) scale(1);
}

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

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

.site-shell img:not(.brand img):not(.robot-float):not(.sponsor-card img) {
  width: 100%;
  height: clamp(160px, 24vh, 240px);
  max-height: clamp(160px, 24vh, 240px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  animation: pageIn 520ms ease both;
}

.nav-wrap {
  position: sticky; 
  top: 14px;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 8, 25, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  transition: border-color 220ms ease, background 220ms ease;
}

.nav-wrap.scrolled {
  background: rgba(13, 8, 25, 0.9);
  border-color: rgba(192, 132, 252, 0.48);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: #4e2379;
}

.brand.image-failed::before {
  content: "";
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.6);
  background: #4e2379 url("assets/brand/team-logo.svg") center / contain no-repeat;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}

.brand.image-failed img {
  display: none;
}

.brand strong,
.team-number,
h1,
h2 {
  font-family: "Orbitron", "Inter", sans-serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--glow);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: white;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.95), rgba(168, 85, 247, 0.9));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 24px rgba(168, 85, 247, 0.28);
}

.nav-links a,
.btn,
.hero-copy,
.hero-visual,
.section-copy,
.stat-card,
.feature-card,
.member-card,
.event-card,
.robot-card,
.timeline-card,
.story-panel,
.season-photo-slot,
.robot-photo-slot,
.video-frame,
.tab-list button,
.footer-links a,
.socials a {
  transform-style: preserve-3d;
  will-change: transform;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(168, 85, 247, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.page-section {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 172vh;
  display: grid;
  align-items: start;
  padding: 20px 0 42px; /* <-- Changed the 76px to 20px */
  isolation: isolate;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 24px 0 28px;
  }

  .hero::after {
    display: none;
  }

  .hero-bg-robot {
    position: relative;
    top: auto;
    opacity: 0.48;
    transform: none;
    margin-bottom: 18px;
  }

  .hero-grid {
    position: static;
    transform: none;
    opacity: 1;
    min-height: auto;
  }

  .hero-title,
  .hero-visual {
    transform: none;
  }

  .hero-visual {
    min-height: 320px;
  }

  .stagger {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero::after {
  content: "SCROLL";
  position: sticky;
  top: calc(100vh - 74px);
  justify-self: center;
  width: 92px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, 0.38);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  background: rgba(13, 8, 25, 0.66);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.22);
  opacity: calc(1 - var(--hero-progress, 0));
}

.hero-bg-robot {
  position: sticky;
  top: 92px;
  grid-area: 1 / 1;
  width: min(118vw, 1320px);
  max-width: none;
  margin: 0 auto;
  opacity: calc(0.18 - (var(--hero-progress, 0) * 0.13));
  filter: grayscale(1) contrast(1.16) brightness(0.78);
  mix-blend-mode: screen;
  transform: translateY(calc(var(--hero-progress, 0) * -90px)) scale(calc(1.08 + (var(--hero-progress, 0) * 0.18)));
  pointer-events: none;
  z-index: -1;
}

.hero-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-grid {
  position: sticky;
  top: 112px;
  min-height: calc(100vh - 132px);
  transform:
    translateY(calc(var(--hero-progress, 0) * -32px))
    scale(calc(1 - (var(--hero-progress, 0) * 0.08)));
  opacity: calc(1 - (var(--hero-progress, 0) * 0.3));
  transition: transform 80ms linear, opacity 80ms linear;
}

.eyebrow,
.card-kicker {
  color: var(--glow);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 12px 0;
  font-size: clamp(3.2rem, 10vw, 8.6rem);
  line-height: 0.9;
  text-shadow: 0 0 38px rgba(192, 132, 252, 0.34);
  transform: translateX(calc(var(--hero-progress, 0) * -32px));
}

.hero-title span {
  display: block;
}

.team-number {
  color: var(--glow);
  font-size: 0.72em;
}

.stagger {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.stagger:nth-child(2) {
  animation-delay: 160ms;
}

.stagger:nth-child(3) {
  animation-delay: 300ms;
}

.hero-subtitle,
.page-hero p,
.section-copy p,
.feature-card p,
.event-card p,
.robot-card p,
.timeline-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 900;
  border: 1px solid rgba(192, 132, 252, 0.44);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -55%;
  width: 40%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.28);
  transition: left 320ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.34);
}

.btn:hover::after {
  left: 120%;
}

.btn-primary {
  background: linear-gradient(135deg, #6b21a8, #a855f7);
}

.btn-secondary {
  background: rgba(26, 15, 46, 0.65);
}

.hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.orbital-ring {
  position: absolute;
  width: min(92%, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(168, 85, 247, 0.15), 0 0 80px rgba(168, 85, 247, 0.22);
  animation: spin 18s linear infinite;
}

.orbital-ring::before,
.orbital-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(192, 132, 252, 0.23);
  border-radius: 50%;
}

.robot-float {
  width: min(92%, 720px);
  max-height: 660px;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(168, 85, 247, 0.28));
  animation: float 4.6s ease-in-out infinite;
}

.hero-visual {
  transform: translateX(calc(var(--hero-progress, 0) * 46px)) scale(calc(1 + (var(--hero-progress, 0) * 0.16)));
}

.robot-fallback {
  display: none;
  position: relative;
  width: min(82%, 430px);
  aspect-ratio: 1.08;
  filter: drop-shadow(0 28px 48px rgba(168, 85, 247, 0.32));
  animation: float 4.6s ease-in-out infinite;
}

.hero-visual.image-failed .robot-fallback {
  display: grid;
  place-items: center;
}

.hero-visual.image-failed .robot-float {
  display: none;
}

.bot-top,
.bot-core,
.bot-base {
  position: absolute;
  border: 2px solid rgba(216, 180, 254, 0.85);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.32), rgba(15, 8, 30, 0.86));
  box-shadow: inset 0 0 32px rgba(192, 132, 252, 0.18), 0 0 38px rgba(168, 85, 247, 0.3);
}

.bot-top {
  top: 7%;
  left: 28%;
  width: 44%;
  height: 18%;
  border-radius: var(--radius);
}

.bot-core {
  top: 30%;
  left: 17%;
  width: 66%;
  height: 40%;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
}

.bot-core span {
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.9);
}

.bot-base {
  bottom: 10%;
  left: 10%;
  width: 80%;
  height: 16%;
  border-radius: 999px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 0 68px;
}

.stat-card,
.feature-card,
.member-card,
.event-card,
.robot-card,
.timeline-card,
.story-panel,
.season-photo-slot,
.robot-photo-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(33, 16, 58, 0.82), rgba(14, 8, 27, 0.76));
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.stat-card::after,
.feature-card::after,
.member-card::after,
.event-card::after,
.robot-card::after,
.timeline-card::after,
.story-panel::after,
.season-photo-slot::after,
.robot-photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--hover-spot, 0);
  background: radial-gradient(circle at var(--local-x, 50%) var(--local-y, 50%), rgba(255, 255, 255, 0.18), rgba(192, 132, 252, 0.16) 20%, transparent 54%);
  transition: opacity 180ms ease;
}

.stat-card {
  min-height: 156px;
  padding: 28px;
  text-align: center;
}

.stat-card strong,
.stat-card span {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: white;
  text-shadow: 0 0 26px rgba(192, 132, 252, 0.42);
}

.stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.split-section {
  padding: 30px 0 90px;
}

.sponsors-section {
  padding: 8px 0 90px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-content: start;
  align-items: start;
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.23), 0 24px 70px rgba(0, 0, 0, 0.25);
}

.sponsor-card img {
  width: auto;
  max-width: 100%;
  max-height: 92px;
  height: auto;
  object-fit: contain;
  display: block;
}

.home-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -34vh;
  padding-bottom: 86px;
  position: relative;
  z-index: 3;
}

.story-panel {
  min-height: 340px;
  padding: clamp(22px, 3vw, 34px);
  transform: translateY(calc((1 - var(--story-progress, 0)) * 44px));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-panel:nth-child(2) {
  transform: translateY(calc((1 - var(--story-progress, 0)) * 74px));
}

.story-panel:nth-child(3) {
  transform: translateY(calc((1 - var(--story-progress, 0)) * 104px));
}

.story-panel h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.story-panel p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.section-copy h2,
.section-heading h2,
.page-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
}

.feature-card {
  padding: clamp(24px, 4vw, 42px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.text-link {
  color: var(--glow);
  font-weight: 900;
  display: inline-flex;
  margin-top: 12px;
}

.page-hero {
  padding: 120px 0 52px;
  max-width: 980px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 92px;
}

.member-card {
  min-height: 360px;
  padding: 14px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.member-card:hover,
.event-card:hover,
.robot-card:hover,
.story-panel:hover,
.timeline-card:hover,
.stat-card:hover,
.feature-card:hover {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.23), 0 24px 70px rgba(0, 0, 0, 0.25);
}

.member-card img,
.member-card.placeholder div {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 132, 252, 0.28);
}

.member-card.image-failed img {
  display: none;
}

.member-card.image-failed::before {
  content: attr(data-initial);
  width: 100%;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  font: 900 4rem "Orbitron", sans-serif;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, #c084fc, #6b21a8 48%, #1a0f2e);
  background-size: 20px 20px, 20px 20px, auto;
}

.member-card.placeholder div {
  display: grid;
  place-items: center;
  font: 900 4rem "Orbitron", sans-serif;
  background: radial-gradient(circle at 30% 20%, #c084fc, #6b21a8 48%, #1a0f2e);
}

.member-card h3 {
  margin: 14px 0 6px;
  font-size: 1.12rem;
}

.member-card p,
.member-card span {
  color: var(--muted);
  line-height: 1.5;
}

.member-card p {
  margin: 0 0 8px;
}

.member-card span {
  color: var(--glow);
  font-weight: 800;
}

.event-stack {
  display: grid;
  gap: 18px;
  padding-bottom: 92px;
}

.event-card {
  padding: clamp(22px, 4vw, 38px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.event-card span,
.timeline-card span {
  color: var(--glow);
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
}

.event-card > div:first-child {
  align-self: center;
}

.event-card h2,
.robot-card h2,
.timeline-card h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
}

.event-date {
  margin: 0 0 8px;
  padding: 0;
  color: var(--glow);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.event-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-gallery img:first-child,
.event-gallery .event-image-placeholder:first-child {
  grid-column: 1 / -1;
  min-height: 230px;
}

.event-gallery img,
.event-gallery .event-image-placeholder {
  min-height: 150px;
}

.event-with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: center;
}

.event-gallery img,
.event-image-placeholder {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.event-gallery img {
  height: 100%;
  object-fit: cover;
}

.event-image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(192, 132, 252, 0.58), rgba(107, 33, 168, 0.4) 46%, rgba(13, 8, 25, 0.92));
  background-size: 22px 22px, 22px 22px, auto;
  text-align: center;
}

.event-image-placeholder strong {
  font: 900 1.45rem "Orbitron", sans-serif;
}

.event-image-placeholder small {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-with-media.image-failed .event-gallery img {
  display: none;
}

.event-details {
  margin-top: 16px;
  border-top: 1px solid rgba(192, 132, 252, 0.22);
  padding-top: 14px;
}

.event-details summary {
  color: var(--glow);
  cursor: pointer;
  font-weight: 900;
}

.event-details summary:hover {
  color: white;
}

.event-details p {
  margin: 10px 0 0;
}

/* styles.css — find this existing rule and replace it */
.season-tabs {
  padding-top: clamp(40px, 6vw, 72px);  /* ← add this line */
  padding-bottom: 96px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(26, 15, 46, 0.68);
  min-height: 46px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.tab-list button.active {
  color: white;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.95), rgba(168, 85, 247, 0.9));
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050209;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.caption {
  color: var(--glow);
  font-weight: 800;
  margin: 12px 0 20px;
}

.robot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.robot-card {
  padding: clamp(22px, 3vw, 34px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.robot-card.wide {
  max-width: 900px;
}

.robot-photo-slot,
.season-photo-slot {
  min-height: 220px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-align: center;
  overflow: visible;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 25%, rgba(192, 132, 252, 0.42), rgba(107, 33, 168, 0.28) 48%, rgba(13, 8, 25, 0.88));
  background-size: 24px 24px, 24px 24px, auto;
}

.robot-photo-slot img,
.season-photo-slot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  padding: 10px;
  filter: drop-shadow(0 24px 36px rgba(168, 85, 247, 0.28));
}

.robot-photo-slot span,
.season-photo-slot span {
  font: 900 1.35rem "Orbitron", sans-serif;
}

.robot-photo-slot small,
.season-photo-slot small {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-photo-slot {
  min-height: clamp(320px, 46vh, 520px);
  padding: 10px;
}

.glow-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  padding-bottom: 96px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 2px;
  height: calc(100% - 98px);
  background: linear-gradient(var(--glow), rgba(192, 132, 252, 0.05));
  transform-origin: top;
  animation: lineDraw 1.4s ease both;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 20px;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet);
  border: 7px solid var(--bg);
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.72);
  z-index: 1;
}

.timeline-card {
  padding: clamp(22px, 4vw, 38px);
}

.award-group {
  border-top: 1px solid rgba(192, 132, 252, 0.16);
  padding-top: 15px;
  margin-top: 15px;
}

.award-group h3 {
  margin: 0 0 6px;
}

.award-group p {
  margin: 4px 0;
}

.season-note {
  color: white;
  font-weight: 900;
}

.footer {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 8, 25, 0.82);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-family: "Orbitron", sans-serif;
}

.footer-brand span,
.footer-meta {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  grid-column: 1 / -1;
}

.footer-links a,
.socials a {
  color: var(--muted);
  font-weight: 800;
  padding: 8px 10px;
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: var(--radius);
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.socials a svg {
  width: 14px;
  height: 14px;
  display: block;
}

.footer .socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer .socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.footer .socials svg {
  width: 28px;
  height: 28px;
  display: block;
}

.socials a:hover,
.footer-links a:hover {
  color: white;
  border-color: rgba(192, 132, 252, 0.62);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-80%); /* Changed from -40% */
  }
  100% {
    transform: translateX(80%); /* Changed from 40% */
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-18px) rotate(1.2deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lineDraw {
  from {
    transform: scaleY(0);
  }
}

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

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: auto;
    min-width: 180px;
    max-width: calc(100vw - 24px);
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 8, 25, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  }

  .nav-links.open {
    display: grid;
    justify-items: stretch;
  }

  .nav-links.open a {
    width: 100%;
    text-align: left;
  }

  .hero-grid,
  .split-section,
  .event-with-media {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 150vh;
  }

  .hero-visual {
    min-height: 320px;
  }

  .stats-band,
  .member-grid,
  .robot-grid,
  .home-story {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-story {
    margin-top: -24vh;
  }

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

  .footer-links,
  .socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .page-section,
  .footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 54px;
    min-height: 136vh;
  }

  .hero-grid {
    top: 108px;
    min-height: auto;
  }

  .button-row {
    display: grid;
  }

  .stats-band,
  .member-grid,
  .robot-grid,
  .home-story {
    grid-template-columns: 1fr;
  }

  .home-story {
    margin-top: -12vh;
  }

  .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .event-gallery > .event-img-main,
  .event-gallery > .event-placeholder-main,
  .event-gallery > img:first-child,
  .event-gallery > .event-image-placeholder:first-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .event-gallery img,
  .event-gallery .event-image-placeholder {
    min-height: 120px;
  }

  .stat-card {
    min-height: 132px;
  }

  .member-card {
    min-height: auto;
  }

  .page-hero {
    padding-top: 82px;
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-links a:hover,
  .btn:hover,
  .member-card:hover,
  .event-card:hover,
  .robot-card:hover,
  .story-panel:hover,
  .timeline-card:hover,
  .stat-card:hover,
  .feature-card:hover,
  .hero-copy:hover,
  .hero-visual:hover,
  .section-copy:hover,
  .video-frame:hover,
  .tab-list button:hover,
  .footer-links a:hover,
  .socials a:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
  }
}

.home-page .hero {
  min-height: auto;
  padding: 24px 0 42px;
}

.home-page .hero::after,
.home-page .hero-bg-robot {
  display: none;
}

.home-page .hero-grid {
  position: static;
  top: auto;
  min-height: auto;
  transform: none;
  opacity: 1;
}

.home-page .hero-copy,
.home-page .hero-visual,
.home-page .hero-grid {
  min-width: 0;
}

.home-page .hero-title,
.home-page .hero-visual {
  transform: none;
}

.home-page .hero-visual {
  min-height: 320px;
}

.home-page .stagger {
  animation: none;
  opacity: 1;
  transform: none;
}

.home-page .hero-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-page,
.home-page .site-shell {
  overflow-x: hidden;
  max-width: 100%;
}

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

  .starfield-canvas,
  .cursor-aura {
    display: none;
  }
}
