/* Layout: one lit studio frame. The machine hangs on the right from cables that leave through the top edge,
   the conversation sits on a fixed line on the left. On phones the machine stays on top and the talk docks below. */
@font-face { font-family: "Helvetica Now Display"; src: url("fonts/HelveticaNowDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Locomotive New"; src: url("fonts/PPLocomotiveNew-Light.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg-hi: #e6e4ea;
  --bg-lo: #9c9aa5;
  --fg: #121016;
  --muted: #2c2933;
  --chip: #f7f5f9;
  --chip-fg: #121016;
  --panel: #f1eff4;
  --panel-chip: #121016;
  --panel-chip-fg: #f7f5f9;
  --panel-muted: #55505f;
  --shell: #17161b;
  --cable: #17151b;
  --accent: #ff2e93;
  --on-accent: #121016;
  --line: #d2cfd8;
  --tube: #08060b;
  --phosphor: #ff8cc2;
  --scan: rgba(0, 0, 0, 0.26);
  --sweep: rgba(255, 140, 194, 0.07);
  --display: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --accent-face: "PP Locomotive New", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-hi: #393642; --bg-lo: #0c0b10; --fg: #f4f2f7; --muted: #c2bdcb;
    --chip: #f4f2f7; --chip-fg: #121016;
    --panel: #17151c; --panel-chip: #f4f2f7; --panel-chip-fg: #121016; --panel-muted: #a9a4b3; --line: #322f3a;
    --shell: #cfccd5; --cable: #8d8996;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-hi: #393642; --bg-lo: #0c0b10; --fg: #f4f2f7; --muted: #c2bdcb;
  --chip: #f4f2f7; --chip-fg: #121016;
  --panel: #17151c; --panel-chip: #f4f2f7; --panel-chip-fg: #121016; --panel-muted: #a9a4b3; --line: #322f3a;
  --shell: #cfccd5; --cable: #8d8996;
  color-scheme: dark;
}

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html, body { height: 100%; }
body { margin: 0; font-size: 14px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--bg-lo);
  color: var(--fg);
  font-family: var(--display);
  overflow-x: hidden;
}

.site {
  position: relative;
  height: 100%;
  min-height: 640px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(62% 78% at 66% 44%, var(--bg-hi), var(--bg-lo));
}
.stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }

.bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.wordmark { color: var(--fg); font-size: 1.5rem; letter-spacing: 0; text-decoration: none; }
.wordmark { justify-self: start; }
.bar-end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav { position: relative; display: flex; gap: 22px; min-width: 0; }
.nav a { padding-block: 3px; color: var(--fg); font-size: 1.125rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.cta[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) { .nav a:hover { border-bottom-color: currentColor; } .nav a[aria-current="page"]:hover { border-bottom-color: var(--accent); } }
.theme { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--fg); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 0; color: var(--fg); text-decoration: none; font: inherit; font-size: 1.5rem; letter-spacing: 0; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.tag { padding: 3px 7px; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; border: 1px solid currentColor; border-radius: 999px; }
.cta:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cta:hover .tag { text-decoration: none; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 33rem) minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.focus { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; display: grid; place-items: center; }
.still { display: none; width: min(78%, 420px); max-width: 100%; max-height: 100%; height: auto; }
.no-3d .still { display: block; }
.no-3d .stage { display: none; }

.talk {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: 29% auto auto auto minmax(0, 1fr) auto auto;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding-block: 0 40px;
}
.said { grid-row: 2; position: relative; display: grid; gap: 0; min-width: 0; }
.prev {
  position: absolute;
  left: 0;
  bottom: calc(100% + 18px);
  max-width: 24em;
  margin: 0;
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: 0;
  opacity: 0.55;
  filter: blur(2.5px);
  user-select: none;
  pointer-events: none;
}
.line {
  max-width: 19em;
  min-height: 3.3em;
  margin: 0;
  font-size: clamp(1.5rem, min(1.05rem + 1.25vw, 4vh), 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: pretty;
}
.line em { font-family: var(--accent-face); font-size: 1.1em; font-style: normal; line-height: 0; font-synthesis: none; }
.line.busy::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.92em;
  margin-left: 0.14em;
  vertical-align: -0.12em;
  background: currentColor;
}

.chips { grid-row: 3; display: flex; flex-wrap: wrap; gap: 6px; max-width: 30rem; }
.chip {
  padding: 8px 15px;
  color: var(--chip-fg);
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0;
  background: var(--chip);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.215, 0.61, 0.355, 1), background-color 0.2s, color 0.2s;
}
@media (hover: hover) { .chip:hover { color: var(--on-accent); background: var(--accent); } }
.chip:active { transform: scale(0.96); }

.back {
  grid-row: 4;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--chip-fg);
  background: var(--chip);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
@media (hover: hover) { .back:hover { color: var(--on-accent); background: var(--accent); } }

.legal { grid-row: 7; max-width: 30rem; margin: -10px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.home-soc { position: absolute; right: max(32px, env(safe-area-inset-right, 0px)); bottom: 40px; z-index: 2; }
.home-soc .soc { color: var(--muted); border-color: currentColor; }
.home-soc a.soc[href] { color: var(--fg); }
.facts {
  grid-row: 6;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

button:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.chip:focus-visible, .back:focus-visible { outline-offset: 3px; }

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  padding-block: clamp(56px, 8vw, 112px);
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  color: var(--fg);
  background: var(--panel);
  border-radius: 16px 16px 0 0;
}
.sheet-in { display: grid; gap: clamp(40px, 6vw, 72px); max-width: 1600px; }
.sheet-head { display: grid; justify-items: start; gap: 20px; }
.sheet h2 {
  max-width: 14em;
  margin: 0;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}
.sheet h2 em { font-family: var(--accent-face); font-size: 1.1em; font-style: normal; line-height: 0; font-synthesis: none; }
.lede { max-width: 34em; margin: 0; color: var(--panel-muted); font-size: 1.25rem; line-height: 1.35; }

.issue { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.steps { display: grid; margin: 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 16px 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.steps li:last-child .step { border-bottom: 1px solid var(--line); }
.step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.step[aria-pressed="true"] .step-n { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.step-t { display: grid; gap: 4px; min-width: 0; }
.step-t strong { font-size: 1.375rem; font-weight: 400; line-height: 1.2; }
.step-t span { color: var(--panel-muted); font-size: 1rem; line-height: 1.4; }
@media (hover: hover) { .step:hover .step-n { border-color: var(--accent); } }

.scope { position: sticky; top: 24px; display: grid; gap: 10px; min-width: 0; margin: 0; }
.tube { position: relative; max-width: 100%; aspect-ratio: 5 / 4; overflow: hidden; background: var(--tube); border-radius: 18px; }
.tube::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.tube pre {
  position: relative;
  margin: 0;
  padding: 7%;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: clamp(0.8125rem, 1.25vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
}
.tube.live::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 30%;
  background: linear-gradient(transparent, var(--sweep), transparent);
  pointer-events: none;
}
#seal { position: absolute; right: 5%; bottom: 6%; width: 52%; height: auto; aspect-ratio: 1; }

.sheet-next { margin-top: 0; padding-block-start: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); border-radius: 0; }
.controls { display: grid; gap: 28px; min-width: 0; }
.field { display: grid; align-content: start; gap: 10px; min-width: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.flabel { margin: 0; color: var(--panel-muted); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg-b {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: var(--fg);
  font: inherit;
  text-align: left;
  background: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.seg-b strong { font-size: 1.375rem; font-weight: 400; line-height: 1.2; }
.seg-b span { font-size: 0.9375rem; line-height: 1.35; }
.seg-b[aria-pressed="true"] { color: var(--panel-chip-fg); background: var(--panel-chip); border-color: var(--panel-chip); }

.q-rows { display: grid; gap: 2px; }
.q-row {
  display: grid;
  grid-template-columns: 4rem max-content minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px 10px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}
.q-row[aria-pressed="true"] { border-color: var(--panel-muted); }
.q-row b { font-weight: 500; }
.q-dots { display: flex; gap: 6px; min-width: 0; }
.dot { flex: none; display: inline-block; width: 14px; height: 14px; background: var(--line); border-radius: 50%; }
.dot.on { background: var(--accent); }
.dot.ref { background: none; box-shadow: inset 0 0 0 2px var(--accent); }
.q-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--panel-muted); font-size: 0.875rem; }
.q-key span { display: inline-flex; align-items: center; gap: 7px; }
@media (hover: hover) { .q-row:hover { border-color: var(--line); } }

.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper output { min-width: 2ch; font-size: 2rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.step-b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 1.125rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.step-b:disabled { color: var(--line); cursor: not-allowed; }
.input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.9375rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.input::placeholder { color: var(--panel-muted); }
.input:focus-visible, .seg-b:focus-visible, .q-row:focus-visible, .step-b:focus-visible, .step:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.error { margin: 0; color: var(--fg); font-size: 0.9375rem; }
.seal-small { position: absolute; right: 5%; bottom: 6%; width: 38%; height: auto; aspect-ratio: 1; }
.scope .soon { justify-self: start; margin-top: 2px; }

.halving-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.chart { display: grid; gap: 14px; min-width: 0; }
.read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-height: 5rem; margin: 0; }
.read output { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); line-height: 1; }
.read span { flex: 1 1 16rem; min-width: 0; color: var(--panel-muted); font-size: 1rem; line-height: 1.4; }
.bars { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; height: 260px; }
.bar-b {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  padding: 0;
  color: var(--panel-muted);
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.bar-track { position: relative; display: block; min-height: 0; border-bottom: 1px solid var(--line); }
.bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 2px;
  background-color: transparent;
  background-image: radial-gradient(circle, var(--accent) 0 2.3px, transparent 2.6px);
  background-position: center bottom;
  background-size: 7px 7px;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.bar-fill.e1 { height: 100.000%; }
.bar-fill.e2 { height: 50.000%; }
.bar-fill.e3 { height: 25.000%; }
.bar-fill.e4 { height: 12.500%; }
.bar-fill.e5 { height: 6.250%; }
.bar-fill.e6 { height: 3.125%; }
.bar-fill.e7 { height: 1.562%; }
.bar-fill.e8 { height: 0.781%; }
.bar-fill.e9 { height: 0.391%; }
.bar-fill.e10 { height: 0.195%; }
.bar-fill.e11 { height: 0.098%; }
.bar-b[aria-pressed="true"] { color: var(--fg); }
.bar-b[aria-pressed="true"] .bar-fill { background-color: var(--accent); background-image: none; }
.bar-n { font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; text-align: center; }
.chart-note { margin: 0; color: var(--panel-muted); font-size: 0.875rem; line-height: 1.4; }
.bar-b:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.supply { display: grid; align-content: start; gap: 14px; min-width: 0; }
.sup-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.sup-list li { display: grid; gap: 6px; min-width: 0; }
.sup-top { display: flex; justify-content: space-between; gap: 12px; font-size: 1.125rem; }
.sup-top b { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.sup-track { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sup-track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sup-track i.sup1 { width: 45.00%; }
.sup-track i.sup2 { width: 40.00%; }
.sup-track i.sup3 { width: 10.00%; }
.sup-track i.sup4 { width: 3.00%; }
.sup-track i.sup5 { width: 2.00%; }
.sup-d { color: var(--panel-muted); font-size: 0.875rem; line-height: 1.4; }

.table-wrap { max-width: 100%; overflow-x: auto; }
.epochs { width: 100%; min-width: 620px; border-collapse: collapse; font-family: var(--mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.epochs caption { padding-bottom: 10px; color: var(--panel-muted); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.epochs th, .epochs td { padding: 10px 12px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.epochs th:first-child, .epochs td:nth-child(2), .epochs thead th:nth-child(2) { text-align: left; }
.epochs thead th { color: var(--panel-muted); font-weight: 500; border-top: 0; }
.epochs tbody th { font-weight: 500; }

.rules { display: grid; }
.rule-group { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 16px 32px; padding-block: 24px; border-top: 1px solid var(--line); }
.rule-group:last-child { border-bottom: 1px solid var(--line); }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.rule-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-list div { min-width: 0; }
.rule-list dt { margin-bottom: 6px; font-size: 1.25rem; line-height: 1.2; }
.rule-list dd { margin: 0; color: var(--panel-muted); font-size: 1rem; line-height: 1.45; }

.agent-info { display: grid; align-content: start; gap: 12px; min-width: 0; }
.plain-list { display: grid; margin: 0 0 16px; padding: 0; list-style: none; }
.plain-list li { padding-block: 12px; font-size: 1.125rem; line-height: 1.35; border-top: 1px solid var(--line); }
.plain-list:last-child { margin-bottom: 0; }

.foot {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 5vw, 64px) 32px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  color: var(--fg);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 40px; max-width: 1600px; }
.foot-main { display: grid; gap: 16px; min-width: 0; }
.foot-mark { justify-self: start; color: var(--fg); font-size: 1.5rem; text-decoration: none; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { color: var(--panel-muted); font-size: 1rem; text-decoration: none; }
.foot-nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot-soc { display: grid; justify-items: end; gap: 10px; min-width: 0; }
.soc-list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.soc { display: grid; place-items: center; width: 40px; height: 40px; color: var(--panel-muted); border: 1px solid var(--line); border-radius: 50%; }
a.soc[href] { color: var(--fg); }
@media (hover: hover) { a.soc[href]:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); } }
.soc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.soc svg.brand { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.soc-note { max-width: 24em; margin: 0; color: var(--panel-muted); font-size: 0.875rem; line-height: 1.4; text-align: right; }
.foot-legal { grid-column: 1; max-width: 44em; margin: 0; color: var(--panel-muted); font-size: 0.875rem; line-height: 1.45; }
.foot-status { grid-column: 2; align-self: end; margin: 0; color: var(--panel-muted); font-family: var(--mono); font-size: 0.75rem; text-align: right; }

.height-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.height-main { display: grid; gap: 14px; min-width: 0; }
.height-num { margin: 0; font-family: var(--mono); font-size: clamp(2.5rem, 1.2rem + 5.4vw, 6.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.height-num .pad { color: var(--panel-muted); }
.height-ends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; color: var(--panel-muted); font-family: var(--mono); font-size: 0.8125rem; }
.sup-track i.zero { width: 0; }
.stats { display: grid; margin: 0; }
.stats div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.stats div:last-child { border-bottom: 1px solid var(--line); }
.stats dt { color: var(--panel-muted); font-size: 1rem; }
.stats dd { margin: 0; font-family: var(--mono); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tile { display: grid; align-content: start; gap: 4px; min-width: 0; min-height: 168px; padding: 14px; color: var(--panel-muted); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.4; border: 1px dashed var(--line); border-radius: 12px; }
.tile.next { border-color: var(--panel-muted); }
.tile strong { margin-bottom: 8px; color: var(--fg); font-size: 1.375rem; font-weight: 500; }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.note { display: grid; align-content: start; justify-items: start; gap: 10px; min-width: 0; }
.note h3 { margin: 0; font-size: 1.375rem; font-weight: 400; line-height: 1.2; }
.note p { margin: 0; color: var(--panel-muted); font-size: 1rem; line-height: 1.45; }
.soon {
  margin-top: 6px;
  padding: 8px 15px;
  color: var(--panel-muted);
  font: inherit;
  font-size: 0.9375rem;
  background: none;
  border: 1px dashed var(--panel-muted);
  border-radius: 999px;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .sheet {
    margin-top: 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .issue { grid-template-columns: minmax(0, 1fr); }
  .scope { position: static; order: -1; }
  .mint-grid .scope { order: 0; }
  .seal-small { width: 30%; }
  .foot { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-soc { justify-items: start; }
  .soc-note, .foot-status { text-align: left; }
  .foot-legal, .foot-status { grid-column: 1; }
  .rule-group, .rule-list, .rule-list.three { grid-template-columns: minmax(0, 1fr); }
  #agents .scope { order: 0; }
  .bars { height: 200px; gap: 2px; }
  .read { min-height: 6.5rem; }
  .dot { width: 12px; height: 12px; }
  .q-dots { gap: 4px; }
  .q-row { grid-template-columns: 3.5rem max-content minmax(0, 1fr); padding-inline: 6px; gap: 8px; }
  .input { font-size: 0.8125rem; }
  .tube { aspect-ratio: 16 / 10; }
  .notes, .height-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 132px; }
  .tile:nth-child(n+5) { display: none; }
  .step-t strong, .note h3 { font-size: 1.25rem; }
  .lede { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .tube.live::before { animation: sweep 5s linear infinite; }
}
@keyframes sweep { to { transform: translateY(440%); } }

/* One page. Without the script everything stays a long page. */
html:not(.app) .site { height: auto; overflow: visible; grid-template-rows: auto 100vh auto; }
.site { grid-template-columns: minmax(0, 1fr); }
html.app, html.app body { overflow: hidden; }
.app .site { min-height: 0; }
.app .hero { grid-column: 1; grid-row: 2; }
.app .pages { display: none; }
.view-open .site { background: var(--panel); }
.view-open .stage, .view-open .hero { visibility: hidden; }
.view-open .bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.view-open .pages {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel);
}
.app .view { flex: 1 0 auto; margin-top: 0; padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 88px); border-top: 0; border-radius: 0; }
.app .foot { flex: none; }
.app .foot-nav { display: none; }
.view h2:focus { outline: none; }

@media (max-width: 860px) {
  .bar { padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .wordmark, .cta { font-size: 1.125rem; }
  .bar-end { grid-column: 2; grid-row: 1; gap: 10px; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 18px;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 1rem; }
  .tag { font-size: 0.625rem; padding: 2px 6px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 0; padding-left: 0; padding-right: 0; }
  .focus { grid-column: 1; grid-row: 1; }
  .talk {
    --chip: var(--panel-chip);
    --chip-fg: var(--panel-chip-fg);
    --muted: var(--panel-muted);
    grid-column: 1;
    grid-row: 2;
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    padding-block: 16px 14px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: var(--panel);
    border-radius: 16px 16px 0 0;
  }
  .said { grid-column: 1 / -1; grid-row: 1; }
  .chips { grid-column: 1 / -1; grid-row: 2; }
  .back { grid-area: auto; position: absolute; top: -19px; right: max(16px, env(safe-area-inset-right, 0px)); }
  .facts { grid-column: 1; grid-row: 3; align-self: center; font-size: 0.6875rem; }
  .home-soc { position: static; grid-column: 2; grid-row: 3; }
  .home-soc .soc-list { gap: 4px; }
  .home-soc .soc { width: 32px; height: 32px; }
  .home-soc .soc svg { width: 16px; height: 16px; }
  .home-soc .soc svg.brand { width: 14px; height: 14px; }
  .legal { grid-column: 1 / -1; grid-row: 4; max-width: none; margin: -4px 0 0; font-size: 0.6875rem; }
  .prev { display: none; }
  .line { min-height: 5.5em; font-size: 1.375rem; }
  .chip { padding: 8px 13px; font-size: 0.875rem; }
}

@media (max-width: 380px) {
  .wordmark, .cta { font-size: 1rem; }
  .cta { gap: 6px; }
  .bar-end { gap: 6px; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .wordmark, .cta { font-size: 1.125rem; }
  .bar-end { gap: 10px; }
  .nav { gap: 14px; }
  .nav a { font-size: 1rem; }
}

@media (max-width: 860px) and (max-height: 720px) {
  .legal { display: none; }
}

@media (max-height: 520px) {
  html.app, html.app body { overflow: auto; }
  .app .site { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip { transition: none; }
}

/* Intro: a film on the whole screen. It stays dark in both themes. */
.intro {
  --film-fg: #f4f2f7;
  --film-muted: #c2bdcb;
  --film-glass: rgba(23, 21, 28, 0.74);
  --film-hover: rgba(244, 242, 247, 0.12);
  --film-edge: rgba(244, 242, 247, 0.16);
  --film-shade: rgba(8, 6, 11, 0.78);
  --film-clear: rgba(8, 6, 11, 0);
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  color: var(--film-fg);
  background: #08060b;
  transition: opacity 0.45s ease;
}
.intro.leaving { opacity: 0; pointer-events: none; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.film.swap { opacity: 0; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--film-shade), var(--film-clear) 58%), linear-gradient(0deg, var(--film-shade), var(--film-clear) 34%); pointer-events: none; }
.intro-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
.intro .wordmark { color: var(--film-fg); }
.intro-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--film-muted); font-family: var(--mono); font-size: 0.8125rem; }
.intro-status i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.intro-main { position: absolute; top: 50%; left: max(32px, env(safe-area-inset-left, 0px)); display: grid; justify-items: start; gap: 18px; max-width: min(36rem, calc(100% - 48px)); transform: translateY(-58%); }
.intro-main h1 { margin: 0; font-size: clamp(2.75rem, 1.6rem + 4vw, 5.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.intro-main h1 em { font-family: var(--accent-face); font-size: 1.1em; font-style: normal; line-height: 0; font-synthesis: none; }
.intro-sub { margin: 0; color: var(--film-muted); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; }
.intro-enter { margin-top: 6px; padding: 12px 30px; color: var(--chip-fg); font: inherit; font-size: 1.125rem; background: var(--film-fg); border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.15s ease; }
.intro-enter:active { transform: scale(0.96); }
@media (hover: hover) { .intro-enter:hover { color: var(--on-accent); background: var(--accent); } }

.pl-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--film-fg); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.pl-btn svg { width: 20px; height: 20px; fill: currentColor; }
#scenes-close svg, #scenes-open svg, #film-sound svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#film-sound svg path { fill: none; }
.pl-btn.round { background: var(--film-hover); }
@media (hover: hover) { .pl-btn:hover { background: var(--film-hover); } }
.intro button:focus-visible, .intro input:focus-visible { outline: 2px solid var(--film-fg); outline-offset: 2px; }
.i-play, .is-paused .i-pause { display: none; }
.is-paused .i-play { display: block; }
.i-on, .is-loud .i-off { display: none; }
.is-loud .i-on { display: block; }

.player { position: absolute; left: max(32px, env(safe-area-inset-left, 0px)); bottom: max(28px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; }
.sound { position: relative; }
.vol { position: absolute; left: -8px; bottom: calc(100% + 12px); display: none; align-items: center; gap: 12px; padding: 12px 14px; background: var(--film-glass); border: 1px solid var(--film-edge); border-radius: 14px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sound::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.sound:hover .vol, .sound:focus-within .vol { display: flex; }
.vol input { width: 110px; height: 6px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.vol output { min-width: 3ch; font-family: var(--mono); font-size: 0.75rem; text-align: right; }
.hint { position: absolute; left: 0; bottom: calc(100% + 12px); margin: 0; padding: 5px 9px; color: var(--film-muted); font-size: 0.75rem; white-space: nowrap; background: var(--film-glass); border: 1px solid var(--film-edge); border-radius: 8px; }
.sound:hover .hint, .sound:focus-within .hint { display: none; }
.now { display: grid; gap: 2px; width: 150px; min-width: 0; }
.now span { color: var(--film-muted); font-size: 0.6875rem; }
.now strong { overflow: hidden; font-size: 0.9375rem; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.now-track { display: block; height: 2px; margin-top: 4px; background: var(--film-edge); border-radius: 1px; overflow: hidden; }
.now-track b { display: block; width: 0; height: 100%; background: var(--film-fg); }

.queue { position: absolute; right: max(32px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 10px; max-width: calc(100% - 32px); }
.next-card { display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--film-glass); border: 1px solid var(--film-edge); border-radius: 14px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.next-play { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 2px 12px 2px 2px; color: var(--film-fg); font: inherit; text-align: left; background: none; border: 0; border-right: 1px solid var(--film-edge); cursor: pointer; }
.next-play img { display: block; width: 64px; height: 36px; object-fit: cover; border-radius: 8px; }
.next-t { display: grid; gap: 1px; width: 124px; min-width: 0; }
.next-t span { color: var(--film-muted); font-size: 0.6875rem; }
.next-t b { margin-left: 6px; color: var(--film-fg); font-family: var(--mono); font-weight: 500; }
.next-t strong { overflow: hidden; font-size: 0.9375rem; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }

.scenes { width: 300px; max-width: 100%; padding: 12px; background: var(--film-glass); border: 1px solid var(--film-edge); border-radius: 16px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.scenes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding-left: 6px; }
.scenes h2 { margin: 0; font-size: 1rem; font-weight: 400; }
.scenes ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.scene-b { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; color: var(--film-fg); font: inherit; text-align: left; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.scene-b[aria-current="true"] { background: var(--film-hover); }
@media (hover: hover) { .scene-b:hover { background: var(--film-hover); } }
.scene-b img { flex: none; display: block; width: 72px; height: 40px; object-fit: cover; border-radius: 7px; }
.scene-t { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; }
.scene-t strong { font-size: 0.9375rem; font-weight: 400; }
.scene-t span { color: var(--film-muted); font-size: 0.75rem; }
.scene-mark { flex: none; width: 6px; height: 6px; margin-right: 6px; background: var(--accent); border-radius: 50%; visibility: hidden; }
.scene-b[aria-current="true"] .scene-mark { visibility: visible; }
.scenes-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 10px 6px 2px; border-top: 1px solid var(--film-edge); }
.auto, .just { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--film-muted); font: inherit; font-size: 0.8125rem; background: none; border: 0; cursor: pointer; }
.auto i { position: relative; width: 28px; height: 16px; background: var(--film-edge); border-radius: 8px; }
.auto i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: var(--film-fg); border-radius: 50%; }
.auto[aria-checked="true"] i { background: var(--accent); }
.auto[aria-checked="true"] i::after { left: 14px; }

.intro.just-film .intro-bar, .intro.just-film .intro-main, .intro.just-film .film-shade, .intro.just-film .player, .intro.just-film .queue { opacity: 0; pointer-events: none; }
.intro-bar, .intro-main, .film-shade, .player, .queue { transition: opacity 0.3s ease; }

@media (max-width: 720px) {
  .intro-bar { padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .film-shade { background: linear-gradient(0deg, var(--film-shade), var(--film-clear) 66%); }
  .intro-main { top: auto; bottom: 176px; left: max(16px, env(safe-area-inset-left, 0px)); transform: none; gap: 12px; }
  .player { left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .queue { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); justify-items: stretch; }
  .next-card { justify-content: space-between; }
  .scenes { width: auto; }
  .now { width: 170px; }
}
@media (max-height: 560px) {
  .intro-main { top: 72px; bottom: auto; transform: none; }
  .intro-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .film, .intro, .intro-bar, .intro-main, .film-shade, .player, .queue { transition: none; }
}
