/* Finance story scenes (2026-10-21), on the Talent pattern: four canvas stages drawn by
   finance-halves.js, finance-ledger.js, finance-describe.js and finance-night.js with the shared kit
   (talent-world.js). Shared readout classes (.clk-*, .odo) are redefined here because talent-scenes.css
   is not loaded on this page. Phone rig and reduced-motion collapse at the end. */

/* --- stages --- */
.track-halves, .track-describe, .track-night { height: 240vh; }
.track-ledger { height: 220vh; }
.track-halves .lt-stage, .track-ledger .lt-stage, .track-describe .lt-stage, .track-night .lt-stage { justify-content: flex-start; padding-top: clamp(76px, 11vh, 120px); }
.halves, .ledger, .describe, .night { position: relative; z-index: 2; width: 100%; margin: clamp(6px, 1.5vh, 20px) auto 0; height: clamp(470px, calc(100svh - 330px), 640px); overflow: hidden; }
.halves canvas, .ledger canvas, .describe canvas, .night canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the head gives the stage room once the scene is under way */
.track-halves .lt-head, .track-ledger .lt-head, .track-describe .lt-head, .track-night .lt-head { transform-origin: top center; transform: translateY(calc(clamp(0, var(--p) * 10, 1) * -18px)) scale(calc(1 - clamp(0, var(--p) * 10, 1) * .1)); transition: none; }

/* --- readouts --- */
.clk-label { position: absolute; color: var(--gray); font-size: var(--t-caption); letter-spacing: .24em; text-transform: uppercase; transition: color .5s, opacity .5s; }
.clk-label--left { left: 8vw; top: 12px; }
.clk-label--right { right: 8vw; top: 12px; text-align: right; }
.clk-label--mid { left: 50%; top: 12px; transform: translateX(-50%); }
.ledger .clk-label { opacity: 0; }
.ledger .clk-label.is-on { opacity: 1; }
.clk-verdict { position: absolute; right: 8vw; font-family: var(--display); font-weight: 500; font-style: normal; letter-spacing: -.04em; line-height: 1; font-size: var(--t-stat); white-space: nowrap; display: flex; align-items: baseline; gap: .14em; }
.clk-verdict small { font-size: .42em; letter-spacing: 0; color: var(--gray); font-weight: 500; transition: color .5s; }
.odo { display: inline-flex; position: relative; height: 1em; overflow: hidden; contain: paint; vertical-align: top; font: inherit; font-weight: 500; font-style: normal; font-variant-numeric: tabular-nums; }
.odo span { display: block; width: .55em; text-align: center; height: 1em; line-height: 1; transition: transform .12s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.odo span i { display: block; height: 1em; line-height: 1; font-style: normal; }
.odo span.is-lead-zero { opacity: 0; width: 0; transition: transform .18s cubic-bezier(.2,.8,.2,1), width .2s, opacity .2s; }
.clk-note { position: absolute; left: 0; bottom: 10px; margin-left: 8vw; max-width: 34ch; color: var(--gray); font-size: var(--t-caption); letter-spacing: .04em; opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s; }
.clk-note.is-on { opacity: 1; transform: none; }

/* scene 01: the day readout bottom right, the clock beside it once it is night, the verdict above the page */
.halves .clk-day { top: 18%; color: var(--ink); transition: color .5s; }
.halves .clk-day.is-over, .halves .clk-day.is-over small { color: var(--shu-text); }
.halves .clk-time { font-size: .5em; letter-spacing: -.02em; color: var(--gray); opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.halves .clk-time.is-on { opacity: 1; transform: none; color: var(--shu-text); }
.hv-verdict { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); font-size: var(--t-caption); letter-spacing: .2em; text-transform: uppercase; display: grid; }
.hv-verdict i { grid-area: 1 / 1; font-style: normal; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.hv-verdict i.is-un { color: var(--shu-text); }
.hv-verdict i.is-ok { color: var(--ink); }
.hv-verdict.is-on i.is-un { opacity: 1; transform: none; }
.hv-verdict.is-on.is-matched i.is-un { opacity: 0; transform: translateY(-6px); }
.hv-verdict.is-on.is-matched i.is-ok { opacity: 1; transform: none; }
.hv-pill {
  position: absolute; right: 8vw; top: 34%; width: max-content; max-width: 30ch;
  padding: 9px 13px; border-radius: 12px;
  background: rgba(245,242,235,.035); border: 1px solid rgba(245,242,235,.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  font-size: var(--t-caption); color: var(--gray); line-height: 1.3; display: grid; gap: 2px;
  opacity: 0; transform: translateY(8px); transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
}
.hv-pill + .hv-pill { top: calc(34% + 72px); }
.hv-pill b { font-weight: 500; color: var(--ink); }
.hv-pill span { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; }
.hv-pill.is-on { opacity: 1; transform: none; }

/* scene 02: the count, bottom right */
.ledger .clk-count { bottom: 10%; color: var(--ink); opacity: 0; transition: opacity .5s, color .5s; }
.ledger .clk-count.is-on { opacity: 1; }
.ledger .clk-count.is-over, .ledger .clk-count.is-over small { color: var(--shu-text); }

/* scene 03: a small tag under the rule */
.ds-tag { position: absolute; left: 50%; top: 22%; transform: translate(-50%, 4px); font-size: var(--t-caption); letter-spacing: .2em; text-transform: uppercase; color: var(--gray); opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.ds-tag.is-on { opacity: 1; transform: translate(-50%, 0); }

/* scene 04: the two windows named top left, the clock top right, the adoption readout bottom right */
.nt-tab { position: absolute; left: 8vw; top: 12px; font-size: var(--t-caption); letter-spacing: .18em; text-transform: uppercase; color: var(--gray); opacity: .45; transition: opacity .4s, color .4s, text-decoration-color .4s; text-decoration: line-through transparent; }
.nt-tab + .nt-tab { left: calc(8vw + 14ch); }
.nt-tab.is-on { opacity: 1; color: var(--ink); }
.nt-tab.is-gone { opacity: .3; text-decoration-color: var(--gray); }
.night .clk-time { top: 10px; font-size: var(--t-pull); color: var(--gray); transition: color .5s; }
.night .clk-time.is-over { color: var(--shu-text); }
.night .clk-pct { bottom: 10%; color: var(--ink); opacity: 0; transition: opacity .5s, color .5s; }
.night .clk-pct.is-on { opacity: 1; }
.night .clk-pct.is-over, .night .clk-pct.is-over small { color: var(--shu-text); }

/* --- the three product cards: no hairline, a soft mat with a lit top edge and a shadow --- */
body.case-finance .ov-products article { border-color: transparent; background: linear-gradient(180deg, rgba(245,242,235,.035), rgba(245,242,235,.012)); box-shadow: inset 0 1px 0 rgba(245,242,235,.08), 0 30px 60px -36px rgba(0,0,0,.9), 0 2px 6px rgba(0,0,0,.35); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
body.case-finance .ov-products article:hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(245,242,235,.12), 0 40px 70px -36px rgba(0,0,0,.95), 0 2px 6px rgba(0,0,0,.35); }
body.case-finance .ovp-media { background: #0A0A0C; }
body.case-finance .ovp-media video, body.case-finance .ovp-media img { filter: saturate(.9) brightness(.96); }
body.case-finance .ov-products .ovp-copy > b { border-top-color: rgba(245,242,235,.07); }

/* --- beats: one choreographed reveal each; the outgoing paragraph leaves before the next arrives --- */
body.case-finance .story-track .lt-beats p { transition: opacity .25s ease, transform .25s ease, filter .25s ease; transform: translateY(20px); filter: blur(6px); }
body.case-finance .story-track .lt-beats p.is-on { transform: none; filter: blur(0); transition: opacity .55s cubic-bezier(.2,.8,.2,1) .25s, transform .7s cubic-bezier(.2,.8,.2,1) .25s, filter .55s cubic-bezier(.2,.8,.2,1) .25s; }
@media (prefers-reduced-motion: reduce) { body.case-finance .story-track .lt-beats p { transition: none; transform: none; filter: none; } }

/* --- tablets: fewer words on the readouts --- */
@media (max-width: 1180px) { .hv-pill span { display: none; } }

/* --- phones and reduced motion: the plain stacked read --- */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .track-halves, .track-ledger, .track-describe, .track-night { height: auto !important; }
  .halves, .ledger, .describe, .night { height: clamp(280px, 70vw, 420px); }
  .hv-pill, .clk-label, .nt-tab { display: none; }
  .clk-verdict { right: 6vw; }
  .clk-note { position: static; margin: 12px 8vw 0; max-width: none; }
}

/* --- phone rig: under 900px with motion allowed, the story's scenes keep a sticky one-viewport stage
   (kicker, title, one caption at a time, the canvas filling the rest); canvases draw at a virtual
   560px width and scale down (talent-world.js). Same exception as the Talent story. --- */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  body.case-finance [data-depth-view="story"] .story-track.ov-track { height: 210vh !important; }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 74px 0 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-head { transform: none; }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-h { font-size: clamp(24px, 6.4vw, 30px); }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-beats { position: relative; min-height: 6.4em; margin-top: 10px; max-width: none; }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-beats p { position: absolute; inset: 0; margin: 0; filter: none !important; }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-beats p:not(.is-on) { opacity: 0 !important; transform: translateY(10px) !important; }
  body.case-finance [data-depth-view="story"] .story-track.ov-track .lt-beats p.is-on { opacity: 1 !important; transform: none !important; }
  body.case-finance [data-depth-view="story"] .halves,
  body.case-finance [data-depth-view="story"] .ledger,
  body.case-finance [data-depth-view="story"] .describe,
  body.case-finance [data-depth-view="story"] .night { flex: 1 1 0; height: auto; min-height: 0; margin: 6px 0 0; }
  body.case-finance [data-depth-view="story"] .clk-verdict { right: 6vw; }
  body.case-finance [data-depth-view="story"] .halves .clk-day, body.case-finance [data-depth-view="story"] .ledger .clk-count, body.case-finance [data-depth-view="story"] .night .clk-pct { bottom: 14px; }
  body.case-finance [data-depth-view="story"] .clk-note { position: absolute; left: 0; bottom: 14px; margin: 0 6vw; max-width: 46%; }
  body.case-finance [data-depth-view="story"] .halves .clk-day { top: 8px; bottom: auto; }
  body.case-finance .site-footer { padding-bottom: 96px; }
  body.case-finance .story-track .lt-beats p { transition-duration: .16s; }
  body.case-finance .story-track .lt-beats p.is-on { transition-delay: .16s; }
  body.case-finance #ov-products .ov-head .ov-lede { font-size: var(--t-small); }
  body.case-finance #ov-products .ov-head .provenance-note { font-size: var(--t-caption); color: rgba(138,138,133,.75); max-width: 36ch; margin: 14px auto 0; }
}
