
@font-face { font-family: "Outfit Variable"; src: url("/assets/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans Variable"; src: url("/assets/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono Variable"; src: url("/assets/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --color-surface: #faf8f4; --color-surface-raised: #ffffff; --color-surface-strong: #f4efe6; --color-line: #e7e3dc; --color-line-strong: #cfc8bc; --color-control: #b9b2a6; --color-text: #15162f; --color-text-muted: #5e5d6b; --color-orange: #f2a93b; --color-on-orange: #15162f; --color-orange-soft: #fcebcb; --color-orange-text: #8a5612; --color-success: #1f7a6d; --color-danger: #c2342f; --edge: var(--color-text-muted); --edge-firm: var(--color-text-muted); color-scheme: light;
  --font-display: "Outfit Variable", "Outfit", system-ui, sans-serif; --font-sans: "Instrument Sans Variable", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; --text-display-xl: 4rem; --text-display-xl--line-height: 4rem; --text-display-xl--font-weight: 700; --text-display-xl--letter-spacing: -0.01em; --text-display: 2.5rem; --text-display--line-height: 2.75rem; --text-display--font-weight: 700; --text-display--letter-spacing: -0.01em; --text-title: 1.375rem; --text-title--line-height: 1.75rem; --text-title--font-weight: 600; --text-body: 1rem; --text-body--line-height: 1.5rem; --text-body--font-weight: 400; --text-small: 0.8125rem; --text-small--line-height: 1.125rem; --text-small--font-weight: 400; --text-label: 0.6875rem; --text-label--line-height: 1rem; --text-label--font-weight: 600; --text-label--letter-spacing: 0.06em; --text-code: 0.8125rem; --text-code--line-height: 1.125rem; --text-code--font-weight: 500; --radius-sm: 4px; --radius-md: 10px; --radius-pill: 999px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px;
  --danger-tint: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
  --tile-1: #f4efe6; --tile-2: #fcebcb; --tile-3: #e7e3dc; --tile-ink: #15162f;
  --kit-ink: #15162f; --kit-cream: #f4efe6;
  --voice-1: #4fa8e8; --voice-2: #f08a6e; --voice-3: #e9e4f7; --voice-4: #b4cc5f;
}
@media (prefers-color-scheme: dark) { :root { --color-surface: #0e0d0c; --color-surface-raised: #1a1816; --color-surface-strong: #24211e; --color-line: #2e2a26; --color-line-strong: #3d3832; --color-control: #4a443d; --color-text: #f4efe6; --color-text-muted: #a39a8e; --color-orange: #f2a93b; --color-on-orange: #15162f; --color-orange-soft: #3a2a12; --color-orange-text: #f2a93b; --color-success: #5fc4b4; --color-danger: #e5484d; --edge: var(--color-line-strong); --edge-firm: var(--color-control); color-scheme: dark; } :root .brand .logo-light { display: none; } :root .brand .logo-dark { display: block; } }
:root[data-theme="dark"] { --color-surface: #0e0d0c; --color-surface-raised: #1a1816; --color-surface-strong: #24211e; --color-line: #2e2a26; --color-line-strong: #3d3832; --color-control: #4a443d; --color-text: #f4efe6; --color-text-muted: #a39a8e; --color-orange: #f2a93b; --color-on-orange: #15162f; --color-orange-soft: #3a2a12; --color-orange-text: #f2a93b; --color-success: #5fc4b4; --color-danger: #e5484d; --edge: var(--color-line-strong); --edge-firm: var(--color-control); color-scheme: dark; } :root[data-theme="dark"] .brand .logo-light { display: none; } :root[data-theme="dark"] .brand .logo-dark { display: block; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-surface); color: var(--color-text); font-family: var(--font-sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-orange-text); }
:focus-visible { outline: 2px solid var(--color-orange-text); outline-offset: 2px; border-radius: 5px; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }

.shell { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--color-line); }
.bar.back { justify-content: flex-start; gap: 8px; padding: 8px 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand:hover { color: var(--color-text); }
.brand svg { display: block; flex: 0 0 auto; }
.brand span { color: var(--color-text-muted); font-weight: 500; font-size: 15px; }
.brand .logo-dark { display: none; }
.bar-link { height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--color-orange-text); white-space: nowrap; }
.back-link { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.crumb { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); }

main { flex: 1 1 auto; margin: 0; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
main.roomy { padding-top: 26px; }
main.loose { gap: 18px; }
h1 { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
h1.hero { font-size: 36px; }
h1.step { font-size: 30px; }
h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 600; }
.accent-link { color: var(--color-orange-text); font-weight: 600; }
.push { margin-top: auto; }

.chips { display: flex; gap: 8px; overflow-x: auto; }
.chip { height: 44px; padding: 0 16px; display: flex; align-items: center; flex: 0 0 auto; border-radius: 999px; border: 1px solid var(--edge); color: var(--color-text-muted); font-weight: 500; }
.chip[aria-current="true"] { border-color: var(--color-orange-text); background: var(--color-orange-soft); color: var(--color-orange-text); font-weight: 600; }

.card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--color-surface-raised); border: 1px solid var(--color-line); }
a.card:hover { color: var(--color-text); border-color: var(--color-line-strong); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-size: 21px; font-weight: 600; }
.fee { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--color-orange-text); white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }

.note { padding: 14px 16px; border-radius: 14px; background: var(--color-surface-raised); font-size: 13.5px; color: var(--color-text-muted); }
.note.advert { background: var(--color-orange-soft); color: var(--color-text); }
.note.problem { background: var(--danger-tint); border: 1px solid var(--color-danger); color: var(--color-text); font-size: 15px; }
.note.local { border: 1px dashed var(--edge-firm); background: transparent; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 12px 14px; border-radius: 14px; background: var(--color-surface-raised); }
.tile-label { font-size: 12.5px; color: var(--color-text-muted); }
.tile-value { font-weight: 600; }
.tile-value.fee { font-size: 18px; }

.panel { padding: 16px; border-radius: 16px; background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.panel h2 { margin-bottom: 10px; }
.spoken { display: flex; gap: 12px; padding: 7px 0; }
.spoken-bar { flex: 0 0 3px; border-radius: 2px; background: var(--voice-1); }
.spoken-bar.v2 { background: var(--voice-2); } .spoken-bar.v3 { background: var(--voice-3); } .spoken-bar.v4 { background: var(--voice-4); }
.spoken-who { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.spoken-text { font-size: 16.5px; }

ul.points { margin: 0; padding-left: 20px; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 6px; }
ul.points.wide { gap: 8px; }

.cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: 14px; background: var(--color-orange); color: var(--color-on-orange); font: inherit; font-weight: 600; font-size: 18px; cursor: pointer; }
a.cta:hover { color: var(--color-on-orange); }
.cta:disabled, .cta.off { background: var(--color-surface-strong); color: var(--color-text-muted); cursor: default; }
.fine { text-align: center; font-size: 13.5px; color: var(--color-text-muted); }
form.plain { margin: 0; display: contents; }
.quiet { min-height: 44px; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }
.quiet:hover { color: var(--color-orange-text); }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field input { height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--edge-firm); background: var(--color-surface-raised); color: var(--color-text); font: inherit; font-size: 16px; font-weight: 400; }
.field input::placeholder { color: var(--color-text-muted); }
.agree { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.agree input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--color-orange); }
.legal { padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--edge-firm); font-size: 13.5px; color: var(--color-text-muted); max-height: 150px; overflow: auto; white-space: pre-wrap; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 190px; padding: 0 16px; border-radius: 18px; border: 2px dashed var(--color-orange-text); background: var(--color-surface-raised); color: var(--color-text); font: inherit; cursor: pointer; text-align: center; }
.drop svg { stroke: var(--color-orange-text); }
.drop-title { font-weight: 600; font-size: 17px; }
.drop-sub { font-size: 13.5px; color: var(--color-text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.progress { padding: 14px 16px; border-radius: 14px; background: var(--color-surface-raised); border: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.progress-top .mono { color: var(--color-orange-text); }
.track { height: 8px; border-radius: 4px; background: var(--color-line); overflow: hidden; }
.fill { width: 0; height: 100%; border-radius: 4px; background: var(--color-orange); }
.progress-hint { font-size: 13.5px; color: var(--color-text-muted); }

.steps { padding: 6px 18px; border-radius: 18px; background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.step-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--color-line); }
.step-row:first-child { border-top-color: transparent; }
.dot { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid var(--color-control); color: var(--color-on-orange); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step-row.now .dot { border-color: var(--color-orange-text); }
.step-row.done .dot { border-color: var(--color-orange); background: var(--color-orange); }
.step-row.stopped .dot { border-color: var(--color-danger); }
.step-text { flex-grow: 1; }
.step-name { display: block; font-weight: 600; color: var(--color-text-muted); }
.step-row.now .step-name, .step-row.done .step-name, .step-row.stopped .step-name { color: var(--color-text); }
.step-sub { font-size: 13.5px; color: var(--color-text-muted); }

.cta.ghost { background: transparent; border: 1px solid var(--edge); color: var(--color-text); height: 52px; font-size: 16px; }
a.cta.ghost:hover { color: var(--color-orange-text); }
.earlier { padding: 14px 16px; border-radius: 14px; background: var(--color-surface-raised); border: 1px solid var(--color-line); margin-top: 8px; }
.earlier-row { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--color-line); font-size: 13.5px; }
.earlier-row .mono { color: var(--color-orange-text); font-weight: 600; }
.earlier-what { flex: 1 1 60%; min-width: 0; }

/* ---------- the front page, /start and the page of people. A wide container of their own (.landing).
   The front page and /start are always dark (the page sets data-theme="dark"); the page of people follows the
   device. The one ACTION filled with orange is .l-btn.main, "Find my creators": at the top of the front page
   and again in the block that closes it, both leading to /start. Nothing here moves. */
.landing { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: var(--text-body); line-height: var(--text-body--line-height); overflow-x: clip; }
.l-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 64px; border-bottom: 1px solid var(--color-line); }
.l-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.l-nav a { min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
.landing main { gap: 72px; width: 100%; max-width: 1312px; margin: 0 auto; padding: 72px 64px; }
.landing main.fp { gap: 96px; padding-top: 56px; padding-bottom: 96px; }
.l-section { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 24px; }
.l-hero-text { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.l-hero.has-wall { flex-direction: row; align-items: center; justify-content: space-between; gap: 56px; }
.l-hero.has-wall .l-hero-text { flex: 1 1 0; min-width: 0; }
/* The wall of people: upright 9:16 frames in three columns that start at different heights. On a desk screen
   two rows, the second running off the bottom of the window. Frame k (from 1) is in column k mod 3. A frame
   holds a drawn portrait on a light tile (.frame-art) or, in a demo build, the demo's picture (.frame-photo). */
.wall { --fw: 168px; --fgap: 16px; --lift: 34px; --off-1: 64px; --off-2: 0px; --off-3: 112px; --fh: calc(var(--fw) * 16 / 9); position: relative; flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.wall-window { position: relative; width: calc(var(--fw) * 3 + var(--fgap) * 2); height: calc(var(--fh) + var(--off-3)); }
.wall.rows-2 .wall-window { height: 520px; }
.wall-frames { position: absolute; inset: 0; overflow: hidden; }
.frame { --col: 0; --row: 0; --off: var(--off-1); --bw: 0px; position: absolute; left: calc(var(--col) * (var(--fw) + var(--fgap))); top: calc(var(--off) + var(--row) * (var(--fh) + var(--fgap))); width: var(--fw); height: var(--fh); margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--tile-1); color: var(--tile-ink); }
.frame:nth-child(3n + 2) { --col: 1; --off: var(--off-2); background: var(--tile-2); }
.frame:nth-child(3n) { --col: 2; --off: var(--off-3); background: var(--tile-3); }
.frame:nth-child(n + 4) { --row: 1; }
.frame.cast { --bw: 4px; border: var(--bw) solid; border-color: var(--color-orange); }
.frame-art { position: absolute; left: calc(var(--fw) * -0.225 - var(--bw)); bottom: calc(var(--lift) - var(--bw)); width: calc(var(--fw) * 1.45); height: calc(var(--fw) * 1.45); display: flex; align-items: center; justify-content: center; }
.frame-art svg { display: block; width: 100%; height: 100%; }
.frame-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-initial { font-family: var(--font-display); font-weight: 700; font-size: calc(var(--fw) * 0.5); line-height: 1; }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; display: flex; flex-direction: column; background: var(--kit-ink); color: var(--kit-cream); }
.frame-name { font-size: 14px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; }
.frame-place { font-size: 11px; line-height: 15px; opacity: 0.8; }
.wall-note { font-size: 13px; line-height: 18px; color: var(--color-text-muted); }
.wall-note.on-narrow { display: none; }
.landing h1 { font-size: 60px; line-height: 62px; }
.landing h2, .landing h1.l-title { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: var(--text-display); line-height: var(--text-display--line-height); }
.l-lead { max-width: 640px; font-size: 21px; line-height: 31px; color: var(--color-text-muted); }
.l-sub { max-width: 640px; color: var(--color-text-muted); }
.l-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.l-btn { height: 48px; padding: 0 22px; display: flex; align-items: center; border-radius: var(--radius-md); border: 1px solid var(--color-text-muted); color: var(--color-text); font-weight: 600; }
.l-btn.main { border: 0; background: var(--color-orange); color: var(--color-on-orange); }
a.l-btn.main:hover { color: var(--color-on-orange); }
.l-btn.big { height: 52px; padding: 0 26px; justify-content: center; font-size: 17px; }
.l-head { display: flex; flex-direction: column; gap: 8px; }
.l-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.l-label { font-size: var(--text-label); line-height: var(--text-label--line-height); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.l-aside { max-width: 420px; font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.portrait { flex: 0 0 auto; width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); overflow: hidden; background: var(--tile-1); color: var(--tile-ink); }
.portrait.t2 { background: var(--tile-2); } .portrait.t3 { background: var(--tile-3); }
.portrait svg { display: block; width: 100%; height: 100%; }
.portrait-initial { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1; }
.person-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.person-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.person-name { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: var(--text-title); line-height: var(--text-title--line-height); font-weight: 600; }
.pill { flex: 0 0 auto; padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--color-text-muted); font-size: var(--text-label); line-height: var(--text-label--line-height); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.person-place { font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-text-muted); }
.person-about { font-size: 14px; line-height: 20px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.topic { padding: 2px 8px; border-radius: var(--radius-sm); background: var(--color-surface-strong); font-size: 12px; line-height: 18px; color: var(--color-text-muted); }
.l-more { align-self: flex-start; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--color-orange-text); }
.l-foot { margin-top: auto; padding: 24px 64px 32px; border-top: 1px solid var(--color-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.l-foot-text { max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.l-foot p { font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-text-muted); }
.l-foot-logo { min-height: 0; }
.fp-start { max-width: 860px; margin-left: 0; }
/* ---------- a brand's own pages (brandPages.ts): /start, signing in, and the brand's space at /brand. Dark, in
   the front page's container. The one orange fill on a page is its form's button, .l-btn.main. */
.b-form { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 440px; margin: 0; }
.b-form .l-btn { align-self: flex-start; font: inherit; font-weight: 600; cursor: pointer; }
.b-form .cf-turnstile { min-height: 65px; }
.b-fine { max-width: 640px; font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-text-muted); }
.landing .note { max-width: 640px; }
.b-who { font-weight: 500; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.b-out-form { margin: 0; }
.b-out { min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--edge); background: transparent; color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; }
.b-out:hover { color: var(--color-orange-text); }
.landing main.b-home { gap: 56px; max-width: 1000px; margin-left: 0; }
.b-section { gap: 16px; }
.landing h2.b-h2 { font-size: 26px; line-height: 32px; }
.b-h3 { margin: 0 0 10px; font-size: 16px; line-height: 22px; font-weight: 600; }
.b-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.b-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.b-code { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); }
.b-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-title { font-weight: 600; overflow-wrap: anywhere; }
a.b-title { align-self: flex-start; min-height: 44px; display: flex; align-items: center; margin: -10px 0; text-decoration: underline; text-decoration-color: var(--color-line-strong); text-underline-offset: 3px; }
.b-facts { font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-text-muted); }
.b-state { flex: 0 0 auto; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--edge); font-size: var(--text-small); line-height: var(--text-small--line-height); font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.b-state[data-state="open"], .b-state[data-state="approved"] { border-color: var(--color-orange-text); color: var(--color-orange-text); }
.b-empty { max-width: 640px; color: var(--color-text-muted); }
.b-later { margin: 0; padding-left: 20px; max-width: 640px; display: flex; flex-direction: column; gap: 6px; color: var(--color-text-muted); }
.b-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 760px; }
.b-panel { max-width: 760px; }

/* Three messes, and one fix each. The drawing at the top of a card is decoration: a small window of what
   sourcing video looks like today, tilted, with a note stuck on it. The note is the kit's ink and cream. */
.messes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mess { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.mess-art { position: relative; height: 262px; overflow: hidden; background: var(--color-surface-strong); }
.mess-win { position: absolute; left: 6%; right: 10%; top: 22px; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-line-strong); box-shadow: 0 10px 24px rgb(0 0 0 / 0.18); transform: rotate(-2deg); }
.mess:nth-child(2) .mess-win { transform: rotate(2deg); } .mess:nth-child(3) .mess-win { transform: rotate(-1deg); }
.mess-win-top { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--color-line); background: var(--color-surface-raised); }
.mess-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-line-strong); }
.mess-win-title { margin-left: 6px; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; color: var(--color-text-muted); }
.mess-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--color-line); font-size: 12.5px; line-height: 17px; }
.mess-row::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--color-line-strong); }
.mess-row.hot::before { background: var(--color-danger); }
.mess-row-l { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mess-row.hot .mess-row-l { font-weight: 600; }
.mess-row-r { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--color-text-muted); }
.mess-row.hot .mess-row-r { color: var(--color-danger); }
.mess-chip { position: absolute; right: 3%; bottom: 14px; padding: 7px 12px; border-radius: var(--radius-md); background: var(--kit-ink); color: var(--kit-cream); font-size: 13px; line-height: 18px; white-space: nowrap; box-shadow: 0 8px 18px rgb(0 0 0 / 0.28); transform: rotate(3deg); }
.mess:nth-child(2) .mess-chip { right: 4%; bottom: 12px; transform: rotate(-3deg); } .mess:nth-child(3) .mess-chip { transform: rotate(2deg); }
.mess-text { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.mess-pain { font-size: 15px; line-height: 20px; color: var(--color-text-muted); text-decoration: line-through; text-decoration-color: var(--color-danger); }
.landing .mess-fix { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 40px; line-height: 1.05; }
.mess-how { font-size: 15px; line-height: 21px; color: var(--color-text-muted); }

/* Four steps, each a number, a heading and a screen of the studio. */
.fp-how { gap: 72px; }
.fp-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 72px; }
.fp-step { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fp-step-head { display: flex; align-items: baseline; gap: 18px; }
.fp-step-n { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 44px; line-height: 1; color: var(--color-orange-text); }
.fp-step h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 38px; line-height: 42px; }
.fp-close { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: var(--radius-md); background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.fp-close-act { flex: 0 0 auto; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.fp-close-act p { font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-text-muted); }

/* A screen of the studio, drawn (screens.ts). An illustration with invented data: nothing in it is pressed.
   Where a block sits on the timeline (.at-N), how wide it is (.w-N) and how long a bar is are written from
   the same numbers the markup uses. The phone on the second screen is light, as a creator's page is. */
.sd { display: flex; overflow: hidden; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-line-strong); color: var(--color-text); font-size: 13px; line-height: 18px; }
.sd svg { display: block; flex: 0 0 auto; }
.sd-rail { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-right: 1px solid var(--color-line); }
.sd-rail-logo { display: flex; padding-bottom: 12px; }
.sd-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--color-text-muted); }
.sd-ico.on { background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--color-line-strong); color: var(--color-orange-text); }
.sd-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.sd-top { display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--color-line); }
.sd-trail { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; color: var(--color-text-muted); }
.sd-here { flex: 0 0 auto; color: var(--color-text); font-weight: 500; }
.sd-code { flex: 0 0 auto; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 7px; border: 1px solid var(--color-line-strong); background: var(--color-surface-strong); color: var(--color-orange-text); font-family: var(--font-mono); font-size: 11px; }
.sd-code.dim { height: 20px; background: none; color: var(--color-text-muted); font-size: 10.5px; }
.sd-example { flex: 0 0 auto; height: 30px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: var(--radius-pill); border: 1px solid var(--color-line-strong); color: var(--color-text-muted); }
.sd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-orange); }
.sd-body { padding: 20px 24px; }
.sd-m { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.sd-chip { flex: 0 0 auto; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-surface-strong); color: var(--color-text-muted); font-size: 12px; line-height: 18px; font-weight: 600; }
.sd-chip.on { background: var(--color-orange-soft); color: var(--color-orange-text); }
.sd-box { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.sd-box-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.sd-narrow { display: none; }
.sd-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sd-drawn { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: var(--tile-1); }
.sd-drawn.t2 { background: var(--tile-2); } .sd-drawn.t3 { background: var(--tile-3); }
.sd-drawn svg { flex: 0 0 auto; width: 124%; height: auto; aspect-ratio: 1 / 1; }
/* step 1 */
.sd-stack { display: flex; flex-direction: column; gap: 14px; }
.sd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-search { flex: 1 1 220px; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--color-line-strong); color: var(--color-text-muted); }
.sd-count { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--color-text-muted); }
.sd-chosen { color: var(--color-orange-text); font-weight: 600; text-align: right; }
.sd-people { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sd-person { min-width: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; border-radius: 12px; border: 2px solid transparent; background: var(--color-surface-raised); box-shadow: 0 12px 28px rgb(0 0 0 / 0.6); }
.sd-person.on { border-color: var(--color-orange); }
.sd-person-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--kit-ink); }
.sd-check { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--kit-cream); background: color-mix(in srgb, var(--kit-ink) 60%, transparent); }
.sd-check.on { border: 0; background: var(--color-orange); color: var(--color-on-orange); }
.sd-person-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 2px 12px 0; }
.sd-person-name { font-size: 15px; line-height: 20px; font-weight: 600; }
.sd-person-place { font-size: 12px; line-height: 16px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 12px; }
.sd-tag { padding: 1px 7px; border-radius: var(--radius-sm); background: var(--color-surface-strong); font-size: 11px; line-height: 17px; color: var(--color-text-muted); }
/* step 2 */
.sd-goes { display: flex; align-items: center; gap: 28px; }
.sd-goes-left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sd-brief { display: flex; gap: 16px; }
.sd-brief > .sd-box { flex: 1 1 0; }
.sd-brief-side { flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sd-premise { font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.sd-lines { display: flex; flex-direction: column; gap: 12px; }
.sd-line { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--voice-1); }
.sd-line.v2 { border-left-color: var(--voice-2); }
.sd-line-text { font-size: 16px; line-height: 22px; }
.sd-rule { padding-top: 6px; border-top: 1px solid var(--color-line); }
.sd-with { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-muted); }
.sd-arrow { color: var(--color-orange-text); }
.sd-arrow.down { display: none; }
.sd-phone { --color-surface: #faf8f4; --color-surface-raised: #ffffff; --color-surface-strong: #f4efe6; --color-line: #e7e3dc; --color-line-strong: #cfc8bc; --color-control: #b9b2a6; --color-text: #15162f; --color-text-muted: #5e5d6b; --color-orange: #f2a93b; --color-on-orange: #15162f; --color-orange-soft: #fcebcb; --color-orange-text: #8a5612; --color-success: #1f7a6d; --color-danger: #c2342f; --edge: var(--color-text-muted); --edge-firm: var(--color-text-muted); color-scheme: light; flex: 0 0 auto; width: 270px; overflow: hidden; border-radius: 28px; border: 8px solid #4a443d; background: var(--color-surface); color: var(--color-text); }
.sd-phone-in { height: 400px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.sd-brand-logo { height: auto; }
.sd-ph-about { display: flex; flex-direction: column; gap: 5px; }
.sd-ph-label { font-size: 9px; line-height: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.sd-ph-name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 26px; line-height: 29px; }
.sd-ph-text { font-size: 12px; line-height: 18px; color: var(--color-text-muted); }
.sd-ph-sec { display: flex; flex-direction: column; gap: 8px; padding: 13px; border-radius: var(--radius-md); background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.sd-ph-tone { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-ph-tone span { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-orange-soft); color: var(--color-orange-text); font-size: 10px; line-height: 16px; font-weight: 600; }
.sd-ph-say { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-top: 6px; border-top: 1px solid var(--color-line); font-size: 11px; line-height: 16px; }
.sd-ph-not { color: var(--color-text-muted); text-decoration: line-through; }
.sd-ph-never { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; line-height: 16px; }
.sd-ph-never svg { margin-top: 2px; color: var(--color-danger); }
/* step 3 */
.sd-film { display: flex; flex-direction: column; gap: 12px; }
.sd-film-top { display: flex; overflow: hidden; border-radius: 12px; border: 1px solid var(--color-line); }
.sd-viewer { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.sd-stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--color-surface) 60%, black); }
.sd-take { position: relative; width: 176px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-md); background: var(--kit-ink); }
.sd-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--color-line); }
.sd-play { flex: 0 0 auto; width: 40px; height: 40px; padding-left: 3px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-text); color: var(--color-surface); }
.sd-time { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sd-time-row { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); }
.sd-time-now { font-size: 24px; line-height: 28px; font-weight: 500; color: var(--color-orange-text); }
.sd-time-all { font-size: 12px; color: var(--color-text-muted); }
.sd-clip { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sd-clip-name { font-size: 14px; font-weight: 500; }
.sd-clip-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-muted); }
.sd-script { flex: 0 0 330px; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--color-line); }
.sd-tabs { display: flex; gap: 14px; padding: 0 16px; overflow: hidden; border-bottom: 1px solid var(--color-line); }
.sd-tab { flex: 0 0 auto; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--color-text-muted); }
.sd-tab.on { border-bottom-color: var(--color-orange-text); color: var(--color-text); font-weight: 500; }
.sd-script-in { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.sd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-built { gap: 6px; font-size: 12px; color: var(--color-text-muted); }
.sd-ok { flex: 0 0 auto; padding: 2px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-success) 14%, transparent); color: var(--color-success); font-size: 12px; line-height: 18px; font-weight: 600; }
.sd-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sd-out { flex: 0 0 auto; padding: 1px 9px; border-radius: var(--radius-pill); border: 1px solid var(--color-line-strong); font-size: 12px; line-height: 18px; }
.sd-sline-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sd-sline-at { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); }
.sd-sline-text { font-size: 15px; line-height: 21px; }
.sd-timeline { padding-top: 12px; border-top: 2px solid var(--color-line); }
.sd-tracks { display: flex; flex-direction: column; gap: 6px; }
.sd-track { display: flex; align-items: center; gap: 12px; }
.sd-track-name { flex: 0 0 76px; font-size: 12px; color: var(--color-text-muted); }
.sd-lane { position: relative; flex: 1 1 0; min-width: 0; height: 30px; overflow: hidden; border-radius: 7px; background: var(--color-surface-raised); }
.sd-lane.tall { height: 36px; } .sd-lane.mix { height: 34px; } .sd-lane.ruler { height: 20px; background: none; }
.sd-blk { position: absolute; top: 3px; bottom: 3px; padding: 0 8px; display: flex; align-items: center; overflow: hidden; border-radius: 6px; font-size: 12px; line-height: 1; white-space: nowrap; }
.sd-blk.video { background: var(--color-surface-strong); }
.sd-blk.main { border: 1px solid; border-color: var(--color-orange); }
.sd-blk.v1 { background: var(--voice-1); color: var(--kit-ink); } .sd-blk.v2 { background: var(--voice-2); color: var(--kit-ink); }
.sd-blk.cap { border: 1px solid var(--color-line-strong); color: var(--color-text-muted); }
.sd-blk.logo { background: var(--color-orange-soft); color: var(--color-orange-text); }
.sd-mark { position: absolute; top: 0; padding-left: 5px; border-left: 1px solid var(--color-line-strong); font-family: var(--font-mono); font-size: 11px; line-height: 20px; color: var(--color-text-muted); }
.sd-mark.now { padding: 0 5px; border: 0; border-radius: 4px; background: var(--color-orange); color: var(--color-on-orange); font-weight: 600; }
.sd-mix { position: absolute; left: 8px; top: 0; color: var(--color-control); }
.sd-blk.at-0 { left: 0%; } .sd-blk.at-3 { left: 3%; } .sd-blk.at-16 { left: 16%; } .sd-blk.at-28 { left: 28%; } .sd-blk.at-37 { left: 37%; } .sd-blk.at-52 { left: 52%; } .sd-blk.at-63 { left: 63%; } .sd-blk.at-89 { left: 89%; } .w-7 { width: 7%; } .w-9 { width: 9%; } .w-11 { width: 11%; } .w-12 { width: 12%; } .w-22 { width: 22%; } .w-45 { width: 45%; } .w-71 { width: 71%; } .w-81 { width: 81%; } .w-88 { width: 88%; } .w-100 { width: 100%; } .sd-mark.s-0 { left: 0.00%; } .sd-mark.s-10 { left: 29.41%; } .sd-mark.s-20 { left: 58.82%; } .sd-mark.s-30 { left: 88.24%; }
/* step 4 */
.sd-results { display: flex; flex-direction: column; gap: 16px; }
.sd-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.sd-stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.sd-stat-n { font-family: var(--font-mono); font-size: 28px; line-height: 34px; font-weight: 500; }
.sd-table { overflow: hidden; border-radius: 18px; background: var(--color-surface-raised); border: 1px solid var(--color-line); }
.sd-tr { display: grid; grid-template-columns: minmax(0, 1.6fr) 110px minmax(0, 1.6fr) 84px 84px 84px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--color-line); }
.sd-tr.head { padding: 10px 20px; border-top: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.sd-post { min-width: 0; display: flex; align-items: center; gap: 10px; }
.sd-thumb { position: relative; flex: 0 0 auto; width: 36px; height: 36px; overflow: hidden; border-radius: 8px; background: var(--kit-ink); }
.sd-post-text { min-width: 0; display: flex; flex-direction: column; }
.sd-post-name { font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-label-on { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--color-success); }
.sd-on { color: var(--color-text-muted); }
.sd-bar { height: 8px; overflow: hidden; border-radius: 4px; background: var(--color-surface-strong); }
.sd-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--color-orange); }
.sd .num { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.sd-tr.head .num { font-size: 11px; }
.sd .num.dim { color: var(--color-text-muted); }

/* Narrower than the two columns need: the words, then one row of three frames under them.
   A wall of six shows its first, third and fourth frames here (front.ts, wallOnPhone), the middle one in orange. */
@media (max-width: 1199px) {
  .l-hero.has-wall { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; }
  .l-hero.has-wall .l-hero-text { flex: 0 0 auto; }
  .wall { --off-1: 28px; --off-3: 47px; align-self: flex-start; align-items: center; }
  .wall.rows-2 .wall-window { height: calc(var(--fh) + var(--off-3)); }
  .wall.rows-2 .frame:nth-child(2), .wall.rows-2 .frame:nth-child(n + 5) { display: none; }
  .wall.rows-2 .frame:nth-child(3) { --col: 1; --off: var(--off-2); --bw: 4px; border: var(--bw) solid; border-color: var(--color-orange); background: var(--tile-2); }
  .wall.rows-2 .frame:nth-child(4) { --col: 2; --row: 0; --off: var(--off-3); background: var(--tile-3); }
  .wall-note { text-align: center; }
  .wall-note.on-wide { display: none; } .wall-note.on-narrow { display: block; }
  .landing main.fp { gap: 72px; }
  .messes { gap: 16px; } .mess-text { padding: 18px; } .landing .mess-fix { font-size: 32px; }
  .sd-script { flex-basis: 280px; }
}
@media (max-width: 999px) {
  .l-bar { padding: 16px 32px; } .landing main { padding: 56px 32px; gap: 56px; } .l-foot { padding: 24px 32px 32px; }
  .landing main.fp { padding-top: 40px; padding-bottom: 72px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .messes { grid-template-columns: minmax(0, 1fr); }
  .fp-close { flex-direction: column; align-items: stretch; gap: 16px; padding: 32px; } .fp-close-act { max-width: none; }
  /* The screens, as the phone mock-up has them: no sidebar, everything stacked, and the timeline scrolling
     sideways inside its own screen. */
  .sd-rail, .sd-wide { display: none !important; }
  .sd-narrow { display: block; }
  .sd-top { padding: 10px 12px; } .sd-body { padding: 12px; } .sd-box { padding: 12px; }
  .sd-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sd-person:nth-child(n + 5) { display: none; }
  .sd-goes { flex-direction: column; gap: 12px; } .sd-goes-left { flex: 0 0 auto; width: 100%; }
  .sd-brief { flex-direction: column; } .sd-brief > .sd-box, .sd-brief-side { flex: 0 0 auto; }
  .sd-line-text { font-size: 15px; }
  .sd-arrow.across { display: none; } .sd-arrow.down { display: block; }
  .sd-phone { width: 250px; max-width: 100%; } .sd-phone-in { height: 380px; }
  .sd-film-top { flex-direction: column; gap: 12px; padding: 12px; }
  .sd-stage { padding: 12px; } .sd-take { width: 150px; }
  .sd-transport { gap: 10px; padding: 10px 0 0; } .sd-time-now { font-size: 20px; line-height: 24px; }
  .sd-script { flex: 0 0 auto; border-left: 0; } .sd-tabs { padding: 0; } .sd-script-in { padding: 14px 0 0; }
  .sd-timeline { overflow-x: auto; } .sd-tracks { min-width: 620px; } .sd-track-name { flex-basis: 64px; }
  .sd-results { gap: 12px; } .sd-stats { gap: 8px; }
  .sd-stat { flex: 1 1 40%; padding: 12px; } .sd-stat-n { font-size: 22px; line-height: 28px; }
  .sd-tr { grid-template-columns: minmax(0, 1.4fr) 64px 56px; padding: 10px 12px; } .sd-tr.head { padding: 10px 12px; }
}
@media (max-width: 599px) {
  .l-bar { padding: 12px 20px; } .l-bar .brand svg { width: auto; height: 22px; } .l-nav { gap: 14px; } .l-nav-wide { display: none !important; }
  .landing main.b-home { gap: 40px; } .landing h2.b-h2 { font-size: 22px; line-height: 28px; }
  .b-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .b-row .b-code { grid-column: 1 / -1; } a.b-title { margin: -8px 0; }
  .b-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-form .l-btn { align-self: stretch; justify-content: center; }
  .landing main { padding: 32px 20px 40px; gap: 40px; } .l-foot { padding: 24px 20px 32px; }
  .landing main.fp { padding-top: 28px; padding-bottom: 56px; gap: 56px; }
  .l-section { gap: 16px; }
  .fp .l-section { gap: 20px; }
  .landing h1 { font-size: 38px; line-height: 42px; }
  .landing h2, .landing h1.l-title { font-size: 30px; line-height: 34px; }
  .l-lead { font-size: 17px; line-height: 25px; }
  .l-hero-text { gap: 16px; }
  .l-hero.has-wall { gap: 28px; }
  .wall { --fw: min(108px, calc((100vw - 60px) / 3)); --fgap: 10px; --lift: 26px; --off-1: 18px; --off-3: 30px; align-self: center; }
  .frame figcaption { padding: 5px 8px; } .frame-name { font-size: 12px; line-height: 16px; } .frame-place { font-size: 10px; line-height: 13px; }
  .people { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .person { flex-direction: row; align-items: flex-start; gap: 16px; }
  .portrait { width: 88px; height: 88px; }
  .portrait-initial { font-size: 36px; }
  .person-name { font-size: 18px; }
  .fp .fp-how, .fp-steps { gap: 40px; }
  .fp-step { gap: 14px; } .fp-step-head { gap: 12px; } .fp-step-n { font-size: 30px; } .fp-step h3 { font-size: 26px; line-height: 30px; }
  .fp-close { padding: 24px; }
}

/* ---------- the team's pages: a desk screen, stacking on a phone (mock-up: TeamReview) */
.team { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.t-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 28px; min-height: 40px; border-bottom: 1px solid var(--color-line); }
.t-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); }
.t-crumbs a { color: var(--color-text-muted); } .t-crumbs a:hover { color: var(--color-orange-text); }
.t-here { color: var(--color-text); font-weight: 500; }
.switch { position: relative; }
.switch summary { list-style: none; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--color-surface-raised); color: var(--color-text); font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary svg { color: var(--color-text-muted); }
.switch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--voice-1); }
.switch-menu { position: absolute; z-index: 5; top: 42px; left: 0; min-width: 200px; padding: 6px; border-radius: 12px; border: 1px solid var(--color-line-strong); background: var(--color-surface-strong); display: flex; flex-direction: column; }
.switch-menu a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; color: var(--color-text); font-weight: 500; }
.switch-menu a[aria-current="true"] { color: var(--color-orange-text); background: var(--color-orange-soft); }
.t-counts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--color-text-muted); }
.t-counts .mono { color: var(--color-text); } .t-counts .t-amber { color: var(--color-orange-text); }
.t-who { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--color-text-muted); }
.t-out { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--color-text); font: inherit; font-weight: 500; cursor: pointer; }
.t-out:hover { color: var(--color-orange-text); }
.t-cols { flex: 1 1 auto; display: flex; flex-wrap: wrap; }
.t-queue { flex: 1 1 280px; max-width: 340px; min-width: 0; border-right: 1px solid var(--color-line); background: var(--color-surface); padding: 16px 12px; }
.t-label, .t-checks legend { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.t-label { padding: 0 10px 10px; }
.t-item { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; }
.t-item:hover { color: var(--color-text); background: var(--color-surface-raised); }
.t-item[aria-current="true"] { background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.t-item-top { display: flex; justify-content: space-between; gap: 8px; }
.t-item-job { font-weight: 500; }
.t-code { font-weight: 600; color: var(--color-orange-text); }
.t-sub { font-size: 12.5px; color: var(--color-text-muted); }
.t-empty { padding: 4px 10px; font-size: 13px; color: var(--color-text-muted); }
.t-video { flex: 999 1 380px; min-width: 0; background: var(--color-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.t-player { width: 281px; max-width: 100%; height: 500px; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-line); }
.t-novideo { width: 281px; max-width: 100%; height: 500px; border-radius: 10px; border: 1px dashed var(--edge-firm); background: var(--color-surface-raised); display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 13px; color: var(--color-text-muted); }
.t-facts { font-size: 12px; color: var(--color-text-muted); }
.t-decide { flex: 1 1 340px; min-width: 0; border-left: 1px solid var(--color-line); background: var(--color-surface); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.t-about-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.t-big { font-size: 22px; font-weight: 600; color: var(--color-orange-text); }
.t-name { font-weight: 600; }
.t-form { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.t-checks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; min-width: 0; }
.t-checks legend { padding: 0 0 6px; }
.t-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--color-line); cursor: pointer; }
.t-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--color-orange); }
.t-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 12px; background: transparent; color: var(--color-text); font: inherit; font-weight: 500; cursor: pointer; text-align: center; }
.t-btn:hover { color: var(--color-orange-text); }
.t-btn.main { border: 0; background: var(--color-orange); color: var(--color-on-orange); font-weight: 600; }
.t-btn.main:hover { color: var(--color-on-orange); }
.t-btn.soft { color: var(--color-text-muted); }
.t-btn.small { width: auto; min-height: 44px; flex: 0 0 auto; }
.t-more summary { list-style: none; }
.t-more summary::-webkit-details-marker { display: none; }
.t-more[open] summary { border-color: var(--color-orange-text); margin-bottom: 10px; }
.t-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--color-text-muted); }
.t-field textarea { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge-firm); background: var(--color-surface-raised); color: var(--color-text); font: inherit; font-size: 15px; resize: vertical; }
.t-field textarea::placeholder { color: var(--color-text-muted); }
.t-done { padding: 14px 16px; border-radius: 14px; background: var(--color-surface-raised); border: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--color-text-muted); }
.t-done-title { font-weight: 600; font-size: 15px; color: var(--color-text); }
.t-done[data-status="approved"] .t-done-title { color: var(--color-success); }
.t-owed { border-top: 1px solid var(--color-line); background: var(--color-surface); padding: 18px 28px 26px; }
.t-owed-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.t-owed-top h2 { margin: 0; }
.t-total { color: var(--color-orange-text); margin-left: 8px; }
.t-scroll { overflow-x: auto; }
.t-row { display: flex; align-items: center; gap: 20px; min-width: 860px; padding: 10px 0; border-top: 1px solid var(--color-line); }
.t-row .t-code { flex: 0 0 90px; }
.t-row .t-sub { display: block; }
.t-grow { flex: 1 1 0; min-width: 0; }
.t-job { flex: 0 0 220px; min-width: 0; color: var(--color-text-muted); }
.t-when { flex: 0 0 220px; min-width: 0; font-size: 13px; color: var(--color-text-muted); }
.t-fee { flex: 0 0 80px; text-align: right; }
.t-paid { flex: 0 0 96px; text-align: center; font-weight: 600; color: var(--color-success); }
.t-narrow { width: 100%; max-width: 520px; margin: 0 auto; flex: 0 0 auto; }
@media (max-width: 700px) {
  .t-bar { padding: 10px 16px; } .t-counts { margin-left: 0; } .t-owed { padding: 16px; }
  .t-queue { max-width: none; border-right: 0; border-bottom: 1px solid var(--color-line); }
  .t-decide { border-left: 0; border-top: 1px solid var(--color-line); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.demo-banner { margin: 0; padding: 8px 16px; background: var(--color-orange-soft); color: var(--color-text); font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: center; }
body:has(> .demo-banner) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .demo-banner) > .shell, body:has(> .demo-banner) > .team { min-height: 0; flex: 1 1 auto; width: 100%; }
