/* ==========================================================================
   Abdullah Jawed — personal site
   Dark editorial base; Larpie's chapter re-tints the page per world.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

/* ---------- Animatable theme colours ---------- */
@property --bg      { syntax: "<color>"; inherits: true; initial-value: #08080a; }
@property --fg      { syntax: "<color>"; inherits: true; initial-value: #f3f1ec; }
@property --muted   { syntax: "<color>"; inherits: true; initial-value: #a4a29c; }
@property --line    { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .1); }
@property --line-2  { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .16); }
@property --surface { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .035); }
@property --accent  { syntax: "<color>"; inherits: true; initial-value: #c6f432; }
@property --accent-ink { syntax: "<color>"; inherits: true; initial-value: #0b0b0c; }

:root {
  --lime: #c6f432;
  --lime-soft: #e4ff8f;
  --ember: #ff6a3d;
  --ink: #08080a;
  --paper: #f3f1ec;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-play: "Fredoka", "Geist", ui-rounded, system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1360px;
  /* viewport-fit=cover lets the page run under a phone's notch in landscape, so the
     gutter never gets narrower than the safe area (iOS reports both sides equally). */
  --gutter: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section-pad: clamp(5.5rem, 12vw, 11rem);
  --nav-h: 76px;
}

body {
  --bg: #08080a;
  --fg: #f3f1ec;
  --muted: #a4a29c;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --surface: rgba(255, 255, 255, .035);
  --accent: #c6f432;
  --accent-ink: #0b0b0c;
}
/* Larpie's worlds. Each mirrors the in-game palette; text contrast is AA or better. */
body[data-theme="farm"]   { --bg: #bfe3f3; --fg: #22160e; --muted: #4e4034; --line: rgba(34, 22, 14, .14); --line-2: rgba(34, 22, 14, .24); --surface: rgba(255, 255, 255, .46); --accent: #c43a22; --accent-ink: #fff; }
body[data-theme="town"]   { --bg: #f6c9b3; --fg: #2a160f; --muted: #5d3b2e; --line: rgba(42, 22, 15, .14); --line-2: rgba(42, 22, 15, .24); --surface: rgba(255, 255, 255, .42); --accent: #b5371f; --accent-ink: #fff; }
body[data-theme="clouds"] { --bg: #cecaf2; --fg: #1d1838; --muted: #463f6c; --line: rgba(29, 24, 56, .14); --line-2: rgba(29, 24, 56, .24); --surface: rgba(255, 255, 255, .46); --accent: #4b3bc4; --accent-ink: #fff; }
body[data-theme="space"]  { --bg: #0c0f2e; --fg: #f2f0ff; --muted: #b4b1d9; --line: rgba(242, 240, 255, .12); --line-2: rgba(242, 240, 255, .2); --surface: rgba(255, 255, 255, .06); --accent: #f6c744; --accent-ink: #141414; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; color-scheme: dark; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  transition: --bg .9s var(--ease-out), --fg .9s var(--ease-out), --muted .9s var(--ease-out),
              --line .9s var(--ease-out), --line-2 .9s var(--ease-out), --surface .9s var(--ease-out),
              --accent .9s var(--ease-out), --accent-ink .9s var(--ease-out);
}
img, picture, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
input, textarea { font: inherit; }
em { font-style: italic; }
::selection { background: var(--lime); color: #0b0b0c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* Film grain over everything: static, so it costs nothing per frame. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Belt and braces: nothing inside the page can widen it sideways. `clip`, unlike `hidden`,
   does not make a scroll container, so the sticky Larpie banner keeps working. */
main { overflow-x: clip; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-pad); }
.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; }
.muted { color: var(--muted); }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1rem; border-radius: 10px;
  background: var(--lime); color: #0b0b0c; font-weight: 600;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* ---------- Type primitives ---------- */
.label {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 450;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.label__num { color: var(--accent); letter-spacing: .08em; }

.statement {
  margin-top: 1.75rem;
  font-size: clamp(2rem, 5.1vw, 5.3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 500;
  max-width: 21ch;
  text-wrap: balance;
}
/* .38 keeps unlit words above 3:1 against the background: AA for large text. */
.js [data-lit] .w { opacity: .38; transition: opacity .35s linear; }
.js [data-lit] .w.is-on { opacity: 1; }

.lead { font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.3; letter-spacing: -.028em; font-weight: 450; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 54px; padding: 0 1.5rem;
  border-radius: 999px;
  font-size: .97rem; font-weight: 550; letter-spacing: -.01em; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .6s var(--ease-out), color .45s var(--ease-out), background-color .35s, box-shadow .35s;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  transform: translateY(102%); transition: transform .6s var(--ease-out);
}
@media (hover: hover) { .btn:hover::before { transform: translateY(0); } }
.btn .icon { transition: transform .6s var(--ease-out); }
@media (hover: hover) { .btn:hover .icon { transform: translateX(3px); } }
@media (hover: hover) { .btn:hover .icon path[d^="M12 5"] { transform: translateY(2px); } }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary::before { background: var(--fg); }
@media (hover: hover) { .btn--primary:hover { color: var(--bg); } }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
@media (hover: hover) { .btn--ghost:hover { color: var(--bg); box-shadow: none; } }
.btn--sm { height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.btn--lg { height: 60px; padding: 0 1.9rem; font-size: 1.02rem; }

/* ---------- Pills, dots, chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
}
.status-dot, .live-dot, .soon-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status-dot, .live-dot { background: #5ee36a; }
.soon-dot { background: #ffb547; }
.status-dot::after, .live-dot::after, .soon-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips li {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em;
  padding: .5rem .8rem; border-radius: 999px;
  color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2);
}
.chips--sm { margin-top: 1.1rem; }
.chips--sm li { font-size: .68rem; padding: .4rem .65rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
  transition: transform .7s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-130%); }
.nav__inner {
  pointer-events: auto;
  max-width: calc(var(--container) + 2rem); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  height: 60px; padding: 0 9px 0 12px;
  border-radius: 999px;
  transition: background-color .5s, box-shadow .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(10, 10, 12, .6);
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 40px -20px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .98rem; letter-spacing: -.02em; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--lime); color: #0b0b0c;
  transition: transform .6s var(--spring);
}
.brand__mark svg { width: 100%; height: 100%; fill: currentColor; }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); } }
.nav__links { margin-left: auto; display: flex; gap: .15rem; }
.nav__links a {
  position: relative; padding: .55rem .95rem; border-radius: 999px;
  font-size: .92rem; color: var(--muted);
  transition: color .3s, background-color .3s;
}
@media (hover: hover) { .nav__links a:hover { color: var(--fg); } }
.nav__links a.is-active { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: .7rem;
  height: 44px; padding: 0 .55rem 0 1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.menu-btn__lines { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--fg); }
.menu-btn__lines i {
  position: absolute; left: 9px; right: 9px; height: 1.6px; border-radius: 2px; background: var(--bg);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-btn__lines i:first-child { top: 12px; }
.menu-btn__lines i:last-child { top: 17px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 14.2px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 14.2px; transform: rotate(-45deg); }

/* While the menu is open the nav sits on the dark overlay, whatever the page theme. */
.nav.menu-open { --fg: #f3f1ec; --bg: #08080a; --muted: #a4a29c; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18); color: #f3f1ec; }
.nav.menu-open .nav__inner { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  background: #08080a; color: #f3f1ec;
  clip-path: circle(0% at calc(100% - 46px) 44px);
  transition: clip-path .75s var(--ease-in-out);
  overflow-y: auto; overscroll-behavior: contain;
}
/* `display: flex` above beats the `hidden` attribute, which would leave the closed menu's
   links in the tab order and the screen-reader tree. `visibility` removes them from both
   without a layout change: taking the menu (a scroll container) out of layout mid-way
   through the smooth scroll to a menu link makes Safari stop that scroll short. */
.menu[hidden] { visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 46px) 44px); }
/* Without JavaScript the menu can't open, so don't offer the button. */
.no-js .menu-btn { display: none; }
.menu__glow {
  position: absolute; width: 120vw; height: 120vw; right: -60vw; bottom: -70vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(198, 244, 50, .18), transparent);
  pointer-events: none;
}
.menu__nav ol { display: grid; gap: .2rem; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(2.3rem, 10.5vw, 4.4rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 500;
  padding: .15rem 0;
}
.menu__num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--lime); transform: translateY(-.4em); }
.menu__nav li { overflow: hidden; }
.menu__nav li a { transform: translateY(105%); transition: transform .8s var(--ease-out); }
.menu.is-open .menu__nav li a { transform: none; }
.menu.is-open .menu__nav li:nth-child(1) a { transition-delay: .18s; }
.menu.is-open .menu__nav li:nth-child(2) a { transition-delay: .23s; }
.menu.is-open .menu__nav li:nth-child(3) a { transition-delay: .28s; }
.menu.is-open .menu__nav li:nth-child(4) a { transition-delay: .33s; }
.menu.is-open .menu__nav li:nth-child(5) a { transition-delay: .38s; }
.menu.is-open .menu__nav li:nth-child(6) a { transition-delay: .43s; }
.menu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; color: #a4a29c; opacity: 0; transition: opacity .6s .45s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot a { padding: .55rem 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 78% 68%, rgba(122, 196, 58, .32), transparent 70%),
    radial-gradient(35% 40% at 92% 22%, rgba(24, 120, 84, .3), transparent 70%),
    radial-gradient(40% 45% at 8% 92%, rgba(255, 106, 61, .16), transparent 70%),
    #060607;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero__gl.is-on { opacity: 1; }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, .5) 0%, transparent 26%, transparent 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6, 6, 7, .55) 0%, transparent 55%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 5.5rem); align-items: end;
  padding-bottom: clamp(2.25rem, 6vh, 4.5rem);
}
.hero__eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: .7rem;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.4rem);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
.hero__eyebrow > span:nth-child(2) { color: var(--fg); }
.hero__eyebrow-sep { opacity: .4; }
.hero__title {
  font-size: clamp(3.15rem, 8.4vw, 9.6rem);
  line-height: .92; letter-spacing: -.058em; font-weight: 500;
}
.hero__title .line, .contact__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line__in, .contact__title .line__in { display: block; }
.js .hero__title .line__in { transform: translateY(112%); transition: transform 1.25s var(--ease-out); }
.js .hero__title .line:nth-child(2) .line__in { transition-delay: .09s; }
.js .hero__title .line:nth-child(3) .line__in { transition-delay: .18s; }
.js.is-ready .hero__title .line__in { transform: none; }
.hero__play {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.025em;
  padding-right: .06em;
  background: linear-gradient(100deg, var(--lime) 20%, #f4ffd0 45%, var(--lime) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s var(--ease-in-out) infinite;
}
@keyframes shimmer { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: -50% 0; } }
.hero__lede { margin-top: clamp(1.4rem, 3vh, 2.1rem); max-width: 38ch; font-size: clamp(1.05rem, 1.35vw, 1.28rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hero__actions { margin-top: clamp(1.6rem, 3.5vh, 2.4rem); display: flex; flex-wrap: wrap; gap: .75rem; }

.js .intro { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms + 120ms); }
.js.is-ready .intro { opacity: 1; transform: none; }

.hero__foot { display: flex; align-items: center; gap: .75rem; padding-bottom: clamp(1.25rem, 3vh, 2rem); }
.venture-chip {
  display: flex; align-items: center; gap: .8rem;
  padding: .5rem 1rem .5rem .5rem; border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .35s, box-shadow .35s, transform .6s var(--ease-out);
}
@media (hover: hover) { .venture-chip:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); } }
.venture-chip__icon { width: 42px; height: 42px; border-radius: 12px; }
.venture-chip__text { display: grid; gap: .1rem; }
.venture-chip strong { font-size: .95rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.venture-chip__text > span { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--muted); }
.venture-chip__arrow { margin-left: .4rem; color: var(--muted); transition: transform .5s var(--ease-out); }
@media (hover: hover) { .venture-chip:hover .venture-chip__arrow { transform: translateY(3px); color: var(--fg); } }
.scroll-cue { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--fg); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- Hero console (Sapling demo) ---------- */
.hero__demo { justify-self: end; width: 100%; max-width: 440px; perspective: 1200px; }
.console {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden;
  border-radius: 22px;
  color: #f3f1ec;
  background: linear-gradient(180deg, rgba(30, 32, 36, .62), rgba(12, 13, 15, .74));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08), 0 50px 90px -40px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .8s var(--ease-out);
}
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 70%) var(--gy, 0%), rgba(198, 244, 50, .13), transparent 45%);
}
.console__bar {
  position: relative; display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-mono); font-size: .68rem; color: #a4a29c; letter-spacing: .04em;
}
.console__dots { display: flex; gap: 5px; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.console__title { display: flex; align-items: center; gap: .45rem; min-width: 0; overflow: hidden; white-space: nowrap; }
.console__leaf { flex: none; }
.console__leaf { width: 15px; height: 15px; }
.console__live { flex: none; white-space: nowrap; margin-left: auto; display: flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .14em; font-size: .6rem; color: var(--lime); }
.console__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink-soft 1.6s ease-in-out infinite; }
@keyframes blink-soft { 50% { opacity: .35; } }
.console__body { position: relative; padding: 1.1rem 1.1rem 1rem; }
.console__label { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: #7d7b75; margin-bottom: .45rem; }
.console__prompt { min-height: 2.9em; font-size: 1.04rem; line-height: 1.42; letter-spacing: -.012em; color: #f3f1ec; }
.console__caret { display: inline-block; width: 2px; height: 1.08em; margin-left: 2px; vertical-align: -.17em; background: var(--lime); animation: caret 1s steps(1) infinite; }
.console[data-state="done"] .console__caret, .console[data-state="building"] .console__caret { opacity: 0; animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.console__pipeline { margin-top: 1rem; }
.console__stages { display: flex; gap: .35rem; }
.console__stages li {
  flex: 1; text-align: center; padding: .48rem 0; border-radius: 9px;
  font-family: var(--font-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  color: #6e6c67; background: rgba(255, 255, 255, .04);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.console__stages li.is-active { color: #f3f1ec; background: rgba(198, 244, 50, .1); box-shadow: inset 0 0 0 1px rgba(198, 244, 50, .55); }
.console__stages li.is-done { color: #0b0b0c; background: var(--lime); }
.console__meter { height: 2px; margin-top: .6rem; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.console__meter span { display: block; height: 100%; background: linear-gradient(90deg, #8fd14f, var(--lime)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .55s var(--ease-out); }
.console__result { position: relative; margin-top: 1rem; perspective: 900px; }
.js .console__result::before {
  content: "Your game grows here"; position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; border-radius: 14px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #6e6c67;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%) 0 0 / 260% 100% no-repeat, rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  animation: skeleton 2.2s linear infinite;
  transition: opacity .5s var(--ease-out);
}
.js .console[data-state="building"] .console__result::before { content: "Growing your game…"; color: var(--lime); animation-duration: 1.1s; }
.js .console[data-state="done"] .console__result::before { opacity: 0; animation: none; }
@keyframes skeleton { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
.game-card {
  position: relative; z-index: 1;
  border-radius: 14px; overflow: hidden; background: #111214;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 100%;
  transition: opacity .7s var(--ease-out), transform 1s var(--ease-out), filter .7s var(--ease-out);
}
.js .console:not([data-state="done"]) .game-card { opacity: .0; transform: translateY(16px) rotateX(16deg) scale(.96); filter: blur(8px); }
.game-card__media { position: relative; aspect-ratio: 480 / 286; overflow: hidden; background: #16181b; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }
.game-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.game-card__meta { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; }
.game-card__tag { font-family: var(--font-mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; color: #a4a29c; padding: .28rem .45rem; border-radius: 6px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.game-card__name { font-size: .95rem; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card__play { margin-left: auto; display: flex; align-items: center; gap: .3rem; padding: .38rem .7rem; border-radius: 999px; background: var(--lime); color: #0b0b0c; font-size: .74rem; font-weight: 650; }
.game-card__play svg { width: 11px; height: 11px; fill: currentColor; }
.console__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem .7rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.console__motto { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: #d6d3cb; }
.console__next { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; font-size: .78rem; color: #f3f1ec; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .3s; min-height: 36px; }
@media (hover: hover) { .console__next:hover { background: rgba(255, 255, 255, .09); } }
.console__next .icon { transition: transform .5s var(--ease-out); }
@media (hover: hover) { .console__next:hover .icon { transform: translateX(3px); } }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: clamp(.9rem, 2vw, 1.4rem) 0; white-space: nowrap; }
.ticker__track {
  display: inline-flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); padding-right: clamp(1.25rem, 2.6vw, 2.5rem);
  font-size: clamp(1.45rem, 3.1vw, 2.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
  animation: marquee var(--dur, 40s) linear infinite;
  will-change: transform;
}
.ticker em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; color: var(--muted); }
.ticker b { font-weight: 400; font-size: .55em; color: var(--accent); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   Chapters (ventures)
   ========================================================================== */
.ventures-intro { padding-bottom: clamp(3rem, 6vw, 5rem); }
.chapter { position: relative; isolation: isolate; padding-block: clamp(3rem, 6vw, 5rem) var(--section-pad); }
.chapter__head { position: relative; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.chapter__kicker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(.5rem, 2vw, 1.5rem); }
.chapter__title {
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem);
  font-size: clamp(3.4rem, 10.5vw, 10.5rem); line-height: .9; letter-spacing: -.065em; font-weight: 500;
}
.chapter__logo img { width: clamp(58px, 9.5vw, 140px); filter: drop-shadow(0 0 28px rgba(140, 230, 70, .5)); animation: float 7s var(--ease-in-out) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6%) rotate(-3deg); } }
.chapter__title-ai { color: var(--lime); }
.chapter__tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.meta > div { padding-top: 1.1rem; }
.meta dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.meta dd { font-size: 1.02rem; font-weight: 500; letter-spacing: -.015em; }
.chapter__intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; margin-top: clamp(3rem, 7vw, 6rem); }
.chapter__aside > p { color: var(--muted); line-height: 1.65; max-width: 44ch; padding-top: .45rem; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.6rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  height: 54px; padding: 0 1.15rem 0 .95rem; border-radius: 15px;
  background: #f3f1ec; color: #0b0b0c;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
@media (hover: hover) { .store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(198, 244, 50, .55); } }
.store-btn__logo { width: 24px; height: 24px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.04rem; font-weight: 650; letter-spacing: -.015em; }
.store-btn small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; opacity: .65; margin-bottom: .1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .2rem; font-weight: 500; border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
@media (hover: hover) { .link-arrow:hover { color: var(--accent); border-color: currentColor; } }
.link-arrow .icon { transition: transform .5s var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translate(2px, -2px); } }

.subhead { display: grid; gap: 1rem; margin: clamp(5rem, 11vw, 9.5rem) 0 clamp(2rem, 4vw, 3.25rem); }
.subhead__title, .covers__title { font-size: clamp(2.05rem, 4.5vw, 4.1rem); line-height: 1.02; letter-spacing: -.048em; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.subhead__title em, .covers__title em, .section__title em, .contact__title em, .pullquote em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; color: var(--accent); }

/* ---------- Sapling ---------- */
.chapter--sapling { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.chapter--sapling .chapter__glow {
  position: absolute; inset: 0 0 auto; height: min(1100px, 140vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 14% 18%, rgba(120, 210, 60, .16), transparent 70%),
    radial-gradient(35% 45% at 88% 8%, rgba(30, 150, 100, .13), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
}

.gallery {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-block: 1.5rem 2.5rem;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery.is-dragging * { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .gallery { cursor: grab; } }
.gallery__track {
  display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.gallery__item {
  --ry: 0deg; --s: 1;
  flex: none; width: min(68vw, 300px); aspect-ratio: 2 / 3;
  scroll-snap-align: center;
  border-radius: 24px; overflow: hidden; background: #0d1a13;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 70px -35px rgba(0, 0, 0, .9);
  transform: perspective(1300px) rotateY(var(--ry)) scale(var(--s));
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

.pullquote { margin-top: clamp(4rem, 9vw, 8rem); text-align: center; }
.pullquote p { font-family: var(--font-serif); font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -.025em; max-width: 17ch; margin-inline: auto; text-wrap: balance; }
.pullquote footer { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.step { padding: 2rem clamp(1rem, 3vw, 2.5rem) 0 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 2.5rem); }
.step__num { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); }
.step__title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -.045em; font-weight: 500; line-height: 1; margin: 1.4rem 0 .9rem; }
.step p { color: var(--muted); max-width: 34ch; line-height: 1.6; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 300px; padding: clamp(1.4rem, 2.4vw, 2.1rem);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: inset 0 0 0 1px var(--line);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(198, 244, 50, .1), transparent 45%);
}
@media (hover: hover) { .card:hover::before { opacity: 1; } }
.card--wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.card__title { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 550; letter-spacing: -.03em; line-height: 1.15; }
.card p { color: var(--muted); line-height: 1.6; font-size: .98rem; max-width: 46ch; }
.card__text { display: grid; gap: .9rem; }
.card > :last-child:not(p):not(.card__text) { margin-top: auto; }

.pipeline { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding-block: 1rem; }
.pipeline::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(198, 244, 50, .1), rgba(198, 244, 50, .55), rgba(198, 244, 50, .1)); }
.pipeline::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; top: calc(50% - 1px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent 0 46%, var(--lime) 50%, transparent 54% 100%);
  background-size: 220% 100%; animation: travel 2.8s linear infinite; filter: blur(.5px);
}
@keyframes travel { from { background-position: 100% 0; } to { background-position: -20% 0; } }
.pipeline li {
  position: relative; z-index: 1; white-space: nowrap;
  padding: .55rem .7rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: #c9c7c0; background: #0f1012; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  animation: node 2.8s linear infinite;
}
.pipeline li:nth-child(2) { animation-delay: .4s; } .pipeline li:nth-child(3) { animation-delay: .8s; }
.pipeline li:nth-child(4) { animation-delay: 1.2s; } .pipeline li:nth-child(5) { animation-delay: 1.6s; }
.pipeline li:nth-child(6) { animation-delay: 2s; } .pipeline li:nth-child(7) { animation-delay: 2.4s; }
@keyframes node { 0%, 12% { color: #0b0b0c; background: var(--lime); box-shadow: 0 0 22px rgba(198, 244, 50, .45); } 22%, 100% { color: #c9c7c0; background: #0f1012; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); } }

.failover { display: grid; gap: .45rem; }
.failover li { display: flex; align-items: center; justify-content: space-between; padding: .65rem .85rem; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; }
.failover code { font-family: var(--font-mono); font-size: .68rem; padding: .22rem .5rem; border-radius: 6px; white-space: nowrap; }
.failover li:nth-child(1) { opacity: .55; }
.failover li:nth-child(1) code { color: #ff8a65; background: rgba(255, 106, 61, .12); }
.failover li:nth-child(2) { background: rgba(198, 244, 50, .07); box-shadow: inset 0 0 0 1px rgba(198, 244, 50, .35); }
.failover li:nth-child(2) code { color: #0b0b0c; background: var(--lime); }
.failover li:nth-child(3) code { color: var(--muted); background: rgba(255, 255, 255, .06); }

.shield, .stack-mini { display: flex; flex-wrap: wrap; gap: .45rem; }
.shield span, .stack-mini span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2);
}
.shield span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.queue { display: grid; gap: .45rem; font-family: var(--font-mono); font-size: .72rem; }
.queue code { display: block; padding: .55rem .75rem; border-radius: 10px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line); color: #c9c7c0; }
.queue__ok { color: var(--lime) !important; }
.queue__steps { display: flex; gap: .4rem; margin-top: .2rem; }
.queue__steps span { flex: 1; text-align: center; padding: .45rem 0; border-radius: 8px; background: rgba(255, 255, 255, .04); color: #77756f; text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; animation: qstep 3.6s linear infinite; }
.queue__steps span:nth-child(2) { animation-delay: 1.2s; } .queue__steps span:nth-child(3) { animation-delay: 2.4s; }
@keyframes qstep { 0%, 30% { background: rgba(198, 244, 50, .14); color: var(--lime); } 34%, 100% { background: rgba(255, 255, 255, .04); color: #77756f; } }

/* Launch library marquee */
.covers { margin-top: clamp(5rem, 11vw, 9.5rem); }
.covers__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.covers__note { color: var(--muted); padding-bottom: .4rem; }
.covers__rows {
  display: grid; gap: clamp(10px, 1.2vw, 16px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.covers__row { overflow: hidden; }
.covers__track { display: flex; gap: clamp(10px, 1.2vw, 16px); padding-right: clamp(10px, 1.2vw, 16px); width: max-content; animation: marquee var(--dur, 70s) linear infinite; will-change: transform; }
.covers__row--reverse .covers__track { animation-direction: reverse; }
[data-marquee].is-offscreen [data-marquee-track] { animation-play-state: paused; }
.covers__rows.is-paused .covers__track { animation-play-state: paused; }
@media (hover: hover) { .covers__rows:hover .covers__track { animation-play-state: paused; } }
.cover { position: relative; flex: none; width: clamp(196px, 22vw, 310px); aspect-ratio: 480 / 286; border-radius: 16px; overflow: hidden; background: #121316; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.cover span {
  position: absolute; left: 10px; bottom: 10px;
  padding: .32rem .65rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: #fff;
  background: rgba(8, 8, 10, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out);
}
@media (hover: hover) { .cover:hover img { transform: scale(1.07); } }
@media (hover: hover) { .cover:hover span { opacity: 1; transform: none; } }
@media (hover: none) { .cover span { opacity: 1; transform: none; } }

/* ---------- Larpie ---------- */
.lp-reveal { --p: 0; position: relative; height: 175vh; }
.lp-reveal__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1rem, 3vh, 1.75rem);
  perspective: 1600px;
}
/* The key art's sky, with soft echoes of the logo, the cape and the planets. Its last stop
   is the page colour, so it melts into the dark page above and the sky-blue chapter below. */
.lp-reveal__ambient {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 38% at 50% 16%, rgba(255, 210, 80, .3), transparent 70%),
    radial-gradient(40% 38% at 10% 62%, rgba(235, 70, 55, .24), transparent 70%),
    radial-gradient(42% 40% at 92% 46%, rgba(160, 120, 240, .26), transparent 70%),
    linear-gradient(180deg, #1c67cc 0%, #3b93ea 40%, #8fcaf3 74%, var(--bg) 100%);
  opacity: var(--p);
}
.lp-reveal__frame {
  position: relative; z-index: 1;
  width: min(calc(100% - 2 * var(--gutter)), 1680px);
  border-radius: clamp(18px, 2.2vw, 34px); overflow: hidden;
  background: #3d93e6;
  box-shadow: 0 60px 120px -45px rgba(5, 20, 55, .7), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transform-origin: 50% 85%;
  transform: translateY(calc((1 - var(--p)) * 9vh)) rotateX(calc((1 - var(--p)) * 18deg)) scale(calc(.66 + var(--p) * .34));
  will-change: transform;
}
.lp-reveal__frame picture { display: block; }
.lp-reveal__frame img { width: 100%; height: auto; max-height: calc(100svh - 8.5rem); object-fit: cover; object-position: 45% 40%; }
.lp-reveal__caption {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 1rem;
  width: min(calc(100% - 2 * var(--gutter)), 1680px);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 14px rgba(0, 20, 60, .5);
  opacity: calc(var(--p) * 1.8 - .8);
}

.chapter__title--larpie { font-family: var(--font-play); font-weight: 650; letter-spacing: -.02em; gap: clamp(.9rem, 2.4vw, 2rem); }
.larpie-word { display: inline-flex; }
.larpie-word span {
  display: inline-block; color: var(--c);
  text-shadow: 0 .025em 0 var(--d), 0 .05em 0 var(--d), 0 .075em 0 var(--d), 0 .14em .18em rgba(40, 20, 10, .22);
  transform: rotate(var(--r, 0deg));
}
.larpie-word span:nth-child(1) { --c: #ff6b57; --d: #c8402e; --r: -4deg; }
.larpie-word span:nth-child(2) { --c: #ffc93c; --d: #d29613; --r: 3deg; }
.larpie-word span:nth-child(3) { --c: #3ec6a5; --d: #1f8f75; --r: -2deg; }
.larpie-word span:nth-child(4) { --c: #52a6f2; --d: #2b70c2; --r: 3deg; }
.larpie-word span:nth-child(5) { --c: #ff6b57; --d: #c8402e; --r: -3deg; }
.larpie-word span:nth-child(6) { --c: #ffc93c; --d: #d29613; --r: 2deg; }
@media (hover: hover) { .chapter__title--larpie:hover .larpie-word span { animation: hop .7s var(--spring) both; } }
@media (hover: hover) { .chapter__title--larpie:hover .larpie-word span:nth-child(2) { animation-delay: .05s; } }
@media (hover: hover) { .chapter__title--larpie:hover .larpie-word span:nth-child(3) { animation-delay: .1s; } }
@media (hover: hover) { .chapter__title--larpie:hover .larpie-word span:nth-child(4) { animation-delay: .15s; } }
@media (hover: hover) { .chapter__title--larpie:hover .larpie-word span:nth-child(5) { animation-delay: .2s; } }
@media (hover: hover) { .chapter__title--larpie:hover .larpie-word span:nth-child(6) { animation-delay: .25s; } }
@keyframes hop { 40% { transform: translateY(-14%) rotate(var(--r)); } }

.poke { flex: none; width: clamp(64px, 9.5vw, 136px); border-radius: 24%; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(60, 20, 120, .55), inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .5s var(--spring); }
.poke img { width: 100%; height: auto; }
@media (hover: hover) { .poke:hover { transform: rotate(-6deg) scale(1.04); } }
.poke.is-poked { animation: flap .65s var(--spring); }
.poke.is-poked ~ .larpie-word span { animation: hop .7s var(--spring) both; }
.poke.is-poked ~ .larpie-word span:nth-child(2) { animation-delay: .05s; }
.poke.is-poked ~ .larpie-word span:nth-child(3) { animation-delay: .1s; }
.poke.is-poked ~ .larpie-word span:nth-child(4) { animation-delay: .15s; }
.poke.is-poked ~ .larpie-word span:nth-child(5) { animation-delay: .2s; }
.poke.is-poked ~ .larpie-word span:nth-child(6) { animation-delay: .25s; }
@keyframes flap { 0% { transform: none; } 30% { transform: translateY(-22%) rotate(-10deg) scale(1.06); } 60% { transform: translateY(4%) rotate(6deg) scale(.97); } 100% { transform: none; } }
.caption-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.caption-wrap.is-on { grid-template-rows: 1fr; }
.caption-wrap > .caption-card { overflow: hidden; min-height: 0; }
.caption-card {
  justify-self: start; display: grid; gap: .3rem; max-width: 30rem;
  padding: 0 1rem; border-radius: 14px;
  background: rgba(43, 26, 18, .92); color: #fff;
  opacity: 0; transition: opacity .4s, padding .6s var(--ease-out);
}
.caption-wrap.is-on .caption-card { opacity: 1; padding: .85rem 1.1rem 1rem; }
.caption-card__cam { display: flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: #ffb4a8; }
.caption-card__cam::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4b3a; animation: blink-soft 1s steps(1) infinite; }
.caption-card__text { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.3; }

.worlds { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; margin-top: clamp(4.5rem, 10vw, 8.5rem); }
.worlds__stage { position: relative; display: grid; place-items: center; padding-block: 1rem; }
.worlds__stage::before { content: ""; position: absolute; width: min(120%, 560px, 100vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--surface), transparent); }
.phone {
  position: relative; width: clamp(230px, 62vw, 330px); padding: 9px; border-radius: 50px;
  background: linear-gradient(150deg, #43434b, #141418 38%, #2b2b31 75%, #4a4a52);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 60px 100px -40px rgba(30, 15, 5, .55), 0 30px 50px -30px rgba(30, 15, 5, .4);
  transform: rotate(-2.5deg);
  animation: phone-float 8s var(--ease-in-out) infinite;
}
@keyframes phone-float { 50% { transform: rotate(-1deg) translateY(-10px); } }
.phone__screen { position: relative; aspect-ratio: 720 / 1564; border-radius: 41px; overflow: hidden; background: #000; isolation: isolate; }
.phone__shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out); }
.phone__shot.is-active { opacity: 1; transform: none; z-index: 1; }
.phone__shot img { width: 100%; height: 100%; object-fit: cover; }
.worlds__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 2rem; }
.world-tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: 0 1.15rem; border-radius: 999px;
  font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .3s, background-color .3s;
}
.world-tab span { font-family: var(--font-mono); font-size: .66rem; opacity: .75; }
@media (hover: hover) { .world-tab:hover { color: var(--fg); } }
.world-tab[aria-selected="true"] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.world-tab__bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.world-tab[aria-selected="true"] .world-tab__bar { transform: scaleX(1); }
.worlds.is-auto .world-tab[aria-selected="true"] .world-tab__bar { transform: scaleX(0); animation: tabbar var(--world-ms, 6500ms) linear forwards; }
.worlds.is-auto.is-paused .world-tab[aria-selected="true"] .world-tab__bar,
.worlds.is-auto.is-offscreen .world-tab[aria-selected="true"] .world-tab__bar { animation-play-state: paused; }
@keyframes tabbar { to { transform: scaleX(1); } }
.world-panel.is-active { animation: panel-in .8s var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.world-panel__title { font-size: clamp(2.3rem, 4.8vw, 4.4rem); line-height: 1; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; }
.world-panel p { margin-top: 1.1rem; max-width: 38ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--muted); }
.world-panel p.world-panel__fact { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .8rem; margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--fg); font-size: 1rem; }
.world-panel__fact span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.world-panel__fact em { font-family: var(--font-serif); font-size: 1.25rem; }

.bestiary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.beast {
  display: flex; flex-direction: column; gap: .65rem;
  padding: 1.3rem 1.3rem 1.5rem; border-radius: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--spring);
}
@media (hover: hover) { .beast:hover { transform: translateY(-5px) rotate(-1deg); } }
.beast__world { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.beast strong { font-family: var(--font-play); font-weight: 650; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.08; letter-spacing: .01em; text-transform: uppercase; }
.beast p { font-family: var(--font-serif); font-style: italic; font-size: 1.18rem; line-height: 1.25; color: var(--muted); }

.aura {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(5rem, 10vw, 8.5rem); padding: clamp(1.75rem, 4.5vw, 3.75rem);
  border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
/* The HUD sits on its own patch of Larpie sky, like a crop of the game screen, so it reads in every theme. */
.aura__hud {
  display: grid; justify-items: center; text-align: center; min-width: 4.2ch;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.4rem, 3vw, 2rem);
  border-radius: 26px;
  background: linear-gradient(180deg, #74bdea 0%, #a9d9f3 70%, #c9e9f6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 24px 50px -28px rgba(20, 50, 90, .5);
  font-family: var(--font-play); font-weight: 650;
}
.aura__num {
  font-size: clamp(5.2rem, 13vw, 10.5rem); line-height: .82; color: #fff;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: .075em #2b1a12; paint-order: stroke fill;
  text-shadow: 0 .06em 0 #2b1a12;
}
.aura__label { margin-top: .05em; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1; color: #ffc93c; letter-spacing: .03em; -webkit-text-stroke: .1em #2b1a12; paint-order: stroke fill; text-shadow: 0 .06em 0 #2b1a12; }
.aura__rank { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 999px; background: #2b1a12; color: #fff; font-size: 1rem; white-space: nowrap; }
.aura__rank span { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: #ffc93c; }
.aura__text { margin-top: 1rem; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.25; letter-spacing: -.03em; max-width: 26ch; }
.aura__text em { font-family: var(--font-serif); color: var(--accent); }
.ranks { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; }
.ranks li {
  padding: .45rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
  color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .35s, color .35s, box-shadow .35s, transform .5s var(--spring);
}
.ranks li.is-on { color: var(--bg); background: var(--fg); box-shadow: none; }
.ranks li.is-current { transform: scale(1.08); background: var(--accent); color: var(--accent-ink); }

.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.note__num { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); }
.note h5 { margin: .9rem 0 .6rem; font-size: 1.3rem; font-weight: 550; letter-spacing: -.03em; line-height: 1.2; }
.note p { color: var(--muted); line-height: 1.62; font-size: .98rem; }

/* ==========================================================================
   Earlier work
   ========================================================================== */
.section__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section__title { font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.052em; font-weight: 500; max-width: 17ch; text-wrap: balance; }
.index { border-top: 1px solid var(--line); }
.index__item { border-bottom: 1px solid var(--line); }
.index__row {
  position: relative; isolation: isolate; width: 100%;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 2.75rem; align-items: center; gap: 1rem;
  padding: clamp(1.3rem, 2.6vw, 2.1rem) 0; text-align: left;
}
.index__row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; border-radius: 14px; background: var(--surface); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
@media (hover: hover) { .index__row:hover::before { transform: scaleY(1); } }
.index__num { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); transition: color .3s; }
.index__titles { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; min-width: 0; }
.index__title { font-size: clamp(1.55rem, 3.5vw, 3.1rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 500; transition: transform .7s var(--ease-out); }
.index__kind { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.index__icon { position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .6s var(--ease-out), background-color .35s, color .35s; }
.index__icon::before, .index__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.index__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (hover: hover) { .index__row:hover .index__num { color: var(--accent); } }
@media (hover: hover) { .index__row:hover .index__title { transform: translateX(.6rem); } }
.index__row[aria-expanded="true"] .index__icon { transform: rotate(135deg); background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.index__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease-out), visibility 0s .6s; }
.index__row[aria-expanded="true"] + .index__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease-out); }
.index__inner { overflow: hidden; min-height: 0; padding-left: calc(4.5rem + 1rem); }
.index__inner p { max-width: 62ch; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.index__inner .chips { margin-bottom: 2rem; }

/* ==========================================================================
   About
   ========================================================================== */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.numbers li { padding-top: 1.6rem; }
.numbers strong { display: block; font-size: clamp(3.2rem, 6.8vw, 6.4rem); line-height: .95; letter-spacing: -.065em; font-weight: 500; font-variant-numeric: tabular-nums; }
.numbers li > span { display: block; margin-top: .8rem; color: var(--muted); font-size: .96rem; max-width: 22ch; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); margin-top: clamp(4.5rem, 10vw, 8.5rem); }
.about__heading { padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; font-weight: 450; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.timeline__item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.timeline__when { padding-top: .35rem; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); white-space: nowrap; }
.timeline h4 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 550; letter-spacing: -.03em; line-height: 1.25; }
.timeline h4 span { color: var(--muted); font-weight: 400; }
.timeline p { margin-top: .55rem; color: var(--muted); line-height: 1.62; }
.toolkit__group { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.toolkit h4 { font-size: 1.12rem; font-weight: 550; letter-spacing: -.02em; margin-bottom: .5rem; }
.toolkit p { color: var(--muted); line-height: 1.75; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { overflow: hidden; }
.contact__glow { position: absolute; width: min(1000px, 120vw); aspect-ratio: 1; right: -25%; bottom: -45%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 244, 50, .14), transparent); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.contact__title { margin-top: 1.6rem; font-size: clamp(3rem, 7.8vw, 8.4rem); line-height: .93; letter-spacing: -.058em; font-weight: 500; }
.js .contact__title:not(.is-in) .line__in { transform: translateY(112%); }
.contact__title.is-in .line__in { animation: rise-line 1.2s var(--ease-out) backwards; }
.contact__title.is-in .line:nth-child(2) .line__in { animation-delay: .1s; }
@keyframes rise-line { from { transform: translateY(112%); } }
.contact__lede { margin-top: 1.6rem; max-width: 38ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.55; }
.contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; max-width: 540px; margin-top: 2.5rem; }
.contact__links a { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; transition: color .3s, padding .5s var(--ease-out); }
@media (hover: hover) { .contact__links a:hover { color: var(--accent); padding-left: .4rem; } }
.form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.5rem, 3.2vw, 2.6rem); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.field { position: relative; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 1.65rem 0 .7rem; border: 0; border-radius: 0; outline: none;
  border-bottom: 1px solid var(--line-2); background: transparent; color: var(--fg);
  font-size: 1.06rem; line-height: 1.5; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 7.5rem; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-text-fill-color: var(--fg); caret-color: var(--fg); transition: background-color 600000s 0s, color 600000s 0s; }
.field label { position: absolute; left: 0; top: 1.6rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.35rem) scale(.78); color: var(--fg); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid::after { background: var(--ember); transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: .6rem; }
.form__status { font-size: .92rem; color: var(--muted); }
.form__status.is-ok { color: var(--lime); }
.form__status.is-error { color: #ff9a7a; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(4rem, 8vw, 7rem) 0 calc(1.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__note { color: var(--muted); }
.footer__top-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .9rem; transition: background-color .3s, color .3s; }
@media (hover: hover) { .footer__top-btn:hover { background: var(--fg); color: var(--bg); } }
.footer__word {
  margin: clamp(2.5rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--fit, 14.6vw); line-height: .84; letter-spacing: -.065em; font-weight: 500; white-space: nowrap;
}
.footer__word em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.035em; color: var(--lime); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .86rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { transition: color .3s; }
@media (hover: hover) { .footer__links a:hover { color: var(--fg); } }

/* ---------- Cursor hint bubble (fine pointers only) ---------- */
.cursor-bubble { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; transform: translate3d(-200px, -200px, 0); }
.cursor-bubble span {
  position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: #0b0b0c; font-size: .82rem; font-weight: 650; letter-spacing: -.01em;
  transform: scale(0); transition: transform .45s var(--ease-out);
}
.cursor-bubble.is-on span { transform: scale(1); }

/* ==========================================================================
   Scroll reveals (animations, so hover transforms keep working afterwards)
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.js [data-reveal]:not([data-reveal="stagger"]):not([data-reveal="lines"]):not(.is-in) { opacity: 0; }
.js [data-reveal]:not([data-reveal="stagger"]):not([data-reveal="lines"]).is-in { animation: rise 1.1s var(--ease-out) backwards; animation-delay: var(--rd, 0s); }
.js [data-reveal="stagger"]:not(.is-in) > * { opacity: 0; }
.js [data-reveal="stagger"].is-in > * { animation: rise .95s var(--ease-out) backwards; animation-delay: calc(var(--si, 0) * 65ms); }
.reveal-all [data-reveal], .reveal-all [data-reveal] > *, .reveal-all .line__in { opacity: 1 !important; transform: none !important; animation: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bestiary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__demo { justify-self: start; max-width: 520px; }
  .card--wide { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav { padding-top: 10px; }
  .nav__inner { height: 56px; padding: 0 6px 0 10px; }
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .brand__mark { width: 34px; height: 34px; }

  .chapter__intro, .worlds, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .worlds__stage { order: 0; }
  .worlds { gap: 2.5rem; }
  .contact__grid { align-items: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 1.75rem 0 1.25rem; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__title { margin-top: 1rem; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .25rem; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .aura { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .aura__copy { display: grid; justify-items: center; }
  .ranks { justify-content: center; }
  .lp-reveal { height: 150vh; }
  .lp-reveal__frame { transform: translateY(calc((1 - var(--p)) * 6vh)) rotateX(calc((1 - var(--p)) * 14deg)) scale(calc(.8 + var(--p) * .2)); }
}

@media (max-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .pipeline { flex-wrap: wrap; justify-content: flex-start; padding-block: .25rem; }
  .pipeline::before, .pipeline::after { display: none; }
  .hero__foot { flex-wrap: wrap; }
  .venture-chip { flex: 1 1 calc(50% - .75rem); min-width: 0; padding-right: .75rem; }
  .venture-chip__arrow { display: none; }
  .scroll-cue { display: none; }
  .index__row { grid-template-columns: 2.4rem minmax(0, 1fr) 2.5rem; gap: .75rem; }
  .index__titles { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .index__kind { font-size: .88rem; }
  .index__icon { width: 2.5rem; height: 2.5rem; }
  .index__inner { padding-left: calc(2.4rem + .75rem); }
  .index__row:hover .index__title { transform: none; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .contact__links { grid-template-columns: minmax(0, 1fr); }
  .lp-reveal__caption { font-size: .6rem; }
  .worlds__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .worlds__tabs::-webkit-scrollbar { display: none; }
  .world-tab { flex: none; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(2.7rem, 13.2vw, 3.6rem); letter-spacing: -.052em; }
  .hero__eyebrow > span:nth-child(2), .hero__eyebrow-sep { display: none; }
  .hero__eyebrow-role { color: var(--fg); }
  .hero__actions .btn { flex: 1 1 auto; }
  .venture-chip { flex-basis: 100%; }
  .console__prompt { font-size: .98rem; }
  .console__motto { display: none; }
  .console__foot { justify-content: flex-end; }
  .bestiary { gap: 8px; }
  .beast { padding: 1rem .95rem 1.1rem; gap: .5rem; border-radius: 16px; }
  .beast strong { font-size: 1rem; }
  .beast p { font-size: 1.02rem; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .chapter__title { letter-spacing: -.055em; }
  .chips li { font-size: .68rem; }
  .numbers strong { font-size: clamp(2.8rem, 15vw, 3.6rem); }
}

/* Small phones: keep the name on one line by showing the menu button as its icon only.
   The word stays in the button for screen readers. */
@media (max-width: 379px) {
  .brand__name { white-space: nowrap; }
  .menu-btn { gap: 0; padding: 0 6px; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* The narrowest phones (Galaxy Fold cover screen, 280–359px). */
@media (max-width: 359px) {
  .console__dots { display: none; }
  .console__bar { gap: .6rem; padding-inline: .85rem; }
  .console__body { padding-inline: .9rem; }
  .console__foot { padding-left: .9rem; }
  .hero__actions .btn { padding-inline: 1.1rem; }
  .chapter__title { font-size: 2.9rem; }
  .poke { width: 54px; }
  .numbers strong { font-size: 2.6rem; }
  .worlds__tabs .world-tab { padding: 0 .9rem; }
  .aura__rank { white-space: normal; text-align: center; }
}

@media (max-width: 319px) {
  .bestiary, .meta { grid-template-columns: minmax(0, 1fr); }
}

/* Touch screens have no hover, so give presses their own quick feedback instead. */
@media (hover: none) {
  .btn:active, .store-btn:active, .venture-chip:active, .footer__top-btn:active,
  .console__next:active, .world-tab:active, .poke:active { transform: scale(.96); transition-duration: .15s; }
  .index__row:active::before { transform: scaleY(1); transition-duration: .15s; }
}

/* Short laptop screens: keep the hero inside one viewport. */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--nav-h) + 1.25rem); }
  .hero__grid { padding-bottom: 1.6rem; }
  .hero__title { font-size: clamp(3rem, 6.9vw, 7.6rem); }
  .hero__eyebrow { margin-bottom: 1.1rem; }
  .hero__lede { margin-top: 1.1rem; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__demo { max-width: 390px; }
  .console__body { padding: .85rem 1rem .8rem; }
  .console__prompt { min-height: 2.7em; font-size: .98rem; }
  .console__pipeline, .console__result { margin-top: .75rem; }
  .game-card__media { aspect-ratio: 480 / 220; }
  .hero__foot { padding-bottom: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker__track, .covers__track { animation: none !important; }
  .js [data-lit] .w { opacity: 1; }
  .phone { animation: none; }
}

/* ---------- Print: everything visible, nothing fixed or animated ---------- */
@media print {
  body, body[data-theme] { --bg: #fff; --fg: #111; --muted: #444; --line: #ccc; --line-2: #bbb; --surface: transparent; --accent: #2f5d00; background: #fff; color: #111; }
  body::after, .nav, .menu, .progress, .skip-link, .cursor-bubble, .hero__bg, .ticker, .gallery, .covers, .form, .scroll-cue, .footer__top-btn, .console, .lp-reveal { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-reveal] > *, .intro, .line__in, [data-lit] .w { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; }
  .index__panel { grid-template-rows: 1fr !important; visibility: visible !important; }
  .section, .chapter { padding-block: 2rem; }
  a[href^="http"]:not(.btn):not(.store-btn)::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; }
}
