/* Wickling | wickling.site */

:root {
  --bg: #07071a;
  --bg-2: #0b0b24;
  --bg-3: #13133a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f1edff;
  --muted: #aeaad0;
  --dim: #77739e;
  --flame: #ffb347;
  --flame-hot: #ff7a1a;
  --flame-core: #fff1c2;
  --echo: #7fd8ff;
  --echo-deep: #3a9dff;
  --wax: #f6e3c4;
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient light behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 88% 8%, rgba(96, 70, 210, .16), transparent 70%),
    radial-gradient(50vw 50vh at 6% 62%, rgba(40, 120, 230, .09), transparent 70%),
    radial-gradient(70vw 60vh at 50% 112%, rgba(255, 140, 60, .07), transparent 70%);
}

/* Film grain for a soft, cinematic finish */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
::selection { background: rgba(255, 179, 71, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--echo);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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 {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--flame);
  color: #2b1405;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 14px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}

h2 em, .hero__tagline {
  font-style: italic;
}

h2 em {
  padding-right: .08em;
  background: linear-gradient(100deg, var(--flame-core) 0%, var(--flame) 45%, var(--flame-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 em.em-echo {
  background-image: linear-gradient(100deg, #eafcff 0%, var(--echo) 45%, var(--echo-deep) 100%);
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--flame);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(var(--flame-core), var(--flame-hot));
  box-shadow: 0 0 12px var(--flame);
}

.eyebrow--echo { color: var(--echo); }
.eyebrow--echo::before {
  background: linear-gradient(#eafcff, var(--echo-deep));
  box-shadow: 0 0 12px var(--echo);
}

/* ---------- Buttons ---------- */

.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--h);
  padding: 0 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, border-color .35s, color .35s;
}

.btn--flame {
  color: #2b1405;
  background: linear-gradient(135deg, #ffd877 0%, #ffae45 48%, #ff7c22 100%);
  box-shadow: 0 14px 36px -14px rgba(255, 130, 40, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--flame:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -14px rgba(255, 140, 50, 1), 0 0 0 5px rgba(255, 179, 71, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 216, 255, .55);
  box-shadow: 0 0 0 5px rgba(127, 216, 255, .07), 0 12px 32px -14px rgba(127, 216, 255, .55);
}

.btn--small { --h: 42px; padding: 0 1.25em; font-size: .9rem; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}

.nav.is-scrolled, .nav.is-open {
  background: rgba(8, 8, 28, .74);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; margin-top: -4px; }
.brand__word { width: auto; height: 26px; color: var(--text); overflow: visible; }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  position: relative;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 125%, rgba(98, 60, 190, .38), transparent 60%),
    radial-gradient(70% 60% at 72% 42%, rgba(255, 150, 70, .07), transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.hero__title { margin: 26px 0 14px; line-height: 0; }

.hero__word {
  width: min(520px, 100%);
  height: auto;
  color: var(--text);
  overflow: visible;
  filter: drop-shadow(0 0 30px rgba(255, 180, 90, .14));
}

.hero__tagline {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--wax);
  font-variation-settings: "SOFT" 100;
}

.hero__lede {
  max-width: 34rem;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art {
  position: relative;
  justify-self: center;
  width: min(520px, 100%);
  aspect-ratio: 1;
}

.hero__art::before, .hero__art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}
.hero__art::before { inset: 4%; }
.hero__art::after {
  inset: -8%;
  border-style: dashed;
  border-color: rgba(127, 216, 255, .09);
  animation: spin 80s linear infinite;
}

.hero__halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 58% 36%, rgba(255, 170, 80, .26), transparent 62%);
  filter: blur(24px);
  animation: halo 5s ease-in-out infinite;
}

.wk { position: relative; width: 100%; height: 100%; overflow: visible; }

.wk-bob { animation: bob 4.5s ease-in-out infinite; }
.wk-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 2.4s ease-in-out infinite;
}
.wk-flame--echo { animation-delay: -1.1s; }
.wk-echo { animation: echo 6s ease-in-out infinite; }
.wk-eyes {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: blink 5.5s infinite;
}
.wk-glow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: glow 3.2s ease-in-out infinite;
}
.wk-glow--echo { animation-delay: -1.6s; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 1;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--flame);
  box-shadow: 0 0 10px var(--flame);
  animation: scrollcue 2s var(--ease) infinite;
}

/* Hero entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.rise--1 { animation-delay: .1s; }
.rise--2 { animation-delay: .22s; }
.rise--3 { animation-delay: .36s; }
.rise--4 { animation-delay: .5s; }
.rise--5 { animation-delay: .64s; }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section--tight { padding: clamp(80px, 9vw, 120px) 0; }

.section__head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 76px); }
.section__head h2 { margin: 20px 0 24px; }

.section__lede { max-width: 640px; color: var(--muted); font-size: 1.12rem; }

/* ---------- Feature cards ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  --spot: rgba(255, 180, 90, .13);
  position: relative;
  padding: 34px 30px 34px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.card--echo { --spot: rgba(127, 216, 255, .13); }

.card::before, .world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 62%);
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.card h3 { margin: 28px 0 10px; font-size: 1.28rem; }
.card p { color: var(--muted); }

.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.icon svg { width: 30px; height: 30px; }
.icon--flame { color: var(--flame); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 34px -10px rgba(255, 179, 71, .6); }
.icon--echo { color: var(--echo); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 34px -10px rgba(127, 216, 255, .6); }

/* ---------- Echo demo ---------- */

.section--echo::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(50% 60% at 75% 50%, rgba(58, 157, 255, .1), transparent 70%);
  pointer-events: none;
}

.echo {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.echo h2 { margin: 20px 0 0; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.steps__n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--echo);
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); }

.echo__demo {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0d0d2a, #07071a);
  box-shadow: 0 50px 110px -50px rgba(58, 157, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.echo__demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.echo__demo figcaption {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 7, 26, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 10px #ff5d5d;
  animation: pulse 1.2s ease-in-out infinite;
}
.echo__demo[data-phase="echo"] .rec-dot { background: var(--echo); box-shadow: 0 0 10px var(--echo); }
.echo__demo[data-phase="done"] .rec-dot { background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: none; }

/* ---------- Worlds ---------- */

.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.worlds:focus-visible { outline-offset: 8px; }

.world {
  --c: #ffb347;
  --bg1: #2a1408;
  --spot: color-mix(in srgb, var(--c) 22%, transparent);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 24px 22px 26px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg1) 0%, #0b0a1e 78%);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.world::before {
  content: "";
  position: absolute;
  inset: -25% -25% auto;
  height: 75%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 42%, transparent), transparent);
  opacity: .5;
  transition: opacity .5s;
}
.world:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 34px 70px -34px color-mix(in srgb, var(--c) 75%, transparent);
}
.world:hover::before { opacity: .9; }
.world:hover::after { opacity: 1; }

.world__art { flex: 1; display: grid; place-items: center; min-height: 190px; }
.world__art svg {
  width: 96px;
  height: 96px;
  color: var(--c);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 70%, transparent));
  transition: transform .6s var(--ease);
}
.world:hover .world__art svg { transform: translateY(-6px) scale(1.04); }

.world__n { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--c); }
.world h3 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 100;
}
.world p { color: var(--muted); font-size: .95rem; line-height: 1.55; }

.world--ember   { --c: #ff9a4a; --bg1: #3a1707; }
.world--crystal { --c: #a98bff; --bg1: #1e1352; }
.world--sky     { --c: #8fd3ff; --bg1: #10304d; }
.world--garden  { --c: #5fe3b5; --bg1: #0a3633; }
.world--lantern { --c: #ffd36b; --bg1: #3a2706; }

/* ---------- Controls ---------- */

.controls {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}
.controls h2 { margin: 20px 0 22px; }

.pad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pad li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.pad kbd {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #24244e, #121232);
  box-shadow: 0 4px 0 #04040e, inset 0 1px 0 rgba(255, 255, 255, .14);
  font: 700 .92rem/1 var(--font-body);
  letter-spacing: .02em;
  color: var(--text);
}
.pad span { color: var(--muted); font-weight: 500; }
.pad .is-echo kbd { color: var(--echo); border-color: rgba(127, 216, 255, .45); box-shadow: 0 4px 0 #04040e, 0 0 24px -6px rgba(127, 216, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }
.pad .is-flame kbd { color: var(--flame); border-color: rgba(255, 179, 71, .45); box-shadow: 0 4px 0 #04040e, 0 0 24px -6px rgba(255, 179, 71, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }

/* ---------- About ---------- */

.section--about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
}
.about__intro h2 { margin: 20px 0 8px; }
.about__intro p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.08rem; }
.about__intro strong { color: var(--text); font-weight: 600; }

.stats { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 40px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  font-variation-settings: "SOFT" 100;
  background: linear-gradient(180deg, var(--flame-core), var(--flame));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats dt {
  margin-top: 8px;
  color: var(--dim);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pillars { display: grid; gap: 16px; padding-top: 8px; }
.pillar {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--flame);
  background: rgba(255, 179, 71, .08);
  border: 1px solid rgba(255, 179, 71, .22);
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 4px; font-size: 1.05rem; }
.pillar p { color: var(--muted); font-size: .96rem; }

.roadmap {
  grid-column: 1 / -1;
  margin-top: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.roadmap__title {
  margin-bottom: 34px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variation-settings: "SOFT" 100;
}
.roadmap ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.roadmap ol::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--flame) 0%, var(--echo) 26%, rgba(255, 255, 255, .1) 38%);
}
.roadmap li { position: relative; padding-top: 40px; }
.roadmap li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2);
  background: var(--bg-3);
}
.roadmap .is-done::before { border-color: var(--flame); background: var(--flame); box-shadow: 0 0 18px var(--flame); }
.roadmap .is-next::before { border-color: var(--echo); background: var(--bg); animation: ring 2.2s ease-out infinite; }
.roadmap__when {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.roadmap .is-done .roadmap__when { color: var(--flame); }
.roadmap .is-next .roadmap__when { color: var(--echo); }
.roadmap strong { display: block; margin-bottom: 4px; font-weight: 700; }
.roadmap li p { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Finale ---------- */

.finale {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 180px) 0;
  text-align: center;
}
.finale::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 130vw;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 150, 60, .2), transparent);
  pointer-events: none;
}
.finale__inner { position: relative; }
.finale__mark { width: 148px; height: 148px; margin: 0 auto 26px; animation: bob 4.5s ease-in-out infinite; }
.finale h2 { margin-bottom: 20px; }
.finale p { max-width: 520px; margin: 0 auto 36px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer .brand { margin-right: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { color: var(--muted); font-size: .94rem; text-decoration: none; transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__legal {
  flex-basis: 100%;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .82rem;
  line-height: 1.7;
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px var(--gutter);
  text-align: center;
}
.lost img { width: 150px; height: 150px; margin: 0 auto 26px; animation: bob 4.5s ease-in-out infinite; }
.lost h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
.lost p { max-width: 420px; margin: 18px auto 32px; color: var(--muted); }

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.features .card:nth-child(2), .pillars .pillar:nth-child(2), .worlds .world:nth-child(2) { --d: .1s; }
.features .card:nth-child(3), .pillars .pillar:nth-child(3), .worlds .world:nth-child(3) { --d: .2s; }
.worlds .world:nth-child(4) { --d: .3s; }
.worlds .world:nth-child(5) { --d: .4s; }
.echo__demo.reveal, .pad.reveal { --d: .15s; }

/* ---------- Animations ---------- */

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  20% { transform: scale(.95, 1.06) skewX(-3deg); }
  45% { transform: scale(1.03, .97) skewX(2deg); }
  70% { transform: scale(.97, 1.04) skewX(-1deg); }
}
@keyframes echo { 0%, 100% { transform: translateX(0); opacity: .8; } 50% { transform: translateX(-6px); opacity: 1; } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes glow { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes halo { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(127, 216, 255, .55), 0 0 16px var(--echo); }
  100% { box-shadow: 0 0 0 12px rgba(127, 216, 255, 0), 0 0 16px var(--echo); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .worlds {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 18px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
  }
  .world { scroll-snap-align: start; }
}

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero__art { order: -1; width: min(330px, 74vw); }
  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__word { margin: 0 auto; width: min(440px, 88%); }
  .features { grid-template-columns: 1fr; max-width: 640px; }
  .echo, .controls, .about { grid-template-columns: 1fr; }
  .echo__demo { max-width: 680px; }
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 22px;
    background: rgba(8, 8, 28, .97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 15px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .roadmap ol { grid-template-columns: 1fr; gap: 26px; }
  .roadmap ol::before {
    top: 10px;
    bottom: 10px;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--flame) 0%, var(--echo) 26%, rgba(255, 255, 255, .1) 38%);
  }
  .roadmap li { padding: 0 0 0 42px; }
  .pad { grid-template-columns: repeat(2, 1fr); }
  .pillar { grid-template-columns: 1fr; gap: 14px; }
  .stats { gap: 18px 32px; }
  .echo__demo { border-radius: 22px; }
}

@media (max-width: 440px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .brand__word { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .rise { opacity: 1; transform: none; }
}
