/* Prototype A, "The channel". Light and dark. Every colour is a custom property in :root (light) and in the two dark
 * blocks right below it; nothing else in this file or in app.js writes a colour. The light values are brand/tokens.css's. */

@font-face {
  font-family: "Geist";
  src: url("/proto/a/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/proto/a/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --chrome: #F1F1EE;
  --chip: #F0F0ED;
  --ink: #0C0D10;
  --body: #3D3F45;
  --muted: #6B6E75;
  --msg: #24262B;
  --line: #E4E4E0;
  --control-line: #8A8C92;
  --flag: #D2261C;
  --flag-ink: #D2261C;
  --flag-wash: rgba(210, 38, 28, 0.06);
  --flag-chip: rgba(210, 38, 28, 0.09);
  --flag-rgb: 210, 38, 28;
  --ink-rgb: 12, 13, 16;
  --on-ink: #FFFFFF;
  --on-ink-dim: rgba(255, 255, 255, 0.7);
  --ink-hover: #24262C;
  --hover: #FAFAF8;
  --well: #FBFBFA;
  --track: #EFEFEC;
  --active: #E4E4E0;
  --switch-off: #DCDCD8;
  --knob: #FFFFFF;
  --dot: #DADAD6;
  --outline: #D5D5D1;
  --outline-2: #C8C8C4;
  --plus-bg: #CFCFCB;
  --plus-fg: #FFFFFF;
  --off-fill: #A9ABB0;
  --off-tick: #B5B7BB;
  --dim: #A3A5AA;
  --struck: #8D8F95;
  --disabled: #AEB0B5;
  --cool: #6B6E75;
  --tell: #F6E7A1;
  --online: #3BA55C;
  --scrim: 0.55;
  --pl: 0.04;

  --t0-bg: #E8E6F7; --t0-fg: #4B46A8;
  --t1-bg: #E1EFE7; --t1-fg: #2F6B4F;
  --t2-bg: #F3EBDB; --t2-fg: #7A5A22;
  --t3-bg: #E2ECF5; --t3-fg: #2D5F86;
  --t4-bg: #EFE5EE; --t4-fg: #7A3F72;
  --t5-bg: #EAEAE7; --t5-fg: #4A4B4F;
  --t6-bg: #E6F0F0; --t6-fg: #2E6767;
  --t7-bg: #F1E8E1; --t7-fg: #7B4B2A;

  --tg-bg: #E9EDE4;
  --tg-bubble: #FFFFFF;
  --tg-me: #DCF1D3;
  --rd-bg: #F6F7F8;

  --sh-window: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 30px 80px -32px rgba(12, 13, 16, 0.22),
    0 8px 20px -12px rgba(12, 13, 16, 0.10), 0 0 0 1px rgba(12, 13, 16, 0.07);
  --sh-lift: 0 40px 90px -30px rgba(12, 13, 16, 0.35), 0 12px 28px -12px rgba(12, 13, 16, 0.18),
    0 0 0 1px rgba(12, 13, 16, 0.08);
  --sh-menu: 0 18px 40px -16px rgba(12, 13, 16, 0.28), 0 2px 6px rgba(12, 13, 16, 0.06),
    0 0 0 1px rgba(12, 13, 16, 0.08);
  --sh-btn: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -8px rgba(12, 13, 16, 0.5);
  --sh-sm: 0 1px 2px rgba(12, 13, 16, 0.05);
  --sh-knob: 0 1px 3px rgba(12, 13, 16, 0.25);
  --sh-pill: 0 1px 3px rgba(12, 13, 16, 0.12), 0 0 0 1px rgba(12, 13, 16, 0.04);
  --sh-grip: 0 6px 16px -6px rgba(12, 13, 16, 0.5);
  --sh-bubble: 0 1px 1px rgba(12, 13, 16, 0.08);
  --sh-term: 0 30px 80px -32px rgba(12, 13, 16, 0.45), 0 0 0 1px rgba(12, 13, 16, 0.2);
  --sh-pop: 0 14px 30px -12px rgba(12, 13, 16, 0.28);

  /* Parts that look the same in both themes: the terminal, the video panes of Twitch and YouTube. */
  --term-bg: #121316; --term-fg: #D7D9DE; --term-cmd: #F2F3F5; --term-ok: #BFC2C9; --term-out: #8B8F98;
  --term-prompt: #6A6E77; --term-hot: #FF6A5C; --term-hot-rgb: 255, 106, 92; --term-line: #23252A; --term-dot: #34363C;
  --term-copy-line: #2E3036; --term-copy-bg: #1A1B1F; --term-copy-fg: #BFC2C9; --term-tab: #8B8F98;
  --video-1: #1B1C20; --video-2: #3A3C44; --video-text: #F2F3F5; --video-sub: #9EA1A8;
  --yt-1: #0F0F10; --yt-2: #34302C; --live-bg: #E8E8E6; --live-fg: #0C0D10;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 16px;
  --maxw: 1320px;
}
/* Dark. The same tokens, redefined. With no script the system setting decides (the first block); with one,
 * `data-theme` on <html> is set before first paint and decides (the second). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0F12;
    --surface: #16171B;
    --chrome: #1C1D22;
    --chip: #24262B;
    --ink: #F2F3F5;
    --body: #C4C7CE;
    --muted: #9A9EA7;
    --msg: #E3E5E9;
    --line: #2A2C32;
    --control-line: #6A6E77;
    --flag: #FF4D3D;
    --flag-ink: #FF6A5C;
    --flag-wash: rgba(255, 77, 61, 0.10);
    --flag-chip: rgba(255, 77, 61, 0.16);
    --flag-rgb: 255, 77, 61;
    --ink-rgb: 242, 243, 245;
    --on-ink: #0E0F12;
    --on-ink-dim: rgba(14, 15, 18, 0.7);
    --ink-hover: #D9DBDF;
    --hover: #1A1B20;
    --well: #121317;
    --track: #2C2E35;
    --active: #2C2E35;
    --switch-off: #6A6E77;
    --knob: #F2F3F5;
    --dot: #34363C;
    --outline: #3A3D44;
    --outline-2: #454851;
    --plus-bg: #3A3D44;
    --plus-fg: #E3E5E9;
    --off-fill: #5A5E67;
    --off-tick: #6A6E77;
    --dim: #868A93;
    --struck: #868A93;
    --disabled: #5F636B;
    --cool: #B4B8C0;
    --tell: rgba(246, 200, 80, 0.24);
    --online: #3BA55C;
    --scrim: 0.65;
    --pl: 0.06;

    --t0-bg: #2A2850; --t0-fg: #B9B5F5;
    --t1-bg: #1D3A2C; --t1-fg: #9BD6B7;
    --t2-bg: #3A2F18; --t2-fg: #E6C98C;
    --t3-bg: #1B3345; --t3-fg: #9CCBEE;
    --t4-bg: #3B2338; --t4-fg: #E3A9DB;
    --t5-bg: #2B2C30; --t5-fg: #C4C6CC;
    --t6-bg: #1B3636; --t6-fg: #92D2D2;
    --t7-bg: #3B2A1B; --t7-fg: #E8B58C;

    --tg-bg: #0B0C0F;
    --tg-bubble: #1C1D22;
    --tg-me: #203A2A;
    --rd-bg: #0B0C0F;

    --sh-window: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 80px -32px rgba(0, 0, 0, 0.7),
      0 8px 20px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --sh-lift: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 12px 28px -12px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.10);
    --sh-menu: 0 18px 40px -16px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.10);
    --sh-btn: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-knob: 0 1px 3px rgba(0, 0, 0, 0.4);
    --sh-pill: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --sh-grip: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
    --sh-bubble: 0 1px 1px rgba(0, 0, 0, 0.4);
    --sh-term: 0 30px 80px -32px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  --sh-pop: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0F12;
  --surface: #16171B;
  --chrome: #1C1D22;
  --chip: #24262B;
  --ink: #F2F3F5;
  --body: #C4C7CE;
  --muted: #9A9EA7;
  --msg: #E3E5E9;
  --line: #2A2C32;
  --control-line: #6A6E77;
  --flag: #FF4D3D;
  --flag-ink: #FF6A5C;
  --flag-wash: rgba(255, 77, 61, 0.10);
  --flag-chip: rgba(255, 77, 61, 0.16);
  --flag-rgb: 255, 77, 61;
  --ink-rgb: 242, 243, 245;
  --on-ink: #0E0F12;
  --on-ink-dim: rgba(14, 15, 18, 0.7);
  --ink-hover: #D9DBDF;
  --hover: #1A1B20;
  --well: #121317;
  --track: #2C2E35;
  --active: #2C2E35;
  --switch-off: #6A6E77;
  --knob: #F2F3F5;
  --dot: #34363C;
  --outline: #3A3D44;
  --outline-2: #454851;
  --plus-bg: #3A3D44;
  --plus-fg: #E3E5E9;
  --off-fill: #5A5E67;
  --off-tick: #6A6E77;
  --dim: #868A93;
  --struck: #868A93;
  --disabled: #5F636B;
  --cool: #B4B8C0;
  --tell: rgba(246, 200, 80, 0.24);
  --online: #3BA55C;
  --scrim: 0.65;
  --pl: 0.06;

  --t0-bg: #2A2850; --t0-fg: #B9B5F5;
  --t1-bg: #1D3A2C; --t1-fg: #9BD6B7;
  --t2-bg: #3A2F18; --t2-fg: #E6C98C;
  --t3-bg: #1B3345; --t3-fg: #9CCBEE;
  --t4-bg: #3B2338; --t4-fg: #E3A9DB;
  --t5-bg: #2B2C30; --t5-fg: #C4C6CC;
  --t6-bg: #1B3636; --t6-fg: #92D2D2;
  --t7-bg: #3B2A1B; --t7-fg: #E8B58C;

  --tg-bg: #0B0C0F;
  --tg-bubble: #1C1D22;
  --tg-me: #203A2A;
  --rd-bg: #0B0C0F;

  --sh-window: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 80px -32px rgba(0, 0, 0, 0.7),
    0 8px 20px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --sh-lift: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 12px 28px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.10);
  --sh-menu: 0 18px 40px -16px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.10);
  --sh-btn: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-knob: 0 1px 3px rgba(0, 0, 0, 0.4);
  --sh-pill: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --sh-grip: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  --sh-bubble: 0 1px 1px rgba(0, 0, 0, 0.4);
  --sh-term: 0 30px 80px -32px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  --sh-pop: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: -0.005em;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--body); max-width: 34em; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px;
  font-size: 16px; font-weight: 550; letter-spacing: -0.01em; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--sh-btn); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-ghost { color: var(--ink); padding: 0 6px; }
.btn-ghost .arr { transition: transform 200ms var(--ease-out); }
.btn-ghost:hover .arr { transform: translateX(3px); }
.ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: 64px; display: flex; align-items: center;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark i { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); position: relative; display: block; }
.wordmark i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px; background: var(--on-ink); border-radius: 1px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--body); }
.nav-links a { text-decoration: none; }
@media (max-width: 719px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }
@media (max-width: 479px) { .nav-links .hide-xs { display: none; } }

/* =====================================================================
   The chat window. One component, reused through the page.
   ===================================================================== */
.chat {
  position: relative; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-window);
  display: grid; grid-template-columns: 200px 1fr; overflow: hidden; isolation: isolate;
}
.chat.no-side { grid-template-columns: 1fr; }
.chat-side { background: var(--chrome); border-right: 1px solid var(--line); padding: 14px 10px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.chat-server { font-weight: 650; color: var(--ink); letter-spacing: -0.015em; padding: 4px 8px 12px; display: flex; align-items: center; justify-content: space-between; }
.chat-server small { font-weight: 450; color: var(--muted); font-size: 12px; }
.chat-sec { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 8px 4px; }
.chat-ch { padding: 5px 8px; border-radius: 7px; color: var(--muted); display: flex; gap: 6px; }
.chat-ch b { font-weight: 450; color: var(--muted); }
.chat-ch.on b { color: var(--body); }
.chat-ch.on { background: var(--active); color: var(--ink); font-weight: 550; }
.chat-main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.chat-head { height: 50px; flex: none; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 14px; }
.chat-head .ch { font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.chat-head .ch b { color: var(--muted); font-weight: 500; margin-right: 2px; }
.chat-head .topic { color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .members { margin-left: auto; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chat-head .members i { width: 7px; height: 7px; border-radius: 50%; background: var(--online); display: block; }
.chat-view { position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px); }
.chat-list { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 10px; will-change: transform; }
.chat-foot { flex: none; padding: 0 16px 14px; position: relative; }
.composer { height: 44px; border-radius: 10px; background: var(--chrome); display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: 14.5px; gap: 10px; }
.composer .plus { width: 20px; height: 20px; border-radius: 50%; background: var(--plus-bg); color: var(--plus-fg); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.typing { position: absolute; left: 18px; top: -20px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
.typing.on { opacity: 1; transform: none; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite var(--ease-in-out); }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.msg { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 7px 16px 7px 16px; transition: background-color 240ms var(--ease-out);
  /* a focus wash that GSAP can tween (--focus) without touching the flag wash underneath it */
  background-image: linear-gradient(rgba(var(--ink-rgb), var(--focus, 0)), rgba(var(--ink-rgb), var(--focus, 0))); }
.msg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--flag); transform: scaleY(0); transform-origin: top; }
.msg.flagged { background-color: var(--flag-wash); animation: washHit 520ms var(--ease-out); }
@keyframes washHit { from { background-color: rgba(var(--flag-rgb), 0.14); } to { background-color: var(--flag-wash); } }
.msg.flagged::before { transform: scaleY(1); transition: transform 360ms var(--ease-out); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.msg-body { min-width: 0; }
.msg-meta { display: flex; align-items: center; gap: 8px; min-height: 22px; flex-wrap: wrap; row-gap: 2px; }
.msg-name { font-weight: 600; color: var(--ink); font-size: 14.5px; letter-spacing: -0.01em; }
.msg-time { font-size: 12px; color: var(--muted); }
.msg-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--chip); border-radius: 4px; padding: 1px 5px; }
.msg-text { font-size: 15px; line-height: 1.45; color: var(--msg); overflow-wrap: anywhere; }
.chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px;
  background: var(--chip); color: var(--body); font: 500 12px/1 "Geist", sans-serif; letter-spacing: -0.005em;
  white-space: nowrap; transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out);
}
.chip .cv { font: 500 11.5px/1 "Geist Mono", monospace; font-variant-numeric: tabular-nums; }
.chip .fl { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; margin-right: -5px; padding-bottom: 3px; margin-bottom: -3px; font-weight: 600;
  transition: max-width 300ms var(--ease-out), opacity 200ms var(--ease-out), margin-right 300ms var(--ease-out); }
.chip .shim { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0), rgba(var(--ink-rgb), 0.12), rgba(var(--ink-rgb), 0)); }
.chip .off { color: var(--muted); font-family: "Geist", sans-serif; }
.msg.flagged .chip { background: var(--flag-chip); color: var(--flag-ink); animation: chipHit 380ms linear 120ms both; }
.msg.labelled .chip .fl { max-width: 110px; opacity: 1; margin-right: -1px; }
.msg.read .chip { animation: chipRead 420ms var(--ease-out); }
/* the chip takes the crossing: three decaying 2px oscillations */
@keyframes chipHit { 0% { transform: none; } 16% { transform: translateX(-2px); } 36% { transform: translateX(2px); } 56% { transform: translateX(-1.2px); } 76% { transform: translateX(0.6px); } 100% { transform: none; } }
/* a score the line read and let pass */
@keyframes chipRead { 0% { transform: scale(1); } 30% { transform: scale(0.94); } 100% { transform: scale(1); } }

.act-row { height: 0; overflow: hidden; }
.actions {
  display: inline-flex; margin-top: 6px; background: var(--surface); border-radius: 9px; box-shadow: 0 0 0 1px var(--line), var(--sh-sm);
  padding: 2px; gap: 2px; font-size: 12px; font-weight: 550; opacity: 0; transform-origin: left top;
}
.actions span { height: 22px; padding: 0 9px; display: grid; place-items: center; border-radius: 6px; color: var(--body); }
.actions span.sel { background: var(--ink); color: var(--on-ink); }

/* =====================================================================
   1. Hero and the pinned story
   ===================================================================== */
.hero { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.stage-grid { position: relative; height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.copy-col { position: absolute; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 {
  font-size: clamp(44px, 4.7vw, 76px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 620;
  text-wrap: balance;
}
.hero-copy .lede { margin-top: 22px; }
.hero-copy .ctas { margin-top: 30px; }
.beats { position: absolute; left: 0; right: 0; }
.beat { position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; }
.beat .step { font: 500 13px/1 "Geist Mono", monospace; color: var(--muted); display: block; margin-bottom: 14px; }
.beat h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.beat p { margin-top: 14px; color: var(--body); font-size: 17px; max-width: 26em; }
.rail { display: flex; gap: 6px; position: absolute; left: 0; }
.rail i { width: 28px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; display: block; }
.rail i b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; display: block; }

.hero-chat { position: absolute; }
.hero-chat .chat { width: 100%; height: 100%; }

.lift-card {
  position: absolute; left: 12px; right: 12px; top: 0; z-index: 5; background: var(--surface); border-radius: 14px;
  box-shadow: var(--sh-lift); padding: 12px 16px 16px; visibility: hidden; will-change: transform, clip-path;
}
.lift-card .msg { padding: 2px 0 12px; }
.meters { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.meter { display: grid; grid-template-columns: 112px 1fr 40px; align-items: center; gap: 12px; font-size: 13.5px; }
.meter .lab { color: var(--ink); font-weight: 500; white-space: nowrap; }
.meter.is-off .lab { color: var(--muted); }
.meter .lab em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 5px; font-weight: 500; }
.meter .track { position: relative; height: 8px; background: var(--track); border-radius: 4px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); width: 100%; clip-path: inset(0 100% 0 0 round 4px); }
.meter.is-off .fill { background: var(--off-fill); }
.meter .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; box-shadow: 0 0 0 2px var(--surface); }
.meter.is-off .tick { background: var(--off-tick); }
.meter .val { text-align: right; font: 500 13px/1 "Geist Mono", monospace; color: var(--ink); font-variant-numeric: tabular-nums; }
.meters-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 12px; align-items: center; }
.meters-legend i { display: inline-block; width: 2px; height: 10px; background: var(--ink); vertical-align: -1px; margin-right: 6px; }

.rule { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 4; pointer-events: none; opacity: 0; }
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--flag); box-shadow: 0 0 0 3px rgba(var(--flag-rgb), 0.08), 0 0 14px rgba(var(--flag-rgb), 0.35); }
.rule .trail { position: absolute; left: 0; right: 0; bottom: 1px; height: 110px; transform-origin: 50% 100%; transform: scaleY(0); display: block;
  background: linear-gradient(to top, rgba(var(--flag-rgb), 0.16), rgba(var(--flag-rgb), 0.05) 45%, rgba(var(--flag-rgb), 0)); }
.rule .nub { position: absolute; left: 8px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 0 3px var(--surface), 0 2px 6px rgba(var(--flag-rgb), 0.35); display: block; }
.av-ring { position: absolute; left: 16px; top: 9px; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); opacity: 0; pointer-events: none; display: block; }
.meter.past .tick { animation: tickKick 360ms var(--ease-out); }
@keyframes tickKick { 0% { transform: scaleY(1); } 35% { transform: scaleY(1.45); } 100% { transform: scaleY(1); } }
.hero-copy h1 .lw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-copy h1 .hw { display: inline-block; }
.pre #heroCopy, .pre #heroChatWrap { visibility: hidden; }

.dim-target { transition: none; }

/* desktop hero layout */
@media (min-width: 960px) {
  .copy-col { left: var(--gutter); width: min(38%, 520px); top: 0; bottom: 0; }
  .hero-copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
  .beats { top: 50%; transform: translateY(-50%); height: 240px; }
  .rail { top: -44px; }
  .hero-chat { right: var(--gutter); left: calc(var(--gutter) + min(38%, 520px) + 48px); top: 88px; bottom: 32px; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .chat.has-side { grid-template-columns: 1fr; }
  .chat.has-side .chat-side { display: none; }
}
/* phone and tablet hero layout */
@media (max-width: 959px) {
  .copy-col { left: var(--gutter); right: var(--gutter); top: 76px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-copy .lede { font-size: 17px; margin-top: 16px; }
  .hero-copy .ctas { margin-top: 22px; }
  .beats { top: 0; height: 130px; }
  .beat h3 { font-size: 25px; }
  .beat p { font-size: 15px; margin-top: 8px; }
  .beat .step { margin-bottom: 8px; }
  .rail { top: -18px; }
  .hero-chat { left: 8px; right: 8px; top: 214px; bottom: 10px; }
  .chat.has-side { grid-template-columns: 1fr; }
  .chat.has-side .chat-side { display: none; }
  .chat-head .topic { display: none; }
  .msg { padding: 6px 12px; gap: 10px; grid-template-columns: 32px 1fr; }
  .av { width: 32px; height: 32px; font-size: 13px; }
  .av-ring { left: 12px; top: 8px; width: 32px; height: 32px; }
  .msg-text { font-size: 14.5px; }
  .lift-card { left: 8px; right: 8px; padding: 10px 12px 14px; }
  .meter { grid-template-columns: 92px 1fr 34px; gap: 10px; font-size: 12.5px; }
  .meters { gap: 7px; }
}

/* =====================================================================
   Shared section frame
   ===================================================================== */
.sec { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.sec-head { max-width: 760px; }
.sec-head .eyebrow { margin-bottom: 16px; display: block; }
.sec-head .lede { margin-top: 20px; }
.window-title { height: 44px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.window-title [data-i18n] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.window-title b { color: var(--ink); font-weight: 600; }
.window-title .dots3 { display: flex; gap: 6px; margin-right: 8px; }
.window-title .dots3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); display: block; }
.panel { background: var(--surface); border-radius: 16px; box-shadow: var(--sh-window); overflow: hidden; }

/* =====================================================================
   2. Scored: the switchboard
   ===================================================================== */
.scored-grid { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 960px) { .scored-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; margin-top: 0; } .scored-grid .sec-head { position: sticky; top: 120px; } }
.switchboard .sb-body { padding: 8px 8px 16px; }
.sb-row { display: grid; grid-template-columns: 44px 1fr auto 52px; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; cursor: pointer; }
.sb-row:hover { background: var(--hover); }
.sb-row .nm { color: var(--ink); font-weight: 550; font-size: 15px; letter-spacing: -0.01em; }
.sb-row .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; letter-spacing: 0; }
.sb-row .ln { font: 500 12.5px/1 "Geist Mono", monospace; color: var(--muted); }
.sb-row .sc { font: 500 13px/1 "Geist Mono", monospace; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.sb-row .sc.off { color: var(--muted); font-weight: 400; }
.sb-row.crossed .sc { color: var(--flag); animation: scKick 420ms var(--ease-out); }
@keyframes scKick { 0% { transform: none; } 30% { transform: translateY(-3px) scale(1.12); } 100% { transform: none; } }
.sb-row .sc { display: inline-block; }
.rules .field.is-typing .caret { animation: none; }
.switch { width: 40px; height: 24px; border-radius: 12px; background: var(--switch-off); position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden; flex: none; }
/* the ink fills the track from the knob outward, following it */
.switch::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: circle(0px at 12px 12px); transition: clip-path 380ms var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); box-shadow: var(--sh-knob); transition: background-color 200ms var(--ease-out), transform 420ms cubic-bezier(0.34, 1.45, 0.64, 1); }
.switch[aria-checked="true"]::before { clip-path: circle(44px at 28px 12px); transition-delay: 40ms; }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--on-ink); }
.sb-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.sb-preview { margin: 4px 8px 0; border-radius: 12px; background: var(--hover); border: 1px solid var(--line); }
.sb-preview .msg { padding: 12px 14px; border-radius: 12px; }
.sb-preview-label { font-size: 12px; color: var(--muted); padding: 10px 14px 0; display: flex; justify-content: space-between; }
.rules { margin: 16px 8px 0; }
.rules label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0 4px; }
.rules .field { min-height: 48px; border-radius: 10px; border: 1px solid var(--control-line); padding: 12px 14px; font-size: 15px; color: var(--ink); background: var(--surface); }
.rules .field .caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scored-body2 em { font-style: normal; color: var(--ink); }

/* =====================================================================
   3. The line: the reader drags it
   ===================================================================== */
.line-panel { margin-top: 56px; display: grid; }
.line-top { padding: 8px 0; border-bottom: 1px solid var(--line); }
.line-top .msg { padding: 10px 20px; }
.line-controls { padding: 28px 24px 28px; display: grid; gap: 28px; }
@media (min-width: 960px) { .line-controls { grid-template-columns: 1.6fr 1fr; padding: 36px 36px; gap: 56px; } }
.axis-wrap { position: relative; padding: 52px 0 12px; }
.axis { position: relative; height: 92px; }
.axis .base { position: absolute; left: 0; right: 0; top: 24px; height: 8px; background: var(--track); border-radius: 4px; }
.axis .cross-zone { position: absolute; top: 14px; height: 28px; right: 0; border-radius: 0 8px 8px 0; background: repeating-linear-gradient(135deg, rgba(var(--ink-rgb),.07) 0 2px, transparent 2px 7px); }
.axis .tk { position: absolute; top: 80px; transform: translateX(-50%); font: 500 11.5px/1 "Geist Mono", monospace; color: var(--muted); }
.axis .tk::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 6px; background: var(--control-line); }
.axis .dot { position: absolute; top: 28px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--surface); transition: background-color 200ms var(--ease-out), transform 300ms cubic-bezier(0.34,1.56,0.64,1); z-index: 2; }
.axis .dot.over { background: var(--flag); transform: scale(1.15); }
.axis .dot-lab { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 12px/1 "Geist Mono", monospace; color: var(--ink); background: var(--surface); padding: 5px 7px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.axis .dot.over .dot-lab { color: var(--flag); box-shadow: 0 0 0 1px rgba(var(--flag-rgb),.3); }
.axis .handle { position: absolute; top: -6px; height: 56px; width: 0; z-index: 3; pointer-events: none; }
.axis .handle::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 0; width: 2px; background: var(--ink); border-radius: 1px; }
.axis .handle .grip { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); font: 600 13px/1 "Geist Mono", monospace; padding: 8px 10px; border-radius: 9px; white-space: nowrap; box-shadow: var(--sh-grip); transition: transform 180ms var(--ease-out); }
.axis .handle .grip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 1px; }
.axis-wrap.dragging .grip { transform: translateX(-50%) scale(1.06); }
.axis input[type="range"] { position: absolute; inset: -30px -12px -10px; width: calc(100% + 24px); opacity: 0; cursor: ew-resize; margin: 0; }
.axis-wrap:has(input:focus-visible) .grip { outline: 2px solid var(--ink); outline-offset: 3px; }
.line-drag { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.readout { font-size: 19px; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.readout .n { font-family: "Geist Mono", monospace; font-variant-numeric: tabular-nums; font-size: 0.95em; }
.outcome { margin-top: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--muted); min-height: 1.45em; }
.outcome.hit { color: var(--flag); }
.seg { display: inline-flex; background: var(--chrome); border-radius: 11px; padding: 3px; gap: 2px; position: relative; }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--body); transition: color 200ms var(--ease-out); }
.seg button[aria-checked="true"] { color: var(--on-ink); }
.seg button[disabled] { color: var(--disabled); cursor: not-allowed; }
.seg .pill { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: var(--ink); transition: transform 380ms cubic-bezier(0.34, 1.3, 0.64, 1), width 380ms var(--ease-out); z-index: 0; }
.ctl-label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: block; }
.samp { display: flex; gap: 8px; flex-wrap: wrap; }
.samp button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; cursor: pointer; color: var(--body); }
.samp button[aria-checked="true"] { border-color: var(--ink); color: var(--ink); font-weight: 550; }
.note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.msg .deleted { font-style: italic; color: var(--muted); }
.msg .timeout { font-size: 11.5px; font-weight: 600; color: var(--flag); }
.msg.timed .av { filter: grayscale(1); opacity: .45; }
.msg-text.gone { display: none; }
.line-top .msg-text { overflow: hidden; }
.msg .av { transition: filter 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.axis .handle { transform-origin: 0 100%; }
.axis .dot-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--flag); pointer-events: none; display: block; }

/* =====================================================================
   4. The principle
   ===================================================================== */
.principle { height: 100vh; height: 100svh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.pr-lines { display: grid; gap: clamp(6px, 1vw, 14px); }
.pr-line { font-size: clamp(44px, 8.4vw, 132px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 620; color: var(--ink); position: relative; display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap; }
.pr-line .w { opacity: .1; display: inline-block; filter: blur(8px); }
.pr-score { display: inline-flex; }
.odo-c { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-r { display: block; line-height: 1; }
.pr-grip { position: absolute; left: -6px; bottom: calc(-0.04em - 5px); width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); opacity: 0; display: block; }
.pr-score { font: 500 clamp(16px, 1.8vw, 26px)/1 "Geist Mono", monospace; letter-spacing: 0; color: var(--muted); align-self: flex-start; margin-top: .6em; opacity: 0; font-variant-numeric: tabular-nums; }
.pr-rule { position: absolute; left: 0; right: calc(-1 * var(--gutter) - 50vw); bottom: -0.04em; height: 3px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.pr-rule span { position: absolute; left: 0; top: 12px; font: 600 13px/1 "Geist Mono", monospace; letter-spacing: 0; color: var(--ink); opacity: 0; }
.pr-acts { display: inline-flex; gap: 8px; align-self: center; margin-left: .1em; }
.pr-acts span { font: 550 clamp(13px, 1.3vw, 17px)/1 "Geist", sans-serif; letter-spacing: -0.01em; padding: 10px 14px; border-radius: 10px; background: var(--chrome); color: var(--body); opacity: 0; }
.pr-acts span.sel { background: var(--ink); color: var(--on-ink); }
.pr-body { margin-top: clamp(28px, 4vw, 48px); max-width: 36em; opacity: 0; }

/* =====================================================================
   5. Limits: the context menu
   ===================================================================== */
.limits-stage { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 960px) { .limits-stage { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; } }
.lim-chat { height: 440px; }
.lim-chat .chat-view { -webkit-mask-image: none; mask-image: none; }
.ctx {
  position: absolute; z-index: 6; width: 268px; background: var(--surface); border-radius: 12px; box-shadow: var(--sh-menu);
  padding: 6px; font-size: 14px; transform-origin: top left; opacity: 0; transform: scale(0.96); pointer-events: none;
}
.ctx.open { opacity: 1; transform: scale(1); pointer-events: auto; transition: opacity 160ms var(--ease-out), transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.ctx .it { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--body); }
.ctx .it kbd { margin-left: auto; font: 500 11px/1 "Geist Mono", monospace; color: var(--dim); }
.ctx .sep { height: 1px; background: var(--line); margin: 5px 6px; }
.ctx .grp { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 10px 4px; }
.ctx button.it { width: 100%; border: 0; background: transparent; text-align: left; cursor: default; color: var(--dim); font-size: 14px; }
.ctx button.it .lk { width: 14px; height: 14px; flex: none; }
.ctx button.it.hl { color: var(--muted); }
.ctx button.it { position: relative; z-index: 1; }
.ctx .ctx-hl { position: absolute; left: 6px; right: 6px; top: 0; height: 34px; border-radius: 7px; background: var(--chrome); z-index: 0; display: block; pointer-events: none; }
.lim-list i { position: relative; overflow: hidden; }
.lim-list i b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; display: block; }
.click-ring { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(var(--ink-rgb), 0.5); z-index: 7; pointer-events: none; display: block; }
.ctx button.it .why { margin-left: auto; font-size: 11px; color: var(--dim); }
.cursor { position: absolute; z-index: 7; width: 18px; height: 22px; pointer-events: none; left: 0; top: 0; opacity: 0; }
.lim-explain { min-height: 190px; }
.lim-explain .k { font: 500 13px/1 "Geist Mono", monospace; color: var(--muted); }
.lim-explain h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.035em; line-height: 1.05; margin-top: 12px; }
.lim-explain p { margin-top: 14px; max-width: 30em; }
.lim-list { display: flex; gap: 6px; margin-top: 22px; }
.lim-list i { width: 28px; height: 3px; border-radius: 2px; background: var(--line); display: block; transition: background-color 200ms var(--ease-out); }
.lim-list i.on { background: var(--line); }

/* =====================================================================
   6. Platforms: the same chat, five skins
   ===================================================================== */
.plat { height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 24px; }
.plat-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; }
.plat-tabs { display: flex; gap: 4px; background: var(--chrome); border-radius: 12px; padding: 4px; position: relative; overflow-x: auto; scrollbar-width: none; }
.plat-tabs button { position: relative; z-index: 1; border: 0; background: transparent; height: 40px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 550; color: var(--body); cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.1; white-space: nowrap; }
.plat-tabs button small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.plat-tabs button[aria-selected="true"] { color: var(--ink); }
.plat-tabs .pill { position: absolute; top: 4px; bottom: 4px; left: 0; background: var(--surface); border-radius: 9px; box-shadow: var(--sh-pill); z-index: 0; }
.plat-screen { position: relative; margin-top: 28px; flex: 1; min-height: 0; max-height: 560px; width: 100%; max-width: 1080px; }
.skin { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-window); background: var(--surface); }
.skin .fmsg { position: relative; }
.skin .fmsg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--flag); transform: scaleY(0); transform-origin: top; transition: transform 360ms var(--ease-out); }
.skin.on .fmsg::before { transform: scaleY(1); }
.plat-travel { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.plat-travel .tv { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.plat-travel .av { display: grid; place-items: center; border-radius: 50%; font-weight: 600; margin: 0; }
.plat-travel .tv-text { overflow-wrap: anywhere; }
.flagchip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--flag-chip); color: var(--flag-ink); font: 600 11.5px/1 "Geist", sans-serif; white-space: nowrap; }
.flagchip b { font: 500 11.5px/1 "Geist Mono", monospace; margin-left: 4px; }
.skin-badge { position: absolute; right: 14px; bottom: 14px; font-size: 12px; background: var(--ink); color: var(--on-ink); border-radius: 7px; padding: 6px 9px; font-weight: 550; z-index: 3; }
.skin-badge.self { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--control-line); }
/* telegram-like */
.sk-tg { background: var(--tg-bg); display: flex; flex-direction: column; }
.sk-tg .tg-head { height: 56px; background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.sk-tg .tg-head .gav { width: 38px; height: 38px; border-radius: 50%; background: var(--t3-bg); color: var(--t3-fg); display: grid; place-items: center; font-weight: 650; }
.sk-tg .tg-head b { color: var(--ink); display: block; font-size: 15px; }
.sk-tg .tg-head small { color: var(--muted); font-size: 12.5px; }
.sk-tg .tg-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; overflow: hidden; }
.tg-b { max-width: min(520px, 82%); background: var(--tg-bubble); border-radius: 16px 16px 16px 4px; padding: 8px 12px 6px; box-shadow: var(--sh-bubble); font-size: 15px; color: var(--msg); position: relative; }
.tg-b .n { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.tg-b .t { font-size: 11px; color: var(--muted); float: right; margin: 6px 0 0 10px; }
.tg-b.me { align-self: flex-end; background: var(--tg-me); border-radius: 16px 16px 4px 16px; }
.tg-b.me .t { color: var(--body); }
.tg-b.fmsg { box-shadow: 0 0 0 1.5px var(--flag); background: var(--tg-bubble); }
.tg-b.fmsg::before { display: none; }
.tg-b .flagchip { margin-top: 6px; }
/* reddit-like */
.sk-rd { background: var(--rd-bg); overflow: hidden; }
.rd-post { background: var(--surface); margin: 16px; border-radius: 12px; border: 1px solid var(--line); padding: 16px 18px; }
.rd-post .sub { font-size: 12.5px; color: var(--muted); }
.rd-post .sub b { color: var(--ink); }
.rd-post h4 { margin: 6px 0 0; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; font-weight: 600; }
.rd-post .bar { display: flex; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.rd-c { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 0 16px; padding: 12px 18px 12px 14px; background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.rd-c.last { border-bottom: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.rd-c.first { border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.rd-c .av { width: 28px; height: 28px; font-size: 11px; }
.rd-c .u { font-size: 12.5px; color: var(--muted); } .rd-c .u b { color: var(--ink); font-weight: 600; }
.rd-c .x { font-size: 15px; color: var(--msg); margin-top: 3px; }
.rd-c .vt { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 12px; }
.rd-c.nest { margin-left: 56px; }
/* twitch-like */
.sk-tw { display: grid; grid-template-columns: 1fr 340px; background: var(--surface); }
.tw-video { background: var(--video-1); position: relative; }
.tw-video .live { position: absolute; left: 16px; top: 16px; background: var(--live-bg); color: var(--live-fg); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 7px; border-radius: 4px; }
.tw-video .ttl { position: absolute; left: 16px; bottom: 16px; color: var(--video-text); font-size: 15px; font-weight: 600; }
.tw-video .ttl small { display: block; color: var(--video-sub); font-weight: 450; font-size: 12.5px; }
.tw-video .grid { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 40%, var(--video-2) 0%, var(--video-1) 70%); }
.tw-chat { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-width: 0; }
.tw-chat .hd { height: 46px; border-bottom: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; flex: none; }
.tw-lines { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 0; overflow: hidden; }
.tw-l { font-size: 13.5px; line-height: 1.45; padding: 4px 14px; color: var(--msg); }
.tw-l b { font-weight: 700; }
.tw-l .flagchip { margin-top: 4px; }
/* youtube-like */
.sk-yt { display: grid; grid-template-columns: 1fr 360px; }
.yt-video { background: var(--yt-1); position: relative; }
.yt-video .grid { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 50%, var(--yt-2) 0%, var(--yt-1) 70%); }
.yt-video .live { position: absolute; left: 16px; bottom: 16px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 4px; letter-spacing: .04em; }
.yt-chat { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-width: 0; }
.yt-chat .hd { height: 50px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; font-size: 15px; color: var(--ink); font-weight: 550; flex: none; }
.yt-lines { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 0; overflow: hidden; }
.yt-l { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 6px 16px; font-size: 13.5px; color: var(--msg); line-height: 1.4; }
.yt-l .av { width: 24px; height: 24px; font-size: 10px; margin: 0; }
.yt-l .u { color: var(--muted); margin-right: 6px; font-weight: 500; }
@media (max-width: 959px) {
  .sk-tw, .sk-yt { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
  .tw-chat, .yt-chat { border-left: 0; }
  .rd-c.nest { margin-left: 36px; }
  .plat-screen { margin-top: 20px; }
  .plat-head .h2 { font-size: 34px; }
}

/* =====================================================================
   7. Measured
   ===================================================================== */
.proof-rows { margin-top: 64px; border-top: 1px solid var(--line); }
.proof-row { display: grid; gap: 28px; padding: 44px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .proof-row { grid-template-columns: 0.9fr 1.4fr; gap: 64px; align-items: center; padding: 56px 0; } }
@media (max-width: 479px) { .proof-row { gap: 20px; padding: 36px 0; } }
.fig { font-size: clamp(88px, 14vw, 200px); line-height: 1.04; letter-spacing: -0.06em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fig small { font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -0.02em; color: var(--muted); font-weight: 500; margin-left: .2em; }
.fig-cap { margin-top: 16px; max-width: 26em; }
.grid100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 340px; }
.grid100 i { aspect-ratio: 1; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--outline); display: block; transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.grid100 i.c { background: var(--ink); box-shadow: none; }
.grid100 i.miss { animation: missBlink 900ms var(--ease-out); }
@keyframes missBlink { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--outline); } 30% { box-shadow: inset 0 0 0 2px var(--ink); } }
#figCaught, #figMs, #figZero, #scanZero { display: inline-block; }
.json .v { transition: color 200ms var(--ease-out); }
.json .v.unread { color: var(--muted); font-weight: 400; }
.json .scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: 0.3; }
.grid-legend { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.grid-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--ink); }
.grid-legend span.m::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--outline-2); }
.trace { position: relative; }
.trace svg { width: 100%; height: auto; display: block; overflow: visible; }
.trace .t-axis { stroke: var(--line); }
.trace text { font: 500 11.5px "Geist Mono", monospace; fill: var(--muted); }
.trace .t-ink { stroke: var(--ink); }
.trace-controls { display: flex; gap: 14px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.replay { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; color: var(--ink); }
.json > div { white-space: pre; }
.json { font: 400 13.5px/1.7 "Geist Mono", monospace; background: var(--well); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: var(--body); position: relative; overflow: hidden; }
.json .k { color: var(--muted); }
.json .v { color: var(--ink); font-weight: 550; }
.json .scan { position: absolute; left: 0; right: 0; height: 24px; background: linear-gradient(to bottom, transparent, rgba(var(--ink-rgb),.05), transparent); top: 0; opacity: 0; }
.proof-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: baseline; justify-content: space-between; }
.proof-foot a { color: var(--ink); font-weight: 550; text-underline-offset: 4px; }

/* =====================================================================
   8. Next: the wave
   ===================================================================== */
.status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--body); font-weight: 500; }
.status i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); display: block; }
.next-stage { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 960px) { .next-stage { grid-template-columns: 1.2fr 1fr; gap: 32px; } }
.wave-chat { height: 500px; }
.wave-chat .chat-view { -webkit-mask-image: none; mask-image: none; }
.wave-list { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 10px; }
.wave-list .msg { padding-top: 5px; padding-bottom: 5px; }
.wave-list .new { font-size: 10px; font-weight: 600; color: var(--muted); background: var(--chip); border-radius: 4px; padding: 1px 5px; }
.event {
  position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-lift);
  padding: 16px 18px; opacity: 0; transform: translateY(12px) scale(0.98); z-index: 3;
}
.event .ev-top { display: flex; align-items: center; gap: 12px; }
.event .stack { display: flex; }
.event .stack .av { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); margin: 0 0 0 -8px; }
.event .stack .av:first-child { margin-left: 0; }
.event b { color: var(--ink); font-size: 15px; }
.event p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.event .ev-act { margin-top: 12px; display: flex; gap: 8px; }
.event .ev-act span { font-size: 12.5px; font-weight: 550; padding: 6px 10px; border-radius: 7px; background: var(--chrome); color: var(--body); }
.queue { padding: 8px 0 12px; }
.queue h4 { margin: 0; padding: 14px 18px 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.q-item { display: grid; grid-template-columns: 22px 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; position: relative; background: var(--surface); border-radius: 10px; }
.q-item .rk { display: inline-block; }
.chat-main .flyer { position: absolute; left: 0; top: 0; z-index: 4; margin: 0; box-shadow: 0 0 0 2px var(--surface); }
.wave-list .msg { overflow: hidden; }
.queue h4 span:last-child { display: inline-block; }
.q-item .rk { font: 500 12px/1 "Geist Mono", monospace; color: var(--muted); }
.q-item .av { width: 32px; height: 32px; font-size: 12px; margin: 0; }
.q-item .tx { font-size: 14px; color: var(--msg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.q-item .tx b { display: block; font-size: 13px; color: var(--ink); }
.next-notes { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 720px) { .next-notes { grid-template-columns: 1fr 1fr; gap: 48px; } }
.next-notes h3 { font-size: 20px; letter-spacing: -0.02em; }
.next-notes p { margin-top: 8px; color: var(--body); font-size: 16px; }
.illus { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* =====================================================================
   9. Price: the server settings panel
   ===================================================================== */
.price-panel { margin-top: 56px; display: grid; }
@media (min-width: 960px) { .price-panel { grid-template-columns: 220px 1fr; } }
.ps-side { background: var(--chrome); padding: 18px 12px; font-size: 14px; border-right: 1px solid var(--line); }
.ps-side .chat-ch { padding: 7px 10px; }
@media (max-width: 959px) { .ps-side { display: none; } }
.ps-main { padding: 28px 24px 32px; }
@media (min-width: 960px) { .ps-main { padding: 40px 44px 44px; } }
.ps-main h3 { font-size: 22px; letter-spacing: -0.025em; }
.cal { margin-top: 28px; display: grid; grid-template-columns: repeat(14, 1fr) 2.6fr; gap: 5px; align-items: stretch; }
.cal .d { height: 64px; border-radius: 8px; background: var(--chrome); position: relative; }
.cal .d span { position: absolute; left: 7px; top: 7px; font: 500 11px/1 "Geist Mono", monospace; color: var(--muted); }
.cal .d.lit { background: var(--ink); }
.cal .d.lit span { color: var(--on-ink-dim); }
.cal .pro { border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; justify-content: center; padding: 0 14px; background: var(--surface); }
.cal .pro b { font-size: 15px; color: var(--ink); }
.cal .pro small { font-size: 11.5px; color: var(--muted); }
.cal .pro.lit { box-shadow: inset 0 0 0 2px var(--ink); }
.cal { position: relative; }
.cal .pro { position: relative; }
.cal .playhead { position: absolute; left: 0; top: -6px; bottom: -6px; width: 2px; border-radius: 1px; background: var(--ink); opacity: 0; display: block; pointer-events: none; }
.cal .pro-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cal .pro-ring rect { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.quota .q-edge { position: absolute; left: -1px; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 8px 1px rgba(var(--ink-rgb), 0.35); opacity: 0; display: block; }
.quota .qt { overflow: visible; }
.quota .qt i { border-radius: 4px; }
.cal-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 719px) {
  .cal { grid-template-columns: repeat(7, 1fr); }
  .cal .pro { grid-column: 1 / -1; height: 64px; }
  .cal .d { height: 44px; }
}
.plans { margin-top: 36px; display: grid; border-top: 1px solid var(--line); }
.plan { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .plan { grid-template-columns: 180px 1fr auto; gap: 32px; align-items: baseline; } }
.plan .pn { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.plan .pa { font-size: 40px; font-weight: 600; color: var(--ink); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .pa small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 450; margin-left: 4px; }
.plan p { font-size: 15.5px; color: var(--body); max-width: 34em; }
.quota { margin-top: 12px; font-size: 13px; color: var(--muted); }
.quota .qt { margin-top: 8px; height: 8px; border-radius: 4px; background: var(--track); position: relative; overflow: hidden; }
.quota .qt i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 6px); opacity: .9; clip-path: inset(0 100% 0 0); display: block; }
.price-cta { margin-top: 32px; }

/* =====================================================================
   10. Developers: terminal
   ===================================================================== */
.dev-grid { display: grid; gap: 40px; margin-top: 0; }
@media (min-width: 960px) { .dev-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; } }
.term { background: var(--term-bg); border-radius: 16px; box-shadow: var(--sh-term); overflow: hidden; color: var(--term-fg); }
.term-top { height: 44px; display: flex; align-items: center; padding: 0 14px; gap: 6px; border-bottom: 1px solid var(--term-line); }
.term-top .dots3 { display: flex; gap: 6px; margin-right: 12px; } .term-top .dots3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--term-dot); display: block; }
.term-tabs { display: flex; gap: 2px; }
.term-tabs button { height: 30px; padding: 0 12px; border: 0; background: transparent; border-radius: 7px; color: var(--term-tab); font-size: 13px; cursor: pointer; font-weight: 500; }
.term-tabs button[aria-selected="true"] { background: var(--term-line); color: var(--term-cmd); }
.term-body { padding: 20px 22px 24px; font: 400 14px/1.75 "Geist Mono", monospace; min-height: 250px; position: relative; overflow-x: auto; }
.term-body .p { color: var(--term-prompt); user-select: none; }
.term-body .tl { display: flex; }
.term-body .p { flex: none; white-space: pre; }
.term-body .c { color: var(--term-cmd); white-space: pre-wrap; word-break: break-all; }
.term-body .o { color: var(--term-out); white-space: pre-wrap; }
.term-body .o .hot { color: var(--term-hot); }
.term-body .o .ok { color: var(--term-ok); }
.term-caret { display: inline-block; width: 8px; height: 1.1em; background: var(--term-cmd); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.copy { position: absolute; right: 12px; top: 12px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--term-copy-line); background: var(--term-copy-bg); color: var(--term-copy-fg); font-size: 12px; cursor: pointer; transition: transform 140ms var(--ease-out); }
.copy:active { transform: scale(0.96); }
.term-caret.solid { animation: none; }
.term-body .o .hot { border-radius: 3px; }
.copy { display: inline-block; }

/* =====================================================================
   11. The finale and the footer (the demo, then the close: see "The finale" below)
   ===================================================================== */
.sysmsg { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 26px; font-size: 13.5px; color: var(--muted); }
.sysmsg i { width: 14px; height: 2px; background: var(--online); display: block; border-radius: 1px; transform-origin: 0 50%; }
.sysmsg.turn i { background: var(--ink); }
.sysmsg.turn { color: var(--body); }
.sysmsg b { color: var(--ink); font-weight: 600; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; color: var(--body); }
footer a:hover { color: var(--ink); }

/* =====================================================================
   Reduced motion: end states, no pins
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   2b. AI slop: the tells, phrase by phrase
   ===================================================================== */
.slop { height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; display: flex; align-items: center; }
.slop-grid { display: grid; gap: 20px; width: 100%; }
@media (min-width: 960px) { .slop-grid { grid-template-columns: 0.9fr 1.2fr; gap: 64px; align-items: center; } }
.slop-copy .eyebrow { display: block; margin-bottom: 14px; }
.slop-more .lede { margin-top: 20px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 30em; }
.facts li { font-size: 15.5px; line-height: 1.5; color: var(--body); padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1.5px; background: var(--ink); }
.slop-toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.slop-toggle .muted { color: var(--muted); margin-left: 6px; }
.slop-toggle .ln { color: var(--muted); font-size: 12.5px; }
.slop-chat { height: 330px; }
@media (min-width: 960px) { .slop-chat .msg-text { font-size: 17px; line-height: 1.6; } }
.slop-chat .chat-view { -webkit-mask-image: none; mask-image: none; }
mark.tell {
  background: linear-gradient(var(--tell), var(--tell)) no-repeat 0 60% / 0% 78%; color: inherit; padding: 0 1px; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
mark.tell sup { font: 600 9.5px/1 "Geist Mono", monospace; color: var(--muted); margin-left: 2px; opacity: 0; vertical-align: 4px; }
.tells { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.tells li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 14px; color: var(--ink); opacity: .18; padding: 3px 0; }
.tells li b { font: 600 11px/1 "Geist Mono", monospace; color: var(--muted); width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; align-self: center; }
.tells li.lit { opacity: 1; }
.tells li.lit b { background: var(--ink); color: var(--on-ink); }
mark.tell sup { display: inline-block; }
.typing-row { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); opacity: 0; pointer-events: none; }
.typing-row b { color: var(--ink); font-weight: 600; }
.actions span.no { position: relative; text-decoration: none; }
.actions span.no .strike { position: absolute; left: 7px; right: 7px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transform-origin: 0 50%; display: block; }
.tells li span small { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.tells-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.actions span.no { color: var(--struck); }
.actions span.nb { color: var(--muted); font-weight: 500; }
.slop-after { display: none; }
@media (max-width: 959px) {
  .slop { align-items: flex-start; padding-top: 64px; }
  .slop-copy .slop-more { display: none; }
  .slop-after { display: block; padding-top: 32px; padding-bottom: 24px; }
  .slop-after .slop-more { display: block; }
  .slop-copy .h2 { font-size: 32px; }
  .slop-chat { height: 290px; }
  .tells li { font-size: 13px; }
}

#pr2 { margin-bottom: 0.32em; }
@media (max-width: 719px) { .trace text { font-size: 22px; } .wave-chat { height: 400px; } }

.beat-lines { position: absolute; left: 0; top: 250px; width: min(100%, 300px); display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 5px; font-size: 13.5px; opacity: 0; pointer-events: none; }
.beat-lines .bl-h { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.beat-lines .bl { display: contents; color: var(--ink); }
.beat-lines .bl .mono { font-size: 12.5px; text-align: right; }
.beat-lines .bl.off span { color: var(--muted); }
@media (max-width: 959px) { .beat-lines { display: none; } #pr2 { margin-bottom: 0.6em; } .pr-rule span { top: 10px; } }

/* =====================================================================
   Still page: GSAP did not load, so app.js never ran (boot.js). Every
   word the page carries, in its end state, nothing pinned.
   ===================================================================== */
.lim-still, .plat-still { display: none; }
.nolib .stage { height: auto; min-height: 0; overflow: visible; padding: 120px 0 40px; }
.nolib .stage-grid { height: auto; }
.nolib .copy-col, .nolib .hero-copy { position: static; transform: none; width: auto; max-width: 640px; }
.nolib .beats { position: static; transform: none; height: auto; display: grid; gap: 32px; margin-top: 64px; }
.nolib .beat { position: static; opacity: 1; }
.nolib .rail, .nolib .beat-lines, .nolib .hero-chat, .nolib .lim-chat, .nolib .lim-explain, .nolib .plat-tabs, .nolib .plat-screen { display: none; }
.nolib .principle { height: auto; min-height: 0; padding: 120px 0; }
.nolib .pr-score, .nolib .pr-rule span, .nolib .pr-acts span, .nolib .pr-body { opacity: 1; }
.nolib .pr-rule { transform: none; }
.nolib .lim-still { display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; max-width: 46em; }
.nolib .lim-still h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.nolib .lim-still p { margin-top: 10px; color: var(--body); font-size: 17px; }
.nolib .limits-stage { display: block; height: auto; }
.nolib .plat { height: auto; min-height: 0; padding: 120px 0 40px; }
.nolib .plat-still { display: grid; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; font-size: 17px; color: var(--body); }
.nolib .plat-still a { color: var(--ink); font-weight: 550; margin-right: 8px; }

/* =====================================================================
   Nav controls: language and theme
   ===================================================================== */
.nav-ctl { display: inline-flex; align-items: center; gap: 8px; }
.lang { position: relative; display: inline-flex; align-items: center; }
.lang::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none; height: 36px; border-radius: 10px; border: 1px solid var(--control-line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; padding: 0 28px 0 10px; cursor: pointer; max-width: 128px;
}
.lang select:hover { background: var(--chrome); }
.theme-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--control-line); background: var(--bg); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; flex: none;
}
.theme-btn:hover { background: var(--chrome); }
.theme-btn svg { width: 18px; height: 18px; display: none; }
.theme-btn[data-mode="system"] .i-sys, .theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* =====================================================================
   Hero link to the demo
   ===================================================================== */
.hero-copy .try-link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 550; color: var(--ink); text-underline-offset: 4px; }
.hero-copy .try-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 959px) { .hero-copy .try-link { margin-top: 12px; } }

/* =====================================================================
   Languages
   ===================================================================== */
html[lang="zh"] * { letter-spacing: normal; }
html[lang="zh"] :is(h1, h2, h3, .pr-line, .try-close h2, .ph-post) { line-height: 1.15; }
html[lang="zh"] .beat h3, html[lang="zh"] .lim-explain h3 { line-height: 1.2; }
/* German compounds are long; they break at syllables in prose and headings. Not in the chat's messages: those are English
   texts on every page, and would be broken by German or Spanish rules. */
html[lang="de"] :is(h1, h2, h3, .lede, .fig-cap, .note, .plan p, .next-notes p, .beat p, .lim-explain p, .facts li) { hyphens: auto; overflow-wrap: break-word; }

/* A longer language must not widen a grid column past its panel (the panel clips silently): grid children may shrink,
   and the segmented control wraps its labels on a phone, the chosen one drawn on its own button instead of on the pill. */
.line-controls > *, .try-grid > *, .scored-grid > *, .limits-stage > *, .next-stage > *, .dev-grid > * { min-width: 0; }
@media (max-width: 719px) {
  .seg { flex-wrap: wrap; max-width: 100%; }
  .seg .pill { display: none; }
  .seg button[aria-checked="true"] { background: var(--ink); }
  .window-title .dots3 { display: none; }
  .sb-preview-label { gap: 12px; }
  .sb-preview-label span:last-child { text-align: right; }
}
@media (max-width: 479px) {
  .term-top .dots3 { display: none; }
  .sb-row { grid-template-columns: 44px minmax(0, 1fr) auto 36px; gap: 8px; padding-left: 8px; padding-right: 8px; }
  .sb-row .nm { overflow-wrap: anywhere; }
  .sb-row .ln { font-size: 11.5px; }
  .pr-acts { flex-wrap: wrap; max-width: 100%; }
  .pr-acts span { padding: 8px 10px; }
}
@media (max-width: 359px) { .window-title .wt-tail { display: none; } }

/* =====================================================================
   Headings, figures and the thread (the page as one piece)
   ===================================================================== */
/* Every h2 rises word by word out of a line mask (app.js); the words a string marks are underlined, 2px, in the flag colour.
   Drawn is the end state: the animation takes it from 0 (--u), reduced motion and the page without script keep it. */
.h2 .lw, .try-close h2 .lw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; max-width: 100%; }
.h2 .hw, .try-close h2 .hw { display: inline-block; }
.kw {
  --u: 1; background-image: linear-gradient(var(--flag), var(--flag)); background-repeat: no-repeat; background-position: 0 calc(100% - 0.2em);
  background-size: calc(var(--u) * 100%) 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* The proof's two figure headings: a small line, the number as a display figure, the rest at h2 size. */
.proof-trained { max-width: none; margin-bottom: clamp(72px, 9vw, 130px); }
.trained-model { margin-top: 20px; font-size: 15px; }
.proof-h { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(6px, 1vw, 14px); letter-spacing: normal; }
.ph-pre { font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; letter-spacing: -0.005em; line-height: 1.5; color: var(--body); }
.ph-fig {
  position: relative; display: inline-block; max-width: 100%; font-size: clamp(96px, 18vw, 240px); line-height: 1.04; letter-spacing: -0.05em;
  font-weight: 620; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* six digits are wider than four: the floor is lower, so the figure still fits a 320px screen */
.ph-fig.ph-wide { font-size: clamp(56px, 17vw, 240px); }
.ph-post { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.ph-rule { position: absolute; left: 0; right: 0; bottom: -0.05em; height: 2px; background: var(--flag); transform-origin: left; display: block; }
/* A figure as wheels of digits: each column shows one of eleven digits (0 to 9, then 0 again, so a carry can wrap). */
.odo { display: inline-flex; vertical-align: top; }
.odo .odo-c { display: block; height: 1.04em; overflow: hidden; line-height: 1.04; }
.odo .odo-r { display: block; will-change: transform; }
.odo .odo-r i { display: block; height: 1.04em; font-style: normal; }
.odo-s { display: block; height: 1.04em; line-height: 1.04; }
.odo, .odo-c, .odo-s { user-select: none; }

/* The thread: the page's progress, a 2px rule at the top of the window with a tick where each section starts. */
.thread { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 30; pointer-events: none; background: var(--line); }
.th-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; display: block; }
.th-tick { position: absolute; top: 0; width: 2px; height: 6px; margin-left: -1px; background: var(--ink); border-radius: 0 0 1px 1px; transform-origin: 50% 0; display: block; }
@media (prefers-reduced-motion: reduce) { .th-fill { display: none; } }

/* Pointer light and magnetic buttons (a mouse only; app.js adds them). */
.panel, .term { position: relative; }
.plight {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 9; display: block;
  background: radial-gradient(320px circle at calc(var(--lx, 0) * 1px) calc(var(--ly, 0) * 1px), rgba(var(--ink-rgb), var(--pl)), transparent 100%);
}
.btn-primary { translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); }

/* =====================================================================
   The finale: the demo as the last act, then the close
   ===================================================================== */
/* The stage, pinned on a wide screen. It sits above the page's other sections, so the scrim it holds can dim them. */
.try-pin { position: relative; z-index: 3; isolation: isolate; }
.try-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .try-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr); gap: 56px; align-items: center; } }
.try-left { position: relative; z-index: 2; }
.try-privacy { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.try-privacy a { color: var(--ink); text-underline-offset: 3px; }
.try-right { min-width: 0; }
.try-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.try-chips.live { z-index: 2; }
.try-chip { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--control-line); background: var(--surface); color: var(--body); font-size: 14px; cursor: pointer; }
.try-chip:hover { background: var(--hover); color: var(--ink); }
.try-chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 550; }
/* the window; its lifted shadow (--lift, 0 to 1) is a layer of its own, since two shadow lists of another length do not tween */
.try-chat { position: relative; z-index: 2; isolation: isolate; height: 420px; border-radius: 16px; }
.try-chat::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: var(--sh-lift); opacity: var(--lift, 0); pointer-events: none; z-index: -1; }
.try-chat .chat { height: 100%; }
.try-chat .chat-view { -webkit-mask-image: none; mask-image: none; }
.msg-meta { position: relative; }
.chip-ring { position: absolute; border-radius: 6px; box-shadow: 0 0 0 2px var(--flag); pointer-events: none; opacity: 0; display: block; }
.try-composer { position: relative; padding: 0 6px 0 14px; gap: 8px; }
.try-composer:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.try-composer input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; }
.try-composer input::placeholder { color: var(--muted); opacity: 1; }
.try-composer .btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; flex: none; }
.try-composer .btn[disabled] { opacity: .55; cursor: progress; }
/* the ghost text: the composer typing by itself, with the terminal's caret. It never takes focus. */
.ghost { position: absolute; left: 14px; top: 0; bottom: 0; display: flex; align-items: center; min-width: 0; pointer-events: none; font-size: 14.5px; color: var(--muted); }
.ghost .gt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ghost .term-caret { flex: none; margin-left: 1px; vertical-align: baseline; background: var(--ink); opacity: 0.55; }
.pulse { position: absolute; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); pointer-events: none; opacity: 0; display: block; }
@media (max-width: 719px) { .try-composer input, .ghost { font-size: 16px; } .try-chat { height: 380px; } }
.chip.scoring { gap: 6px; color: var(--body); }
.chip.scoring .dots i { background: var(--body); }
/* the scrim: --bg over everything but the window and the left column, with a soft hole round the window */
.scrim { position: absolute; z-index: 1; pointer-events: none; opacity: 0; display: block; will-change: opacity; }
.scrim .dim { fill: var(--bg); }

/* The answer, under the window: it unfolds like the hero's lifted card, then its meters fill. */
.try-under { margin-top: 20px; }
.try-under .try-results { min-width: 0; }
.try-gap { display: none; }
@media (min-width: 960px) { .try-gap { display: block; } }
.try-results { position: relative; z-index: 4; }
.try-panel { padding: 6px 20px 18px; box-shadow: var(--sh-lift); }
.try-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.try-verdict { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); display: inline-block; }
.try-verdict.hit { color: var(--flag-ink); }
.try-ms { font-size: 13.5px; color: var(--muted); }
.try-meters { display: grid; gap: 14px; padding: 16px 0 4px; }
.meter.try-meter { grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13.5px; }
.try-meter .lab { white-space: normal; }
.try-meter .track { grid-column: 1 / -1; }
.try-meter .nums { display: inline-flex; gap: 10px; align-items: baseline; }
.try-meter .val { color: var(--ink); }
.try-meter .ln { font: 500 12.5px/1 "Geist Mono", monospace; color: var(--muted); }
/* a category that crosses: its fill and its number turn red the frame the fill passes the line */
.try-meter.past .fill { background: var(--flag); }
.try-meter.past .val { color: var(--flag-ink); }
.meter.try-meter.past .tick { animation: none; }
/* the tick of a category that is on is a slider: a 32px target round the 2px line, no transition of its own */
.try-meter .tick[role="slider"] { top: -12px; bottom: -12px; width: 32px; margin-left: -16px; background: transparent; box-shadow: none; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.try-meter .tick[role="slider"]::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--ink); border-radius: 1px; box-shadow: 0 0 0 2px var(--surface); }
.try-meter .tick[role="slider"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-radius: 6px; }
.try-hint { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.try-note { margin-top: 14px; font-size: 13.5px; color: var(--body); line-height: 1.5; }

/* The close, full width under both. */
.try-close { position: relative; z-index: 4; margin-top: clamp(96px, 12vw, 170px); }
.try-close h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: .98; letter-spacing: -0.055em; font-weight: 620; max-width: 14em; }
.try-close .ctas { margin-top: 32px; }

/* No script, or no libraries: the stage and its answer are hidden (a demo with no script is a form that does nothing); the
   close and its two buttons stay. */
.nolib .try-pin, .nolib .try-under, .nolib .try-link { display: none; }
/* Reduced motion: the window is as lifted as it will ever be. */
@media (prefers-reduced-motion: reduce) { .try-chat { --lift: 1; } }
