/* Eve Machine download site. Plain CSS, no build step. Motion is driven by app.js through the
   .in / .on classes and the --p / --e scroll properties; with JavaScript off or reduced motion
   on, everything simply shows in place. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #05070d;
  --bg-2: #090d17;
  --card: #0c111d;
  --card-2: #101828;
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.26);
  --text: #eef2f8;
  --dim: #9ba8be;
  --faint: #66728a;
  --accent: #ff4a3a;
  --accent-hover: #ff6a52;
  --accent-ink: #1a0303;
  --link: #67e8f9;
  /* Each chapter sets its own pair; these are the brand's. */
  --c: #ff4a3a;
  --c2: #ffb08a;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 56px;
  --wrap: 1200px;
  --p: 0.5;
  --e: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 74, 58, 0.35); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1440px; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Reveal on scroll ------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.zoom { transform: scale(0.94); }
.js .reveal.zoom.in { transform: none; }

/* ---- Top bar ---------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(5, 7, 13, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.scrolled .nav { border-bottom-color: var(--line); background: rgba(5, 7, 13, 0.78); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 100%; max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex; gap: 4px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
  font-size: 13.5px; font-weight: 500;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  padding: 0 12px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--dim); padding: 6px 11px; border-radius: 999px; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.on { color: var(--text); background: rgba(148, 163, 184, 0.13); }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffb08a);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---- Buttons ---------------------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 1px solid transparent; white-space: nowrap; overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.3s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 32px rgba(255, 74, 58, 0.28); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 44px rgba(255, 74, 58, 0.45); }
/* A sheen that crosses the button on hover. */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(148, 163, 184, 0.06); }
.btn-ghost:hover { border-color: rgba(148, 163, 184, 0.5); background: rgba(148, 163, 184, 0.11); }
.btn-small { padding: 8px 16px; font-size: 13.5px; flex: none; }
.btn-small svg { width: 15px; height: 15px; }
.meta { font-size: 14px; color: var(--faint); }
.meta strong { color: var(--dim); font-weight: 600; }

/* ---- Type ------------------------------------------------------------------------------- */
.eyebrow {
  font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c);
}
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px var(--c); }
.display { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1.display { font-size: clamp(42px, 8.2vw, 104px); }
h2.display { font-size: clamp(36px, 6vw, 76px); }
.grad {
  background: linear-gradient(100deg, var(--c), var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Descenders are clipped by the tight line-height otherwise. */
  padding-bottom: 0.08em;
}
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--dim); text-wrap: pretty; }
.lead strong, .lead b { color: var(--text); font-weight: 600; }

/* ---- Hero ------------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 9vh, 110px) 0 0; text-align: center; overflow: clip; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%); mask-image: linear-gradient(#000 55%, transparent 96%); }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -280px; width: min(1500px, 150vw); height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 74, 58, 0.22), transparent 70%),
    radial-gradient(closest-side at 30% 60%, rgba(103, 232, 249, 0.07), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero .logo { width: 84px; height: 84px; margin: 0 auto 26px; filter: drop-shadow(0 10px 36px rgba(255, 74, 58, 0.45)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.hero h1 { margin: 18px auto 22px; max-width: 13ch; }
.hero .lead { max-width: 660px; margin: 0 auto 34px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.hero .meta { margin-top: 18px; }

/* The window tips back at first and settles flat as it scrolls into place. */
.hero-shot { position: relative; margin: clamp(44px, 7vh, 80px) auto 0; max-width: 1320px; padding: 0 24px; perspective: 1800px; }
.hero-shot .window {
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--e)) * 26deg)) scale(calc(0.84 + var(--e) * 0.16));
  will-change: transform;
}
.hero-shot::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 12%; bottom: -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 74, 58, 0.30), transparent 72%);
  filter: blur(50px); opacity: calc(0.35 + var(--e) * 0.65);
}

/* A screenshot dressed as a window. */
.window {
  display: block; position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0b0e14;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.window img { width: 100%; }
a.window { cursor: zoom-in; }

/* ---- Names of the tabs, drifting past ---------------------------------------------------- */
.ticker { position: relative; margin-top: clamp(56px, 9vh, 110px); padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-row { display: flex; width: max-content; gap: 0; animation: slide 60s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker span { font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; padding: 0 22px; }
.ticker span::after { content: "◆"; font-size: 7px; color: var(--accent); margin-left: 44px; vertical-align: 2px; opacity: 0.8; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Sections --------------------------------------------------------------------------- */
section { position: relative; }
.block { padding: clamp(90px, 14vh, 170px) 0; }
.head { max-width: 900px; }
.head.center { margin: 0 auto; text-align: center; }
.head h2 { margin: 18px 0 24px; }
.head .lead { max-width: 760px; }
.head.center .lead { margin-inline: auto; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---- Highlights carousel ---------------------------------------------------------------- */
.highlights { padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 9vh, 110px); }
.highlights .head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; margin-bottom: 36px; }
.highlights h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 0; }
.car-nav { display: flex; gap: 10px; flex: none; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(148, 163, 184, 0.08);
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.round:hover { background: rgba(148, 163, 184, 0.18); border-color: rgba(148, 163, 184, 0.5); transform: scale(1.06); }
.round svg { width: 18px; height: 18px; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(24px, calc((100vw - 1160px) / 2)) 28px; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: none; width: min(1160px, calc(100vw - 48px)); aspect-ratio: 16 / 9; min-height: 420px;
  scroll-snap-align: center; border-radius: 28px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line);
  opacity: 0.38; transform: scale(0.965); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.slide.on { opacity: 1; transform: none; }
/* The picture is pushed left by the width of the app's sidebar (13% of the window), so the
   slide shows the tab's content rather than the menu. */
.slide img { position: absolute; top: 0; left: -15%; width: 115%; max-width: none; height: auto; transform-origin: 60% 0; transform: scale(1.06); transition: transform 6s linear; }
.slide.on img { transform: scale(1); }
/* A picture that is already a close-up fills the slide instead. */
.slide img.fill { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 0; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 13, 0) 52%, rgba(5, 7, 13, 0.8) 76%, rgba(5, 7, 13, 0.98) 100%); }
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: clamp(22px, 3.4vw, 44px); max-width: 860px; color: var(--text); text-align: left; }
.slide-text .eyebrow { margin-bottom: 12px; }
.slide-text .say { font-size: clamp(22px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.slide-text .say span { color: var(--dim); }
.car-foot { display: flex; align-items: center; justify-content: center; gap: 14px; }
.dots { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: rgba(148, 163, 184, 0.1); }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(226, 232, 240, 0.35); cursor: pointer; overflow: hidden; transition: width 0.4s var(--ease), background 0.3s; }
.dot.on { width: 44px; background: rgba(226, 232, 240, 0.28); }
.dot span { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.dot.on span { width: 100%; }
.dot.on.run span { animation: fill 5.2s linear; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.play { width: 40px; height: 40px; }
.play .ico-play { display: none; }
.play.paused .ico-play { display: block; }
.play.paused .ico-pause { display: none; }

/* ---- Numbers ---------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; border-radius: 28px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg-2); padding: clamp(26px, 3.6vw, 48px) clamp(20px, 3vw, 40px); }
.stat .num { display: block; font-weight: 800; font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 0.42em; letter-spacing: -0.01em; font-weight: 700; margin-left: 4px; }
.stat p { margin-top: 12px; color: var(--dim); font-size: 16px; line-height: 1.45; max-width: 30ch; }
.stat p b { color: var(--text); font-weight: 600; }

/* ---- Chapters --------------------------------------------------------------------------- */
.chapter { --glow: color-mix(in srgb, var(--c) 22%, transparent); }
.chapter .head h2 em { font-style: normal; }
.c-overview { --c: #ff5a45; --c2: #ffb08a; }
.c-industry { --c: #fbbf24; --c2: #fb7c3c; }
.c-market { --c: #38d6f5; --c2: #7aa2ff; }
.c-wealth { --c: #34d399; --c2: #b6f05a; }
.c-harvest { --c: #2dd4bf; --c2: #7dd3fc; }
.c-combat { --c: #fb7185; --c2: #fbA24b; }
.c-overlay { --c: #a78bfa; --c2: #67e8f9; }
.c-social { --c: #818cf8; --c2: #e879f9; }
.c-connect { --c: #67e8f9; --c2: #a3e635; }
.c-privacy { --c: #34d399; --c2: #67e8f9; }

/* The chapter's big picture grows a little as it arrives. */
.showcase { position: relative; margin-top: clamp(48px, 7vh, 84px); }
.showcase .window { transform: scale(calc(0.9 + var(--e) * 0.1)); transform-origin: 50% 100%; will-change: transform; }
.showcase::before {
  content: ""; position: absolute; inset: 6% 4% -4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%); filter: blur(60px);
}
figcaption { margin-top: 14px; font-size: 13.5px; color: var(--faint); text-align: center; }

/* A tall screenshot in a window-shaped frame. The frame pins to the middle of the screen while
   the page scrolls 2.4 screens past it, and the picture slides up inside it over that distance
   (--p runs 0.29 to 0.71 while pinned; the pan uses 0.33 to 0.67, so it rests at both ends). */
.pin { height: 240vh; margin-top: clamp(24px, 4vh, 48px); }
.pin-inner { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); margin: 0; display: flex; flex-direction: column; justify-content: center; }
.pin-inner .window { width: min(100%, calc((100vh - var(--nav-h) - 96px) * 1920 / 1201)); margin: 0 auto; transform: none; }
.pan { aspect-ratio: 1920 / 1201; container-type: size; }
.pan img {
  position: absolute; top: 0; left: 0; width: 100%; will-change: transform;
  --pan: clamp(0, (var(--p) - 0.33) * 2.95, 1);
  transform: translate3d(0, calc(var(--pan) * (100cqh - 100%)), 0);
}
/* How far through the picture the pan is. */
.pan::after {
  content: ""; position: absolute; right: 6px; top: 6px; width: 4px; height: 18%; border-radius: 4px;
  background: rgba(226, 232, 240, 0.4);
  --pan: clamp(0, (var(--p) - 0.33) * 2.95, 1);
  transform: translate3d(0, calc(var(--pan) * (100cqh - 100% - 12px)), 0);
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: clamp(40px, 6vh, 72px); }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
/* Light that follows the pointer (--mx / --my come from app.js). */
.card::before, .tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 62%);
}
.card:hover::before, .tile:hover::before { opacity: 1; }
.card-text { padding: clamp(22px, 2.6vw, 34px); }
.card-text h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; text-wrap: balance; }
.card-text p { color: var(--dim); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.card-text p b, .card-text p strong { color: var(--text); font-weight: 600; }
.card-text .eyebrow { margin-bottom: 14px; font-size: 11.5px; }
/* The picture sits under the text, bleeding off the card's right and bottom edges. */
.card-shot { position: relative; margin: auto 0 0 clamp(22px, 2.6vw, 34px); border-radius: 12px 0 0 0; overflow: hidden; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; box-shadow: -18px -10px 60px rgba(0, 0, 0, 0.4); cursor: zoom-in; display: block; }
.card-shot img { width: 100%; transition: transform 1.2s var(--ease); transform-origin: 0 0; }
.card:hover .card-shot img { transform: scale(1.035); }
.card-shot.full { margin-left: 0; border-left: 0; border-radius: 0; }
.wide-text { max-width: 780px; }
.card.tall .card-shot { flex: 1; }
.card.tall .card-shot img { height: 100%; object-fit: cover; object-position: 0 0; }
.card.row { flex-direction: row; align-items: stretch; }
.card.row .card-text { flex: 0 0 40%; align-self: center; }
.card.row .card-shot { flex: 1; margin: clamp(22px, 2.6vw, 34px) 0 0 0; border-radius: 12px 0 0 0; }
.card.row .card-shot img { height: 100%; object-fit: cover; object-position: 0 0; }

/* Small facts in a row under a chapter. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 36px; margin-top: clamp(40px, 6vh, 64px); padding-top: 36px; border-top: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(21px, 2.1vw, 27px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.fact span { display: block; margin-top: 8px; color: var(--dim); font-size: 15px; line-height: 1.45; }

/* ---- Sticky story ----------------------------------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(30px, 5vh, 60px); }
.steps { padding: 12vh 0 18vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.5s var(--ease); }
.js .step { opacity: 0.28; }
.js .step.on { opacity: 1; }
.step .n { font: 500 13px/1 var(--mono); letter-spacing: 0.16em; color: var(--c); margin-bottom: 16px; }
.step h3 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.step p { color: var(--dim); font-size: 17.5px; line-height: 1.6; max-width: 46ch; }
.step p b { color: var(--text); font-weight: 600; }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--dim); font-size: 15.5px; }
.step li { position: relative; padding-left: 22px; }
.step li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 2px; background: var(--c); border-radius: 2px; }
.step-shot { display: none; margin-top: 22px; }
.stage { position: sticky; top: calc(var(--nav-h) + 4vh); height: calc(100vh - var(--nav-h) - 8vh); display: flex; flex-direction: column; justify-content: center; }
.frames { position: relative; aspect-ratio: 1253 / 900; max-height: 100%; }
.frames::before { content: ""; position: absolute; inset: 4% 0 -8%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent 72%); filter: blur(60px); }
.frame { position: absolute; inset: 0; opacity: 0; transform: translate3d(0, 18px, 0) scale(0.975); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.frame.on { opacity: 1; transform: none; pointer-events: auto; }
.frame .window { height: 100%; }
.frame img { position: absolute; top: 0; left: -14.93%; width: 114.93%; max-width: none; height: 100%; }
/* Without JavaScript nothing switches the picture, so each step shows its own instead. */
html:not(.js) .story { display: block; }
html:not(.js) .stage { display: none; }
html:not(.js) .steps { padding: 0; display: grid; gap: 64px; margin-top: 48px; }
html:not(.js) .step { min-height: 0; }
html:not(.js) .step-shot { display: block; max-width: 900px; }
.pips { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pip { width: 26px; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.25); transition: background 0.4s, width 0.4s var(--ease); }
.pip.on { background: var(--c); width: 44px; }

/* ---- Floating windows over the game ----------------------------------------------------- */
.desk {
  position: relative; margin-top: clamp(48px, 7vh, 84px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  height: clamp(560px, 50vw, 660px);
  background:
    radial-gradient(60% 80% at 78% 30%, rgba(167, 139, 250, 0.22), transparent 70%),
    radial-gradient(50% 70% at 18% 75%, rgba(56, 214, 245, 0.16), transparent 70%),
    radial-gradient(30% 40% at 55% 60%, rgba(255, 74, 58, 0.10), transparent 70%),
    #04060b;
}
.desk .stars { opacity: 0.7; -webkit-mask-image: none; mask-image: none; }
.desk-label { position: absolute; left: 48%; top: 30%; transform: translate(-50%, -50%); text-align: center; color: rgba(226, 232, 240, 0.28); font: 500 12px/1.6 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.float { position: absolute; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); will-change: transform; }
.float img { width: 100%; }
/* Each window drifts at its own speed as the scene scrolls through (--p runs 0 to 1). */
.float.f1 { left: 4%; top: 7%; width: 22%; transform: translate3d(0, calc((0.5 - var(--p)) * 150px), 0); }
.float.f2 { right: 5%; top: 9%; width: 23%; transform: translate3d(0, calc((0.5 - var(--p)) * -120px), 0); }
.float.f3 { left: 33%; bottom: 9%; width: 30%; transform: translate3d(0, calc((0.5 - var(--p)) * 240px), 0); }

/* ---- Search views (a copy of the app's palette) ----------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(40px, 6vh, 72px); }
.palette {
  border-radius: 14px; border: 1px solid #2a3a55; background: #0b111c; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 80px color-mix(in srgb, var(--c) 12%, transparent);
  font-size: 15px; text-align: left;
}
.palette-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #1c2738; min-height: 52px; }
.palette-bar svg { width: 16px; height: 16px; color: #22d3ee; flex: none; }
.palette-input { flex: 1; min-width: 0; white-space: pre; overflow: hidden; color: #f1f5f9; }
.palette-ghost { color: #475569; }
.palette-caret { display: inline-block; width: 1.5px; height: 1.15em; background: #67e8f9; vertical-align: -0.2em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.palette kbd { font: 400 10.5px/1 var(--mono); color: #64748b; border: 1px solid #26344b; border-radius: 4px; padding: 3px 6px; flex: none; }
.palette-results { padding: 6px 0; min-height: 232px; }
.palette-row { display: flex; align-items: center; gap: 12px; margin: 0 6px; padding: 7px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.palette-row.on { background: #15233a; border-left-color: #22d3ee; }
.palette-row.picked { animation: picked 0.5s var(--ease); }
@keyframes picked { 30% { background: #1d3a5c; transform: scale(0.99); } }
.palette-ico { width: 28px; height: 28px; border-radius: 6px; background: #121a28; flex: none; position: relative; }
.palette-ico::after { content: ""; position: absolute; inset: 9px; border-radius: 2px; border: 1.5px solid #94a3b8; }
.palette-row.on .palette-ico { background: rgba(8, 51, 68, 0.7); }
.palette-row.on .palette-ico::after { border-color: #67e8f9; }
.palette-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.palette-title { font-size: 13.5px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-title em { font-style: normal; font-size: 11.5px; color: #64748b; margin-left: 6px; }
.palette-desc { font-size: 11.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 9px 16px; border-top: 1px solid #1c2738; font-size: 10.5px; color: #64748b; }
.palette-foot b { font: 400 10.5px var(--mono); color: #94a3b8; }

/* Plain feature list with a rule between items. */
.points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; }
.points p { color: var(--dim); font-size: 16px; line-height: 1.55; }
.keys { display: inline-flex; gap: 6px; vertical-align: 2px; margin: 0 2px; }
.keys kbd { font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(148, 163, 184, 0.08); color: var(--text); }

/* ---- The rest: small tiles -------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 6vh, 64px); }
.tile { position: relative; overflow: hidden; border-radius: 20px; padding: 24px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile svg { width: 26px; height: 26px; color: var(--c); margin-bottom: 18px; }
.tile h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.tile p { color: var(--dim); font-size: 14.5px; line-height: 1.5; }

/* ---- Privacy ---------------------------------------------------------------------------- */
.vows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vh, 72px); }
.vow { border-radius: 26px; padding: clamp(24px, 3vw, 38px); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.vow .big { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px; }
.vow p { color: var(--dim); font-size: 16px; line-height: 1.55; }
.vow p b { color: var(--text); font-weight: 600; }
.fine { margin-top: 28px; color: var(--faint); font-size: 14.5px; line-height: 1.6; max-width: 900px; }
.fine b { color: var(--dim); font-weight: 600; }

/* ---- Install and release notes ---------------------------------------------------------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(36px, 5vh, 56px); }
ol.install { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.install li { counter-increment: step; position: relative; padding: 0 0 26px 58px; color: var(--dim); }
ol.install li:last-child { padding-bottom: 0; }
ol.install li strong { display: block; color: var(--text); font-size: 19px; letter-spacing: -0.01em; margin-bottom: 2px; }
ol.install li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 500 15px var(--mono);
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--text);
}
ol.install li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 46px; bottom: 6px; width: 1px; background: var(--line-2); }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid #f59e0b; border-radius: 14px; padding: 18px 20px; font-size: 15px; color: var(--dim); }
.note strong { color: var(--text); }
.note + .note { margin-top: 14px; }
.hash { word-break: break-all; color: var(--text); }
.notes { position: relative; margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 30px 26px; color: var(--dim); font-size: 15.5px; }
.notes.clamped { max-height: 520px; overflow: hidden; }
.notes.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--card)); border-radius: 0 0 22px 22px; }
.notes.clamped.open { max-height: none; }
.notes.clamped.open::after { display: none; }
.notes h3 { color: var(--text); font: 500 12.5px var(--mono); margin: 24px 0 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { margin: 8px 0; }
.notes li::marker { color: var(--faint); }
.notes strong { color: var(--text); }
.notes .loading { padding: 20px 0 0; }
.notes-more { margin-top: 16px; }

/* ---- Closing call ----------------------------------------------------------------------- */
.closing { position: relative; text-align: center; padding: clamp(110px, 18vh, 200px) 0; overflow: clip; }
.closing::before {
  content: ""; position: absolute; left: 50%; bottom: -420px; width: min(1400px, 140vw); height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 74, 58, 0.24), transparent 70%); pointer-events: none;
}
.closing > .wrap { position: relative; }
.closing .logo { width: 108px; height: 108px; margin: 0 auto 30px; filter: drop-shadow(0 12px 44px rgba(255, 74, 58, 0.5)); }
.closing h2 { margin: 0 auto 22px; max-width: 14ch; }
.closing .lead { max-width: 560px; margin: 0 auto 34px; }
.closing .meta { margin-top: 18px; }

footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--faint); font-size: 12.5px; line-height: 1.6; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; font-size: 14px; }
footer .links a { color: var(--dim); }
footer .links a:hover { color: var(--text); }
footer p { max-width: 980px; }

/* ---- Full-size screenshot --------------------------------------------------------------- */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; cursor: zoom-out; overflow: visible; color: inherit; }
dialog.zoom.tall { overflow: auto; border-radius: 12px; }
dialog.zoom.tall img { max-height: none; width: min(94vw, 1280px); }
dialog.zoom::backdrop { background: rgba(2, 4, 9, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.zoom img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 40px 140px #000; }
dialog.zoom[open] img { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.zoom-caption { margin-top: 12px; text-align: center; color: var(--dim); font-size: 14px; }

/* ---- Narrower windows ------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .s3, .s4, .s5, .s6, .s7, .s8 { grid-column: span 6; }
  .s12, .wide-card { grid-column: span 12; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .vows { grid-template-columns: 1fr; }
  .split, .two { grid-template-columns: 1fr; }
  .card.row { flex-direction: column; }
  .card.row .card-shot { margin: 0 0 0 clamp(22px, 2.6vw, 34px); }
  .pin { height: auto; }
  .pin-inner { position: static; height: auto; display: block; }
  .pin-inner .window { width: 100%; }
  .pan img { --pan: clamp(0, (var(--p) - 0.3) * 2.6, 1); }
  /* The story becomes a plain list: each step carries its own picture. */
  .story { display: block; }
  .stage { display: none; }
  .steps { padding: 0; display: grid; gap: 64px; margin-top: 48px; }
  .step { min-height: 0; }
  .js .step { opacity: 1; }
  .step-shot { display: block; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .s3, .s4, .s5, .s6, .s7, .s8, .s12 { grid-column: span 12; }
  .grid { gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .highlights .head { align-items: start; }
  .car-nav { display: none; }
  .slide { aspect-ratio: 4 / 5; border-radius: 22px; }
  /* Twice the size on a phone, still starting right of the app's sidebar. */
  .slide img:not(.fill) { width: 230%; left: -30%; }
  .hero-shot { padding: 0 12px; }
  .desk { height: 460px; }
  .float.f1 { width: 46%; left: 3%; top: 5%; }
  .float.f2 { width: 46%; right: 3%; top: 12%; }
  .float.f3 { display: none; }
  .desk-label { display: none; }
  .notes { padding: 4px 20px 20px; }
}
@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .btn { padding: 14px 22px; }
}

/* ---- Reduced motion --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero-shot .window, .showcase .window, .float, .pan img, .pan::after { transform: none !important; }
  .pin { height: auto; }
  .pin-inner { position: static; height: auto; display: block; }
  .pan { aspect-ratio: auto; container-type: normal; }
  .pan img { position: static; }
  .pan::after { display: none; }
  .slide { opacity: 1; transform: none; }
  .slide img { transform: none; }
}
