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

:root {
  --premise-progress: 0;
  --premise-veil: 0;
  --logo-scroll-scale: 1;
  --hero-logo-opacity: 1;
  --hero-flash-opacity: 0;
  --hero-bg-opacity: 0;
  --hero-vignette-opacity: 0;
  --hero-intro-t: 0;
  --sw-intro-opacity: 0;
  --sw-titles-top: 100%;
  --sw-titles-opacity: 0;
}

html {
  scroll-padding-top: 3.75rem;
}

body {
  background: #050505;
  color: #f0f0f0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
body.modal-open {
  overflow: hidden;
}

body.boot-lock {
  overflow: hidden;
}

/* Prevent accidental horizontal scroll during the intro (before hero-ready). */
body:not(.hero-ready) {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body:not(.hero-ready) {
    overflow-x: hidden;
  }
}

/* Boot: loading + Enter Galaxy (gates intro + audio) */
.site-boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, #1a1020 0%, #050505 55%, #000 100%);
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.site-boot.site-boot--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-boot__panel {
  width: min(420px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.site-boot__title {
  font-family: "Audiowide", monospace;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffe81f;
  text-shadow: 0 0 24px rgba(255, 232, 31, 0.35);
}

/* Horizontal lightsaber loader (inspired by classic CSS saber demos) */
.site-boot__saber {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
  translate: 0 0;
}

.site-boot__hilt {
  position: relative;
  flex: 0 0 auto;
  height: 1.125rem;
  width: 3rem;
  margin-right: -0.08rem;
  z-index: 2;
}

.site-boot__hilt-body {
  position: absolute;
  inset: 0;
  border-radius: 0.3rem 0 0 0.3rem;
  border-bottom: solid 3px #6b6b6b;
  border-top: solid 4px #6b6b6b;
  border-left: solid 1px rgba(0, 0, 0, 0.35);
  background: linear-gradient(to bottom, #fefefe 0%, #d1d1d1 49%, #dbdbdb 50%, #e8e8e8 100%);
  box-shadow:
    inset -2px 0 4px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.site-boot__hilt-switch {
  position: absolute;
  bottom: 1rem;
  left: 0.55rem;
  height: 0.35rem;
  width: 0.65rem;
  border-radius: 999px;
  background: #b94a37;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.site-boot__saber[data-blade-on] .site-boot__hilt-switch {
  background: #c09853;
  transform: translateX(-1px);
}

.site-boot__saber[data-ready] .site-boot__hilt-switch {
  background: #468847;
}

/* Progress bar: --boot-pct set in JS so a separate halo layer can glow without overflow clipping */
.site-boot__bar {
  --boot-pct: 0%;
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  margin: -0.75rem -0.6rem;
}

.site-boot__bar-stage {
  position: relative;
  width: 100%;
  height: 0.75rem;
}

/* Sharp blade + channel (clips the solid fill only) */
.site-boot__bar-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 0 999px 999px 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 31, 0.12),
    inset 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Soft “box-shadow” halo: masked to blade length; no harsh screen blend */
.site-boot__blade-halo {
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 150%;
  min-height: 1.35rem;
  pointer-events: none;
  border-radius: 0 999px 999px 0;
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    90deg,
    #fff 0,
    #fff var(--boot-pct, 0%),
    transparent var(--boot-pct, 0%)
  );
  mask-image: linear-gradient(90deg, #fff 0, #fff var(--boot-pct, 0%), transparent var(--boot-pct, 0%));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 232, 31, 0.14) 0%,
    rgba(255, 236, 180, 0.08) 40%,
    rgba(255, 220, 140, 0.06) 100%
  );
  filter: blur(6px);
  box-shadow:
    0 0 6px 0 rgba(255, 232, 31, 0.22),
    0 0 14px 1px rgba(255, 220, 130, 0.14),
    0 0 28px 2px rgba(255, 200, 90, 0.09),
    0 0 44px 4px rgba(255, 190, 70, 0.05);
  animation: site-boot-halo-pulse 3s ease-in-out infinite;
}

.site-boot__saber:not([data-blade-on]) .site-boot__blade-halo {
  opacity: 0;
  animation: none;
  box-shadow: none;
}

@keyframes site-boot-halo-pulse {
  0%,
  100% {
    box-shadow:
      0 0 6px 0 rgba(255, 232, 31, 0.2),
      0 0 14px 1px rgba(255, 220, 130, 0.12),
      0 0 28px 2px rgba(255, 200, 90, 0.08),
      0 0 44px 4px rgba(255, 190, 70, 0.04);
  }
  50% {
    box-shadow:
      0 0 8px 0 rgba(255, 232, 31, 0.28),
      0 0 18px 2px rgba(255, 224, 150, 0.16),
      0 0 34px 3px rgba(255, 205, 100, 0.1),
      0 0 52px 5px rgba(255, 195, 85, 0.06);
  }
}

.site-boot__bar-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(35, 28, 12, 0.95), rgba(10, 8, 4, 0.98));
}

.site-boot__bar-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transform-origin: left center;
  transition: width 0.35s ease;
}

.site-boot__plasma {
  background: linear-gradient(
    90deg,
    #a67c00 0%,
    #e8c028 22%,
    #ffe81f 45%,
    #fffef5 50%,
    #ffe81f 55%,
    #e8c028 78%,
    #a67c00 100%
  );
  filter: blur(0.25px);
  box-shadow:
    0 0 0 1px rgba(255, 248, 220, 0.4) inset,
    0 0 8px rgba(255, 232, 31, 0.18);
  animation: site-boot-plasma-core 2.2s ease-in-out infinite;
}

.site-boot__saber:not([data-blade-on]) .site-boot__plasma {
  animation: none;
  box-shadow: 0 0 0 1px rgba(255, 248, 220, 0.25) inset;
}

@keyframes site-boot-plasma-core {
  0%,
  100% {
    filter: blur(0.25px) brightness(1);
  }
  50% {
    filter: blur(0.3px) brightness(1.05);
  }
}

.site-boot__status {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  min-height: 1.35em;
}

.site-boot__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.site-boot__cta::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: -0.5rem;
  bottom: -0.2rem;
  border-radius: 1.1rem;
  pointer-events: none;
}

.site-boot__cta > * {
  position: relative;
  z-index: 1;
}

.site-boot__hint-lead {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 232, 31, 0.92);
  text-shadow: 0 0 20px rgba(255, 232, 31, 0.2);
  margin-bottom: 0.4rem;
}

.site-boot__hint-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(200, 218, 232, 0.82);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.site-boot__hint::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 0.65rem;
  background: linear-gradient(90deg, transparent, rgba(78, 183, 236, 0.55), transparent);
}

/* Shared UI controls — same chrome as .map-interactive__zoom-btn / map zoom bar */
.map-interactive__zoom-btn,
.timeline-controls__btn,
.media-continuous__nav,
.media-carousel__btn,
.char-modal__close {
  border: 1px solid rgba(255, 232, 31, 0.35);
  background: rgba(20, 20, 20, 0.95);
  color: #ffe81f;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.map-interactive__zoom-btn:hover,
.timeline-controls__btn:hover,
.media-continuous__nav:hover,
.media-carousel__btn:hover,
.char-modal__close:hover {
  background: rgba(255, 232, 31, 0.12);
  border-color: rgba(255, 232, 31, 0.55);
}

.map-interactive__zoom-btn:focus-visible,
.timeline-controls__btn:focus-visible,
.media-continuous__nav:focus-visible,
.media-carousel__btn:focus-visible,
.char-modal__close:focus-visible {
  outline: 2px solid rgba(255, 232, 31, 0.75);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .site-boot__bar-fill {
    transition: none;
  }
  .site-boot__plasma {
    animation: none !important;
  }
  .site-boot__blade-halo {
    animation: none !important;
    filter: blur(6px) !important;
  }
  .site-boot__hilt-switch {
    transition: none;
  }
  .site-boot {
    transition: none;
  }
}

/* Typography */
h1,
h2,
h3,
.nav-links a,
.section-title,
.char-name,
.theme-card h3,
.impact-card h3,
.themes-split__title,
.impact-pillars-heading,
.impact-section__title,
.stat__value {
  font-family: "Audiowide", monospace;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: clamp(5rem, 7vw, 7.5rem) 0;
  border-bottom: 0;
}

/* More vertical breathing room between main sections after the premise. */
#premise ~ section {
  padding-top: clamp(7rem, 9vw, 10rem);
  padding-bottom: clamp(7rem, 9vw, 10rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  color: #ffe81f;
  margin-bottom: 2rem;
}

/* Navigation */
nav.nav-main {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: #050505cc;
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  z-index: 200;
  border-bottom: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s ease,
    opacity 0.35s ease;
}

/* On small screens, reserve space for the fixed mute button so nav items wrap before they can hide behind it. */
@media (max-width: 860px) {
  nav.nav-main {
    padding-right: calc(1.5rem + 34px + 0.75rem);
    gap: 1rem 1.5rem;
  }
}
nav.nav-main.nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
nav.nav-main a {
  color: #fff;
  text-decoration: none;
  font-family: "Audiowide", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
nav.nav-main a:hover {
  color: #ffe81f;
}
nav.nav-main a.active,
nav.nav-main a[aria-current="page"] {
  color: #ffe81f;
  text-shadow: 0 0 14px rgba(78, 183, 236, 0.22);
  position: relative;
}
nav.nav-main a.active::after,
nav.nav-main a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  opacity: 0.9;
  border-radius: 999px;
}

/* Mute Button */
.mute-btn {
  position: fixed;
  top: 0.3rem;
  right: 1.5rem;
  z-index: 1000;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 232, 31, 0.35);
  background: rgba(20, 20, 20, 0.95);
  color: #ffe81f;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.mute-btn:hover {
  background: rgba(255, 232, 31, 0.12);
  border-color: rgba(255, 232, 31, 0.55);
}

.mute-btn:focus-visible {
  outline: 2px solid rgba(255, 232, 31, 0.75);
  outline-offset: 2px;
}

.mute-btn svg {
  width: 18px;
  height: 18px;
}

/* Hero: sticky viewport pins one screen; bg + logo absolute behind; crawl + CTA on top */
.hero {
  position: relative;
  text-align: center;
  /* Tall scroll track so the “A long time ago…” beat + intro phases have more wheel travel */
  min-height: 340vh;
  padding: 0;
  background: #000;
}

.hero__sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  /* Transparent so fixed starfield shows through */
  background: transparent;
}

.hero__foreground {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  pointer-events: auto;
}

.hero__stage-top {
  flex: 0.28 1 0;
  min-height: 0;
}

.hero__stage-mid {
  flex: 1 1 0;
  min-height: 1.5rem;
}

.hero__logo-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.hero__cta-box {
  flex: 0 0 auto;
  width: 100vw;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.5rem;
  background: #000;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.hero__cta-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5rem;
  height: 5rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.hero__main-title-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.hero__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--hero-bg-opacity, 0);
  transition: opacity 1.05s ease;
}

/* After the premise crawl, force the fixed hero layers off — no slow fade at the Films & TV boundary */
body.hero-fixed-hidden .hero__bg,
body.hero-fixed-hidden .hero__vignette {
  opacity: 0 !important;
  transition: none !important;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero__vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--hero-vignette-opacity, 0);
  transition: opacity 1.05s ease;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(5, 5, 5, 0.35) 0%,
    rgba(5, 5, 5, 0.88) 70%,
    rgba(5, 5, 5, 0.96) 100%
  );
}

.hero__crawl-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  max-width: min(42rem, 92vw);
  margin: 0;
  padding: 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.25rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: rgb(75, 213, 238);
  text-align: center;
  text-shadow: 0 0 24px rgba(75, 213, 238, 0.35);
  opacity: var(--hero-flash-opacity, 0);
  transition: opacity 0.35s ease;
}

.hero-logo-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 15vh)) scale(0.95);
  transition:
    opacity 0.45s ease,
    transform 1.35s cubic-bezier(0.18, 0.82, 0.22, 1);
}

.hero.hero--show-logo .hero-logo-shell:not(.hero-logo-shell--fixed),
.hero.hero--ready .hero-logo-shell:not(.hero-logo-shell--fixed) {
  opacity: var(--hero-logo-opacity, 1);
  transform: translate(-50%, -50%) scale(1);
}

/* Match .hero__logo-layer flex center (50% / 50% of the sticky viewport) — do not use a different vh or the logo jumps when this class toggles. */
.hero .hero-logo-shell.hero-logo-shell--fixed {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  opacity: var(--hero-logo-opacity, 1);
  transform: translate(-50%, -50%);
  transition: opacity 0.08s linear;
  pointer-events: none;
}

.hero-logo-shell .hero-logo {
  transform: scale(var(--logo-scroll-scale, 1));
  transform-origin: center center;
  transition: transform 0.05s linear;
}

.hero-logo {
  min-width: min(500px, 92vw);
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
}

.tagline {
  position: relative;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #fff;
  padding-left: 0.35em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.hero.hero--show-cta .tagline,
.hero.hero--ready .tagline {
  opacity: 1;
}

.down-caret {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 232, 31, 0.35);
  background: rgba(20, 20, 20, 0.95);
  display: grid;
  place-items: center;
  color: #ffe81f;
  text-decoration: none;
  opacity: 0;
  transition:
    opacity 0.65s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.down-caret:hover {
  background: rgba(255, 232, 31, 0.12);
  border-color: rgba(255, 232, 31, 0.55);
}

.down-caret:focus-visible {
  outline: 2px solid rgba(255, 232, 31, 0.75);
  outline-offset: 2px;
}

.hero.hero--show-cta .down-caret,
.hero.hero--ready .down-caret {
  opacity: 1;
}

.down-caret svg {
  width: 22px;
  height: 22px;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    opacity: 1;
  }
  .hero__vignette {
    opacity: 1;
  }
  .hero__crawl-flash {
    opacity: 0 !important;
    visibility: hidden;
  }
  .hero-logo-shell {
    opacity: 1;
    transform: scale(1);
    transition: none;
  }
  .tagline,
  .down-caret {
    opacity: 1;
    transition: none;
  }
  .hero-logo-shell.hero-logo-shell--fixed {
    transition: none;
  }
  .hero-logo-shell .hero-logo {
    transition: none;
  }
}

section.hero {
  padding: 0;
}

/* Premise scroll track + crawl */
section.premise {
  position: relative;
  padding: 0;
  margin: 0;
  margin-top: 0;
  /* Tall track: more wheel travel + room for long crawl text to pass the window */
  min-height: 1200vh;
}

#hero {
  padding-top: 0;
  padding-bottom: 0;
}

.premise-scene {
  position: sticky;
  top: 0;
  z-index: 100;
  /* height: 100vh; */
  /* height: 100dvh; */
  /* min-height: 100vh; */
  /* min-height: 100dvh; */
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.premise-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: var(--premise-veil, 0);
  pointer-events: none;
}

.premise-crawl-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  /* Fill the sticky viewport so descendants can use % / inset height reliably */
  /* min-height: 100vh;
  min-height: 100dvh; */
  padding: 0;
}

/* Star field behind the opening crawl (static layers + subtle drift) */
.premise-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.premise-stars__layer {
  position: absolute;
  inset: -5%;
  background-repeat: repeat;
  will-change: transform;
}

.premise-stars__layer--far {
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.38) 0.55px, transparent 0.65px);
  background-size: 72px 72px;
  opacity: 0.85;
  animation: premise-stars-drift 180s linear infinite;
}

.premise-stars__layer--mid {
  background-image: radial-gradient(circle at center, rgba(255, 248, 220, 0.55) 0.85px, transparent 1px);
  background-size: 118px 118px;
  background-position: 36px 24px;
  opacity: 0.65;
  animation: premise-stars-drift 120s linear infinite reverse;
}

.premise-stars__layer--near {
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.72) 1.1px, transparent 1.25px);
  background-size: 200px 200px;
  background-position: 12px 80px;
  opacity: 0.45;
  animation: premise-stars-drift 90s linear infinite;
}

@keyframes premise-stars-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-80px, -40px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premise-stars__layer--far,
  .premise-stars__layer--mid,
  .premise-stars__layer--near {
    animation: none;
  }
}

.starwars {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 100vh;
  font:
    700 clamp(16px, 2.1vw, 22px) "Inter",
    system-ui,
    sans-serif;
  letter-spacing: 0.15em;
  color: #ff6;
  background: transparent;
}

.starwars section {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
  z-index: 1;
}

.starwars__animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.starwars__titles {
  /* Stretch to full .starwars__animation (inset:0 on .starwars = full viewport column) */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  /* height: 100vh; */
  margin: 0;
  max-height: none;
  font-size: clamp(1.1rem, 4.8vw, 2.4rem);
  font-weight: 700;
  text-align: justify;
  transform-origin: 50% 100%;
  transform: perspective(500px) rotateX(17deg);
  z-index: 1;
  opacity: var(--sw-titles-opacity, 0);
}

.starwars__titles-track {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: var(--sw-titles-top, 100%);
  opacity: inherit;
}

.starwars__titles-track p {
  margin: 1.35em 0 1.85em;
  line-height: 1.35em;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .starwars__titles {
    opacity: 0.9;
  }
  .starwars__titles-track {
    top: 42%;
  }
}

/* Films & TV — 3-up carousel + shared overview */
/* Wrapper keeps edge fades fixed; scroll lives on .media-continuous so ::before/::after don’t scroll away */
.media-continuous__viewport {
  position: relative;
  min-width: 0;
  margin-top: 0.75rem;
}

.media-continuous__viewport::before,
.media-continuous__viewport::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.75rem;
  width: min(48px, 9vw);
  z-index: 3;
  pointer-events: none;
}

.media-continuous__viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 0.97) 0%,
    rgba(5, 5, 5, 0.5) 42%,
    rgba(5, 5, 5, 0) 100%
  );
}

.media-continuous__viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.5) 42%, rgba(5, 5, 5, 0) 100%);
}

.media-continuous {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge Legacy */
}

.media-continuous::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.media-continuous:focus-visible {
  outline: 2px solid rgba(255, 232, 31, 0.7);
  outline-offset: 4px;
  border-radius: 12px;
}

.media-continuous__track {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.25rem 0.5rem;
  min-height: 1px;
}

.media-continuous__label {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 183, 236, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(78, 183, 236, 0.95);
  font-family: "Audiowide", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: start;
}

.media-continuous__track .media-carousel__slide {
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  padding: 0;
  scroll-snap-align: start;
  cursor: pointer;
}

.media-continuous__track .media-carousel__poster {
  max-height: 340px;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
  transform-origin: center center;
}

.media-continuous__track .media-carousel__slide:hover .media-carousel__poster {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.08);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.6);
}

.media-continuous__track .media-carousel__slide.is-active .media-carousel__poster {
  box-shadow:
    0 0 0 2px rgba(255, 232, 31, 0.75),
    0 16px 46px rgba(0, 0, 0, 0.6);
}

.media-continuous-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.media-continuous__nav {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.media-detail {
  margin: 1rem auto 0;
  max-width: 1100px;
  background: #0c0c0c;
  border-radius: 12px;
  border: 1px solid rgba(255, 232, 31, 0.14);
  padding: 1rem 1.2rem 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.media-detail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 232, 31, 0.85), rgba(78, 183, 236, 0.65));
  opacity: 0.9;
}

.media-detail__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.media-detail__thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 232, 31, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.media-detail__kicker {
  margin: 0 0 0.25rem;
  font-family: "Audiowide", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(78, 183, 236, 0.95);
}

.media-detail__copy {
  min-width: 0;
}

.media-detail__title {
  margin: 0 0 0.25rem;
  color: #ffe81f;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-detail__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-detail__desc {
  margin: 0;
  color: #b9b9b9;
  font-size: 0.95rem;
  line-height: 1.65;
}

.media-legacy[hidden] {
  display: none !important;
}

.media-part {
  margin-top: 2.5rem;
}
.media-part:first-of-type {
  margin-top: 0;
}
.media-part__title {
  font-size: 1.15rem;
  color: #ffe81f;
  margin-bottom: 0.75rem;
}
.media-group {
  margin-top: 1.5rem;
}
.media-group__title {
  font-size: 0.9rem;
  color: #4eb7ec;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.media-carousel {
  margin-top: 0.5rem;
}

.media-carousel__toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.65rem;
  max-width: 1100px;
  margin: 0 auto;
}

.media-carousel__btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.media-carousel__window {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.media-carousel__track {
  display: flex;
  align-items: flex-end;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.media-carousel__slide {
  flex: 0 0 calc(100% / 3);
  width: calc(100% / 3);
  max-width: calc(100% / 3);
  box-sizing: border-box;
  padding: 0 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-carousel__slide--side {
  opacity: 0.5;
  transform: scale(0.82);
}

.media-carousel__slide--center {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.media-carousel--single .media-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  transform: scale(1);
}

.media-carousel--single .media-carousel__poster {
  max-width: min(320px, 70vw);
  margin: 0 auto;
}

.media-carousel__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: min(52vh, 420px);
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #1b1b1b 0%, #0b0b0b 70%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.media-carousel__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.media-carousel__name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.9vw, 0.95rem);
  font-weight: 700;
  color: #fff;
  margin: 0.65rem 0 0.25rem;
  line-height: 1.25;
}

.media-carousel__era {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.media-carousel__year {
  color: #c8c8c8;
}

.media-carousel__era-label {
  color: #d0d0d0;
}

.media-carousel__overview-box {
  width: 100%;
  max-width: 1100px;
  margin: 1.15rem auto 0;
  padding: 1rem 1.2rem 1.15rem;
  background: #0c0c0c;
  border-radius: 12px;
  border: 1px solid rgba(255, 232, 31, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.media-carousel__overview-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #b9b9b9;
}

@media (prefers-reduced-motion: reduce) {
  .media-carousel__track,
  .media-carousel__slide {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 640px) {
  .media-carousel__toolbar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .media-carousel__btn {
    display: none;
  }

  .media-carousel__window {
    grid-column: 1;
  }
}

/* Timeline — proportional meter: yellow bars + point markers, rows when overlapping */
/* Edge fades stay fixed; horizontal padding lives here so inner width matches year→px scale */
.timeline-meter__viewport {
  position: relative;
}

.timeline-meter__viewport::before,
.timeline-meter__viewport::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 1.25rem;
  width: min(48px, 9vw);
  z-index: 4;
  pointer-events: none;
}

.timeline-meter__viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 0.97) 0%,
    rgba(5, 5, 5, 0.5) 42%,
    rgba(5, 5, 5, 0) 100%
  );
}

.timeline-meter__viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.5) 42%, rgba(5, 5, 5, 0) 100%);
}

.timeline-scroll.timeline-meter {
  position: relative;
  display: block;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.5rem 0.5rem 1.25rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge Legacy */
}

.timeline-scroll.timeline-meter::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.timeline-meter__inner {
  position: relative;
  /* Width set in JS (scale + horizontal bleed for axis labels); avoid min-width:100% fighting that width */
  min-width: 0;
  padding: 0 0 1rem;
}

.timeline-meter__axis {
  position: relative;
  height: 2.25rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 232, 31, 0.22);
  overflow: visible;
}

.timeline-meter__axis-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 0.62rem;
  line-height: 1.15;
  font-family: "Audiowide", monospace;
  color: rgba(255, 232, 31, 0.92);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.timeline-meter__axis-tick::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 10px;
  background: rgba(255, 232, 31, 0.5);
  transform: translateX(-50%);
}

.timeline-meter__axis-tick--era {
  color: #7fd4f4;
}

.timeline-meter__axis-tick--era::before {
  background: rgba(78, 183, 236, 0.75);
  box-shadow: 0 0 6px rgba(78, 183, 236, 0.35);
}

.timeline-meter__track {
  position: relative;
  min-height: 96px;
  padding-top: 0.25rem;
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: -0.75rem auto 1rem;
  flex-wrap: wrap;
}

.timeline-controls__btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.timeline-controls__range {
  width: min(320px, 70vw);
  accent-color: #ffe81f;
}

.timeline-controls__value {
  font-family: "Audiowide", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255, 232, 31, 0.9);
}

.timeline-tooltip {
  position: fixed;
  z-index: 9000;
  left: 0;
  top: 0;
  max-width: min(380px, 85vw);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid rgba(255, 232, 31, 0.25);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  white-space: normal;
}

.timeline-tooltip__range {
  font-family: "Audiowide", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255, 232, 31, 0.95);
  margin-bottom: 0.35rem;
}

.timeline-tooltip__title {
  font-family: "Audiowide", monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #4eb7ec;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.timeline-tooltip__desc {
  font-size: 0.8rem;
  color: rgba(230, 230, 230, 0.95);
  line-height: 1.45;
}

.timeline-tooltip--sith .timeline-tooltip__title {
  color: #ff9a9a;
}

.timeline-meter__markers {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.timeline-meter__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 232, 31, 0.55) 0%,
    rgba(255, 232, 31, 0.14) 48px,
    rgba(255, 232, 31, 0.08) 100%
  );
}

.timeline-meter__tick--era {
  width: 2px;
  margin-left: -0.5px;
  background: linear-gradient(
    180deg,
    rgba(78, 183, 236, 0.85) 0%,
    rgba(78, 183, 236, 0.25) 40%,
    rgba(255, 232, 31, 0.12) 100%
  );
  box-shadow: 0 0 8px rgba(78, 183, 236, 0.35);
}

.timeline-meter__bar-layer {
  position: relative;
  z-index: 1;
  min-height: 64px;
}

.timeline-item__head {
  position: relative;
}

.timeline-item {
  position: absolute;
  left: 0;
  box-sizing: border-box;
  padding: 0 3px;
  background: transparent;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  /* min-height set in JS to ROW_HEIGHT so the whole band is hoverable, not only the ~28px bar */
}

.timeline-item:focus {
  outline: none;
}

.timeline-item:focus-visible {
  outline: 2px solid rgba(255, 232, 31, 0.85);
  outline-offset: 3px;
}

.timeline-item:hover .timeline-item__bar {
  filter: brightness(1.12);
  box-shadow:
    0 0 0 1px rgba(255, 232, 31, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(255, 232, 31, 0.35);
}

.timeline-item--sith:hover .timeline-item__bar {
  filter: brightness(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 160, 160, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(255, 80, 80, 0.28);
}

.timeline-item--point:hover .timeline-item__marker {
  filter: brightness(1.15);
  box-shadow: 0 0 12px rgba(255, 232, 31, 0.65);
}

.timeline-item--point.timeline-item--sith:hover .timeline-item__marker {
  box-shadow: 0 0 12px rgba(255, 100, 100, 0.55);
}

.timeline-item__bar {
  height: 28px;
  width: 100%;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff29a 0%, #ffe81f 45%, #d4b008 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 3px 10px rgba(255, 232, 31, 0.2);
}

.timeline-item--sith .timeline-item__bar {
  background: linear-gradient(180deg, #ffb3b3 0%, #ff6b6b 45%, #c42e2e 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 3px 10px rgba(255, 80, 80, 0.18);
}

/* Instant-in-time: vertical marker */
.timeline-item--point .timeline-item__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-item--point .timeline-item__marker {
  width: 2px;
  height: 26px;
  border-radius: 1px;
  background: linear-gradient(180deg, #ffe81f 0%, rgba(255, 232, 31, 0.35) 100%);
  box-shadow: 0 0 6px rgba(255, 232, 31, 0.45);
}

.timeline-item--point.timeline-item--sith .timeline-item__marker {
  background: linear-gradient(180deg, #ff8a8a 0%, rgba(255, 80, 80, 0.4) 100%);
  box-shadow: 0 0 6px rgba(255, 80, 80, 0.35);
}

.timeline-hint {
  max-width: 56ch;
  margin: 1.25rem auto 0;
  text-align: center;
  color: rgba(180, 180, 180, 0.95);
  font-size: 0.85rem;
  line-height: 1.45;
}

.timeline-progress {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.timeline-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4eb7ec, #ffe81f);
  border-radius: 999px;
}

/* Character Grid — holo-style portrait cards */
.char-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Galaxy Map — interactive pins + right-side details */
.map-interactive {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.map-interactive__figure {
  position: relative;
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  border-radius: 14px;
}

.map-interactive__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  background: #000;
  max-height: min(50vh, 500px);
}

.map-interactive__viewport.map-interactive__viewport--zoomed {
  cursor: grab;
}

.map-interactive__viewport.map-interactive__viewport--dragging {
  cursor: grabbing;
}

/* Edge pan hints: same chevron SVG as hero “Enter the galaxy” .down-caret */
.map-interactive__pan-hints {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.map-interactive__pan-hint {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
  color: rgba(255, 232, 31, 0.95);
  opacity: 0;
  transition: opacity 0.22s ease;
  display: grid;
  place-items: center;
}

.map-interactive__pan-hint svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 232, 31, 0.25));
}

/* Default path is chevron down — same as hero; rotate for other edges */
.map-interactive__pan-hint--n svg {
  transform: rotate(180deg);
}

.map-interactive__pan-hint--e svg {
  transform: rotate(-90deg);
}

.map-interactive__pan-hint--w svg {
  transform: rotate(90deg);
}

.map-interactive__pan-hint--visible {
  opacity: 1;
}

.map-interactive__pan-hint--n {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.map-interactive__pan-hint--s {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.map-interactive__pan-hint--w {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.map-interactive__pan-hint--e {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .map-interactive__pan-hint {
    transition: none;
  }
}

.map-interactive__pan {
  position: relative;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.map-interactive__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.map-interactive__zoombar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: rgba(5, 5, 5, 0.82);
  border: 1px solid rgba(255, 232, 31, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.map-interactive__zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

.map-interactive__zoom-btn--text {
  width: auto;
  padding: 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Audiowide", monospace;
}

.map-interactive__zoom-value {
  font-family: "Audiowide", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 232, 31, 0.95);
  min-width: 2.75rem;
  text-align: center;
}

.map-pin {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}

.map-pin__dot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 35%, #fff8a0 0%, #ffe81f 40%, #c9a012 100%);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(255, 232, 31, 0.45);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 232, 31, 0.18);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.map-pin:hover::after,
.map-pin:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.map-pin.is-active .map-pin__dot {
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(255, 232, 31, 0.75),
    0 0 28px rgba(255, 232, 31, 0.65);
}

.map-pin:focus-visible {
  outline: 2px solid rgba(255, 232, 31, 0.7);
  outline-offset: 3px;
}

.map-interactive__panel {
  background: #0b0b0b;
  border-radius: 14px;
  border: 1px solid rgba(255, 232, 31, 0.14);
  padding: 1.15rem 1.2rem;
  min-height: 220px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.map-interactive__preview {
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 1rem;
  background: #111;
  /* aspect-ratio: 16 / 10; */
  max-height: min(36vh, 300px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.map-interactive__spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.map-interactive__title {
  margin: 0 0 0.5rem;
  color: #ffe81f;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-interactive__desc {
  margin: 0;
  color: #d0d0d0;
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .map-interactive {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .char-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .char-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.char-card {
  --char-accent: #4eb7ec;
  --char-accent-dim: rgba(78, 183, 236, 0.35);
  --char-glow: rgba(78, 183, 236, 0.22);
  --char-frame: rgba(78, 183, 236, 0.45);
  --char-accent-border: rgba(78, 183, 236, 0.42);
  --char-accent-outline: rgba(78, 183, 236, 0.72);
  cursor: pointer;
  position: relative;
  text-align: center;
  padding: 0.85rem 0.85rem 1rem;
  border-radius: 16px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(30, 32, 38, 0.95) 0%, rgba(6, 7, 10, 1) 55%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.85, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.char-card[data-tone="rebel"] {
  --char-accent: #4eb7ec;
  --char-accent-dim: rgba(78, 183, 236, 0.4);
  --char-glow: rgba(78, 183, 236, 0.28);
  --char-frame: rgba(78, 183, 236, 0.55);
  --char-accent-border: rgba(78, 183, 236, 0.5);
  --char-accent-outline: rgba(120, 200, 235, 0.75);
}

.char-card[data-tone="jedi"] {
  --char-accent: #6fd68a;
  --char-accent-dim: rgba(111, 214, 138, 0.38);
  --char-glow: rgba(80, 200, 120, 0.25);
  --char-frame: rgba(111, 214, 138, 0.5);
  --char-accent-border: rgba(111, 214, 138, 0.48);
  --char-accent-outline: rgba(140, 230, 170, 0.78);
}

.char-card[data-tone="sith"] {
  --char-accent: #ff6b6b;
  --char-accent-dim: rgba(255, 80, 80, 0.45);
  --char-glow: rgba(200, 40, 40, 0.35);
  --char-frame: rgba(255, 107, 107, 0.55);
  --char-accent-border: rgba(255, 107, 107, 0.52);
  --char-accent-outline: rgba(255, 150, 150, 0.78);
}

.char-card[data-tone="droid"] {
  --char-accent: #e8c76a;
  --char-accent-dim: rgba(232, 199, 106, 0.4);
  --char-glow: rgba(255, 200, 80, 0.22);
  --char-frame: rgba(232, 199, 106, 0.55);
  --char-accent-border: rgba(232, 199, 106, 0.5);
  --char-accent-outline: rgba(240, 210, 130, 0.78);
}

.char-card[data-tone="empire"] {
  --char-accent: #c5d0e0;
  --char-accent-dim: rgba(160, 175, 200, 0.38);
  --char-glow: rgba(180, 195, 220, 0.28);
  --char-frame: rgba(150, 165, 190, 0.45);
  --char-accent-border: rgba(190, 205, 225, 0.42);
  --char-accent-outline: rgba(210, 220, 240, 0.72);
}

.char-card__frame {
  position: relative;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 0.75rem;
  background: linear-gradient(
    145deg,
    var(--char-frame) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    var(--char-accent-dim) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Scan-line shimmer across portrait only */
.char-card__frame::before {
  content: "";
  position: absolute;
  inset: -50% -25%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%,
    transparent 100%
  );
  transform: translateX(-130%) rotate(8deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 4;
}

.char-card:hover .char-card__frame::before,
.char-card:focus-within .char-card__frame::before {
  transform: translateX(130%) rotate(8deg);
}

.char-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.char-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 9px;
  position: relative;
  z-index: 1;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.85, 0.3, 1),
    filter 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* HUD corner brackets */
.char-card__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  pointer-events: none;
  border-color: var(--char-accent);
  opacity: 0.85;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.char-card__corner--tl {
  top: 6px;
  left: 6px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 2px 0 0 0;
}
.char-card__corner--tr {
  top: 6px;
  right: 6px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-radius: 0 2px 0 0;
}
.char-card__corner--bl {
  bottom: 6px;
  left: 6px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-radius: 0 0 0 2px;
}
.char-card__corner--br {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-radius: 0 0 2px 0;
}

.char-name {
  position: relative;
  padding-top: 0.5rem;
  margin: 0;
}

.char-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--char-accent), transparent);
  opacity: 0.65;
}

.char-name__text {
  font-size: 0.72rem;
  color: var(--char-accent);
  letter-spacing: 0.12em;
  display: inline-block;
  max-width: 100%;
  line-height: 1.35;
  text-shadow: 0 0 20px var(--char-glow);
}

.char-card__side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  padding: 0;
}

.char-card__side-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--char-accent);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 12px var(--char-glow);
}

.char-card__side-text {
  font-family: "Audiowide", monospace;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--char-accent);
  line-height: 1.25;
  text-shadow: 0 0 12px var(--char-glow);
}

.char-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #050505;
  border: 0;
  padding: 0.5rem;
  width: 180px;
  font-size: 0.7rem;
  z-index: 10;
  border-radius: 4px;
}

.char-card:hover,
.char-card:focus-within {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--char-accent-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px var(--char-accent-border),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px var(--char-glow);
}

.char-card:focus-within {
  outline: 2px solid var(--char-accent-outline);
  outline-offset: 3px;
}

.char-card:hover .char-img,
.char-card:focus-within .char-img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.15) contrast(1.03);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px var(--char-glow);
}

.char-card:hover .char-card__corner,
.char-card:focus-within .char-card__corner {
  opacity: 1;
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .char-card,
  .char-img,
  .char-card__frame::before,
  .char-card__corner {
    transition: none;
  }
  .char-card:hover,
  .char-card:focus-within {
    transform: none;
  }
  .char-card:hover .char-img,
  .char-card:focus-within .char-img {
    transform: none;
  }
  .char-card__frame::before {
    display: none;
  }
}

.char-modal__panel {
  will-change: transform, opacity;
}

.char-modal[hidden] {
  display: none;
}
.char-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.char-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.char-modal__panel {
  position: relative;
  width: min(920px, 92vw);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #0b0b0b;
  border-radius: 16px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
}

.char-modal__panel[data-char-tone="rebel"] {
  --modal-accent: #4eb7ec;
  --modal-accent-soft: rgba(78, 183, 236, 0.22);
  --modal-accent-dim: rgba(78, 183, 236, 0.12);
  --modal-glow: rgba(78, 183, 236, 0.35);
}

.char-modal__panel[data-char-tone="jedi"] {
  --modal-accent: #6fd68a;
  --modal-accent-soft: rgba(111, 214, 138, 0.22);
  --modal-accent-dim: rgba(111, 214, 138, 0.12);
  --modal-glow: rgba(80, 200, 120, 0.32);
}

.char-modal__panel[data-char-tone="sith"] {
  --modal-accent: #ff6b6b;
  --modal-accent-soft: rgba(255, 107, 107, 0.22);
  --modal-accent-dim: rgba(255, 80, 80, 0.12);
  --modal-glow: rgba(200, 40, 40, 0.4);
}

.char-modal__panel[data-char-tone="droid"] {
  --modal-accent: #e8c76a;
  --modal-accent-soft: rgba(232, 199, 106, 0.22);
  --modal-accent-dim: rgba(232, 199, 106, 0.12);
  --modal-glow: rgba(255, 200, 80, 0.3);
}

.char-modal__panel[data-char-tone="empire"] {
  --modal-accent: #c5d0e0;
  --modal-accent-soft: rgba(160, 175, 200, 0.2);
  --modal-accent-dim: rgba(120, 140, 170, 0.14);
  --modal-glow: rgba(180, 195, 220, 0.35);
}

.char-modal__copy {
  min-width: 0;
}

.char-modal__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.char-modal__title {
  font-size: 1.25rem;
  color: #ffe81f;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.char-modal__desc-block {
  margin: 0;
  padding: 1rem 1rem 1.1rem 1.15rem;
  border-radius: 4px 14px 14px 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--modal-accent, #4eb7ec);
  background:
    linear-gradient(145deg, var(--modal-accent-dim, rgba(78, 183, 236, 0.1)) 0%, transparent 55%),
    radial-gradient(
      120% 80% at 0% 0%,
      var(--modal-accent-soft, rgba(78, 183, 236, 0.15)) 0%,
      transparent 50%
    ),
    rgba(8, 9, 12, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.char-modal__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0;
  font-family: "Audiowide", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--modal-accent, #4eb7ec);
  text-shadow: 0 0 18px var(--modal-glow, rgba(78, 183, 236, 0.35));
}

.char-modal__side-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--modal-accent, #4eb7ec);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 14px var(--modal-glow, rgba(78, 183, 236, 0.45));
}

.char-modal__side-label {
  line-height: 1.3;
}

.char-modal__lead {
  margin: 0 0 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--modal-accent, #4eb7ec);
  white-space: pre-wrap;
}

.char-modal__lead:not([hidden]) + .char-modal__desc {
  margin-top: 0;
}

.char-modal__desc {
  margin: 0;
  color: rgba(228, 232, 242, 0.94);
  font-size: 0.98rem;
  line-height: 1.72;
  white-space: pre-wrap;
  text-wrap: pretty;
}

.char-modal__desc::first-line {
  color: rgba(248, 250, 255, 0.97);
  letter-spacing: 0.015em;
}

.char-modal__desc::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  padding: 0.02em 0;
  font-size: 2.5em;
  line-height: 0.82;
  font-family: "Audiowide", monospace;
  font-weight: 600;
  color: var(--modal-accent, #4eb7ec);
  text-shadow: 0 0 28px var(--modal-glow, rgba(78, 183, 236, 0.4));
}
.char-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1;
}
@media (max-width: 700px) {
  .char-modal__panel {
    grid-template-columns: 1fr;
  }
  .char-modal__img {
    max-width: 320px;
    justify-self: center;
  }
}

/* Themes — layered cards with kickers & titles */
.themes-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(78, 183, 236, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 232, 31, 0.04) 0%, transparent 45%);
}

.themes-section__intro {
  max-width: 52ch;
  margin: -0.5rem auto 2.25rem;
  text-align: center;
  color: rgba(200, 200, 200, 0.92);
  font-size: 0.98rem;
  line-height: 1.6;
}

.themes-splits {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.themes-split {
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 232, 31, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(78, 183, 236, 0.18) 100%
  );
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.themes-split--b {
  background: linear-gradient(
    215deg,
    rgba(78, 183, 236, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 232, 31, 0.15) 100%
  );
}

.themes-split__accent {
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe81f 0%, rgba(255, 232, 31, 0.15) 100%);
  opacity: 0.85;
  pointer-events: none;
}

.themes-split--reverse .themes-split__accent {
  left: auto;
  right: 0;
  background: linear-gradient(180deg, #4eb7ec 0%, rgba(78, 183, 236, 0.15) 100%);
}

.themes-split__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(165deg, #121418 0%, #08090c 100%);
  min-height: 0;
}

.themes-split--reverse .themes-split__inner {
  flex-direction: row-reverse;
}

.themes-split__media {
  flex: 1 1 38%;
  min-width: 0;
  position: relative;
  max-width: 100%;
}

.themes-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(8, 9, 12, 0.75) 100%);
  pointer-events: none;
}

.themes-split--reverse .themes-split__media::after {
  background: linear-gradient(270deg, transparent 55%, rgba(8, 9, 12, 0.75) 100%);
}

.themes-split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.06);
}

.themes-split__text {
  flex: 1 1 48%;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.themes-split__kicker {
  margin: 0 0 0.4rem;
  font-family: "Audiowide", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 232, 31, 0.88);
}

.themes-split__title {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #7fd4f4;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.06em;
}

.themes-split__body p {
  margin: 0;
  color: #d0d4dc;
  font-size: 0.94rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .themes-split__inner,
  .themes-split--reverse .themes-split__inner {
    flex-direction: column;
  }

  .themes-split__media::after {
    background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 12, 0.88) 100%);
  }

  .themes-split--reverse .themes-split__media::after {
    background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 12, 0.88) 100%);
  }

  .themes-split__media img {
    min-height: 240px;
  }

  .themes-split__accent {
    top: 0;
    bottom: auto;
    left: 1.25rem;
    right: 1.25rem;
    width: auto;
    height: 4px;
  }

  .themes-split--reverse .themes-split__accent {
    left: 1.25rem;
    right: 1.25rem;
  }
}

/* Cultural Impact */
.impact-section-wrap {
  background:
    radial-gradient(ellipse 70% 45% at 20% 10%, rgba(255, 232, 31, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 90% 80%, rgba(78, 183, 236, 0.06) 0%, transparent 50%);
}

.impact-section-wrap__intro {
  max-width: 48ch;
  margin: -0.5rem auto 2rem;
  text-align: center;
  color: rgba(190, 190, 190, 0.95);
  font-size: 0.95rem;
  line-height: 1.55;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .impact-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  position: relative;
  padding: 1.15rem 1rem 1.2rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, #0c0c0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --stat-accent: #4eb7ec;
}

.stat--cyan {
  --stat-accent: #4eb7ec;
}
.stat--gold {
  --stat-accent: #ffe81f;
}
.stat--coral {
  --stat-accent: #ff9a8b;
}
.stat--violet {
  --stat-accent: #c4b5fd;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, var(--stat-accent), transparent);
  opacity: 0.95;
}

.stat__glyph {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stat-accent);
  box-shadow: 0 0 14px var(--stat-accent);
  opacity: 0.9;
}

.stat__value {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--stat-accent);
  text-shadow: 0 0 24px rgba(78, 183, 236, 0.15);
}

.stat--gold .stat__value {
  text-shadow: 0 0 28px rgba(255, 232, 31, 0.2);
}

.stat__label {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 180, 180, 0.95);
  line-height: 1.35;
}

.impact-narrative {
  margin-bottom: 2.75rem;
}

.impact-pull {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid rgba(255, 232, 31, 0.65);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #ececec;
}

.impact-pull p {
  margin: 0;
  font-style: italic;
}

.impact-narrative__grid {
  display: grid;
  gap: 1.15rem 2rem;
  grid-template-columns: 1fr;
  color: #c8c8c8;
  font-size: 0.93rem;
  line-height: 1.72;
}

@media (min-width: 768px) {
  .impact-narrative__grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-narrative__highlight {
    grid-column: 1 / -1;
  }
}

.impact-narrative__highlight {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 232, 31, 0.2);
  background: rgba(255, 232, 31, 0.04);
  color: #f0f0f0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.impact-pillars-heading {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-align: center;
  color: rgba(255, 232, 31, 0.75);
}

.impact-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.impact-section {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #14151a 0%, #0a0a0d 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.impact-section--industry {
  border-top: 3px solid rgba(78, 183, 236, 0.65);
}
.impact-section--fans {
  border-top: 3px solid rgba(255, 232, 31, 0.55);
}
.impact-section--academia {
  border-top: 3px solid rgba(196, 181, 253, 0.65);
}

.impact-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.impact-section__index {
  font-family: "Audiowide", monospace;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  letter-spacing: 0.02em;
}

.impact-section__title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.impact-section--industry .impact-section__title {
  color: #4eb7ec;
}

.impact-section--fans .impact-section__title {
  color: #ffe81f;
}

.impact-section--academia .impact-section__title {
  color: #d4c4ff;
}

.impact-section__content {
  padding: 1rem 1.2rem 1.25rem;
  flex: 1;
}

.impact-section__content p {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: #bdbdbd;
}

.impact-section__content p:first-child {
  margin-top: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.impact-card {
  background: #111;
  padding: 1rem;
  border: 0;
}

.impact-card h3 {
  font-size: 0.85rem;
  color: #4eb7ec;
  margin-bottom: 0.5rem;
}

.impact-card p {
  font-size: 0.8rem;
  color: #aaa;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.7rem;
  color: #555;
}

.footer-force {
  font-family: "Audiowide", monospace;
  color: #4eb7ec;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 0 12px rgba(78, 183, 236, 0.4);
  margin-top: 1.5rem;
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

footer a:visited {
  color: inherit;
}

footer a:hover,
footer a:visited:hover {
  color: #ffe81f;
}

footer a:focus-visible {
  color: #ffe81f;
  outline: 1px solid rgba(255, 232, 31, 0.55);
  outline-offset: 3px;
}

/* Utilities */
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 2rem;
}
