/* ==========================================================================
   Ligers Tech — "Two Worlds" design system
   Day  = Wonderwood: cut paper, warm light, rounded type.
   Night = Lagos Racer: asphalt, Danfo yellow, lasso cyan, HUD type.
   ========================================================================== */

:root {
  /* Day palette */
  --paper: #fbf3e4;
  --paper-2: #f4e6cc;
  --ink: #2b2140;
  --ink-soft: #5a4f6e;
  --coral: #ff6b57;
  --leaf: #3baa6e;
  --sky: #bfe4f6;
  --sky-ink: #3e8fcb;
  --sun: #ffc94a;
  --sun-ink: #e8a317;
  --lilac: #a88beb;

  /* Night palette (from the Lagos Racer style sheet) */
  --asphalt: #0e1117;
  --asphalt-2: #1f242c;
  --danfo: #f5a623;
  --cyan: #00e5ff;
  --brake: #e53935;
  --teal: #00897b;
  --violet: #a86bff;
  --mist: #c9d1e0;
  --mist-dim: #8b95a9;

  /* Brand */
  --indigo: #15112b;
  --indigo-2: #1f1940;

  /* Type */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-play: "Baloo 2", "DM Sans", system-ui, sans-serif;
  --f-hud: "Chakra Petch", "DM Sans", system-ui, sans-serif;

  --radius: 20px;
  --section-pad: clamp(5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--indigo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--danfo); color: #111; padding: .7rem 1rem;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .78rem/1 var(--f-body);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--day { color: var(--coral); }
.kicker--night { color: var(--cyan); font-family: var(--f-hud); }

.section-title {
  font: 800 clamp(2.4rem, 5.6vw, 4.5rem)/1 var(--f-display);
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 60ch; }
.lead + .lead { margin-top: 1rem; }

.grad-text {
  background: linear-gradient(90deg, var(--coral), var(--sun) 45%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: 1rem 1.6rem;
  border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.btn--paper {
  background: var(--ink); color: var(--paper);
  box-shadow: 4px 4px 0 var(--coral);
}
.btn--paper:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--coral); }
.btn--neon {
  background: var(--danfo); color: #141008;
  font-family: var(--f-hud); text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 0 0 0 rgba(245, 166, 35, .0);
}
.btn--neon:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(245,166,35,.18), 0 12px 40px -6px rgba(245,166,35,.7); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; z-index: 100;
  top: max(.9rem, env(safe-area-inset-top));
  left: 50%; translate: -50% 0;
  width: min(1120px, calc(100% - 1.5rem));
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .55rem .5rem 1rem;
  border-radius: 999px;
  background: rgba(21, 17, 43, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(14, 12, 30, .82); box-shadow: 0 10px 40px -12px rgba(0,0,0,.6); }

.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; transition: rotate .6s var(--ease-out); }
.nav__brand:hover .logo-mark { rotate: -12deg; }
.nav__word { font: 800 1.25rem/1 var(--f-display); letter-spacing: -0.03em; }
.nav__word span,
.footer__brand span {
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links a {
  display: block; padding: .6rem .95rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  color: rgba(255,255,255,.85);
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav__links .nav__cta { background: var(--danfo); color: #141008; font-weight: 700; }
.nav__links .nav__cta:hover { background: #ffb840; color: #141008; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.08); cursor: pointer;
}
.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block; width: 18px; height: 2px; margin-inline: auto;
  background: #fff; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -6px; }
.nav__burger::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + .6rem); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .6rem; border-radius: 22px;
    background: rgba(14, 12, 30, .95);
    border: 1px solid rgba(255,255,255,.12);
    opacity: 0; translate: 0 -8px; pointer-events: none;
    transition: opacity .25s, translate .25s var(--ease-out);
  }
  .nav__links.is-open { opacity: 1; translate: 0 0; pointer-events: auto; }
  .nav__links a { padding: .9rem 1rem; }
}

/* ==========================================================================
   Hero — two worlds split by a seam
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh; min-height: 640px; max-height: 1100px;
  overflow: hidden; isolation: isolate;
  touch-action: pan-y;
}
.world { position: absolute; inset: 0; }
.world--night { clip-path: inset(0 0 0 var(--split)); }

/* --- Day scene --- */
.world--day { background: linear-gradient(180deg, #cdebf8 0%, #e6f3f3 40%, var(--paper) 75%); }
.day-scene { position: absolute; inset: 0; }
.day-scene::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--paper-tex); mix-blend-mode: multiply; opacity: .9;
  pointer-events: none;
}
.paper-sun {
  position: absolute; top: 15%; left: 9%;
  width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe08a, var(--sun) 60%, var(--sun-ink));
  box-shadow: 5px 7px 0 rgba(43,33,64,.1);
}
.paper-sun::before {
  content: ""; position: absolute; inset: -42%;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--sun) 0 9deg, transparent 9deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%, #000 72%, transparent 73%);
  mask: radial-gradient(circle, transparent 52%, #000 53%, #000 72%, transparent 73%);
  z-index: -1;
}
.paper-cloud {
  position: absolute; width: 150px; height: 44px; border-radius: 44px;
  background: #fff;
  filter: drop-shadow(4px 5px 0 rgba(43,33,64,.08));
}
.paper-cloud::before,
.paper-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.paper-cloud::before { width: 64px; height: 64px; left: 22px; top: -32px; }
.paper-cloud::after { width: 48px; height: 48px; left: 74px; top: -22px; }
.paper-cloud--1 { top: 22%; left: 24%; scale: .9; }
.paper-cloud--2 { top: 12%; left: 40%; scale: .65; opacity: .9; }
.paper-cloud--3 { top: 30%; left: 2%; scale: .55; }

.paper-hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; }
.hill { filter: drop-shadow(0 -5px 0 rgba(43,33,64,.06)); }
.hill--back { fill: #f6bfa6; }
.hill--mid { fill: #9fd8b3; }
.hill--front { fill: var(--paper-2); }

/* --- Night scene --- */
.world--night { background: radial-gradient(ellipse 90% 70% at 50% 100%, #2b1c52 0%, #121426 55%, var(--asphalt) 100%); }
.night-scene { position: absolute; inset: 0; overflow: hidden; }
.stars {
  position: absolute; inset: 0 0 45% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #cfe9ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #ffe9b5 50%, transparent 51%),
    radial-gradient(1px 1px at 170px 20px, #fff 50%, transparent 51%);
  background-size: 240px 220px;
  opacity: .75;
}
.skyline {
  position: absolute; left: 0; right: 0; bottom: 36%; height: 22%;
  background:
    linear-gradient(#1a1f33, #1a1f33) 52% 100% / 4% 55% no-repeat,
    linear-gradient(#161b2c, #161b2c) 57% 100% / 6% 85% no-repeat,
    linear-gradient(#1a1f33, #1a1f33) 64% 100% / 5% 45% no-repeat,
    linear-gradient(#141828, #141828) 71% 100% / 3% 100% no-repeat,
    linear-gradient(#1a1f33, #1a1f33) 77% 100% / 7% 60% no-repeat,
    linear-gradient(#161b2c, #161b2c) 85% 100% / 4% 75% no-repeat,
    linear-gradient(#1a1f33, #1a1f33) 92% 100% / 6% 50% no-repeat,
    linear-gradient(#141828, #141828) 99% 100% / 4% 80% no-repeat,
    linear-gradient(#161b2c, #161b2c) 44% 100% / 5% 70% no-repeat,
    linear-gradient(#1a1f33, #1a1f33) 36% 100% / 4% 40% no-repeat;
}
.skyline::after {
  /* generator-lit windows */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(3px 4px at 58% 40%, var(--danfo) 60%, transparent 61%),
    radial-gradient(3px 4px at 72% 30%, #ffe9b5 60%, transparent 61%),
    radial-gradient(3px 4px at 79% 62%, var(--danfo) 60%, transparent 61%),
    radial-gradient(3px 4px at 86% 45%, #ffe9b5 60%, transparent 61%),
    radial-gradient(3px 4px at 46% 55%, var(--danfo) 60%, transparent 61%),
    radial-gradient(3px 4px at 93% 70%, #ffe9b5 60%, transparent 61%);
  filter: drop-shadow(0 0 4px var(--danfo));
}
.road {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: 260%; height: 38%;
  perspective: 320px; perspective-origin: 50% 0%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}
.road__plane {
  position: absolute; inset: -300% 0 0 0;
  transform-origin: 50% 100%;
  transform: rotateX(64deg);
  background:
    repeating-linear-gradient(90deg, rgba(0,229,255,.22) 0 2px, transparent 2px 140px),
    repeating-linear-gradient(0deg, rgba(0,229,255,.14) 0 2px, transparent 2px 140px),
    linear-gradient(#0f1320, #0f1320);
}
.road__plane::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 10px; translate: -50% 0;
  background: repeating-linear-gradient(to bottom, var(--danfo) 0 70px, transparent 70px 140px);
  box-shadow: 0 0 18px var(--danfo);
}
.streak {
  position: absolute; left: 62%; top: 64%;
  width: 10px; height: 6px; border-radius: 6px;
  opacity: 0;
}
.streak--1 { background: var(--brake); box-shadow: 16px 0 0 var(--brake), 0 0 16px 4px rgba(229,57,53,.7); }
.streak--2 { background: #fff7c2; box-shadow: 16px 0 0 #fff7c2, 0 0 16px 4px rgba(255,247,194,.8); left: 66%; }
.streak--3 { background: var(--cyan); box-shadow: 16px 0 0 var(--cyan), 0 0 16px 4px rgba(0,229,255,.7); left: 70%; }

/* --- Shared hero content --- */
.hero__content {
  position: absolute; left: 0; right: 0;
  top: clamp(6.5rem, 15vh, 10rem);
  text-align: center; padding-inline: 1rem;
}
.eyebrow {
  display: inline-block; margin-bottom: 1.2rem;
  font: 700 .8rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  padding: .55rem .9rem; border-radius: 999px;
}
.eyebrow--day { color: var(--ink); background: rgba(255,255,255,.7); box-shadow: 3px 3px 0 rgba(43,33,64,.12); }
.eyebrow--night { color: var(--cyan); background: rgba(0,229,255,.08); box-shadow: inset 0 0 0 1px rgba(0,229,255,.4); font-family: var(--f-hud); }

.hero__title {
  font: 800 clamp(2.6rem, 7.8vw, 7.25rem)/.95 var(--f-display);
  letter-spacing: -0.04em;
}
.hero__title .line { display: block; }
.hero__title em { font-style: normal; }

.hero__title--day { color: var(--ink); text-shadow: .035em .035em 0 var(--sun), .07em .07em 0 rgba(43,33,64,.12); }
.hero__title--day em { color: var(--coral); }

.hero__title--night {
  color: transparent;
  -webkit-text-stroke: max(1.5px, .018em) var(--danfo);
  filter: drop-shadow(0 0 10px rgba(245,166,35,.55));
}
.hero__title--night em {
  color: var(--cyan); -webkit-text-stroke: 0;
  filter: drop-shadow(0 0 14px rgba(0,229,255,.75));
}

/* --- Side links --- */
.hero__side {
  position: absolute; bottom: clamp(5rem, 12vh, 7.5rem);
  display: grid; gap: .2rem; max-width: 250px;
  text-decoration: none;
  transition: transform .3s var(--ease-out);
}
.hero__side:hover { transform: translateY(-4px); }
.hero__side-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero__side-title { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.15; }
.hero__side-app { margin-top: .6rem; font-weight: 700; }

.hero__side--day { left: clamp(1.25rem, 6vw, 6rem); color: var(--ink); }
.hero__side--day .hero__side-kicker { color: var(--coral); }
.hero__side--day .hero__side-title { font-family: var(--f-play); font-weight: 800; }
.hero__side--day .hero__side-app {
  justify-self: start; background: #fff; padding: .55rem .95rem; border-radius: 12px;
  box-shadow: 3px 3px 0 var(--leaf);
}

.hero__side--night { right: clamp(1.25rem, 6vw, 6rem); text-align: right; color: #fff; justify-items: end; }
.hero__side--night .hero__side-kicker { color: var(--cyan); font-family: var(--f-hud); }
.hero__side--night .hero__side-title { font-family: var(--f-hud); text-transform: uppercase; }
.hero__side--night .hero__side-app {
  font-family: var(--f-hud); text-transform: uppercase; letter-spacing: .05em;
  background: var(--danfo); color: #141008; padding: .55rem .95rem; border-radius: 4px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* --- Mascot --- */
.hero__mascot {
  position: absolute; z-index: 3;
  left: 50%; bottom: clamp(1.5rem, 7vh, 4rem); translate: -50% 0;
  width: min(36vh, 34vw, 380px);
  aspect-ratio: 1; border-radius: 50%;
  padding: 7px;
  background: linear-gradient(90deg, #fff 50%, var(--cyan) 50%);
  box-shadow: -10px 12px 0 -2px var(--coral), 0 0 60px -6px rgba(0,229,255,.55);
  pointer-events: none;
}
.hero__mascot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* --- Seam --- */
.seam {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--split);
  width: 0; pointer-events: none;
}
.seam__line {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(to bottom, transparent, #fff 12%, #fff 88%, transparent);
  box-shadow: 0 0 14px 1px rgba(0,229,255,.8);
}
.seam__knob {
  position: absolute; bottom: 1.2rem; left: 0; translate: -50% 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--indigo);
  box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 0 30px rgba(0,229,255,.7);
  pointer-events: auto; cursor: ew-resize; touch-action: none;
  transition: scale .2s var(--ease-out);
}
.seam__knob svg { width: 24px; height: 24px; }
.seam__knob:hover, .hero.is-dragging .seam__knob { scale: 1.1; }
.hero:has(.seam__range:focus-visible) .seam__knob { outline: 3px solid var(--cyan); outline-offset: 5px; }
.seam__range { position: absolute; bottom: 1.2rem; left: 50%; width: 1px; height: 1px; opacity: 0; }

.hero__hint {
  position: absolute; z-index: 4; bottom: 2.2rem; left: var(--split); translate: -50% 0;
  display: flex; gap: 4.75rem; white-space: nowrap; pointer-events: none;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hint-day { color: var(--ink); }
.hint-night { color: var(--danfo); font-family: var(--f-hud); }

@media (max-width: 720px) {
  .hero { min-height: 600px; }
  .hero__content { top: 6.25rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .14em; }
  .hero__mascot { width: min(46vw, 30vh); bottom: 12.5rem; }
  .hero__side { bottom: 5.25rem; max-width: 42vw; }
  .hero__side-title { font-size: 1.05rem; }
  .hero__side-kicker { font-size: .68rem; }
  .hero__side-app { font-size: .85rem; }
  .hero__hint { display: none; }
}

/* ==========================================================================
   Marquee — one strip, half paper / half asphalt, text inverts across it
   ========================================================================== */
.marquee {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, var(--paper) 50%, var(--asphalt) 50%);
  padding: 1.15rem 0;
  border-block: 2px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem;
  font: 800 clamp(1.1rem, 2vw, 1.5rem)/1 var(--f-display); letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap;
  color: #fff; mix-blend-mode: difference;
}
.marquee__list li::after { content: "✦"; font-size: .8em; }

/* ==========================================================================
   Worlds index
   ========================================================================== */
.worlds {
  padding-block: var(--section-pad);
  color: #efeaff;
  background:
    radial-gradient(600px 400px at 10% 10%, rgba(255,107,87,.18), transparent 60%),
    radial-gradient(600px 400px at 95% 90%, rgba(0,229,255,.14), transparent 60%),
    var(--indigo);
}
.worlds__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.worlds .lead { color: #cfc8e8; }
.worlds .lead strong { color: #fff; }

.world-cards { display: grid; gap: 1.25rem; }
.world-card a {
  position: relative; display: grid; gap: .35rem;
  padding: 1.6rem 1.75rem; border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.world-card__num { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.world-card__status {
  position: absolute; top: 1.4rem; right: 1.5rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px;
}
.world-card__status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.world-card__name { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; font-weight: 800; }
.world-card__desc { opacity: .85; }
.world-card__go {
  position: absolute; right: 1.5rem; bottom: 1.3rem;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; transition: translate .3s var(--ease-out);
}
.world-card a:hover .world-card__go { translate: 0 4px; }

.world-card--day a {
  background: var(--paper); color: var(--ink);
  background-image: var(--paper-tex);
  box-shadow: 8px 8px 0 var(--coral);
}
.world-card--day a:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 12px 12px 0 var(--coral); }
.world-card--day .world-card__name { font-family: var(--f-play); }
.world-card--day .world-card__status { color: #1f7a4a; background: #d9f2e2; }
.world-card--day .world-card__go { background: var(--ink); color: var(--paper); }

.world-card--night a {
  background: linear-gradient(135deg, #171c2b, var(--asphalt));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.35), 0 0 0 0 rgba(0,229,255,0);
}
.world-card--night a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--cyan), 0 18px 50px -14px rgba(0,229,255,.6); }
.world-card--night .world-card__name { font-family: var(--f-hud); text-transform: uppercase; color: var(--danfo); }
.world-card--night .world-card__num { font-family: var(--f-hud); color: var(--cyan); opacity: 1; }
.world-card--night .world-card__status { color: var(--danfo); background: rgba(245,166,35,.12); font-family: var(--f-hud); }
.world-card--night .world-card__go { background: var(--cyan); color: var(--asphalt); }

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

/* ==========================================================================
   Wonderwood (day)
   ========================================================================== */
.ww {
  position: relative;
  padding-block: calc(var(--section-pad) + 1rem) var(--section-pad);
  background-color: var(--paper);
  background-image: var(--paper-tex);
  color: var(--ink);
}
.torn { position: absolute; left: 0; width: 100%; height: 40px; fill: var(--paper); }
.torn--top { top: -39px; filter: drop-shadow(0 -3px 0 rgba(0,0,0,.08)); }

.ww__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ww__title {
  font: 800 clamp(3.2rem, 9vw, 7rem)/.9 var(--f-play);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: .04em .04em 0 var(--sun), .08em .08em 0 var(--coral);
}
.ww__tag { margin-top: 1.2rem; font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--f-play); color: var(--ink-soft); }

.ww__showcase {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.ww__frame {
  position: relative; background: #fff; padding: 12px 12px 3.2rem;
  rotate: -1.5deg;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 14px 16px 0 rgba(43,33,64,.1);
  transition: rotate .5s var(--ease-out);
}
.ww__frame:hover { rotate: 0deg; }
.ww__frame img { border-radius: 2px; }
.ww__frame figcaption {
  position: absolute; left: 0; right: 0; bottom: .85rem; text-align: center;
  font: 700 1.1rem/1 var(--f-play); color: var(--ink-soft);
}
.tape {
  position: absolute; top: -3.6rem; left: 50%; translate: -50% 0; rotate: -3deg;
  width: 120px; height: 30px;
  background: rgba(255, 201, 74, .65);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.ww__copy p { font-size: 1.15rem; line-height: 1.75; color: #3d3352; }
.ww__copy p + p { margin-top: 1rem; }
.ww__copy strong { color: var(--coral); }
.ww__copy .btn { margin-top: 2rem; }

.paper-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.paper-card {
  position: relative; padding: 1.7rem 1.6rem 1.6rem;
  background: #fff; border-radius: 8px;
  rotate: var(--tilt, 0deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 7px 9px 0 color-mix(in srgb, var(--c) 38%, transparent);
  transition: rotate .4s var(--ease-out), translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.paper-card:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 10px 14px 0 color-mix(in srgb, var(--c) 50%, transparent); }
.paper-card__badge {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem;
  border-radius: 50% 46% 52% 44%;
  background: var(--c); color: #fff;
  font: 800 1.35rem/1 var(--f-play);
  box-shadow: 3px 3px 0 rgba(43,33,64,.15);
}
.paper-card h3 { font: 800 1.35rem/1.15 var(--f-play); margin-bottom: .4rem; }
.paper-card p { color: var(--ink-soft); font-size: 1rem; }

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

/* ==========================================================================
   Dusk — scroll-driven sunset between the worlds
   Base styles = a static sunset (Firefox, reduced motion). Enhanced below.
   ========================================================================== */
.dusk { position: relative; height: 100vh; min-height: 560px; }
.dusk__stage { position: relative; height: 100%; overflow: hidden; }
.dusk__sky { position: absolute; inset: 0; }
.dusk__sky--day { background: linear-gradient(180deg, #bfe4f6, var(--paper)); opacity: 0; }
.dusk__sky--set { background: linear-gradient(180deg, #2c2160 0%, #8d3c84 35%, #e0576b 58%, #ff8a4c 76%, var(--sun) 100%); }
.dusk__sky--night { background: linear-gradient(180deg, #04060c 0%, #11162a 55%, #2a1b4d 100%); opacity: 0; }
.dusk__stars {
  position: absolute; inset: 0 0 40% 0; opacity: .35;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 150px 110px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 240px 60px, #ffe9b5 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 200px, #fff 50%, transparent 51%);
  background-size: 280px 240px;
}
.dusk__sun {
  position: absolute; left: 50%; top: 40%; translate: -50% 0;
  width: clamp(140px, 24vmin, 260px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff1b8, #ffb347 55%, #ff7a45);
  box-shadow: 0 0 120px 30px rgba(255,138,76,.45);
}
.dusk__city { position: absolute; left: 0; bottom: 0; width: 100%; height: 48%; }
.city-back { fill: #1a1430; }
.city-bridge { fill: #110d22; stroke: #110d22; stroke-width: 6; stroke-linejoin: round; }
.city-windows rect { fill: var(--danfo); filter: drop-shadow(0 0 4px var(--danfo)); }

.dusk__text {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 0 1.25rem 18vh; text-align: center;
}
.dusk__line { font: 800 clamp(2rem, 5.5vw, 4.5rem)/1.02 var(--f-display); letter-spacing: -0.035em; max-width: 16ch; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.dusk__line--2 span { color: var(--danfo); font-family: var(--f-hud); text-transform: uppercase; text-shadow: 0 0 24px rgba(245,166,35,.8); }

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
    .dusk { height: 280vh; view-timeline: --dusk block; }
    .dusk__stage { position: sticky; top: 0; height: 100vh; min-height: 560px; }
    .dusk__text { display: grid; place-items: center; }
    .dusk__line { grid-area: 1 / 1; }

    .dusk__sky--day,
    .dusk__sky--set,
    .dusk__sky--night,
    .dusk__stars,
    .dusk__sun,
    .dusk__city,
    .city-windows,
    .dusk__line--1,
    .dusk__line--2 {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-duration: auto;
      animation-timeline: --dusk;
      animation-range: contain 0% contain 100%;
    }
    .dusk__sky--day { animation-name: dk-day; }
    .dusk__sky--set { animation-name: dk-set; }
    .dusk__sky--night { animation-name: dk-night; }
    .dusk__stars { animation-name: dk-stars; }
    .dusk__sun { animation-name: dk-sun; }
    .dusk__city { animation-name: dk-city; }
    .city-windows { animation-name: dk-windows; }
    .dusk__line--1 { animation-name: dk-line1; color: var(--ink); text-shadow: none; }
    .dusk__line--2 { animation-name: dk-line2; }
  }
}
@keyframes dk-day { 0%, 10% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes dk-set { 0%, 10% { opacity: 0; } 40%, 55% { opacity: 1; } 85%, 100% { opacity: 1; } }
@keyframes dk-night { 0%, 50% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes dk-stars { 0%, 55% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes dk-sun { 0% { transform: translateY(-28vh); } 85%, 100% { transform: translateY(45vh); } }
@keyframes dk-city { 0%, 15% { transform: translateY(35%); } 55%, 100% { transform: translateY(0); } }
@keyframes dk-windows { 0%, 60% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes dk-line1 { 0%, 20% { opacity: 1; transform: none; color: var(--ink); } 30% { color: #fff; } 42%, 100% { opacity: 0; transform: translateY(-30px); color: #fff; } }
@keyframes dk-line2 { 0%, 52% { opacity: 0; transform: translateY(30px) scale(.96); } 70%, 100% { opacity: 1; transform: none; } }

/* ==========================================================================
   Lagos Racer (night)
   ========================================================================== */
.racer {
  position: relative;
  padding-block: var(--section-pad);
  color: var(--mist);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(42,27,77,.9), transparent 70%),
    linear-gradient(rgba(0,229,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(0,229,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--asphalt);
}
.racer__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.racer__title {
  font: 700 clamp(3.2rem, 10vw, 8rem)/.9 var(--f-hud);
  text-transform: uppercase; letter-spacing: -0.01em; color: #fff;
  font-style: italic;
}
.racer__title span { color: var(--danfo); text-shadow: 0 0 40px rgba(245,166,35,.45); }
.racer__tag { margin-top: 1.1rem; font: 500 clamp(1.05rem, 1.8vw, 1.35rem)/1.4 var(--f-hud); color: var(--mist); letter-spacing: .02em; }

/* HUD showcase */
.hud {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.3), 0 30px 80px -30px rgba(0,229,255,.45), 0 0 0 1px rgba(0,229,255,.25);
}
.hud img { width: 100%; }
.hud__overlay {
  position: absolute; inset: 0;
  display: grid;
  grid-template: "tl . tr" auto ". . ." 1fr "bl . br" auto / auto 1fr auto;
  padding: clamp(.9rem, 2.6vw, 2rem);
  font-family: var(--f-hud); color: #fff;
  background: linear-gradient(180deg, rgba(5,7,12,.55), transparent 26%, transparent 66%, rgba(5,7,12,.7));
}
.hud__tl { grid-area: tl; }
.hud__tr { grid-area: tr; text-align: right; }
.hud__bl { grid-area: bl; align-self: end; display: grid; gap: .4rem; }
.hud__br { grid-area: br; align-self: end; text-align: right; display: grid; justify-items: end; }
.hud__label { display: block; font-size: clamp(.6rem, 1vw, .78rem); font-weight: 700; letter-spacing: .22em; color: var(--cyan); }
.hud__big { font-size: clamp(1.4rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1; }
.hud__big small { font-size: .5em; color: var(--mist-dim); }
.hud__fuel { width: clamp(110px, 18vw, 220px); height: 10px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.hud__fuel span { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--brake), var(--danfo) 40%, #ffe08a); box-shadow: 0 0 12px var(--danfo); transform-origin: left; }
.hud__event { font-size: clamp(.6rem, 1vw, .78rem); font-weight: 700; letter-spacing: .14em; color: var(--asphalt); background: var(--danfo); padding: .3rem .55rem; border-radius: 3px; justify-self: start; }
.hud__speed { font-size: clamp(2rem, 6vw, 4.8rem); font-weight: 700; line-height: .9; font-style: italic; text-shadow: 0 0 20px rgba(0,229,255,.6); }
.hud__speed::after { content: "142"; }

@property --speed { syntax: "<integer>"; inherits: false; initial-value: 142; }

@media (max-width: 600px) { .hud__event { display: none; } }

.racer__intro { max-width: 70ch; margin: clamp(2.5rem, 5vw, 3.5rem) auto; text-align: center; }
.racer__intro p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; }
.racer__intro .btn { margin-top: 1.75rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.step {
  position: relative; padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08); border-top: 3px solid var(--accent);
  border-radius: 6px 6px 16px 16px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.step:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px var(--accent); }
.step__num { font: 700 2.6rem/1 var(--f-hud); color: var(--accent); text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 60%, transparent); }
.step h3 { margin: .8rem 0 .4rem; font: 700 1.6rem/1 var(--f-hud); text-transform: uppercase; color: #fff; letter-spacing: .03em; }
.step p { color: var(--mist); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.creatures { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.creatures__art { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(168,107,255,.35), 0 30px 70px -30px rgba(168,107,255,.6); }
.creatures__title { font: 700 clamp(1.6rem, 2.8vw, 2.2rem)/1.1 var(--f-hud); text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.creatures__copy p { line-height: 1.75; }
.triangle { width: min(320px, 100%); margin-top: 1.75rem; overflow: visible; }
.tri-edge { fill: none; stroke: #6e7891; stroke-width: 2; stroke-dasharray: 5 6; }
.tri-node circle { fill: color-mix(in srgb, var(--n) 16%, var(--asphalt)); stroke: var(--n); stroke-width: 2; filter: drop-shadow(0 0 8px var(--n)); }
.tri-node text { fill: var(--n); font: 700 11px var(--f-hud); text-anchor: middle; letter-spacing: .06em; }
.tri-beats { fill: var(--mist-dim); font: italic 500 12px var(--f-body); text-anchor: middle; }
@media (max-width: 900px) { .creatures { grid-template-columns: 1fr; } }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.spec { padding: 1.1rem 1.2rem; border-left: 2px solid var(--danfo); background: linear-gradient(90deg, rgba(245,166,35,.08), transparent); }
.spec__val { display: block; font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-hud); color: #fff; }
.spec__val small { font-size: .45em; color: var(--cyan); margin-left: .15em; }
.spec__lbl { display: block; margin-top: .4rem; font-size: .92rem; color: var(--mist-dim); }

.racer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem; text-align: center; }
.racer__note { color: var(--mist-dim); max-width: 42ch; }

/* ==========================================================================
   Studio
   ========================================================================== */
.studio {
  padding-block: var(--section-pad);
  background-color: var(--paper); background-image: var(--paper-tex);
  color: var(--ink);
}
.studio__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.rule {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 2rem 1.7rem; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transition: color .35s, box-shadow .35s var(--ease-out), translate .35s var(--ease-out);
}
.rule::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(0,229,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), #222a40, var(--asphalt) 70%);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path .6s var(--ease-out);
}
.rule:hover { color: var(--mist); translate: -2px -2px; box-shadow: 8px 8px 0 var(--danfo); }
.rule:hover::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.rule__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.2rem;
  border-radius: 14px; background: var(--paper-2); font-size: 1.4rem; color: var(--coral);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.rule:hover .rule__icon { background: rgba(0,229,255,.1); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(0,229,255,.45); }
.rule h3 { font: 800 1.45rem/1.1 var(--f-display); letter-spacing: -0.02em; margin-bottom: .55rem; transition: color .35s; }
.rule:hover h3 { color: var(--danfo); }
.rule p { font-size: 1rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding-block: var(--section-pad);
  color: #efeaff;
  background:
    radial-gradient(700px 500px at 0% 100%, rgba(255,107,87,.2), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(0,229,255,.16), transparent 60%),
    var(--indigo);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact .lead { color: #cfc8e8; }
.contact__channels { margin-top: 2rem; display: grid; gap: .9rem; }
.contact__channels li { display: grid; gap: .1rem; }
.contact__channels span { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist-dim); }
.contact__channels a { font: 700 1.3rem/1.3 var(--f-display); text-decoration: none; color: #fff; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease-out); justify-self: start; }
.contact__channels a:hover { background-size: 100% 2px; }

.form {
  display: grid; gap: 1.15rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 700; color: #ddd7f5; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: .9rem 1rem;
  border-radius: 12px; border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(5, 4, 15, .35); color: #fff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
  padding-right: 2.75rem;
}
.field select option { color: #111; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,229,255,.18); }
.field__err { display: none; font-size: .88rem; color: #ff9b8f; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #ff7b6b; background-color: rgba(229,57,53,.1); }
.field:has(:user-invalid) .field__err { display: block; }
.field input:user-valid,
.field textarea:user-valid { border-color: rgba(59,170,110,.8); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--split {
  position: relative; overflow: hidden; isolation: isolate;
  justify-content: center; padding-block: 1.1rem;
  background: #fff; color: var(--indigo); font-size: 1.05rem;
}
.btn--split::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--coral), var(--danfo) 50%, var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.btn--split:hover::before,
.btn--split:focus-visible::before { transform: scaleX(1); }
.btn--split:hover .btn__icon { translate: 4px 0; }
.btn__icon { transition: translate .3s var(--ease-out); }
.btn--split[disabled] { cursor: progress; opacity: .7; }

.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.is-ok { color: #7fe0a6; }
.form__status.is-err { color: #ff9b8f; }

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--asphalt); color: var(--mist-dim); padding: 3rem 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 2rem; }
.footer__brand { font: 800 1.6rem/1 var(--f-display); color: #fff; letter-spacing: -0.03em; }
.footer__line { color: var(--mist); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { text-decoration: none; color: var(--mist); }
.footer__links a:hover { color: var(--danfo); }
.footer__copy { grid-column: 1 / -1; font-size: .88rem; border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.25rem; margin-top: .5rem; }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion (only when the user hasn't asked for less)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .paper-sun::before { animation: spin 40s linear infinite; }
  .paper-cloud--1 { animation: drift 18s ease-in-out infinite alternate; }
  .paper-cloud--2 { animation: drift 24s ease-in-out infinite alternate-reverse; }
  .paper-cloud--3 { animation: drift 20s ease-in-out infinite alternate; }
  .stars { animation: twinkle 5s ease-in-out infinite alternate; }
  .road__plane { animation: drive .9s linear infinite; }
  .streak--1 { animation: oncoming 3.2s ease-in infinite; }
  .streak--2 { animation: oncoming 3.2s ease-in 1.1s infinite; }
  .streak--3 { animation: oncoming 3.2s ease-in 2.2s infinite; }
  .hero__mascot { animation: bob 6s ease-in-out infinite; }
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .hud__fuel span { animation: fuel 7s ease-in-out infinite; }
  .hud__speed { animation: speed 3.6s ease-in-out infinite alternate; }
  .hud__speed::after { counter-reset: kmh var(--speed); content: counter(kmh); }
  .hud__event { animation: pulse 2.4s ease-in-out infinite; }
  .world-card__status--live .dot { animation: pulse 2s ease-in-out infinite; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes spin { to { rotate: 360deg; } }
@keyframes drift { from { translate: -20px 0; } to { translate: 40px 0; } }
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
@keyframes drive { from { transform: rotateX(64deg) translateY(0); } to { transform: rotateX(64deg) translateY(140px); } }
@keyframes oncoming {
  0% { opacity: 0; transform: translate(0, 0) scale(.2); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(14vw, 34vh) scale(2.2); }
}
@keyframes bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fuel { 0% { transform: scaleX(.9); } 55% { transform: scaleX(.18); } 70% { transform: scaleX(.18); } 85% { transform: scaleX(.95); } 100% { transform: scaleX(.9); } }
@keyframes speed { from { --speed: 96; } to { --speed: 168; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes reveal { from { opacity: 0; translate: 0 48px; } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: .6rem; }
}
