/* ───────────────────────────────────────────────────────────
   Squishy — premium storybook landing.

   Cohesive system:
     - Light sections use cream paper + dark-brown ink. Warm-gold
       is reserved for small accent marks (one word per heading max),
       never for body copy or for text sitting over bright art.
     - Dark sections use deep purple-night + cream/violet/magenta.
     - Every section sits inside a max-width container so copy
       doesn't get wider than ~640px.
     - Imagery is always framed (hero veil, art-card, phone-mockup).
       No image dumped at full bleed except the hero background.
   ─────────────────────────────────────────────────────────── */

:root {
  /* warm palette */
  --paper:        #FBF1DE;
  --paper-deep:   #F5E4C2;
  --paper-warm:   #FFE9B8;
  --ink:          #251703;       /* near-black brown for body */
  --ink-soft:     #5A4220;
  --gold:         #C97A2A;       /* accent only — never on bright art */
  --gold-deep:    #9A5717;
  --moss:         #5C7A4A;

  /* dark / algorithm palette */
  --night-1:      #150830;
  --night-2:      #0A0420;
  --algo-1:       #5B2BD9;
  --algo-2:       #A78BFA;
  --algo-red:     #FF3B5C;
  --cream:        #FFF6E1;
  --cream-soft:   #DCCCAB;

  --radius:       18px;
  --radius-lg:    24px;
  --pill:         999px;
  --shadow-soft:  0 18px 40px rgba(37, 23, 3, 0.10);
  --shadow-card:  0 30px 60px rgba(37, 23, 3, 0.16);

  --serif: "Georgia", "Cochin", "Iowan Old Style", serif;
  --sans:  "Nunito", "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typography ─── */
h1, h2, h3 { letter-spacing: -0.015em; font-family: var(--serif); }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); line-height: 1.04; font-weight: 900; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12; font-weight: 900; margin-bottom: 1rem; }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 900; }

p { font-size: 1rem; }
.body {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0.6rem 0 1.2rem;
}

/* The ONE allowed accent — used sparingly, never over bright art */
.warm-mark {
  color: var(--gold);
  font-style: italic;
}

/* Kicker chip — one per section, never two */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 0.35rem 0.95rem;
  border-radius: var(--pill);
  background: rgba(201, 122, 42, 0.10);
  border: 1.5px solid rgba(201, 122, 42, 0.3);
  margin-bottom: 1.2rem;
}
.algo-kicker {
  color: var(--algo-2);
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.45);
}

/* Layout containers */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5vw; }
.narrow    { max-width: 720px; }
.center    { text-align: center; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

/* Big editorial quote */
.big-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 2.4rem auto 0;
  max-width: 36rem;
}
.big-quote.subtle { color: var(--ink-soft); font-size: 1.25rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cream);
  margin-top: 1.8rem;
}

/* ─── Nav ─── */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5vw;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 900; font-size: 1.4rem;
  color: var(--cream); text-decoration: none;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.brand-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.nav-links a:hover { color: #FFFFFF; }
.nav-cta {
  background: #FFFFFF;
  color: var(--ink) !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--pill);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  text-shadow: none !important;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.36);
  background: #FFF5DE;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ──────────────────────────────────────────────────────────
   1. HERO
   ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 8rem 0 6rem;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}
.hero-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

/* Strong LEFT-side gradient — text is readable, image stays visible. */
.hero-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10, 4, 24, 0.78) 0%,
      rgba(10, 4, 24, 0.55) 28%,
      rgba(10, 4, 24, 0.18) 50%,
      rgba(10, 4, 24, 0) 65%),
    linear-gradient(180deg, rgba(10, 4, 24, 0.25) 0%, rgba(10, 4, 24, 0) 30%);
  pointer-events: none;
}

/* Algorithm corruption — confined to the upper-right of the hero */
.hero-algo {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.float-heart {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  font-size: 22px;
  color: hsl(var(--hue), 90%, 64%);
  text-shadow: 0 0 16px hsl(var(--hue), 90%, 60%);
  animation: heart-rise 8s linear infinite;
  animation-delay: var(--d);
  opacity: 0;
}
@keyframes heart-rise {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.85; }
  60%  { transform: translate(-22px, -50vh) scale(1); opacity: 0.85; }
  100% { transform: translate(14px, -100vh) scale(0.4); opacity: 0; }
}

.hero-notif {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 12px;
  background: rgba(20, 8, 40, 0.88);
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(91, 43, 217, 0.45);
  color: var(--cream);
  font-size: 0.8rem;
  width: 220px;
  backdrop-filter: blur(8px);
}
.hero-notif.n1 { top: 16%; right: 5vw; transform: rotate(-3deg); animation: jitter 5s ease-in-out infinite; }
.hero-notif.n2 { top: 46%; right: 11vw; transform: rotate(2deg); animation: jitter 5.6s ease-in-out infinite 0.6s; }
@keyframes jitter {
  0%, 100% { transform: translateY(0) rotate(var(--r, -3deg)); }
  50%      { transform: translateY(-5px) rotate(var(--r, -3deg)); }
}
.ni-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--algo-1), var(--algo-2));
}
.ni-icon.tt { background: linear-gradient(135deg, #25F4EE, #FE2C55); }
.ni-icon.yt { background: linear-gradient(135deg, #FF0033, #5B2BD9); }
.ni-text { display: flex; flex-direction: column; line-height: 1.3; }
.ni-text strong { font-size: 0.86rem; color: var(--algo-2); }
.ni-text span { color: var(--cream-soft); font-size: 0.76rem; }

.badge {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: var(--algo-red);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.9), 0 0 28px rgba(255, 59, 92, 0.5);
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); box-shadow: 0 0 22px rgba(255, 59, 92, 1), 0 0 36px rgba(255, 59, 92, 0.6); }
}

/* Hero copy block */
.hero-content {
  position: relative; z-index: 5;
  max-width: 640px;
  padding: 0 5vw;
}
/* Elegant overline — no pill, just a clean line above the headline.
   A thin warm accent rule + light tracking gives it premium hierarchy
   without competing with the H1. */
.hero-overline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFE9B8;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-overline::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, #FFE9B8, rgba(255, 233, 184, 0));
  flex-shrink: 0;
}
.hero-content h1 {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
  margin-bottom: 1.4rem;
}
.hero-content h1 .warm-mark {
  color: #FFD27A;
  font-style: italic;
  text-shadow: 0 0 22px rgba(255, 210, 122, 0.55), 0 2px 12px rgba(0,0,0,0.5);
}
/* First supporting line: emotional and prominent — serif italic, larger,
   cream-warm so it pops against the gradient without using orange. */
.hero-emotional {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: #FFE9B8;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  max-width: 34rem;
}
/* Second supporting line: smaller, clear, explanatory — sans, regular weight. */
.hero-lede {
  font-size: 1rem;
  color: var(--cream);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ──────────────────────────────────────────────────────────
   SCROLL TRAP CUTSCENE OVERLAY
   ──────────────────────────────────────────────────────────
   A fullscreen fixed overlay that fires ONCE when the hero
   leaves the viewport. JS adds .is-active, which kicks off a
   ~4.5s sequence:

     Phase 1 (0.0-1.0s)  3 notifications pop in (the page starts
                         to feel hijacked).
     Phase 2 (1.2-2.4s)  20+ algorithm elements fly in from the
                         sides and bottom. Hearts rise. Pulse,
                         glitch, jitter.
     Phase 3 (2.0-3.3s)  Huge "JUST ONE MORE." text → glitches
                         into "ONE MORE LOOP.".
     Phase 4 (3.3-4.0s)  All elements get pulled hard to the
                         right like digital debris. Background
                         goes deep purple.
     Phase 5 (4.0-4.6s)  Final reveal:
                         "The Algorithm took over their world."

   The page is scroll-locked the whole time. JS unlocks at 4.7s
   and smoothly scrolls to #algorithm.
   ────────────────────────────────────────────────────────── */
.trap-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.trap-overlay.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

/* Lock page scroll while the cutscene is active */
body.trap-locked {
  overflow: hidden;
  touch-action: none;
}

/* Backgrounds — warm cream remnant fades out, deep purple fades in */
.trap-bg-warm,
.trap-bg-cold {
  position: absolute;
  inset: 0;
}
.trap-bg-warm {
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(255, 197, 106, 0.22) 0%, transparent 60%),
    radial-gradient(60% 50% at 80% 90%, rgba(231, 111, 42, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #2A1A0A 0%, #1A1130 100%);
  opacity: 1;
}
.trap-bg-cold {
  background: radial-gradient(120% 80% at 50% 50%, #1A0A2E 0%, #050010 80%);
  opacity: 0;
}
.trap-overlay.is-active .trap-bg-warm { animation: bg-warm-out 8.0s ease forwards; }
.trap-overlay.is-active .trap-bg-cold { animation: bg-cold-in  8.0s ease forwards; }
@keyframes bg-warm-out {
  0%   { opacity: 1; }
  60%  { opacity: 0.5; }
  85%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes bg-cold-in {
  0%   { opacity: 0; }
  60%  { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Scanlines + static — fade in across phases 2-4 */
.trap-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(167, 139, 250, 0.15) 3px 4px);
  mix-blend-mode: screen;
  opacity: 0;
  animation: trap-scan-move 5s linear infinite;
}
.trap-overlay.is-active .trap-scanlines { animation: trap-scan-in 8.0s ease forwards, trap-scan-move 5s linear infinite; }
@keyframes trap-scan-in {
  0%   { opacity: 0; }
  35%  { opacity: 0.4; }
  70%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0.85; }
}
@keyframes trap-scan-move {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
.trap-static {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(167, 139, 250, 0.18) 60px 61px),
    radial-gradient(80% 60% at 50% 50%, transparent 60%, rgba(91, 43, 217, 0.45) 100%);
  opacity: 0;
}
.trap-overlay.is-active .trap-static { animation: trap-static-in 8.0s ease forwards; }
@keyframes trap-static-in {
  0%   { opacity: 0; }
  40%  { opacity: 0.3; }
  75%  { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Element layer */
.trap-elements {
  position: absolute; inset: 0;
}
.trap-elements > * {
  position: absolute;
  left: var(--x);
  top:  var(--y);
  opacity: 0;
  transform-origin: center;
  will-change: opacity, transform;
}

/* ── element styles (visual definitions) ── */
.t-notif {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  background: linear-gradient(180deg, rgba(20, 8, 40, 0.94), rgba(20, 8, 40, 0.84));
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(91, 43, 217, 0.5);
  color: var(--cream-soft);
  font-size: 0.82rem;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);  /* center on (x,y) anchor */
}
.t-notif strong {
  display: inline-block;
  margin-right: 2px;
  color: var(--algo-2);
  font-weight: 900;
  letter-spacing: 0.01em;
}
.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--algo-red);
  box-shadow: 0 0 10px var(--algo-red), 0 0 20px rgba(255, 59, 92, 0.6);
  flex-shrink: 0;
}
.t-badge {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: var(--algo-red);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.9), 0 0 28px rgba(255, 59, 92, 0.5);
}

.t-heart {
  font-size: 30px;
  color: hsl(var(--hue), 92%, 64%);
  text-shadow: 0 0 16px hsl(var(--hue), 92%, 60%), 0 0 32px hsl(var(--hue), 92%, 50%);
  transform: translate(-50%, -50%);
}

.t-play {
  width: calc(54px * var(--s, 1));
  height: calc(54px * var(--s, 1));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.95), rgba(91, 43, 217, 0.6));
  box-shadow: 0 0 26px rgba(167, 139, 250, 0.8);
  transform: translate(-50%, -50%);
}
.t-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-top: calc(11px * var(--s, 1)) solid transparent;
  border-bottom: calc(11px * var(--s, 1)) solid transparent;
  border-left: calc(18px * var(--s, 1)) solid #FFFFFF;
  transform: translate(-30%, -50%);
}

.t-comment {
  padding: 6px 12px;
  background: rgba(20, 8, 40, 0.88);
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: var(--pill);
  color: var(--cream-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.t-swipe {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: translate(-50%, -50%);
}
.t-swipe span {
  width: 14px; height: 14px;
  border-top: 2px solid var(--algo-2);
  border-right: 2px solid var(--algo-2);
  transform: rotate(-45deg);
}

.t-red-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--algo-red);
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.95), 0 0 36px rgba(255, 59, 92, 0.55);
  transform: translate(-50%, -50%);
}

.t-pixel {
  width: 18px; height: 18px;
  background: var(--algo-2);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.85);
  transform: translate(-50%, -50%);
}

/* ── ENTRANCE ANIMATIONS ──
   Phase 1: bounce-in for the first 3 notifications.
   Phase 2: fly-from-side for the swarm.
   All elements pull right + fade in phase 4. */

/* Pop-in bounce (Phase 1) */
@keyframes p1-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0.4); }
  60%  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.12); }
  80%  { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
}

/* Fly in from the left (Phase 2) */
@keyframes p2-from-l {
  0%   { opacity: 0; transform: translate(calc(-50% - 60vw), -50%) rotate(var(--r, 0deg)) scale(0.8); }
  60%  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
}
/* Fly in from the right (Phase 2) */
@keyframes p2-from-r {
  0%   { opacity: 0; transform: translate(calc(-50% + 60vw), -50%) rotate(var(--r, 0deg)) scale(0.8); }
  60%  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
}
/* Hearts — rise from below + fade */
@keyframes p2-heart {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% + 40vh)) rotate(var(--r, 0deg)) scale(0.5); }
  20%  { opacity: 1; }
  100% { opacity: 0.95; transform: translate(-50%, calc(-50% - 30vh)) rotate(var(--r, 0deg)) scale(1.05); }
}
/* Pop-in scale (play buttons, dots, pixels, comments, swipes) */
@keyframes p2-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Jitter once arrived (loops infinitely while overlay is active) */
@keyframes t-jitter-active {
  0%, 100% { filter: none; }
  50%      { filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5)); }
}

/* Phase 4 collapse — pulled hard to the right, scaled down, blurred */
@keyframes phase4-sweep {
  0%   { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + 80vw), -50%) rotate(var(--r, 0deg)) scale(0.6); filter: blur(8px); }
}
@keyframes phase4-sweep-simple {
  0%   { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + 80vw), -50%) scale(0.6); filter: blur(8px); }
}

/* Apply entrances when active */
.trap-overlay.is-active .t-notif.p1 {
  animation:
    p1-pop 0.7s cubic-bezier(.34,1.56,.64,1) var(--d) forwards,
    phase4-sweep 0.9s ease-in 7.2s forwards;
}
.trap-overlay.is-active .t-notif.p2.from-l,
.trap-overlay.is-active .t-comment.p2,
.trap-overlay.is-active .t-swipe.p2 {
  animation:
    p2-from-l 0.7s cubic-bezier(.34,1.56,.64,1) var(--d) forwards,
    phase4-sweep 0.9s ease-in 7.2s forwards;
}
.trap-overlay.is-active .t-notif.p2.from-r {
  animation:
    p2-from-r 0.7s cubic-bezier(.34,1.56,.64,1) var(--d) forwards,
    phase4-sweep 0.9s ease-in 7.2s forwards;
}
.trap-overlay.is-active .t-heart.p2 {
  animation:
    p2-heart 2.4s ease-out var(--d) forwards,
    phase4-sweep 0.9s ease-in 7.2s forwards;
}
.trap-overlay.is-active .t-play.p2,
.trap-overlay.is-active .t-red-dot.p2,
.trap-overlay.is-active .t-pixel.p2 {
  animation:
    p2-pop 0.6s cubic-bezier(.34,1.56,.64,1) var(--d) forwards,
    phase4-sweep-simple 0.9s ease-in 7.2s forwards;
}

/* ── Text overlay ── */
.trap-text {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5vw;
  pointer-events: none;
}
.trap-big,
.trap-final {
  position: absolute;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-shadow: 0 6px 36px rgba(0,0,0,0.75), 0 0 28px rgba(167, 139, 250, 0.4);
  opacity: 0;
}
.trap-big {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  text-transform: uppercase;
  line-height: 1;
}
.trap-final {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.1;
  max-width: 18ch;
}

/* RGB-split glitch layers — only the final + big-b use them */
.trap-big-b::before,
.trap-big-b::after,
.trap-final::before,
.trap-final::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
  text-transform: inherit;
  max-width: inherit;
  letter-spacing: inherit;
}
.trap-big-b::before,
.trap-final::before {
  color: var(--algo-2);
  transform: translate(-3px, 0);
  mix-blend-mode: screen;
  animation: glitch-x 2.6s steps(2, end) infinite;
}
.trap-big-b::after,
.trap-final::after {
  color: var(--algo-red);
  transform: translate(3px, 0);
  mix-blend-mode: screen;
  animation: glitch-x 2.6s steps(2, end) infinite reverse;
}

/* Text timing — each big line is on-screen long enough to read.
   With 2.2s duration: visible 0.33s, holds ~1.5s, fades over ~0.4s. */
@keyframes big-a-in {
  0%   { opacity: 0; transform: scale(0.85); }
  15%  { opacity: 1; transform: scale(1); }
  82%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); filter: blur(6px); }
}
@keyframes big-b-in {
  0%   { opacity: 0; transform: scale(0.9); }
  15%  { opacity: 1; transform: scale(1); }
  82%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); filter: blur(8px); }
}
@keyframes final-in {
  0%   { opacity: 0; transform: scale(0.92); }
  30%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

.trap-overlay.is-active .trap-big-a { animation: big-a-in 2.2s ease 3.4s forwards; }
.trap-overlay.is-active .trap-big-b { animation: big-b-in 2.2s ease 5.4s forwards; }
.trap-overlay.is-active .trap-final  { animation: final-in 0.9s ease 7.9s forwards; }

/* Whole-screen glitch flash at the collapse moment */
.trap-overlay.is-active::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.55), rgba(255, 59, 92, 0.45));
  mix-blend-mode: screen;
  opacity: 0;
  animation: trap-flash 0.22s steps(1, end) 7.55s 1;
}
@keyframes trap-flash {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Mobile — keep cinematic but reduce element count + smaller cards */
@media (max-width: 820px) {
  .t-notif { font-size: 0.74rem; padding: 8px 11px 8px 9px; }
  .trap-elements .t-notif.p2:nth-of-type(n+5),
  .trap-elements .t-heart.p2:nth-of-type(n+5),
  .trap-elements .t-play.p2:nth-of-type(n+2),
  .trap-elements .t-comment.p2:nth-of-type(n+2),
  .trap-elements .t-pixel.p2:nth-of-type(n+3),
  .trap-elements .t-red-dot.p2:nth-of-type(n+2) {
    display: none;
  }
}

/* Reduced motion — skip the cutscene entirely. JS also checks this. */
@media (prefers-reduced-motion: reduce) {
  .trap-overlay { display: none; }
}

/* ──────────────────────────────────────────────────────────
   2. THE ALGORITHM
   ────────────────────────────────────────────────────────── */
.algorithm {
  position: relative;
  padding: 7rem 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--night-1) 0%, var(--night-2) 80%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.algo-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.algo-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(167, 139, 250, 0.09) 3px 4px);
  mix-blend-mode: screen;
  animation: scan 8s linear infinite;
}
@keyframes scan { from { background-position: 0 0; } to { background-position: 0 60px; } }

.drift-notif {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px 9px 11px;
  background: linear-gradient(180deg, rgba(91, 43, 217, 0.45), rgba(20, 8, 40, 0.65));
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--cream-soft);
  box-shadow: 0 10px 28px rgba(91, 43, 217, 0.4);
  white-space: nowrap;
}
.drift-notif strong { color: var(--algo-2); font-weight: 900; }
.drift-notif .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--algo-red);
  box-shadow: 0 0 10px var(--algo-red);
  animation: badge-pulse 1.6s ease-in-out infinite;
}
.algorithm .n1 { top: 18%; left: 8vw;  transform: rotate(-4deg); animation: drift 12s ease-in-out infinite; }
.algorithm .n2 { top: 26%; right: 9vw; transform: rotate(3deg);  animation: drift 14s ease-in-out infinite reverse; }
.algorithm .n3 { bottom: 22%; left: 12vw; transform: rotate(2deg); animation: drift 16s ease-in-out infinite 1.5s; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0)); opacity: 0.85; }
  50%      { transform: translateY(-18px) rotate(var(--r, 0)); opacity: 1; }
}

.algorithm .container { position: relative; z-index: 2; }
.algorithm h2 { color: #FFFFFF; }
.algorithm .body { color: var(--cream-soft); }

.glitch-text { position: relative; display: inline-block; }
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.glitch-text::before {
  color: var(--algo-2);
  transform: translate(-2px, 0);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: glitch-x 4s steps(2, end) infinite;
}
.glitch-text::after {
  color: var(--algo-red);
  transform: translate(2px, 0);
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: glitch-x 4s steps(2, end) infinite reverse;
}
@keyframes glitch-x {
  0%, 92%, 100% { transform: translate(0, 0); }
  94%           { transform: translate(-3px, 1px); }
  96%           { transform: translate(3px, -1px); }
}

/* ──────────────────────────────────────────────────────────
   3. THE MIRROR
   ────────────────────────────────────────────────────────── */
.mirror {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}

/* ──────────────────────────────────────────────────────────
   4. FOCUS / RESTORATION
   ────────────────────────────────────────────────────────── */
.focus {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--paper), #FFF1CF);
}

.focus-art { position: relative; text-align: center; }
.relate-art { position: relative; text-align: center; }

.art-card {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  padding: 14px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.04);
  max-width: 480px;
  width: 100%;
}
.art-card.medium { max-width: 420px; }
.art-card img {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.art-caption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* Focus orb floats above the art-card (the before/after seam) */
.art-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  pointer-events: none;
}
.orb-core, .orb-halo {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: block;
}
.orb-core {
  background: radial-gradient(circle, #FFFBE6 0%, #FFE7A8 40%, #FF9F4A 100%);
  box-shadow:
    0 0 26px #FFC56A,
    0 0 60px rgba(255, 197, 106, 0.6),
    0 0 110px rgba(255, 159, 74, 0.4);
  animation: orb-pulse 2.6s ease-in-out infinite;
}
.orb-halo {
  border: 2px solid rgba(255, 231, 168, 0.55);
  filter: blur(2px);
  animation: orb-halo 3.8s ease-in-out infinite;
}
@keyframes orb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes orb-halo  { 0%,100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.7); opacity: 0; } }

.focus-copy { max-width: 32rem; }
.focus-copy .body { margin-bottom: 1.4rem; margin-left: 0; }
.focus-copy .lede { color: var(--gold-deep); margin: 0.4rem 0 1.4rem; }

.step-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  max-width: 28rem;
}
.step-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(201, 122, 42, 0.18);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.step-list li:hover {
  transform: translateX(4px);
  border-color: var(--gold);
  background: #FFFFFF;
}
.step-list li span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE7A8, var(--gold));
  color: var(--ink);
  font-weight: 900;
  font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(201, 122, 42, 0.3);
}

/* ──────────────────────────────────────────────────────────
   5. RELATIONSHIP
   ────────────────────────────────────────────────────────── */
.relationship {
  padding: 7rem 0;
  background: linear-gradient(180deg, #FFF1CF, var(--paper-warm));
}
.relate-copy { max-width: 32rem; }
.relate-copy .body { margin-left: 0; margin-bottom: 1.4rem; }
.tag-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.tag-list li {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  border: 1.5px solid rgba(201, 122, 42, 0.3);
}

/* ──────────────────────────────────────────────────────────
   6. GAMEPLAY PREVIEW — phone mockup
   ────────────────────────────────────────────────────────── */
.vision {
  padding: 7rem 0 8rem;
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
  text-align: center;
}
.vision .container { margin-bottom: 3rem; }

.phone-mockup {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #1A0F25;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.85),
    0 0 0 10px #2A1A3A,
    0 40px 80px rgba(37, 23, 3, 0.35);
  overflow: hidden;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}
.phone-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 197, 106, 0.45), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ──────────────────────────────────────────────────────────
   ROADMAP — horizontal rail
   ────────────────────────────────────────────────────────── */
.roadmap {
  padding: 7rem 0 6rem;
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
}
.roadmap .container { margin-bottom: 4rem; }

/* Outer wrap allows horizontal scroll on small screens without
   breaking the rail's centered alignment on desktop. */
.rail-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4vw;
}

.rail {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 60px 0 0;   /* top room for the node + headline above */
}

/* The connecting rail. Sits behind the nodes, vertically aligned
   to the node row. We use two stops to show the warm "progress fill"
   ending at Alpha v1.1 (node 3 of 6). */
.rail::before {
  content: "";
  position: absolute;
  top: 70px;            /* aligns with node center */
  left: calc(100% / 12);   /* start at center of first node */
  right: calc(100% / 12);  /* end at center of last node */
  height: 3px;
  background: linear-gradient(90deg,
    var(--gold)       0%,
    var(--gold)       42%,       /* solid up to Alpha v1.1 */
    rgba(201, 122, 42, 0.25) 50%,
    rgba(201, 122, 42, 0.25) 100%);
  border-radius: 3px;
  z-index: 0;
}

.stop {
  position: relative;
  text-align: center;
  padding: 0 0.6rem;
  z-index: 1;
}

/* Node sitting on the rail */
.stop-node {
  position: relative;
  width: 22px; height: 22px;
  margin: -10px auto 0.9rem;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid rgba(201, 122, 42, 0.4);
  box-shadow: 0 0 0 4px var(--paper);   /* punch a hole in the rail */
}

.stop.done .stop-node {
  background: linear-gradient(135deg, #FFE7A8, var(--gold));
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px var(--paper), 0 4px 10px rgba(201, 122, 42, 0.35);
}
.stop.done .stop-node::after {
  content: "";
  position: absolute;
  top: 4px; left: 7px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.stop.current .stop-node {
  width: 30px; height: 30px;
  margin-top: -14px;
  background: radial-gradient(circle, #FFFBE6 0%, #FFD27A 50%, var(--gold) 100%);
  border-color: var(--gold-deep);
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 20px rgba(255, 197, 106, 0.9),
    0 0 44px rgba(255, 159, 74, 0.55);
}
.stop.current .stop-node.pulse::before,
.stop.current .stop-node.pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 197, 106, 0.7);
  animation: ms-pulse 1.8s ease-out infinite;
}
.stop.current .stop-node.pulse::after { animation-delay: 0.9s; }
@keyframes ms-pulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2);   opacity: 0; }
}

.stop.next .stop-node,
.stop.planned .stop-node {
  background: #FFFFFF;
  border-color: rgba(201, 122, 42, 0.55);
  box-shadow: 0 0 0 4px var(--paper);
}

.stop.launch .stop-node {
  background: linear-gradient(135deg, var(--ink), #3A2510);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 6px 16px rgba(37, 23, 3, 0.45);
}
.stop.launch .stop-node.star::after {
  content: "★";
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #FFE7A8;
}

/* Stop content */
.stop h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: -0.005em;
}
.stop.next h3, .stop.planned h3 { color: var(--ink-soft); }

.stop-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--pill);
  margin-bottom: 0.7rem;
  white-space: nowrap;
}
.pill-done {
  background: rgba(92, 122, 74, 0.16);
  color: var(--moss);
  border: 1px solid rgba(92, 122, 74, 0.4);
}
.pill-current {
  background: linear-gradient(135deg, #FFE7A8, var(--gold));
  color: var(--ink);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 0 12px rgba(255, 197, 106, 0.65);
}
.pill-next {
  background: rgba(201, 122, 42, 0.10);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 122, 42, 0.45);
}
.pill-planned {
  background: transparent;
  color: var(--ink-soft);
  border: 1px dashed rgba(90, 66, 32, 0.5);
}
.pill-launch {
  background: var(--ink);
  color: #FFE7A8;
  border: 1px solid var(--ink);
  letter-spacing: 0.18em;
}

.stop p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 13rem;
}
.stop.current p { color: var(--ink); font-weight: 700; }
.stop.planned p { opacity: 0.85; }

.roadmap-footnote {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ── Mobile roadmap: vertical timeline ──
   The horizontal rail doesn't read well on narrow screens. On mobile,
   we flip it into a single vertical column: the rail runs top-to-bottom
   on the left, each stop is a row with content flowing to the right. */
@media (max-width: 820px) {
  .rail-wrap {
    padding: 0 5vw;
    overflow: visible;
  }
  .rail {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 0 36px;       /* room for the vertical rail + nodes */
    position: relative;
  }
  /* Rail becomes a vertical line on the left. Solid gold for the
     completed/current portion (top half), faded after. */
  .rail::before {
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg,
      var(--gold)              0%,
      var(--gold)              42%,
      rgba(201, 122, 42, 0.25) 50%,
      rgba(201, 122, 42, 0.25) 100%);
  }

  .stop {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0 0 1.6rem 0;
    position: relative;
  }
  .stop:last-child { padding-bottom: 0; }

  /* Move every node onto the vertical rail */
  .stop-node {
    position: absolute;
    left: -36px;
    top: 4px;
    margin: 0;
    box-shadow: 0 0 0 4px var(--paper-deep);
  }
  .stop.done .stop-node {
    box-shadow: 0 0 0 4px var(--paper-deep), 0 4px 10px rgba(201, 122, 42, 0.35);
  }
  .stop.current .stop-node {
    left: -40px;                /* larger node, re-center on the rail */
    top: 2px;
    box-shadow:
      0 0 0 4px var(--paper-deep),
      0 0 20px rgba(255, 197, 106, 0.9),
      0 0 44px rgba(255, 159, 74, 0.55);
  }
  .stop.next .stop-node,
  .stop.planned .stop-node,
  .stop.launch .stop-node {
    box-shadow: 0 0 0 4px var(--paper-deep);
  }
  .stop.launch .stop-node {
    box-shadow: 0 0 0 4px var(--paper-deep), 0 6px 16px rgba(37, 23, 3, 0.45);
  }

  /* Content card on the right of the node */
  .stop h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
  }
  .stop-pill {
    margin-bottom: 0.55rem;
  }
  .stop p {
    font-size: 0.92rem;
    margin: 0;
    max-width: 100%;
  }

  /* Highlight the current stop with a soft warm card behind its content */
  .stop.current {
    background: linear-gradient(160deg, rgba(255, 251, 230, 0.9), rgba(255, 231, 168, 0.7));
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 14px 30px rgba(231, 111, 42, 0.18);
    margin-bottom: 1.6rem;
  }
  .stop.current::before {
    /* hide the rail behind the highlighted card by adding a small mask */
    content: "";
    position: absolute;
    left: -27px; top: 0; bottom: 0;
    width: 18px;
    background: var(--paper-deep);
    z-index: -1;
  }
}

/* ──────────────────────────────────────────────────────────
   7. WHY IT'S DIFFERENT
   ────────────────────────────────────────────────────────── */
.why {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
  text-align: center;
}
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  max-width: 820px;
  margin: 2.5rem auto 1.5rem;
  align-items: stretch;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.compare-card.cold {
  background: linear-gradient(160deg, var(--night-1), var(--night-2));
  color: var(--cream);
  border: 1.5px solid rgba(167, 139, 250, 0.4);
}
.cc-static {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(167, 139, 250, 0.08) 3px 4px);
  pointer-events: none;
}
.cc-badge {
  top: -10px; right: -10px;
  min-width: 26px; height: 26px;
  font-size: 0.76rem;
  border-radius: 13px;
}
.compare-card.warm {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid rgba(201, 122, 42, 0.3);
  box-shadow: var(--shadow-soft);
}
.cc-label {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.cc-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.35;
  position: relative; z-index: 1;
}
.compare-vs {
  align-self: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ──────────────────────────────────────────────────────────
   8. FINAL CTA
   ────────────────────────────────────────────────────────── */
.final-cta {
  position: relative;
  padding: 8rem 0;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(255, 197, 106, 0.35), transparent 70%),
    linear-gradient(180deg, var(--paper-warm), #FFD89A);
  text-align: center;
  overflow: hidden;
}
.final-cta h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 1rem;
}
.final-cta .body {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.final-cta .btn-primary {
  background: var(--ink);
  color: #FFF;
  box-shadow: 0 14px 32px rgba(37, 23, 3, 0.36);
}
.final-cta .btn-primary:hover { background: #3A2510; }

.final-lanterns { position: absolute; inset: 0; pointer-events: none; }
.lantern {
  position: absolute;
  width: 14px; height: 22px;
  border-radius: 7px 7px 10px 10px;
  background: linear-gradient(180deg, #FFE08A, #FF9F4A);
  box-shadow: 0 0 24px #FFC56A, 0 0 50px rgba(255, 197, 106, 0.5);
  animation: lantern-flicker 3.5s ease-in-out infinite;
}
.lantern::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 1.5px; height: 10px;
  background: rgba(37, 23, 3, 0.3);
  transform: translateX(-50%);
}
@keyframes lantern-flicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}

footer {
  text-align: center;
  padding: 2.4rem 1rem;
  color: var(--cream-soft);
  font-size: 0.9rem;
  font-style: italic;
  background: var(--night-2);
}

/* ──────────────────────────────────────────────────────────
   Responsive — tablet and below
   ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Split layouts stack vertically and center their copy */
  .split { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .split.reverse > :first-child { order: 0; }
  .focus-copy, .relate-copy { max-width: 100%; margin: 0 auto; }
  .focus-copy .body, .focus-copy .lede,
  .relate-copy .body { margin-left: auto; margin-right: auto; }
  .step-list, .tag-list { margin: 0 auto; }
  .tag-list { justify-content: center; }

  /* Comparison cards stack */
  .compare { grid-template-columns: 1fr; gap: 1rem; }
  .compare-vs { padding: 0.4rem 0; }

  /* Trim section padding for denser mobile pages */
  section { /* defer to specific sections below */ }
  .hook, .mirror, .focus, .relationship, .vision,
  .why, .roadmap, .final-cta { padding-top: 5rem; padding-bottom: 5rem; }

  /* Nav links collapse to just the CTA */
  .nav-links a:not(.nav-cta) { display: none; }
  .nav { padding: 1rem 5vw; }
  .brand { font-size: 1.25rem; }
  .brand-icon { width: 38px; height: 38px; }

  /* Hero algorithm temptation: keep one notification, smaller hearts */
  .hero-notif.n2 { display: none; }
  .hero-notif.n1 { top: 14%; right: 4vw; transform: scale(0.85) rotate(-3deg); }
  .float-heart { font-size: 18px; }
}

/* ──────────────────────────────────────────────────────────
   Phone — refined small-screen experience
   ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Use small-viewport units to avoid the iOS URL-bar height jump */
  .hero {
    min-height: 100svh;
    padding: 6.5rem 0 4rem;
  }
  /* Full top-to-bottom darkening so the headline always reads, regardless
     of how the background image crops on a narrow phone. */
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(10, 4, 24, 0.5) 0%, rgba(10, 4, 24, 0.8) 70%),
      linear-gradient(90deg,  rgba(10, 4, 24, 0.55), rgba(10, 4, 24, 0.25));
  }
  .hero-content { padding: 0 5vw; max-width: 100%; }
  .hero-content h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.6rem);
    line-height: 1.12;
    margin-bottom: 1rem;
  }
  .hero-emotional {
    font-size: clamp(1.05rem, 4.8vw, 1.3rem);
    line-height: 1.35;
    margin-bottom: 0.9rem;
  }
  .hero-lede {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
  }
  /* Hide algorithm clutter on the hero — the page has a full cutscene
     for that moments later. Keep the warm image clean and readable. */
  .hero-notif, .float-heart, .swipe-cue { display: none; }
  .hero .cta-row .btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
  .scroll-hint { display: none; }

  /* Headings: tighten clamp floors so they never look enormous on phones */
  h1 { font-size: clamp(1.95rem, 8.4vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6.4vw, 2.2rem); margin-bottom: 0.9rem; }
  .body { font-size: 0.98rem; }
  .lede { font-size: 1.15rem; }

  /* Algorithm section — drift notifications would overlap the centered
     copy at this width. Hide them so the message lands clean. */
  .algorithm { padding: 5rem 0 4.5rem; }
  .algorithm .drift-notif { display: none; }
  .algo-image { opacity: 0.28; }

  /* Mirror */
  .mirror .big-quote { font-size: 1.25rem; margin-top: 1.8rem; }

  /* Focus / Relationship — art cards size down naturally */
  .art-card, .art-card.medium { max-width: 360px; }
  .art-card { padding: 10px; }
  .focus-copy .lede { font-size: 1.2rem; margin-bottom: 1rem; }
  .step-list li { font-size: 0.92rem; padding: 0.5rem 0.7rem 0.5rem 0.5rem; }
  .step-list li span { width: 24px; height: 24px; font-size: 0.8rem; }

  /* Roadmap — vertical timeline already kicks in at <=820px. Fine-tune
     type sizes and spacing for phone widths. */
  .roadmap { padding: 5rem 0; }
  .roadmap .container { margin-bottom: 2.5rem; }
  .stop h3 { font-size: 1.02rem; }
  .stop-pill { font-size: 0.58rem; padding: 0.24rem 0.62rem; }
  .stop p { font-size: 0.9rem; }
  .roadmap-footnote { margin-top: 2rem; font-size: 0.8rem; padding: 0 5vw; }

  /* Vision phone mockup — slightly smaller so it doesn't dominate */
  .vision { padding-bottom: 5.5rem; }
  .phone-mockup { max-width: 240px; }
  .phone-frame { border-radius: 38px; padding: 10px; }
  .phone-frame img { border-radius: 28px; }
  .phone-notch { width: 78px; height: 18px; top: 14px; }

  /* Why it's different cards */
  .compare-card { padding: 1.8rem 1.4rem; }
  .cc-line { font-size: 1.15rem; }

  /* Final CTA */
  .final-cta { padding: 5.5rem 0 6rem; }
  .final-cta h2 { font-size: clamp(1.7rem, 6.4vw, 2.4rem); }
  .final-cta .body { font-size: 0.98rem; }
  /* Hide a couple lanterns so they don't sit on top of the headline */
  .final-lanterns .lantern:nth-child(n+4) { display: none; }
  .lantern { width: 12px; height: 18px; }

  /* Footer */
  footer { padding: 1.8rem 1rem; font-size: 0.85rem; }

  /* Cutscene mobile — already trimmed, ensure big text wraps gracefully */
  .trap-big { font-size: clamp(2rem, 10vw, 3rem); padding: 0 8vw; line-height: 1.05; }
  .trap-final { font-size: clamp(1.5rem, 6.4vw, 2.2rem); padding: 0 8vw; }
  .t-notif { max-width: 78vw; }
  .t-notif span:last-child { white-space: normal; }
}

/* Very small phones — extra tightening so nothing overflows */
@media (max-width: 380px) {
  .hero-content h1 { font-size: 1.85rem; }
  .hero-emotional { font-size: 1rem; }
  .hero-lede { font-size: 0.9rem; }
  h2 { font-size: 1.55rem; }
  .body { font-size: 0.94rem; }
  .nav { padding: 0.85rem 4vw; }
  .nav-cta { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
  .brand span { display: none; }   /* keep just the icon, save space */
  .phone-mockup { max-width: 220px; }
  .rail { padding-left: 32px; }
  .stop-node { left: -32px; }
  .stop.current .stop-node { left: -36px; }
}

/* Landscape phones — keep hero from feeling too tall */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: 100svh; padding-top: 5rem; padding-bottom: 3rem; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-emotional { font-size: 1.05rem; margin-bottom: 0.6rem; }
  .hero-lede { font-size: 0.9rem; margin-bottom: 1.2rem; }
}
