/* DUBBE — light / dark / system themes over one set of tokens. Look after getlayers.ai's Vesper (a dark, living
   interface lit by mint and violet), libraries.dev's dotted orbs and border beams, and annnimate's motion; our own code.
   html[data-theme] is set by the theme switch (app.js); without it the device's setting decides. */
:root {
  --bg: #fafafb; --bg-2: #f4f4f6; --panel: #ececf0; --line: #e4e4e9; --line-2: #cfcfd8;
  --muted: #6b6b76; --muted-2: #9d9da8; --ink: #0a0a0e; --ink-2: #24242b; --ink-3: #42424c;
  --surface: #ffffff; --on-ink: #ffffff; --head-bg: rgba(250, 250, 251, .78); --scheme: light;
  --red: #e5484d; --orange: #f76b15; --amber: #e2a336; --green: #30a46c; --violet: #6e56cf;
  --mint: #3ee0b0; --iris: #7c5cff; --accent: #6a4cf5; --glow-a: rgba(62, 224, 176, .5); --glow-b: rgba(124, 92, 255, .55);
  --t-red-bg: var(--t-red-bg); --t-red-fg: var(--t-red-fg); --t-red-line: #f3c7c8; --t-amber-bg: var(--t-amber-bg); --t-amber-fg: var(--t-amber-fg);
  --t-green-bg: #eaf7f0; --t-green-fg: var(--t-green-fg); --t-orange-bg: var(--t-orange-bg); --t-orange-fg: var(--t-orange-fg);
  --t-violet-bg: var(--t-violet-bg); --t-violet-fg: var(--t-violet-fg);
  --mk-cta: linear-gradient(110deg, #e9fbf5, #f0ecff 60%, #eef3ff);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px; --pad: clamp(16px, 4vw, 48px);
  --brand: linear-gradient(135deg, #3ee0b0, #7c5cff);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #07080b; --bg-2: #0c0d11; --panel: #15171d; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --muted: #8f94a0; --muted-2: #5f6470; --ink: #eef0f4; --ink-2: #d6d9df; --ink-3: #b2b6c0;
  --surface: #101217; --on-ink: #07080b; --head-bg: rgba(7, 8, 11, .7); --scheme: dark; --accent: #5ef2c2;
  --glow-a: rgba(94, 242, 194, .55); --glow-b: rgba(139, 108, 255, .6);
  --t-red-bg: rgba(229, 72, 77, .14); --t-red-fg: #ff8f93; --t-red-line: rgba(229, 72, 77, .38); --t-amber-bg: rgba(226, 163, 54, .14);
  --t-amber-fg: #f2c46e; --t-green-bg: rgba(48, 164, 108, .15); --t-green-fg: #72dca8; --t-orange-bg: rgba(247, 107, 21, .15);
  --t-orange-fg: #ffa066; --t-violet-bg: rgba(139, 108, 255, .16); --t-violet-fg: #bcacff;
  --mk-cta: linear-gradient(110deg, rgba(94, 242, 194, .1), rgba(139, 108, 255, .13) 60%, rgba(80, 140, 255, .08));
} }
:root[data-theme="dark"] {
  --bg: #07080b; --bg-2: #0c0d11; --panel: #15171d; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --muted: #8f94a0; --muted-2: #5f6470; --ink: #eef0f4; --ink-2: #d6d9df; --ink-3: #b2b6c0;
  --surface: #101217; --on-ink: #07080b; --head-bg: rgba(7, 8, 11, .7); --scheme: dark; --accent: #5ef2c2;
  --glow-a: rgba(94, 242, 194, .55); --glow-b: rgba(139, 108, 255, .6);
  --t-red-bg: rgba(229, 72, 77, .14); --t-red-fg: #ff8f93; --t-red-line: rgba(229, 72, 77, .38); --t-amber-bg: rgba(226, 163, 54, .14);
  --t-amber-fg: #f2c46e; --t-green-bg: rgba(48, 164, 108, .15); --t-green-fg: #72dca8; --t-orange-bg: rgba(247, 107, 21, .15);
  --t-orange-fg: #ffa066; --t-violet-bg: rgba(139, 108, 255, .16); --t-violet-fg: #bcacff;
  --mk-cta: linear-gradient(110deg, rgba(94, 242, 194, .1), rgba(139, 108, 255, .13) 60%, rgba(80, 140, 255, .08));
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: var(--scheme); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); transition: background-color .3s, color .3s; color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; font-weight: 400; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35em; }
small, .small { font-size: .85rem; }
code, pre { font-family: var(--mono); font-size: .85em; background: var(--panel); border-radius: 6px; padding: .1em .35em; }
pre { padding: 12px 14px; overflow-x: auto; }
.muted { color: var(--muted); }
.eyebrow { display: block; font: 500 .75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.grain, .plan-top.grain { background: var(--noise), radial-gradient(70% 90% at 12% 8%, var(--glow-a), transparent 62%),
  radial-gradient(80% 90% at 92% 96%, var(--glow-b), transparent 64%), radial-gradient(60% 60% at 60% 40%, rgba(70, 90, 255, .18), transparent 70%), #0a0c14;
  background-blend-mode: overlay, normal, normal, normal, normal; }

/* ---------- the swarm behind the public pages (getlayers' New Era; app.js draws it): fixed, under everything, faint ---------- */
.swarm { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: .6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .swarm { opacity: .45; } }
:root[data-theme="light"] .swarm { opacity: .45; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-head nav { display: flex; align-items: center; gap: 32px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 1.2rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 20px; height: 20px; display: block; }  /* the D with a voice waveform (static/logo.svg) */
.brand-ai { font-weight: 400; color: var(--muted); margin-left: -4px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--muted); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-actions .muted { font-size: .85rem; margin-right: 8px; white-space: nowrap; }
@media (max-width: 900px) {
  .site-head nav { gap: 12px 20px; padding-top: 10px; }
  .nav-links { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
}

/* ---------- buttons ---------- */
button, [role=button] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 .95rem/1 var(--font);
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
button:hover, [role=button]:hover { background: var(--ink-2); border-color: var(--ink-2); }
.secondary, .outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.secondary:hover, .outline:hover { background: var(--panel); border-color: var(--line-2); color: var(--ink); }
.site-head button, .site-head [role=button] { padding: 9px 16px; font-size: .9rem; }
.block { width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- forms ---------- */
form { margin: 0 0 1em; }
label { display: block; font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=file] { background: var(--bg-2); padding: 10px; }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: var(--ink); }
label:has(> input[type=checkbox]) { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
input[type=checkbox] { width: 16px; height: 16px; flex: none; margin: 3px 0 0; }
input[type=range] { width: 100%; margin-top: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-size: .9rem; color: var(--ink-3); margin-bottom: 8px; padding: 0; }
progress { width: 100%; height: 8px; }
output { font-family: var(--mono); color: var(--ink); }
.honeypot { position: absolute; left: -10000px; }

/* ---------- surfaces ---------- */
main { padding-top: 56px; padding-bottom: 64px; min-height: 60vh; }
@media (min-width: 1100px) { main.container { box-shadow: 1px 0 0 var(--line), -1px 0 0 var(--line); } }
article { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 0 0 20px; }
article > header { font-weight: 500; margin-bottom: 12px; }
article > footer { margin-top: 14px; color: var(--muted); font-size: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 32px; }
.cards > article { margin: 0; }
.cards h3 { margin-bottom: .35em; }
.panel { background: var(--panel); border-radius: 32px; padding: clamp(10px, 2vw, 20px); }
.notice { background: var(--panel); border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; font-size: .95rem; }
.notice.error { background: var(--t-red-bg); color: var(--t-red-fg); }
.notice.draft { background: var(--t-amber-bg); color: var(--t-amber-fg); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 .72rem/1 var(--font);
  color: #fff; margin-right: 4px; vertical-align: 1px; white-space: nowrap; }
.chip.low_mt { background: var(--red); } .chip.low_asr { background: var(--orange); } .chip.overflow { background: var(--amber); }
.chip.number { background: #d6409f; } .chip.mt_disagree { background: #8e4ec6; } .chip.low_qe { background: #b42318; }
.chip.term { background: #0d74ce; } .chip.asr_disagree { background: #c25100; } .chip.rushed { background: #7c5e10; }
.second-op { margin: 4px 0 8px; } .second-op span { color: var(--fg, inherit); }
.chip.ok { background: var(--green); } .chip.tag { background: var(--violet); }
.chip.tag.auto { background: none; color: var(--violet); border: 1px dashed var(--violet); } .chip.grey { background: var(--muted-2); }
.big { font: 300 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; margin: 0 0 10px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
th { text-align: left; font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
th, td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.small { font-size: .875rem; }
@media (max-width: 700px) { table { display: block; overflow-x: auto; } }

/* FAQ-style disclosure */
details { border-bottom: 1px solid var(--line); }
details > summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; position: absolute; right: 6px; top: 11px; font: 300 1.5rem/1 var(--display); color: var(--muted); transition: transform .2s; }
details[open] > summary::after { transform: rotate(45deg); }
details[open] { padding-bottom: 12px; }

/* account menu */
.dropdown { position: relative; border: 0; padding: 0 !important; }
.dropdown > summary { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; white-space: nowrap; }
.dropdown > summary::after { content: none; }
.dropdown > ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .08); list-style: none; padding: 6px; margin: 0; z-index: 30; }
.dropdown li { margin: 0; }
.dropdown li a, .dropdown li button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; color: var(--ink); font: 400 .92rem/1.2 var(--font); text-decoration: none; }
.dropdown li a:hover, .dropdown li button:hover { background: var(--panel); }
.dropdown form { margin: 0; }

/* ---------- marketing sections ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px 72px; align-items: end; padding: 40px 0 56px; }
.hero h1 { grid-column: 1; margin: 0; }
.hero .lead { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.hero > :not(h1):not(.lead) { grid-column: 1; margin: 0; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } .hero .lead { grid-column: 1; grid-row: auto; } }
.band { margin: 0 calc(-1 * var(--pad)); padding: 88px var(--pad); border-top: 1px solid var(--line); }
.band > h2:first-child, .band > .eyebrow + h2 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 72px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cta { text-align: center; margin: 64px calc(-1 * var(--pad)) -64px; padding: 96px var(--pad); color: #fff; }
.cta h2 { margin: 0 0 12px; } .cta p { color: rgba(255, 255, 255, .85); }
.cta [role=button] { background: #fff; color: #0a0a0e; border-color: #fff; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.cols > div { padding: 28px 28px 8px 0; }
.cols > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .cols > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.num { font: 500 .75rem/1 var(--mono); color: var(--muted); display: block; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 12px 0 12px 30px; margin: 0; border-bottom: 1px dashed var(--line-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 18px; width: 12px; height: 6px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }
.built { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; justify-content: center; padding: 40px 0 0; color: var(--muted);
  font: 400 1.05rem/1.4 var(--display); letter-spacing: -0.01em; }
.built .eyebrow { margin: 0; }

/* product demo frame (home, pair pages) */
.seg { display: flex; gap: 4px; background: var(--line); border-radius: 16px; padding: 4px; margin-bottom: 12px; overflow-x: auto; }
.seg a { flex: 1; text-align: center; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.demo-body { background: var(--surface); border-radius: 22px; padding: clamp(12px, 2vw, 22px); }
main .tl { background: var(--panel); border-radius: 10px; height: 34px; }
main .tl-b { border-radius: 7px; }
main #dubv { border-radius: 16px; display: block; }
.tl-leg { margin-top: 4px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 40px; }
.plan { padding: 16px; border-right: 1px solid var(--line); }
.plan:first-child { border-left: 1px solid var(--line); }
.plan-top { background: var(--panel); border-radius: 16px; padding: 20px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 16px; }
.plan-top h3 { font-size: 1.6rem; font-weight: 300; margin: 0; }
.plan .price { font: 300 2.2rem/1 var(--display); letter-spacing: -0.02em; margin: 0; }
.plan .price span { font: 400 .9rem var(--font); color: var(--muted); letter-spacing: 0; }
.plan.featured .plan-top { color: #fff; } .plan.featured .price span { color: rgba(255, 255, 255, .85); }
.badge { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; font-size: .75rem; margin-top: 8px; }
.plan form input { margin-top: 0; margin-bottom: 8px; height: 46px; }
.plan form { margin: 0; }
.plan-note { height: 46px; margin: 0 0 8px; display: flex; align-items: center; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.plan .checks { margin-top: 18px; font-size: .95rem; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } .plan:nth-child(3) { border-left: 1px solid var(--line); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan { border-left: 1px solid var(--line); } .plan-top { min-height: 130px; } }

/* ---------- app ---------- */
.sent { border-bottom: 1px solid var(--line); }
.sent > summary { padding: 13px 36px 13px 0; font-size: .95rem; }
.sent[open] { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px 16px; margin: 8px 0; }
.sent .src { color: var(--muted); margin: 4px 0 12px; }
.sent audio { height: 36px; margin-bottom: 12px; }
.take-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.take-row audio { margin-bottom: 0; }
/* tags and error types as pill toggles; the checkbox stays in the label for keyboard and screen readers */
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; }
.tagbox legend { width: 100%; }
.tagbox label:has(> input[type=checkbox]) { position: relative; display: inline-flex; align-items: center; margin: 0; padding: 5px 12px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface); font-size: .82rem; color: var(--ink-3); cursor: pointer; user-select: none; }
.tagbox label:has(> input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tagbox label:has(> input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.tagbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.narrow h1, article > h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.stages { padding-left: 0; } .stages li { list-style: none; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; font-family: var(--mono); font-size: .9rem; }
.stages .done::before { content: "✓  "; color: var(--green); } .stages .now::before { content: "▶  "; }
.stages .todo { color: var(--muted-2); } .stages .todo::before { content: "·  "; }
.inline { display: inline; margin: 0; }
.narrow { max-width: 30rem; margin: 24px auto; }
.mid { max-width: 42rem; margin: 0 auto; }

/* ---------- motion (tokens once; everything off for prefers-reduced-motion) ---------- */
:root { --dur-fast: .15s; --dur: .35s; --dur-slow: .7s; --ease: cubic-bezier(.22, 1, .36, 1); --rise: 18px; --stagger: 70ms; }
.js [data-reveal] { opacity: 0; transform: translateY(var(--rise)); filter: blur(10px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
article, .slide, .voice { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cards > article:hover, .slide:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .06); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-body .tl.tl-in .tl-b, .showcase-body .tl.tl-in .tl-b { animation: grow var(--dur-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }

/* carousels */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.carousel-head h2 { margin-top: 0; }
.carousel-head p { max-width: 36rem; margin: 0; }
.carousel-nav { display: flex; gap: 8px; flex: none; }
.icon { width: 44px; height: 44px; padding: 0; font-size: 1.1rem; }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; flex: none; }

/* voices: painted orbs in a centre-focused carousel, after elevenlabs.io's home panel
   (centre 256 px, neighbours ×0.78, outer ×0.56 and faded — their measured 256 / 200 / 145 px) */
.showcase-body { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(10px, 2vw, 20px); }
.cf { position: relative; height: 410px; outline: none; }
.cf-stage { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; }
.cf-item { position: absolute; left: 50%; top: 26px; width: 300px; margin: 0; text-align: center; opacity: var(--o, 0); pointer-events: none;
  transform: translateX(calc(-50% + var(--x, 0px))); transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
.cf-item.vis { pointer-events: auto; }
.cf-item .orb { transform: scale(var(--s, 1)); }
.cf-item figcaption { margin-top: 26px; opacity: var(--co, 0); transition: opacity var(--dur) var(--ease); }
.cf-item figcaption b { display: block; font-weight: 400; font-size: 1.05rem; color: var(--muted); }
.cf-item figcaption span { display: block; font-size: .85rem; color: var(--muted-2); margin-top: 6px; }
.cf-item.on figcaption b { color: var(--ink); }
.cf-item.on figcaption span { color: var(--muted); }
.cf-btn { position: absolute; top: 318px; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; }
.cf-btn:hover { background: transparent; color: var(--ink); border: 0; }
.cf-btn.prev { left: calc(50% - 175px); } .cf-btn.next { left: calc(50% + 141px); }
.orb { display: block; position: relative; width: 256px; height: 256px; margin: 0 auto; padding: 0; border: 0; border-radius: 50%;
  overflow: hidden; isolation: isolate; background: var(--base); transition: transform var(--dur-slow) var(--ease); }
.orb:hover { background: var(--base); border: 0; }
.orb .paint { position: absolute; inset: -30%; z-index: 0; filter: blur(16px) saturate(1.15); animation: swirl 24s linear infinite;
  background: radial-gradient(35% 35% at 30% 30%, var(--a), transparent 72%), radial-gradient(38% 38% at 72% 38%, var(--b), transparent 72%),
    radial-gradient(42% 42% at 45% 76%, var(--c), transparent 72%), radial-gradient(30% 30% at 80% 80%, var(--a), transparent 70%); }
.orb::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: overlay; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.orb::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .3), transparent 42%), radial-gradient(circle at 62% 90%, rgba(0, 0, 0, .18), transparent 55%); }
.orb.playing .paint { animation-duration: 5s; }
@keyframes swirl { to { transform: rotate(360deg); } }
.play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.play::before { content: ""; position: absolute; left: 23px; top: 19px; border-left: 15px solid #000; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.playing .play::before { left: 21px; top: 20px; width: 4px; height: 16px; border: 0; background: #000; box-shadow: 9px 0 0 #000; }
.cf-item:not(.on) .play { opacity: 0; transform: scale(.6); }
.orb:hover .play { transform: scale(1.08); }
@media (max-width: 700px) { .cf { height: 360px; } .orb { width: 200px; height: 200px; } .cf-btn { top: 262px; } .cf-btn.prev { left: 6px; } .cf-btn.next { left: auto; right: 6px; } }

/* the tabbed hero panel and its feature pills */
.seg button { flex: 1; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 400; }
.seg button:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink); border: 0; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.pillbar { display: flex; align-items: center; gap: 16px; padding: 18px 6px 4px; }
.pills { flex: 1; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pills a { padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; color: var(--ink-3); white-space: nowrap; font-size: .95rem; }
.pills a:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.pills a.on { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
@media (max-width: 700px) { .pills { justify-content: flex-start; } .pillbar > [role=button] { display: none; } }

/* review editor mock-up (real sentences from the example) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 880px; margin: 6px auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .06); }
.mock-bar { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); background: var(--bg-2); }
.lights i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-right: 5px; }
.mock-body { padding: 6px 18px 18px; }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; white-space: nowrap; }
.mock-row span:last-child { overflow: hidden; text-overflow: ellipsis; }
.mock-open { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.mock-text { font-size: 1.05rem; margin: 0 0 10px; }
.scramble { background: var(--t-red-bg); color: var(--t-red-fg); border-radius: 6px; padding: 0 5px; font-family: var(--mono); transition: background var(--dur), color var(--dur); }
.scramble.done { background: var(--t-green-bg); color: var(--t-green-fg); }

/* original vs. dub cards */
.slide { width: min(440px, 86vw); margin: 0; padding: 0; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.slide-body { padding: 16px 18px 18px; }
.slide-meta { display: flex; align-items: center; gap: 6px; }
.slide-meta .num { margin: 0 4px 0 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair .eyebrow { margin-bottom: 6px; }
.pair p { min-height: 6.5em; margin-bottom: 10px; }
.play-btn { padding: 7px 14px 7px 7px; font-size: .85rem; }
.play-btn .play { position: relative; inset: auto; width: 22px; height: 22px; margin: 0; box-shadow: none; }
.play-btn .play::before { left: 8px; top: 6px; border-left: 8px solid #000; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.play-btn.secondary .play { background: var(--ink); } .play-btn.secondary .play::before { border-left-color: var(--on-ink); }
.play-btn.playing .play::before { left: 7px; top: 6px; width: 3px; height: 10px; border: 0; background: #000; box-shadow: 5px 0 0 #000; }
.play-btn.secondary.playing .play::before { background: var(--on-ink); box-shadow: 5px 0 0 var(--on-ink); }

/* before / after, after cloudflare.com */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.ba-side { border-radius: 28px; padding: clamp(22px, 3vw, 36px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; }
.ba-side h3 { font: 300 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 0; }
.ba-side.before { background: var(--panel); color: var(--ink-3); }
.ba-side.after { color: #fff; } .ba-side.after .eyebrow { color: rgba(255, 255, 255, .8); }
.ba-tl { display: flex; gap: 4px; height: 36px; margin: 28px 0 18px; }
.ba-tl i { flex: 1; border-radius: 6px; background: var(--line-2); }
.before .ba-tl i { animation: listen 7s linear infinite; animation-delay: calc(var(--i, 0) * .45s); }
.after .ba-tl i { background: rgba(255, 255, 255, .25); }
.after .ba-tl i.low_mt, .after .ba-tl i.low_asr, .after .ba-tl i.overflow { background: #fff; animation: pop 2.4s var(--ease) infinite; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes listen { 0%, 5% { background: var(--ink-3); } 9%, 100% { background: var(--line-2); } }
@keyframes pop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }

/* animated feature tiles, after motion.dev/plus */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px 22px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 2; }
.tile h3 { margin: 16px 0 6px; } .tile p { margin: 0; font-size: .92rem; }
.tile-art { height: 150px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }
.mini-tl { position: relative; display: flex; gap: 4px; width: 100%; height: 42px; }
.mini-tl i { flex: 1; border-radius: 6px; background: var(--green); opacity: .8; }
.mini-tl i.low_mt { background: var(--red); } .mini-tl i.low_asr { background: var(--orange); } .mini-tl i.overflow { background: var(--amber); }
.mini-tl i:not(.ok) { opacity: 1; animation: pop 2.4s var(--ease) infinite; animation-delay: calc(var(--i, 0) * 90ms); }
.head { position: absolute; top: -10px; bottom: -10px; left: 0; width: 2px; background: var(--ink); animation: sweep 7s linear infinite; }
@keyframes sweep { to { left: 100%; } }
.wave { display: flex; align-items: center; gap: 3px; height: 42px; width: 100%; }
.wave i { flex: 1; height: 25%; border-radius: 3px; background: var(--violet); animation: bar 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -71ms); }
.wave.voice { animation: talk 5s ease-in-out infinite; }
.wave.music i { background: var(--orange); animation: duck 5s ease-in-out infinite; }
@keyframes bar { 50% { height: 95%; } }
@keyframes talk { 0%, 22%, 78%, 100% { opacity: .15; } 32%, 68% { opacity: 1; } }
@keyframes duck { 0%, 22%, 78%, 100% { height: 75%; } 32%, 68% { height: 18%; } }
.type-art { background: #111; }
.caption { margin: 0; padding: 6px 12px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1rem; text-align: center; max-width: 92%; }
.caption::after { content: "▍"; color: rgba(255, 255, 255, .6); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fix-art p { font: 300 1.4rem/1.3 var(--display); margin: 0; text-align: center; }
.big-word { font-size: 1.2rem; }
.lane { position: absolute; left: 16px; right: 16px; height: 18px; border-radius: 9px; background: var(--panel); top: 30%; }
.lane.dub { top: 56%; }
.lane i { position: absolute; top: 3px; width: 10%; height: 12px; border-radius: 6px; background: var(--muted-2); }
.lane.dub i { background: var(--violet); }
.drift-art .head { top: 20%; bottom: 22%; }
.drift-val { position: absolute; right: 14px; bottom: 10px; font: 500 .8rem var(--mono); color: var(--green); }
.tags-art .tagbox { justify-content: center; }
.tags-art label { animation: toggle 6s var(--ease) infinite; animation-delay: calc(var(--i) * 1.1s); }
@keyframes toggle { 0%, 6% { background: var(--surface); color: var(--ink-3); } 10%, 38% { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } 44%, 100% { background: var(--surface); color: var(--ink-3); } }

/* use cases, after upwork.com's category tiles */
.uses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1000px) { .uses { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr 1fr; } }
.report-art dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; width: 100%; font-size: .88rem; }
.report-art dt { color: var(--muted); } .report-art dd { margin: 0; font-family: var(--mono); text-align: right; }
.in .report-art dd { animation: fadein var(--dur-slow) var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateX(8px); } }
.use { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur) var(--ease); }
.use:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .06); }
.ico { width: 28px; height: 28px; margin-bottom: 12px; }
.use:nth-child(6n+1) .ico { color: var(--orange); } .use:nth-child(6n+2) .ico { color: var(--violet); } .use:nth-child(6n+3) .ico { color: var(--green); }
.use:nth-child(6n+4) .ico { color: var(--amber); } .use:nth-child(6n+5) .ico { color: var(--red); } .use:nth-child(6n) .ico { color: #3b82f6; }
.use b { font-weight: 500; } .use span { color: var(--muted); font-size: .88rem; }

/* cost calculator, after upwork.com's cost estimate */
.calc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px 56px; background: #14161c; color: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
.calc h2 { color: #fff; margin-top: 0; }
.calc-in { color: #fff; font-size: 1rem; }
.calc-in output { display: block; font: 300 3rem/1 var(--display); color: #fff; margin: 10px 0 6px; }
.calc input[type=range] { accent-color: var(--orange); }
.calc-res { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 6px 20px 18px; }
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc-row span { color: #d7d2cc; } .calc-row b { font: 400 1.05rem var(--mono); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; width: 0; transition: width var(--dur-slow) var(--ease); }
.bar[data-bar=ours] { background: var(--green); } .bar[data-bar=el] { background: var(--violet); } .bar[data-bar=human] { background: var(--red); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* rolling numbers, after motion.dev's AnimateNumber */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; line-height: 1; }
.odo > span { display: block; transition: transform 1.6s var(--ease); }
.odo > span > span { display: block; height: 1em; }

/* pipeline: a highlight runs through the eleven steps */
.pipe { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0 28px; counter-reset: none; }
.pipe li { list-style: none; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; animation: step 6s var(--ease) infinite; animation-delay: calc(var(--i) * .45s); }
.pipe .num { margin: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); color: var(--ink-3); }
@keyframes step { 0% { background: var(--surface); } 4%, 14% { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } 22%, 100% { background: var(--surface); } }

/* marquee of model names */
.marquee { overflow: hidden; padding: 4px 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee-row span { padding-right: 56px; font: 300 1.5rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink-3); white-space: nowrap; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.built { padding-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- the signed-in app: sidebar shell (after elevenlabs.io's app) ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app > * { min-width: 0; }  /* wide tables scroll inside the page instead of widening it */
/* sidebar: fits a laptop screen without scrolling (account things live in the menu at the top);
   scrolls only on very short windows, so nothing is ever cut off */
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 12px; border-right: 1px solid var(--line); background: var(--bg-2); }
.side .brand { padding: 2px 8px 10px; }
.side-new { margin: 8px 2px 6px; padding-top: 9px; padding-bottom: 9px; }
.side-new .ico, .side-nav .ico, .acct-menu .ico { width: 18px; height: 18px; margin: 0; flex: none; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a, .acct-menu > a:not(.meter), .side-out { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink-3); font-size: .9rem; line-height: 1.35; border: 1px solid transparent; }
.side-nav a:hover, .acct-menu > a:not(.meter):hover, .side-out:hover { background: var(--panel); color: var(--ink); }
.side-nav a.on, .acct-menu > a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border-color: var(--line); }
.side-h { font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin: 11px 10px 3px; }
.side-out { width: 100%; background: transparent; font-weight: 400; justify-content: flex-start; }
.meter { display: block; padding: 10px 12px; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); text-decoration: none; font-size: .85rem; color: var(--ink); }
.meter progress { margin: 8px 0 4px; height: 6px; }
.meter small { display: block; font-size: .75rem; }
/* account button at the top: initials, name, plan; opens a small menu */
.acct { position: relative; margin: 0; }
.acct summary { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; cursor: pointer; list-style: none;
  border: 1px solid var(--line); background: var(--surface); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { border-color: var(--line-2); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 600;
  background: var(--brand); }
.acct-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.acct-who b { font-weight: 500; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who small { font-size: .72rem; color: var(--muted); }
.acct-chev { margin-left: auto; color: var(--muted); transition: transform var(--dur-fast); }
.acct[open] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; gap: 1px;
  padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
  animation: acct-in var(--dur-fast) var(--ease); }
@keyframes acct-in { from { opacity: 0; transform: translateY(-4px); } }
.acct-menu form { margin: 0; }
.acct-email { margin: 2px 6px 8px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.app-main { padding: 36px clamp(16px, 4vw, 56px) 64px; max-width: 1600px; width: 100%; margin-inline: auto; }  /* centred; wide enough that big monitors keep only a small margin */
:where(.app-main) h1, .app-h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 24px; }
.app-sec { margin-top: 36px; }
.task-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 48rem; overflow-wrap: anywhere; }
.app-sec h2, .row-head h2 { font-size: 1.35rem; margin: 0; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.lang-pick label { display: flex; gap: 8px; align-items: center; margin: 0; white-space: nowrap; }
.lang-pick select { margin: 0; width: auto; }
.row-head a { font-size: .9rem; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { padding: 4px 8px; } .side-new { margin: 0 0 0 auto; }
  .side { overflow: visible; position: relative; z-index: 30; }  /* the account menu opens over the page */
  .acct { order: 2; margin-left: 8px; } .acct-who { display: none; } .acct summary { padding: 4px; border-radius: 999px; }
  .acct-chev { display: none; } .acct-menu { left: auto; right: 0; width: 260px; }
  .side-nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; }
  .side-nav a { white-space: nowrap; } .side-h { display: none; }
}

/* home dashboard */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1000px) { .quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quick { grid-template-columns: 1fr; } }
.qa { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.qa::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .16;
  background: radial-gradient(circle, var(--c), transparent 70%); transition: opacity var(--dur); }
.qa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .06); } .qa:hover::after { opacity: .3; }
.qa-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; margin-bottom: 8px; }
.qa-ico .ico { width: 22px; height: 22px; margin: 0; }
.qa b { font-weight: 500; } .qa > span:last-child { color: var(--muted); font-size: .86rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dash-grid.wide-left { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 800px) { .dash-grid, .dash-grid.wide-left { grid-template-columns: 1fr; } }
.ring-row { display: flex; gap: 20px; align-items: center; }
.ring { --p: 0; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--panel) 0); }
.ring b { font: 300 1.7rem/1 var(--display); } .ring small { color: var(--muted); font-size: .75rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats.two { grid-template-columns: 1fr 1fr; }
.mini-stats > * { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--bg-2); text-decoration: none; }
.mini-stats b { font: 300 1.8rem/1 var(--display); } .mini-stats span { color: var(--muted); font-size: .8rem; }
.titem { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.titem-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: var(--muted-2); }
.titem-ico .ico { width: 18px; height: 18px; margin: 0; }
.k-dub { background: var(--orange); } .k-tts { background: var(--violet); } .k-stt { background: var(--green); } .k-translate { background: #3b82f6; } .k-isolate { background: var(--red); } .k-speakers { background: #12a594; } .k-captions { background: #e2a336; }
.titem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.titem-main a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titem-main b { font-weight: 500; }
.titem [role=button], .titem button { padding: 8px 14px; font-size: .85rem; }
.empty { text-align: center; padding: 32px 16px; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.empty .ico { width: 28px; height: 28px; color: var(--muted-2); }

/* tools */
.tool { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.tool-main textarea { margin-top: 0; min-height: 260px; font-size: 1.05rem; line-height: 1.6; border-radius: 16px; padding: 16px; resize: vertical; }
.tool-side { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; position: sticky; top: 24px; }
.tool-side .play-btn { width: 100%; justify-content: flex-start; }
.tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tagchip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font: 500 .8rem/1 var(--mono); }
.tagchip:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tagchip.vocal { border-style: dashed; }
.editor-foot { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--muted); margin: 6px 4px 0; }
.preview { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); line-height: 1.9; min-height: 3em; }
.preview:empty { display: none; }
.tagpill { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--t-violet-bg); color: var(--t-violet-fg); font: 500 .8rem/1.7 var(--mono); }
.tagpill.vocal { background: var(--t-orange-bg); color: var(--t-orange-fg); } .tagpill.bad { background: var(--t-red-bg); color: var(--t-red-fg); text-decoration: line-through; }
/* upload area: the invisible file input covers the whole box, so click, keyboard and drag-and-drop all work */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 52px 24px;
  border: 1.5px dashed var(--line-2); border-radius: 24px; background: var(--surface); color: var(--ink); cursor: pointer; margin: 0;
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease); }
.drop:hover, .drop.over { border-color: var(--ink-3); background: var(--bg-2); }
.drop.over { transform: scale(1.01); }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.link-in { display: block; margin-top: 14px; }
.drop.has-file { border-style: solid; border-color: var(--green); background: var(--t-green-bg); }
.drop-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--panel); color: var(--ink-3); margin-bottom: 8px;
  transition: background var(--dur), color var(--dur); }
.drop.has-file .drop-ico { background: var(--green); color: #fff; }
.drop .ico { width: 28px; height: 28px; margin: 0; }
.drop b { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.pick { margin-top: 14px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 500; font-size: .92rem; }
.drop.has-file .pick { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dur { margin: 10px 4px 0; font-size: .88rem; color: var(--muted); min-height: 1.3em; }
.dur.warn { color: var(--t-red-fg); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 500 .88rem var(--font); cursor: pointer; }
/* switch, slider, rights line in the side panel */
.switch { position: relative; display: flex; gap: 12px; align-items: flex-start; color: var(--ink); margin: 8px 0 18px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.knob { flex: none; position: relative; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: var(--line-2); transition: background var(--dur); }
.knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform var(--dur) var(--ease); }
.switch input:checked + .knob { background: var(--ink); }
.switch input:checked + .knob::after { transform: translateX(16px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch b { display: block; font-weight: 500; } .switch small { color: var(--muted); font-size: .8rem; }
.slider { margin: 0 0 18px; color: var(--ink); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; } .slider-head b { font-weight: 500; }
.slider input { margin: 10px 0 6px; } .slider small { display: block; font-size: .8rem; }
.rights { font-size: .85rem; color: var(--ink-3); margin: 4px 0 16px; }
.tool-side .lang-row select { flex: 1; min-width: 0; padding-left: 12px; padding-right: 4px; }
.slider output { font: 500 .9rem var(--font); color: var(--ink-3); }
.feature-list { display: grid; gap: 10px; margin-top: 16px; }
.feature-list > div { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.feature-list .ico { width: 20px; height: 20px; margin: 0; flex: none; color: var(--ink-3); }
.feature-list b { color: var(--ink); font-weight: 500; display: block; }
.tool-main .feature-list { grid-template-columns: repeat(3, 1fr); } @media (max-width: 700px) { .tool-main .feature-list { grid-template-columns: 1fr; } }
.lang-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.lang-row select { margin: 0; }
.lang-row .icon { flex: none; border-radius: 50%; }  /* the selects squeezed the swap button to a sliver */
.stems { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stem { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.stem .wave { height: 36px; margin-bottom: 6px; }
@media (max-width: 600px) { .stems { grid-template-columns: 1fr; } }
.working { display: flex; gap: 16px; align-items: center; }
.spinner { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--panel); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sline { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tline { padding: 14px 0; border-bottom: 1px solid var(--line); }
.conf { height: 4px; border-radius: 2px; background: var(--panel); margin-top: 8px; max-width: 260px; }
.conf i { display: block; height: 100%; border-radius: 2px; background: var(--green); }
.filter { justify-content: flex-start; margin-bottom: 14px; }
.filter a { border: 1px solid var(--line); background: var(--surface); }
.filter a.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* admin */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; }
.kpi:hover { border-color: var(--line-2); }
.kpi span { color: var(--muted); font-size: .85rem; } .kpi b { font: 300 2.4rem/1.05 var(--display); letter-spacing: -.02em; } .kpi small { color: var(--muted-2); font-size: .78rem; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-stack { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar-stack i { display: block; width: 100%; transition: height var(--dur-slow) var(--ease); }
.b-dub { background: var(--orange); } .b-tool { background: var(--violet); }
.bar-col small { font: 400 .65rem var(--mono); color: var(--muted-2); }
select.compact { margin: 0; padding: 6px 10px; width: auto; font-size: .85rem; border-radius: 10px; }
.row-actions { white-space: nowrap; } .row-actions form { margin-right: 4px; }
.row-actions button { padding: 6px 12px; font-size: .8rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 40px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid strong { display: block; font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: var(--muted); }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* clone my voice: the sentences to read and the recorder */
.script { font-size: 1.35rem; line-height: 1.55; margin: 8px 0 18px; color: var(--ink); }
.rec-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.rec-time { font-family: var(--mono); color: var(--muted); }
[data-recorder] audio { width: 100%; margin-bottom: 8px; }
button:disabled, [role=button][aria-disabled=true] { opacity: .4; cursor: not-allowed; }

/* ---------- voice marketplace (store front, cards, listing page, ratings) ---------- */
.mk-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.mk-hero p { max-width: 44rem; margin: 0; }
.mk-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.mk-search-box { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 16px; }
.mk-search-box:focus-within { border-color: var(--ink); }
.mk-search-box .ico { width: 18px; height: 18px; color: var(--muted); margin: 0; flex: none; }
.mk-search-box input { border: 0; background: transparent; margin: 0; padding: 12px 0; box-shadow: none; outline: 0; }
.mk-search select, .mk-search button { margin: 0; }
.mk-sec { margin-top: 28px; }
.mk-orb { flex: none; }
.mk-orb.sm { width: 72px; height: 72px; } .mk-orb.md { width: 88px; height: 88px; } .mk-orb.lg { width: 168px; height: 168px; }
.mk-orb .paint { filter: blur(10px) saturate(1.15); }
.mk-orb.sm .play, .mk-orb.md .play { width: 32px; height: 32px; opacity: 0; transform: scale(.7); }
.mk-orb.sm .play::before, .mk-orb.md .play::before { left: 13px; top: 10px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.mk-orb:hover .play, .mk-orb:focus-visible .play, .mk-orb.playing .play { opacity: 1; transform: scale(1); }
.mk-orb[data-play] { cursor: pointer; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mk-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin: 0; transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease); }
.mk-card:hover { border-color: var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.mk-card > .mk-orb { grid-row: span 2; }
.mk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-name { font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.mk-name:hover { text-decoration: underline; }
.mk-meta { display: flex; align-items: center; gap: 6px; }
.mk-desc { margin: 4px 0 6px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-tags .chip { font-size: .72rem; }
.mk-act { grid-column: 2; display: flex; justify-content: flex-end; }
.mk-act form { margin: 0; }
.mk-act button, .mk-act [role=button] { padding: 7px 18px; font-size: .88rem; }
.mk-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mk-feat-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px; background: var(--panel);
  color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease); }
.mk-feat-card:hover { transform: translateY(-3px); }
.mk-feat-card > span { display: flex; flex-direction: column; gap: 4px; }
.mk-feat-card b { font-size: 1.25rem; font-weight: 500; }
.mk-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.mk-mini { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; }
.mk-mini .mk-orb { margin-bottom: 6px; }
.mk-head { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin: 16px 0 8px; }
.mk-head > div { flex: 1 1 360px; min-width: 0; }
.mk-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.mk-head .actions form { margin: 0; }
.mk-stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); width: fit-content; max-width: 100%; }
.mk-stats > div { display: flex; flex-direction: column; padding: 10px 20px; border-left: 1px solid var(--line); }
.mk-stats > div:first-child { border-left: 0; }
.mk-stats b { font-weight: 500; } .mk-stats span { font-size: .78rem; color: var(--muted); }
.stars { --r: 0; display: inline-block; letter-spacing: 1px; font-size: .95rem; line-height: 1;
  background: linear-gradient(90deg, var(--amber) calc(var(--r) * 20%), var(--line-2) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-rating { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.mk-big { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mk-big b { font-family: var(--display); font-weight: 300; font-size: 3.2rem; line-height: 1; }
.mk-hist { flex: 1 1 260px; max-width: 420px; display: grid; gap: 5px; }
.mk-hist div { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.mk-hist i { display: block; height: 8px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.mk-hist s { display: block; height: 100%; border-radius: 999px; background: var(--amber); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; border: 0; padding: 0; margin: 6px 0 10px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: inline; margin: 0; padding: 0 2px; font-size: 1.8rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color var(--dur-fast); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--amber); }
.star-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.mk-review-form { max-width: 560px; }
.mk-review-form textarea { margin-bottom: 10px; }
.mk-rev { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; margin: 0; }
.mk-rev header { display: flex; gap: 10px; align-items: center; }
.mk-rev p { margin: 6px 0 0; }
.mk-trust ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-3); }
.mk-publish label:not(.rights) { margin-bottom: 14px; }
.mk-publish .tagbox { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.mk-publish .tagbox legend { margin-bottom: 6px; color: var(--ink-3); }
@media (max-width: 700px) { .mk-grid { grid-template-columns: 1fr; } .mk-orb.lg { width: 120px; height: 120px; } .mk-stats > div { padding: 8px 14px; } }
/* the search field sits inside the rounded box: beat the global input rule (four :not()s) on specificity */
.mk-search .mk-search-box input[type=search][name], .mk-search .mk-search-box input[type=search][name]:focus {
  border: 0; box-shadow: none; background: transparent; padding: 12px 0; margin: 0; }
.mk-tags .chip, .mk-feat-card .chip { background: var(--panel); color: var(--ink-3); }
.mk-big b.none { font-family: var(--font); font-size: 1.1rem; font-weight: 500; }

/* ---------- Voice Studio: stepper, voice rows, listing editor with live preview ---------- */
.stepper { display: flex; gap: 0; list-style: none; padding: 0; margin: 10px 0 22px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted-2); margin: 0; padding-right: 26px; position: relative; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 1px; background: var(--line-2); }
.stepper .dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2);
  font-size: .7rem; font-weight: 600; background: var(--surface); transition: background var(--dur), color var(--dur), border-color var(--dur); }
.stepper li.done { color: var(--ink-3); }
.stepper li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.active { color: var(--ink); font-weight: 500; }
.stepper li.active .dot { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.stepper li.failed { color: var(--t-red-fg); font-weight: 500; }
.stepper li.failed .dot { background: var(--red); border-color: var(--red); color: #fff; }
.studio-row .stepper { margin: 8px 0 0; }
.studio-row .stepper li { font-size: .74rem; padding-right: 18px; }
.studio-row .stepper li:not(:last-child)::after { right: 4px; width: 8px; }
.studio-row .stepper .dot { width: 18px; height: 18px; font-size: .62rem; }
.studio-kpis { margin-bottom: 8px; }
.studio-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 16px 18px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease); }
.studio-row:hover { border-color: var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.studio-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.studio-row-main b { font-weight: 500; font-size: 1.05rem; }
.studio-row-nums { display: flex; gap: 22px; }
.studio-row-nums span { display: flex; flex-direction: column; font-size: .74rem; color: var(--muted); text-align: right; }
.studio-row-nums b { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.studio-chev { font-size: 1.6rem; color: var(--muted-2); transition: transform var(--dur) var(--ease); }
.studio-row:hover .studio-chev { transform: translateX(4px); color: var(--ink); }
.studio-empty, .studio-check { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; padding: 28px; border-radius: 24px; background: var(--panel); }
.studio-empty > div, .studio-check > div { flex: 1 1 320px; }
.studio-empty h3, .studio-check h2 { margin-top: 0; }
.studio-tasks { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.studio-tasks li { margin: 4px 0; }
.studio-tasks li.on { color: var(--ink); font-weight: 500; }
.studio-banner { margin-bottom: 18px; border-left: 4px solid var(--ink-3); }
.studio-banner.good { border-left-color: var(--green); background: var(--t-green-bg); }
.studio-banner.bad { border-left-color: var(--red); background: var(--t-red-bg); }
.studio-banner p { margin: 6px 0; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.studio-form .card { margin-bottom: 16px; }
.count { float: right; font-size: .75rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.count.full { color: var(--red); }
.pick-group { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick-group legend { width: 100%; margin-bottom: 8px; font-size: .9rem; color: var(--ink-3); }
.pick-group legend .count { float: none; margin-left: 6px; }
label.pick-pill { display: inline-flex; margin: 0; position: relative; cursor: pointer; }
.pick-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-pill span { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .88rem; color: var(--ink-3);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.pick-pill:hover span { border-color: var(--ink-3); }
.pick-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pick-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick-pill input:disabled + span { opacity: .4; cursor: not-allowed; }
.studio-bar { position: sticky; bottom: 0; z-index: 5; background: var(--head-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: 0 -6px 24px rgba(0, 0, 0, .05); }
.studio-bar .rights { margin: 0 0 12px; }
.studio-bar-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.studio-preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.studio-preview .mk-card { pointer-events: none; }
.studio-page-preview { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.studio-page-preview p { margin: 0; }
.studio-danger { border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 1000px) { .studio-grid { grid-template-columns: 1fr; } .studio-preview { position: static; order: -1; } }
@media (max-width: 700px) {
  .studio-row { grid-template-columns: auto 1fr; }
  .studio-row-nums { grid-column: 1 / -1; justify-content: space-between; }
  .studio-chev { display: none; }
}

/* sidebar badge and toasts */
.side-badge { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--orange); color: #fff; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 380px; margin: 0; background: var(--ink); color: var(--on-ink);
  border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); animation: toast 4.5s var(--ease) forwards; }
@keyframes toast {
  0% { opacity: 0; transform: translateY(16px) scale(.98); }
  8%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(8px); visibility: hidden; }
}

/* the marketplace on the app home and on the public home page */
.mk-promo .mk-grid { margin-bottom: 14px; }
.mk-cta { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 22px; color: var(--ink); text-decoration: none;
  background: var(--mk-cta); border: 1px solid var(--line); transition: transform var(--dur) var(--ease); }
.mk-cta:hover { transform: translateY(-2px); }
.mk-cta > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.mk-cta-go { font-weight: 500; white-space: nowrap; }
.mk-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.mk-teaser-art { position: relative; height: 260px; }
.mk-teaser-art .mk-orb { position: absolute; }
.mk-teaser-art .mk-orb.lg { width: 220px; height: 220px; left: 6%; top: 10px; }
.mk-teaser-art .mk-orb.md { width: 130px; height: 130px; left: 52%; top: 0; }
.mk-teaser-art .mk-orb.sm { width: 90px; height: 90px; left: 44%; top: 160px; }
@media (max-width: 800px) { .mk-teaser { grid-template-columns: 1fr; } .mk-teaser-art { height: 200px; } }

/* page transitions: a voice's orb travels from its card to its page (Chrome, Edge, Safari 18); off when motion is reduced */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .toast { animation: none; }
}
.studio-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .studio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct > summary::after { content: none; }  /* the account menu has its own arrow, not the FAQ "+" */
.voice-pick { display: flex; gap: 8px; align-items: center; } .voice-pick select { flex: 1; min-width: 0; margin: 0; }
.voice-note { display: block; margin: 6px 0 4px; font-size: .78rem; }
.voice-pick .play-btn { width: auto; flex: none; }  /* .tool-side makes play buttons full width; here the list needs the room */
.mk-teaser .actions { margin-top: 28px; }

/* review editor: speakers */
.speakers { margin: 18px 0; }
.cap-video { width: 100%; max-height: 480px; background: #000; border-radius: 12px; margin: 0 0 14px; }
.cap-video::cue { background: rgba(0, 0, 0, .75); }
/* Subtitles review: each speaker's caption colour (picked on the page) */
.cap-color { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; cursor: pointer; }
.cap-color input[type=color] { width: 28px; height: 28px; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; }
.cap-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; border: 1px solid #1a1a1a; vertical-align: 1px; }
.tx-tgt { margin: 2px 0 0; } .tx-cap { margin: 2px 0 0; color: var(--muted); }
.spk-player video::cue { background: rgba(0, 0, 0, .75); }
.cap-edit { margin-top: 24px; } .cap-edit textarea { margin: 0; min-height: 0; }
.cap-line { margin: 4px 0 0; padding: 6px 0 6px 12px; border-left: 4px solid var(--c); box-shadow: inset 3px 0 0 #0002; }
.burn-form { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; } .burn-form select, .burn-form button { margin: 0; width: auto; }
.spk-time { position: relative; height: 34px; border-radius: 10px; background: var(--bg-2); overflow: hidden; margin: 8px 0 18px; }
.spk-time i { position: absolute; top: 7px; bottom: 7px; min-width: 2px; border-radius: 4px; background: var(--c); }
/* speaker detection result: every speaker as a painted orb card in a grid on top (all visible, up to 8), then the
   lanes and the transcript at full width */
.spk-layout { margin-top: 12px; }
.spk-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 6px; margin-bottom: 28px;
  padding: 14px; border-radius: 28px; background: var(--panel); }
.spk-p { display: flex; flex-direction: column; align-items: center; padding: 18px 8px 14px; border-radius: 20px;
  transition: background var(--dur) var(--ease); }
.spk-p:hover, .spk-p:focus-within { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.mk-orb.spk { width: 112px; height: 112px; cursor: pointer; transition: transform var(--dur-slow) var(--ease); }
.spk-p:hover .mk-orb.spk { transform: scale(1.04); }
.mk-orb.spk .paint { filter: blur(12px) saturate(1.15); }
.mk-orb.spk .play { width: 44px; height: 44px; opacity: 0; transform: scale(.7); }
.mk-orb.spk .play::before { left: 17px; top: 13px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
.mk-orb.spk.playing .play::before { left: 15px; top: 14px; width: 4px; height: 16px; box-shadow: 8px 0 0 #000; }
.mk-orb.spk:hover .play, .mk-orb.spk:focus-visible .play, .mk-orb.spk.playing .play { opacity: 1; transform: scale(1); }
.mk-orb.spk:focus:not(:focus-visible) { outline: none; }  /* ring only for keyboard users, not after a click */
.spk-rename { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin: 14px 0 0; }
.spk-p .spk-rename input[name][maxlength]:not([type=checkbox]):not([type=radio]) { width: 100%; margin: 0; padding: 3px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent;
  box-shadow: none; height: auto; text-align: center; font: 500 1.02rem/1.35 var(--font); color: var(--ink); cursor: text; }
.spk-p .spk-rename input[name][maxlength]:hover { border-color: var(--line); }
.spk-p .spk-rename input[name][maxlength]:not([type=checkbox]):not([type=radio]):focus { border-color: var(--line-2); background: var(--bg); outline: none; }
.spk-rename button { display: none; height: 28px; margin: 0; padding: 0 12px; font-size: .78rem; }
.spk-rename:focus-within button { display: inline-flex; }
.spk-meta { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.spk-p .spk-clone { margin-top: 8px; text-align: center; }
.spk-p .spk-clone summary { font-size: .78rem; color: var(--muted); list-style: none; }
.spk-p .spk-clone summary:hover { color: var(--ink); }
.spk-p .spk-clone[open] { width: 100%; text-align: left; }
.spk-p .spk-clone-btn { margin-top: 10px; padding: 6px 14px; font-size: .82rem; }
.spk-p .spk-clone-note { margin-top: 10px; font-size: .75rem; text-align: center; }
/* a form that needs room (e.g. cloning a speaker) opens over the page instead of stretching a narrow card */
.modal { border: 0; border-radius: 20px; padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.modal::backdrop { background: rgba(20, 20, 20, .35); }
.modal h3 { margin: 0 0 16px; font-size: 1.25rem; }
.modal .actions { display: flex; gap: 8px; margin-top: 16px; }
.spk-summary { margin: 4px 0 16px; color: var(--muted); } .spk-summary b { color: var(--ink); font-weight: 600; }
.spk-lanes { padding: 20px 22px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.spk-lane { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; height: 32px;
  transition: opacity var(--dur) var(--ease); }
.spk-lane-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .84rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spk-lane-name::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.spk-lane-track { position: relative; height: 10px; border-radius: 5px; background: var(--panel); }
.spk-lane-track i { position: absolute; top: 0; bottom: 0; min-width: 3px; border-radius: 5px; background: var(--c); }
.spk-lane-axis { display: flex; justify-content: space-between; margin: 8px 0 0 136px; font: .72rem var(--mono); color: var(--muted-2); }
.spk-h { margin: 36px 0 8px; font: 600 1rem var(--font); }
.tx-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 12px 0 0; transition: opacity var(--dur) var(--ease); }
.tx-row.cont { padding-top: 4px; } .tx-row.cont .tx-name { display: none; }
.tx-time { padding-top: 3px; font: .75rem/1.6 var(--mono); color: var(--muted-2); }
.tx-row.cont .tx-time { padding-top: 0; }
.tx-name { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2px; font-weight: 600; font-size: .86rem; color: var(--ink); }
.tx-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tx-row p { margin: 0; line-height: 1.65; color: var(--ink-2); }
/* review: transcript next to the original, which stays in view; lines and lanes play from where you click */
.spk-review.has-player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 32px; align-items: start; }
.spk-player { position: sticky; top: 24px; margin-top: 36px; }
.spk-player video { display: block; width: 100%; max-height: 60vh; border-radius: 16px; background: #000; }
.spk-player audio { width: 100%; }
.spk-player p { margin: 8px 2px 0; }
.has-player .tx-row[role=button] { display: grid; justify-content: normal; align-items: start; gap: 14px; margin: 0 -10px;
  padding: 12px 10px 4px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit;
  white-space: normal; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease), opacity var(--dur) var(--ease); }
.has-player .tx-row.cont[role=button] { padding-top: 4px; }
.has-player .tx-row[role=button]:hover { background: var(--panel); }
.has-player .tx-row.on[role=button] { background: color-mix(in srgb, var(--c) 12%, transparent); }
.has-player .tx-row.on .tx-time { color: var(--c); font-weight: 600; }
/* fixing speakers: handles between lines move words, a word opens a small menu, names become speaker lists */
.tx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 8px; }
.tx-head .spk-h { margin: 0; }
.tx-head button { height: 34px; padding: 0 16px; font-size: .85rem; }
.tx-help { margin: 0 0 6px; }
.tx-flag { display: inline-flex; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--t-amber-bg); color: var(--t-amber-fg);
  font-size: .72rem; font-weight: 600; vertical-align: 1px; }
.spk-merge { height: auto; margin-top: 8px; padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 999px; background: transparent;
  color: var(--ink-2); font-size: .74rem; white-space: normal; }
.spk-merge:hover { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.editing .tx-row.cont .tx-name { display: inline-flex; }
.editing .tx-name select { width: auto; height: 28px; margin: 0; padding: 0 28px 0 10px; font-size: .82rem; font-weight: 600; }
.editing .w { border-radius: 4px; cursor: pointer; box-shadow: inset 0 -2px 0 var(--c); transition: background var(--dur-fast); }
.editing .w:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
/* the start of a line: a word-high bar like a trim handle in a video editor */
.tx-cut { position: relative; display: inline-block; width: 14px; height: 1.45em; margin: 0 6px 0 -4px; vertical-align: -0.3em;
  cursor: ew-resize; touch-action: none; outline: none; }
.tx-cut::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--c);
  opacity: .55; transition: opacity var(--dur-fast), width var(--dur-fast), left var(--dur-fast); }
.tx-cut::after { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--c); opacity: 0; transition: opacity var(--dur-fast); }
.tx-cut:hover::before, .tx-cut:focus-visible::before, .tx-cut.drag::before { opacity: 1; left: 4px; width: 6px; }
.tx-cut:hover::after, .tx-cut:focus-visible::after, .tx-cut.drag::after { opacity: 1; }
.editing .spk-tx.dragging, .editing .spk-tx.dragging * { cursor: ew-resize; user-select: none; }
.tx-menu { display: inline-flex; gap: 4px; margin: 0 4px; padding: 3px; vertical-align: middle; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.tx-menu button { height: 26px; padding: 0 10px; font-size: .76rem; }
.tx-save { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px 10px 18px;
  border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tx-save[hidden] { display: none; }  /* display:flex above beat the hidden attribute: the bar showed with nothing to save */
.tx-save span { flex: 1; font-size: .88rem; }
.tx-save button { height: 34px; padding: 0 16px; font-size: .85rem; }
.tx-save [data-edit-save] { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.tx-save .secondary { background: transparent; color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 40%, transparent); }
.spk-lanes { --p: 0; }
.spk-lane-track { cursor: pointer; }
.spk-lane-track::after { content: ""; position: absolute; top: -11px; bottom: -11px; left: calc(var(--p) * 100%); width: 2px;
  margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: 0; pointer-events: none; }
.spk-lanes.playing .spk-lane-track::after { opacity: .8; }
@media (max-width: 860px) {
  .spk-rail { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 10px; }
  .mk-orb.spk { width: 92px; height: 92px; }
  .spk-review.has-player { grid-template-columns: 1fr; gap: 0; }
  .spk-player { order: -1; top: 0; z-index: 2; margin-top: 16px; padding-bottom: 8px; background: var(--bg); }
  .spk-lane { grid-template-columns: 84px minmax(0, 1fr); } .spk-lane-axis { margin-left: 100px; }
}
.spk-name { display: flex; gap: 8px; align-items: center; margin: 0; }
.spk-name input { margin: 0; flex: 1; min-width: 0; } .spk-name button { margin: 0; }
.spk-line { margin: 4px 0 0; padding: 6px 0 6px 12px; border-left: 3px solid var(--c); }
.spk-detect { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.spk-detect button { margin: 0; }
.spk { border-top: 1px solid var(--line); padding: 12px 0 10px; }
/* fixed columns, so the name boxes and voice menus line up from row to row */
.spk-main { display: grid; grid-template-columns: 14px minmax(140px, 1fr) 10.5rem minmax(200px, 1.5fr) 8.5rem; gap: 12px; align-items: center; margin: 0; }
.spk-main input, .spk-main select { margin: 0; width: 100%; }
.spk-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.spk-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spk-act { display: flex; align-items: center; gap: 8px; min-width: 0; }
.spk-act button { margin: 0; }
.spk-act .saved { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.spk-main.autosaving .spk-act button { display: none; }  /* saves on change: no button to press */
.spk-more { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 6px 0 0 26px; font-size: .85rem; }
.spk-more form { margin: 0; display: flex; gap: 6px; align-items: center; }
.spk-more select.compact, .spk-more button { height: 32px; margin: 0; padding-block: 0; font-size: .82rem; }
/* "Use their own voice…" is a plain disclosure link here, not an FAQ row: no "+", no rule, no padding */
.spk-more .spk-clone, .spk-more .spk-clone[open] { border: 0; padding: 0; }
.spk-more .spk-clone > summary { padding: 0; }
.spk-more .spk-clone > summary::after { content: none; }
.spk-clone summary { cursor: pointer; font-size: .85rem; color: var(--ink-3); text-decoration: underline dotted; text-underline-offset: 3px; }
.spk-clone summary:hover { color: var(--ink); }
.spk-clone form { display: block; margin-top: 8px; max-width: 560px; }
.spk-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 .72rem/1 var(--font);
  color: #fff; background: var(--c); }
.spk-pick { margin: 6px 0 10px; } .spk-pick select { margin: 4px 0 0; }
@media (max-width: 800px) { .spk-main { grid-template-columns: 14px 1fr; } .spk-main select, .spk-main .spk-n, .spk-act { grid-column: 2; } }

/* Live Dubbing (beta) */
.live-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.live-bar button, .live-bar form { margin: 0; } .live-bar [hidden] { display: none; }
.live-lines { min-height: 7em; border-left: 3px solid var(--line); padding-left: 12px; }
.live-lines p { margin: 0 0 8px; }

/* ---------- sign up, sign in, passwords: the form beside a panel in the brand's gradient (auth.html) ---------- */
.auth { display: grid; grid-template-columns: 1fr 1.05fr; max-width: 980px; margin: 40px auto 64px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px -18px rgba(0, 0, 0, .12); }
.auth-art { display: flex; flex-direction: column; gap: 22px; padding: 40px; color: #fff; min-height: 560px; }
.auth-art .eyebrow { color: rgba(255, 255, 255, .78); margin: 0; }
.auth-art h2 { margin: 0; color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.12; }
.auth-sub { margin: 0; color: rgba(255, 255, 255, .86); max-width: 30ch; }
.auth-points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .95rem; }
.auth-points .auth-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.auth-points .auth-ico svg { display: block; width: 17px; height: 17px; margin: 0; }
.auth-wave { margin-top: auto; width: 100%; height: 44px; fill: rgba(255, 255, 255, .5); }
.auth-form { padding: 44px 44px 36px; }
.auth-form h1 { font-size: 2.2rem; margin: 0 0 .2em; }
.auth-form > .muted { margin-bottom: 26px; }
.auth-form button.block { margin-top: 6px; padding: 14px 20px; }
.auth-check { font-size: .88rem; color: var(--ink-3); }
.auth-forgot { margin: -8px 0 16px; font-size: .85rem; text-align: right; }
.auth-alt { margin: 22px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 12px; background: none; border: 0;
  color: var(--muted); font-size: .8rem; min-height: 0; }
.pw button:hover { background: var(--panel); color: var(--ink); }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; margin: 20px auto 40px; }
  .auth-art { min-height: 0; padding: 26px 24px; gap: 14px; }
  .auth-art h2 { font-size: 1.5rem; }
  .auth-points, .auth-wave { display: none; }
  .auth-form { padding: 28px 24px; }
}

/* ---------- content pages (education, about, safety, language pairs): a hero with art, sections of icon cards,
   measured numbers, steps, people. Cards are white on the off-white page, icons in the brand colours (--c). ---------- */
.phero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 56px 0 24px; }
.phero h1 { margin: 0 0 18px; }
.phero .lead { margin: 0 0 26px; }
.phero .actions { margin: 0; }
.phero-art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 360px;
  padding: 30px; border-radius: 28px; color: #fff; overflow: hidden; }
.phero-art .eyebrow { color: rgba(255, 255, 255, .8); margin: 0 0 4px; }
.sec { padding-top: 72px; }
.sec > h2 { margin: 0 0 8px; }
.sec > .sub { color: var(--muted); max-width: 46rem; margin: 0 0 26px; }
.icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.icards.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.icards.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.icards.compact .icard { padding: 18px; } .icards.compact .ic { width: 36px; height: 36px; margin-bottom: 12px; }
.icard { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.icard .ic { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 13px;
  background: var(--c, var(--orange)); color: #fff; }
.icard .ic .ico { width: 21px; height: 21px; margin: 0; }
.icard h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; }
.icard p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.icard ul { margin: 0; padding-left: 1.1rem; color: var(--ink-3); font-size: .93rem; }
.icard li { margin-bottom: .5em; }
.icard small { display: block; margin-top: 4px; color: var(--muted); }
.lic { display: inline-block; margin-top: 14px; padding: 5px 9px; border-radius: 999px; background: var(--panel); color: var(--ink-3);
  font: 500 .7rem/1.4 var(--mono); }
.lic.nc { background: var(--t-amber-bg); color: var(--t-amber-fg); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; border: 1px solid var(--line);
  border-radius: 22px; background: var(--surface); }
.stats > div { padding: 26px; border-left: 1px solid var(--line); margin-left: -1px; }
.stats b { display: block; margin-bottom: 10px; font: 300 2.5rem/1 var(--display); letter-spacing: -.03em; }
.stats span { display: block; color: var(--muted); font-size: .88rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none;
  counter-reset: st; }
.steps li { margin: 0; padding: 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink-3);
  font-size: .93rem; counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 500 .82rem/1 var(--mono); }
.steps li b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
.steps li.key::before { background: var(--brand); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.person { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); }
.person .av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff;
  font: 500 .95rem/1 var(--display); background: linear-gradient(135deg, var(--c1), var(--c2)); }
.person b { display: block; font-weight: 500; }
.person span { color: var(--muted); font-size: .88rem; }
.person em { margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: var(--panel); color: var(--ink-3);
  font: 500 .66rem/1 var(--mono); font-style: normal; vertical-align: 2px; }
.split-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 30px 32px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); }
.split-card h2 { margin: 0 0 8px; font-size: 1.7rem; }
.split-card p { margin: 0; color: var(--ink-3); }
.split-card .actions { margin: 0; }
.fine { margin: 18px 0 0; color: var(--muted); font-size: .85rem; }
/* art pieces on the gradient: a white card listing a lecture's sentences (some flagged), chips, a 2x2 of pills */
.paper { padding: 18px 18px 16px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .45); }
.paper-head { display: flex; justify-content: space-between; margin-bottom: 12px; font: 500 .72rem/1 var(--mono); color: var(--muted); }
.pl { display: flex; align-items: center; gap: 10px; padding: 6px 0; font: 500 .7rem/1 var(--mono); color: var(--muted-2); }
.pl i { flex: 1; height: 7px; border-radius: 4px; background: var(--panel); }
.pl.flag i { background: color-mix(in srgb, var(--orange) 22%, transparent); }
.pl em { padding: 4px 8px; border-radius: 999px; background: var(--t-orange-bg); color: var(--t-orange-fg); font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink); font-size: .88rem; }
.chips span.warn { background: var(--t-orange-bg); color: var(--t-orange-fg); }
.chips .ico { width: 16px; height: 16px; margin: 0; }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quad > div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.quad b { display: block; font-weight: 500; } .quad span { font-size: .82rem; color: rgba(255, 255, 255, .85); }
.quad .ico { width: 20px; height: 20px; margin: 0 0 10px; }
@media (max-width: 900px) {
  .phero { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 8px; }
  .phero-art { min-height: 0; }
  .sec { padding-top: 52px; }
  .icards.two { grid-template-columns: 1fr; }
  .split-card { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- features: the steps of a dub light up one after another (10 s round, 2 s each) ---------- */
.flow { display: grid; gap: 4px; }
.fstep { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: var(--muted-2); font-size: .9rem; animation: fstep 10s var(--ease) infinite; animation-delay: calc(var(--i) * 2s); }
.fstep .ico { width: 18px; height: 18px; margin: 0; flex: none; }
.fstep b { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; transform: scaleX(0);
  transform-origin: left; background: linear-gradient(90deg, var(--mint), var(--iris));
  animation: fbar 10s linear infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes fstep { 0%, 19% { background: var(--bg-2); color: var(--ink); } 23%, 100% { background: transparent; color: var(--muted-2); } }
@keyframes fbar { 0% { transform: scaleX(0); opacity: 1; } 19% { transform: scaleX(1); opacity: 1; } 23%, 100% { transform: scaleX(1); opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--ink-3); font-size: .92rem; }

/* ---------- contact: sent; the admin's count of open messages ---------- */
.side-badge.count { min-width: 20px; padding: 3px 6px; border-radius: 999px; background: var(--red); color: #fff; text-align: center;
  font-size: .7rem; letter-spacing: 0; }
.msg-sent { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; padding: 12px 0; }
.msg-sent-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%; color: #fff;
  background: var(--brand); }
.msg-sent-ico svg { width: 26px; height: 26px; }
.msg-sent h1 { margin: 0 0 10px; }
.msg-sent p { color: var(--ink-3); margin: 0 0 28px; max-width: 34ch; }

/* ---------- settings: a profile card, then one row per setting (what it is | its form), the danger zone in red ---------- */
.profile { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: 22px; background: var(--surface); }
.profile .av { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  font: 500 1.3rem/1 var(--display); background: var(--brand); }
.profile b { display: block; font-size: 1.1rem; font-weight: 500; }
.profile .muted { font-size: .9rem; margin-right: 8px; }
.profile .actions { display: flex; align-items: center; gap: 14px; margin: 0 0 0 auto; }
.set-row { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 32px; margin: 0 0 14px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.set-row h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.set-row > div:first-child p { margin: 0; color: var(--muted); font-size: .9rem; }
.set-row form { max-width: 480px; margin: 0; }
.set-row.danger { border-color: var(--t-red-line); background: var(--t-red-bg); }
.set-row.danger h2 { color: var(--t-red-fg); }
.inline-field { display: flex; gap: 10px; align-items: center; }
.inline-field input { flex: 1; }
.danger-btn { background: #d93036; border-color: #d93036; color: #fff; }
.danger-btn:hover { background: #b42318; border-color: #b42318; }
@media (max-width: 760px) {
  .profile { flex-wrap: wrap; } .profile .actions { margin: 0; }
  .set-row { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
}

/* ---------- examples: one card per example (the dub and its flags first; the original and the counts beside) ---------- */
.ex-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.ex-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ex-head h2 { margin: 0; font-size: 1.5rem; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-meta span { padding: 6px 12px; border-radius: 999px; background: var(--panel); color: var(--ink-3); font-size: .82rem; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.ex-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.ex-grid h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 500; }
.ex-grid video { display: block; width: 100%; max-height: 260px; border-radius: 12px; background: #000; }
.flagsum { display: grid; gap: 10px; margin-bottom: 8px; }
.flagsum > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-3); }
.flagsum b { font: 300 1.6rem/1 var(--display); color: var(--ink); }
@media (max-width: 760px) { .ex-grid { grid-template-columns: 1fr; } .ex-card { padding: 18px; } }

.demo-pair { margin-top: 18px; }
.demo-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-videos figure { margin: 0; }
.demo-videos video { width: 100%; border-radius: 14px; background: #000; }
.demo-videos figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
@media (max-width: 760px) { .demo-videos { grid-template-columns: 1fr; } }
.demo-pair .row-head label { display: flex; align-items: center; gap: 8px; margin: 0; }
.demo-pair select { width: auto; margin: 0; padding: 6px 34px 6px 12px; font-size: .9rem; }

/* ---------- Vesper look: theme switch, glass navigation, serif accent, hero orb, border beam, thinking orbs ---------- */
/* the theme switch: one round button, System -> Light -> Dark; the icon of the current choice shows (app.js sets data-mode) */
.theme-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; color: var(--ink-3); border: 1px solid var(--line); }
.theme-btn:hover { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.theme-btn svg { width: 17px; height: 17px; display: none; flex: none; }
.site-head .theme-btn { padding: 0; }  /* .site-head button pads buttons for text: here it squeezed the icon to 2 px */
.theme-btn[data-mode="system"] .t-system, .theme-btn[data-mode="light"] .t-light, .theme-btn[data-mode="dark"] .t-dark { display: block; }
.side .theme-btn { width: 100%; height: auto; justify-content: flex-start; gap: 10px; padding: 5px 10px; border: 1px solid transparent; border-radius: 10px;
  font: 400 .9rem/1.35 var(--font); color: var(--ink-3); }
.side .theme-btn:hover { background: var(--panel); border-color: transparent; }
.side .theme-btn svg { width: 18px; height: 18px; }
/* glass pill navigation (getlayers): the public header's links sit in one translucent pill */
.site-head { border-bottom-color: transparent; }
.site-head .nav-links { gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.site-head .nav-links a { display: block; padding: 7px 14px; border-radius: 999px; transition: background var(--dur-fast), color var(--dur-fast); }
.site-head .nav-links a:hover { color: var(--ink); background: var(--panel); }
@media (max-width: 900px) { .site-head .nav-links { border-radius: 16px; } }
/* one word of a headline in an italic serif (Relay's "themselves.") */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 .serif, h2 .serif { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h1 { letter-spacing: -0.035em; }
/* home hero: text on the left, the living orb on the right, a faint dot grid behind both */
.hero.orbit { position: relative; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 8px 48px; padding: 24px 0 40px; }
.hero.orbit > .hero-text { grid-column: 1; grid-row: 1; }  /* beats the older ".hero > :not(h1):not(.lead)" */
.hero-text h1 { margin: 0; }
.hero.orbit .lead { margin: 22px 0 0; }
.hero.orbit .actions { margin: 28px 0 0; }
.hero.orbit::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--pad)) 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%); }
.hero.orbit > .hero-orb { grid-column: 2; grid-row: 1; }
.hero-orb { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.hero-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-orb::after { content: ""; position: absolute; inset: 18%; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: radial-gradient(circle at 35% 35%, var(--glow-a), transparent 60%), radial-gradient(circle at 70% 70%, var(--glow-b), transparent 60%); }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px 6px 8px; border: 1px solid var(--line);
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); font: 500 .74rem/1 var(--mono); color: var(--muted);
  letter-spacing: .02em; margin-bottom: 18px; }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
@media (max-width: 860px) { .hero.orbit { grid-template-columns: 1fr; } .hero.orbit > .hero-orb { grid-column: 1; max-width: 340px; }
  .hero.orbit > .hero-text { grid-row: 2; } }
/* border beam (libraries.dev): a short mint-to-violet light runs round the edge of a few key panels */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beam, .plan.featured .plan-top, .mock, .drop, .auth { position: relative; }
.beam::after, .plan.featured .plan-top::after, .mock::after, .drop::after, .auth::after { content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 68%, var(--mint) 80%, var(--iris) 90%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 6s linear infinite; }
.drop::after { opacity: 0; transition: opacity var(--dur); } .drop:hover::after, .drop.over::after { opacity: 1; }
@keyframes beam { to { --beam: 360deg; } }
/* thinking orb (libraries.dev): a small dotted sphere that turns while DUBBE works - the job's current step, spinners */
.spinner, .stages .now::before { content: ""; display: inline-block; flex: none; width: 18px; height: 18px; margin-right: 10px; vertical-align: -4px;
  border: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--mint) 0 .7px, transparent 1.1px) 0 0 / 3px 3px,
    radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--mint) 45%, transparent), color-mix(in srgb, var(--iris) 60%, transparent) 72%);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 71%); mask: radial-gradient(circle, #000 60%, transparent 71%);
  animation: torb 1.8s linear infinite; }
.spinner { width: 28px; height: 28px; margin: 0; }
@keyframes torb { 0% { transform: rotate(0) scale(.92); background-position: 0 0, 0 0; } 50% { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(.92); background-position: 6px 3px, 0 0; } }
.stages .now { color: var(--ink); }
/* accent on the controls that were black */
.switch input:checked + .knob { background: var(--accent); }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: var(--accent); }
:root[data-theme="dark"] .cards > article:hover, :root[data-theme="dark"] .slide:hover { box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: reduce) { .spinner, .stages .now::before, .beam::after, .plan.featured .plan-top::after, .mock::after,
  .drop::after, .auth::after { animation: none !important; } }

/* =================== the redesign, part 2: page structure and motion after the references =================== */
/* sections: no ruled bands any more - space, a mono eyebrow with a lit dot, big light headings */
.band { border-top: 0; padding: 120px var(--pad); }
.band > h2:first-child, .band > .eyebrow + h2, .sec > h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; max-width: 22ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.cta .eyebrow::before, .auth-art .eyebrow::before, .phero-art .eyebrow::before, .ba-side .eyebrow::before, .calc .eyebrow::before, .site-foot .eyebrow::before { display: none; }
main.container { box-shadow: none !important; }
/* the header turns to glass once the page moves (app.js adds .scrolled) */
.site-head { transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur); }
.site-head:not(.scrolled) { background: transparent; backdrop-filter: none; }
.site-head.scrolled { border-bottom-color: var(--line); }
/* glass cards: one look for every card, with a light that follows the pointer (app.js sets --mx/--my) */
.icard, .tile, .use, .card, .qa, .mk-card, .stats, .steps li, .person, .split-card, .ex-card, .kpi, .profile, .set-row, .studio-row {
  border-color: var(--line);
  background-image: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--mint) 10%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 3%, transparent), transparent 40%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent); }
.tile, .icard, .use { transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur) var(--ease); }
.tile:hover, .icard:hover, .use:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile-art { background: color-mix(in srgb, var(--bg) 70%, transparent); border-color: var(--line); }
/* buttons: a soft glow under the main pill, and a round arrow that slides in (New Era's "Get started ->") */
button, [role=button] { transition: background .15s, border-color .15s, color .15s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.go { padding-right: 8px !important; }
.go::after { content: "→"; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--on-ink) 14%, transparent); transition: transform .35s var(--ease); }
.go:hover::after { transform: translateX(3px); }
:root[data-theme="dark"] .go, :root:not([data-theme="light"]) .go { box-shadow: 0 10px 40px -12px var(--glow-a); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .go { box-shadow: 0 10px 30px -14px var(--glow-b); } }
/* headlines rise word by word from behind a mask (annnimate's text reveals; app.js splits the words) */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w-in { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 42ms); }
.split-in .w-in { transform: none; }
/* intro: a thin ring counts the page in, then folds away into the logo (Relay) */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); pointer-events: none;
  transition: background .7s var(--ease) .15s, opacity .5s ease .55s; }
.intro svg { width: 120px; height: 120px; transform: rotate(-90deg); transition: transform .8s var(--ease); }
.intro circle { fill: none; stroke-width: 1.5; }
.intro .track-c { stroke: var(--line-2); }
.intro .fill-c { stroke: url(#introG); stroke-linecap: round; }
.intro b { position: absolute; font: 500 .8rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; transition: opacity .3s; }
.intro.out { background: transparent; opacity: 0; }
.intro.out svg { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(-90deg) scale(.17); }
.intro.out b { opacity: 0; }
.intro-on [data-reveal].in { opacity: 0; filter: blur(10px); transform: translateY(var(--rise)); }
/* the story: the orb stays while three steps scroll past and it reshapes - a voice (sphere), its words in another
   language (ring), the new voice (wave) - after New Era's swarm that reshapes as you scroll */
.story { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.story-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; grid-column: 2; grid-row: 1 / span 3; }
.story-stage .hero-orb { max-width: 560px; }
.story-step { grid-column: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .25;
  transition: opacity var(--dur-slow) var(--ease); }
.story-step.on { opacity: 1; }
.story-step .num { font-size: .8rem; color: var(--accent); }
.story-step h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.035em; margin: 10px 0 14px; }
.story-step p { color: var(--ink-3); font-size: 1.1rem; }
.story-step .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.story-step .chip-row span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 500 .78rem/1 var(--mono); color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-stage { grid-column: 1; grid-row: 1; height: 60vh; top: 64px; z-index: -1; opacity: .55; }
  .story-step { min-height: 80vh; } }
/* orbs as the light behind the glowing panels (app.js adds the canvas) */
.orb-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .75; }
.phero-art, .cta, .auth-art, .ba-side.after { position: relative; overflow: hidden; isolation: isolate; }
.phero-art > *:not(.orb-bg), .cta > *:not(.orb-bg), .auth-art > *:not(.orb-bg) { position: relative; z-index: 1; }
.cta { margin: 96px calc(-1 * var(--pad)) 0; padding: 140px var(--pad); }  /* no negative bottom margin: it pulled the footer under the panel */
.cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; }
/* the pipeline as a live flow in a glass window that tilts toward the pointer (Relay's hero) */
.flow-win { position: relative; margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55), inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.flow-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 .75rem/1 var(--mono); color: var(--muted); }
.flow-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.flow-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blinkdot 1.4s ease-in-out infinite; }
@keyframes blinkdot { 50% { opacity: .3; } }
.flow-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 56px; padding: 26px 28px 30px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1.4px) 0 0 / 20px 20px; }
.flow-col { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; }
.flow-col li { margin: 0; }
.flow-col .eyebrow { margin-bottom: 4px; }
.flow-node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: .9rem; color: var(--ink-3); transition: border-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.flow-node .num { margin: 0; color: var(--muted-2); font-size: .7rem; }
.flow-node i { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .3s, box-shadow .3s; }
.flow-node.on { border-color: color-mix(in srgb, var(--mint) 60%, transparent); color: var(--ink); transform: translateX(3px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 14%, transparent), 0 10px 30px -12px var(--glow-a); }
.flow-node.on i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.flow-node.done i { background: var(--iris); }
.flow-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.flow-links path { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.flow-links path.lit { stroke: url(#flowG); stroke-width: 2; stroke-dasharray: 10 400; animation: flowrun 1.1s linear infinite; }
@keyframes flowrun { from { stroke-dashoffset: 410; } to { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .flow-grid { grid-template-columns: 1fr; gap: 12px; } .flow-links { display: none; } }
/* sentence cards on a curved wall (annnimate's hero wall): app.js turns each card by its distance from the centre */
.track.curve { perspective: 1300px; padding-block: 30px; }
.track.curve .slide { transform: rotateY(var(--turn, 0deg)) translateZ(var(--depth, 0px)) scale(var(--sc, 1)); transition: transform .25s ease-out, opacity .25s; opacity: var(--op, 1); }
/* pricing: drag the minutes you need, the plan that fits lights up (Relay's pricing meter) */
.meter-in { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; padding: 22px 26px; margin: 0 0 26px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.meter-in output { font: 300 2.6rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.meter-in output small { font: 400 .9rem var(--font); color: var(--muted); }
.meter-in input { margin: 0; grid-row: span 2; }
.meter-in p { margin: 0; color: var(--muted); font-size: .9rem; }
.plan { transition: opacity var(--dur) var(--ease); }
.plans.metered .plan:not(.fit) { opacity: .45; }
.plan.fit .plan-top { box-shadow: 0 0 0 1.5px var(--mint), 0 20px 50px -20px var(--glow-a); }
/* footer: the name, very large, in the light (getlayers) */
.foot-word { margin: 56px 0 -0.18em; font: 300 clamp(5rem, 21vw, 17rem)/.82 var(--display); letter-spacing: -0.07em; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 16%, transparent), transparent 85%); -webkit-background-clip: text;
  background-clip: text; color: transparent; user-select: none; }
.site-foot { overflow: hidden; }
/* marquee of model names: mono and quieter, like a credits line */
.marquee-row span { font: 400 .95rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-right: 64px; }
.built { padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { .w-in { transform: none; transition: none; } .story-step { opacity: 1; } .flow-win { transform: none; } .intro { display: none; } }

/* =================== part 3: more from the references =================== */
/* page transitions (libraries.dev's distortion waves, annnimate's morphs): the old page blurs back, the new one is
   uncovered by a soft wave from the bottom. Cross-document view transitions (Chrome, Edge, Safari 18); the voice orb
   that travels from its card to its page (view-transition-name) still runs on top. */
::view-transition-old(root) { animation: vt-out .5s cubic-bezier(.22, 1, .36, 1) both; }
::view-transition-new(root) { animation: vt-in .7s cubic-bezier(.22, 1, .36, 1) both;
  -webkit-mask-image: linear-gradient(0deg, #000 40%, rgba(0, 0, 0, .4) 55%, transparent 70%); mask-image: linear-gradient(0deg, #000 40%, rgba(0, 0, 0, .4) 55%, transparent 70%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; }
@keyframes vt-out { to { opacity: 0; filter: blur(8px); transform: scale(.985); } }
@keyframes vt-in { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
/* liquid metal (libraries.dev's Metal): a cool sheen keeps running across the main buttons */
.go { background-image: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--mint) 38%, transparent) 45%,
    color-mix(in srgb, #fff 55%, transparent) 50%, color-mix(in srgb, var(--iris) 35%, transparent) 56%, transparent 70%);
  background-size: 260% 100%; background-repeat: no-repeat; animation: metal 4.2s cubic-bezier(.4, 0, .2, 1) infinite; }
.go:hover { animation-duration: 1.6s; }
@keyframes metal { 0%, 35% { background-position: 130% 0; } 75%, 100% { background-position: -30% 0; } }
/* a ring of light round the orb that is playing, bent by the sound (libraries.dev's voice ring; app.js draws it) */
.ring-fx { position: fixed; pointer-events: none; z-index: 15; }  /* placed over the playing orb by app.js each frame */
/* before / after as a mask slider (annnimate): drag the edge between the two panels */
.ba.compare { display: grid; grid-template-columns: 1fr; position: relative; border-radius: 28px; overflow: hidden; touch-action: pan-y; }
.ba.compare .ba-side { grid-area: 1 / 1; border-radius: 0; min-height: 360px; }
.ba.compare .ba-side.after { clip-path: inset(0 0 0 var(--cut, 50%)); }
/* the words sit apart (before on the left, after on the right); the two timelines line up, so the cut compares them */
.ba.compare .ba-side > :not(.ba-tl) { max-width: 44%; }
.ba.compare .ba-side.after > :not(.ba-tl) { align-self: flex-end; text-align: right; }
.ba.compare .ba-tl { height: 54px; }
/* the same rows in both panels, so the two timelines sit exactly on top of each other */
.ba.compare .ba-side { justify-content: flex-start; }
.ba.compare .ba-side h3 { min-height: 2.35em; }
.ba.compare .ba-side > p { margin-top: auto; max-width: 34%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--mint), var(--iris), transparent); }
.ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-size: 1rem; }
.ba-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-handle::after { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {  /* phones: the two panels one above the other, no slider */
  .ba.compare .ba-side { grid-area: auto; } .ba.compare .ba-side.after { clip-path: none; } .ba.compare .ba-side > :not(.ba-tl) { max-width: none; }
  .ba.compare .ba-side.after > :not(.ba-tl) { align-self: auto; text-align: left; } .ba-range, .ba-handle { display: none; } }
/* languages on a wheel (annnimate's circular slider): drag or use the arrows; it snaps with a little overshoot */
.dial-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 56px; align-items: center; }
.dial-band > * { min-width: 0; }
.dial { overflow: clip; }  /* the rotated ring's square corners would widen the page on phones */
.dial { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; touch-action: none; cursor: grab; user-select: none; }
.dial.drag { cursor: grabbing; }
.dial-ring { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--rot, 0deg)); transition: transform .9s cubic-bezier(.34, 1.56, .64, 1); }
.dial.drag .dial-ring { transition: none; }
.dial-ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed var(--line-2); }
.dial-item { position: absolute; left: 50%; top: 50%; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font: 500 .8rem/1 var(--mono); color: var(--muted); white-space: nowrap; list-style: none;
  /* along the radius, reading outward (24 names do not fit side by side round the circle); the left half is turned
     round so nothing reads upside down (app.js sets .flip) */
  transform: translate(-50%, -50%) rotate(calc(var(--a) - 90deg)) translateX(var(--r, 220px)) rotate(var(--flip, 0deg));
  transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), color .3s, border-color .3s, box-shadow .3s; }
.dial.drag .dial-item { transition: color .3s, border-color .3s; }
.dial-item.flip { --flip: 180deg; }
.dial-item.on { color: var(--ink); border-color: color-mix(in srgb, var(--mint) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 16%, transparent), 0 0 30px -6px var(--glow-a); }
.dial-core { position: absolute; inset: 28%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--mint) 18%, transparent), color-mix(in srgb, var(--iris) 14%, transparent) 70%), var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 80px -30px var(--glow-b); }
.dial-core b { font: 300 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--display); letter-spacing: -0.03em; }
.dial-core span { font: 500 .72rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dial-nav { display: flex; gap: 8px; margin-top: 18px; }
@media (max-width: 860px) { .dial-band { grid-template-columns: 1fr; } .dial { max-width: 380px; } }
/* example frames come in like a generated image: a dotted shimmer, then blurred, then sharp (libraries.dev's image loader) */
.slide img, .ex-grid video { transition: filter 1s var(--ease), transform 1s var(--ease), opacity .6s; }
.slide img:not(.loaded) { filter: blur(16px) saturate(.3); transform: scale(1.06); opacity: .6;
  background: radial-gradient(circle, color-mix(in srgb, var(--mint) 45%, transparent) 1px, transparent 1.5px) 0 0 / 10px 10px, #0b0d14;
  animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: 20px 10px, 0 0; } }
/* gooey loader (libraries.dev's Gooey): two blobs that merge while a tool works - blur plus contrast makes them flow */
.spinner { position: relative; width: 48px !important; height: 44px !important; margin: 0 !important; border-radius: 0 !important; -webkit-mask: none !important;
  mask: none !important; animation: none !important; background: none !important; filter: url(#goo); }  /* the filter: app.js adds it once */
.spinner::before, .spinner::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--mint); animation: goo 1.8s ease-in-out infinite; }
.spinner::after { background: var(--iris); animation-delay: -.9s; }
@keyframes goo { 0%, 100% { transform: translate(-11px, 0) scale(1); } 50% { transform: translate(11px, 0) scale(.75); } }
/* reading progress: a thin line in the light along the top of the window */
.read-line { position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--mint), var(--iris)); box-shadow: 0 0 12px var(--glow-a); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .go { animation: none; } .slide img:not(.loaded) { animation: none; filter: none; transform: none; opacity: 1; }
  .dial-ring, .dial-item { transition: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* hero: the example dub playing in a glass window (after Relay's product hero). Calmer than the orb: one picture, real data */
.hero.orbit > .hero-dub { grid-column: 2; grid-row: 1; }
.hero-dub { position: relative; width: 100%; min-width: 0; max-width: 540px; justify-self: center; border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--iris) 45%, transparent), 0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-dub::after { content: ""; position: absolute; inset: 10% 6% -8%; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5;
  background: radial-gradient(circle at 30% 40%, var(--glow-a), transparent 60%), radial-gradient(circle at 75% 65%, var(--glow-b), transparent 60%); }
.hd-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: 500 .72rem/1 var(--mono); color: var(--muted); }
.hd-bar .lights { flex: none; }
.hd-bar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink-2); }
.hd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: hd-pulse 1.6s ease-in-out infinite; }
@keyframes hd-pulse { 50% { opacity: .3; } }
.hd-screen { position: relative; margin: 12px 12px 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0d12; }
.hd-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 3.4s ease-out; }
.hd-frame.out { opacity: 0; } .hd-frame.on { transform: scale(1.06); }
.hd-chip { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; font: 600 .68rem/1 var(--mono);
  background: var(--t-amber-bg); color: var(--t-amber-fg); opacity: 0; transform: translateY(-6px); transition: .35s ease; }
.hd-chip.show { opacity: 1; transform: none; }
.hd-sub { padding: 12px 16px 0; height: 6.4rem; overflow: hidden; }
.hd-sub p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hd-sub .hd-src { -webkit-line-clamp: 1; }
.hd-sub p { margin: 0; min-height: 1.3em; }
.hd-src { font-size: .8rem; color: var(--muted); }
.hd-tgt { font-size: .92rem; line-height: 1.4; font-weight: 500; color: var(--ink); margin-top: 4px !important; }
.hd-tgt .sc { color: var(--mint); }
.hd-waves { display: grid; gap: 6px; padding: 12px 14px 4px; }
.hd-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.hd-wave i { flex: 1; height: 100%; border-radius: 2px; background: var(--line-2); transform: scaleY(.15); transform-origin: center; }
.hd-wave.dub i { background: var(--brand); background-size: 4000% 100%; background-position: calc(var(--i) * 2.5%) 0; }
.hero-dub.is-on .hd-wave i { animation: hd-bar .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -71ms); }
.hero-dub.is-on .hd-wave.dub i { animation-delay: calc(var(--i) * -53ms - .3s); }
@keyframes hd-bar { 0% { transform: scaleY(.15); } 40% { transform: scaleY(.85); } 100% { transform: scaleY(.35); } }
.hd-tl { position: relative; display: flex; gap: 3px; margin: 8px 14px 14px; height: 8px; }
.hd-tl i { flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--mint) 55%, transparent); transition: transform .3s; }
.hd-tl i:not(.ok) { background: var(--amber); }
.hd-tl i.now { transform: scaleY(1.7); }
.hd-head { position: absolute; top: -4px; bottom: -4px; width: 2px; left: 0; border-radius: 2px; background: var(--ink); transition: left .5s ease; }
@media (max-width: 860px) { .hero.orbit > .hero-dub { grid-column: 1; grid-row: 2; max-width: 460px; margin-top: 28px; }
  .hero.orbit:has(.hero-dub) > .hero-text { grid-row: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-dub, .hd-frame, .hd-head { transition: none; } .hero-dub.is-on .hd-wave i { animation: none; } }

/* home hero (after annnimate's: the headline over a curved wall of work; our own build). The wall is the inside of a
   sphere with the viewer at its centre: each tile is turned to its longitude (--a) and latitude (--p), then pushed out
   by the radius, which equals the perspective, so the middle tile is at its true size and the edges bend round. */
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --rise { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
/* the full-bleed wall: 100vw counts a desktop scrollbar, 100cqw (the body's width, body being a size container) does not */
body { overflow-x: clip; container-type: inline-size; }
.hero.wallhero { display: block; position: relative; isolation: isolate; text-align: center; margin-top: -56px;
  padding: 104px 0 0; min-height: 900px; }
.hero.wallhero > .hero-text { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.wallhero .hero-tag { margin-inline: auto; }
.wallhero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 400; }
.wallhero .lead { margin: 22px auto 0; max-width: 42rem; }
.wallhero .actions { margin: 30px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.made-for { margin: 30px 0 0; font: 500 .74rem/1.6 var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.made-for span { color: var(--ink-3); margin-right: 8px; }
.made-for a { color: var(--ink-2); }
.wall { position: absolute; z-index: -1; top: 0; bottom: -60px; left: 50%; width: 100vw; width: 100cqw; transform: translateX(-50%); overflow: hidden;
  perspective: 1150px; perspective-origin: 50% var(--wy, 640px);  /* px, not %: short laptop screens; --wy: below the text (app.js) */ --lift: 0deg;
  animation: wall-sway 11s ease-in-out infinite alternate, wall-in 1.8s cubic-bezier(.16,1,.3,1) both; }
@keyframes wall-sway { from { --spin: -7deg; } to { --spin: 7deg; } }
@keyframes wall-in { from { --rise: 14deg; opacity: 0; } to { --rise: 0deg; opacity: 1; } }
/* the headline stays readable: the wall fades into the page at the top, behind the text, and at the bottom */
.wall::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(48% 36% at 50% 28%, var(--bg) 35%, transparent 100%),
              linear-gradient(var(--bg) 2%, color-mix(in srgb, var(--bg) 78%, transparent) 30%, transparent 50%, transparent 80%, var(--bg) 99%); }
/* --mx/--my: the lean toward the pointer (app.js); --pop: how far a tile comes forward under the pointer */
@property --pop { syntax: "<length>"; inherits: false; initial-value: 0px; }
.wtile { position: absolute; left: 50%; top: var(--wy, 640px); width: 300px; margin: -98px 0 0 -150px; display: block; color: inherit; text-decoration: none;
  transform: translateZ(1150px) rotateY(calc(var(--a) + var(--spin) + var(--mx, 0deg))) rotateX(calc(var(--p) + var(--rise) + var(--lift) + var(--my, 0deg)))
             translateZ(calc(var(--pop) - 1150px));
  transition: --pop .9s cubic-bezier(.2,.8,.2,1), filter .7s; }
.wtile.far { filter: blur(2.5px) brightness(.6); }
.wtile:hover { --pop: 40px; filter: none; z-index: 2; }
.wtile .cap { display: block; font: 500 .8rem/1 var(--font); color: var(--muted); margin: 0 0 9px 2px; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.wtile:hover .cap { color: var(--ink); }
.thumb { position: relative; display: block; height: 169px; border-radius: 10px; overflow: hidden; background: #111; color: #fff;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); transition: box-shadow .5s; }
.wtile:hover .thumb { box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--mint) 60%, transparent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.wtile:hover .thumb img { transform: scale(1.035); }
/* under the pointer: the picture darkens a little and a play pill rises in */
.thumb .wplay { position: absolute; left: 50%; top: 50%; padding: 8px 14px 8px 30px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0b0d12;
  font: 600 .74rem/1 var(--font); white-space: nowrap; opacity: 0; transform: translate(-50%, -30%); transition: opacity .35s, transform .35s; }
.thumb .wplay::before { content: ""; position: absolute; left: 13px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .35s; }
.wtile:hover .thumb::after { opacity: 1; }
.wtile:hover .wplay { opacity: 1; transform: translate(-50%, -50%); z-index: 1; }
/* our example: its real English line under the frame */
.thumb .sub { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.72);
  font-size: .62rem; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* the dub window now has its own band under the marquee */
.dub-band { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px 64px; margin: 56px 0 24px; }
.dub-copy h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3rem); }
.dub-copy .lead { margin: 18px 0 0; }
.dub-copy > p:last-child { margin: 28px 0 0; }
.dub-stats { display: flex; gap: 0; margin: 28px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 70%, transparent); }
.dub-stats div { flex: 1; padding: 14px 16px; }
.dub-stats div + div { border-left: 1px solid var(--line); }
.dub-stats dt { font: 400 1.9rem/1 var(--display); letter-spacing: -.02em; }
.dub-stats div:nth-child(2) dt { color: var(--amber); }
.dub-stats dd { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.dub-band .hero-dub { justify-self: end; }
@media (max-width: 860px) { .dub-band { grid-template-columns: 1fr; } .dub-band .hero-dub { justify-self: center; } }
/* phones: the whole wall drawn at 60% (zoom scales tiles and spacing together; the width is divided back to 100vw) */
@media (max-width: 860px) { .hero.wallhero { padding-top: 84px; min-height: 960px; }
  .wall { zoom: .6; width: calc(100vw / .6); width: calc(100cqw / .6); perspective-origin: 50% 78%; } .wtile { top: 78%; }
  .wtile.far { filter: blur(3px) brightness(.45); opacity: .55; } }  /* they sit right behind the text here */
/* small phones: the header wraps to two rows (about 150px), too much to keep pinned over a 570-840px screen */
@media (max-width: 600px) { .site-head { position: relative; } }
@media (prefers-reduced-motion: reduce) { .wall { animation: none; } .wtile, .thumb img { transition: none; } }
/* the smallest phones (320-380px): logo and the two buttons on one row (the theme follows the system there), the
   hero tag on one line */
@media (max-width: 380px) {
  .site-head nav { gap: 10px 12px; }
  .site-head .brand { font-size: 1.05rem; }
  .site-head .nav-actions .theme-btn { display: none; }
  .site-head .nav-actions [role=button] { padding: 8px 12px; font-size: .82rem; }
  .hero-tag { font-size: .62rem; letter-spacing: 0; }
}
/* the language switch in the header: a small round code (EN / RU / UZ) like the theme button, the names in a menu */
.lang-pick > summary { list-style: none; cursor: pointer; padding: 0; width: 36px; height: 36px; display: grid; place-items: center;
  font: 600 .7rem/1 var(--mono); letter-spacing: .04em; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > ul { min-width: 150px; }
.lang-pick a[aria-current] { font-weight: 600; color: var(--ink); }
.lang-pick a[aria-current]::after { content: "✓"; float: right; color: var(--mint); }
/* a site-wide note (paused: dubbing not switched on yet): its own bar between the header and the page */
.site-note { position: relative; z-index: 2; margin: 0; padding: 9px var(--pad, 16px); text-align: center; font-size: .86rem; line-height: 1.4;
  background: var(--t-amber-bg); color: var(--t-amber-fg); border-bottom: 1px solid var(--line); }
