/* The presentation page at https://phantombrain.app/ (phantom-partners, web/home/).
   Every rule lives here, never inline: the site's CSP is style-src 'self'. */

/* Base rules the page was designed on. */
:root { color-scheme: light; box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden]:not([hidden=until-found i]) { display: none !important; }

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: one editorial scroll in the app's own grammar. Paper and ink, 2px rules, square corners,
   one red, Archivo throughout; the hero, the screens and the close sit on the dark stage. */
:root {
  /* PhantomBrain/DesignSystem/ThemeToken.swift, light */
  --ink: #201E1D;
  --paper: #F3F2F2;
  --stage: #DCDAD9;
  --well: #EAE9E9;
  --card: #FFFFFF;
  --line: #C9C6C5;
  --grid: #DCDADA;
  --mute: #8F8B89;
  --sub: #5F5C5A;
  --soft: #A9A5A3;
  --edge: #E4E2E1;
  --accent: #EC3013;
  --accent2: #FF8A73;
  --accent-on-ink: #FF8A73;
  --accent-text: #BD250D;
  --accent-fill: #D42A10;
  --tint: #F6D9D2;
  --good: #1F7A4D;
  --on-fill: #FFFFFF;
  /* the dark stage, the same in both themes */
  --d-ink: #EFEDEC;
  --d-paper: #1A1918;
  --d-stage: #0D0C0C;
  --d-well: #242221;
  --d-card: #262423;
  --d-line: #3D3A39;
  --d-grid: #302E2D;
  --d-mute: #9A9694;
  --d-sub: #B4B0AE;
  --d-soft: #6F6B69;
  --d-edge: #2C2A29;
  --d-accent: #FF4B2E;
  --d-accent-text: #FF6A50;
  --d-tint: #3B1E18;
  --d-good: #46B980;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 56px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EFEDEC; --paper: #1A1918; --stage: #0D0C0C; --well: #242221; --card: #262423; --line: #3D3A39;
    --grid: #302E2D; --mute: #9A9694; --sub: #B4B0AE; --soft: #6F6B69; --edge: #2C2A29; --accent: #FF4B2E;
    --accent2: #FF8A73; --accent-on-ink: #BD250D; --accent-text: #FF6A50; --accent-fill: #FF4B2E; --tint: #3B1E18; --good: #46B980;
    --on-fill: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EFEDEC; --paper: #1A1918; --stage: #0D0C0C; --well: #242221; --card: #262423; --line: #3D3A39;
  --grid: #302E2D; --mute: #9A9694; --sub: #B4B0AE; --soft: #6F6B69; --edge: #2C2A29; --accent: #FF4B2E;
  --accent2: #FF8A73; --accent-on-ink: #BD250D; --accent-text: #FF6A50; --accent-fill: #FF4B2E; --tint: #3B1E18; --good: #46B980;
  --on-fill: #FFFFFF;
  color-scheme: dark;
}
.dark {
  --ink: var(--d-ink); --paper: var(--d-paper); --stage: var(--d-stage); --well: var(--d-well); --card: var(--d-card);
  --line: var(--d-line); --grid: var(--d-grid); --mute: var(--d-mute); --sub: var(--d-sub); --soft: var(--d-soft);
  --edge: var(--d-edge); --accent: var(--d-accent); --accent-on-ink: #BD250D; --accent-text: var(--d-accent-text); --accent-fill: var(--d-accent);
  --tint: var(--d-tint); --good: var(--d-good);
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--paper);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 800; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- type ---------- */
.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--sub);
}
.kicker-ink { color: var(--ink); }
.kicker-red { color: var(--accent-text); }
.display {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.45;
  text-wrap: pretty;
}
.body { margin: 0; max-width: 38em; text-wrap: pretty; }
.small { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sub); max-width: 40em; }
.num { font-variant-numeric: tabular-nums; }

/* The wordmark's red square stands in for every headline's full stop. */
.stop {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.035em;
  background: var(--accent);
  font-style: normal;
}
.nb { white-space: nowrap; }
.stop b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

.wordmark { display: inline-flex; align-items: baseline; gap: 3px; text-decoration: none; color: var(--ink); }
.wordmark-text { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.wordmark-square { width: 7px; height: 7px; background: var(--accent); flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav-row { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.nav-links { display: flex; gap: clamp(14px, 1.8vw, 26px); margin-left: auto; }
.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sub);
  padding-block: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-current { display: none; margin-left: auto; }
.theme-btn {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.theme-btn span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}
.theme-btn:hover { background: var(--well); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none; }
.nav-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
/* Partner dashboard: the one action most visitors come for, so it rides in the sticky header. */
.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-fill); }
.nav-cta-short { display: none; }
.ext { width: 10px; height: 10px; flex: none; }
.btn .ext { width: 12px; height: 12px; }
.ext path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.text-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 800; }
.text-link:hover { color: var(--accent-text); }
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-current { display: block; }
}
@media (max-width: 640px) {
  .nav-row { gap: 12px; }
  .nav-current { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav-cta { padding: 0 10px; gap: 6px; }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}
@media (max-width: 400px) {
  .nav-row { gap: 10px; }
  .nav .wordmark-text { font-size: 19px; }
}
@media (max-width: 354px) {
  .nav .wordmark-text { font-size: 17px; }
  .nav-cta { padding: 0 8px; }
  .nav-cta .ext { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 9vw, 136px); }
.sec + .sec, #business { padding-top: 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: clamp(32px, 4.4vw, 64px);
}
.sec-head .kicker { display: flex; align-items: center; gap: 12px; }
.stack-v { display: grid; gap: 24px; align-content: start; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
.hero-copy { display: grid; gap: clamp(22px, 2.4vw, 32px); min-width: 0; }
.hero-art { min-width: 0; justify-self: center; width: min(100%, 520px); }
.hero-art canvas { display: block; width: 100%; aspect-ratio: 1 / 1; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); max-width: 640px; }
.platform { display: grid; gap: 4px; padding: 14px 16px 2px 0; min-width: 0; align-content: start; }
.platform + .platform { border-left: 2px solid var(--ink); padding-left: 16px; }
.platform strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-fill); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 559px) {
  .hero-links { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-links .btn { justify-content: center; }
}
@media (max-width: 959px) {
  .hero-art { order: -1; justify-self: start; width: min(46%, 220px); margin-bottom: -8px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

/* smoke: Launcher/Intro/Smoke.swift's keyframes, in em of the type */
@keyframes pb-smoke-in {
  0% { opacity: 0; filter: blur(0.28em); transform: translate(var(--sx, 0), 0.24em) scale(1.3); }
  45% { opacity: 0.55; filter: blur(0.1em); }
  100% { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1); }
}
@keyframes pb-smoke-out {
  0% { opacity: 1; filter: blur(0); transform: translate(0, 0) rotate(0) scale(1); }
  35% { opacity: 0.65; filter: blur(0.08em); }
  100% { opacity: 0; filter: blur(0.32em); transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--or, 0deg)) scale(1.6); }
}
@keyframes pb-block-in {
  0% { opacity: 0; filter: blur(12px); transform: translateY(10px) scale(1.03); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
.w { display: inline-block; }
.smoke-in .w { animation: pb-smoke-in 1100ms cubic-bezier(0.2, 0.65, 0.25, 1) both; animation-delay: var(--d, 0ms); }
.smoke-out .w { animation: pb-smoke-out 1600ms cubic-bezier(0.45, 0, 0.75, 1) both; animation-delay: var(--d, 0ms); }
.block-in { animation: pb-block-in 500ms cubic-bezier(0.2, 0.65, 0.25, 1) both; animation-delay: var(--d, 0ms); }
.block-out { animation: pb-block-out 500ms cubic-bezier(0.45, 0, 0.75, 1) both; }
@keyframes pb-block-out {
  0% { opacity: 1; filter: blur(0); transform: none; }
  100% { opacity: 0; filter: blur(12px); transform: translateY(-10px) scale(1.03); }
}

/* ---------- idea ---------- */
.idea-top { display: grid; gap: 28px; }
.pillars { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 72px); }
.pillar { display: grid; gap: 10px; padding: 22px 0 26px; border-top: 1px solid var(--line); align-content: start; min-width: 0; }
.pillar .h3 { font-size: 22px; }
.games-index { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
.game-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.game-card:hover { background: var(--well); }
.game-card .mark { align-self: center; }
.game-card .kicker, .game-card .line { grid-column: 1 / -1; }
.game-card .kicker { margin-top: 10px; }
.game-card strong { align-self: center; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.game-card span.line { font-size: 15px; line-height: 1.45; color: var(--sub); }
@media (min-width: 860px) {
  .idea-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: end; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .pillar { border-top: 2px solid var(--ink); }
  .games-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* game marks: LauncherHomeView.swift GameMark, 12pt cells on a 14pt pitch */
.mark { position: relative; width: 40px; height: 40px; flex: none; }
.mark i { position: absolute; width: 12px; height: 12px; background: var(--ink); }
.mark i.r { background: var(--accent); }
.mark-sm { zoom: 0.6; }

/* ---------- games ---------- */
.game { display: grid; gap: clamp(28px, 4vw, 40px); }
.game-intro { display: grid; gap: 22px; align-content: start; min-width: 0; }
.game-detail { display: grid; gap: 32px; align-content: start; min-width: 0; }
.demo { margin: 0; min-width: 0; width: 100%; max-width: var(--demo-max, 480px); justify-self: center; }
@media (min-width: 960px) {
  .game {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "demo intro" "demo detail";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 40px;
  }
  .game.flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "intro demo" "detail demo"; }
  .game-intro { grid-area: intro; }
  .game-detail { grid-area: detail; }
  .demo {
    grid-area: demo;
    position: sticky;
    top: calc(var(--nav-h) + 28px + env(safe-area-inset-top, 0px));
    align-self: start;
  }
}
.demo-panel { border: 2px solid var(--ink); background: var(--paper); }
.demo-panel canvas { display: block; width: 100%; height: auto; }
.demo-progress { height: 2px; background: var(--line); margin-top: 0; }
.demo-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.demo-foot { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; }
.demo-caption { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--sub); min-height: 2.9em; }
.demo-caption strong { color: var(--ink); font-weight: 800; }
.icon-btn {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--well); }
.demo-play span { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.demo-play.paused span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
.seg { display: inline-flex; border: 2px solid var(--ink); flex: none; }
.seg button {
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 12px;
  height: 32px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button[aria-pressed="true"].xray { background: var(--accent-fill); color: var(--on-fill); }
.demo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-num {
  grid-row: span 2;
  align-self: start;
  justify-self: start;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.step.on .step-num { background: var(--ink); color: var(--paper); }
.step h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sub); }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 20px; }
.points li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; max-width: 36em; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--ink); }

.facts { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr); margin: 0; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); padding-top: 16px; }
.facts dd { font-size: 16px; line-height: 1.45; padding-left: 12px; min-width: 0; }

/* ---------- screens ---------- */
.screens { padding-block: clamp(72px, 9vw, 128px); }
.screens-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); align-items: start; }
.phone { margin: 0; display: grid; gap: 14px; min-width: 0; }
.phone-frame {
  border-radius: clamp(22px, 3.4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--d-stage);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  aspect-ratio: 1206 / 2622;
  max-width: 100%;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); }
@media (max-width: 720px) {
  .phones {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding-inline: var(--gutter-l) var(--gutter-r);
    scrollbar-width: none;
  }
  .phone { flex: 0 0 64%; scroll-snap-align: center; }
}

/* ---------- compete ---------- */
.art { position: relative; background: var(--d-stage); }
.art img { width: 100%; aspect-ratio: 1916 / 821; object-fit: cover; min-height: 300px; }
.art-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding-block: 0 clamp(24px, 4vw, 56px);
}
.art-copy .wrap { display: grid; gap: 14px; }
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 12, 12, 0.85) 100%);
  pointer-events: none;
}
.art-copy { z-index: 1; }
.modes { display: grid; gap: 0; margin-top: clamp(36px, 4vw, 56px); }
.mode { display: grid; gap: 10px; padding: 22px 0 26px; border-top: 1px solid var(--line); align-content: start; min-width: 0; }
.mode .tag {
  justify-self: start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 2px solid var(--ink);
}
.mode:first-child .tag { background: var(--ink); color: var(--paper); }
.mode:last-child .tag { border-style: dashed; }
.rating { display: grid; gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 7vw, 104px); }
.rating-panel { border: 2px solid var(--ink); background: var(--card); min-width: 0; }
.rating-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 20px 10px; flex-wrap: wrap; }
.rating-value { font-size: clamp(40px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.chip { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; background: var(--accent-fill); color: var(--on-fill); }
.rating-panel canvas { display: block; width: 100%; height: auto; }
.rating-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px 16px; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .mode { border-top: 2px solid var(--ink); }
  .rating { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
}

/* ---------- business ---------- */
.plans { display: grid; gap: 20px; margin-top: clamp(36px, 4vw, 56px); }
.plan { display: grid; gap: 22px; padding: clamp(22px, 2.6vw, 32px); border: 2px solid var(--ink); align-content: start; min-width: 0; }
.plan-premium { background: var(--ink); color: var(--paper); --rule: color-mix(in srgb, var(--paper) 22%, var(--ink)); }
.plan-premium .kicker { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.price { font-size: clamp(44px, 4.8vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: inherit; opacity: 0.75; margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid currentColor; }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--rule, var(--line)); font-size: 16px; line-height: 1.45; }
.counter { display: flex; align-items: center; gap: 12px; }
.counter-sq { display: flex; gap: 5px; }
.counter-sq i { width: 14px; height: 14px; border: 2px solid var(--ink); }
.counter-sq i.on { background: var(--ink); }
.premium-mark { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.name-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; }
.loops { display: grid; gap: 0; margin-top: clamp(48px, 6vw, 88px); }
.loop { display: grid; gap: 8px; padding: 20px 0 24px; border-top: 1px solid var(--line); min-width: 0; }
.loop h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.loop p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sub); }
@media (min-width: 860px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loops { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .loop { border-top: 2px solid var(--ink); }
}

.partners { display: grid; gap: 24px; margin-top: clamp(64px, 8vw, 120px); }
.flow { display: grid; gap: 0; margin-top: 12px; }
.flow-step { border: 2px solid var(--ink); padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; background: var(--paper); }
.flow-step .step-num { justify-self: start; }
.flow-step p { margin: 0; font-size: 15px; line-height: 1.5; }
.flow-arrow { position: relative; height: 32px; }
.flow-arrow::before { content: ""; position: absolute; left: calc(50% - 1px); top: 4px; bottom: 10px; width: 2px; background: var(--accent); }
.flow-arrow::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: 2px; border-style: solid; border-width: 9px 6px 0 6px; border-color: var(--accent) transparent transparent transparent; }
.mock { border: 2px solid var(--ink); background: var(--card); font-size: 13px; }
.mock-field { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 2px solid var(--ink); font-weight: 800; }
.mock-field .caret { width: 2px; height: 15px; background: var(--accent); animation: pb-caret 1.1s steps(1) infinite; }
@keyframes pb-caret { 50% { opacity: 0; } }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; gap: 8px; }
.mock-row + .mock-row { border-top: 1px solid var(--line); }
.mock-row u { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mock-row b { font-weight: 800; }
.mock-row span { color: var(--sub); font-size: 12px; }
@media (min-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: stretch; }
  .flow-arrow { height: auto; }
  .flow-arrow::before { left: 6px; right: 12px; top: calc(50% - 1px); bottom: auto; width: auto; height: 2px; }
  .flow-arrow::after { left: auto; right: 3px; bottom: auto; top: calc(50% - 6px); border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--accent); }
}

/* ---------- platform ---------- */
.arch { display: grid; gap: 0; margin-top: clamp(36px, 4vw, 56px); }
.arch-apps { display: grid; gap: 16px; }
.node { border: 2px solid var(--ink); padding: 22px; display: grid; gap: 12px; align-content: start; background: var(--paper); min-width: 0; }
.node-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.node h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 12px; }
.node p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sub); }
.node-server { background: var(--ink); color: var(--paper); }
.node-server p { color: color-mix(in srgb, var(--paper) 74%, var(--ink)); }
.status { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border: 2px solid currentColor; white-space: nowrap; }
.status-soon { color: var(--accent-text); }
.node-server .status { color: var(--paper); }
.device { width: 16px; height: 26px; border: 2px solid currentColor; border-radius: 4px; position: relative; flex: none; }
.device::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 2px; margin-left: -2px; background: currentColor; }
.server-glyph { width: 22px; height: 24px; display: grid; gap: 3px; flex: none; }
.server-glyph i { border: 2px solid currentColor; position: relative; }
.server-glyph i::after { content: ""; position: absolute; right: 3px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; background: var(--accent); }
.arch-link { position: relative; height: 48px; }
.arch-link::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--ink); }
.arch-link i { position: absolute; left: calc(50% - 4px); width: 8px; height: 8px; background: var(--accent); top: 0; animation: pb-flow 2.4s linear infinite; }
.arch-link i + i { animation-delay: -1.2s; }
.arch-svg { display: none; }
.arch-svg path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.arch-svg .flow { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 22; animation: pb-dash 1.4s linear infinite; }
@keyframes pb-dash { to { stroke-dashoffset: -30; } }
@keyframes pb-flow { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@media (min-width: 900px) {
  .arch { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; }
  .arch-link { height: 100%; min-height: 200px; }
  .arch-link::before, .arch-link i { display: none; }
  .arch-svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  @keyframes pb-flow-x { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(88px); opacity: 0; } }
}

/* ---------- close ---------- */
.close { padding-block: clamp(80px, 10vw, 152px) clamp(40px, 5vw, 64px); }
.quote { margin: 0; display: grid; gap: 22px; min-height: 13em; align-content: start; max-width: 1000px; }
.quote blockquote {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.quote figcaption { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.contact { display: grid; gap: 28px; margin-top: clamp(56px, 7vw, 104px); padding-top: 24px; border-top: 2px solid var(--ink); }
.contact .wordmark-text { font-size: clamp(44px, 7vw, 96px); }
.contact .wordmark-square { width: clamp(14px, 2vw, 26px); height: clamp(14px, 2vw, 26px); }
.contact .wordmark { gap: clamp(4px, 0.6vw, 8px); }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email output { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -0.01em; user-select: all; -webkit-user-select: all; }
.copy-btn { height: 40px; padding: 0 14px; font-size: 12px; }
.foot { margin-top: clamp(48px, 6vw, 80px); padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--sub); max-width: 52em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  .smoke-in .w, .smoke-out .w, .block-in, .block-out { animation: none !important; }
  .arch-link i, .mock-field .caret, .arch-svg .flow { animation: none; }
}

/* ---------- once-off rules (no inline styles under the CSP) ---------- */
.demo-470 { --demo-max: 470px; }
.demo-430 { --demo-max: 430px; }
.text-sub { color: var(--sub); }
.h3-xl { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; }
.v-6 { display: grid; gap: 6px; }
.v-8 { display: grid; gap: 8px; }
.flush { margin: 0; }
.list-bare { list-style: none; padding: 0; margin: 0; }

/* The game marks: each square's place. */
.mark-grid i:nth-child(1) { left: 0; top: 0; }
.mark-grid i:nth-child(2) { left: 14px; top: 0; }
.mark-grid i:nth-child(3) { left: 14px; top: 14px; }
.mark-grid i:nth-child(4) { left: 28px; top: 14px; }
.mark-grid i:nth-child(5) { left: 0; top: 28px; }
.mark-grid i:nth-child(6) { left: 28px; top: 28px; }
.mark-stack i:nth-child(1) { left: 14px; top: 14px; }
.mark-stack i:nth-child(2) { left: 0; top: 28px; }
.mark-stack i:nth-child(3) { left: 14px; top: 28px; }
.mark-stack i:nth-child(4) { left: 28px; top: 28px; }
.mark-math i:nth-child(1) { left: 14px; top: 0; height: 7px; opacity: .25; }
.mark-math i:nth-child(2) { left: 14px; top: 7px; height: 7px; opacity: .5; }
.mark-math i:nth-child(3) { left: 14px; top: 14px; height: 6px; opacity: .75; }
.mark-math i:nth-child(4) { left: 14px; top: 20px; height: 12px; }
.mark-math i:nth-child(5) { left: 0; top: 36px; height: 4px; }
.mark-math i:nth-child(6) { left: 14px; top: 36px; height: 4px; }
.mark-math i:nth-child(7) { left: 28px; top: 36px; height: 4px; }
