/* ================================================================
   prvctice Landing Page — style.css
   Premium long-form reading experience with theme switching.
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Theme Tokens ── */
:root {
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-sans: 'Gothic A1', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --reading-max: 720px;
  --gutter: clamp(24px, 6vw, 80px);

  /* App window colors (always dark) */
  --app-bg: #1e1e1e;
  --app-chrome: #1e1e1e;
  --app-border: rgba(255, 255, 255, 0.06);
  --app-text: rgba(255, 255, 255, 0.92);
  --app-text-muted: rgba(255, 255, 255, 0.5);
  --app-accent-blue: #4488ff;
  --app-accent-green: #22c55e;
  --app-accent-amber: #ff6b2b;
}

/* ── High Contrast Theme (default) ── */
[data-theme="high-contrast"] {
  --bg: #ffffff;
  --bg-subtle: #f8f8f8;
  --text: #000000;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-muted: rgba(0, 0, 0, 0.4);
  --accent: #00933b;
  --accent-subtle: rgba(0, 147, 59, 0.08);
  --link: #0066cc;
  --border: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(0, 0, 0, 0.08);
  --nav-text: #000000;
  --cta-bg: #000000;
  --cta-text: #ffffff;
  --cta-hover: #1a1a1a;
  --hero-frame-bg: #f2f2f2;
  --hero-frame-border: rgba(0, 0, 0, 0.1);
  --footer-bg: #000000;
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-text-strong: #ffffff;
  --progress-color: #00933b;
  --timeline-line: rgba(0, 0, 0, 0.1);
  --timeline-marker-bg: #000000;
  --timeline-marker-text: #ffffff;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── EVA Theme ── */
[data-theme="eva"] {
  --bg: #d7d3fd;
  --bg-subtle: #cdc8f5;
  --text: #1a1825;
  --text-secondary: rgba(26, 24, 37, 0.65);
  --text-muted: rgba(26, 24, 37, 0.4);
  --accent: #dd0000;
  --accent-subtle: rgba(221, 0, 0, 0.08);
  --link: #1a7a9a;
  --border: rgba(94, 66, 105, 0.15);
  --border-strong: rgba(94, 66, 105, 0.25);
  --nav-bg: rgba(215, 211, 253, 0.88);
  --nav-border: rgba(94, 66, 105, 0.1);
  --nav-text: #1a1825;
  --cta-bg: #5e4269;
  --cta-text: #ffffff;
  --cta-hover: #7a5688;
  --hero-frame-bg: rgba(94, 66, 105, 0.12);
  --hero-frame-border: rgba(221, 0, 0, 0.1);
  --footer-bg: #2a2040;
  --footer-text: rgba(255, 255, 255, 0.6);
  --footer-text-strong: #d7d3fd;
  --progress-color: #dd0000;
  --timeline-line: rgba(94, 66, 105, 0.15);
  --timeline-marker-bg: #5e4269;
  --timeline-marker-text: #ffffff;
  --card-shadow: 0 8px 32px rgba(94, 66, 105, 0.15), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Vitti Theme ── */
[data-theme="vitti"] {
  --bg: #c8cfca;
  --bg-subtle: #bec5c0;
  --text: #121212;
  --text-secondary: rgba(18, 18, 18, 0.6);
  --text-muted: rgba(18, 18, 18, 0.4);
  --accent: #3ad3b2;
  --accent-subtle: rgba(58, 211, 178, 0.1);
  --link: #0d4d3f;
  --border: rgba(13, 40, 34, 0.12);
  --border-strong: rgba(13, 40, 34, 0.2);
  --nav-bg: rgba(200, 207, 202, 0.9);
  --nav-border: rgba(13, 40, 34, 0.08);
  --nav-text: #121212;
  --cta-bg: #0d2822;
  --cta-text: #ffffff;
  --cta-hover: #1a4038;
  --hero-frame-bg: rgba(13, 40, 34, 0.08);
  --hero-frame-border: rgba(58, 211, 178, 0.15);
  --footer-bg: #0d2822;
  --footer-text: rgba(255, 255, 255, 0.55);
  --footer-text-strong: #c8cfca;
  --progress-color: #3ad3b2;
  --timeline-line: rgba(13, 40, 34, 0.12);
  --timeline-marker-bg: #0d2822;
  --timeline-marker-text: #c8cfca;
  --card-shadow: 0 8px 32px rgba(13, 40, 34, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Night Theme ── */
[data-theme="night"] {
  --bg: #0e0f09;
  --bg-subtle: #1a1b12;
  --text: #cccccc;
  --text-secondary: rgba(204, 204, 204, 0.65);
  --text-muted: rgba(204, 204, 204, 0.4);
  --accent: rgb(195, 255, 0);
  --accent-subtle: rgba(195, 255, 0, 0.06);
  --link: #d3b33a;
  --border: rgba(171, 231, 39, 0.1);
  --border-strong: rgba(171, 231, 39, 0.18);
  --nav-bg: rgba(14, 15, 9, 0.88);
  --nav-border: rgba(171, 231, 39, 0.06);
  --nav-text: #cccccc;
  --cta-bg: rgba(195, 255, 0, 0.12);
  --cta-text: #cccccc;
  --cta-hover: rgba(195, 255, 0, 0.2);
  --hero-frame-bg: rgba(21, 22, 7, 0.6);
  --hero-frame-border: rgba(171, 231, 39, 0.08);
  --footer-bg: #070804;
  --footer-text: rgba(204, 204, 204, 0.5);
  --footer-text-strong: #cccccc;
  --progress-color: rgb(195, 255, 0);
  --timeline-line: rgba(171, 231, 39, 0.08);
  --timeline-marker-bg: #1a1b12;
  --timeline-marker-text: #cccccc;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ── Grid Overlay ── */
body.grid-on::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

[data-theme="high-contrast"] { --grid-color: rgba(0, 0, 0, 0.04); }
[data-theme="vitti"]          { --grid-color: rgba(13, 40, 34, 0.05); }
[data-theme="night"]          { --grid-color: rgba(171, 231, 39, 0.04); }

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background-color 0.8s var(--ease-out-expo),
    color 0.6s var(--ease-out-expo);
  overflow-x: hidden;
  padding-bottom: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { opacity: 0.7; }

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

/* ── Reading Progress (sits on top edge of bottom nav) ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  z-index: 10002;
  will-change: width;
}

/* ── Navigation ── */

/* Theme Switcher (fixed top-right) */
.theme-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--accent-subtle);
  border-radius: 999px;
  border: 1px solid var(--border);
  transition:
    background-color 0.6s ease,
    border-color 0.6s ease;
}

.theme-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.theme-btn:hover { transform: scale(1.15); }
.theme-btn.active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border-strong);
  transition: box-shadow 0.4s ease;
}

.theme-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

.grid-toggle {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.25s var(--ease-spring);
}
.grid-toggle.active { color: var(--text); }

.grid-icon { display: block; }

.theme-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.theme-dot-hc {
  background: #ffffff;
  border: 2px solid #000000;
}

.theme-dot-eva {
  background: linear-gradient(135deg, #6fafd2, #d7d3fd, #8e8abe);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-dot-vitti {
  background: linear-gradient(135deg, #c8cfca, #a8afaa);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-dot-night {
  background: #0e0f09;
  border: 1px solid rgba(171, 231, 39, 0.3);
}

/* ── Hero ── */
/* ── Hero Scroll-Shrink Video ── */
.hero {
  height: 300vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 100px var(--gutter) 68px;
  overflow: hidden;
}

.hero-video-frame {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 10;
  border-radius: 0px;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, border-radius;
  box-shadow: var(--card-shadow);
  position: relative;
}

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

.hero-content {
  margin-top: 48px;
  width: 100%;
  max-width: calc(var(--reading-max) + var(--gutter) * 2);
  padding: 0 var(--gutter);
  text-align: left;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.6s ease;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.6s ease;
}

.hero-sep { opacity: 0.3; }

/* ── Hero Links ── */
.hero-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

.hero-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-link:hover {
  color: var(--text);
  opacity: 1;
}

/* ── Essay ── */
.essay {
  max-width: calc(var(--reading-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.essay-section {
  padding: 24px 0;
}

.essay-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--text);
  transition: color 0.6s ease;
}

.body-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 32px;
  transition: color 0.6s ease;
}

.body-text:last-child { margin-bottom: 0; }

.body-text em {
  font-style: italic;
}

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 4.2em;
  float: left;
  line-height: 0.78;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--text);
  transition: color 0.6s ease;
}

/* Sign-off */
.essay-sign-off {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--text);
  padding: 32px 0 24px;
  text-align: right;
  transition: color 0.6s ease;
}

.sign-off-dash {
  margin-right: 2px;
}

/* Signature */
.essay-signature {
  padding: 16px 0 0;
  text-align: right;
}

.signature-img {
  display: inline-block;
  max-width: 480px;
  width: 100%;
  height: auto;
}

.signature-light { display: none; }
.signature-dark { display: inline-block; }

[data-theme="night"] .signature-light { display: inline-block; }
[data-theme="night"] .signature-dark { display: none; }

/* ── Interstitials ── */
.interstitial {
  margin: 16px calc(-1 * var(--gutter)) 16px;
  padding: 24px 0;
  position: relative;
}

.interstitial-label {
  padding: 0 var(--gutter);
  margin-bottom: 16px;
  max-width: calc(var(--reading-max) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
}

.label-tech {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.6s ease;
}

/* ── Timeline ── */
.timeline-track {
  display: flex;
  gap: 28px;
  padding: 0 var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.timeline-track::-webkit-scrollbar { display: none; }

.timeline-slide {
  flex: 0 0 min(520px, 75vw);
  scroll-snap-align: start;
}

.timeline-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  border-radius: 8px;
  margin-bottom: 20px;
  transition: background-color 0.6s ease;
}

.timeline-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.6s ease;
}

.timeline-desc {
  font-family: var(--font-serif);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
  transition: color 0.6s ease;
}

/* ── App Carousel ── */
.carousel-viewport {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.carousel-track {
  display: flex;
  gap: 32px;
  padding: 16px var(--gutter) 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 min(480px, 42vw);
}

/* App Window — matches real prvctice AppWindow */
.app-window {
  padding: 2px;
  border-radius: 28px;
  box-shadow:
    0 16px 40px -16px rgba(0, 0, 0, 0.22),
    0 6px 16px -8px rgba(0, 0, 0, 0.12);
}

.app-iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
  background: #1e1e1e;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.demo-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border);
}

/* Demo video cards: bigger, no shadow, tighter radius */
#demoTrack1 .carousel-card,
#demoTrack2 .carousel-card {
  flex: 0 0 min(920px, 92vw);
}

#demoTrack1 .carousel-track,
#demoTrack2 .carousel-track {
  gap: 20px;
}

.carousel-card .app-window:has(.demo-video) {
  box-shadow: none;
  padding: 0;
  border-radius: 12px;
}

/* ── Character Row ── */
.character-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  width: 100vw;
  margin: 0 0 1.5rem;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.character-slot {
  width: 460px;
  height: 560px;
  flex-shrink: 0;
}

.character-slot canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Donate Section ── */
.donate-section {
  text-align: center;
  margin: 64px 0 0;
}

.donate-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.6s ease;
}

.donate-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color 0.6s ease;
}

.donate-btn {
  display: inline-flex;
}

/* ── Bird ── */
.footer-bird {
  display: flex;
  justify-content: center;
  margin-top: -40px; /* pull up into the empty canvas space above the bird model */
  padding-bottom: 71px;
  overflow: visible;
}

.footer-bird .character-slot {
  width: 400px;
  height: 400px;
}

.character-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 16px var(--gutter) 32px;
  max-width: calc(var(--reading-max) + var(--gutter) * 2);
  margin: 0 auto;
  transition: color 0.6s ease;
}


@media (max-width: 1060px) {
  .character-row > .character-slot { width: 260px; height: 320px; }
}

@media (max-width: 800px) {
  .character-row > .character-slot {
    width: 26vw;
    height: 34vw;
    flex-shrink: 1;
  }
}

@media (max-width: 480px) {
  .character-row > .character-slot {
    width: 28vw;
    height: 36vw;
  }
  .footer-bird .character-slot { width: 240px; height: 240px; }
  .footer-bird { padding-right: 5vw; }
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Staggered reveals for timeline/carousel items */
.reveal[data-stagger="0"] { transition-delay: 0s; }
.reveal[data-stagger="1"] { transition-delay: 0.08s; }
.reveal[data-stagger="2"] { transition-delay: 0.16s; }
.reveal[data-stagger="3"] { transition-delay: 0.24s; }
.reveal[data-stagger="4"] { transition-delay: 0.32s; }

/* ── Footer ── */
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 16px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
  top: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}
.nav-link:hover { color: #fff; }

.nav-left {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.nav-byline {
  margin: 0;
}

.nav-link-cta {
  background: #fff;
  color: #0a0a0a !important;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.nav-link-cta:hover {
  transform: scale(0.97);
}

/* ── CTA Module ── */
.cta-module {
  padding: 96px var(--gutter) 112px;
  text-align: center;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  transition: color 0.6s ease;
}

.cta-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 40px;
  transition: color 0.6s ease;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s var(--ease-out-quart),
    box-shadow 0.3s ease;
}
.cta-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-icon-after { margin-left: -2px; }

.cta-btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.cta-btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.cta-btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--text);
}

.cta-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 20px;
}
.cta-btn-ghost:hover {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {

  .hero {
    height: auto;
  }

  .hero-sticky {
    position: relative;
    height: auto;
    padding: 24px 16px 24px;
    justify-content: center;
  }

  .hero-video-frame {
    transform: none !important;
    border-radius: 12px !important;
  }

  .hero-title { font-size: clamp(40px, 12vw, 72px); }

  .body-text { font-size: 25px; }
  .essay-heading { font-size: clamp(24px, 6vw, 36px); }

  .timeline-slide { flex: 0 0 min(400px, 80vw); }

  .carousel-card { flex: 0 0 min(400px, 80vw); }
  .app-iframe { height: 460px; }

  .interstitial { margin: 8px calc(-1 * var(--gutter)) 8px; }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 4px;
  }

  .nav-left {
    width: 100%;
  }

  .nav-right {
    width: 100%;
  }

  .nav-links {
    gap: 16px;
  }

  #characterInterstitial { margin-top: 0; }

  .character-label { padding: 8px var(--gutter) 24px; }
}

@media (max-width: 480px) {
  .theme-switcher { display: none; }

  .carousel-card { flex: 0 0 min(340px, 85vw); }

  .hero-meta { flex-direction: column; gap: 4px; }
  .hero-sep { display: none; }

  .character-label { font-size: 10px; padding: 4px var(--gutter) 16px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
