:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.85);
  --border: rgba(71, 85, 105, 0.14);
  --border-lit: rgba(37, 99, 235, 0.4);
  --fg: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent2: #0891b2;
  --accent3: #7c3aed;
  --glow: rgba(37, 99, 235, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --b1: #cbd5e1;
  --b2: #bfdbfe;
  --b3: #e2e8f0;
  --b4: #c7d2fe;
  --b5: #d1e7f5;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* ── AURORA BACKGROUND ──────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}
.b1 { width: 650px; height: 650px; background: var(--b1); top: -180px; left: -120px; animation: d1 24s ease-in-out infinite; }
.b2 { width: 550px; height: 550px; background: var(--b2); top: -80px; right: -120px; animation: d2 30s ease-in-out infinite; }
.b3 { width: 700px; height: 700px; background: var(--b3); bottom: -250px; left: 25%; animation: d3 20s ease-in-out infinite; }
.b4 { width: 420px; height: 420px; background: var(--b4); top: 45%; right: 10%; animation: d4 26s ease-in-out infinite; }
.b5 { width: 300px; height: 300px; background: var(--b5); top: 60%; left: 5%; opacity: 0.4; animation: d1 18s ease-in-out infinite reverse; }

@keyframes d1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,-80px) scale(1.08); } 66% { transform: translate(-40px,50px) scale(0.95); } }
@keyframes d2 { 0%,100% { transform: translate(0,0) scale(1); } 40% { transform: translate(-70px,60px) scale(1.1); } 70% { transform: translate(40px,-40px) scale(0.92); } }
@keyframes d3 { 0%,100% { transform: translate(0,0) scale(1); } 30% { transform: translate(-50px,-60px) scale(1.05); } 60% { transform: translate(80px,30px) scale(0.97); } }
@keyframes d4 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,-80px) scale(1.12); } }

.page { position: relative; z-index: 2; }

/* ── NAV ────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  border-radius: 100px;
  padding: 10px 24px;
  white-space: nowrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[href="josie.html"] { color: #db2777; }
.nav-links a[href="josie.html"]:hover { color: #9d174d; }
.nav-links a[href="emery.html"] { color: #ea580c; }
.nav-links a[href="emery.html"]:hover { color: #9a3412; }

/* ── HERO ───────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 8vw 80px;
}

.hero-content { max-width: 800px; }

.tagline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.welcome-text {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 18vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  white-space: nowrap;
  display: block;
  margin-bottom: 1.8rem;
  background-image: linear-gradient(135deg,
    #2563eb 0%, #6366f1 15%, #06b6d4 30%,
    #8b5cf6 45%, #ec4899 60%, #6366f1 75%,
    #2563eb 90%, #06b6d4 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: holographic 8s linear infinite;
  filter: drop-shadow(0 6px 30px rgba(37, 99, 235, 0.25));
}

@keyframes holographic {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.subtitle {
  color: var(--muted);
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 auto 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-3px); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}
.btn.primary:hover { box-shadow: 0 8px 36px var(--glow); }

.btn.ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: #fff; }

/* ── RIBBON ─────────────────────────────────────── */

.ribbon {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  padding: 12px 0;
}

.ribbon-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ribbon-inner span { margin-right: 3rem; }
.ribbon-inner .dot { color: var(--accent); }

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ───────────────────────────────────── */

.section { padding: 80px 8vw; }

.section-heading { margin-bottom: 2.5rem; }

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

/* ── VIDEO GRID ─────────────────────────────────── */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-lit);
  box-shadow: 0 20px 50px var(--glow);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: var(--b2);
  overflow: hidden;
}

.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .video-frame img { transform: scale(1.04); }

.video-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.video-info { padding: 16px 18px 18px; }

.video-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 4px;
}

.video-info p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── EXTRA STUFF ────────────────────────────────── */

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.future-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  min-height: 180px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.future-card:hover { transform: translateY(-4px); }

.josie-card,
.emery-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.josie-card {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.08), rgba(124, 58, 237, 0.05));
  border-color: rgba(219, 39, 119, 0.25);
}
.josie-card:hover { border-color: rgba(219, 39, 119, 0.5); box-shadow: 0 16px 50px rgba(219, 39, 119, 0.14); }

.emery-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08), rgba(251, 191, 36, 0.05));
  border-color: rgba(234, 88, 12, 0.28);
}
.emery-card:hover { border-color: rgba(234, 88, 12, 0.5); box-shadow: 0 16px 50px rgba(234, 88, 12, 0.14); }

.josie-btn,
.emery-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.4rem;
  transition: transform 0.15s ease;
  outline: none;
  font-family: inherit;
}
.josie-btn:hover,
.emery-btn:hover { transform: scale(1.06); }
.josie-btn:active,
.emery-btn:active { transform: scale(0.94); }
.josie-btn:focus-visible,
.emery-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }

.josie-icon,
.emery-icon {
  font-size: 3rem;
  line-height: 1;
  display: block;
}
.josie-icon { filter: drop-shadow(0 3px 10px rgba(219, 39, 119, 0.35)); }
.emery-icon { filter: drop-shadow(0 3px 10px rgba(234, 88, 12, 0.35)); }

.josie-label,
.emery-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}
.josie-label { color: #db2777; }
.emery-label { color: #ea580c; }

.btn-counter {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── MONSTER TRUCK RUNNER ───────────────────────── */

@keyframes truck-run {
  0%   { left: -12%; transform: scaleX(-1) translateY(0px)   rotate(0deg);  }
  12%  {             transform: scaleX(-1) translateY(-30px)  rotate(4deg);  }
  24%  {             transform: scaleX(-1) translateY(0px)    rotate(-2deg); }
  36%  {             transform: scaleX(-1) translateY(-30px)  rotate(4deg);  }
  48%  {             transform: scaleX(-1) translateY(0px)    rotate(-2deg); }
  60%  {             transform: scaleX(-1) translateY(-30px)  rotate(4deg);  }
  72%  {             transform: scaleX(-1) translateY(0px)    rotate(-2deg); }
  84%  {             transform: scaleX(-1) translateY(-30px)  rotate(4deg);  }
  100% { left: 112%; transform: scaleX(-1) translateY(0px)    rotate(0deg);  }
}

.truck-runner {
  position: fixed;
  bottom: 72px;
  left: -12%;
  font-size: 5rem;
  line-height: 1;
  z-index: 9999;
  pointer-events: none;
  animation: truck-run 3s linear forwards;
}

/* ── UNICORN RUNNER ─────────────────────────────── */

@keyframes unicorn-run {
  0%   { left: -10%; transform: scaleX(-1) translateY(0px);   }
  8%   {             transform: scaleX(-1) translateY(-18px);  }
  16%  {             transform: scaleX(-1) translateY(0px);    }
  24%  {             transform: scaleX(-1) translateY(-18px);  }
  32%  {             transform: scaleX(-1) translateY(0px);    }
  40%  {             transform: scaleX(-1) translateY(-18px);  }
  48%  {             transform: scaleX(-1) translateY(0px);    }
  56%  {             transform: scaleX(-1) translateY(-18px);  }
  64%  {             transform: scaleX(-1) translateY(0px);    }
  72%  {             transform: scaleX(-1) translateY(-18px);  }
  80%  {             transform: scaleX(-1) translateY(0px);    }
  88%  {             transform: scaleX(-1) translateY(-18px);  }
  100% { left: 110%; transform: scaleX(-1) translateY(0px);   }
}

.unicorn-runner {
  position: fixed;
  bottom: 80px;
  left: -10%;
  font-size: 4rem;
  line-height: 1;
  z-index: 9999;
  pointer-events: none;
  animation: unicorn-run 2.8s linear forwards;
}

/* ── LETTERBOXD CARD ────────────────────────────── */

.letterboxd-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lb-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lb-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.lb-poster {
  width: 54px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

.lb-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lb-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.lb-title a { color: var(--fg); text-decoration: none; }
.lb-title a:hover { color: var(--accent); }

.lb-year {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.lb-rating {
  color: #d97706;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.lb-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.lb-profile-link {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: underline;
  margin-top: auto;
}
.lb-profile-link:hover { color: var(--accent); }

.lb-loading {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── FOOTER ─────────────────────────────────────── */

.footer {
  padding: 32px 8vw;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { gap: 1rem; padding: 10px 16px; max-width: calc(100vw - 24px); }
  .nav-links { gap: 0.8rem; overflow-x: auto; }
  .nav-links a { font-size: 0.72rem; }
  .video-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 16px; }
  .hero { padding: 110px 16px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .ribbon-inner { animation: none; }
  .welcome-text { animation: none; background-position: 0% 50%; }
}
