/* promote.css — the Amsterdam self-service customer journey (milestone B): the public pages under /promote and the
   customer area of self-service workspaces. A per-family sheet in the pattern of M5a: loaded only by these pages,
   after tokens.css and components.css, inside the white system (public/_v4_page_style.html on each page).

   Rules it keeps (design v4, DESIGN_REFERENCE.md, map v9 section 15): white paper, ink text, yellow only as a fill,
   a rule or the mark and at most one yellow accent per view; hairlines, not boxes; Inter only; the 3 px ink focus ring;
   every transition through the motion tokens (tokens.css zeroes them under prefers-reduced-motion); one column on
   phones with 20 px gutters, the primary action a full-width black button; outside strings (sound titles, artist
   names, briefs, model words) may hold one very long unbroken word, so everything in .tbj may break anywhere. */

.tbj { max-width: 720px; margin: 0 auto; padding: 28px var(--tb-gutter) 96px; overflow-wrap: anywhere; }
.tbj-wide { max-width: var(--tb-container); }
.tbj h1 { margin: 12px 0 12px; font-size: 34px; line-height: 1.08; font-weight: 900; letter-spacing: -0.035em; text-wrap: balance; }
.tbj h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.tbj h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.tbj p { margin: 0; }
.tbj-stack > * + * { margin-top: 16px; }
.tbj-tight > * + * { margin-top: 8px; }

/* cards and boxes: a hairline card, the one yellow-ruled accent card, the black-bordered failure box */
.tbj-card { border: 1px solid var(--tb-line); border-radius: 12px; padding: 20px; background: var(--tb-paper); }
.tbj-card > * + * { margin-top: 10px; }
.tbj-accent { border-top: 4px solid var(--tb-bolt); }
.tbj-box { border: 2px solid var(--tb-ink); border-radius: 12px; padding: 20px; }
.tbj-box > * + * { margin-top: 10px; }
.tbj-tintbox { background: var(--tb-tint); border-radius: 12px; padding: 18px 20px; }
.tbj-tintbox > * + * { margin-top: 8px; }
.tbj-meta { color: var(--tb-ink-3); font-size: 14px; line-height: 1.45; }
.tbj-small { color: var(--tb-ink-2); font-size: 15px; line-height: 1.5; }
.tbj-ref { font-family: var(--font-mono, ui-monospace, 'SFMono-Regular', Menlo, monospace); font-size: 13px; color: var(--tb-ink-3); }
.tbj-num { font-variant-numeric: tabular-nums; }

/* money lines: a definition list of label / amount rows; the total row carries the hairline */
.tbj-lines { display: grid; margin: 0; }
.tbj-lines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--tb-line); }
.tbj-lines > div:first-child { border-top: 0; padding-top: 0; }
.tbj-lines dt { color: var(--tb-ink-2); font-size: 16px; }
.tbj-lines dt small { display: block; color: var(--tb-ink-3); font-size: 13px; }
.tbj-lines dd { margin: 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbj-lines > .tbj-total { border-top: 2px solid var(--tb-ink); margin-top: 4px; padding-top: 12px; }
.tbj-lines > .tbj-total dt { color: var(--tb-ink); font-weight: 700; }
.tbj-lines > .tbj-total dd { font-size: 24px; font-weight: 800; }

/* the totals card pinned at the top of the preview on scroll (one column, so it never covers the fields) */
.tbj-sticky { position: sticky; top: calc(var(--tb-header-h) + 8px); z-index: 5; background: var(--tb-paper); }

/* facts tiles: a tint grid of label / value pairs */
.tbj-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tbj-facts > div { background: var(--tb-tint); border-radius: 10px; padding: 12px; }
.tbj-facts dt { color: var(--tb-ink-3); font-size: 13px; line-height: 1.35; }
.tbj-facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* hairline rows (edits, lots, legs, drafts) */
.tbj-rows { margin: 0; padding: 0; list-style: none; }
.tbj-rows > li { padding: 14px 0; border-top: 1px solid var(--tb-line); display: grid; gap: 6px; }
.tbj-rows > li:first-child { border-top: 0; padding-top: 4px; }
.tbj-row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.tbj-row-head b { font-size: 17px; }
.tbj-row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tb-ink-2); font-size: 15px; }
.tbj-row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* step ticker (publication steps) and progress rows */
.tbj-steps { list-style: none; margin: 0; padding: 0; }
.tbj-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--tb-ink-3); transition: color var(--motion-base) var(--tb-ease); }
.tbj-steps li::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tb-line-2); background: var(--tb-paper); transition: background var(--motion-base) var(--tb-ease), border-color var(--motion-base) var(--tb-ease); }
.tbj-steps li[data-step-state="done"] { color: var(--tb-ink-2); }
.tbj-steps li[data-step-state="done"]::before { background: var(--tb-ink); border-color: var(--tb-ink); }
.tbj-steps li[data-step-state="now"] { color: var(--tb-ink); font-weight: 700; }
.tbj-steps li[data-step-state="now"]::before { background: var(--tb-bolt); border-color: var(--tb-ink); }
.tbj-steps li[data-step-state="stuck"] { color: var(--tb-ink); }
.tbj-steps li[data-step-state="stuck"]::before { background: var(--tb-paper); border-color: var(--tb-ink); border-style: dashed; }

/* skeletons: opacity only, stopped by the reduced-motion rule of tokens.css */
.tbj-skel { height: 14px; border-radius: 6px; background: var(--tb-tint); animation: tbj-pulse 1.4s ease-in-out infinite; }
.tbj-skel + .tbj-skel { margin-top: 10px; }
.tbj-skel-short { width: 62%; }
@keyframes tbj-pulse { 50% { opacity: .5; } }

/* forms: the catalogue's field family plus the inline edit cards of the brief and the preview */
.tbj-form { display: grid; gap: 14px; }
.tbj-form .tb-btn { width: 100%; justify-content: center; }
.tbj-form .tb-btn[disabled], .tbj-form .tb-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.tbj-input, .tbj-textarea, .tbj-select { width: 100%; box-sizing: border-box; border: 1.5px solid var(--tb-line-2); border-radius: 10px; padding: 12px 14px; background: var(--tb-paper); color: var(--tb-ink); font: inherit; font-size: 17px; min-height: 54px; }
.tbj-textarea { min-height: 136px; resize: vertical; }
.tbj-input::placeholder, .tbj-textarea::placeholder { color: var(--tb-ink-3); }
.tbj-input:hover, .tbj-textarea:hover, .tbj-select:hover { border-color: var(--tb-ink-3); }
.tbj-input:focus, .tbj-textarea:focus, .tbj-select:focus { border-color: var(--tb-ink); outline: 3px solid var(--tb-bolt); outline-offset: 1px; }
.tbj-field { display: grid; gap: 6px; }
.tbj-field label, .tbj-label { font-size: 15px; font-weight: 700; }
.tbj-field .tbj-hint { color: var(--tb-ink-3); font-size: 14px; }
.tbj-field.is-error .tbj-input, .tbj-field.is-error .tbj-select { border-color: #B42318; }
.tbj-err { color: #B42318; font-size: 14px; }
.tbj-err:empty { display: none; }
.tbj-grid2 { display: grid; gap: 14px; }
.tbj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tbj-chips li { border: 1px solid var(--tb-line-2); border-radius: 999px; padding: 4px 10px; font-size: 14px; color: var(--tb-ink-2); }
.tbj-chip-edit { display: inline-flex; align-items: center; gap: 6px; }
.tbj-chip-edit button { border: 0; background: none; color: var(--tb-ink-3); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; min-width: 24px; min-height: 24px; border-radius: 4px; }
.tbj-chip-edit button:hover, .tbj-chip-edit button:focus-visible { color: var(--tb-ink); }
.tbj-adder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tbj-adder .tbj-input { min-height: 46px; padding: 8px 12px; font-size: 16px; }

/* buttons from the catalogue inside the journey: border-box and allowed to wrap, so a long label never widens a phone */
.tbj .tb-btn { box-sizing: border-box; max-width: 100%; white-space: normal; text-align: center; }

/* status boxes reuse the catalogue (.tbp-status, hidden until .tbp-show) and add a neutral and a spinner variant */
.tbj .tbp-status.tbp-show { display: grid; gap: 6px; }
.tbj .tbp-status .tb-btn { justify-self: start; }
.tbj .tbp-status.tbj-neutral { background: var(--tb-tint); color: var(--tb-ink); }
.tbj-spin { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--tb-line-2); border-top-color: var(--tb-ink); border-radius: 50%; animation: tbj-spin 800ms linear infinite; vertical-align: -4px; margin-right: 8px; }
@keyframes tbj-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tbj-spin { animation: none; border-style: dotted; } }

/* actions: the primary action full width, repeated at the end of long pages; secondary actions as text links */
.tbj-actions { display: grid; gap: 14px; margin-top: 28px; }
.tbj-actions .tb-btn { width: 100%; justify-content: center; text-align: center; }
.tbj-alt { text-align: center; font-size: 16px; }
.tbj-alt a { color: var(--tb-ink); }
.tbj-pin { position: sticky; bottom: 0; z-index: 4; margin: 0 calc(-1 * var(--tb-gutter)); padding: 12px var(--tb-gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--tb-paper); border-top: 1px solid var(--tb-line); }
.tbj-pin .tb-btn { width: 100%; justify-content: center; }

/* offer, pricing and the band on /promote */
.tbj-offer { border: 2px solid var(--tb-ink); border-radius: 12px; padding: 20px; background: var(--tb-tint); }
.tbj-offer > * + * { margin-top: 10px; }
.tbj-offer blockquote { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }
.tbj-promise { display: grid; gap: 10px; }
.tbj-example { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tbj-example > div { border: 1px solid var(--tb-line); border-radius: 10px; padding: 12px; }
.tbj-example b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.tbj-example span { color: var(--tb-ink-3); font-size: 13px; }
.tbj-tag { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #FFF8DC; color: #7A5C00; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tbj-start { display: grid; gap: 10px; }
.tbj-start .tbj-input { border-color: var(--tb-ink); }

/* the customer area: the white page frame for self-service workspaces (the sidebar of base_label.html is not used) */
.tbj-area { display: grid; gap: 18px; }
.tbj-area-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0; list-style: none; border-bottom: 1px solid var(--tb-line); }
.tbj-area-nav a { display: inline-block; padding: 10px 2px; color: var(--tb-ink-2); font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.tbj-area-nav a:hover { color: var(--tb-ink); }
.tbj-area-nav a[aria-current="page"] { color: var(--tb-ink); border-bottom-color: var(--tb-bolt); }
.tbj-switcher { display: grid; gap: 6px; }
.tbj-switcher select { max-width: 360px; }
.tbj-cards { display: grid; gap: 12px; }
.tbj-cards > a { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--tb-line); border-radius: 12px; color: var(--tb-ink); text-decoration: none; transition: border-color 150ms var(--tb-ease); }
.tbj-cards > a:hover { border-color: var(--tb-ink); }
.tbj-cards b { font-size: 18px; }
.tbj-kv { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--tb-ink-2); font-size: 15px; }
.tbj-kv span b { font-size: 15px; font-variant-numeric: tabular-nums; }

/* the monitor chart: an inline SVG with hairlines, an ink line and a bolt area; readable without colour */
.tbj-chart { width: 100%; height: auto; display: block; }
.tbj-chart text { font: 600 11px/1 var(--font-sans); fill: var(--tb-ink-3); }
.tbj-chart .tbj-axis { stroke: var(--tb-line); }
.tbj-chart .tbj-line { fill: none; stroke: var(--tb-ink); stroke-width: 2; }
.tbj-chart .tbj-area { fill: var(--tb-bolt); fill-opacity: .28; }
.tbj-clips { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tbj-clips > a { flex: 0 0 150px; scroll-snap-align: start; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--tb-line); border-radius: 10px; color: var(--tb-ink); text-decoration: none; }
.tbj-clips > a:hover { border-color: var(--tb-ink); }
.tbj-clips b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tbj-clips span { color: var(--tb-ink-3); font-size: 13px; }

/* sheets slide from the bottom on phones; the native dialog carries the focus trap and Escape */
.tbj-sheet { width: min(100vw, 560px); max-width: 100vw; margin: auto 0 0; padding: 24px var(--tb-gutter) calc(24px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 16px 16px 0 0; background: var(--tb-paper); color: var(--tb-ink); box-shadow: 0 -18px 36px rgba(11, 11, 11, .14); }
.tbj-sheet::backdrop { background: rgba(11, 11, 11, .45); }
.tbj-sheet[open] { animation: tbj-rise var(--motion-slow) var(--tb-ease); }
@keyframes tbj-rise { from { transform: translateY(24px); opacity: 0; } }
.tbj-sheet h2 { margin-bottom: 10px; }
.tbj-sheet-actions { display: grid; gap: 10px; margin-top: 16px; }
.tbj-sheet-actions .tb-btn { width: 100%; justify-content: center; }

/* no-JS: forms that can only post JSON hide behind their notice; status rows stay readable */
html:not(.js) .tbj-needs-js { display: none; }

@media (min-width: 560px) {
    .tbj-grid2 { grid-template-columns: 1fr 1fr; }
    .tbj-actions { grid-template-columns: 1fr; }
    .tbj-sheet { margin: auto; border-radius: 16px; }
    .tbj-sheet[open] { animation: none; }
}
@media (min-width: 768px) {
    .tbj { padding-top: 48px; }
    .tbj h1 { font-size: 46px; }
    .tbj-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tbj-example { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tbj-pin { position: static; margin: 0; padding: 0; border: 0; }
    .tbj-pin .tb-btn { width: auto; }
}


/* ============================================================================================================
   /promote — the accepted design (B2, 2026-10-14): "real edits, their sound, the pulse". Everything here is prefixed
   tbd- and sits on the catalogue's .tbp page root with the live tokens. Motion runs only under html.motion-ok (set in
   the page head: no reduced-motion preference, no Save-Data) and stops under html.tbd-paused ("Pause motion"); the
   tokens zero every duration under prefers-reduced-motion. Phones (under 1024 px): one column, the stage under the
   copy, the clips a snap scroller, no loop, no autoplay. Yellow is a fill, a rule or the mark: never text. */
main[data-tbd] { position: relative; }
.tbd-chapter { position: relative; padding: 72px 0; }
@media (min-width: 1024px) { .tbd-chapter { padding: 112px 0; } }
.tbd-head { display: grid; gap: 14px; margin-bottom: 36px; }
.tbd-head h2 { max-width: 16ch; }
.tbd-head .tbp-lede { max-width: 44ch; }
.tbd-label { display: block; color: var(--tb-ink-3); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tbd-illus { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: #FFF8DC; color: #7A5C00; font-size: 13px; font-weight: 700; line-height: 1.35; }
.tbd-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border: 1.5px solid var(--tb-ink); border-radius: 999px; font-size: 14px; font-weight: 700; }
.tbd-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tb-bolt); border: 1px solid var(--tb-ink); }
.tbd-pill-quiet { border-color: var(--tb-line-2); color: var(--tb-ink-2); }
.tbd-pill-quiet::before { background: var(--tb-line-2); border-color: var(--tb-line-2); }
.tbd-grid { position: relative; display: grid; gap: 28px; }
.tbd-grid > * { min-width: 0; }
@media (min-width: 1024px) { .tbd-grid { grid-template-columns: 6fr 5fr; gap: 56px; align-items: start; } .tbd-grid-results { grid-template-columns: 5fr 7fr; gap: 40px; } }

/* the pulse: a yellow spine down the left margin, lit as far as the reader has come, with a tick per chapter */
.tbd-spine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; z-index: 1; overflow: visible; }
.tbd-spine .tbd-line { fill: none; stroke: var(--tb-bolt); stroke-width: 6; stroke-linecap: round; }
.tbd-spine .tbd-tick { fill: none; stroke: var(--tb-bolt); stroke-width: 4; stroke-linecap: round; opacity: 0; transition: opacity var(--motion-base) var(--tb-ease); }
.tbd-spine .tbd-tick.tbd-lit { opacity: 1; }
.tbd-spine .tbd-dot { fill: var(--tb-bolt); stroke: var(--tb-ink); stroke-width: 2; }
.tbd-d { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tb-ink); background: var(--tb-paper); transition: background var(--motion-base) var(--tb-ease); flex: none; }
.tbd-d.tbd-lit { background: var(--tb-bolt); }
html.motion-ok [data-enter].tbd-pre { opacity: .25; transform: translateY(18px); }
html.motion-ok [data-enter].tbd-in { opacity: 1; transform: none; transition: opacity var(--motion-slow) var(--tb-ease), transform var(--motion-slow) var(--tb-ease); }
html.motion-ok [data-enter].tbd-pre.tbd-in[data-delay="1"] { transition-delay: 60ms; }
html.motion-ok [data-enter].tbd-pre.tbd-in[data-delay="2"] { transition-delay: 120ms; }
html.motion-ok [data-enter].tbd-pre.tbd-in[data-delay="3"] { transition-delay: 180ms; }
html.tbd-paused *, html.tbd-paused *::before, html.tbd-paused *::after { animation-play-state: paused !important; }

/* SOUND: the hero. Copy left, the stage right; the generated light loop behind it on desktop only. */
.tbd-hero .tbd-bg { display: none; }
@media (min-width: 1024px) {
    .tbd-hero .tbd-bg { display: block; position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .55; pointer-events: none; }
    .tbd-hero .tbd-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--motion-slow) var(--tb-ease); }
    .tbd-hero .tbd-bg.tbd-ready video { opacity: 1; }
}
.tbd-hero-grid { position: relative; z-index: 2; display: grid; gap: 36px; }
.tbd-hero-grid > div { min-width: 0; }
@media (min-width: 1024px) { .tbd-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 48px; } }
.tbd-copy { position: relative; z-index: 2; }
.tbd-strike { position: relative; display: inline-block; white-space: nowrap; }
.tbd-strike svg { position: absolute; left: 0; right: 0; bottom: -0.08em; width: 100%; height: .22em; max-width: none; overflow: visible; pointer-events: none; }
.tbd-strike path { fill: none; stroke: var(--tb-bolt); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
html.motion-ok .tbd-strike path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: tbd-draw 420ms var(--tb-ease) 300ms forwards; }
@keyframes tbd-draw { to { stroke-dashoffset: 0; } }
.tbd-field { position: relative; }
.tbd-field .tbj-input { padding-right: 44px; }
.tbd-ring { position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--tb-bolt); border: 2px solid var(--tb-ink); pointer-events: none; }
.tbd-ring::before, .tbd-ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--tb-bolt); opacity: 0; }
html.motion-ok .tbd-ring.tbd-go::before { animation: tbd-pulse 1.1s var(--tb-ease) 1; }
html.motion-ok .tbd-ring.tbd-go::after { animation: tbd-pulse 1.1s var(--tb-ease) .25s 1; }
@keyframes tbd-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.tbd-hero-link { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; z-index: 1; }
.tbd-hero-link path { fill: none; stroke: var(--tb-bolt); stroke-width: 5; stroke-linecap: round; }
@media (min-width: 1024px) { .tbd-hero-link { display: block; } }
.tbd-stage-col { position: relative; z-index: 2; min-width: 0; }
.tbd-stage { position: relative; height: 380px; }
@media (min-width: 768px) { .tbd-stage { height: 460px; } }
@media (min-width: 1024px) { .tbd-stage { height: 560px; } }
.tbd-stage-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 14px; }
.tbd-motion-toggle { min-height: 32px; padding: 4px 12px; border: 1.5px solid var(--tb-line-2); border-radius: 999px; background: var(--tb-paper); color: var(--tb-ink); font: 700 13px/1 var(--font-sans); cursor: pointer; }
.tbd-motion-toggle:hover { border-color: var(--tb-ink); }
.tbd-motion-toggle[aria-pressed="true"] { background: var(--tb-ink); color: #fff; border-color: var(--tb-ink); }
.tbd-art { position: absolute; left: 0; top: 26%; width: 26%; aspect-ratio: 1; background: var(--tb-ink); border-radius: 14px; padding: 8%; display: grid; grid-template-rows: 1fr auto; gap: 6px; box-shadow: 0 18px 40px rgba(11, 11, 11, .22); z-index: 3; }
.tbd-wave { display: flex; align-items: flex-end; gap: 4%; height: 100%; min-height: 0; }
.tbd-wave i { flex: 1; display: block; height: var(--h); background: var(--tb-bolt); border-radius: 2px; }
.tbd-art .tbd-t { color: #fff; font-size: clamp(8px, .82vw, 11px); font-weight: 800; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tbd-art .tbd-t span { display: block; color: var(--tb-line-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbd-clip { position: absolute; aspect-ratio: 9 / 16; }
.tbd-clip.tbd-c1 { left: 30%; top: 0; width: 29%; z-index: 2; }
.tbd-clip.tbd-c2 { left: 63%; top: 12%; width: 33%; z-index: 4; }
.tbd-clip.tbd-c3 { left: 30%; top: 56%; width: 24%; z-index: 2; }
.tbd-stage .tbd-slot, .tbd-stage .tbd-media { height: 100%; }

/* the clip card: a phone-shaped frame with the editor's handle, the niche, the sound caption and two controls */
.tbd-slot { position: relative; }
.tbd-media { position: relative; width: 100%; aspect-ratio: 9 / 16; background: var(--tb-ink); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 34px rgba(11, 11, 11, .22); container-type: inline-size; }
.tbd-media video, .tbd-media img.tbd-poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; background: var(--tb-ink); }
.tbd-media video[data-fit="contain"], .tbd-media img.tbd-poster[data-fit="contain"] { object-fit: contain; background: transparent; }
.tbd-blur { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(26px) saturate(1.15); opacity: .75; }
.tbd-media video { opacity: 0; transition: opacity var(--motion-base) var(--tb-ease); }
.tbd-media.tbd-ready video { opacity: 1; }
.tbd-scene { position: absolute; inset: 0; --h: 58%; --r: -4deg; }
.tbd-scene .tbd-sun { position: absolute; left: 50%; top: var(--h); width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--tb-bolt); transform: translate(-50%, -34%); }
.tbd-scene .tbd-ground { position: absolute; left: -10%; right: -10%; top: var(--h); bottom: -10%; background: var(--tb-ink); transform: rotate(var(--r)); transform-origin: 50% 0; }
.tbd-scene .tbd-horizon { position: absolute; left: -10%; right: -10%; top: var(--h); height: 3px; background: var(--tb-bolt); transform: rotate(var(--r)); }
html.motion-ok .tbd-playing .tbd-scene .tbd-sun { animation: tbd-sun 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes tbd-sun { from { transform: translate(-50%, -34%); } to { transform: translate(-50%, -46%); } }
.tbd-who { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; z-index: 2; }
.tbd-who span { background: rgba(255, 255, 255, .95); color: var(--tb-ink); border-radius: 999px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbd-who .tbd-st { background: #FFF8DC; color: #7A5C00; }
.tbd-slot-real .tbd-who .tbd-st { background: #EEF8F0; color: #1B7F3B; }
.tbd-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .95); color: var(--tb-ink); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 5px 9px; z-index: 2; }
.tbd-cap span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbd-note { flex: none; width: 12px; height: 12px; }
.tbd-ctl { position: absolute; right: 8px; bottom: 40px; display: grid; gap: 6px; z-index: 3; }
.tbd-play, .tbd-snd { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1.5px solid var(--tb-ink); background: rgba(255, 255, 255, .95); color: var(--tb-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tbd-play::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--tb-ink); margin-left: 2px; }
.tbd-playing .tbd-play::before { width: 10px; height: 10px; border: 0; margin: 0; border-left: 3px solid var(--tb-ink); border-right: 3px solid var(--tb-ink); }
.tbd-snd svg { width: 18px; height: 18px; }
.tbd-snd .tbd-on { display: none; }
.tbd-snd[aria-pressed="true"] { background: var(--tb-bolt); }
.tbd-snd[aria-pressed="true"] .tbd-on { display: block; }
.tbd-snd[aria-pressed="true"] .tbd-off { display: none; }
.tbd-sndlabel { position: absolute; left: 8px; bottom: 44px; z-index: 3; font-size: 11px; font-weight: 700; color: var(--tb-ink); background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 4px 8px; pointer-events: none; }
.tbd-audible .tbd-sndlabel { background: var(--tb-bolt); }
@media (pointer: coarse) { .tbd-play, .tbd-snd { width: 44px; height: 44px; } .tbd-ctl { gap: 8px; bottom: 44px; } .tbd-sndlabel { bottom: 48px; } }
@container (max-width: 180px) { .tbd-who .tbd-st { display: none; } .tbd-who { font-size: 10px; } .tbd-sndlabel { display: none; } .tbd-ctl { bottom: 36px; } }
.tbd-under { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; color: var(--tb-ink-2); font-size: 14px; }
.tbd-under a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tb-ink); font-weight: 700; }

/* the offer strip: the facts in four columns under a rule, the promise behind one line */
.tbd-offer { position: relative; z-index: 2; padding: 40px 0; }
.tbd-offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.tbd-offer-h { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 18px; }
@media (min-width: 768px) { .tbd-offer-h { font-size: 26px; } }
.tbd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (min-width: 900px) { .tbd-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tbd-facts > div { border-top: 2px solid var(--tb-ink); padding: 14px 0 18px; min-width: 0; }
.tbd-facts dt { color: var(--tb-ink-3); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tbd-facts dd b { display: block; font-size: 19px; line-height: 1.25; margin-top: 6px; }
.tbd-facts dd span { display: block; color: var(--tb-ink-2); font-size: 15px; margin-top: 4px; }
.tbd-promise { border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); margin-top: 8px; }
.tbd-promise summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; font-size: 19px; }
.tbd-promise summary::-webkit-details-marker { display: none; }
.tbd-promise summary::after { content: '+'; font-size: 30px; line-height: 1; font-weight: 400; }
.tbd-promise[open] summary::after { content: '–'; }
.tbd-promise blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--tb-bolt); color: var(--tb-ink-2); font-size: 17px; line-height: 1.5; max-width: 68ch; }
.tbd-promise p { max-width: 68ch; padding-bottom: 16px; }

/* CAMPAIGN: the brief and the example chips left, the live preview card right, connector lines between them */
.tbd-links { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; z-index: 0; }
@media (min-width: 1024px) { .tbd-links { display: block; } }
.tbd-links path { fill: none; stroke: var(--tb-bolt); stroke-width: 3; stroke-linecap: round; opacity: .9; }
html.motion-ok .tbd-links.tbd-draw path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: tbd-drawlink 700ms var(--tb-ease) forwards; }
@keyframes tbd-drawlink { to { stroke-dashoffset: 0; } }
.tbd-brief, .tbd-pv { position: relative; z-index: 1; }
.tbd-brief { display: grid; gap: 18px; }
.tbd-textarea { min-height: 118px; }
.tbd-groups { display: grid; gap: 14px; }
.tbd-groups > .tbd-illus { justify-self: start; }
.tbd-group { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--tb-line); }
.tbd-group h3 { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.tbd-group h3 small { color: var(--tb-ink-3); font-size: 13px; font-weight: 600; }
.tbd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tbd-chips li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--tb-line-2); border-radius: 999px; background: var(--tb-paper); font-size: 15px; font-weight: 600; }
.tbd-pv { padding: 20px; }
@media (min-width: 1024px) { .tbd-pv { position: sticky; top: calc(var(--tb-header-h) + 16px); } }
.tbd-pv h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tbd-lines { margin-top: 10px; }
.tbd-lines dt label { font-weight: 600; }
.tbd-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--tb-line-2); outline: none; margin: 10px 0 2px; }
.tbd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tb-bolt); border: 2px solid var(--tb-ink); cursor: pointer; }
.tbd-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--tb-bolt); border: 2px solid var(--tb-ink); cursor: pointer; }
.tbd-range:focus-visible { outline: 3px solid var(--tb-ink); outline-offset: 6px; }
.tbd-select { width: auto; min-height: 40px; padding: 6px 32px 6px 10px; border-radius: 8px; font-size: 15px; font-weight: 700; background: var(--tb-paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='%230B0B0B' stroke-width='2'/></svg>") no-repeat right 10px center / 12px; -webkit-appearance: none; appearance: none; }
.tbd-ceiling { margin-top: 12px; }
.tbd-pv .tbd-start-btn { width: 100%; justify-content: center; margin-top: 16px; }

/* the transition strip: the tall loop in a letterbox with a fade into the clips chapter */
.tbd-transition { position: relative; height: 180px; overflow: hidden; background: var(--tb-paper); }
@media (min-width: 1024px) { .tbd-transition { height: 260px; } }
.tbd-transition img, .tbd-transition video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.tbd-transition video { opacity: 0; transition: opacity var(--motion-slow) var(--tb-ease); }
.tbd-transition.tbd-ready video { opacity: 1; }
.tbd-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--tb-paper), transparent 30%, transparent 70%, var(--tb-tint)); }

/* CLIPS: one list of cards. Phones: a snap scroller. Desktop (1024 px and up): the layered carousel. */
.tbd-gal-wrap { outline: none; }
.tbd-gal-wrap:focus-visible { outline: 3px solid var(--tb-ink); outline-offset: 6px; border-radius: 8px; }
.tbd-gal { display: flex; gap: 14px; list-style: none; margin: 0 calc(-1 * var(--tb-gutter)); padding: 6px var(--tb-gutter) 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tbd-gal::-webkit-scrollbar { display: none; }
.tbd-cc { flex: none; width: 74vw; max-width: 320px; scroll-snap-align: center; }
.tbd-car-nav { display: none; }
@media (min-width: 1024px) {
    .tbd-gal { display: block; position: relative; height: 560px; margin: 0; padding: 0; overflow: visible; }
    .tbd-cc { position: absolute; left: 50%; top: 0; width: 300px; max-width: none; margin-left: -150px; cursor: pointer; transform-origin: center; transition: transform var(--motion-slow) var(--tb-ease), opacity var(--motion-slow) var(--tb-ease); }
    .tbd-cc[data-pos="0"] { transform: translateX(0) scale(1); z-index: 6; opacity: 1; cursor: default; }
    .tbd-cc[data-pos="1"] { transform: translateX(64%) scale(.84); z-index: 5; opacity: .92; }
    .tbd-cc[data-pos="-1"] { transform: translateX(-64%) scale(.84); z-index: 5; opacity: .92; }
    .tbd-cc[data-pos="2"] { transform: translateX(116%) scale(.7); z-index: 4; opacity: .7; }
    .tbd-cc[data-pos="-2"] { transform: translateX(-116%) scale(.7); z-index: 4; opacity: .7; }
    .tbd-cc[data-pos="x"] { transform: translateX(0) scale(.5); z-index: 1; opacity: 0; pointer-events: none; }
    .tbd-cc[data-pos="0"] .tbd-media { box-shadow: 0 30px 70px rgba(11, 11, 11, .32); }
    .tbd-cc .tbd-under { opacity: 0; transition: opacity var(--motion-base) var(--tb-ease); }
    .tbd-cc[data-pos="0"] .tbd-under { opacity: 1; }
    .tbd-car-nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
}
.tbd-arrow { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1.5px solid var(--tb-ink); background: var(--tb-paper); color: var(--tb-ink); font: 700 20px/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tbd-arrow:hover { background: var(--tb-tint); }
.tbd-cur { min-width: 12ch; min-height: 24px; margin: 0; text-align: center; color: var(--tb-ink-2); font-size: 15px; line-height: 1.6; }

/* RESULTS: the clips with their recorded views beside the chart, the rule applied and labelled */
.tbd-edits { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.tbd-edits li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--tb-line); }
.tbd-edits li:first-child { border-top: 0; }
.tbd-thumb { position: relative; width: 44px; aspect-ratio: 9 / 16; border-radius: 8px; background: var(--tb-ink); overflow: hidden; }
.tbd-thumb img { width: 100%; height: 100%; object-fit: cover; }
html.motion-ok .tbd-edits.tbd-settle .tbd-thumb { animation: tbd-settle var(--motion-slow) var(--tb-ease) both; animation-delay: var(--d, 0ms); }
@keyframes tbd-settle { from { transform: translateY(-18px) scale(1.15); opacity: .4; } to { transform: none; opacity: 1; } }
.tbd-edits b { display: block; font-size: 16px; }
.tbd-edits .tbd-m { display: block; color: var(--tb-ink-3); font-size: 14px; }
.tbd-edits .tbd-e { text-align: right; font-variant-numeric: tabular-nums; }
.tbd-edits .tbd-e b { font-size: 17px; }
.tbd-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tbd-chart-head b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tbd-seg { display: inline-flex; border: 1.5px solid var(--tb-line-2); border-radius: 8px; overflow: hidden; }
.tbd-seg button { min-height: 36px; padding: 0 14px; border: 0; background: var(--tb-paper); color: var(--tb-ink); font: 700 14px/1 var(--font-sans); cursor: pointer; }
.tbd-seg button + button { border-left: 1.5px solid var(--tb-line-2); }
.tbd-seg button[aria-pressed="true"] { background: var(--tb-bolt); }
.tbd-chart { width: 100%; height: auto; display: block; margin-top: 12px; touch-action: pan-y; }
.tbd-chart .tbd-grid-l { stroke: var(--tb-line); stroke-width: 1; }
.tbd-chart .tbd-axis { font: 600 11px var(--font-sans); fill: var(--tb-ink-3); }
.tbd-chart .tbd-area { fill: var(--tb-tint); }
.tbd-chart .tbd-ln { fill: none; stroke: var(--tb-ink); stroke-width: 2.5; stroke-linejoin: round; }
.tbd-chart .tbd-pt { fill: var(--tb-bolt); stroke: var(--tb-ink); stroke-width: 2; }
.tbd-chart .tbd-cross { stroke: var(--tb-ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
html.motion-ok .tbd-chart.tbd-draw .tbd-ln { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: tbd-drawlink 900ms var(--tb-ease) forwards; }
.tbd-tip { min-height: 22px; margin-top: 6px; color: var(--tb-ink-2); font-size: 14px; }
.tbd-tiles { margin-top: 14px; }
.tbd-settle { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--tb-ink); }
.tbd-settle .tbd-illus { margin-top: 6px; }

/* the sticky start bar on phones, shown once the hero's button has scrolled away */
.tbd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px var(--tb-gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--tb-paper); border-top: 1px solid var(--tb-line); box-shadow: 0 -8px 24px rgba(11, 11, 11, .08); }
.tbd-sticky .tb-btn { width: 100%; justify-content: center; }
@media (min-width: 768px) { .tbd-sticky { display: none !important; } }
