/* "Your briefing" (app-briefing-player.js, -stage.js, -marcus.js): the narrated film of a comparison. App-owned.
   Flat, in the BenchMarcus logo's colours whichever theme the page is in (user ask, 30 Oct 2026: in keeping with the
   logo, no glass): the logo's ink #1B2B40 for the night, its tile blue #2F588C for the cards, its light bars #9BC0E8 /
   #CFE0F3 for your competitors and the quiet words, Marcus's yellow #FFF55B for you; where you trail, the app's soft
   red. Solid fills, no blur, no glow. It fills the window, and on a phone the whole screen, in portrait or landscape;
   the stage is framed for its shape by the script (stageLayout), which hands the frame's places over as custom
   properties (--chart-*, --band-*, --mid-y, --hero-*, --host-*, --end-*, --foot). */

html.br-open, html.br-open body { overflow: hidden; }

.br-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #1B2B40; color: #fff; overflow: hidden;
  /* clip, not just hidden: a hidden box still scrolls when something in it is focused or scrolled into view, and the
     whole film then sits shifted up inside the window, Marcus cut off at the top and a gap under the bar (Nov 2026). */
  overflow: clip;
}
.br-dialog::backdrop { background: #1B2B40; }
.br-dialog:focus { outline: none; }

.br {
  --night: #1B2B40; --deep: #14223A; --tile: #2F588C; --tile-2: #284D7C; --bar: #9BC0E8; --bar-lit: #CFE0F3;
  --you: #FFF55B; --behind: #FF9C9C; --ink: #fff; --dim: #CFE0F3; --quiet: #9BC0E8; --bar-h: 64px;
  position: absolute; inset: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.br :where(p, h2) { margin: 0; }
/* :where keeps this reset at one class's weight, so each button's own colour below still wins. */
.br :where(button) { font: inherit; color: inherit; cursor: pointer; }
.br :focus-visible { outline: 2px solid var(--you); outline-offset: 3px; }
.br .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.br-sub { font-size: .95rem; color: var(--dim); line-height: 1.35; }

/* ---------------------------------------------------------------- the stage */
.br-stagebox { position: absolute; inset: 0; }
.br-stage { position: absolute; inset: 0; overflow: hidden; overflow: clip; background: var(--night); }
.br-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Labels pinned to the charts: solid pills. */
.br-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.br-label {
  position: absolute; left: 0; top: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 100%)); opacity: var(--a, 1);
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; color: #fff; background: var(--tile);
}
.br-label.is-you { color: var(--night); background: var(--you); }
.br-label.is-rival { color: #fff; background: var(--tile); }
.br-label.is-watch { color: var(--night); background: var(--bar-lit); }
.br-label.is-hub { color: var(--bar-lit); background: var(--tile); letter-spacing: .02em; }
.br-label.is-year, .br-label.is-future { font: 600 11px/1 Inter, system-ui, sans-serif; padding: 2px 4px; background: transparent; transform: translate(calc(var(--x) - 50%), var(--y)); color: var(--quiet); }
.br-label.is-future { color: var(--you); }
/* Each competitor by name: on the register's dots, a small quiet pill; under the bars, slanted down to the left from
   the foot of its bar (its right end at --x, --y), as a chart's axis names are (AXIS_DROP in app-briefing-stage.js). */
.br-label.is-name { padding: 2px 7px; font-size: 11px; font-weight: 500; color: var(--bar-lit); background: rgba(47, 88, 140, .85); }
.br-label.is-axis { padding: 0; font: 500 11px/1 Inter, system-ui, sans-serif; color: var(--dim); background: transparent; border-radius: 0;
  transform-origin: 100% 0; transform: translate(calc(var(--x) - 100%), var(--y)) rotate(-38deg); }

/* ---------------------------------------------------------------- the cards */
.br-cards { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.br-card {
  position: absolute; display: grid; gap: 6px; padding: 18px 22px; border-radius: 18px; background: var(--tile); box-sizing: border-box;
  /* Placed by its centre where --card-x/--card-y say (-50%), rising a little into place as it comes on. */
  opacity: 0; transform: translate(var(--card-x, 0px), calc(var(--card-y, 0px) + 14px)) scale(.96);
  transition: opacity .28s ease, transform .4s cubic-bezier(.2, 1.25, .3, 1);
}
.br-card.is-on { opacity: 1; transform: translate(var(--card-x, 0px), var(--card-y, 0px)) scale(1); }
.br-card-t { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.br-big { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(2rem, 5.4vmin, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; color: #fff; }
.br-big small { font-size: .45em; color: var(--dim); letter-spacing: 0; }
.br-big.is-you, .br-big.is-future, .br-big.is-prize { color: var(--you); }
.br-big.is-watch, .br-big.is-rival { color: var(--bar-lit); }

/* For the beats with a chart to read: in the column beside it (landscape), level with the middle of the room; or
   in the band under it (portrait), in the band's middle, clear of the captions (--band-*, --mid-y: stageLayout). */
.br-stage.is-landscape .br-card { left: var(--band-x); right: calc(var(--pad) * 1.5); top: var(--mid-y); max-width: 440px; --card-y: -50%; }
.br-stage.is-portrait .br-card { left: var(--pad); right: var(--pad); top: calc(var(--band-y) + var(--band-h) / 2); --card-y: -50%; text-align: center; justify-items: center; padding: 14px 18px; }
/* In the middle of the room between the top strip and the captions, for the beats whose card is the picture. */
.br-stage .br-card:is([data-beat="scorecard"], [data-beat="lead"], [data-beat="trail"], [data-beat="checks"], .is-tour, .is-offer),
.br-stage[data-scene="health"] .br-card[data-beat="prize"] {
  left: 50%; right: auto; top: var(--mid-y); width: min(520px, calc(100% - var(--pad) * 2)); max-width: none; --card-x: -50%; --card-y: -50%;
  text-align: center; justify-items: center; padding: 24px 26px;
}
/* The forecast's two figures under its big one: stacked, or side by side under a portrait chart. */
.br-subs { display: grid; gap: 2px; }
.br-stage.is-portrait .br-subs { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 10px; }
.br-stage.is-portrait .br-subs > span + span::before { content: '·'; margin-right: 10px; color: var(--quiet); }

.br-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.br-vs > p { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--tile-2); }
.br-vs-l { font-size: .75rem; color: var(--dim); }
.br-vs-v { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(1.3rem, 3.6vmin, 2rem); font-weight: 600; }
.br-vs-you .br-vs-v { color: var(--you); }
.br-card.is-trail .br-vs-you .br-vs-v { color: var(--behind); }
/* Who is best where you trail, by name, coming in after the bars. */
.br-best { display: flex; align-items: baseline; gap: 8px; width: 100%; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--tile-2); text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease .6s, transform .3s ease .6s; }
.br-card.is-on .br-best { opacity: 1; transform: none; }
.br-best-k { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.br-best-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--bar-lit); }
.br-best-v { flex: none; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 600; color: var(--bar-lit); }

/* The ring of measures: a flat segment each, yellow where you lead, light blue where level, red where you trail. */
.br-ring { position: relative; width: 132px; height: 132px; margin: 6px auto 2px; }
.br-ring-s { position: absolute; inset: 0; border-radius: 50%; --gap: 5deg;
  background: conic-gradient(from calc(360deg / var(--n) * var(--i)), var(--c) 0 calc(360deg / var(--n) - var(--gap)), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%); mask: radial-gradient(circle, transparent 56%, #000 57%);
  opacity: 0; transition: opacity .25s ease calc(var(--i) * 55ms + 120ms); }
.br-ring-s.is-lead { --c: var(--you); }
.br-ring-s.is-level { --c: rgba(155, 192, 232, .45); }
.br-ring-s.is-trail { --c: var(--behind); }
.br-card.is-on .br-ring-s { opacity: 1; }
.br-ring-n { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 14px; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 2.6rem; font-weight: 600; color: var(--you); }
.br-ring-of { position: absolute; left: 0; right: 0; top: 60%; font-size: .8rem; color: var(--dim); text-align: center; }

.br-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; width: 100%; }
.br-check { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--tile-2); font-size: .92rem;
  opacity: 0; transform: translateX(-8px); transition: opacity .25s ease calc(var(--i) * 90ms + 100ms), transform .3s ease calc(var(--i) * 90ms + 100ms); }
.br-card.is-on .br-check { opacity: 1; transform: none; }
.br-check-i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.br-check.is-pass .br-check-i { background: var(--you); }
.br-check.is-pass .br-check-i::before { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: translateY(-1px) rotate(-45deg); }
.br-check.is-fail .br-check-i { background: var(--behind); }
.br-check.is-fail .br-check-i::before { content: '!'; font-size: 12px; font-weight: 800; color: var(--night); }

/* You against your typical competitor as a pair of bars, growing in as the card comes on (--w: 0..1). */
.br-pair { display: grid; gap: 7px; width: 100%; margin-top: 8px; }
.br-pair-r { display: grid; grid-template-columns: 4.6em 1fr auto; align-items: center; gap: 10px; font-size: .8rem; text-align: left; }
.br-pair-l { color: var(--dim); }
.br-pair-t { height: 10px; border-radius: 5px; background: var(--tile-2); overflow: hidden; }
.br-pair-f { display: block; height: 100%; border-radius: 5px; transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s cubic-bezier(.2, .9, .2, 1) .15s; }
.br-card.is-on .br-pair-f { transform: scaleX(var(--w, 1)); }
.br-pair-f.is-you { background: var(--you); }
.br-pair-f.is-behind { background: var(--behind); }
.br-pair-f.is-typical { background: var(--bar); }
.br-pair-v { font-weight: 600; min-width: 4.5em; text-align: right; }

/* The scorecard's measures, as chips: where you lead (yellow) and trail (red). */
.br-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.br-chip { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--night);
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease calc(var(--i) * 70ms + 450ms), transform .3s ease calc(var(--i) * 70ms + 450ms); }
.br-chip.is-lead { background: var(--you); }
.br-chip.is-trail { background: var(--behind); }
.br-card.is-on .br-chip { opacity: 1; transform: none; }

/* The tour: a phone, flat, with the app's own tab bar along its foot. The tabs Marcus names are lit, the one he is
   saying now in yellow with its screen showing. */
.br-card.is-tour { padding: 18px 22px 22px; }
.br-phone { position: relative; display: grid; grid-template-rows: 1fr auto; width: min(250px, 62vw); height: min(400px, calc(var(--free-h) - 110px)); min-height: 230px;
  margin-top: 6px; border-radius: 30px; border: 3px solid var(--bar); background: var(--night); overflow: hidden; }
.br-phone::before { content: ''; position: absolute; top: 8px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: var(--tile); }
.br-phone-screen { position: relative; }
.br-pane { position: absolute; inset: 0; display: grid; align-content: start; gap: 6px; padding: 30px 16px 12px; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s ease; }
.br-pane.is-now { opacity: 1; transform: none; }
.br-pane-t { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--you); }
.br-pane-s { font-size: .78rem; color: var(--dim); line-height: 1.35; }
.br-sk { display: grid; gap: 8px; margin-top: 8px; }
.br-sk-r { display: block; height: 14px; border-radius: 7px; background: var(--tile); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .6s cubic-bezier(.2, .9, .2, 1) calc(var(--i) * 80ms + 120ms); }
.br-pane.is-now .br-sk-r { transform: scaleX(var(--w, 1)); }
.br-sk-forecast .br-sk-r:nth-child(n + 3), .br-sk-improve .br-sk-r:last-child { background: var(--you); opacity: .8; }
.br-phone-tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px 10px; border-top: 1px solid var(--tile); background: var(--deep); }
.br-phone-tab { position: relative; display: grid; justify-items: center; gap: 3px; padding-top: 6px; font-size: .58rem; font-weight: 600; color: var(--quiet); opacity: .55;
  transition: color .25s ease, opacity .25s ease; }
.br-phone-tab .ph-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.br-phone-tab.is-lit { opacity: 1; color: var(--bar-lit); }
.br-phone-tab.is-now { color: var(--you); }
.br-phone-tab.is-now::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 2px; background: var(--you); }

/* The Powdr offer: the price first; what it gives you on the next line; the yearly deal on the last. */
.br-card.is-offer { gap: 8px; }
.br-price small { font-size: .4em; }
.br-perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; text-align: left; }
.br-perk { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--tile-2); font-size: .9rem;
  opacity: .25; transform: translateX(-6px); transition: opacity .3s ease calc(var(--i) * 160ms), transform .4s ease calc(var(--i) * 160ms); }
.br-perk .br-check-i { background: var(--you); }
.br-perk .br-check-i::before { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: translateY(-1px) rotate(-45deg); }
.br-stage:is([data-beat="pitch"], [data-beat="pitch-offer"]) .br-perk { opacity: 1; transform: none; transition-delay: calc(var(--i) * 140ms + 700ms); }
.br-deal { width: 100%; margin-top: 4px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--you); display: grid; gap: 4px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease .1s, transform .5s cubic-bezier(.2, .9, .2, 1) .1s; }
.br-stage[data-beat="pitch-offer"] .br-deal { opacity: 1; transform: none; }
.br-deal-t { font-weight: 600; }
.br-deal-tag { display: inline-block; padding: 2px 8px; margin-right: 4px; border-radius: 999px; font-size: .75rem; color: var(--night); background: var(--you); }
.br-deal-s { font-size: .82rem; color: var(--dim); }

/* The title, under Marcus at the start. */
.br-title { position: absolute; left: 0; right: 0; top: calc(var(--hero-y) + var(--hero-s) * .62); display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 var(--pad); z-index: 3; pointer-events: none;
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, 1.2, .3, 1); }
.br-title.is-on { opacity: 1; transform: none; }
.br-title-n { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(1.8rem, 6vmin, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }

/* The last screen's buttons, beside Marcus (landscape) or under him (portrait). */
.br-cta { position: absolute; z-index: 4; display: grid; gap: 10px; opacity: 0; pointer-events: none; transform: translateY(calc(var(--cta-y, 0px) + 10px)); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .2, 1); }
.br-cta.is-on { opacity: 1; pointer-events: auto; transform: translateY(var(--cta-y, 0px)); }
.br-stage.is-landscape .br-cta { left: calc(var(--end-x) + var(--end-s) * .75); top: var(--end-y); width: min(340px, 40%); --cta-y: -50%; }
.br-stage.is-portrait .br-cta { left: var(--pad); right: var(--pad); top: calc(var(--end-y) + var(--end-s) * .7); justify-items: stretch; }
.br-cta button { min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 600; border: 0; color: #fff; background: var(--tile); }
.br-cta .br-cta-go { color: var(--night); background: var(--you); }
.br-cta button:hover { filter: brightness(1.08); }

/* ---------------------------------------------------------------- Marcus */
.br-marcus {
  position: absolute; left: 0; top: 0; z-index: 5; width: 160px; height: 160px; padding: 0; border: 0; border-radius: 26%; background: none;
  transform-origin: 50% 50%; transform: translate(calc(var(--mx, 50%) - 80px), calc(var(--my, 50%) - 80px)) scale(var(--msc, 1));
}
.br-marcus:focus-visible { outline-offset: 6px; }
.br-mk { width: 100%; height: 100%; overflow: visible; }
.br-mk-tile { transform-box: fill-box; transform-origin: center; transform: scale(calc(.6 + .4 * var(--tile, 1))); opacity: var(--tile, 1); }
.br-mk-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.br-mk-b1 { transform: scaleY(var(--b1, 1)); }
.br-mk-b2 { transform: scaleY(var(--b2, 1)); }
.br-mk-marcus { transform: scaleY(var(--b3, 1)); }
.br-mk-eyes { transform-box: fill-box; transform-origin: center; transform: translate(var(--ex, 0px), var(--ey, 0px)) scaleY(calc(1 - .88 * var(--blink, 0))); opacity: var(--face, 1); }
.br-mk-smile { opacity: calc(var(--face, 1) * (1 - var(--mouth, 0))); }
.br-mk-talk { transform-box: fill-box; transform-origin: center; transform: scaleY(calc(.2 + .8 * var(--mouth, 0))); opacity: calc(var(--face, 1) * min(1, var(--mouth, 0) * 3)); }
.br-mk-base { opacity: var(--tile, 1); }
.br-mk-badge { position: absolute; right: -4%; bottom: -4%; width: 34%; height: 34%; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); border: 2px solid #fff; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s ease; }
.br-mk-badge-i { width: 0; height: 0; margin-left: 10%; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #FFF55B; }
.br-marcus.is-paused .br-mk-badge, .br-marcus:hover .br-mk-badge, .br-marcus:focus-visible .br-mk-badge { opacity: 1; transform: none; }
.br-marcus:not(.is-paused) .br-mk-badge-i { width: 12px; height: 13px; margin: 0; border: 0; border-left: 4px solid #FFF55B; border-right: 4px solid #FFF55B; }
/* In his corner (a small pose): the badge always shows, about half his size, with a play or pause sign big enough to
   read at a glance (user ask, 3 Nov 2026). Sizes are in the button's own 160px, which the pose scales down (--msc). */
.br-marcus.is-corner .br-mk-badge { right: -16%; bottom: -16%; width: 54%; height: 54%; border-width: 5px; opacity: 1; transform: none; }
.br-marcus.is-corner .br-mk-badge-i { border-width: 20px 0 20px 34px; margin-left: 12%; }
.br-marcus.is-corner:not(.is-paused) .br-mk-badge-i { width: 34px; height: 38px; margin: 0; border: 0; border-left: 12px solid #FFF55B; border-right: 12px solid #FFF55B; }
.br-marcus.is-corner:hover .br-mk-badge { background: var(--tile); }
.br-marcus.is-hop .br-mk { animation: br-hop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes br-hop { 0% { transform: none; } 30% { transform: translateY(-9%) scale(1.06, .94); } 60% { transform: translateY(0) scale(.96, 1.05); } 100% { transform: none; } }

/* "Tap me", beside Marcus wherever he is, the first time. */
.br-hint { position: absolute; z-index: 6; left: calc(var(--mk-x, 60px) + var(--mk-s, 60px) * .56); top: calc(var(--mk-y, 60px) - var(--mk-s, 60px) * .42); padding: 7px 12px; border-radius: 12px 12px 12px 3px;
  font-size: .82rem; font-weight: 600; white-space: nowrap; color: var(--night); background: var(--you); opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .4s ease; pointer-events: none; }
.br.has-hint .br-hint { opacity: 1; transform: none; }
/* No room on his right (the player picks the side): on his left, or over his head. */
.br-hint[data-side="left"] { left: calc(var(--mk-x, 60px) - var(--mk-s, 60px) * .56); border-radius: 12px 12px 3px 12px; transform: translateX(calc(-100% + 6px)); }
.br.has-hint .br-hint[data-side="left"] { transform: translateX(-100%); }
.br-hint[data-side="above"] { left: var(--mk-x, 60px); top: calc(var(--mk-y, 60px) - var(--mk-s, 60px) * .5 - 44px); border-radius: 12px; transform: translate(-50%, 6px); }
.br.has-hint .br-hint[data-side="above"] { transform: translate(-50%, 0); }
.br.is-poster .br-hint { display: none; }

/* ---------------------------------------------------------------- captions and the chapter */
.br-cc { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: min(92%, 900px);
  padding: 10px 16px; border-radius: 12px; background: var(--deep); opacity: 0; transition: opacity .25s ease, bottom .3s ease; pointer-events: none; }
.br-cc.is-on { opacity: 1; }
.br.is-cc-off .br-cc, .br.is-poster .br-cc { opacity: 0; }
.br.is-idle .br-cc:not(.br-cc-probe) { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
/* The captions' room, for the player to measure (footOf, captionRoom): an unseen caption as wide as one can be and
   two lines tall (one on a phone on its side), where the captions sit while the controls show. */
.br-cc-probe { visibility: hidden; width: 100%; transition: none; }
.br-cc-t { font-size: clamp(15px, calc(1.6vmin + 9px), 24px); font-weight: 500; line-height: 1.4; text-align: center; color: rgba(155, 192, 232, .8); }
.br-w { transition: color .12s linear; }
.br-w.is-said { color: #fff; }
.br-chapter { position: absolute; z-index: 6; top: calc(var(--pad, 16px) * .9 + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--dim); background: var(--tile); white-space: nowrap; transition: opacity .3s ease; }
.br-chapter:empty, .br.is-poster .br-chapter, .br-chapter.is-under { opacity: 0; }
/* On a narrow screen "Tap me to pause" reaches the middle; the chapter steps aside for the few seconds it shows. */
@media (max-width: 560px) { .br.has-hint .br-chapter { opacity: 0; } }

/* ---------------------------------------------------------------- the poster */
/* Under Marcus, wherever the stage's shape puts him (--hero-*: stageLayout). */
.br-poster { position: absolute; inset: 0; z-index: 7; display: grid; align-content: start; justify-items: center; gap: 12px; text-align: center;
  padding: calc(var(--hero-y, 30vh) + var(--hero-s, 200px) * .56 + 8px) 24px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(27, 43, 64, .55); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
/* Hidden once faded, so Tab can't land on its unseen buttons (a long company name pushes "Not now" past the window). */
.br.is-poster .br-poster { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.br.is-poster .br-marcus { z-index: 8; }
.br-poster-t { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(1.8rem, 6vmin, 3.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.br-poster-t:focus { outline: none; }
.br-poster-play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 28px 14px 22px; border: 0; border-radius: 999px; font-size: 1.05rem; font-weight: 700;
  color: var(--night); background: var(--you); }
.br-poster-play .br-ic { width: 26px; height: 26px; }
.br-poster-play.is-busy { background: rgba(255, 245, 91, .6); }
.br-poster-play.is-busy .br-ic { animation: br-pulse 1.2s ease-in-out infinite; }
@keyframes br-pulse { 50% { opacity: .35; } }
.br-poster-note { font-size: .85rem; color: var(--dim); }
.br-poster-skip { background: none; border: 0; padding: 8px 12px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- the controls */
.br-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: 12px; background: none; color: var(--ink); }
.br-btn:hover { background: rgba(155, 192, 232, .14); }
/* A control the film has no use for (the speed, for a voice that speaks at its own pace). */
.br-btn[hidden] { display: none; }
.br-ic { width: 24px; height: 24px; }
.br-close { position: absolute; z-index: 9; top: calc(var(--pad, 16px) * .6 + env(safe-area-inset-top, 0px)); right: calc(var(--pad, 16px) * .6 + env(safe-area-inset-right, 0px)); border-radius: 50%; background: var(--tile); width: 44px; }
.br-close:hover { background: var(--tile-2); }
.br-bar { position: absolute; z-index: 9; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: var(--deep); transition: opacity .35s ease, transform .35s ease; }
.br-bar-r { display: flex; align-items: center; gap: 2px; }
.br-time { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--dim); white-space: nowrap; min-width: 84px; text-align: center; }
.br-progress { position: relative; flex: 1; height: 34px; min-width: 120px; --p: 0; }
.br-wave { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 26px; }
.br-progress-fill { position: absolute; left: 0; top: 4px; height: 26px; width: calc(var(--p) * 100%); pointer-events: none; background: rgba(255, 245, 91, .2); border-right: 2px solid var(--you); }
.br-ticks { position: absolute; inset: 0; pointer-events: none; }
.br-tick { position: absolute; top: 1px; bottom: 1px; left: calc(var(--p) * 100%); width: 12px; margin-left: -6px; padding: 0; border: 0; background: none; pointer-events: auto; }
.br-tick::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--bar-lit); }
.br-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.br-seek::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.br-seek::-moz-range-track { height: 100%; background: transparent; }
.br-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 10px; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 3px var(--night); }
.br-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 3px var(--night); }
.br-speed-t { font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.br-speed.is-busy .br-speed-t { animation: br-pulse 1s ease-in-out infinite; }
.br-cc-i { font: 800 11px/1 Inter, sans-serif; padding: 4px 5px; border-radius: 4px; border: 1.5px solid currentColor; }
.br-ccbtn[aria-pressed="false"] { color: var(--quiet); }
.br-ccbtn[aria-pressed="false"] .br-cc-i { text-decoration: line-through; }
/* The sound: the speaker mutes; the slider beside it sets the level (--v, 0..1: the player), shown in the window on a
   wider screen only (the rules at the end), as a phone has its own volume buttons. */
.br-vol { display: flex; align-items: center; }
.br-vol[hidden] { display: none; }
.br-vol-r { --v: 1; display: none; width: 84px; height: 24px; margin: 0 8px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.br-vol-r::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--you) calc(var(--v) * 100%), rgba(155, 192, 232, .22) 0); }
.br-vol-r::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(155, 192, 232, .22); }
.br-vol-r::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--you); }
.br-vol-r::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 3px var(--night); }
.br-vol-r::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 3px var(--night); }
.br.is-poster .br-bar, .br.is-poster .br-close { opacity: 0; pointer-events: none; }
.br.is-idle { cursor: none; }
.br.is-idle .br-bar, .br.is-idle .br-close, .br.is-idle .br-chapter { opacity: 0; pointer-events: none; }
.br.is-idle .br-bar { transform: translateY(10px); }
/* A word from the player (no narration, a speed it couldn't get): small and quiet, just above the captions, and gone
   after a few seconds (say(): user ask, 30 Oct 2026, not in the viewer's face). --foot: stageLayout. */
.br-note { position: absolute; z-index: 7; left: 50%; bottom: calc(var(--foot, 150px) + 2px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 500; text-align: center; color: var(--dim); background: var(--deep); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.br.has-note .br-note { opacity: 1; }
.br.is-poster .br-note { bottom: auto; top: calc(var(--pad, 16px) * 1.2 + env(safe-area-inset-top, 0px)); }

/* The transcript: a panel over the right of the stage, or the foot of a portrait screen. */
.br-tx { position: absolute; z-index: 10; top: 72px; right: 14px; bottom: calc(var(--bar-h) + 18px); width: min(380px, calc(100% - 28px)); margin: 0; padding: 10px; list-style: none; overflow-y: auto;
  border-radius: 16px; background: var(--deep); user-select: text; -webkit-user-select: text; }
.br-tx-b { width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; line-height: 1.45; color: var(--quiet); }
.br-tx-b:hover { background: rgba(155, 192, 232, .12); color: var(--ink); }
.br-tx-l.is-now .br-tx-b { color: #fff; background: var(--tile); box-shadow: inset 3px 0 0 var(--you); }

/* ---------------------------------------------------------------- a phone: the whole screen, either way up */
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {
  .br { --bar-h: 58px; }
  .br-bar { flex-wrap: wrap; row-gap: 0; padding-top: 4px; }
  .br-progress { order: -1; flex: 1 0 100%; height: 30px; }
  .br-wave, .br-progress-fill { height: 22px; }
  .br-seek::-webkit-slider-thumb { margin-top: 8px; }
  .br-time { min-width: 0; margin-right: auto; }
  .br-bar-r { margin-left: auto; }
  .br-card { padding: 12px 16px; border-radius: 16px; }
  .br-stage .br-card:is([data-beat="scorecard"], [data-beat="lead"], [data-beat="trail"], [data-beat="checks"]),
  .br-stage[data-scene="health"] .br-card[data-beat="prize"] { padding: 16px 18px; }
  .br-big { font-size: clamp(1.7rem, 8vmin, 2.6rem); }
  .br-ring { width: 108px; height: 108px; }
  .br-ring-n { font-size: 2.1rem; }
  .br-cc { max-width: calc(100% - 20px); bottom: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom, 0px)); padding: 8px 12px; }
  .br-tx { top: auto; left: 10px; right: 10px; width: auto; max-height: 55%; bottom: calc(var(--bar-h) + 44px + env(safe-area-inset-bottom, 0px)); }
}
/* A phone on its side: little height, so the cards, the last screen's buttons and the captions (one line at a time)
   tighten to fit between the top strip and the captions. */
@media (pointer: coarse) and (max-height: 500px) {
  .br-stage.is-landscape .br-card { padding: 10px 14px; gap: 2px; }
  .br-stage .br-card:is([data-beat="scorecard"], [data-beat="lead"], [data-beat="trail"], [data-beat="checks"]),
  .br-stage[data-scene="health"] .br-card[data-beat="prize"] { padding: 10px 16px; gap: 2px; width: min(680px, calc(100% - var(--pad) * 2)); }
  .br-checks { grid-template-columns: 1fr 1fr; gap: 4px 6px; margin-top: 4px; }
  .br-check { padding: 4px 10px; font-size: .82rem; }
  .br-check:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .br-ring { width: 84px; height: 84px; }
  .br-ring-n { font-size: 1.6rem; }
  /* The ring beside its words. */
  .br-stage .br-card[data-beat="scorecard"] { width: min(520px, calc(100% - var(--pad) * 2)); grid-template-columns: auto 1fr; grid-template-areas: 'ring k' 'ring sub'; column-gap: 16px; align-items: center; text-align: left; justify-items: start; }
  .br-card[data-beat="scorecard"] .br-k { grid-area: k; align-self: end; }
  .br-card[data-beat="scorecard"] .br-ring { grid-area: ring; margin: 0; }
  .br-card[data-beat="scorecard"] .br-sub { grid-area: sub; align-self: start; }
  .br-vs { gap: 8px; margin-top: 2px; }
  .br-vs > p { gap: 2px; padding: 6px 10px; }
  .br-vs-v { font-size: 1.2rem; }
  .br-cta { gap: 8px; }
  .br-cta button { min-height: 40px; padding: 8px 18px; }
  .br-cc-t { font-size: 14px; }
  .br-cc-probe .br-cc-l2 { display: none; }
  .br-title-n { font-size: 1.5rem; }
  .br-poster { gap: 6px; }
  .br-poster-t { font-size: 1.5rem; }
  .br-poster-play { min-height: 48px; padding: 10px 22px 10px 18px; }
  /* The phone on its side: the tour's phone turns wide and short, the offer's perks go two by two. */
  /* A phone on its side has little height: the tour's phone keeps its screen's words and its tab bar, the offer its
     price, its perks in a row and the deal; the lead and trail cards keep their two figures, not the bars. */
  .br-stage .br-card:is(.is-tour, .is-offer) { padding: 8px 14px; gap: 4px; width: min(620px, calc(100% - var(--pad) * 2)); }
  .br-card.is-tour > .br-k, .br-card.is-offer > .br-card-t { display: none; }
  .br-phone { width: min(480px, 80vw); height: auto; min-height: 0; margin-top: 0; border-radius: 16px; }
  .br-phone::before, .br-sk { display: none; }
  .br-pane { position: static; display: none; padding: 8px 14px 4px; gap: 2px; }
  .br-pane.is-now { display: grid; }
  .br-pane-t { font-size: 1rem; }
  .br-phone-tabs { padding: 2px 4px 6px; }
  .br-price { font-size: 1.7rem; }
  .br-perks { grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 0; }
  .br-perk { padding: 4px 8px; gap: 6px; font-size: .72rem; line-height: 1.25; }
  .br-perk .br-check-i { width: 14px; height: 14px; }
  .br-deal { padding: 5px 12px; gap: 0; margin-top: 2px; }
  .br-deal-s { font-size: .75rem; }
  .br-chips, .br-card[data-beat="lead"] .br-sub, .br-card[data-beat="trail"] .br-sub,
  .br-card:is([data-beat="lead"], [data-beat="trail"]) .br-pair { display: none; }
  .br-pair { gap: 3px; margin-top: 2px; }
  .br-pair-t { height: 7px; }
}

/* ---------------------------------------------------------------- reduced motion */
.br.is-reduced :is(.br-pair-f, .br-chip, .br-pane, .br-sk-r, .br-perk, .br-deal) { transition-duration: .01s; transition-delay: 0s; }
.br.is-reduced .br-card, .br.is-reduced .br-title, .br.is-reduced .br-cta, .br.is-reduced .br-check, .br.is-reduced .br-ring-s { transition-duration: .01s; transition-delay: 0s; transform: none; }
/* Still placed by their centres, without the rise. */
.br.is-reduced .br-card { transform: translate(var(--card-x, 0px), var(--card-y, 0px)); }
.br.is-reduced .br-cta { transform: translateY(var(--cta-y, 0px)); }
.br.is-reduced .br-poster-play.is-busy .br-ic, .br.is-reduced .br-speed.is-busy .br-speed-t { animation: none; }

/* ---------------------------------------------------------------- "Watch your briefing", on the page */
/* A flat panel in the logo's ink, the same on the light and dark themes: the mark, the words, Marcus's yellow
   play button. */
.br-cue {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: 14px 0 6px; padding: 12px 14px 12px 12px; text-align: left; cursor: pointer;
  font: inherit; color: #fff; border: 0; border-radius: 16px; background: #1B2B40; transition: background-color .2s ease;
}
.br-cue:hover { background: #24384F; }
.br-cue:focus-visible { outline: 2px solid #FFF55B; outline-offset: 3px; }
.br-cue-mk { flex: none; display: grid; }
.br-cue-mk .br-mk.is-still { width: 40px; height: 40px; }
.br-cue-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.br-cue-t b { font-weight: 700; font-size: 1rem; }
.br-cue-t span { font-size: .85rem; color: #CFE0F3; }
.br-cue-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #1B2B40; background: #FFF55B; }
.br-cue-play .br-ic { width: 20px; height: 20px; margin-left: 2px; }
.br-cue:hover .br-mk-marcus { animation: br-cue-bob .6s ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes br-cue-bob { 40% { transform: scaleY(1.08); } 70% { transform: scaleY(.97); } }
.br-cue.is-compact { margin: 4px 0 14px; padding: 10px 12px 10px 10px; gap: 12px; max-width: none; }
.br-cue.is-compact .br-mk.is-still { width: 34px; height: 34px; }
.br-cue.is-compact .br-cue-play { width: 36px; height: 36px; }
html.pf-reduce-motion .br-cue { transition: none; }
html.pf-reduce-motion .br-cue:hover .br-mk-marcus { animation: none; }

/* ---------------------------------------------------------------- a wider screen: a window over the page
   Nov 2026 redesign: on a computer the film no longer takes over the whole browser. It plays in a window about 760px
   wide over the dimmed page (the stage frames itself for the window's shape, as for any frame), with play, the
   progress, the time, captions on/off, the volume and "Close" along its foot. The phone keeps the whole screen (the
   rules above). The speed, the transcript and full screen are left off this bar; F still goes full screen. */
.br-close-t { display: none; }
@media (min-width: 641px) and (min-height: 501px), (min-width: 641px) and (pointer: fine) {
  .br-dialog {
    --brw: min(760px, calc(100vw - 48px), calc((100dvh - 48px) * 1.52));
    inset: 0; margin: auto; width: var(--brw); height: calc(var(--brw) / 1.52);
    border: 1px solid rgba(155, 192, 232, .22); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  }
  .br-dialog::backdrop { background: rgba(5, 10, 20, .74); }
  html[data-pf-theme="light"] .br-dialog::backdrop { background: rgba(11, 32, 57, .5); }
  .br-dialog:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .br-close, .br-bar-r > :is(.br-speed, .br-textbtn, .br-fullbtn) { display: none; }
  .br-bar { gap: 14px; padding: 10px 12px 10px 14px; }
  .br-bar-r .br-btn { min-width: 40px; height: 40px; }
  .br-vol-r { display: block; }
  .br-play { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--you); color: var(--night); }
  .br-play:hover { background: var(--you); filter: brightness(.95); }
  .br-play .br-ic { width: 18px; height: 18px; }
  .br-progress { height: 24px; }
  .br-progress::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(155, 192, 232, .22); }
  .br-wave, .br-ticks { display: none; }
  .br-progress-fill { top: 10px; height: 4px; border: 0; border-radius: 2px; background: var(--you); }
  .br-seek::-webkit-slider-thumb { margin-top: 5px; }
  .br-time { min-width: 0; font: 500 .85rem/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
  .br-close-t { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid rgba(207, 224, 243, .3); border-radius: 999px; background: none; color: var(--ink); font-weight: 600; }
  .br-close-t:hover { background: rgba(155, 192, 232, .14); }
}
