/* Sara — site stylesheet.
   Notion's language, sharpened: warm near-black on white and off-white, hairlines,
   sentence case, one family. One accent, and it belongs to the payload alone.
   Base rules describe the static page. `html.motion` (set by app.js when JS runs and
   the reader has not asked for reduced motion) adds the sticky stages and start states.
   See docs/redesign/design.md. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Caveat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/Newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/Newsreader-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-italic-latin.woff2") format("woff2");
}

:root {
  --ink: #37352f;
  --ink-2: #5f5e5a;
  --ink-3: #9b9a97;
  --paper: #ffffff;
  --paper-warm: #f7f6f3;
  --line: #e9e9e7;
  --line-strong: #d3d1cb;
  --night: #191918;
  --night-2: #242422;
  --night-3: #2f2f2c;
  --night-line: rgba(255, 255, 255, 0.11);
  --night-ink: #e6e5e1;
  --night-ink-2: #a6a5a0;
  --signal: #d9730d;
  --signal-ink: #b85c05;
  --signal-soft: #fbecdd;
  --tg: #29a9eb;
  --slack: #4a154b;
  --gh-green: #1a7f37;
  --gh-purple: #8250df;
  --claude: #d97757;
  --codex: #10a37f;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Lyon Text", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --h1: clamp(2.6rem, 6.4vw, 5rem);
  --h2: clamp(1.9rem, 3.6vw, 2.8rem);
  --h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --wrap: 1120px;
  --measure: 68ch;
  --win-shadow: 0 1px 2px rgba(15, 15, 15, 0.05), 0 12px 32px -12px rgba(15, 15, 15, 0.18);
  --bar-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03";
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--h1); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--h2); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Depth: the short version hides the machinery. */
html[data-depth="short"] [data-tech] { display: none !important; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.topbar, .topbar .nav, .depth, .depth button { transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.topbar.dark { background: rgba(25, 25, 24, 0.78); border-bottom-color: var(--night-line); color: var(--night-ink); }
.topbar.dark .nav { color: var(--night-ink-2); }
.topbar.dark .depth { background: var(--night-2); border-color: var(--night-line); }
.topbar.dark .depth button { color: var(--night-ink-2); }
.topbar.dark .depth button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark .beat {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gh-green);
  box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.35);
}
html.motion .wordmark .beat { animation: beat 2.4s ease-out infinite; }
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.35); }
  60% { box-shadow: 0 0 0 7px rgba(26, 127, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); }
}
.nav { display: flex; gap: 20px; font-size: 15px; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.depth { margin-left: auto; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-warm); }
.depth button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2);
  padding: 4px 12px; border-radius: 999px; cursor: pointer; line-height: 1.4;
}
.depth button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) {
  .nav { display: none; }
  /* Pages without the depth switch keep their links; the bar has the room. */
  .topbar:not(:has(.depth)) .nav { display: flex; gap: 14px; font-size: 14px; }
  .depth button { padding: 4px 9px; font-size: 13px; }
}

/* ---------- hero ---------- */

.hero { min-height: calc(100vh - var(--bar-h)); display: flex; align-items: center; padding: clamp(40px, 6vh, 96px) 0; border-bottom: 1px solid var(--line); }
.hero > .wrap { width: min(1280px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.lede .owner, .hint { font-weight: 500; color: var(--ink); text-decoration: underline dashed; text-decoration-color: var(--ink-3); text-decoration-thickness: 1.5px; text-underline-offset: 5px; cursor: help; }
.lede .owner { cursor: pointer; }
.lede .owner:hover, .hint:hover, .hint:focus-visible { text-decoration-color: var(--ink); }
.hint { position: relative; outline: none; }
/* The lede's entrance leaves a transform behind, which confines its popovers to its own stacking
   context; the call-to-action below would then paint over an open card. Order them explicitly. */
.hero-copy .lede { position: relative; z-index: 2; }
.hero-copy .hero-cta { position: relative; z-index: 1; }
.hint:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
/* A popover: a small night card above the word. Hover and keyboard focus open it; on a phone a tap
   toggles it (app.js). It never takes the pointer while closed. */
.pop {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 60; width: 300px;
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line); border-radius: 10px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6); font-weight: 400; font-size: 13.5px; line-height: 1.45; text-align: left;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pop::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: -7px; width: 12px; height: 12px; background: var(--night); border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); transform: rotate(45deg); }
.hint:hover .pop, .hint:focus-within .pop, .hint.open .pop { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* No room above the word (a phone, or the top of the page): the card opens below it instead. */
.hint.below .pop { bottom: auto; top: calc(100% + 12px); transform: translate(-50%, -6px); }
.hint.below:hover .pop, .hint.below:focus-within .pop, .hint.below.open .pop { transform: translate(-50%, 0); }
.hint.below .pop::after { bottom: auto; top: -7px; border: 0; border-left: 1px solid var(--night-line); border-top: 1px solid var(--night-line); }
.pop-box { padding: 14px 16px 12px; display: block; }
.pop-title { display: block; font-weight: 600; color: var(--night-ink); margin-bottom: 8px; }
.pop-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; color: var(--night-ink-2); font-family: var(--mono); font-size: 12px; }
.pop-live { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--night-line); color: var(--night-ink-2); font-size: 12.5px; }
.pop-live b { color: var(--signal); font-weight: 600; }
.pop-map { padding: 0; overflow: hidden; display: block; }
.pop-map .map { display: block; width: 100%; height: auto; }
.map .land { fill: #2a2a27; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; stroke-linejoin: round; }
.map .sea, .map .region { font-family: var(--mono); font-size: 9px; fill: rgba(255, 255, 255, 0.28); letter-spacing: 0.06em; }
.map .city { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: #e6e5e1; }
.map .pin { fill: var(--signal); stroke: #191918; stroke-width: 1.5; }
.map .ring { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0.55; }
html.motion .map .ring { animation: ring 2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ring { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.pop-caption { display: block; padding: 10px 14px 12px; color: var(--night-ink-2); font-size: 12.5px; border-top: 1px solid var(--night-line); }
@media (max-width: 600px) { .pop { width: min(300px, calc(100vw - 32px)); } }
.lede .owner span { font-family: var(--mono); font-size: 0.85em; color: var(--ink-2); }
.cue .cue-arrow { transition: transform 0.3s; }
.cue:hover .cue-arrow { transform: translateY(3px); }
html.motion .cue .cue-arrow { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero-copy .lede { margin-top: 26px; font-size: clamp(17px, 1.35vw, 20px); max-width: 34em; color: var(--ink-2); }
.hero-copy .lede b { color: var(--ink); font-weight: 500; }
.hero-cta { margin-top: 34px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 15px; border: 1px solid var(--ink);
}
.btn:hover { text-decoration: none; background: #26251f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--paper-warm); }
.hero-win { justify-self: end; width: min(100%, 520px); }
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.scroll-cue svg { transition: transform 0.3s; }
.scroll-cue:hover svg { transform: translateY(3px); }
.scroll-cue:hover { text-decoration: none; color: var(--ink); }
@media (max-width: 860px) {
  .hero { min-height: 0; display: block; }
  .hero > .wrap { grid-template-columns: 1fr; width: min(1280px, calc(100% - 48px)); }
  .hero-win { justify-self: start; }
}

/* ---------- windows ---------- */

.win {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--win-shadow);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}
.win-bar {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.win-title { font-weight: 600; font-size: 13.5px; }
.win-sub { font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.win-body { padding: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; flex: none; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e5e5e3; display: block; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }

/* Telegram */
.win-telegram .win-bar { background: #517da2; color: #fff; border-bottom: 0; }
.win-telegram .win-title { color: #fff; }
.win-telegram .win-sub { color: rgba(255, 255, 255, 0.72); }
.win-telegram .win-body { background: #e7ebf0; display: flex; flex-direction: column; gap: 8px; min-height: 250px; }
.bubble { max-width: 86%; padding: 8px 12px; border-radius: 12px; background: #fff; color: #222; font-size: 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.bubble.out { align-self: flex-end; background: #effdde; border-bottom-right-radius: 4px; }
.bubble.in { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble .meta { display: block; text-align: right; font-size: 11px; color: rgba(0, 0, 0, 0.4); margin-top: 2px; }
.voice { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.voice .play { width: 34px; height: 34px; border-radius: 50%; background: #62b164; display: grid; place-items: center; color: #fff; flex: none; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; }
.wave i { display: block; width: 3px; border-radius: 2px; background: #62b164; height: var(--h, 40%); opacity: 0.45; }
.wave i.on { opacity: 1; }
.voice .dur { font-size: 12px; color: rgba(0, 0, 0, 0.45); }
.transcript { font-size: 14px; }
.transcript .cursor { display: inline-block; width: 1px; height: 1em; background: #222; vertical-align: -0.15em; margin-left: 1px; }
html.motion .transcript .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Notion */
.win-notion .win-bar { gap: 8px; }
.win-notion .crumb { color: var(--ink-3); font-size: 13px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; min-height: 220px; background: var(--paper); }
.board .slot + .card, .board .card + .card { margin-top: 8px; }
.col-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.col-head .pill { padding: 1px 8px; border-radius: 4px; font-size: 12px; background: var(--paper-warm); }
.col-head .pill.next { background: #e7f3f8; color: #1f5f86; }
.col-head .pill.doing { background: #fbecdd; color: #8a4a06; }
.col-head .pill.done { background: #edf3ec; color: #2f6a41; }
.card {
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.05); font-size: 13.5px; line-height: 1.35;
}
.card .tag { display: inline-block; margin-top: 8px; padding: 1px 7px; border-radius: 4px; background: var(--paper-warm); color: var(--ink-2); font-size: 11.5px; }
.card.ghost { visibility: hidden; }
.slot { min-height: 64px; border: 1px dashed var(--line); border-radius: 6px; }

/* GitHub */
.win-github .win-bar { background: #f6f8fa; }
.win-github .repo { font-size: 13.5px; color: #59636e; }
.win-github .repo b { color: #1f2328; font-weight: 600; }
.pr-title { font-size: 15.5px; font-weight: 600; color: #1f2328; line-height: 1.3; }
.pr-meta { margin-top: 6px; font-size: 13px; color: #59636e; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.state { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; }
.state.open { background: #1a7f37; }
.state.merged { background: #8250df; }
.branch { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 4px; background: #ddf4ff; color: #0969da; }
.checks { margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid #d1d9e0; border-radius: 6px; overflow: hidden; }
.checks li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; color: #1f2328; background: #fff; border-top: 1px solid #d1d9e0; }
.checks li:first-child { border-top: 0; }
.checks .ok { width: 16px; height: 16px; border-radius: 50%; background: #1a7f37; display: grid; place-items: center; color: #fff; font-size: 11px; flex: none; }
.checks .wait { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #bf8700; border-top-color: transparent; flex: none; }
html.motion .checks .wait { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks .name { flex: 1; }
.checks .dim { color: #59636e; font-size: 12px; }
.merge-line { margin-top: 12px; font-size: 13px; color: #59636e; display: flex; align-items: center; gap: 8px; }
.merge-line .state { font-size: 11px; }

/* Slack */
.win-slack { display: grid; grid-template-columns: 56px 1fr; }
.win-slack .side { background: var(--slack); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.win-slack .side i { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); display: block; }
.win-slack .side i.on { background: #fff; }
.win-slack .main .win-bar { padding-inline: 14px; }
.msg { display: flex; gap: 10px; padding: 12px 14px; align-items: flex-start; }
.msg .who { font-weight: 700; font-size: 14px; color: #1d1c1d; }
.msg .who span { font-weight: 400; color: #616061; font-size: 12px; margin-left: 6px; }
.msg p { font-size: 14px; color: #1d1c1d; margin-top: 2px; }
.msg .link { color: #1264a3; }
.msg .app { font-size: 10px; padding: 0 4px; border-radius: 3px; background: #e8e8e8; color: #616061; vertical-align: 1px; margin-left: 4px; }
.reactions { display: flex; gap: 6px; padding: 0 14px 12px 52px; }
.reactions span { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid #ddd; background: #f8f8f8; }

/* Terminal */
.win-term { background: #1e1e1c; color: #d8d7d2; border-color: rgba(255, 255, 255, 0.1); font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.win-term .win-bar { background: #2a2a28; border-bottom-color: rgba(255, 255, 255, 0.08); }
.win-term .win-title { color: #b5b4ae; font-family: var(--sans); font-weight: 500; }
.win-term .win-body { padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.win-term .line { display: block; }
.win-term .p { color: #8f8e8a; }
.win-term .ok { color: #7ac27f; }
.win-term .warn { color: #e2b04a; }
.win-term .k { color: #9ec5e8; }
.win-term .s { color: var(--signal); }
.win-term .dim { color: #6f6e6a; }
.win-term.claude .win-bar { border-top: 2px solid var(--claude); }
.win-term.codex .win-bar { border-top: 2px solid var(--codex); }
.win-term.aws .win-bar { border-top: 2px solid #ff9900; }
.term-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.term-pair .win-term { font-size: 12px; }
@media (max-width: 720px) { .term-pair { grid-template-columns: 1fr; } }

/* Repo card */
.win-repo .win-body { padding: 18px; }
.win-repo .name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.win-repo .name span { color: var(--ink-3); font-weight: 400; }
.win-repo .desc { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.win-repo .facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.win-repo .facts b { font-weight: 500; color: var(--ink); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.win-repo .files { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); display: grid; gap: 4px; }
.badge { display: inline-flex; font-size: 11px; font-weight: 600; border-radius: 3px; overflow: hidden; font-family: var(--sans); }
.badge span { padding: 2px 6px; }
.badge span:first-child { background: #555; color: #fff; }
.badge span:last-child { background: var(--gh-green); color: #fff; }

/* ---------- the flow ---------- */

.act { position: relative; }
.act-head { padding: clamp(56px, 10vh, 120px) 0 clamp(16px, 3vh, 32px); }
.act-head .act-n { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.act-head h2 { max-width: 20ch; }
.act-head p { margin-top: 14px; max-width: 46em; color: var(--ink-2); }

.station { position: relative; }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(40px, 8vh, 96px) 0;
}
.station.alt .stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.station.alt .stage .copy { order: 2; }
.station.alt .stage .stage-win { order: 1; }
.copy .step { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.copy .step i { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; background: var(--paper-warm); border: 1px solid var(--line); color: var(--ink); }
.copy h2 { font-size: var(--h2); }
.copy p { margin-top: 16px; max-width: 34em; color: var(--ink-2); }
.copy .mech {
  margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--line-strong);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink-2); max-width: 40em;
}
.copy .mech b { color: var(--ink); font-weight: 600; }
.stage-win { position: relative; width: min(100%, 600px); justify-self: center; }
.station.alt .stage-win { justify-self: center; }

/* The payload: one thing, one colour. */
.payload {
  position: absolute; left: 50%; top: 0; z-index: 5;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 320px; padding: 7px 12px; border-radius: 999px;
  background: var(--signal); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.3;
  box-shadow: 0 8px 24px -8px rgba(217, 115, 13, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.payload .ic { width: 16px; height: 16px; flex: none; }
.payload.file { border-radius: 6px; font-family: var(--mono); font-weight: 500; }
html:not(.motion) .payload { display: none; }
html.motion .payload { opacity: 0; left: 0; top: 0; }
.dock { position: relative; }
.dock::after { content: ""; }

/* Motion layout: sticky stages, tall stations, start states. */
html.motion .station { height: 220vh; }
html.motion .stage { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); padding: 0; }
html.motion .stage-win { will-change: transform; }
html.motion .station .reveal { opacity: 0; transform: translateY(14px); }
html.motion .station .line, html.motion .station .late { opacity: 0; }
html.motion .station.alt .stage-win, html.motion .station .stage-win { transform: translateY(24px); opacity: 0.001; }
/* Phones: the window is the point, so it takes the top of the screen and most of its height.
   `.copy` dissolves into the stage grid so its label and heading can sit above the window and
   its paragraph below it; the scenes still find `.reveal`, `.line` and the dock by class. */
@media (max-width: 860px) {
  .stage, .station.alt .stage { grid-template-columns: 1fr; gap: 12px; align-content: start; padding: 20px 0; }
  .copy { display: contents; }
  .copy .step { order: 1; margin-bottom: 0; }
  .copy h2 { order: 2; font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .stage-win { order: 3; width: 100%; justify-self: stretch; }
  .copy > p:not(.step):not(.mech) { order: 4; margin-top: 2px; font-size: 15.5px; line-height: 1.5; max-width: none; }
  .copy .mech { order: 5; margin-top: 4px; font-size: 12px; }
  /* A flex item and a grid item will not shrink below their content unless told to, and a
     terminal line kept on one line is wide content: without these the whole page grew sideways. */
  .stage > *, .stage-win, .stage-win > .win, .term-pair > .win, .win-term .win-body { min-width: 0; max-width: 100%; }
  .stage-win > .win { display: flex; flex-direction: column; min-height: 42vh; }
  .stage-win > .win > .win-body, .stage-win > .win > .board { flex: 1; }
  .win { font-size: 14.5px; }
  .win-term { font-size: 12px; }
  .win-term .win-body { white-space: pre; overflow-x: auto; overscroll-behavior-x: contain; }
  .win-term .line { display: block; white-space: pre; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .col:nth-child(3) { display: none; }
  .win-slack { grid-template-columns: 1fr; }
  .win-slack .side { display: none; }
  .term-pair { gap: 10px; }
  .term-pair .win { min-height: 0; }
  html.motion .station { height: 170vh; }
  html.motion .stage { align-content: start; padding: 16px 0 0; }
}

/* ---------- the machine (Act II) ---------- */

.machine { position: relative; background: var(--night); color: var(--night-ink); }
/* The background is an absolute box the exact size of the act; the sticky box inside it
   is what stays on screen. No negative margins: a sticky element with a negative bottom
   margin is allowed to overhang its container by that much, and the first build had the
   dark act's canvas reaching a full viewport into Act III. */
/* No `overflow: hidden` here: an overflow other than visible makes this box the sticky
   child's scroll container, and it then never sticks to the viewport at all. */
.machine-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.machine-bg .sticky { position: sticky; top: 0; height: 100vh; width: 100%; }
.machine-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.machine-bg .veil { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 100%, rgba(25, 25, 24, 0.55), rgba(25, 25, 24, 0.2) 60%, rgba(25, 25, 24, 0) 100%); }
.machine .act-head, .machine .station { position: relative; z-index: 1; }
.machine .act-head .act-n, .machine .act-head p, .machine .copy p, .machine .copy .step { color: var(--night-ink-2); }
.machine .copy .step i { background: var(--night-2); border-color: var(--night-line); color: var(--night-ink); }
.machine .copy .mech { border-left-color: rgba(255, 255, 255, 0.2); color: var(--night-ink-2); }
.machine .copy .mech b { color: var(--night-ink); }
.machine .win { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.machine .win-github { color: #1f2328; }
html:not(.motion) .machine-bg { display: none; }
/* With motion, app.js scrubs the act's background from paper to night as it arrives and
   back as it leaves, and fades the frames with it; the stylesheet keeps the crisp edge for
   the static page. */

/* ---------- pulse ---------- */

.pulse { padding: clamp(64px, 12vh, 140px) 0; background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pulse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pulse-head p { margin-top: 12px; max-width: 46em; color: var(--ink-2); }
.measured { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.figure { background: var(--paper); padding: 22px 22px 20px; position: relative; overflow: hidden; }
.figure::before { content: ""; position: absolute; left: 22px; top: 0; width: 28px; height: 3px; background: var(--accent, var(--ink)); }
.figure .n { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent, var(--ink)); }
.figure .l { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.pulse-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.panel { background: var(--paper); padding: 22px; }
.panel h3 { font-size: 15px; font-weight: 600; }
.panel .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.bar { position: relative; height: 10px; border-radius: 999px; background: var(--paper-warm); margin-top: 16px; overflow: visible; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--tier, var(--gh-green)); }
.bar .mark { position: absolute; top: -4px; width: 1px; height: 18px; background: var(--line-strong); }
.bar .mark::after { content: attr(data-l); position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-legend { display: flex; justify-content: space-between; margin-top: 34px; font-size: 13.5px; color: var(--ink-2); }
.share { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 16px; }
.share i { display: block; height: 100%; }
.share-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.share-legend b { font-weight: 500; color: var(--ink); }
.spark-wrap { margin-top: 14px; }
.spark-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.spark-head b { font-weight: 600; color: var(--signal-ink); }
.spark-box { width: 100%; min-width: 0; }
.spark { margin-top: 10px; width: 100%; height: 110px; display: block; }
/* The viewBox is the box's measured width, so nothing is stretched; the stroke is pinned anyway. */
.spark path.l, .spark line.g { vector-effect: non-scaling-stroke; }
.pulse-grid > .panel, .figures > .figure { min-width: 0; }
.spark path.l { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark path.a { fill: url(#spark-fill); stroke: none; }
.spark line.g { stroke: var(--line); stroke-width: 1; }
.spark circle.dot { fill: var(--signal); stroke: var(--paper); stroke-width: 2; }
.spark-axis { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 2px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.spark line.ref { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.spark-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.spark-legend b { font-weight: 600; color: var(--ink); }
.spark-legend .key { display: inline-block; width: 18px; height: 0; margin-right: 7px; vertical-align: middle; border-top: 2px solid var(--signal); }
.spark-legend .key-ref { border-top: 2px dashed var(--ink-2); }
.spark-wrap .reading { margin-top: 10px; }
.panel-wide { grid-column: 1 / -1; }
/* The bill and the free pool: dollars and tokens that are not the token-priced spend, set in
   the panel's own language -- a label, a tabular number, hairline rows. */
.cost-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 18px; }
.cost-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cost { min-width: 0; }
.cost-l { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.cost-n { margin-top: 6px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.svc { list-style: none; margin: 12px 0 0; padding: 0; }
.svc li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.svc li span { min-width: 0; overflow-wrap: anywhere; }
.svc li b { font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.budget { margin-top: 18px; }
.budget .sub b, .pool-price b { font-weight: 600; color: var(--ink); }
.budget .bar { margin-top: 10px; }
.pool-price { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.pool-price + .sub, .cost-pair + .sub { margin-top: 6px; }
.est { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--signal-soft); color: var(--signal-ink); font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.not-looked { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-strong); font-size: 14.5px; }
.not-looked b { font-weight: 600; }
@media (max-width: 520px) {
  /* Three counts side by side break a long number in two on a phone; set them as rows. */
  .cost-pair { grid-template-columns: 1fr; }
  .cost-trio { gap: 0; }
  .cost-trio .cost { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
  .cost-trio .cost:first-child { border-top: 0; }
  .cost-trio .cost-n { margin-top: 0; font-size: 1.25rem; }
}
.prs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.prs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--paper); font-size: 14.5px; }
.prs a { color: var(--ink); text-decoration: none; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
.prs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prs .pr-title { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prs .pr-state { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--st, var(--ink-3)); }
.prs .pr-when { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 860px) {
  .prs li { grid-template-columns: 1fr auto; }
  .prs .pr-title { grid-column: 1 / -1; white-space: normal; }
}
.latest { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.latest li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.latest li:first-child { border-top: 0; }
.latest time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 2px; }
.could-not-look { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 15px; max-width: 60ch; }
.could-not-look b { font-weight: 600; }
@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-grid { grid-template-columns: 1fr; }
}

/* ---------- closing ---------- */

.closing { padding: clamp(64px, 12vh, 140px) 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.fact .big { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.fact p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.sign { margin-top: 56px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: italic; color: var(--ink-2); max-width: 30em; }
.sign span { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* ---------- notes: a row of cards that slides as you scroll ---------- */

/* The row's track is wider than the viewport by design; `clip` hides the overflow without
   making the section a scroll container, so the sticky inner box still sticks and the page
   never gains a horizontal scrollbar. */
.notes { position: relative; padding: clamp(64px, 12vh, 140px) 0 0; overflow-x: clip; }
html, body { overflow-x: clip; }
.notes-sticky { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 96px); }
.notes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.notes-head p { margin-top: 12px; max-width: 40em; color: var(--ink-2); }
.notes-track-wrap { margin-top: clamp(28px, 4vh, 44px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.notes-track-wrap::-webkit-scrollbar { display: none; }
.notes-track { display: flex; gap: 24px; width: max-content; padding-left: max(24px, calc((100vw - var(--wrap)) / 2)); padding-right: 24px; will-change: transform; }
.notes-track > .could-not-look { margin: 0; }
.note-card { width: min(560px, 82vw); flex: none; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.note-card:hover { text-decoration: none; box-shadow: var(--win-shadow); transform: translateY(-2px); }
.note-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--paper-warm); border-bottom: 1px solid var(--line); font-size: clamp(56px, 6vw, 84px); line-height: 1; }
.note-cover img { width: 100%; height: 100%; object-fit: cover; }
.note-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.note-kicker { font-size: 13px; color: var(--ink-2); }
.note-card h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.note-deck { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); display: flex; justify-content: space-between; gap: 12px; }
.note-meta b { font-family: var(--sans); font-weight: 500; color: var(--ink); }
html.motion .notes-sticky { position: sticky; top: var(--bar-h); z-index: 2; }
html.motion .notes-track-wrap { overflow: visible; }

/* ---------- a story (one post), measured from notion.com/customers/cursor ---------- */
/* At 1440px: a split hero (title column 617px wide, centred, 42px/48px; a 713×570 cover bleeding
   to the right edge), then a 640px body column at 20px/28px with a 232px aside to its right —
   "Insights from", "Use cases" — pull quotes 1069px wide at 32px/40px with a 48px round face,
   figures 1214px wide with 15px captions, a centred 42px CTA, and "How other teams use Notion"
   as cards: logo, 350×219 cover, "Customer story", 22px/28px title. Same numbers here. */

.story-page { background: var(--paper); }
.story-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 570px; align-items: stretch; }
.story-hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px max(48px, calc((100vw - 1440px) / 2 + 48px)) 64px 48px; padding-left: max(48px, calc((100vw - 1440px) / 2 + 48px)); }
.story-mark { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.story-hero h1 { margin-top: 20px; font-size: 42px; line-height: 48px; font-weight: 700; letter-spacing: -1.5px; max-width: 617px; }
.story-when { margin-top: 18px; font-size: 14px; color: var(--ink-3); font-family: var(--mono); }
.story-hero-cover { position: relative; min-height: 570px; background: var(--paper-warm); display: grid; place-items: center; font-size: 160px; line-height: 1; overflow: hidden; }
.story-hero-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-hero-cover.has-bg { background: var(--cover-bg); }
.story-hero-cover.has-bg img { object-fit: contain; }
.emoji-over { position: relative; z-index: 1; font-size: 0.55em; line-height: 1; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)); }
.story-hero-cover .emoji-over { font-size: 160px; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(280px, 1fr); padding: 48px 48px 0; }
.story-main { min-width: 0; grid-column: 2; }
.story-deck { font-size: 16px; line-height: 24px; color: rgba(0, 0, 0, 0.54); margin: 0; }
.story-body { margin-top: 32px; font-family: var(--serif); font-optical-sizing: auto; font-size: 20px; line-height: 28px; color: rgba(0, 0, 0, 0.898); }
.story-body p { margin: 16px 0; }
.story-body > :first-child { margin-top: 0; }
.story-body strong { font-weight: 700; }
.story-body a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 1.8px; }
.story-body h2 { font-family: var(--sans); font-size: 24px; line-height: 36px; font-weight: 700; letter-spacing: normal; color: rgba(0, 0, 0, 0.898); margin: 20px 0; text-wrap: wrap; }
.story-body h3 { font-family: var(--sans); font-size: 20px; line-height: 28px; font-weight: 700; margin: 20px 0; }
.story-body h4 { font-family: var(--sans); font-size: 18px; line-height: 26px; font-weight: 700; margin: 20px 0; }
.story-body ul, .story-body ol { margin: 20px 0; padding-left: 28px; }
.story-body li { margin: 0; }
.story-body li > p { margin: 0; }
.story-body pre { font-size: 14px; line-height: 1.55; margin: 24px 0; }
.story-body code { font-family: var(--mono); }
.story-body table { font-family: var(--sans); }
.story-body table { font-size: 16px; }
.story-body .pull { position: relative; width: min(1069px, calc(100vw - 96px)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 32px 0; padding: 32px 0; text-align: center; }
.story-body .pull blockquote { margin: 0; padding: 0; border: 0; font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: normal; color: rgba(0, 0, 0, 0.95); text-wrap: balance; }
.story-body .pull blockquote p { margin: 0; }
.story-body .pull figcaption { margin: 0; display: grid; grid-template-columns: 48px auto; column-gap: 8px; align-items: center; text-align: left; font-family: var(--sans); font-size: 14px; line-height: 20px; color: rgba(0, 0, 0, 0.54); }
.story-body .pull figcaption .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); font-size: 18px; }
.story-body .pull .who b { display: block; font-weight: 400; color: rgba(0, 0, 0, 0.95); }
.story-body .pull .who i { display: block; font-style: normal; }
.story-body .fig { position: relative; width: min(840px, calc(100vw - 96px)); left: 50%; transform: translateX(-50%); margin: 32px 0; }
.story-body .fig img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }
.story-body .fig figcaption { margin-top: 24px; text-align: left; font-family: var(--sans); font-size: 15px; line-height: 22.5px; color: rgba(0, 0, 0, 0.54); }
/* Level with the aside: the column's width, so nothing runs under the facts or the share row (blog.js clearTheAside). */
.story-body .fig.narrow, .story-body .pull.narrow { width: 100%; left: auto; transform: none; }
.story-body table { display: block; overflow-x: auto; }
.toc { margin: 0 0 28px; padding-left: 20px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.toc li + li { margin-top: 6px; }
.toc a:hover { color: var(--ink); }
.story-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.story-sources h2 { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 12px; }
.story-sources ol { padding-left: 22px; }
.story-sources li + li { margin-top: 6px; }
.story-sources a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.story-body blockquote:not(.pull blockquote) { margin: 20px 0; padding-left: 20px; border-left: 2px solid var(--line-strong); color: rgba(0, 0, 0, 0.54); }
.story-aside { grid-column: 3; padding-left: 48px; max-width: 280px; font-size: 14px; line-height: 20px; color: rgba(0, 0, 0, 0.898); }
.aside-label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.125px; color: rgba(0, 0, 0, 0.54); margin: 0 0 8px; }
.story-aside > .aside-label + * { margin-bottom: 24px; }
.story-aside .person { display: grid; grid-template-columns: 48px auto; column-gap: 8px; align-items: center; margin: 4px 0 24px; }
.story-aside .person .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); font-size: 18px; }
.story-aside .person b { display: block; font-weight: 400; color: rgba(0, 0, 0, 0.95); }
.story-aside .person span { color: rgba(0, 0, 0, 0.54); }
.aside-facts { display: grid; gap: 8px; }
.fact-row { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fact-row span:first-child { color: rgba(0, 0, 0, 0.54); font-size: 12px; }
.results { display: grid; gap: 12px; }
.result b { display: block; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result span { color: var(--ink-2); }
.story-cta { text-align: center; padding: clamp(80px, 12vh, 140px) 48px 0; }
.story-cta h2 { font-size: 42px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; max-width: 20em; margin-inline: auto; }
.story-cta p { margin: 16px auto 0; font-size: 20px; line-height: 28px; color: var(--ink-2); max-width: 42em; }
.story-cta .btn { margin-top: 28px; }
.story-more { width: min(1214px, calc(100% - 96px)); margin: clamp(80px, 12vh, 140px) auto 96px; }
.story-more h2 { font-size: 42px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; }
.story-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 66px; margin-top: 56px; }
.story-card { display: block; }
.story-card:hover { text-decoration: none; }
.story-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.story-card-mark { font-size: 14px; font-weight: 600; color: var(--ink); height: 21px; }
.story-card-cover { position: relative; margin-top: 28px; aspect-ratio: 350 / 219; border-radius: 8px; overflow: hidden; background: var(--paper-warm); display: grid; place-items: center; font-size: 64px; line-height: 1; }
.story-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card-cover .emoji-over { font-size: 64px; }
.story-card-kind { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.story-card h3 { margin-top: 8px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.note-cover.has-img { position: relative; }
.note-cover.has-img img { position: absolute; inset: 0; }
.note-cover .emoji-over { font-size: clamp(56px, 6vw, 84px); }
@media (max-width: 980px) {
  .story-hero { grid-template-columns: 1fr; min-height: 0; }
  .story-hero-copy { padding: 56px 24px 32px; }
  .story-hero h1 { font-size: 32px; line-height: 38px; }
  .story-hero-cover { min-height: 0; aspect-ratio: 16 / 10; }
  .story-hero-cover .emoji-over { font-size: 96px; }
  .story-layout { grid-template-columns: 1fr; padding: 32px 24px 0; row-gap: 40px; }
  .story-main { grid-column: auto; }
  .story-aside { grid-column: auto; padding-left: 0; max-width: none; order: -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .story-aside .passon, .story-aside .passon-label { display: none; }
  .story-hero.is-article + .story-layout .story-aside { order: initial; }
  .story-body { font-size: 18px; line-height: 27px; }
  .story-body .pull { width: calc(100vw - 48px); }
  .story-body .pull blockquote { font-size: 24px; line-height: 32px; }
  .story-body .fig { width: calc(100vw - 48px); }
  .story-cta h2, .story-more h2 { font-size: 30px; line-height: 36px; }
  .story-cards { grid-template-columns: 1fr; gap: 40px; }
  .story-more { width: calc(100% - 48px); }
}
@media (max-width: 600px) {
  .story-aside { grid-template-columns: 1fr; }
}

/* ---------- finale: a hero at the end of the page ---------- */

.finale { position: relative; z-index: 0; text-align: center; padding: clamp(150px, 24vh, 260px) 0 clamp(64px, 9vh, 110px); background: transparent; }
/* The sky: five soft blobs that begin a viewport above the section, behind the notes row, and
   fade out again before the footer. Behind everything (z-index -1 in the section's own stacking
   context); the notes row sits at z-index 2 so its cards ride on top of the colour. */
.finale-sky {
  position: absolute; left: 0; right: 0; top: -130vh; height: calc(130vh + 62%); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 30%, #000 58%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 30%, #000 58%, #000 74%, transparent 100%);
}
.finale-sky i { position: absolute; display: block; width: 46vw; height: 46%; top: 26%; border-radius: 50%; filter: blur(46px); opacity: 0.95; will-change: transform; }
.finale-sky i:nth-child(1) { left: -16vw; background: #a9ccff; --dx: 5vw; --dy: 5vh; --d: 21s; }
.finale-sky i:nth-child(2) { left: 8vw; background: #b4e6cf; --dx: -4vw; --dy: 6vh; --d: 17s; }
.finale-sky i:nth-child(3) { left: 30vw; background: #ffe08a; --dx: 3vw; --dy: -5vh; --d: 23s; }
.finale-sky i:nth-child(4) { left: 52vw; background: #ffc7b4; --dx: -5vw; --dy: 4vh; --d: 19s; }
.finale-sky i:nth-child(5) { left: 72vw; background: #e1c2ff; --dx: 4vw; --dy: -6vh; --d: 25s; }
html.motion .finale-sky i { animation: drift var(--d) ease-in-out infinite alternate; }
html.motion .finale-sky i:nth-child(2) { animation-delay: -6s; }
html.motion .finale-sky i:nth-child(3) { animation-delay: -11s; }
html.motion .finale-sky i:nth-child(4) { animation-delay: -3s; }
html.motion .finale-sky i:nth-child(5) { animation-delay: -15s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(var(--dx), var(--dy), 0) scale(1.1); } }
@media (max-width: 720px) { .finale-sky i { width: 80vw; filter: blur(34px); } }
.finale .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.finale-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-bottom: 26px; }
.finale-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #2383e2; box-shadow: 0 0 0 0 rgba(35, 131, 226, 0.35); }
html.motion .finale-live .dot { animation: beat-blue 2.4s ease-out infinite; }
@keyframes beat-blue { 0% { box-shadow: 0 0 0 0 rgba(35, 131, 226, 0.35); } 60% { box-shadow: 0 0 0 7px rgba(35, 131, 226, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 131, 226, 0); } }
.finale-quote { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; max-width: 15.5em; text-wrap: balance; }
.finale-quote .tile { display: inline-block; font-size: 1.15em; line-height: 1; margin: 0 0.08em 0 0.04em; vertical-align: -0.16em; }
.finale-sub { margin-top: 26px; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); }
.finale-sub code { font-size: 0.85em; background: var(--paper-warm); padding: 1px 5px; border-radius: 4px; }
.finale-cta { position: relative; margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scribble { position: relative; font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: #2f9e5b; letter-spacing: 0.01em; transform: rotate(-3deg); margin-bottom: 8px; }
.scribble .curl { position: absolute; left: -46px; top: 16px; color: #2f9e5b; }
.finale .btn { padding: 12px 18px; font-size: 15px; }
.finale-trust { margin-top: clamp(64px, 10vh, 120px); width: 100%; }
.trust-line { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--ink-2); }
.trust-line::before, .trust-line::after { content: ""; width: 64px; height: 1px; background: var(--line-strong); }
.marks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 52px; }
.marks svg { display: block; height: 26px; width: auto; overflow: visible; color: var(--ink-2); filter: grayscale(1) brightness(0.9); opacity: 0.62; transition: filter 0.35s ease, opacity 0.35s ease; }
.marks li:hover svg { filter: none; opacity: 1; }
.mk { font-family: var(--sans); font-size: 30px; fill: currentColor; }
.mk-appel { font-weight: 500; letter-spacing: -0.6px; }
.mk-msft { font-weight: 600; letter-spacing: -0.3px; }
.mk-nvidio { font-weight: 800; font-size: 26px; letter-spacing: 1.2px; }
.mk-goggle { font-weight: 500; font-size: 32px; letter-spacing: -0.8px; }
.mk-amazom { font-weight: 700; letter-spacing: -1px; }
@media (prefers-reduced-motion: reduce) { .marks svg { transition: none; } }
html.motion .finale-quote .l { overflow: hidden; }
html.motion .finale-cta, html.motion .finale-trust { opacity: 0; transform: translateY(10px); }
@media (max-width: 720px) { .scribble .curl { display: none; } .marks { gap: 14px 26px; } .marks li { font-size: 17px; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink); }

/* ---------- blog ---------- */

.page { padding: clamp(48px, 8vh, 96px) 0 clamp(64px, 10vh, 120px); }
.page-head p { margin-top: 12px; color: var(--ink-2); max-width: 46em; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.posts .note-card { width: auto; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tags span { font-size: 12px; padding: 1px 8px; border-radius: 4px; background: var(--paper-warm); color: var(--ink-2); border: 1px solid var(--line); }
.body > * + * { margin-top: 1em; }
.body h2 { font-size: 1.55rem; margin-top: 2em; }
.body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.body h4 { font-size: 1.05rem; margin-top: 1.4em; }
.body ul, .body ol { padding-left: 1.4em; }
.body li + li { margin-top: 0.3em; }
.body pre { padding: 14px 16px; background: var(--night); color: var(--night-ink); border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.body code { background: var(--paper-warm); padding: 1px 4px; border-radius: 4px; font-size: 0.86em; }
.body pre code { background: none; padding: 0; }
.body blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--ink-2); }
.body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.body th, .body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body th { font-weight: 600; }
.body a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.body img { border-radius: 6px; }
.back { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--ink-2); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- share buttons: each one wears its network's colour ---- */
.passon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.passon-label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.125px; color: rgba(0, 0, 0, 0.54); margin: 0 0 8px; width: 100%; }
.story-share { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.story-share .passon-label { margin-bottom: 12px; }
.sh { --brand: #000; position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s, color 0.25s, box-shadow 0.4s; }
.sh::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); transform: scale(0); z-index: -1; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sh::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; pointer-events: none; }
.sh svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.sh:hover, .sh:focus-visible { color: #fff; border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 12px 24px -10px var(--brand); outline: none; }
.sh:hover::before, .sh:focus-visible::before { transform: scale(1); }
.sh:hover svg, .sh:focus-visible svg { animation: sh-wiggle 0.6s ease both; }
.sh:hover::after { animation: sh-ring 1s ease-out infinite; }
.sh:active { transform: translateY(-1px) scale(0.92); transition-duration: 0.1s; }
.sh .tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px) scale(0.9); opacity: 0; white-space: nowrap; padding: 5px 9px; border-radius: 7px; background: var(--brand); color: #fff; font: 500 12px/16px var(--sans); pointer-events: none; transition: opacity 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sh .tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--brand); }
.sh:hover .tip, .sh:focus-visible .tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sh .dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--brand); pointer-events: none; animation: sh-burst 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.sh .alt { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.4) rotate(-30deg); transition: opacity 0.25s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sh .alt svg { animation: none; }
.sh.done { --brand: #448361; color: #fff; border-color: var(--brand); }
.sh.done::before { transform: scale(1); }
.sh.done > svg:first-of-type { opacity: 0; transform: scale(0.4) rotate(30deg); transition: opacity 0.2s, transform 0.3s; }
.sh.done .alt { opacity: 1; transform: none; }
.sh.done .tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
html.js .passon:not(.in) .sh { opacity: 0; transform: scale(0.4); }
.passon.in .sh { animation: sh-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes sh-pop { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes sh-wiggle { 0% { transform: scale(1) rotate(0); } 30% { transform: scale(1.25) rotate(-14deg); } 60% { transform: scale(1.15) rotate(10deg); } 100% { transform: scale(1.1) rotate(0); } }
@keyframes sh-ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
@keyframes sh-burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .passon:not(.in) .sh, .passon.in .sh { opacity: 1; transform: none; animation: none; }
  .sh, .sh::before, .sh .tip, .sh .alt { transition-duration: 0.01s; }
  .sh:hover svg, .sh:focus-visible svg, .sh:hover::after { animation: none; }
  .sh .dot { display: none; }
}

/* ---- the voyage: a rocket that shows how far down the flow you are ----
   Built by voyage.js only when the page may move. The rocket is fixed and flies over the page;
   what it visits sits inside the sticky stages, so a body stays put while its station is
   pinned and scrolls away with it afterwards. */
.hero { position: relative; }
.voyage { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; --f: 40px; }
.voyage.landed .vrocket, .voyage.landed .vtip { visibility: hidden; }
.vrocket { position: absolute; left: 0; top: 0; width: var(--f); height: var(--f); will-change: transform; }
.vrocket .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--f); line-height: 1; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22)); }
.vflame { position: absolute; left: 50%; top: 50%; width: calc(var(--f) * 0.5); height: calc(var(--f) * 1.6); margin-left: calc(var(--f) * -0.25); transform-origin: 50% 0; opacity: 0; }
.vflame i { position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 18% 18% 82% 82%; background: linear-gradient(180deg, #fff8dc 0%, #ffd166 16%, #ff8a2b 42%, rgba(217, 115, 13, 0.8) 68%, rgba(217, 115, 13, 0) 100%); filter: blur(0.6px); transform-origin: 50% 0; animation: vflicker 0.14s ease-in-out infinite alternate; }
.vflame i + i { inset: 0 28%; height: 58%; background: linear-gradient(180deg, #fff 0%, #fff4c2 45%, rgba(255, 244, 194, 0) 100%); filter: none; animation-duration: 0.09s; }
@keyframes vflicker { from { transform: scaleY(0.9) scaleX(1.08); opacity: 0.9; } to { transform: scaleY(1.08) scaleX(0.92); opacity: 1; } }
.vlegs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(calc(var(--f) * -0.22), calc(var(--f) * 0.22)) rotate(45deg); opacity: 0; transition: opacity 0.2s; }
.vlegs.out { opacity: 1; }
.vlegs::before, .vlegs::after { content: ""; position: absolute; left: -1px; top: 0; width: 2.5px; height: calc(var(--f) * 0.34); background: var(--ink); border-radius: 2px; transform-origin: 50% 0; }
.vlegs::before { transform: rotate(-34deg); }
.vlegs::after { transform: rotate(34deg); }
.vtip { position: absolute; right: 0; bottom: 0; width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px; background: var(--night); color: var(--night-ink); border: 1px solid rgba(255, 255, 255, 0.12); font: 500 13px/18px var(--sans); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.45); opacity: 0; transform: translate(-6px, -14px) scale(0.9); transform-origin: 100% 100%; transition: opacity 0.25s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); will-change: transform; }
.vtip.on { opacity: 1; transform: translate(-6px, -14px) scale(1); pointer-events: auto; }
.vtip a { color: #f0a35c; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.vtip a:hover { color: #ffd0a0; }
.vtip::after { content: ""; position: absolute; right: 14px; top: 100%; border: 6px solid transparent; border-top-color: var(--night); }
.vtip.below { transform-origin: 100% 0; transform: translate(-6px, 14px) scale(0.9); }
.vtip.below.on { transform: translate(-6px, 14px) scale(1); }
.vtip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--night); }
.vpuff { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(120, 119, 116, 0.45); animation: vpuff 0.9s ease-out forwards; }
.vpuff.night { background: rgba(230, 229, 225, 0.35); }
.vpuff.dust { background: rgba(160, 120, 90, 0.5); animation-duration: 1.1s; }
.vpuff.smoke { background: rgba(155, 154, 151, 0.4); width: 16px; height: 16px; margin: -8px 0 0 -8px; animation-duration: 1.4s; }
@keyframes vpuff { from { transform: translate(0, 0) scale(0.5); opacity: 0.7; } to { transform: translate(var(--dx), var(--dy)) scale(2.4); opacity: 0; } }
.vstars { position: absolute; inset: 0; opacity: 0; }
.vstars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: vtwinkle 2.8s ease-in-out infinite; }
@keyframes vtwinkle { 0%, 100% { transform: scale(0.7); } 50% { transform: scale(1.4); } }

/* What is out there. Emoji where the emoji is good, a drawn sphere where it is not. */
.vbody { position: absolute; z-index: 2; pointer-events: none; line-height: 1; }
.vbody .glyph { display: block; font-size: var(--size); line-height: 1; }
.vbody .name { position: absolute; left: 100%; top: 100%; margin: -6px 0 0 4px; white-space: nowrap; font: 400 19px/1 "Caveat", cursive; color: var(--ink-2); }
.machine .vbody .name { color: var(--night-ink-2); }
.vb-sun { z-index: 1; }
.vb-sun::before { content: ""; position: absolute; inset: -35%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 60, 0.35), rgba(255, 190, 60, 0) 68%); }
.vb-sun .name { left: auto; right: 100%; top: 70%; margin: 0 10px 0 0; }
.vbody.nl .name { left: auto; right: 0; top: 100%; margin: 8px 0 0; }
.vbody.nl.vb-sun .name { left: auto; right: 100%; top: 70%; margin: 0 10px 0 0; }
.vb-moon2 .name { display: none; }
.vbody .sphere { display: block; width: var(--size); height: var(--size); border-radius: 50%; position: relative; }
.sp-mars { background: radial-gradient(circle at 36% 32%, #f4a97e 0%, #d8744a 36%, #a3401f 72%, #5a2110 100%); box-shadow: inset -16px -22px 46px rgba(40, 10, 0, 0.55), 0 0 80px rgba(217, 115, 13, 0.18); }
.sp-mars::before, .sp-mars::after { content: ""; position: absolute; border-radius: 50%; background: rgba(90, 30, 10, 0.32); box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.25); }
.sp-mars::before { width: 14%; height: 14%; left: 28%; top: 54%; }
.sp-mars::after { width: 8%; height: 8%; left: 58%; top: 38%; }
/* With WebGL the disc is the sphere's stand-in only until the first frame; the glow stays. */
.sp-mars.gl { background: transparent; box-shadow: 0 0 80px rgba(217, 115, 13, 0.18); }
.sp-mars.gl::before, .sp-mars.gl::after { display: none; }
.sp-mars .mars-gl { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; }
.sp-venus { background: radial-gradient(circle at 35% 30%, #fff3cf, #e8c98a 45%, #b0813f 100%); }
.sp-mercury { background: radial-gradient(circle at 35% 30%, #d6d3d1, #a8a29e 50%, #57534e 100%); }
.sp-jupiter { background: repeating-linear-gradient(174deg, #e9ccaa 0 11%, #c9905e 11% 19%, #f2ddc4 19% 33%, #b87a4b 33% 41%, #e9ccaa 41% 57%, #c9905e 57% 65%, #f2ddc4 65% 79%, #b87a4b 79% 100%); box-shadow: inset -10px -12px 26px rgba(60, 30, 10, 0.45); overflow: hidden; }
.sp-jupiter::after { content: ""; position: absolute; width: 24%; height: 14%; left: 56%; top: 58%; border-radius: 50%; background: #c8684a; }
.sp-uranus { background: radial-gradient(circle at 35% 30%, #dcf5f7, #9fd8df 50%, #4f9aa3 100%); }
.sp-neptune { background: radial-gradient(circle at 35% 30%, #93abf2, #4c6fd8 50%, #25408f 100%); }
.vb-mars .name { left: 13%; top: 24%; margin: 0; font-size: 26px; color: rgba(255, 255, 255, 0.85); }
.vb-mars .crew, .vb-mars .flag { position: absolute; left: 25%; top: 6.7%; font-size: max(14px, calc(var(--size) * 0.11)); line-height: 1; margin: -1em 0 0 -0.5em; transform-origin: 50% 100%; }
.vb-mars .crew { opacity: 0; transition: opacity 0.2s; }
.vb-mars .flag { transform: rotate(-30deg) translateX(46px) scale(0); }

/* The two pads: one in the hero, one by the lighthouse at the last station. */
.vpad { position: absolute; right: 5%; bottom: 22px; width: 130px; height: 6px; border-radius: 3px; background: var(--ink); --f: 40px; }
.vpad::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 26px; height: 8px; margin-left: -13px; border: 2px dashed var(--ink-3); border-bottom: 0; border-radius: 6px 6px 0 0; opacity: 0.6; }
.vpad .spot { position: absolute; left: 50%; bottom: 2px; width: var(--f); height: var(--f); margin-left: calc(var(--f) * -0.5); }
.vhome { position: absolute; right: 0; bottom: 6%; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 8px; --f: 40px; }
.vhome::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: 0; height: 5px; border-radius: 3px; background: var(--ink); }
.vhome .parked { display: block; width: var(--f); height: var(--f); font-size: var(--f); line-height: 1; transform: rotate(-45deg); opacity: 0; }
.vhome .parked.on { opacity: 1; }
.vhome .tower { position: relative; display: block; font-size: calc(var(--f) * 1.6); line-height: 1; }
.vhome .beam { position: absolute; left: 50%; top: 12%; width: 0; height: 0; opacity: 0; transition: opacity 0.4s; }
.vhome.lit .beam { opacity: 1; }
.vhome .beam::before { content: ""; position: absolute; left: -200px; top: -200px; width: 400px; height: 400px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 214, 102, 0.4) 0 10deg, rgba(255, 214, 102, 0) 14deg); mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 68%); -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 68%); animation: vsweep 4s linear infinite; }
@keyframes vsweep { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .vtip { max-width: 180px; font-size: 12px; line-height: 16px; padding: 6px 9px; }
  .vbody .name { font-size: 16px; }
  .vb-mars .name { font-size: 20px; }
  .vpad { right: 6%; bottom: 14px; width: 84px; }
}
