/* AudioGhost website: a night-vision case file. Tokens first, then the camera feed, the
   monitor (first viewport), the thermal ghost, the evidence player, the sections below. */

@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/big-shoulders-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/big-shoulders-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/martian-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/martian-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* The Chinese display voice: Noto Sans TC Black, subset to the headline and button strings
   (fonts/noto-sans-tc-900-display.chars.txt lists them; regenerate it when that copy changes). */
@font-face { font-family: "AG Hei Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/noto-sans-tc-900-display.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* the night-vision feed */
  --ir: #07100c;
  --ir-raise: rgba(10, 21, 15, 0.82);
  --ir-line: rgba(159, 216, 166, 0.22);
  --phosphor: #9fd8a6;
  --phosphor-soft: #79a881;
  --text-soft: #c7dcc9;
  --ink: #e9f3ea;
  /* evidence-tag red: REC and the active REVEAL only */
  --tag: #ff3b30;
  --cjk: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --display: "Big Shoulders Display", "AG Hei Display", var(--cjk);
  --text: "Schibsted Grotesk", var(--cjk);
  --osd: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, var(--cjk), monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color: var(--ink); scrollbar-color: #2c4a35 var(--ir); scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
/* the ground is set on body: with html transparent it still fills the whole canvas, under the fixed feed */
body { margin: 0; background: var(--ir); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p { text-wrap: pretty; }
::selection { background: var(--phosphor); color: var(--ir); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ir); }
::-webkit-scrollbar-thumb { background: #2c4a35; border: 2px solid var(--ir); border-radius: 6px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--phosphor); }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--ink); color: var(--ir); font-weight: 700; }
.skip:focus { top: 12px; }
.skip:hover { color: var(--ir); }

/* ---------------------------------------------------------------- the camera feed: grain and
   interlace darken as much as they lighten, and the vignette sits on top of both. The feed holds
   still: a full-screen texture that stepped every 0.2 s made visitors dizzy (2026-11-23), so only
   small, local things move (the timecode, REC, the ghost). */
.feed { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.feed::before { content: ""; position: absolute; inset: 0; background-image: var(--grain, none); background-size: 180px 180px; }
.feed::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 110% 85% at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.62) 78%, #000 100%); }

/* ---------------------------------------------------------------- the monitor (first viewport) */
.monitor { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; padding: clamp(22px, 3vh, 36px) var(--gutter) clamp(26px, 3.6vh, 40px); isolation: isolate; }
.monitor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 30% 40% at 76% 46%, rgba(130, 205, 145, 0.11), transparent 70%); }
/* Scanlines belong to what the camera sees: the ground of each monitor (under its type and controls, which
   stay crisp) and the thermal picture itself (.specter::after). They are still under reduced motion. */
.monitor::after, .mini::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--scanlines, none); background-size: 4px 3px; }
.bracket { position: absolute; width: clamp(30px, 4.2vw, 66px); height: clamp(30px, 4.2vw, 66px); border: 3px solid rgba(233, 243, 234, 0.8); pointer-events: none; }
.bracket.tl { top: clamp(10px, 1.4vw, 20px); left: clamp(10px, 1.4vw, 20px); border-right: 0; border-bottom: 0; }
.bracket.tr { top: clamp(10px, 1.4vw, 20px); right: clamp(10px, 1.4vw, 20px); border-left: 0; border-bottom: 0; }
.bracket.bl { bottom: clamp(10px, 1.4vw, 20px); left: clamp(10px, 1.4vw, 20px); border-right: 0; border-top: 0; }
.bracket.br { bottom: clamp(10px, 1.4vw, 20px); right: clamp(10px, 1.4vw, 20px); border-left: 0; border-top: 0; }

/* burned into the picture, as a camcorder draws it */
.osd-cam { display: flex; justify-content: space-between; align-items: center; font: 500 clamp(0.875rem, 0.42rem + 1vw, 1.375rem)/1 var(--osd); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.rec { display: inline-flex; align-items: center; gap: 0.5em; color: var(--tag); }
.rec .dot { width: 0.62em; height: 0.62em; animation: rec 1.6s steps(1) infinite; }
.rec .ir { color: var(--phosphor); }
@keyframes rec { 50% { opacity: 0.15; } }
.timecode { color: var(--ink); }

.osd-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 2vw, 30px); margin-top: clamp(12px, 1.8vh, 20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.375rem/1 var(--display); letter-spacing: 0.03em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.osd-nav nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-left: auto; font: 700 1.0625rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.osd-nav nav a { text-decoration: none; }
.stars { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.lang { padding: 7px 11px; background: transparent; border: 1px solid var(--ir-line); font: 700 1rem/1 var(--display); letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.lang:hover { border-color: var(--phosphor); color: var(--phosphor); }

.stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(14px, 3.4vh, 44px); }
h1 { margin: 0; max-width: 13.5ch; font: 900 clamp(3.25rem, 1.45rem + 5.4vw, 6rem)/0.9 var(--display); letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; }
:lang(zh-Hant) h1 { max-width: 4.6em; font-size: clamp(3rem, 1.4rem + 5vw, 5.75rem); line-height: 1.04; letter-spacing: 0.01em; }
.lede { max-width: 46ch; margin: 22px 0 0; font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem); color: var(--text-soft); }

.join { display: flex; max-width: 580px; margin-top: 28px; }
.join input { flex: 1; min-width: 0; height: 60px; padding: 0 18px; background: rgba(7, 16, 12, 0.78); border: 2px solid var(--ink); border-right: 0; border-radius: 0; color: var(--ink); font: 500 1.0625rem/1 var(--text); caret-color: var(--phosphor); transition: border-color 0.2s var(--ease-out); }
.join input::placeholder { color: #7f9c84; }
.join input:focus-visible { outline: none; border-color: var(--phosphor); }
.join input[aria-invalid="true"] { border-color: #ff8a80; }
.join button { height: 60px; padding: 0 26px; background: var(--ink); border: 2px solid var(--ink); border-radius: 0; color: var(--ir); font: 800 1.25rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.join button:hover { background: var(--phosphor); border-color: var(--phosphor); }
.join button[disabled] { cursor: progress; opacity: 0.7; }
.join-note { max-width: 54ch; margin: 14px 0 0; font-size: 0.9375rem; color: var(--phosphor-soft); }
.join-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 0.9375rem; color: #ff8a80; }
.join-msg:empty { min-height: 0; margin: 0; }
.join-msg.info { color: var(--phosphor); }
.join-done { max-width: 580px; margin-top: 28px; padding: 20px 22px; border: 2px solid var(--phosphor); }
.join-done .done-title { margin: 0; font: 800 1.75rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--phosphor); }
.join-done p { margin: 8px 0 0; color: var(--text-soft); }
.join-done .done-preview { font: 500 0.75rem/1.4 var(--osd); letter-spacing: 0.06em; text-transform: uppercase; color: var(--phosphor-soft); }
.join-done button { margin-top: 14px; padding: 11px 15px; background: transparent; border: 2px solid var(--phosphor); color: var(--phosphor); font: 700 1rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.join-done button:hover { background: var(--phosphor); color: var(--ir); }
.alt { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 0.9375rem; }
.alt a { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- the thermal ghost */
.specter { position: relative; margin: 0; }
.specter::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 3 / 4; pointer-events: none; background-image: var(--scanlines, none); background-size: 4px 3px; }
.hero-specter { justify-self: center; width: min(100%, 380px); }
.case-specter { display: none; }
.thermal { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.lock { position: absolute; top: 2%; left: 13%; right: 13%; aspect-ratio: 0.645; /* sized from the width, so it frames the picture and never the caption */ pointer-events: none; opacity: 0; transform: scale(1.14); transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out); }
.lock i { position: absolute; width: 20%; height: 15%; border: 0 solid var(--tag); }
.lock i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.lock i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.lock i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.lock i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.specter.is-revealed .lock { opacity: 1; transform: scale(1); }
.specter-caption { margin-top: 6px; font: 500 0.8125rem/1.4 var(--osd); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; color: var(--phosphor-soft); }
.specter.is-playing .specter-caption { color: var(--ink); }
.specter.is-revealed .specter-caption { color: var(--tag); }

/* ---------------------------------------------------------------- an evidence player */
.case { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "scope controls" "recipe recipe"; gap: 14px clamp(18px, 2.4vw, 32px); align-items: center; padding-top: 18px; border-top: 1px solid var(--ir-line); }
.case-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.case-title { margin: 0; font: 800 clamp(1.375rem, 1.05rem + 0.9vw, 1.875rem)/1.05 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.case-title .id, .file-id h3 .id { margin-right: 0.55em; font: 500 max(0.75rem, 0.62em)/1 var(--osd); letter-spacing: 0.06em; color: var(--phosphor); vertical-align: 0.16em; }
.case-summary { margin: 0; color: var(--text-soft); }
.scope { grid-area: scope; position: relative; height: 86px; cursor: pointer; touch-action: none; }
.scope canvas { width: 100%; height: 100%; }
.scope-time { position: absolute; top: 0; left: 0; z-index: 1; padding: 3px 7px 4px; background: var(--ir); font: 500 0.75rem/1 var(--osd); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: var(--phosphor); }
.controls { grid-area: controls; display: flex; align-items: center; gap: 8px; }
.play { display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 0; background: var(--ink); border: 2px solid var(--ink); color: var(--ir); cursor: pointer; transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.play:hover { background: var(--phosphor); border-color: var(--phosphor); }
.play[aria-busy="true"] { cursor: progress; }
.play[aria-busy="true"] svg { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.3; } }
.play .icon-pause { display: none; }
.play[aria-pressed="true"] .icon-play { display: none; }
.play[aria-pressed="true"] .icon-pause { display: block; }
.modes { display: flex; gap: 8px; }
.mode { height: 56px; padding: 0 16px; background: transparent; border: 2px solid var(--phosphor); color: var(--phosphor); font: 800 1.0625rem/1.05 var(--display); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.mode:hover { border-color: var(--ink); color: var(--ink); }
.mode[aria-pressed="true"] { background: var(--phosphor); border-color: var(--phosphor); color: var(--ir); }
.mode.reveal[aria-pressed="true"] { background: var(--tag); border-color: var(--tag); color: var(--ir); }
.player-msg { grid-area: recipe; display: none; margin: 0; color: #ff8a80; font-size: 0.9375rem; }
.case.has-error .player-msg { display: block; }
.case.has-error .recipe { display: none; }
.recipe { grid-area: recipe; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font: 400 0.6875rem/1.5 var(--osd); letter-spacing: 0.06em; text-transform: uppercase; color: var(--phosphor-soft); }
.recipe div { display: flex; gap: 8px; }
.recipe dt { flex: none; }
.recipe dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
/* Chinese has no mono voice: these readouts fall back to the platform's Hei and need more size */
:lang(zh-Hant) .mode { font-size: 1rem; letter-spacing: 0.06em; }
:lang(zh-Hant) .recipe { font-size: 0.75rem; }

/* ---------------------------------------------------------------- below the fold */
.section { max-width: 1440px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter) 0; }
.section h2 { max-width: 16ch; margin: 0; font: 900 clamp(2.4rem, 1.3rem + 3.4vw, 4.25rem)/0.94 var(--display); letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance; }
:lang(zh-Hant) .section h2 { max-width: 11em; line-height: 1.12; letter-spacing: 0.01em; }
.section-lede { max-width: 60ch; margin: 18px 0 0; font-size: 1.125rem; color: var(--text-soft); }

.files { display: grid; gap: 14px; margin-top: 40px; }
.file { border: 1px solid var(--ir-line); background: var(--ir-raise); transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out); }
.file.is-open { border-color: transparent; background: transparent; }
.file-front { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 300px) auto; gap: 14px clamp(20px, 2.6vw, 36px); align-items: center; padding: 22px clamp(18px, 2.4vw, 30px); }
.file-id h3 { margin: 0; font: 800 clamp(1.5rem, 1.15rem + 1vw, 2.125rem)/1.02 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.file-id p { margin: 6px 0 0; color: var(--text-soft); }
.file-strip { display: flex; align-items: center; gap: 12px; }
.strip { flex: 1; min-width: 0; height: 34px; }
.dur { font: 500 0.75rem/1 var(--osd); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--phosphor); }
.open { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; background: transparent; border: 2px solid var(--phosphor); color: var(--phosphor); font: 700 1.0625rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.open:hover, .open[aria-expanded="true"] { background: var(--phosphor); color: var(--ir); }
.open svg { transition: transform 0.35s var(--ease-out); }
.open[aria-expanded="true"] svg { transform: rotate(45deg); }
.file-body { padding: 0; }

/* each opened file plays on its own small monitor */
.mini { position: relative; isolation: isolate; padding: 20px clamp(18px, 2.4vw, 30px) 22px; background: rgba(4, 10, 7, 0.65); }
.mini .bracket { width: 26px; height: 26px; border-width: 2px; border-color: rgba(233, 243, 234, 0.7); }
.mini .bracket.tl, .mini .bracket.tr { top: 6px; }
.mini .bracket.bl, .mini .bracket.br { bottom: 6px; }
.mini .bracket.tl, .mini .bracket.bl { left: 6px; }
.mini .bracket.tr, .mini .bracket.br { right: 6px; }
.mini-osd { display: flex; justify-content: space-between; font: 500 0.9375rem/1 var(--osd); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.mini .rec { opacity: 0.3; }
.mini .rec .dot { animation: none; }
.mini.is-live .rec { opacity: 1; }
.mini.is-live .rec .dot { animation: rec 1.6s steps(1) infinite; }
.mini .case { margin-top: 10px; padding-top: 0; border-top: 0; grid-template-columns: clamp(120px, 12vw, 168px) minmax(0, 1fr) auto; grid-template-areas: "ghost scope controls" "ghost recipe recipe"; column-gap: clamp(18px, 2.6vw, 36px); }
.mini-specter { grid-area: ghost; align-self: center; }
.mini-specter .specter-caption { font-size: 0.6875rem; }

.honest { max-width: 58ch; margin: 26px 0 0; font-size: 0.9375rem; color: var(--phosphor-soft); }

.free { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.free-body > p:first-child { margin: 0; font-size: 1.125rem; color: var(--text-soft); max-width: 56ch; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font: 500 0.75rem/1.4 var(--osd); letter-spacing: 0.06em; text-transform: uppercase; color: var(--phosphor); }
.reqs li { text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px; border: 2px solid var(--ink); font: 800 1.1875rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.btn.primary { background: var(--ink); color: var(--ir); }
.btn.primary:hover { background: var(--phosphor); border-color: var(--phosphor); color: var(--ir); }
.btn.line:hover { border-color: var(--phosphor); color: var(--phosphor); }
.btn small { font: 500 0.6875rem/1 var(--osd); letter-spacing: 0.08em; opacity: 0.75; }
.free-body .fine { max-width: 60ch; margin: 18px 0 0; font-size: 0.875rem; color: var(--phosphor-soft); }
.free-body .fine + .fine { margin-top: 8px; }

/* ---------------------------------------------------------------- pricing: a rate sheet, read like the
   camera's own readout (plan names in the display face, figures in the OSD face) */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.pricing .section-lede { max-width: 44ch; }
.rate-sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-sheet th, .rate-sheet td { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--ir-line); text-align: left; vertical-align: baseline; }
.rate-sheet thead th { padding-top: 0; padding-bottom: 12px; font: 500 0.75rem/1.4 var(--osd); letter-spacing: 0.06em; text-transform: uppercase; color: var(--phosphor-soft); border-bottom-color: var(--phosphor-soft); }
.rate-sheet tbody th { font: 800 1.5rem/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.rate-sheet .price { font: 800 1.375rem/1 var(--display); letter-spacing: 0.02em; color: var(--phosphor); white-space: nowrap; }
.rate-sheet .credits, .rate-sheet .about { font: 500 0.875rem/1.3 var(--osd); letter-spacing: 0.02em; color: var(--text-soft); }
.rate-sheet td:last-child, .rate-sheet th:last-child { padding-right: 0; }
.rate-unit { max-width: 62ch; margin: 18px 0 0; font: 500 0.75rem/1.6 var(--osd); letter-spacing: 0.04em; text-transform: uppercase; color: var(--phosphor); }
.rate-notes { margin: 18px 0 0; padding-left: 1.1em; color: var(--text-soft); }
.rate-notes li { margin: 4px 0 0; }
.rate-notes li::marker { color: var(--phosphor-soft); }
.rate-fine { max-width: 62ch; margin: 18px 0 0; font-size: 0.875rem; color: var(--phosphor-soft); }
.rate-soon { max-width: 62ch; margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--ir-line); background: var(--ir-raise); color: var(--text-soft); }
.rate-soon a { color: var(--ink); font-weight: 600; white-space: nowrap; }
/* Chinese in the OSD face falls back to a CJK font: no extra tracking there */
html[lang="zh-Hant"] .rate-unit, html[lang="zh-Hant"] .rate-sheet .credits, html[lang="zh-Hant"] .rate-sheet .about { letter-spacing: 0; }
@media (max-width: 1080px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* one plan a block: the name and price on top, the credits and the audio they buy below */
  .rate-sheet, .rate-sheet tbody, .rate-sheet tr, .rate-sheet th, .rate-sheet td { display: block; }
  .rate-sheet thead { display: none; }
  .rate-sheet tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--ir-line); }
  .rate-sheet th, .rate-sheet td { padding: 0; border: 0; }
  .rate-sheet .price, .rate-sheet .about { text-align: right; }
}

.closing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-bottom: clamp(80px, 10vw, 130px); }
.closing .join, .closing .join-done { margin-top: 32px; }
.closing-specter { justify-self: center; width: min(100%, 300px); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; max-width: 1440px; margin: 0 auto; padding: 30px var(--gutter) 44px; border-top: 1px solid var(--ir-line); font-size: 0.875rem; color: var(--phosphor-soft); }
footer p { margin: 0; max-width: 72ch; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }
footer [data-i18n="footer.company"] { word-break: keep-all; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1080px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); }
  .case { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "scope" "controls" "recipe"; }
  .mini .case { grid-template-columns: clamp(110px, 15vw, 150px) minmax(0, 1fr); grid-template-areas: "ghost scope" "ghost controls" "ghost recipe"; }
  .file-front { grid-template-columns: minmax(0, 1fr) auto; }
  .file-strip { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  /* The phone's first screen holds the camera OSD, the claim, the Join form and a playable case:
     the stage and intro dissolve into the monitor's grid so their parts can be reordered. */
  .monitor { grid-template-rows: none; align-content: start; padding-top: 18px; }
  .stage, .intro { display: contents; }
  .osd-cam { order: 1; }
  .osd-nav { order: 2; margin-top: 12px; }
  .osd-nav .nav-text { display: none; }
  .hero-specter { display: none; }
  h1 { order: 4; margin-top: 30px; }
  .lede { order: 5; margin-top: 14px; font-size: 1rem; }
  .join, .join-done { order: 6; margin-top: 18px; }
  .join-msg { order: 7; }
  .monitor > .case { order: 8; margin-top: 4px; }
  .join-note { order: 9; margin-top: 18px; }
  .alt { order: 10; margin-top: 14px; padding-bottom: 8px; }
  .join { flex-direction: column; }
  .join input { flex: none; height: 52px; border-right: 2px solid var(--ink); border-bottom: 0; }
  .join button { width: 100%; height: 54px; }
  .case { gap: 10px; padding-top: 14px; }
  .case-summary { font-size: 0.9375rem; }
  .scope { height: 64px; }
  .modes { flex: 1; min-width: 0; }
  .mode { flex: 1; height: 50px; padding: 0 6px; font-size: 0.9375rem; }
  :lang(zh-Hant) .mode { font-size: 0.875rem; letter-spacing: 0.02em; } /* four characters fit on one line */
  .play { width: 50px; height: 50px; }
  .file-front { grid-template-columns: minmax(0, 1fr); }
  /* the case title keeps its number inline across the full width; the ghost stands beside the waveform */
  .monitor > .case { grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "head head" "scope ghost" "controls controls" "recipe recipe"; column-gap: 12px; }
  .case-specter { display: block; grid-area: ghost; align-self: center; width: 112px; }
  .monitor > .case .scope { align-self: stretch; height: auto; min-height: 64px; }
  .mini .case { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "scope ghost" "controls controls" "recipe recipe"; column-gap: 12px; }
  .mini-specter { width: 96px; align-self: end; }
  .mini-specter .specter-caption { display: none; }
  .mini .scope { align-self: stretch; height: auto; min-height: 64px; }
  .free { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; justify-content: center; }
  .btn small { display: none; }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing-specter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
