:root {
  --bg: #04050a;
  --panel: rgba(10, 12, 21, 0.72);
  --panel-strong: rgba(9, 11, 18, 0.88);
  --text: #eef2fb;
  --muted: #98a0bf;
  --cyan: #6cf6ff;
  --amber: #ffb05a;
  --magenta: #ff4ecb;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --shell-width: min(90%, 1560px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #1c2338 #060912;
  min-height: 100%;
  background: #04050a;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 78, 203, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(108, 246, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #030409 0%, #080a13 36%, #090d18 100%);
  font-family: "Rajdhani", "Arial Narrow", sans-serif;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #060912;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a2338, #0e1424);
  border-radius: 999px;
  border: 2px solid #060912;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #24314c, #141c30);
}

img,
video {
  display: block;
  width: 100%;
}

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

.page-shell {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

body.route-sky,
body.route-sky .page-shell {
  height: 100vh;
  overflow: hidden;
}

body.route-sky .page-shell {
  padding: 0;
}

body.route-sky main {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0;
}

main {
  margin-top: 28px;
  animation: page-enter 260ms ease-out both;
}

main.is-leaving {
  transition: opacity 180ms ease, transform 180ms ease;
  opacity: 0;
  transform: translateY(-6px);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
}

.topbar,
.hero,
.section,
.footer,
.page-hero {
  width: var(--shell-width);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid rgba(108, 246, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(6, 7, 13, 0.78), rgba(9, 13, 27, 0.62));
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 176, 90, 0.2);
  border-radius: 999px;
  background: rgba(11, 15, 28, 0.78);
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.audio-controls {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.audio-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 246, 255, 0.34);
}

.audio-toggle[data-state="playing"] {
  background: linear-gradient(90deg, rgba(108, 246, 255, 0.14), rgba(255, 176, 90, 0.12));
  border-color: rgba(108, 246, 255, 0.34);
}

.audio-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 176, 90, 0.45);
}

.audio-toggle[data-state="playing"] .audio-toggle-dot {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(108, 246, 255, 0.48);
}

.audio-player-shell {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.audio-volume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(11, 15, 28, 0.92);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
  z-index: 30;
}

.audio-controls:hover .audio-volume,
.audio-controls:focus-within .audio-volume {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.audio-volume-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.audio-volume-range {
  width: 104px;
  accent-color: #4af0ff;
  cursor: pointer;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 200px;
}

.brand-mark,
h1,
h2,
h3,
.button,
.format-index {
  font-family: "Orbitron", sans-serif;
}

.brand-mark {
  letter-spacing: 0.28em;
  font-size: 1rem;
}

.brand-copy,
.eyebrow,
.nav a,
.stat-card span,
.story-tag {
  color: var(--muted);
}

.brand-copy {
  line-height: 1.15;
}

.nav {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nav a.is-active {
  color: var(--text);
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  background: linear-gradient(90deg, rgba(108, 246, 255, 0.14), rgba(255, 176, 90, 0.12));
  color: var(--text);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #040812;
  background: linear-gradient(90deg, var(--cyan), #aaf6ff 56%, var(--amber));
  box-shadow: 0 0 24px rgba(108, 246, 255, 0.3);
}

.button-secondary,
.button-ghost {
  border-color: rgba(108, 246, 255, 0.28);
  background: rgba(15, 18, 29, 0.55);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: flex-end;
  padding: 44px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.58) 42%, rgba(5, 7, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 78, 203, 0.09), rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 4.9vw, 4.75rem);
  line-height: 0.96;
  max-width: 11ch;
}

.lede {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: 1.14rem;
  line-height: 1.45;
  color: #dfe5fb;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat-card,
.story-card,
.reel-card,
.gallery-item,
.format-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 16px 18px;
  border-radius: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.section {
  padding: 92px 0 0;
}

.story-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.story-preview-main,
.quote-card,
.chapter-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.story-preview-main {
  padding: 28px;
}

.story-preview-main p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: #dae0f8;
}

.quote-grid {
  display: grid;
  gap: 18px;
}

.quote-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-card {
  padding: 24px;
}

.quote-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #eef2fb;
}

.chapter-stack {
  display: grid;
  gap: 18px;
}

.chapter-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
}

.chapter-copy {
  padding: 32px;
}

.chapter-copy h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.chapter-copy p {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: #dae0f8;
}

.chapter-media img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.reference-link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
}

.reference-link img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.reference-link:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.reference-k-dick img {
  object-position: center 18%;
}

.reference-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.page-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
  padding-top: 0;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-copy,
.page-hero-media {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero-copy {
  padding: 32px;
}

.page-hero-copy h1 {
  max-width: none;
  line-height: 1.08;
}

.page-hero-media img,
.page-hero-media video {
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.gallery-page-hero-media {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(108, 246, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.96), rgba(7, 11, 19, 0.86));
}

.gallery-page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.08), rgba(4, 7, 12, 0.42)),
    linear-gradient(120deg, rgba(255, 78, 203, 0.12), transparent 24%, transparent 76%, rgba(108, 246, 255, 0.16));
}

.sky-page {
  min-height: 100vh;
  margin-top: 0;
}

.sky-stage {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #04070d;
  box-shadow: none;
  z-index: 0;
}

.sky-stage video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.sky-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(108, 246, 255, 0.14), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(255, 176, 90, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.08), rgba(4, 7, 13, 0.54));
  pointer-events: none;
}

.sky-stage-copy {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(108, 246, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 7, 13, 0.62);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sky-stage-copy::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 246, 255, 1), rgba(255, 176, 90, 1));
  box-shadow: 0 0 22px rgba(108, 246, 255, 0.55);
}

.progressive-enhanced .page-hero-media,
.progressive-enhanced .story-card,
.progressive-enhanced .chapter-media,
.progressive-enhanced .gallery-item,
.progressive-enhanced .media-library-card,
.progressive-enhanced .reference-link {
  position: relative;
  isolation: isolate;
}

.progressive-enhanced .page-hero-media::before,
.progressive-enhanced .story-card::before,
.progressive-enhanced .chapter-media::before,
.progressive-enhanced .gallery-item::before,
.progressive-enhanced .media-library-card::before,
.progressive-enhanced .reference-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(108, 246, 255, 0.12), rgba(255, 176, 90, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  opacity: 0;
  transition: opacity 220ms ease;
}

.progressive-enhanced .page-hero-media.is-loading::before,
.progressive-enhanced .story-card.is-loading::before,
.progressive-enhanced .chapter-media.is-loading::before,
.progressive-enhanced .gallery-item.is-loading::before,
.progressive-enhanced .media-library-card.is-loading::before,
.progressive-enhanced .reference-link.is-loading::before {
  opacity: 1;
}

.progressive-enhanced img.progressive-image {
  position: relative;
  z-index: 1;
  transition: opacity 320ms ease, transform 420ms ease, filter 420ms ease;
}

.progressive-enhanced .is-loading img.progressive-image {
  opacity: 0.18;
  filter: blur(18px);
  transform: scale(1.03);
}

.progressive-enhanced .is-ready img.progressive-image {
  opacity: 1;
  filter: none;
  transform: none;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.intro-layout-portraits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.reel-card,
.format-card {
  border-radius: 28px;
  overflow: hidden;
}

.story-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-card-large img {
  aspect-ratio: 16 / 10;
}

.story-copy,
.reel-copy,
.format-card {
  padding: 22px;
}

.story-tag,
.format-index {
  display: inline-flex;
  margin-bottom: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-card h3,
.reel-card h3,
.format-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.story-card p,
.reel-card p,
.format-card p {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.42;
  color: #dae0f8;
}

.reels-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.62fr;
  gap: 18px;
}

.reels-grid-archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reel-card video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
}

.reel-card-wide video {
  aspect-ratio: 16 / 9;
}

.reel-card-vertical video {
  aspect-ratio: 3 / 5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.media-library-card {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.media-library-card img,
.media-library-card video {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.media-library-card-landscape img,
.media-library-card-landscape video {
  aspect-ratio: 16 / 10;
}

.media-library-card-portrait img,
.media-library-card-portrait video {
  aspect-ratio: 4 / 5;
}

.media-library-card:hover img,
.media-library-card:hover video {
  transform: scale(1.03);
  filter: saturate(1.06);
}

.media-library-pill,
.media-library-label {
  position: absolute;
  left: 16px;
  z-index: 1;
}

.media-library-pill {
  top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-library-label {
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #eef2fb;
  font-size: 0.95rem;
  line-height: 1.35;
}

.media-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.media-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.media-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.58);
  backdrop-filter: blur(18px);
}

.media-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1180px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(9, 12, 21, 0.9);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.5);
}

.media-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 15, 28, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.media-overlay-prev,
.media-overlay-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 15, 28, 0.85);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.media-overlay-prev:hover,
.media-overlay-next:hover {
  background: rgba(20, 28, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
}

.media-overlay-prev { left: 16px; }
.media-overlay-next { right: 16px; }

.media-overlay-stage img,
.media-overlay-stage video {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: #020306;
}

.media-overlay-caption {
  margin: 14px 4px 0;
  color: #dce3ff;
  font-size: 0.96rem;
}

.gallery-item {
  border-radius: 24px;
  overflow: hidden;
}

.gallery-item img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item-wide img {
  min-height: 420px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.page-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.page-dock-card {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 26px;
  border: 1px solid rgba(108, 246, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(108, 246, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.94), rgba(14, 20, 36, 0.72));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-dock-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 90, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.page-dock-label {
  color: var(--amber);
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-dock-card strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1.28rem;
  line-height: 1.1;
}

.page-dock-card em {
  color: #d4dcff;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-hero-map {
  grid-template-columns: 1.2fr 0.8fr;
}

.map-summary-panel {
  display: grid;
  align-content: start;
}

.map-summary-grid {
  display: grid;
  gap: 14px;
}

.map-summary-card {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.map-summary-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.map-summary-card p {
  margin: 10px 0 0;
  color: #d4dcff;
  line-height: 1.45;
}

.city-map-panel {
  scroll-margin-top: 112px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(108, 246, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(8, 12, 23, 0.95), rgba(9, 13, 24, 0.82));
  box-shadow: var(--shadow);
}

.city-map-toolbar {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.city-map-toolbar h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
}

.city-map-hint {
  margin: 0;
  color: #d7defa;
  line-height: 1.55;
}

.city-map-shell {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background:
    linear-gradient(rgba(108, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(108, 246, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 246, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(108, 246, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(77, 148, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #04101b, #07121f 52%, #050c16);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px, auto, auto, auto;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px, 0 0, 0 0, 0 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 90px rgba(0, 0, 0, 0.42);
}

.city-map-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(90deg, rgba(255, 78, 203, 0.14), transparent 22%, transparent 78%, rgba(108, 246, 255, 0.14));
  mix-blend-mode: screen;
  opacity: 0.34;
  z-index: 400;
  animation: crt-flicker 180ms steps(2) infinite;
}

.city-map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 401;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 18%, transparent 76%, rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.1), transparent 18%),
    radial-gradient(circle at 83% 78%, rgba(108, 246, 255, 0.08), transparent 24%);
  opacity: 1;
}

.city-map {
  height: min(78vh, 860px);
  min-height: 560px;
  background: #02050a;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.28);
}

.city-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: #02050a !important;
  font-family: "Rajdhani", "Arial Narrow", sans-serif;
}

.city-map .leaflet-image-layer {
  image-rendering: auto;
  filter:
    saturate(1.28)
    contrast(1.42)
    brightness(0.78)
    sepia(0.16)
    hue-rotate(-18deg)
    blur(0.18px);
  transform: scale(1.006) skewX(-0.18deg);
  transform-origin: center;
  opacity: 0.94;
  mix-blend-mode: screen;
}

.city-map .leaflet-pane,
.city-map .leaflet-map-pane,
.city-map .leaflet-tile-pane,
.city-map .leaflet-overlay-pane,
.city-map .leaflet-control-container,
.city-map .leaflet-shadow-pane,
.city-map .leaflet-marker-pane {
  background: transparent !important;
}

.city-map .leaflet-container,
.city-map .leaflet-map-pane,
.city-map .leaflet-pane,
.city-map .leaflet-overlay-pane {
  color: var(--text);
}

.city-map .leaflet-control-zoom {
  border: 1px solid rgba(108, 246, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 0 18px rgba(108, 246, 255, 0.04);
}

.city-map .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  line-height: 38px;
  border: 0;
  background: rgba(8, 11, 19, 0.92);
  color: var(--text);
}

.city-map .leaflet-control-zoom a:hover {
  background: rgba(16, 21, 34, 0.96);
}

.city-map-point {
  background: transparent;
  border: 0;
}

.city-map-point span {
  display: block;
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(5, 10, 18, 0.95);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.05),
    0 0 0 7px rgba(108, 246, 255, 0.08),
    0 0 24px rgba(108, 246, 255, 0.42),
    0 0 42px rgba(255, 78, 203, 0.18);
}

.city-map-point span::before,
.city-map-point span::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
}

.city-map-point span::before {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px currentColor;
}

.city-map-point span::after {
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  opacity: 0.28;
}

.city-map-point-hub span {
  color: #6cf6ff;
  background:
    radial-gradient(circle at 35% 35%, #d9ffff 0, #6cf6ff 38%, #127f98 100%);
}

.city-map-point-photo span {
  color: #ffb05a;
  background:
    radial-gradient(circle at 35% 35%, #fff3d8 0, #ffb05a 38%, #a45a12 100%);
}

.city-map-point-story span {
  color: #ff4ecb;
  background:
    radial-gradient(circle at 35% 35%, #ffe0f7 0, #ff4ecb 38%, #8a1f6b 100%);
}

.city-map-point-district span {
  width: 14px;
  height: 14px;
  color: #72e7ff;
  background:
    radial-gradient(circle at 35% 35%, #ddffff 0, #72e7ff 38%, #1a6f86 100%);
  box-shadow:
    0 0 0 3px rgba(108, 246, 255, 0.08),
    0 0 18px rgba(108, 246, 255, 0.34),
    0 0 34px rgba(108, 246, 255, 0.14);
}

.city-map-point-district span::after {
  width: 24px;
  height: 24px;
}

.city-map svg path.leaflet-interactive,
.city-map canvas,
.city-map .leaflet-overlay-pane svg path {
  filter: drop-shadow(0 0 8px rgba(108, 246, 255, 0.18));
}

.city-map .leaflet-overlay-pane svg path.city-map-route {
  filter:
    drop-shadow(0 0 6px rgba(108, 246, 255, 0.18))
    drop-shadow(0 0 12px rgba(255, 78, 203, 0.08));
}

.city-map .leaflet-overlay-pane svg path.city-map-route-base {
  stroke: rgba(108, 246, 255, 0.22);
}

.city-map .leaflet-overlay-pane svg path.city-map-route-flow {
  stroke: #6cf6ff;
  stroke-dasharray: 8 16;
  stroke-dashoffset: 0;
}

.city-map .leaflet-overlay-pane svg path.city-map-ring {
  stroke: rgba(108, 246, 255, 0.22);
  stroke-dasharray: 10 18;
  filter:
    drop-shadow(0 0 6px rgba(108, 246, 255, 0.12))
    drop-shadow(0 0 18px rgba(108, 246, 255, 0.08));
}

.city-map-popup {
  min-width: 220px;
}

.city-map-popup-type {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.city-map-popup strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.city-map-popup p {
  margin: 0;
  color: #d7defa;
  line-height: 1.45;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(8, 11, 19, 0.94);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.leaflet-popup-content {
  margin: 14px 16px;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crt-flicker {
  0% {
    opacity: 0.28;
  }
  20% {
    opacity: 0.36;
  }
  40% {
    opacity: 0.3;
  }
  60% {
    opacity: 0.38;
  }
  80% {
    opacity: 0.31;
  }
  100% {
    opacity: 0.35;
  }
}


.format-card {
  padding: 24px;
}

.format-index {
  color: var(--amber);
  font-size: 0.96rem;
}

.text-link {
  color: var(--cyan);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 0 54px;
}

@media (max-width: 1100px) {
  .intro-layout,
  .reels-grid,
  .page-hero,
  .story-preview,
  .chapter-card,
  .gallery-grid,
  .format-grid,
  .page-dock,
  .city-map-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .reels-grid-archive {
    grid-template-columns: 1fr 1fr;
  }

  .quote-grid-wide {
    grid-template-columns: 1fr;
  }

  .media-library-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-card-large,
  .reel-card-wide,
  .gallery-item-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }

  .topbar,
  .footer,
  .nav,
  .hero-stats,
  .intro-layout,
  .page-hero,
  .reels-grid,
  .reels-grid-archive,
  .story-preview,
  .chapter-card,
  .gallery-grid,
  .media-library-grid,
  .format-grid,
  .page-dock,
  .city-map-toolbar {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
  }

  .brand {
    flex: initial;
    width: 100%;
  }

  .topbar .section-switch {
    margin-left: 0;
  }

  .audio-controls {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .audio-toggle {
    width: 100%;
    justify-content: center;
  }

  .audio-volume {
    width: min(100%, 240px);
    right: 50%;
    transform: translate(50%, -4px);
  }

  .audio-controls:hover .audio-volume,
  .audio-controls:focus-within .audio-volume {
    transform: translate(50%, 0);
  }

  .audio-volume-range {
    width: min(100%, 140px);
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
  }

  .nav a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .hero {
    min-height: 84vh;
    padding: 24px;
  }

  h1,
  h2 {
    max-width: none;
  }

  .page-hero-copy,
  .page-hero-media,
  .story-card,
  .reel-card,
  .gallery-item,
  .media-library-card,
  .page-dock-card,
  .city-map-panel {
    border-radius: 22px;
  }

  .city-map-panel {
    padding: 18px;
  }

  .city-map {
    height: 68vh;
    min-height: 420px;
  }

  .city-map-point-district span {
    width: 14px;
    height: 14px;
  }

  .page-hero-media img,
  .page-hero-media video,
  .gallery-item img,
  .media-library-card img,
  .media-library-card video {
    min-height: 0;
  }

  .page-hero-media img,
  .page-hero-media video {
    aspect-ratio: 4 / 5;
  }

  .sky-stage,
  .sky-stage video {
    min-height: 100vh;
  }

  .sky-stage-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  .story-card img,
  .media-library-card-portrait img,
  .media-library-card-portrait video,
  .reel-card-vertical video {
    aspect-ratio: 4 / 5;
  }

  .story-card-large img,
  .gallery-item-wide img,
  .media-library-card-landscape img,
  .media-library-card-landscape video,
  .reel-card video,
  .reel-card-wide video {
    aspect-ratio: 16 / 10;
  }

  .gallery-item-wide {
    grid-column: auto;
  }
}

/* =============================================
   TEEGARDEN — Identité visuelle
   ============================================= */

body.route-section-teegarden {
  --bg: #02040e;
  --panel: rgba(4, 8, 22, 0.75);
  --panel-strong: rgba(3, 6, 18, 0.92);
  --text: #b8ccee;
  --muted: #4e6a96;
  --cyan: #4af0ff;
  --amber: #cc2200;
  --magenta: #8866cc;
  --line: rgba(100, 160, 255, 0.1);
  background: radial-gradient(ellipse at 50% 0%, #06102a 0%, #02040e 60%);
}

body.route-section-teegarden html,
body.route-section-teegarden {
  background: #02040e;
}

.topbar-teegarden {
  border-bottom-color: rgba(74, 240, 255, 0.08);
}

.topbar-teegarden .brand-mark {
  color: #cc2200;
}

.footer-teegarden {
  border-top-color: rgba(74, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer-teegarden h2 {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.topbar .section-switch {
  margin-left: auto;
}

.section-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 15, 28, 0.78);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.section-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(20, 26, 48, 0.9);
}

.hero-teegarden {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(ellipse at 30% 50%, rgba(204, 17, 0, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(74, 240, 255, 0.04) 0%, transparent 50%);
}

.hero-teegarden .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  filter: saturate(1.15) contrast(1.05);
}

.hero-teegarden .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 4, 14, 0.35) 0%, rgba(2, 4, 14, 0.85) 100%),
              radial-gradient(ellipse at 25% 60%, rgba(204, 17, 0, 0.18) 0%, transparent 55%);
}

.hero-teegarden .hero-content {
  position: relative;
  z-index: 2;
}

body.route-section-teegarden .page-hero-media img {
  filter: saturate(1.1) contrast(1.05);
}

/* =============================================
   TEEGARDEN — Carte stellaire Three.js
   ============================================= */

.stellar-map-section {
  position: relative;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
  background: #020616;
}

.system-map-section {
  min-height: 560px;
  background:
    radial-gradient(circle at center, rgba(255, 76, 42, 0.12), transparent 28%),
    linear-gradient(180deg, #030818 0%, #020616 100%);
}

.stellar-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#stellar-map-canvas,
#teegarden-system-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#stellar-map-canvas:active,
#teegarden-system-map-canvas:active {
  cursor: grabbing;
}

.stellar-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.stellar-label {
  position: absolute;
  color: rgba(184, 204, 238, 0.7);
  font-family: var(--font-ui, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  transition: opacity 120ms ease;
}

.stellar-label.is-home {
  color: #ff4422;
  font-weight: 700;
  font-size: 0.75rem;
}

.stellar-label.is-sol {
  color: #fff5e0;
}

.stellar-info {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 6, 18, 0.92);
  border: 1px solid rgba(74, 240, 255, 0.15);
  border-radius: 14px;
  padding: 16px 24px;
  color: var(--text, #b8ccee);
  font-size: 0.88rem;
  max-width: 420px;
  width: calc(100% - 48px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  backdrop-filter: blur(12px);
}

.stellar-info.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.stellar-info strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.95rem;
}

.stellar-info-type {
  color: var(--muted, #4e6a96);
  font-style: normal;
  font-size: 0.78rem;
  margin-left: 6px;
}

.stellar-info p {
  margin: 8px 0 0;
  color: var(--muted, #4e6a96);
  line-height: 1.5;
}

.stellar-hint {
  position: absolute;
  bottom: 18px;
  right: 24px;
  display: flex;
  gap: 16px;
  pointer-events: none;
}

.stellar-hint span {
  color: rgba(78, 106, 150, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =============================================
   TEEGARDEN — Data room + signal lab
   ============================================= */

.data-room-panel,
.signal-lab {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(74, 240, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(4, 8, 22, 0.92), rgba(3, 7, 18, 0.86));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.data-room-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.data-room-switch {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(74, 240, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.data-room-switch:hover,
.data-room-switch.is-active {
  border-color: rgba(74, 240, 255, 0.42);
  background: rgba(74, 240, 255, 0.08);
  transform: translateY(-1px);
}

.data-room-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.data-room-summary {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-room-summary h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.data-room-summary p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.data-room-metrics {
  display: grid;
  gap: 14px;
}

.data-room-metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(74, 240, 255, 0.08);
}

.data-room-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.data-room-metric-head span {
  color: var(--muted);
}

.data-room-metric-head strong {
  color: #f0f6ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.data-room-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.data-room-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(74, 240, 255, 0.92), rgba(204, 34, 0, 0.85));
  box-shadow: 0 0 18px rgba(74, 240, 255, 0.22);
}

.signal-lab {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: start;
}

.signal-lab-display {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(74, 240, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(3, 9, 24, 0.96), rgba(2, 5, 16, 0.96)),
    radial-gradient(circle at 20% 50%, rgba(204, 34, 0, 0.08), transparent 40%);
}

.signal-lab-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.signal-lab-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-lab-overlay span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 8, 22, 0.78);
  border: 1px solid rgba(74, 240, 255, 0.16);
  color: #d9e7fb;
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-lab-stack {
  display: grid;
  gap: 14px;
}

.signal-layer-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(74, 240, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.signal-layer-card h3 {
  margin: 10px 0 8px;
}

.signal-layer-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .data-room-stage,
  .signal-lab {
    grid-template-columns: 1fr;
  }
}
