:root {
  --bg: #05060c;
  --bg-2: #090c17;
  --surface: #0c1020;
  --surface-2: #11172b;
  --line: rgba(150, 180, 255, 0.10);
  --line-2: rgba(150, 180, 255, 0.20);
  --text: #eaf0fb;
  --muted: #8f9ab2;
  --dim: #5d6780;
  --cyan: #53f3ff;
  --cyan-soft: rgba(83, 243, 255, 0.12);
  --cyan-ink: #00161a;
  --amber: #ffcc4d;
  --amber-soft: rgba(255, 204, 77, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html:has(dialog[open]) { overflow: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(83, 120, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(83, 243, 255, 0.05), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 6, 12, .75), rgba(5, 6, 12, 0));
}
.topbar.is-solid { background: rgba(5, 6, 12, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-display); letter-spacing: .08em; }
.brand em { font-style: normal; color: var(--cyan); }
.brand-mark { width: 18px; height: 18px; fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(83, 243, 255, .6)); }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted);
  font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a span { color: var(--cyan); margin-left: 4px; }
.nav a[href="#launched"] span { color: var(--amber); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 0 0 0 rgba(83, 243, 255, .0); }
.btn-primary:hover { box-shadow: 0 0 28px rgba(83, 243, 255, .45); }
.btn-amber { background: var(--amber); color: #1a1200; }
.btn-amber:hover { box-shadow: 0 0 28px rgba(255, 204, 77, .4); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(83, 243, 255, .55); color: var(--cyan); }
.btn-ghost.is-done { border-color: rgba(83, 243, 255, .55); color: var(--cyan); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 6px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(5, 6, 12, .72); color: var(--text); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip-cyan { color: var(--cyan); border-color: rgba(83, 243, 255, .35); }
.chip-amber { color: var(--amber); border-color: rgba(255, 204, 77, .35); }
.chip-demo { color: var(--cyan-ink); background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.eyebrow {
  margin: 0 0 6px; color: var(--cyan);
  font: 500 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: "◆ "; }
.eyebrow-amber { color: var(--amber); }

/* ---------- Hero / spotlight ---------- */
.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
  padding: 120px 0 36px; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 8s linear; }
.hero-media img.is-on { opacity: 1; transform: scale(1); }
.hero-media img { filter: saturate(1.1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 12, .94) 0%, rgba(5, 6, 12, .7) 40%, rgba(5, 6, 12, .38) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 12, .0) 45%),
    linear-gradient(180deg, rgba(5, 6, 12, .7) 0%, rgba(5, 6, 12, 0) 22%);
}
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 90%);
}
.hero-inner {
  display: grid; gap: 36px 56px; align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "content screen" "rail rail";
}
.hero-content { grid-area: content; max-width: 600px; }
.hero-rail { grid-area: rail; }
.hero-screen {
  grid-area: screen; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; cursor: pointer;
  background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(83, 243, 255, .25);
  transition: border-color .3s, box-shadow .3s;
}
.hero-screen:hover { border-color: rgba(83, 243, 255, .5); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 70px -16px rgba(83, 243, 255, .4); }
.hero-screen img, .hero-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-screen img { opacity: 0; transition: opacity .6s var(--ease); }
.hero-screen img.is-on { opacity: 1; }
.hero-screen video { opacity: 0; transition: opacity 1s var(--ease); }
.hero-screen video.is-on { opacity: 1; }
.hero-screen::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), linear-gradient(0deg, rgba(5, 6, 12, .45), transparent 35%);
}
.hero-screen::after {
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none; --c: rgba(83, 243, 255, .8);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 18px no-repeat;
}
.hero-screen-label {
  position: absolute; left: 22px; bottom: 20px; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.hero-screen-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.hero-screen.is-live .hero-screen-label i { background: #ff4f6d; box-shadow: 0 0 10px #ff4f6d; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-content > * { animation: rise .7s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .05s; }
.hero-content > *:nth-child(3) { animation-delay: .1s; }
.hero-content > *:nth-child(4) { animation-delay: .15s; }
.hero-content > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 500 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.hero-kicker span:last-child { color: var(--dim); }
.hero-title {
  margin: 0 0 8px;
  font: 700 clamp(36px, 5vw, 68px)/.95 var(--font-display);
  letter-spacing: -.01em; text-transform: uppercase;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.hero-title.is-long { font-size: clamp(30px, 3.6vw, 50px); }
.hero-title a { color: inherit; text-decoration: none; transition: color .2s; }
.hero-title a:hover { color: var(--cyan); }
.hero-dev { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.hero-blurb { margin: 0 0 22px; color: #c9d2e6; font-size: 16px; max-width: 54ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rail-item {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  opacity: .55; transition: opacity .25s;
}
.rail-item:hover, .rail-item[aria-selected="true"] { opacity: 1; }
.rail-item img { width: 100%; aspect-ratio: 616 / 353; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.rail-item[aria-selected="true"] img { border-color: rgba(83, 243, 255, .6); }
.rail-label { display: block; margin-top: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.rail-bar { position: relative; display: block; height: 2px; margin-top: 8px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.rail-bar::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.rail-item[aria-selected="true"] .rail-bar::after { animation: fill var(--slide-ms, 9000ms) linear forwards; }
.hero.is-paused .rail-item[aria-selected="true"] .rail-bar::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero.no-auto .rail-bar::after { animation: none !important; }
.hero.no-auto .rail-item[aria-selected="true"] .rail-bar::after { transform: none; }

/* ---------- Intro / stats ---------- */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 28px; padding-bottom: 12px; }
.intro-title { margin: 0; max-width: 18ch; font: 600 clamp(26px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -.005em; text-wrap: balance; }
.stats { display: flex; gap: clamp(20px, 4vw, 56px); margin: 0; }
.stats div { border-left: 1px solid var(--line-2); padding-left: 16px; }
.stats dt { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.stats dd { margin: 0; font: 600 40px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stats div:nth-child(2) dd { color: var(--cyan); }
.stats div:nth-child(3) dd { color: var(--amber); }

/* ---------- Sections ---------- */
.section { padding-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2, .about h2 { margin: 0; font: 700 clamp(30px, 4vw, 44px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.section-note { margin: 0; color: var(--muted); max-width: 40ch; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 999px; }
.segmented button {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  height: 32px; padding: 0 14px; border-radius: 999px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap;
  transition: background .2s, color .2s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.segmented button small { font-size: 11px; color: var(--dim); margin-left: 4px; }
.segmented button[aria-checked="true"] small { color: var(--cyan); }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--muted); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.toggle:hover { color: var(--text); }
.toggle-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--dim); transition: background .2s, box-shadow .2s, border-color .2s; }
.toggle[aria-pressed="true"] { color: var(--cyan); border-color: rgba(83, 243, 255, .4); }
.toggle[aria-pressed="true"] .toggle-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 15px; height: 15px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  height: 42px; width: 240px; padding: 0 16px 0 38px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--text); font: 400 14px/1 var(--font-body); outline: none; transition: border-color .2s, width .3s var(--ease);
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: rgba(83, 243, 255, .5); }

.group + .group { margin-top: 48px; }
.group-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.group-head h3 { margin: 0; font: 600 13px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.group-head .count { font: 500 12px/1 var(--font-mono); color: var(--dim); }
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.group-head p { margin: 0; color: var(--dim); font-size: 13px; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.grid-launched { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
  --c: var(--cyan);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 16px no-repeat;
}
.card.is-out::after { --c: var(--amber); }
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(83, 243, 255, .06); }
.card:hover::after, .card:focus-within::after { opacity: 1; }
.card-hit { position: absolute; inset: 0; z-index: 1; border: 0; background: none; cursor: pointer; border-radius: inherit; }
.card-hit:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 616 / 353; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.92); }
.card:hover .card-media img { transform: scale(1.05); filter: saturate(1.1); }
.card-media .chip { position: absolute; top: 10px; }
.card-media .chip:first-of-type { left: 10px; }
.card-media .chip-demo { right: 10px; }
.card-body { padding: 16px 16px 4px; flex: 1; }
.card-title { margin: 0 0 4px; font: 600 18px/1.2 var(--font-display); letter-spacing: .01em; text-wrap: balance; }
.card-dev { margin: 0 0 10px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tags { margin: 0; font: 400 11px/1.4 var(--font-mono); color: var(--dim); letter-spacing: .03em; text-transform: uppercase; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.card-cta {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(83, 243, 255, .35); color: var(--cyan);
  font: 600 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.card-cta svg { width: 14px; height: 14px; }
.card-cta:hover { background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 0 20px rgba(83, 243, 255, .4); }
.card.is-out .card-cta { border-color: rgba(255, 204, 77, .35); color: var(--amber); }
.card.is-out .card-cta:hover { background: var(--amber); color: #1a1200; box-shadow: 0 0 20px rgba(255, 204, 77, .35); }
.card-more { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.card:hover .card-more { color: var(--text); }
.card-price { font: 500 12px/1 var(--font-mono); color: var(--text); }

.card-compact .card-media { aspect-ratio: 460 / 215; }
.card-compact .card-body { padding: 14px 14px 2px; }
.card-compact .card-title { font-size: 16px; }
.card-compact .card-dev { margin-bottom: 0; font-size: 12px; }
.card-compact .card-foot { padding: 12px 14px 14px; }

.more-row { display: flex; justify-content: center; margin-top: 28px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- About & footer ---------- */
.about { padding-top: 96px; }
.about-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px;
  padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line); background: linear-gradient(135deg, rgba(83, 243, 255, .05), rgba(255, 255, 255, .01) 50%);
}
.about-body p { margin: 0 0 12px; color: #c3cce0; max-width: 62ch; }
.about-body a { color: var(--cyan); text-decoration-color: rgba(83, 243, 255, .4); text-underline-offset: 3px; }
.footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; font: 400 12px/1.5 var(--font-mono); color: var(--dim); }

/* ---------- Modal ---------- */
.modal {
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px);
  background: var(--bg-2); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(83, 243, 255, .05);
}
.modal[open] { animation: pop .35s var(--ease); }
.modal::backdrop { background: rgba(2, 3, 8, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-panel { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(5, 6, 12, .7); backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s;
}
.modal-close:hover { border-color: var(--cyan); color: var(--cyan); }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-media { position: relative; aspect-ratio: 16 / 9; max-height: 52vh; width: 100%; background: #000; }
.modal-media video, .modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media video { object-fit: contain; background: #000; }
.modal-shots { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #03040a; scrollbar-width: thin; }
.modal-shots:empty { display: none; }
.shot {
  flex: none; width: 128px; aspect-ratio: 16 / 9; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: none; opacity: .6; transition: opacity .2s, border-color .2s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover, .shot[aria-current="true"] { opacity: 1; border-color: rgba(83, 243, 255, .6); }
.shot-play { display: grid; place-items: center; position: relative; }
.shot-play::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(0, 0, 0, .35); }
.modal-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; padding: clamp(20px, 3.5vw, 36px); }
.modal-title { margin: 6px 0 6px; font: 700 clamp(28px, 4vw, 40px)/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.modal-dev { margin: 0 0 18px; color: var(--muted); }
.modal-blurb { margin: 0 0 24px; color: #c9d2e6; font-size: 15px; }
.modal-side { display: grid; gap: 20px; align-content: start; }
.modal-ctas { display: grid; gap: 10px; }
.modal-ctas .btn { justify-content: center; }
.facts { margin: 0; display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; text-align: right; font-size: 14px; }
.facts a { color: var(--cyan); text-underline-offset: 3px; }
.utm-note { margin: 14px 0 0; font: 400 11px/1.5 var(--font-mono); color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "content" "rail"; }
  .hero-screen { display: none; }
}
@media (max-width: 1080px) {
  .hero-rail { grid-template-columns: repeat(6, minmax(110px, 1fr)); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}
@media (max-width: 860px) {
  .intro { flex-direction: column; align-items: flex-start; }
  .about-card, .modal-body { grid-template-columns: 1fr; gap: 24px; }
  .search input { width: 100%; }
  .search { flex: 1 1 200px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .nav a:not([href="#incoming"]):not([href="#launched"]) { display: none; }
  .nav a { padding: 8px; font-size: 11px; }
  .nav a span { display: none; }
  .hero { min-height: auto; padding-top: 64px; align-items: stretch; }
  .hero-media { bottom: auto; height: 420px; }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--bg) 2%, rgba(5, 6, 12, .55) 45%, rgba(5, 6, 12, .1) 75%),
      linear-gradient(180deg, rgba(5, 6, 12, .6) 0%, rgba(5, 6, 12, 0) 25%);
  }
  .hero-content { padding-top: 190px; }
  .hero-title, .hero-title.is-long { font-size: clamp(28px, 8.4vw, 40px); overflow-wrap: anywhere; }
  .hero-blurb { font-size: 14px; -webkit-line-clamp: 2; }
  .hero-rail { display: flex; gap: 6px; overflow: visible; }
  .rail-item { flex: 1; }
  .rail-item img, .rail-label { display: none; }
  .rail-bar { margin-top: 0; height: 3px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .stats { width: 100%; justify-content: space-between; gap: 12px; }
  .stats div { padding-left: 12px; }
  .stats dd { font-size: 30px; }
  .stats dt { font-size: 10px; letter-spacing: .1em; }
  .segmented { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented button { flex: 1 0 auto; padding: 0 10px; }
  .toggle { flex: 0 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .grid-launched { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-compact .card-title { font-size: 14px; }
  .card-compact .card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .group-head p { display: none; }
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; border: 0; }
  .modal-panel { max-height: 100dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
