/* Aside website: three references, one system.
   Signal is the base (near-white, one hot orange, black pill nav, two-tone headlines with live UI inside).
   Collage carries the story (film, the race, the cast): newsprint, torn paper, tape, halftone, ransom letters.
   Living carries the character: the orb's moods as LED dots, Doto dot-matrix type, and the cobalt night (privacy).
   Type: Apfel Grotezk (Collletttivo) for reading and headlines, Doto for numbers, tags and LEDs,
   Instrument Serif italic only inside ransom headlines. Product UI keeps the app's own Ink look and Geist. */

@font-face { font-family: "Apfel Grotezk"; src: url("fonts/apfel-grotezk-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("fonts/apfel-grotezk-mittel.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("fonts/apfel-grotezk-fett.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Doto"; src: url("fonts/doto-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --core-center { syntax: "<color>"; inherits: true; initial-value: #ffd27a; }
@property --core-edge { syntax: "<color>"; inherits: true; initial-value: #f5a742; }

:root {
  /* signal */
  --ground: #f7f6f3;
  --card: #ffffff;
  --text: #121212;
  --text-2: #4d4b47;
  --muted: #6b6a66;
  --grey: #8a8883;          /* the quiet half of a two-tone heading: 3.3:1, large text only */
  --rule: rgba(18, 18, 18, 0.08);
  --rule-2: rgba(18, 18, 18, 0.16);
  --signal: #ff5a1f;
  --signal-ink: #d43a0a;    /* signal behind white text: 4.6:1 */
  --signal-text: #c2370b;   /* signal as text on the ground: 4.9:1 */
  --caret: #1668b0;
  --amber: #f5a742;

  /* collage */
  --kraft: #e9dfca;
  --news: #f7f2e7;
  --red: #e2412f;
  --yellow: #f2c230;
  --blue: #2f5bd3;

  /* living (night) */
  --night: #05071a;
  --night-2: #0b1030;
  --cobalt: #3d6bff;
  --cobalt-soft: #8fb0ff;
  --night-text: #e9edff;
  --night-muted: #a6b0dc;

  /* Ink panel, values from docs/design.md */
  --surface: #1b1b1e;
  --title: #f4f4f5;
  --ink: #d6d6da;
  --ink-muted: #8b8b92;
  --fill: rgba(255, 255, 255, 0.06);
  --fill-strong: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.14);

  /* the user's own apps (Windows look) */
  --paper: #f5f6f8;
  --paper-ink: #1f2024;
  --paper-muted: #62656d;

  --font: "Apfel Grotezk", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --dot: "Doto", "Apfel Grotezk", monospace;
  --serif-i: "Instrument Serif", Georgia, serif;
  --mono: var(--font);
  --ui: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --win: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif; /* the panel's Ink headline */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: 48px;
  --sec: 128px;
  --r-card: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(255, 90, 31, 0.22); color: inherit; }
:focus-visible { outline: 2px solid var(--caret); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
button { font: inherit; color: inherit; }
kbd { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }
.wrap { max-width: 1328px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type ---------- */

.display { font: 500 clamp(50px, 6.4vw, 100px)/1.02 var(--font); letter-spacing: -0.05em; }
.display__grey, .h2 em { color: var(--grey); font-style: normal; }
.h2 { font: 500 clamp(38px, 4.2vw, 62px)/1.02 var(--font); letter-spacing: -0.045em; }
.lede { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.body { color: var(--muted); max-width: 46ch; }
.tag { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--dot); color: var(--signal-text); margin-bottom: 22px; letter-spacing: 0.02em; }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px 0 20px; border-radius: 25px; border: 0; cursor: pointer; background: var(--text); color: #fff; font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.7); transition: background 180ms, transform 140ms var(--ease), box-shadow 240ms; }
.btn:hover { background: #2a2a2a; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--signal { background: var(--signal-ink); box-shadow: 0 12px 28px -12px rgba(255, 90, 31, 0.8); }
.btn--signal:hover { background: #e2420c; }
.btn--small { height: 40px; padding: 0 18px; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.key { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 26px; padding: 0 8px; font: 500 12.5px var(--font); color: var(--text); background: #fff; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--rule-2), 0 2px 0 var(--rule-2); }

/* ---------- Nav: the black pill ---------- */

.nav { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; transition: opacity 280ms var(--ease), translate 320ms var(--ease); }
.nav.is-hidden { opacity: 0; translate: 0 -24px; }
.nav.is-hidden .nav__pill { pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: 28px; padding: 7px 7px 7px 20px; border-radius: 30px; background: var(--text); color: #c9c7c2; box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.6); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: #fff; font: 700 18px/1 var(--font); letter-spacing: -0.03em; text-decoration: none; }
.wordmark__dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fff6dd 0 18%, #ffd27a 40%, #f5a742 72%); box-shadow: 0 0 12px rgba(245, 167, 66, 0.8); }
.nav__links { display: flex; gap: 22px; }
.nav__links a { font-size: 15px; text-decoration: none; transition: color 160ms; }
.nav__links a:hover { color: #fff; }
.nav .btn { height: 38px; background: var(--signal-ink); font-size: 14.5px; box-shadow: none; }
.nav .btn:hover { background: #e2420c; }

/* ---------- Sections ---------- */

main > section { position: relative; padding: var(--sec) 0; }
.head-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 80px; align-items: end; margin-bottom: 44px; }
.head-split .body { justify-self: end; padding-bottom: 6px; }

/* ---------- The orb (3D canvas over the page) ---------- */

.orb-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; }
.orb-light { position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; border-radius: 50%; --light: 245, 167, 66; background: radial-gradient(closest-side, rgba(var(--light), 0.18), rgba(var(--light), 0.05) 45%, transparent 72%); will-change: transform; transition: opacity 500ms; }
main { position: relative; z-index: 2; }
.no-gl .orb-light, .no-gl .orb-canvas { display: none; }

/* ---------- 1. Hero ---------- */

.hero { padding: 190px 0 40px !important; text-align: center; }
.hero .display { max-width: 15ch; margin: 0 auto; }
.hero .lede { margin: 26px auto 0; }
.pill { display: inline-flex; align-items: center; gap: 0.22em; vertical-align: 0.12em; height: 0.9em; padding: 0 0.26em 0 0.1em; border-radius: 0.45em; background: var(--text); color: #fff; font-size: 0.6em; letter-spacing: -0.03em; box-shadow: 0 0.3em 0.6em -0.3em rgba(0, 0, 0, 0.7); transition: transform 300ms var(--ease); }
.pill:hover { transform: rotate(-2deg) scale(1.03); }
.pill__orb { display: block; width: 0.7em; height: 0.7em; }
.pill__orb .orb { --size: 100%; width: 100%; height: 100%; }
.pill kbd { margin-left: 0.15em; font: 700 0.42em/1 var(--dot); color: #ffb08a; letter-spacing: 0.04em; }
.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin-top: 32px; font-size: 14.5px; color: var(--muted); }
.facts-row li { display: inline-flex; align-items: center; }
.facts-row li + li::before { content: ""; width: 1px; height: 14px; background: var(--rule-2); margin: 0 16px; }
[data-enter] > * { animation: enter 900ms var(--ease) both; }
[data-enter] > :nth-child(2) { animation-delay: 70ms; }
[data-enter] > :nth-child(3) { animation-delay: 150ms; }
[data-enter] > :nth-child(4) { animation-delay: 230ms; }
[data-enter] > :nth-child(5) { animation-delay: 300ms; }
@keyframes enter { from { opacity: 0; translate: 0 16px; filter: blur(6px); } }

/* ---------- 2. A day with Aside: the cast and the stage ---------- */

.work { padding-top: 64px !important; }
.phases { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 26px; justify-content: end; font: 700 15px/1.3 var(--dot); color: #b8b6b1; padding-bottom: 8px; }
.phases li { display: flex; gap: 8px; align-items: baseline; transition: color 300ms; }
.phases li.is-on { color: var(--text); }
.phases li.is-on span { color: var(--signal); }
.desk__controls { margin-bottom: 18px; }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene-tab { position: relative; display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; padding: 10px 16px 26px 10px; border: 0; border-radius: 20px; background: var(--card); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 220ms, transform 220ms var(--ease); }
.scene-tab:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--rule-2), 0 18px 32px -24px rgba(0, 0, 0, 0.5); }
.scene-tab .cast { grid-row: 1 / 4; width: 92px; height: 100px; border-radius: 14px; background: var(--kraft); display: grid; place-items: end center; overflow: hidden; }
.scene-tab .cast svg { width: 88px; height: auto; margin-bottom: -2px; }
.scene-tab__time { margin-top: 6px; font: 700 15px var(--dot); color: var(--signal-text); }
.scene-tab b { margin-top: 4px; font-weight: 500; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; }
.scene-tab__q { margin-top: 5px; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.scene-tab::after { content: ""; position: absolute; left: 116px; right: 16px; bottom: 12px; height: 3px; border-radius: 2px; background: var(--rule); }
.scene-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--text), 0 18px 36px -26px rgba(0, 0, 0, 0.6); }
.scene-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 116px; right: 16px; bottom: 12px; height: 3px; border-radius: 2px; background: var(--signal); z-index: 1; transform-origin: 0 50%; }
.is-playing .scene-tab[aria-selected="true"]::before { animation: scene-progress var(--scene-ms, 13000ms) linear both; }
@keyframes scene-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* The stage: Signal's glowing panel, with the real product on it */
.stage { position: relative; padding: 56px; border-radius: 32px; overflow: hidden; background: radial-gradient(60% 80% at 50% 110%, #ffb36a 0%, #ff6a2a 38%, #f04a14 70%, #d93a0b 100%); }
.stage::before { content: ""; position: absolute; inset: -30%; background: repeating-radial-gradient(circle at 50% 115%, transparent 0 70px, rgba(255, 255, 255, 0.09) 71px 72px); pointer-events: none; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 620px; height: 620px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, #fff3d6 0%, #ffcf8a 30%, rgba(255, 140, 60, 0) 70%); filter: blur(10px); pointer-events: none; }
.stage .desk { position: relative; z-index: 1; }
.stage .playpause { position: absolute; right: 22px; bottom: 18px; z-index: 2; }
.desk { container-type: inline-size; --u: 1cqw; }
.desk__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #141a2b; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 80px -40px rgba(80, 20, 0, 0.8); }
.desk__wall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.playpause { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(18, 18, 18, 0.85); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background 160ms, transform 120ms; }
.playpause:hover { background: var(--text); }
.playpause:active { transform: scale(0.94); }
.playpause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.playpause .pp-play { display: none; fill: currentColor; }
.playpause.is-paused .pp-play { display: block; }
.playpause.is-paused .pp-pause { display: none; }
.dwin { position: absolute; overflow: hidden; border-radius: calc(var(--u) * 0.8); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 calc(var(--u) * 2) calc(var(--u) * 5) calc(var(--u) * -1.5) rgba(0, 0, 0, 0.75); transition: filter 500ms var(--ease), scale 500ms var(--ease), opacity 500ms; filter: brightness(0.55) saturate(0.7); scale: 0.985; z-index: 1; }
.dwin.is-active { filter: none; scale: 1; z-index: 3; }
.dwin--mail { left: 3%; top: 6%; width: 52%; height: 76%; background: var(--paper); }
.dwin--code { left: 7%; top: 10%; width: 52%; height: 72%; background: #17181c; }
.dwin--web { left: 5%; top: 4%; width: 54%; height: 80%; background: #fff; }
.dwin__bar { display: flex; align-items: center; height: calc(var(--u) * 2.6); padding: 0 calc(var(--u) * 1.2); background: #eceef1; border-bottom: 1px solid #e0e2e6; font: calc(var(--u) * 0.95) var(--win); color: #62656d; }
.dwin__bar--dark { background: #1e1f24; border-color: #2a2c32; color: #9a9ea7; }
.dwin__bar--web { background: #dfe3e8; }
.dweb__tab { background: #fff; padding: calc(var(--u) * 0.45) calc(var(--u) * 1.2); border-radius: calc(var(--u) * 0.5) calc(var(--u) * 0.5) 0 0; align-self: flex-end; color: #2a2c31; }
.dmail { padding: calc(var(--u) * 1.8) calc(var(--u) * 2.4); font: calc(var(--u) * 1.3)/1.65 var(--win); color: var(--paper-ink); }
.dmail p + p { margin-top: calc(var(--u) * 0.9); }
.dmail__head { color: var(--paper-muted); padding-bottom: calc(var(--u) * 0.9); border-bottom: 1px solid #e3e5e9; font-size: calc(var(--u) * 1.1); }
.dmail__head b { font-weight: 400; margin-right: calc(var(--u) * 1.2); }
.dcode { display: flex; flex-direction: column; height: calc(100% - var(--u) * 2.6); font: calc(var(--u) * 1)/1.75 "Cascadia Mono", Consolas, monospace; color: #c9ccd3; }
.dcode__lines { margin: 0; padding: calc(var(--u) * 1.4) calc(var(--u) * 1.4) 0 calc(var(--u) * 3.8); flex: 1; white-space: pre; list-style: decimal; }
.dcode__lines li::marker { color: #50545d; }
.dcode b { color: #f0a868; font-weight: 400; }
.dcode em { color: #8cc8ff; font-style: normal; }
.dcode__term { border-top: 1px solid #2a2c32; padding: calc(var(--u) * 0.8) calc(var(--u) * 1.4) calc(var(--u) * 1.4); background: #131417; white-space: pre-wrap; }
.dcode__tab { display: inline-block; font: calc(var(--u) * 0.9) var(--win); color: #9a9ea7; margin-bottom: calc(var(--u) * 0.5); }
.dcode__term p { color: #ff9b9b; }
.dcode__term .dcode__dim { color: #7a7e87; }
.dweb { padding: calc(var(--u) * 2) calc(var(--u) * 3); font: calc(var(--u) * 1.3)/1.65 var(--win); color: #1f2024; }
.dweb__crumb { font-size: calc(var(--u) * 1); color: #6b6f78; }
.dweb h4 { margin: calc(var(--u) * 0.8) 0 calc(var(--u) * 1); font-size: calc(var(--u) * 2.3); letter-spacing: -0.01em; }
.dweb__btn { display: inline-block; margin-top: calc(var(--u) * 1.6); padding: calc(var(--u) * 0.6) calc(var(--u) * 1.4); border-radius: calc(var(--u) * 0.4); background: #1f5fbf; color: #fff; font-size: calc(var(--u) * 1.1); }
.hl { background-image: linear-gradient(rgba(245, 167, 66, 0.42), rgba(245, 167, 66, 0.42)); background-size: 0% 100%; background-repeat: no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 2px; }
.hl.is-sel { background-size: 100% 100%; transition: background-size 900ms linear; }
.dcode__term .hl { color: #ffb4b4; }
.hl.is-new { animation: replaced 2.4s var(--ease) both; }
@keyframes replaced { 0% { background-color: rgba(79, 196, 187, 0.4); } 100% { background-color: transparent; } }

.dpanel { position: absolute; right: 7%; top: 7%; width: 30%; z-index: 6; padding: calc(var(--u) * 1.5) calc(var(--u) * 1.8) calc(var(--u) * 1.7); border-radius: calc(var(--u) * 2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70px), var(--surface); color: var(--ink); font-family: var(--ui); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 6px -1px rgba(0, 0, 0, 0.45), 0 16px 32px -16px rgba(0, 0, 0, 0.65); opacity: 0; scale: 0.9; translate: 2% -2%; transform-origin: 100% 0; transition: opacity 260ms var(--ease), scale 450ms var(--ease), translate 450ms var(--ease); }
.dpanel.is-open { opacity: 1; scale: 1; translate: 0 0; }
.dpanel__label, .dpanel__q { display: block; font-size: calc(var(--u) * 0.95); color: var(--ink-muted); }
.dpanel__excerpt { margin-top: calc(var(--u) * 0.5); font-size: calc(var(--u) * 1); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dpanel__chips, .dpanel__acts { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 0.6); margin-top: calc(var(--u) * 1.2); }
.dpanel__chips span, .dpanel__acts span { display: inline-flex; align-items: center; gap: calc(var(--u) * 0.5); height: calc(var(--u) * 2.3); padding: 0 calc(var(--u) * 0.9); border-radius: calc(var(--u) * 1.15); background: var(--fill); color: var(--title); font-size: calc(var(--u) * 1); white-space: nowrap; transition: background 160ms, scale 120ms; }
.dpanel__chips kbd, .dpanel__acts kbd { font-size: calc(var(--u) * 0.85); color: #a3a3aa; }
.dpanel__chips span.is-on, .dpanel__acts span.is-on { background: rgba(255, 255, 255, 0.2); scale: 0.96; }
.dpanel__answer { display: none; }
.dpanel.has-answer .dpanel__answer { display: block; }
.dpanel.has-answer .dpanel__chips { display: none; }
.dpanel__q { margin-top: calc(var(--u) * 1.2); }
#dText .h { margin-top: calc(var(--u) * 0.5); font: 700 calc(var(--u) * 1.55)/1.35 var(--serif); color: var(--title); }
#dText .b { margin-top: calc(var(--u) * 0.6); font-size: calc(var(--u) * 1.12); line-height: 1.55; }
.dpanel__acts { display: none; }
.dpanel.has-acts .dpanel__acts { display: flex; }
.dslot { position: absolute; right: 1.6%; top: 7%; width: 5.6%; aspect-ratio: 1; z-index: 7; }
.dkeys { position: absolute; left: 3%; bottom: 10%; z-index: 8; display: flex; align-items: center; gap: calc(var(--u) * 0.6); color: #e7e1d8; font-size: calc(var(--u) * 1.1); opacity: 0; translate: 0 6px; transition: opacity 200ms, translate 300ms var(--ease); }
.dkeys.is-on { opacity: 1; translate: 0 0; }
.dkeys kbd { display: inline-flex; align-items: center; height: calc(var(--u) * 2.8); padding: 0 calc(var(--u) * 1); border-radius: calc(var(--u) * 0.6); background: #f3ede2; color: #17130f; font-family: var(--mono); box-shadow: inset 0 0 0 1.5px #17130f, 0 3px 0 #17130f; }
.dcursor { position: absolute; left: 0; top: 0; z-index: 9; width: calc(var(--u) * 1.5); fill: #fff; stroke: #111; stroke-width: 1; translate: var(--cx, 70%) var(--cy, 80%); transition: translate var(--cdur, 700ms) var(--ease-io); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.dbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6.2%; z-index: 5; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 0.8); background: rgba(16, 14, 20, 0.82); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.dbar span { width: calc(var(--u) * 2); height: calc(var(--u) * 2); border-radius: calc(var(--u) * 0.45); background: rgba(255, 255, 255, 0.1); }
.dbar .dbar__start { background: rgba(255, 255, 255, 0.2); }
.dbar .dbar__time { position: absolute; right: calc(var(--u) * 1.6); width: auto; height: auto; background: none; font: calc(var(--u) * 0.95) var(--win); color: #c9ccd3; }

/* ---------- 3 and 4. Collage chapters: the film and the race ---------- */

.collage { background-color: var(--kraft); background-image: radial-gradient(rgba(20, 18, 16, 0.12) 1px, transparent 1.4px); background-size: 6px 6px; }
.collage + .collage { padding-top: 0; }
.torn { clip-path: polygon(0 1.5%, 5% 0, 11% 1.2%, 18% 0, 26% 1.6%, 33% 0.4%, 41% 1.4%, 49% 0, 57% 1.2%, 65% 0, 73% 1.6%, 81% 0.4%, 89% 1.4%, 96% 0, 100% 1%, 99.4% 50%, 100% 98.6%, 94% 100%, 87% 98.6%, 79% 100%, 71% 98.4%, 63% 100%, 55% 98.8%, 47% 100%, 39% 98.4%, 31% 100%, 23% 98.6%, 15% 100%, 7% 98.4%, 0 99.4%, 0.6% 50%); }
.tape { position: absolute; width: 130px; height: 34px; background: rgba(244, 233, 184, 0.82); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); z-index: 3; pointer-events: none; }
.tape--tl { left: -24px; top: 18px; rotate: -32deg; }
.tape--br { right: -24px; bottom: 20px; rotate: -28deg; }
.sticker { filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(5px 8px 8px rgba(0, 0, 0, 0.25)); }

/* Ransom letters: every word cut from a different page */
.ransom { margin: 0 0 40px; line-height: 1.12; font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.02em; }
.ransom .r { display: inline-block; margin: 0 0.04em 0.12em 0; padding: 0.08em 0.2em 0.04em; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.18); }
.ransom .r:nth-child(odd) { rotate: -1.6deg; }
.ransom .r:nth-child(even) { rotate: 1.4deg; }
.r--ink { background: var(--text); color: var(--news); font-family: var(--serif-i); font-style: italic; font-weight: 400; }
.r--yellow { background: var(--yellow); color: var(--text); font-weight: 700; letter-spacing: -0.05em; }
.r--paper { background: var(--news); color: var(--text); font: 800 0.86em var(--dot); box-shadow: inset 0 0 0 2px var(--text), 3px 4px 0 rgba(0, 0, 0, 0.18) !important; }
.r--red { background: var(--red); color: #fff; font-family: var(--serif-i); font-style: italic; font-weight: 400; }
.r--blue { background: var(--blue); color: #fff; font-weight: 700; letter-spacing: -0.05em; }

.film { text-align: center; }
.film__frame { position: relative; max-width: 1040px; margin: 0 auto; padding: 22px; background: var(--news); rotate: -0.6deg; box-shadow: 6px 10px 24px rgba(40, 25, 10, 0.25); }
.film__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--text); }
.film__note { max-width: 52ch; margin: 30px auto 0; font-size: 18px; color: var(--text-2); }

.why__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.dict { display: inline-block; margin-bottom: 26px; padding: 10px 14px; background: var(--news); font-size: 16px; color: var(--text-2); rotate: -1deg; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.12); }
.dict b { color: var(--text); }
.why .body { font-size: 18px; color: var(--text-2); }
.why .btn { margin-top: 28px; }
.race { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 30px 0 40px; }
.race__who { position: absolute; z-index: 4; width: 116px; filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(5px 8px 8px rgba(0, 0, 0, 0.25)); }
.race__who svg { width: 100%; height: auto; display: block; }
.race__who--a { left: -52px; bottom: -6px; rotate: -8deg; }
.race__who--b { right: -26px; top: -40px; rotate: 7deg; }
.race__col { position: relative; padding: 30px 24px 24px; background: var(--news); rotate: -1.2deg; box-shadow: 5px 8px 18px rgba(40, 25, 10, 0.22); }
.race__col--aside { background: var(--yellow); rotate: 1.4deg; align-self: start; }
.race__h { font: 700 15px var(--dot); color: var(--text-2); }
.race__count { margin-top: 8px; font: 700 26px/1.05 var(--font); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.race__list { counter-reset: r; margin-top: 18px; display: grid; gap: 2px; }
.race__list li { counter-increment: r; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 4px; font-size: 15.5px; color: var(--text); opacity: 0.28; transition: opacity 300ms; }
.race__list li::before { content: counter(r, decimal-leading-zero); width: 28px; font: 700 14px var(--dot); color: var(--text-2); }
.race__list li.is-done { opacity: 1; }
[data-race="a"] li.is-done { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.race__list li[data-switch]::after { content: "app switch"; margin-left: auto; font: 700 12px var(--dot); color: #fff; padding: 3px 8px; background: var(--red); rotate: -2deg; }
.race__done { margin-top: 14px; display: inline-block; padding: 4px 12px; font: italic 30px/1.1 var(--serif-i); background: var(--text); color: var(--yellow); rotate: -2deg; opacity: 0; transition: opacity 400ms; }
.race__done.is-on { opacity: 1; }

/* ---------- 5. Try it (Signal) ---------- */

.try__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.jobs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.job { height: 42px; padding: 0 18px; border-radius: 21px; border: 0; background: var(--card); color: var(--text-2); font-size: 15px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule-2); transition: background 160ms, color 160ms, transform 120ms; }
.job:hover { color: var(--text); }
.job:active { transform: scale(0.97); }
.job[aria-selected="true"] { background: var(--text); color: #fff; box-shadow: none; }
.try__side { padding-top: 58px; position: sticky; top: 96px; }

.window { background: var(--paper); color: var(--paper-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(23, 19, 15, 0.14), 0 40px 80px -50px rgba(60, 40, 20, 0.55); }
.window__bar { display: flex; align-items: center; height: 40px; padding: 0 0 0 16px; background: #eceef1; border-bottom: 1px solid #e0e2e6; }
.window__title { font: 12px var(--win); color: var(--paper-muted); }
.window__caps { margin-left: auto; display: flex; height: 100%; }
.window__caps svg { width: 46px; height: 100%; padding: 15px 18px; fill: none; stroke: #3b3d43; stroke-width: 1; }
.mail { padding: 28px 40px 40px; font: 16px/1.7 var(--win); }
.mail p + p { margin-top: 14px; }
.mail ::selection { background: rgba(245, 167, 66, 0.4); }
.mail .codeblock { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: #1b1c20; color: #d4d6dc; font: 13.5px/1.7 "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; }
.mail h5 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.mail .muted { color: var(--paper-muted); font-size: 14px; }
#tryDoc { min-height: 340px; }
.s { cursor: pointer; border-radius: 3px; transition: background 200ms; -webkit-box-decoration-break: clone; box-decoration-break: clone; text-decoration: underline dotted rgba(31, 32, 36, 0.38); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.s:hover { background: rgba(245, 167, 66, 0.18); }
.s.is-sel { background: rgba(245, 167, 66, 0.4); }
.s.is-sel, .s:hover { text-decoration-color: transparent; }
.codeblock .s { text-decoration-color: rgba(255, 255, 255, 0.35); }
.codeblock .s:hover { background: rgba(245, 167, 66, 0.24); }
.s.is-new { animation: replaced 2.4s var(--ease) both; }

/* The real answer panel (docs/design.md, Ink) */
.panel { font-family: var(--ui); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70px), var(--surface); border-radius: 24px; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 6px -1px rgba(0, 0, 0, 0.45), 0 30px 60px -30px rgba(40, 25, 10, 0.6); }
.panel :focus-visible { outline-color: #9fc8ff; }
.note { padding: 20px 22px 22px; min-height: 120px; }
.note--static { margin-top: 36px; max-width: 460px; }
.ctx { display: grid; gap: 6px; }
.ctx__label { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.ctx__text { font-size: 12.5px; line-height: 18px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ctx--img { grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.ctx__thumb { order: -1; width: 64px; height: 40px; border-radius: 6px; background: linear-gradient(#2b3a55, #d98a5f 70%, #f0c08a); box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip, .act { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: var(--fill); color: var(--title); font: 13px var(--ui); cursor: pointer; white-space: nowrap; transition: background 140ms, transform 100ms; }
.chip:hover, .act:hover { background: var(--fill-strong); }
.chip:active, .act:active { transform: scale(0.96); }
.chip kbd, .act kbd { font-size: 11px; color: #a3a3aa; }
.chip.is-on, .act.is-on { background: rgba(255, 255, 255, 0.16); }
.act--primary { background: rgba(255, 255, 255, 0.11); }
.answer { display: none; }
.answer__q { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); margin: 16px 0 6px; }
.answer__h, .answer__text .h { font: 700 19px/26px var(--serif); letter-spacing: -0.005em; color: var(--title); }
.answer__b, .answer__text .b { font-size: 14px; line-height: 22px; color: var(--ink); margin-top: 8px; }
.answer__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.status:empty { display: none; }
.w { display: inline-block; white-space: pre; animation: word 220ms var(--ease) both; }
@keyframes word { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
.note[data-state="thinking"] .answer, .note[data-state="answer"] .answer, .note[data-state="unknown"] .answer { display: block; }
.note[data-state="thinking"] .chips, .note[data-state="answer"] .chips, .note[data-state="unknown"] .chips { display: none; }
.note[data-state="unknown"] .ctx { display: none; }
.note[data-state="unknown"] .answer__q { margin-top: 0; }
.note__empty { display: none; font-size: 14px; color: var(--ink-muted); }
.note[data-state="empty"] .note__empty { display: block; }
.note[data-state="empty"] .ctx, .note[data-state="empty"] .chips, .note[data-state="empty"] .answer { display: none; }
.chip[hidden] { display: none; }
.stepbar { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12.5px; color: var(--ink-muted); }
.stepbar > span:first-child { min-height: 18px; }
.stepbar__btns { display: flex; gap: 6px; }

.app { position: relative; border-radius: 12px; background: #1f2126; color: #c9ccd3; font: 13px var(--win); user-select: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 50px 100px -50px rgba(40, 25, 10, 0.7); }
.app__menu { position: relative; display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #2c2f35; }
.app__item { border: 0; background: none; padding: 5px 10px; border-radius: 5px; font: inherit; color: inherit; }
button.app__item, .app__dropitem, .app__formats button { cursor: pointer; }
.app__item.is-open { background: #31343b; }
.app__drop { position: absolute; left: 10px; top: 38px; z-index: 3; width: 180px; padding: 5px; display: none; flex-direction: column; border-radius: 8px; background: #2a2d33; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 12px 28px -8px rgba(0, 0, 0, 0.7); }
.app__drop.is-open { display: flex; }
.app__drop span, .app__dropitem { padding: 6px 10px; border-radius: 5px; text-align: left; border: 0; background: none; font: inherit; color: inherit; }
.app__main { position: relative; display: grid; grid-template-columns: 130px 1fr; min-height: 440px; }
.app__side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid #2c2f35; }
.app__side span { padding: 6px 10px; border-radius: 5px; color: #9a9ea7; }
.app__side .is-on { background: #2a2d33; color: #e4e6ea; }
.app__canvas { display: grid; place-items: center; padding: 28px; background: #18191d; border-radius: 0 0 12px 0; }
.app__art { width: 100%; max-width: 460px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8); }
.app__art svg { display: block; width: 100%; height: 100%; }
.app__dialog { position: absolute; right: 24px; top: 24px; z-index: 2; width: 240px; padding: 16px; display: none; flex-direction: column; gap: 10px; border-radius: 10px; background: #2a2d33; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 16px 36px -10px rgba(0, 0, 0, 0.8); }
.app__dialog.is-open { display: flex; }
.app__dt { font-weight: 600; color: #eef0f3; font-size: 14px; }
.app__dialog label, .app__label { display: grid; gap: 6px; color: #9a9ea7; font-size: 12px; }
.app__field { display: block; padding: 6px 10px; border-radius: 5px; background: #1f2126; color: #e4e6ea; font-size: 13px; }
.app__formats { display: flex; gap: 4px; }
.app__formats span, .app__formats button { flex: 1; padding: 6px 0; text-align: center; border-radius: 5px; background: #1f2126; border: 0; font: inherit; color: #c9ccd3; }
.app__formats button.is-picked { background: #3a4150; color: #fff; }
.app__go { align-self: flex-end; padding: 6px 14px; border-radius: 5px; background: #3b6fd1; color: #fff; }
.frame { position: absolute; inset: -6px; pointer-events: none; opacity: 0; scale: 1.06; transition: opacity 150ms, scale 200ms var(--ease); }
.frame.is-on { opacity: 1; scale: 1; transition: opacity 200ms, scale 200ms var(--ease); }
.frame i { position: absolute; width: 32px; height: 32px; border: 0 solid #fff1e4; filter: drop-shadow(0 0 5px rgba(255, 186, 130, 0.9)) drop-shadow(0 0 12px rgba(255, 170, 110, 0.45)); }
.frame .tl { left: 0; top: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.frame .tr { right: 0; top: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.frame .bl { left: 0; bottom: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.frame .br { right: 0; bottom: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }
.halo { position: absolute; z-index: 4; pointer-events: none; border-radius: 10px; border: 1.5px solid #fff1e4; background: rgba(245, 167, 66, 0.07); box-shadow: 0 0 10px rgba(245, 167, 66, 0.55), 0 0 26px rgba(245, 167, 66, 0.3); opacity: 0; scale: 1.12; }
.halo.is-on { opacity: 1; scale: 1; transition: opacity 450ms var(--ease), scale 450ms var(--ease), left 0s, top 0s; animation: halo-breathe 3s ease-in-out 450ms infinite; }
.halo.is-off { opacity: 0; transition: opacity 260ms; }
@keyframes halo-breathe { 50% { box-shadow: 0 0 14px rgba(245, 167, 66, 0.7), 0 0 32px rgba(245, 167, 66, 0.38); } }
.halo__label { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 5px 11px 5px 6px; border-radius: 14px; background: #111214; color: #f4f4f5; font: 12.5px var(--ui); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 14px -4px rgba(0, 0, 0, 0.6); }
.halo--left .halo__label { left: 0; translate: 0 0; }
.halo__label b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); color: #1b1305; font-size: 11px; font-weight: 700; }
.spark-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 46; overflow: visible; }
#spark { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px #ffd27a) drop-shadow(0 0 10px #f5a742); }

/* ---------- 6. Show me (Signal) ---------- */

.show__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.show__copy .body { margin-top: 26px; }

/* ---------- 7. The details: Signal cards, one Living tile ---------- */

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { position: relative; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 30px; display: flex; flex-direction: column; gap: 26px; overflow: hidden; transition: box-shadow 300ms; }
.card:hover { box-shadow: inset 0 0 0 1px var(--rule-2), 0 20px 40px -30px rgba(0, 0, 0, 0.35); }
.card h3 { font: 500 28px/1.04 var(--font); letter-spacing: -0.04em; }
.card__text p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 48ch; }
.card--memory { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.card--night { background: radial-gradient(70% 90% at 50% 120%, rgba(61, 107, 255, 0.45), transparent 70%), var(--night); color: var(--night-text); box-shadow: inset 0 0 0 1px #1d2550; }
.card--night .card__text p { color: var(--night-muted); }

.settings { background: var(--ground); border-radius: 16px; padding: 20px 22px 18px; box-shadow: inset 0 0 0 1px var(--rule); font-family: var(--ui); }
.settings__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.settings__title { font-size: 16px; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #cfcdc8; transition: background 200ms; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate 200ms var(--ease); }
.switch input:checked + .switch__track { background: var(--signal-ink); }
.switch input:checked + .switch__track::after { translate: 16px 0; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--caret); outline-offset: 2px; }
.mem { transition: opacity 300ms; }
.mem.is-off { opacity: 0.35; }
.mem li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); transition: opacity 260ms, translate 260ms var(--ease); }
.mem li.is-gone { opacity: 0; translate: -8px 0; }
.mem p { color: var(--text); font-size: 14.5px; }
.mem p[contenteditable="true"] { outline: 1px solid var(--rule-2); outline-offset: 4px; border-radius: 4px; }
.mem__date { font: 700 13px var(--dot); color: var(--muted); }
.mem__btn { border: 0; background: none; min-height: 32px; padding: 4px 8px; border-radius: 6px; color: var(--text-2); font-size: 13px; cursor: pointer; transition: background 140ms, color 140ms; }
.mem__btn:hover { background: rgba(0, 0, 0, 0.05); color: var(--text); }
.mem__empty { padding: 22px 0; color: var(--muted); }
.settings__foot { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Live interactive mood orbs (no clipped box around their glow) */
.moods { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; overflow: visible; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 6px 8px; border: 0; background: none; border-radius: 14px; cursor: pointer; color: var(--night-muted); font: 700 14px var(--dot); overflow: visible; transition: color 200ms, background 200ms; }
.mood:hover, .mood.is-on { color: #fff; background: rgba(143, 176, 255, 0.08); }
.mood__orb { display: grid; place-items: center; width: 76px; height: 76px; overflow: visible; transition: translate 260ms var(--ease), scale 260ms var(--ease); }
.mood__orb .orb { --size: 72px; width: 72px; height: 72px; overflow: visible; }
.mood__orb .orb::before { inset: -48%; background: radial-gradient(closest-side, color-mix(in srgb, var(--core-edge) 42%, transparent), transparent 72%); opacity: 0.78; }
.mood__orb .orb--happy::before { inset: -56%; opacity: 1; }
.mood__orb .orb::after { display: none; }
.mood:hover .mood__orb, .mood.is-on .mood__orb { translate: 0 -5px; scale: 1.07; }
.mood:hover .mood__orb .orb::before, .mood.is-on .mood__orb .orb::before { opacity: 1; }

.keys { display: grid; margin: auto 0 0; }
.keys div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.keys div:last-child { border-bottom: 0; }
.keys dt { font-size: 15.5px; color: var(--text-2); }
.keys dd { margin: 0; display: flex; gap: 5px; }

/* ---------- 8. Privacy: the Living night ---------- */

.privacy { background: radial-gradient(50% 60% at 80% 0%, rgba(61, 107, 255, 0.28), transparent 70%), var(--night); color: var(--night-text); }
.privacy .tag { color: var(--cobalt-soft); }
.privacy .h2 em { color: #6f7cb8; }
.privacy .body { color: var(--night-muted); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.receipt-wrap { margin: 0; justify-self: center; width: min(100%, 520px); rotate: -1.5deg; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.receipt { padding: 40px 38px 44px; background: var(--news); color: var(--text);
  -webkit-mask: radial-gradient(circle 9px at 50% 0, #0000 97%, #000) 50% 0 / 22px 51% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 97%, #000) 50% 100% / 22px 51% repeat-x;
  mask: radial-gradient(circle 9px at 50% 0, #0000 97%, #000) 50% 0 / 22px 51% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 97%, #000) 50% 100% / 22px 51% repeat-x; }
.receipt__head { font: 800 26px/1.1 var(--dot); text-align: center; letter-spacing: 0.02em; }
.receipt__sub { margin-top: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.receipt__rows { margin: 22px 0 0; padding-top: 18px; border-top: 2px dashed rgba(20, 18, 16, 0.25); display: grid; gap: 10px; }
.receipt__rows div { display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; }
.receipt__rows dt { flex: none; color: var(--text-2); }
.receipt__rows div::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgba(20, 18, 16, 0.25); translate: 0 -4px; }
.receipt__rows dd { order: 2; margin: 0; font-weight: 500; text-align: right; max-width: 60%; }
.receipt__rows--no dd { color: var(--signal-text); font: 700 15px var(--dot); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 18px; border-top: 2px dashed rgba(20, 18, 16, 0.25); font-weight: 500; font-size: 17px; }
.receipt__total b { font: 800 40px/1 var(--dot); color: var(--text); }
.receipt__foot { margin-top: 16px; text-align: center; font: italic 22px/1.2 var(--serif-i); color: var(--text-2); }
.facts { display: grid; gap: 26px; }
.facts li { color: var(--night-muted); font-size: 16.5px; max-width: 46ch; }
.facts strong { display: block; color: var(--night-text); font: 500 24px/1.1 var(--font); letter-spacing: -0.035em; margin-bottom: 8px; }
.privacy :focus-visible { outline-color: var(--cobalt-soft); }

/* ---------- 9. FAQ (Signal) ---------- */

.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.faq .body { margin-top: 26px; }
.qa details { border-bottom: 1px solid var(--rule-2); }
.qa details:first-child { border-top: 1px solid var(--rule-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font: 500 23px/1.2 var(--font); letter-spacing: -0.035em; transition: padding 300ms var(--ease); }
.qa summary:hover { padding-left: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; color: var(--signal); transition: rotate 240ms var(--ease); }
.qa details[open] summary::after { rotate: 45deg; }
.qa details p { padding: 0 4px 24px; color: var(--muted); max-width: 60ch; }

/* ---------- 10. Finale: the orb rises in the signal glow ---------- */

.finale { min-height: calc(100svh - 84px); padding: clamp(24px, 5vh, 72px) 0 0 !important; display: flex; flex-direction: column; overflow: hidden; text-align: center; }
.finale::before { content: ""; position: absolute; left: 50%; bottom: -46vh; width: 150vh; height: 100vh; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 42, 0.55), rgba(255, 90, 31, 0.16) 55%, transparent); pointer-events: none; }
.finale__inner { display: flex; flex-direction: column; align-items: center; position: relative; }
.display--close { font-size: clamp(42px, min(6.6vw, 9.2vh), 108px); }
.display--close .dot { font: 800 0.92em/1 var(--dot); letter-spacing: -0.02em; color: var(--signal-text); text-shadow: 0 0 24px rgba(255, 90, 31, 0.35); }
.finale .lede { margin: clamp(12px, 2.2vh, 24px) auto 0; text-align: center; }
.finale .cta { margin-top: clamp(16px, 2.6vh, 28px); }
.finale__slot { position: relative; flex: 1; min-height: clamp(190px, 32vh, 320px); width: min(56vh, 76vw); margin: clamp(16px, 3vh, 36px) auto 0; }
/* The footer is dark ground under a rising sun: the orb's light spills onto it, and it watches the links. */
.foot { position: relative; z-index: 50; background: #121212; color: #c9c7c2; overflow: hidden; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: radial-gradient(42% 100% at 50% 0%, rgba(255, 140, 60, 0.34), rgba(255, 120, 40, 0.08) 60%, transparent 100%); pointer-events: none; }
.foot::after { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 190, 130, 0.75), transparent); }
.foot__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 24px; padding-bottom: 24px; font-size: 14.5px; }
.foot__inner .wordmark { flex: none; }
.wordmark--quiet { color: #fff; font-size: 17px; line-height: 1; }
.foot__say { position: absolute; left: 50%; translate: -50% 0; margin: 0; text-align: center; font: 700 16px/1 var(--dot); color: #ffb08a; letter-spacing: 0.02em; white-space: nowrap; }
.foot__links { display: flex; align-items: center; gap: 8px; flex: none; }
.foot__links a { text-decoration: none; display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #e7e5e0; font-size: 14px; line-height: 1; white-space: nowrap; transition: background 180ms, color 180ms, transform 160ms var(--ease); }
.foot__links a:hover, .foot__links a:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; transform: translateY(-2px); }
.foot :focus-visible { outline-color: #ffb08a; }

.dock { display: none; position: fixed; right: 0; top: calc(50% - 32px); z-index: 40; width: 64px; height: 64px; transform: translateX(50%); transition: transform 420ms var(--ease-io), opacity 300ms; pointer-events: none; }
.no-gl .dock { display: block; }
.dock.is-out { transform: translateX(-24px); transition: transform 520ms var(--ease), opacity 300ms; }
.dock.is-out .orb { animation: breathe 3s ease-in-out infinite, bob 6s ease-in-out infinite; }
.orb { --size: 64px; --glass: #eef0f3; --eye: #47362f; --strength: 100%; --sat: 1; --tilt: 0deg; --r-scale: 1; position: relative; width: var(--size); height: var(--size); rotate: var(--tilt); transition: --core-center 400ms ease-in-out, --core-edge 400ms ease-in-out, rotate 400ms ease-in-out; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.03; } }
@keyframes bob { 0%, 100% { translate: 0 2px; } 50% { translate: 0 -2px; } }
.orb::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--core-edge) 30%, transparent), transparent); opacity: 0.7; transition: opacity 400ms ease-in-out; }
.orb::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -24%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(64, 50, 40, 0.3), transparent); }
.orb__body { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.08); }
.dock .orb__body { border-radius: 50% 42% 42% 50% / 50% 47% 47% 50%; }
.orb__core { position: absolute; inset: 13%; border-radius: 50%; background: radial-gradient(circle, var(--core-center) 0%, var(--core-edge) 52%, transparent 74%); filter: blur(calc(var(--size) * 0.07)) saturate(var(--sat)); opacity: var(--strength); transition: opacity 400ms ease-in-out, inset 400ms ease-in-out; }
.mood__orb .orb__core { filter: blur(4px) saturate(var(--sat)); }
.orb--swirl .orb__core::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--core-center) 25%, transparent 50%, var(--core-center) 75%, transparent); opacity: 0.45; animation: swirl 4s linear infinite; }
@keyframes swirl { to { rotate: 360deg; } }
.orb__frost { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 31% 23%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 32%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, 0.45) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 -4px 8px rgba(80, 60, 40, 0.15); }
.orb__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; translate: var(--lx, 0px) var(--ly, 0px); transition: translate 220ms var(--ease); }
.orb__shape { transition: opacity 150ms ease-out; }
.orb__oval { fill: var(--eye); transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.orb__oval--r { scale: var(--r-scale); transition: scale 150ms ease-out; }
.orb__stroke path { fill: none; stroke: var(--eye); stroke-width: 2.4; stroke-linecap: round; }
.orb .orb__arches, .orb .orb__closed { opacity: 0; }
.orb--happy .orb__ovals, .orb--screenshot .orb__ovals { opacity: 0; }
.orb--happy .orb__arches { opacity: 1; }
.orb--screenshot .orb__closed { opacity: 1; }
.orb--happy .orb__core { inset: 0; }
.orb--happy::before { opacity: 1; }
.orb--thinking .orb__oval { animation: none; }
@keyframes blink { 0%, 97%, 100% { scale: 1 1; } 98.5% { scale: 1 0.1; } }
.finale__slot .orb { --size: 100%; width: 100%; height: auto; aspect-ratio: 1; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1180px) {
  :root { --pad: 40px; --sec: 108px; }
  .why__grid, .show__grid, .faq__grid { grid-template-columns: 1fr; gap: 48px; }
  .scene-tab { grid-template-columns: 72px 1fr; }
  .scene-tab .cast { width: 72px; height: 84px; }
  .scene-tab .cast svg { width: 70px; }
  .scene-tab::after, .scene-tab[aria-selected="true"]::before { left: 96px; }
  .stage { padding: 36px; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .foot__say { position: static; translate: none; white-space: normal; }
  .head-split { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .head-split .body { justify-self: start; }
  .phases { justify-content: start; }
  .scenes { grid-template-columns: 1fr; gap: 10px; }
  .try__grid { grid-template-columns: 1fr; }
  .try__side { padding-top: 0; position: static; }
  .bento { grid-template-columns: 1fr; }
  .card--memory { grid-column: auto; display: flex; gap: 26px; }
  .privacy__grid { grid-template-columns: 1fr; gap: 56px; }
  .race__who { width: 86px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; --sec: 84px; }
  body { font-size: 16px; }
  .hero { padding-top: 130px !important; }
  .display { font-size: clamp(40px, 11.6vw, 58px); }
  .h2 { font-size: clamp(32px, 9vw, 44px); }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .nav__pill { gap: 14px; }
  .phases { grid-template-columns: repeat(2, auto); gap: 8px 20px; }
  .stage { padding: 14px; border-radius: 22px; }
  .stage .playpause { right: 10px; bottom: 10px; }
  .desk { --u: 10px; }
  .desk__screen { aspect-ratio: auto; padding: 16px 58px 70px 14px; border-radius: 14px; }
  .dwin { position: relative; inset: auto; width: auto; height: auto; display: none; filter: none; scale: 1; }
  .dwin.is-active { display: block; }
  .dwin--code .dcode { height: auto; }
  .dcode__lines { white-space: pre-wrap; padding-left: 30px; }
  .dpanel { position: relative; right: auto; top: auto; width: auto; margin-top: -24px; margin-left: 18px; }
  .dpanel:not(.is-open) { display: none; }
  .dslot { right: 6px; top: 18px; width: 44px; }
  .dkeys { bottom: 18px; left: 14px; }
  .dbar { display: none; }
  .film__frame { padding: 10px; }
  .race { grid-template-columns: 1fr; gap: 30px; }
  .race__who { width: 72px; }
  .race__who--a { left: -8px; bottom: -14px; }
  .race__who--b { right: -6px; top: auto; bottom: 30%; }
  .mail { padding: 20px 20px 26px; font-size: 15px; }
  .window__caps svg { width: 36px; padding: 15px 13px; }
  .app__main { grid-template-columns: 1fr; min-height: 340px; }
  .app__side { display: none; }
  .app__dialog { right: 12px; top: 12px; }
  .card { padding: 22px; }
  .mem li { grid-template-columns: 1fr auto auto; }
  .mem p { grid-column: 1 / -1; }
  .moods { flex-wrap: wrap; justify-content: center; }
  .qa summary { font-size: 20px; }
  .mood__orb { width: 72px; }
  .foot__inner { flex-direction: column; justify-content: center; gap: 16px; }
  .foot__say { order: 3; }
  .foot__links { flex-wrap: wrap; justify-content: center; }
  .finale__slot { min-height: 260px; }
  .dock { scale: 0.75; }
  .dock.is-out { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .dock, .dock.is-out { transition: opacity 120ms; }
  .halo.is-on, .frame, .frame.is-on { transition: opacity 120ms !important; translate: none !important; scale: none !important; }
  .dcursor, .dpanel, .hl.is-sel { transition: none !important; }
}

/* ---------- Option C hero inline pills & real Windows app slices (additive only) ---------- */

.pill--clean { padding-right: 0.34em; }
.key--inline { height: 24px; padding: 0 8px; margin: 0 1px; font-size: 13.5px; vertical-align: 1px; }
.facts-row--models { gap: 10px 0; }
.facts-row__models { flex-wrap: wrap; justify-content: center; gap: 6px; }
.model-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px; border-radius: 999px; background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule-2); }
.model-pill img { width: 14px; height: 14px; display: block; flex: none; }

/* Real moments: orb anchored directly beside the answer panel */
.try__aside { display: flex; align-items: flex-start; gap: 14px; }
.try__aside .note { flex: 1; min-width: 0; }
.try__slot { width: 56px; height: 56px; flex: none; margin-top: 8px; }
.try__slot .orb { --size: 56px; width: 56px; height: 56px; }

/* Realistic mini-app slices inside #tryDoc */
.sl-msg { padding: 10px 0; border-bottom: 1px solid rgba(18, 18, 18, 0.06); }
.sl-meta { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; margin-bottom: 3px; }
.sl-meta span { font-size: 11.5px; color: var(--paper-muted); }
.sl-compose { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.14); }
.sl-compose__tag { display: block; font-size: 11.5px; color: var(--paper-muted); margin-bottom: 6px; }

.xl-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.12); font: 13.5px/1.5 "Cascadia Mono", Consolas, monospace; }
.xl-bar > span:first-child { font-style: italic; font-weight: 600; color: var(--paper-muted); padding-right: 8px; border-right: 1px solid rgba(18, 18, 18, 0.1); }
.xl-grid { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.12); font-size: 13px; }
.xl-grid th, .xl-grid td { padding: 8px 10px; border: 1px solid rgba(18, 18, 18, 0.08); text-align: left; font-variant-numeric: tabular-nums; }
.xl-grid th { background: #f2f3f5; color: var(--paper-muted); font-weight: 500; font-size: 12px; }
.xl-active { background: rgba(245, 167, 66, 0.1); }
.xl-err { color: #c42b1c; font-weight: 600; font-family: "Cascadia Mono", Consolas, monospace; }
.xl-ok { color: #1a7f37; font-weight: 600; }

.pdf-sheet { padding: 22px 24px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.08); }
.pdf-sec { font: 600 11.5px/1 var(--win); letter-spacing: 0.06em; color: var(--paper-muted); margin-bottom: 12px; }

.bill-card { position: relative; margin-top: 14px; padding: 18px 20px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.12); text-decoration: none !important; display: grid; gap: 10px; }
.bill-card .bc { position: absolute; width: 16px; height: 16px; border: 0 solid #f5a742; opacity: 0; transition: opacity 200ms var(--ease); pointer-events: none; }
.bill-card.is-sel .bc, .bill-card:hover .bc { opacity: 1; }
.bill-card .tl { left: -4px; top: -4px; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 5px; }
.bill-card .tr { right: -4px; top: -4px; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 5px; }
.bill-card .bl { left: -4px; bottom: -4px; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 5px; }
.bill-card .br { right: -4px; bottom: -4px; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 5px; }
.bill-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(18, 18, 18, 0.08); }
.bill-row { display: grid; grid-template-columns: 140px 1fr 64px; align-items: center; gap: 12px; font-size: 13.5px; }
.bill-row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bill-track { height: 8px; border-radius: 999px; background: rgba(18, 18, 18, 0.07); overflow: hidden; }
.bill-track i { display: block; height: 100%; border-radius: 999px; background: #1f2024; }

.ps-term { padding: 18px 20px; border-radius: 10px; background: #16171a; color: #e4e6ea; font: 13.5px/1.65 "Cascadia Mono", Consolas, monospace; }
.ps-cmd { color: #9aa0ad; }
.ps-err { color: #ff7b72; margin-top: 4px; }
.ps-err .s { text-decoration-color: rgba(255, 123, 114, 0.5); }

@media (max-width: 900px) {
  .try__slot { display: none; }
}
