/* CaseModel website - css/site.css
   The brand's tokens as the application carries them: navy and azure measured from the logo, the sky ramp for surfaces,
   square corners like the pixels. Light only: the azure-and-navy logo reads correctly only on a white ground.
   One field of squares (the stage) sits behind the page; sections stay clear so it shows through. */

:root {
  --brand-navy: #002860; --brand-azure: #0070f8; --brand-azure-deep: #0054d8; --brand-sky: #30a8fc; --brand-sky-pale: #48b4fc;
  --azure-3: #e9f2ff; --azure-4: #dbe9ff; --azure-6: #b1d0fe; --azure-10: #0061d8; --azure-11: #0053bd; --azure-12: #002966;
  --slate-3: #eef1f6; --slate-4: #e4e8ee; --slate-5: #d8dde4; --slate-6: #c9ced6; --slate-7: #b3b9c3; --slate-9: #727b89;
  --slate-10: #616a77; --slate-11: #525b6a; --slate-12: #252e3d;
  --sky-1: #f8fcff; --sky-2: #f4fbff; --sky-3: #ebf7ff; --sky-4: #e0f2fe;
  --text: var(--slate-12); --text-2: #414853; --text-3: var(--slate-11);
  --ok: #157459; --ok-bg: #d4f6e8; --ok-fg: #00553f;
  --open: #b77610; --open-bg: #ffefde; --open-fg: #774a00;
  --adv: #a33f1e; --adv-bg: #ffe7e0; --adv-fg: #7f2300;
  --border: var(--slate-6); --border-row: var(--slate-4);
  --font-display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI Variable Display', system-ui, sans-serif;
  --font-ui: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-1: 2px; --r-2: 4px; --r-3: 6px;
  --shadow-1: 0 1px 2px rgb(0 40 96 / .06);
  --shadow-2: 0 4px 16px rgb(0 40 96 / .10);
  --shadow-3: 0 18px 48px rgb(0 40 96 / .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --wrap: 1280px; --gut: clamp(18px, 3.4vw, 40px);
  --sec: clamp(84px, 11vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: #ffffff; color: var(--text); font: 400 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--brand-navy); letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--azure-11); text-underline-offset: 3px; }
a:hover { color: var(--azure-12); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-azure); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brand-navy); color: #ffffff; border-radius: var(--r-2); }
.skip:focus { top: 12px; color: #ffffff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

#stage { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; transition: opacity .7s var(--ease); }
main { position: relative; }
.foot { position: relative; z-index: 1; }
html:not(.js) #stage { display: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-2);
  font: 700 15.5px/1 var(--font-display); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.pri { background: var(--azure-10); color: #ffffff; box-shadow: 0 6px 18px rgb(0 97 216 / .26); }
.btn.pri:hover { background: var(--azure-11); color: #ffffff; box-shadow: 0 10px 26px rgb(0 97 216 / .32); }
.btn.ghost { background: rgb(255 255 255 / .82); border-color: var(--slate-7); color: var(--brand-navy); }
.btn.ghost:hover { border-color: var(--brand-azure); color: var(--azure-11); background: var(--sky-2); }
.btn.inv { background: #ffffff; color: var(--brand-navy); }
.btn.inv:hover { background: var(--sky-4); color: var(--brand-navy); }
.btn:active { transform: translateY(1px); }
.btn.play i { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
@media (hover: hover) { .btn.pri:hover, .btn.ghost:hover { transform: translateY(-1px); } }

/* ---- small parts ---- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--azure-11); font: 700 12.5px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow.inv { color: #9fcbff; }
.px3 { display: inline-flex; gap: 3px; }
.px3 i { width: 8px; height: 8px; background: var(--brand-azure); }
.px3 i:nth-child(2) { background: var(--brand-sky); }
.px3 i:nth-child(3) { background: var(--brand-navy); }
.inv .px3 i:nth-child(3) { background: #ffffff; }
.tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--azure-6); border-radius: 999px; background: var(--azure-3); color: var(--azure-11); font: 600 11.5px/1.2 var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.cite { display: inline-block; padding: 1px 8px; border: 1px solid var(--azure-6); border-radius: 999px; background: var(--azure-3); color: var(--azure-11); font: 500 12px/1.5 var(--font-mono); white-space: nowrap; }
.dot { display: inline-block; width: .17em; height: .17em; margin-left: .05em; background: var(--brand-azure); }

/* ---- header: a floating bar; the line along its foot is how far down the page you are ---- */
.top { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 var(--gut); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.top-in { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: var(--wrap); height: 62px; padding: 0 10px 0 16px;
  border: 1px solid rgb(0 40 96 / .1); border-radius: var(--r-3); background: rgb(255 255 255 / .8); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: 0 8px 30px rgb(0 40 96 / .08); pointer-events: auto; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { display: block; width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 12px; border-radius: var(--r-2); color: var(--text-2); font: 600 14px/1 var(--font-display); text-decoration: none; transition: color .15s, background .15s; }
.nav a:hover, .nav a.here { color: var(--azure-11); background: var(--sky-3); }
.nav .nav-signin { margin-left: 8px; color: var(--brand-navy); }
.top-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-azure); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--brand-navy); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---- hero ---- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 118px 0 84px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 78% 42%, var(--sky-3), transparent 70%), radial-gradient(40% 50% at 8% 90%, var(--sky-2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 40px); align-items: center; }
.hero-stage { aspect-ratio: 656 / 369; width: 100%; }
.hero-stage img, .close-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.js .hero-stage img, .js .close-stage img { visibility: hidden; }
h1 { font-size: clamp(56px, 8.3vw, 132px); font-weight: 800; line-height: .93; letter-spacing: -0.052em; }
h1 .ln { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
h1 .ln > span { display: inline-block; }
.js h1 .ln > span { transform: translateY(108%); transition: transform 1.05s var(--ease); }
.js h1 .ln:nth-child(2) > span { transition-delay: .12s; }
.js h1 .dot { transform: translateY(-4.2em); transition: transform .7s var(--spring) 1s; }
.js.ready h1 .ln > span, .js.ready h1 .dot { transform: none; }
.lede { max-width: 28em; margin: 30px 0 0; color: var(--text-2); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.lede p { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.aud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 34px; }
.aud-l { margin-right: 6px; color: var(--text-3); font: 700 11.5px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.aud button { height: 34px; padding: 0 12px; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: rgb(255 255 255 / .8); color: var(--text-2); font: 600 13.5px/1 var(--font-display); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.aud button:hover { border-color: var(--brand-azure); color: var(--azure-11); }
.aud button[aria-pressed="true"] { border-color: var(--brand-navy); background: var(--brand-navy); color: #ffffff; }
.js .hero-copy > :not(h1) { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.js .hero-copy > .cta { transition-delay: .62s; } .js .hero-copy > .aud { transition-delay: .74s; }
.js.ready .hero-copy > :not(h1) { opacity: 1; transform: none; }
.cue { position: absolute; left: 50%; bottom: 26px; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); color: var(--text-3); font: 600 12.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cue i { width: 8px; height: 8px; background: var(--brand-azure); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-7px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ---- sections ---- */
.sec { position: relative; padding: var(--sec) 0; }
.sec.tint { background: linear-gradient(180deg, rgb(244 251 255 / 0), rgb(235 247 255 / .78) 14%, rgb(235 247 255 / .78) 86%, rgb(244 251 255 / 0)); }
.sec-head { max-width: 860px; margin: 0 0 clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(34px, 4.7vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
h2.huge { max-width: 15em; font-size: clamp(36px, 5.6vw, 84px); }
.sub { max-width: 40em; margin: 22px 0 0; color: var(--text-2); font-size: clamp(17.5px, 1.4vw, 20.5px); line-height: 1.5; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); }
.two p { margin: 0; color: var(--text-2); }
.big { color: var(--brand-navy) !important; font: 400 clamp(19px, 1.75vw, 25px)/1.45 var(--font-serif); }
.lives { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: clamp(40px, 6vw, 84px) 0 0; padding: 0; list-style: none; }
.lives li { padding: 22px 22px 20px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .86); }
.lives-k { display: block; margin-bottom: 10px; color: var(--text-3); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
.lives b { display: block; color: var(--brand-navy); font: 700 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.lives p { margin: 10px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.lives-cm { border-color: var(--brand-navy) !important; background: var(--brand-navy) !important; box-shadow: var(--shadow-3); }
.lives-cm .lives-k { color: #9fcbff; } .lives-cm b { color: #ffffff; } .lives-cm p { color: #d6e7ff; }

/* words that come up as the line crosses the screen */
.scrub .w { opacity: var(--o, 1); transition: opacity .25s linear; }

/* arrivals */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--rd, 0ms), transform .9s var(--ease) var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- the build ---- */
.story { position: relative; height: calc(100vh + 6 * 62vh); height: calc(100svh + 6 * 62vh); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.story-in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); gap: clamp(20px, 4vw, 64px); align-items: center; height: 100%; padding-top: 96px; padding-bottom: 28px; }
.story-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.story-steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.story-steps li.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.story-steps li.gone { transform: translateY(-22px); }
.st-n { display: block; margin-bottom: 14px; color: var(--brand-azure); font: 500 14px/1 var(--font-mono); }
.story-steps h3 { font-size: clamp(38px, 5vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.story-steps em { display: block; margin: 12px 0 18px; color: var(--azure-11); font: 400 italic clamp(18px, 1.6vw, 22px)/1.3 var(--font-serif); }
.story-steps p { max-width: 27em; margin: 0; color: var(--text-2); font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.55; }
.st-fig { display: flex; flex-direction: column; gap: 6px; margin-top: 22px !important; }
.st-fig b { color: var(--brand-navy); font: 800 clamp(40px, 4.6vw, 68px)/1 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.st-fig span { color: var(--text-3); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
.story-dots { display: flex; gap: 7px; margin-top: 34px; }
.story-dots button { width: 14px; height: 14px; padding: 0; border: 2px solid var(--azure-6); border-radius: 0; background: transparent; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--spring); }
.story-dots button.done { border-color: var(--brand-azure); background: var(--brand-azure); }
.story-dots button.now { transform: scale(1.3); border-color: var(--brand-navy); background: var(--brand-navy); }
.story-stage { position: relative; height: min(70vh, 660px); }
.st-l { position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-50%, 6px); color: var(--brand-navy); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.st-l.on { opacity: 1; transform: translate(-50%, 0); }
.vert .st-l { transform: translate(0, 6px); font-size: 10.5px; } .vert .st-l.on { transform: none; }
/* without scripting, or for readers who ask for less motion, the six steps are simply a list */
html:not(.js) .story, .still .story { height: auto; padding: var(--sec) 0; }
html:not(.js) .story-pin, .still .story-pin { position: static; height: auto; }
html:not(.js) .story-in, .still .story-in { display: block; padding: 0 var(--gut); }
html:not(.js) .story-steps, .still .story-steps { gap: 34px; }
html:not(.js) .story-steps li, .still .story-steps li { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .story-stage, html:not(.js) .story-dots, .still .story-dots { display: none; }
.still .story-stage { margin-top: 40px; }

/* ---- the demonstration ---- */
.demo { border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-3); }
.demo-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border-row); color: var(--text-3); font-size: 14px; }

/* ---- what it holds to ---- */
.say { position: relative; padding: clamp(40px, 7vw, 110px) 0 var(--sec); }
.say p { margin: 0; color: var(--brand-navy); font: 800 clamp(30px, 6.1vw, 96px)/1.06 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; }
.say p + p { margin-top: .32em; }
.say p:nth-child(2) { color: var(--brand-azure-deep); } .say p:nth-child(3) { color: var(--brand-azure); }

/* ---- the film ---- */
.film { position: relative; padding: var(--sec) 0; background: var(--brand-navy); color: #d6e7ff; overflow: clip; }
.film::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 62%, rgb(0 112 248 / .34), transparent 70%); pointer-events: none; }
.film .wrap { position: relative; }
.film-head { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 52px); text-align: center; }
.film-head .eyebrow { justify-content: center; }
.film h2 { color: #ffffff; }
.film .sub { margin-left: auto; margin-right: auto; color: #c2dcff; }
.film-frame { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 16 / 9; }
.player { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / .16); border-radius: var(--r-3); background: #001a40; box-shadow: 0 40px 120px rgb(0 10 30 / .6), 0 0 0 1px rgb(0 112 248 / .2); outline-offset: 4px; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000a1c; opacity: 0; transition: opacity .4s; }
.player.started video { opacity: 1; }
.player video::cue { background: rgb(0 20 52 / .82); color: #ffffff; font: 600 1em/1.35 var(--font-ui); }
.pl-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 7% 0 9%; background: radial-gradient(80% 90% at 50% 40%, #0a3f8f, #001a40 75%); transition: opacity .5s; }
.film[data-state="empty"] .pl-art, .film[data-state="probing"] .pl-art { justify-content: center; gap: 3.2%; padding: 0; }
.pl-art::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.pl-art img { position: relative; width: 22%; height: auto; }
.film[data-state="empty"] .pl-art img { width: 26%; }
.pl-art b { position: relative; color: #ffffff; font: 800 clamp(18px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.04em; }
.pl-art .dot { background: var(--brand-sky); }
.pl-art .tw { position: absolute; background: var(--brand-sky); opacity: 0; animation: tw var(--t, 4s) var(--d, 0s) infinite; }
@keyframes tw { 0%, 100% { opacity: 0; } 50% { opacity: var(--a, .5); } }
.player.has-poster .pl-art, .player.started .pl-art { opacity: 0; pointer-events: none; }
.pl-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.player.started .pl-poster { opacity: 0; }
.pl-soon { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0; color: #9fcbff; font: 700 12px/1 var(--font-display); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.film:not([data-state="empty"]) .pl-soon { display: none; }
.pl-big { position: absolute; left: 50%; top: 50%; width: clamp(64px, 9vw, 104px); aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: var(--r-2); background: #ffffff; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 18px 50px rgb(0 10 30 / .5); transition: transform .3s var(--spring), opacity .3s; }
.pl-big::before { content: ''; position: absolute; left: 50%; top: 50%; border-left: clamp(18px, 2.6vw, 30px) solid var(--brand-navy); border-top: clamp(11px, 1.6vw, 18px) solid transparent; border-bottom: clamp(11px, 1.6vw, 18px) solid transparent; transform: translate(-36%, -50%); }
.pl-big::after { content: ''; position: absolute; inset: 0; border: 2px solid #ffffff; border-radius: var(--r-2); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.pl-big:hover { transform: translate(-50%, -50%) scale(1.08); }
.player.playing .pl-big, .player.ended .pl-big { opacity: 0; pointer-events: none; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 44px 12px 10px; background: linear-gradient(transparent, rgb(0 10 30 / .82)); color: #ffffff; opacity: 0; transition: opacity .3s; }
.player.started .pl-bar { opacity: 1; }
.player.playing.idle .pl-bar { opacity: 0; } .player.playing.idle { cursor: none; }
.pl-bar button { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-2); background: none; color: #ffffff; cursor: pointer; }
.pl-bar button:hover { background: rgb(255 255 255 / .14); }
.pl-bar button[aria-pressed="true"] { background: #ffffff; color: var(--brand-navy); }
.pl-bar svg { width: 20px; height: 20px; fill: currentColor; }
.pl-time { flex: none; min-width: 92px; padding: 0 6px; font: 500 12.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.pl-track { position: relative; flex: 1; height: 40px; }
.pl-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pl-rail { position: absolute; left: 0; right: 0; top: 18px; height: 4px; background: rgb(255 255 255 / .26); pointer-events: none; }
.pl-rail i { position: absolute; left: 0; top: 0; bottom: 0; }
.pl-rail .buf { background: rgb(255 255 255 / .3); } .pl-rail .now { background: var(--brand-sky); }
.pl-rail .now::after { content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; background: #ffffff; }
.pl-rail .tick { position: absolute; top: -3px; width: 2px; height: 10px; background: #ffffff; opacity: .75; }
.pl-track input:focus-visible + .pl-rail { outline: 2px solid #ffffff; outline-offset: 4px; }
.pl-end { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgb(0 20 52 / .86); text-align: center; }
.player.ended .pl-end { display: flex; }
.pl-end b { color: #ffffff; font: 800 clamp(22px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.04em; }
.pl-end div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pl-x { position: absolute; right: 6px; top: 6px; display: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-2); background: rgb(0 10 30 / .7); color: #ffffff; font: 400 20px/1 var(--font-display); cursor: pointer; }
/* scrolled away while playing: the film follows, small, in the corner */
.player.docked { position: fixed; inset: auto 18px 18px auto; z-index: 70; width: min(380px, calc(100vw - 36px)); aspect-ratio: 16 / 9; box-shadow: 0 24px 70px rgb(0 10 30 / .5); animation: dock .45s var(--ease); }
.player.docked .pl-x { display: block; }
.player.docked .pl-time, .player.docked .pl-pip, .player.docked .pl-full, .player.docked .pl-cc { display: none; }
@keyframes dock { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.film-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1120px; margin: 22px auto 0; padding: 0; list-style: none; }
.film-chapters button { height: 36px; padding: 0 12px; border: 1px solid rgb(255 255 255 / .26); border-radius: var(--r-2); background: none; color: #ffffff; font: 600 13.5px/1 var(--font-display); cursor: pointer; }
.film-chapters button span { margin-right: 8px; color: #9fcbff; font: 500 12px/1 var(--font-mono); }
.film-chapters button:hover, .film-chapters button.now { border-color: #ffffff; background: rgb(255 255 255 / .1); }
/* lights down while it plays */
.film-on .top { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.film-on .top-in { pointer-events: none; }
.film-on #stage { opacity: 0; }

/* ---- what changes: six questions, one answered at a time ---- */
.qa { display: grid; gap: 14px; }
.q { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .9); }
.q h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; }
.q p { margin: 14px 0 0; }
.q p span { display: block; margin-bottom: 6px; font: 700 11.5px/1.2 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
.q-today { color: var(--slate-10); font-family: var(--font-serif); font-style: italic; } .q-today span { color: var(--slate-9); font-style: normal; }
.q-with { color: var(--brand-navy); } .q-with span { color: var(--azure-11); }
.qa.live { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(18px, 3vw, 44px); align-items: stretch; }
.qa-list { display: flex; flex-direction: column; gap: 6px; }
.qa-list button { position: relative; padding: 16px 18px 16px 44px; border: 1px solid transparent; border-radius: var(--r-3); background: none; color: var(--text-2); font: 700 clamp(16px, 1.35vw, 19px)/1.25 var(--font-display); letter-spacing: -0.015em; text-align: left; cursor: pointer; overflow: hidden; transition: background .2s, color .2s, border-color .2s; }
.qa-list button::before { content: ''; position: absolute; left: 18px; top: 21px; width: 10px; height: 10px; border: 2px solid var(--azure-6); transition: background .2s, border-color .2s; }
.qa-list button:hover { color: var(--brand-navy); background: rgb(235 247 255 / .8); }
.qa-list button[aria-selected="true"] { border-color: var(--border); background: #ffffff; color: var(--brand-navy); box-shadow: var(--shadow-2); }
.qa-list button[aria-selected="true"]::before { border-color: var(--brand-azure); background: var(--brand-azure); }
.qa-list button i { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--brand-azure); transform: scaleX(0); transform-origin: 0 50%; }
.qa.auto .qa-list button[aria-selected="true"] i { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.qa-panel { position: relative; display: grid; min-height: 340px; border-radius: var(--r-3); background: var(--brand-navy); box-shadow: var(--shadow-3); overflow: hidden; }
.qa-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 90% at 90% 0%, rgb(0 112 248 / .45), transparent 65%); }
.qa.live .q { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 3.6vw, 52px); border: 0; background: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.qa.live .q.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.qa.live .q h3 { display: none; }
.qa.live .q p { margin: 0; }
.qa.live .q-today { padding-bottom: 22px; color: #a9c6ee; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.qa.live .q-today span { color: #7fa9e3; }
.qa.live .q-with { padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .2); color: #ffffff; font: 600 clamp(22px, 2.5vw, 36px)/1.22 var(--font-display); letter-spacing: -0.025em; }
.qa.live .q-with span { color: var(--brand-sky-pale); font-size: 11.5px; letter-spacing: .09em; }
.qa.live .q.on .q-today { animation: rise .5s var(--ease) both; } .qa.live .q.on .q-with { animation: rise .6s var(--ease) .18s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- platform ---- */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mod { position: relative; grid-column: span 1; padding: 26px 24px 22px; border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; overflow: hidden; container-type: inline-size; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.mod.wide { grid-column: span 2; }
.mod::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgb(0 112 248 / .12), transparent 62%); transition: opacity .3s; pointer-events: none; }
@media (hover: hover) { .mod:hover { border-color: var(--brand-azure); box-shadow: var(--shadow-3); transform: translateY(-3px); } .mod:hover::before { opacity: 1; } }
.hub { display: block; width: 40px; height: 40px; margin: 0 0 18px; }
.hub svg { display: block; width: 40px; height: 40px; }
.hub .t-i { fill: var(--brand-azure); } .hub .t-a { fill: var(--brand-sky); }
.hub rect { transition: transform .5s var(--spring); transform-box: fill-box; transform-origin: center; }
.mod:hover .hub .t-a { transform: translateY(-2px) scale(1.15); }
.mod h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }
.mod p { margin: 10px 0 16px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.mod ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mod li { padding: 4px 9px; border-radius: var(--r-1); background: var(--sky-3); color: var(--azure-12); font: 600 12.5px/1.3 var(--font-display); }
@container (min-width: 460px) { .mod h3 { font-size: 28px; } .mod p { font-size: 17px; max-width: 34em; } }

/* ---- analysis ---- */
.an { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.an-card { padding: 28px 26px 24px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .92); }
.an-card h3 { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.wm svg { flex: none; width: auto; height: .74em; margin-right: .012em; overflow: visible; }
.wm .wm-a { color: var(--brand-azure); }
.wm .wm-n { color: var(--brand-navy); }
.an-lead { margin: 16px 0 18px; color: var(--text); font-size: 17px; line-height: 1.5; }
.levels { margin: 0; padding: 0; list-style: none; counter-reset: lv; border-top: 1px solid var(--border-row); }
.levels li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--border-row); counter-increment: lv; }
.levels li::before { content: counter(lv); position: absolute; left: 0; top: 12px; width: 22px; height: 22px; background: var(--brand-azure); color: #ffffff; font: 700 12px/22px var(--font-display); text-align: center; }
.levels li:nth-child(2)::before { background: var(--brand-azure-deep); }
.levels li:nth-child(3)::before { background: var(--brand-navy); }
.levels b { display: block; color: var(--brand-navy); font: 700 15.5px/1.3 var(--font-display); }
.levels span { display: block; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.an-foot { margin: 16px 0 0; color: var(--text-3); font-size: 14.5px; line-height: 1.5; }
.an-chat { display: flex; flex-direction: column; padding: 0; background: var(--sky-2); border-color: var(--azure-6); box-shadow: var(--shadow-3); }
.chat-cap { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--azure-4); color: var(--text-3); font-size: 13.5px; }
.chat-q { align-self: flex-end; max-width: 84%; margin: 22px 18px 0; padding: 11px 15px; border-radius: var(--r-3) var(--r-3) 0 var(--r-3); background: var(--brand-navy); color: #ffffff; font-size: 15.5px; line-height: 1.4; }
.chat-a { margin: 16px 18px 20px; padding: 16px 18px 6px; border: 1px solid var(--border); border-radius: var(--r-3) var(--r-3) var(--r-3) 0; background: #ffffff; font-size: 15.5px; line-height: 1.55; }
.chat-a p { margin: 0 0 10px; }
.chat-flag { display: block; padding: 9px 11px; border-left: 3px solid var(--open); background: var(--open-bg); color: var(--open-fg); font-size: 14.5px; }
.chat-flag i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border: 2px solid var(--open); background: #ffffff; }
/* the exchange plays through once, as it comes into view */
.js .an-chat .chat-q, .js .an-chat .chat-a, .js .an-chat .chat-a p { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .an-chat.in .chat-q, .js .an-chat.in .chat-a, .js .an-chat.in .chat-a p { opacity: 1; transform: none; }
.js .an-chat.in .chat-q { transition-delay: .5s; } .js .an-chat.in .chat-a { transition-delay: 1.3s; }
.js .an-chat.in .chat-a p:nth-child(1) { transition-delay: 1.5s; } .js .an-chat.in .chat-a p:nth-child(2) { transition-delay: 2.1s; }
.js .an-chat.in .chat-a p:nth-child(3) { transition-delay: 2.8s; } .js .an-chat.in .chat-a p:nth-child(4) { transition-delay: 3.6s; }
.read { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.read h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.read p { margin: 12px 0 0; color: var(--text-2); }
.pull { margin: clamp(56px, 8vw, 120px) 0 0; padding: 0; color: var(--brand-navy); font: 400 italic clamp(30px, 5.2vw, 78px)/1.08 var(--font-serif); letter-spacing: -0.02em; text-wrap: balance; }

/* ---- readers ---- */
.who { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(18px, 3vw, 44px); align-items: stretch; }
.aud.col { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 6px; margin: 0; }
.aud.col button { display: flex; align-items: center; gap: 16px; height: auto; padding: 20px 20px; border-radius: var(--r-3); font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.02em; text-align: left; }
.aud.col button span { color: var(--brand-azure); font: 500 13px/1 var(--font-mono); }
.aud.col button[aria-pressed="true"] span { color: var(--brand-sky-pale); }
.who-panel { display: grid; padding: clamp(26px, 3.6vw, 52px); border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-3); }
.who-panel article { align-self: center; }
.who-panel h3 { font-size: clamp(28px, 3.4vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; }
.who-panel p { max-width: 36em; margin: 18px 0 22px; color: var(--text-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.who-panel ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-row); }
.who-panel li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--border-row); color: var(--brand-navy); font: 600 15.5px/1.35 var(--font-display); }
.who-panel li::before { content: ''; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--brand-azure); }

/* ---- integrity ---- */
.ledger { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-2); overflow: hidden; }
.ledger-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; border-bottom: 1px solid var(--border-row); }
.ledger-head p { flex: 1 1 420px; margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.ledger-rows { margin: 0; padding: 0; list-style: none; }
.ledger-rows li { display: grid; grid-template-columns: 38px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border-row); transition: background .4s; }
.ledger-rows li:last-child { border-bottom: 0; }
.lg-n { color: var(--text-3); font: 500 12.5px/1 var(--font-mono); }
.lg-t { color: var(--brand-navy); font: 600 15.5px/1.35 var(--font-display); }
.lg-t mark { padding: 0 3px; background: var(--adv-bg); color: var(--adv-fg); }
.lg-h { color: var(--azure-11); font: 500 12.5px/1.4 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-s { display: inline-flex; align-items: center; gap: 7px; color: var(--ok-fg); font: 700 12px/1.2 var(--font-display); white-space: nowrap; }
.lg-s i { width: 9px; height: 9px; background: var(--ok); }
.ledger-rows li.bad { background: var(--adv-bg); }
.ledger-rows li.bad .lg-h, .ledger-rows li.bad .lg-s { color: var(--adv-fg); }
.ledger-rows li.bad .lg-s i { background: repeating-linear-gradient(135deg, var(--adv) 0 2px, #ffffff 2px 4px); outline: 1px solid var(--adv); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--brand-navy); }
.trust li { padding: 24px 22px 26px 0; border-bottom: 1px solid var(--border-row); }
.trust b { display: block; color: var(--brand-navy); font: 700 18px/1.25 var(--font-display); letter-spacing: -0.015em; }
.trust b::before { content: ''; display: block; width: 10px; height: 10px; margin-bottom: 14px; background: var(--brand-azure); }
.trust li:nth-child(even) b::before { background: var(--brand-sky); }
.trust p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }

/* ---- close ---- */
.close { position: relative; padding: clamp(60px, 8vw, 120px) 0 var(--sec); text-align: center; }
.close::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 60% at 50% 30%, var(--sky-3), transparent 70%); }
.close-stage { width: min(720px, 92%); aspect-ratio: 656 / 369; margin: 0 auto; }
.close h2 { margin-top: clamp(16px, 3vw, 40px); font-size: clamp(48px, 9.6vw, 152px); line-height: .94; letter-spacing: -0.052em; }
.close-p { max-width: 34em; margin: 28px auto 0; color: var(--text-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.close-p p { margin: 0; }
.close .cta { justify-content: center; }
/* the briefing request: a form, sent to CaseModel by email */
.ask { width: min(680px, 100%); margin: 38px auto 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .92); box-shadow: 0 18px 50px rgb(0 40 96 / .08); text-align: left; }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: block; margin: 0 0 16px; }
.fld > span { display: block; margin-bottom: 7px; color: var(--brand-navy); font: 700 13.5px/1.2 var(--font-display); }
.fld > span i { margin-left: 6px; color: var(--text-3); font: 400 13px/1 var(--font-ui); font-style: normal; }
.fld input, .fld select, .fld textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--slate-7); border-radius: var(--r-2); background: #ffffff; color: var(--text); font: 400 17px/1.4 var(--font-ui); transition: border-color .15s, box-shadow .15s; }
.fld textarea { min-height: 116px; resize: vertical; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--slate-9); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand-azure); box-shadow: 0 0 0 3px rgb(0 112 248 / .2); }
.fld.bad input, .fld.bad textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgb(179 38 30 / .14); }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-err { margin: 0 0 16px; padding: 11px 14px; border: 1px solid #e7b4af; border-radius: var(--r-2); background: #fdf1f0; color: #8c1d18; font-size: 15.5px; line-height: 1.45; }
.ask-foot { display: flex; align-items: center; gap: 18px; }
.ask-foot .btn { flex: none; }
.ask-foot .btn[disabled] { opacity: .6; cursor: default; box-shadow: none; transform: none; }
.ask-note { margin: 0; color: var(--text-3); font-size: 14.5px; line-height: 1.45; }
.ask-done { width: min(680px, 100%); margin: 38px auto 0; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--azure-6); border-radius: var(--r-3); background: var(--sky-2); }
.ask-done i { display: block; width: 14px; height: 14px; margin: 0 auto 16px; background: var(--brand-azure); }
.ask-done h3 { font-size: clamp(24px, 2.6vw, 32px); }
.ask-done p { margin: 12px 0 0; color: var(--text-2); overflow-wrap: anywhere; }
.close-alt { margin: 22px 0 0; color: var(--text-3); font-size: 15.5px; }
.close-alt a { color: var(--azure-11); font-weight: 600; }
.foot { padding: 34px 0 40px; border-top: 1px solid var(--border-row); background: rgb(255 255 255 / .9); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.foot img { display: block; width: 87px; height: auto; }
.foot p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.5; }
.foot-c { white-space: nowrap; }
/* asked first where the law asks for it (Europe and the United Kingdom): a small card, and a word at the foot that changes the answer */
.foot-rec { margin-left: 14px; padding: 0; border: 0; background: none; font: inherit; color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.foot-rec:hover { color: var(--azure-11); }
.rec { position: fixed; left: 16px; bottom: 16px; z-index: 120; width: min(340px, calc(100vw - 32px)); padding: 14px 16px 12px; background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--r-3); box-shadow: var(--shadow-2); font: 14px/1.45 var(--font-ui); color: var(--text-2); animation: rec-in .35s var(--ease) both; }
.rec p { margin: 0 0 10px; }
.rec-what { font-size: 13px; color: var(--text-3); }
.rec-acts { display: flex; align-items: center; gap: 8px; }
.rec-more { margin-right: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--azure-11); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rec-b { min-width: 64px; height: 34px; padding: 0 14px; border: 1px solid var(--slate-7); border-radius: var(--r-2); background: #ffffff; font: 600 14px/1 var(--font-ui); color: var(--brand-navy); cursor: pointer; }
.rec-b:hover { border-color: var(--brand-azure); color: var(--azure-11); background: var(--sky-2); }
.rec-b:focus-visible, .rec-more:focus-visible, .foot-rec:focus-visible { outline: 2px solid var(--brand-azure); outline-offset: 2px; }
@keyframes rec-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }

/* the reader switch changes text in one movement */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* the chain, on the illustrative matter */

.cd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 18px; border-bottom: 1px solid var(--border-row); }
.cd-seg { display: inline-flex; border: 1px solid var(--slate-7); border-radius: var(--r-2); overflow: hidden; }
.cd-seg button { height: 36px; padding: 0 14px; border: 0; border-left: 1px solid var(--slate-7); background: #ffffff; color: var(--text-2); font: 600 13.5px/1 var(--font-display); cursor: pointer; }
.cd-seg button:first-child { border-left: 0; }
.cd-seg button:hover { background: var(--sky-3); }
.cd-seg button[aria-pressed="true"] { background: var(--brand-navy); color: #ffffff; }
.cd-total { margin-left: auto; display: flex; align-items: baseline; gap: 12px; }
.cd-total span { color: var(--text-3); font: 600 12px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; }
.cd-total b { color: var(--brand-navy); font: 800 28px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cd-their { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border-row); background: var(--adv-bg); }
.cd-their-l { color: var(--adv-fg); font: 600 13.5px/1.3 var(--font-display); }
.cd-def { display: block; padding: 8px 12px; border: 1px solid var(--adv); border-radius: var(--r-2); background: #ffffff; color: var(--adv-fg); text-align: left; cursor: pointer; font: inherit; }
.cd-def b { display: block; font: 700 13.5px/1.25 var(--font-display); }
.cd-def small { display: block; font-size: 12.5px; line-height: 1.3; opacity: .85; }
.cd-def[aria-pressed="true"] { background: var(--adv); color: #ffffff; }
.cd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cd-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr 1.35fr 1.1fr 1.1fr 1fr; column-gap: 38px; min-width: 1120px; padding: 18px 18px 22px; }
.cd-wires { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cd-wires .w { fill: none; stroke: var(--slate-5); stroke-width: 1.2; transition: stroke .18s, opacity .18s; }
.cd-wires .w.gap { stroke: var(--open); stroke-dasharray: 4 4; opacity: .7; }
.cd-wires .w.lit { stroke: var(--brand-azure); stroke-width: 2; opacity: 1; }
.cd-wires .w.lit.gap { stroke: var(--open); stroke-width: 2; }
.cd-wires .w.dead { stroke: var(--adv); stroke-dasharray: 2 5; opacity: .75; }
.cd-col { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.cd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 2px solid var(--brand-navy); color: var(--brand-navy); font: 700 12px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.cd-head em { color: var(--text-3); font: 500 12px/1 var(--font-mono); font-style: normal; }
.cd-stack { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.cd-block { display: block; width: 100%; padding: 9px 11px 9px; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: #ffffff; color: var(--text); text-align: left; font: 400 13.5px/1.35 var(--font-ui); cursor: pointer; box-shadow: var(--shadow-1); transition: opacity .18s, border-color .18s, background .18s, box-shadow .18s; }
.cd-block:hover { border-color: var(--brand-azure); }
.cd-block b { display: block; font-weight: 600; }
.cd-block small { display: block; margin-top: 1px; color: var(--text-3); font-size: 12.5px; }
.cd-ref { display: block; margin: 0 0 2px; color: var(--azure-11); font: 500 11.5px/1.3 var(--font-mono); }
.cd-cite { display: inline-block; margin-top: 6px; padding: 1px 7px; border: 1px solid var(--azure-6); border-radius: 999px; background: var(--azure-3); color: var(--azure-11); font: 500 11px/1.5 var(--font-mono); }
.cd-mark { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--text-3); font: 600 11.5px/1.2 var(--font-display); }
.cd-mark i { flex: none; width: 9px; height: 9px; }
.cd-mark.m-adm i { background: var(--brand-navy); }
.cd-mark.m-doc { color: var(--ok-fg); } .cd-mark.m-doc i { background: var(--ok); }
.cd-mark.m-gap { color: var(--open-fg); } .cd-mark.m-gap i { border: 2px solid var(--open); background: #ffffff; }
.cd-mark.m-adv { color: var(--adv-fg); } .cd-mark.m-adv i { background: repeating-linear-gradient(135deg, var(--adv) 0 2px, #ffffff 2px 4px); border: 1px solid var(--adv); }
.cd-block.k-fact b, .cd-block.k-el b { font-family: var(--font-serif); font-weight: 400; font-size: 14px; line-height: 1.4; }
.cd-block.k-cause { padding: 14px 13px; border-color: var(--brand-navy); background: var(--brand-navy); color: #ffffff; }
.cd-block.k-cause b { font: 700 15.5px/1.25 var(--font-display); letter-spacing: -0.01em; }
.cd-block.k-cause small { color: #b9d6ff; }
.cd-meter { display: flex; gap: 3px; margin-top: 10px; }
.cd-meter i { width: 12px; height: 12px; background: #ffffff; }
.cd-meter i.gap { background: transparent; border: 2px solid #ffc978; }
.cd-meter i.x { background: repeating-linear-gradient(135deg, #ff9d80 0 2px, transparent 2px 4px); border: 1px solid #ff9d80; }
.cd-meter-t { display: block; margin-top: 5px; color: #b9d6ff; font: 600 11.5px/1.2 var(--font-display); }
.cd-block.k-head { padding: 12px 13px; }
.cd-block.k-head b { color: var(--text-2); font: 600 13px/1.3 var(--font-display); }
.cd-amt { display: block; margin-top: 2px; color: var(--brand-navy); font: 800 21px/1.15 var(--font-display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.cd-weak { display: block; margin-top: 6px; padding: 3px 7px; border-left: 3px solid var(--open); background: var(--open-bg); color: var(--open-fg); font: 600 11.5px/1.3 var(--font-display); }
.cd-block.is-weak { border-color: var(--open); }
.cd-block.dim { opacity: .34; }
.cd-block.lit { border-color: var(--brand-azure); box-shadow: 0 0 0 1px var(--brand-azure), var(--shadow-2); }
.cd-block.sel { box-shadow: 0 0 0 3px var(--brand-azure), var(--shadow-2); }
.cd-block.k-cause.lit { border-color: var(--brand-azure); }
.cd-block.fell { border-color: var(--adv); background: var(--adv-bg); color: var(--adv-fg); opacity: 1; box-shadow: none; }
.cd-block.fell b, .cd-block.fell .cd-amt { color: var(--adv-fg); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cd-block.fell small, .cd-block.fell .cd-meter-t { color: var(--adv-fg); }
.cd-block.out { background: var(--slate-3); border-style: dashed; box-shadow: none; }
.cd-block.out .cd-amt { color: var(--slate-10); text-decoration: line-through; }
.cd-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 32px; align-items: start; min-height: 132px; padding: 18px 20px; border-top: 1px solid var(--border-row); background: var(--sky-2); }
.cd-d-kind { grid-column: 1; color: var(--azure-11); font: 700 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.cd-d-title { grid-column: 1; margin: 6px 0 8px; color: var(--brand-navy); font: 700 20px/1.25 var(--font-display); letter-spacing: -0.02em; }
.cd-detail p { grid-column: 1; max-width: 62em; margin: 0 0 6px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.cd-hint { margin: 0; padding: 18px 20px; color: var(--text-3); }
.cd-d-count { grid-column: 2; grid-row: 1 / span 6; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 22px; align-content: start; }
.cd-d-count span { color: var(--text-3); font: 600 12px/1.2 var(--font-display); }
.cd-d-count b { display: block; color: var(--brand-navy); font: 800 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.cd-key { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 20px 14px; border-top: 1px solid var(--border-row); }
.cd-key .cd-mark { margin: 0; }
.cd-block.fell { animation: fell .55s var(--ease); }
@keyframes fell { 0% { transform: none; } 35% { transform: translateY(6px) rotate(-.7deg); } 100% { transform: none; } }
.cd-total b { min-width: 5.2em; text-align: right; }
.cd-scroll { scrollbar-width: thin; }

/* ---- narrower screens ---- */
@media (max-width: 1180px) {
  .cd-grid { grid-template-columns: 1fr; min-width: 0; row-gap: 20px; padding: 16px 16px 20px; }
  .cd-wires { display: none; }
  .cd-stack { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; }
  .cd-block { flex: 1 1 168px; width: auto; }
  .cd-block.k-cause, .cd-block.k-head { flex-basis: 220px; }
  .cd-head { margin-bottom: 10px; }
  .cd-detail { position: sticky; bottom: 0; z-index: 3; min-height: 0; max-height: 46vh; overflow: auto; box-shadow: 0 -12px 30px rgb(0 40 96 / .12); }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod.wide { grid-column: span 2; }
}
@media (max-width: 1020px) {
  .top-in { padding-left: 14px; }
  .menu-btn { display: block; }
  .top-cta { margin-left: auto; }
  .brand { margin-right: 0; }
  .nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid rgb(0 40 96 / .1); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-3); }
  .nav.open { display: flex; animation: rise .3s var(--ease); }
  .nav a { padding: 15px 14px; font-size: 17px; }
  .nav .nav-signin { margin: 6px 0 0; border-top: 1px solid var(--border-row); border-radius: 0; }
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-stage { order: -1; width: 100%; max-width: 560px; margin: 0 auto; }
  h1 { font-size: clamp(56px, 16.4vw, 118px); }
  .two, .read { grid-template-columns: 1fr; }
  .lives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding-top: 88px; padding-bottom: 18px; }
  .story-stage { order: -1; height: 100%; min-height: 0; }
  .story-copy { position: relative; }
  .story-copy .eyebrow { display: none; }
  .st-n { margin-bottom: 8px; }
  .story-steps h3 { font-size: clamp(30px, 8.4vw, 52px); }
  .story-steps em { margin: 6px 0 10px; font-size: 17px; }
  .story-steps p { max-width: none; font-size: 16px; line-height: 1.5; }
  .st-fig { flex-direction: row; align-items: baseline; gap: 12px; margin-top: 12px !important; }
  .st-fig b { font-size: 34px; }
  .story-dots { position: absolute; right: 0; top: 0; margin: 0; }
  .qa.live { grid-template-columns: 1fr; }
  .qa-list { flex-direction: row; gap: 8px; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .qa-list::-webkit-scrollbar { display: none; }
  .qa-list button { flex: none; width: min(74vw, 300px); scroll-snap-align: center; border-color: var(--border); background: rgb(255 255 255 / .9); }
  .qa-panel { min-height: 300px; }
  .an { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .aud.col { flex-direction: row; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 8px; overflow-x: auto; scrollbar-width: none; }
  .aud.col::-webkit-scrollbar { display: none; }
  .aud.col button { flex: none; padding: 14px 16px; white-space: nowrap; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-detail { grid-template-columns: 1fr; } .cd-d-count { grid-column: 1; grid-row: auto; grid-template-columns: repeat(6, auto); justify-content: start; margin-top: 10px; }
  .foot-in { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top { top: 10px; }
  .top-in { height: 56px; }
  .brand img { height: 38px; }
  .top-cta { height: 36px; padding: 0 12px; font-size: 13px; }
  .hero { padding-bottom: 76px; }
  .lede { margin-top: 22px; }
  .cta { margin-top: 22px; } .cta .btn { flex: 1 1 auto; }
  .ask-row { grid-template-columns: 1fr; gap: 0; } .ask-foot { flex-direction: column; align-items: stretch; gap: 12px; } .ask-note { text-align: center; }
  .aud { margin-top: 24px; } .aud-l { width: 100%; margin-bottom: 4px; }
  .lives, .mods, .trust { grid-template-columns: 1fr; }
  .mod.wide { grid-column: span 1; }
  .trust li { padding-right: 0; }
  .cd-bar { gap: 10px; padding: 12px 14px; }
  .cd-seg button { padding: 0 11px; }
  .cd-total { margin-left: 0; width: 100%; justify-content: space-between; }
  .cd-block { flex-basis: 140px; }
  .cd-d-count { grid-template-columns: repeat(3, auto); }
  .cd-detail { padding: 14px 16px; } .cd-d-title { font-size: 17px; } .cd-detail p { font-size: 14.5px; }
  .cd-detail { max-height: 34vh; } .cd-d-count { display: none; }
  .pl-time, .pl-pip { display: none; }
  .pl-bar { padding: 30px 6px 4px; }
  .ledger-rows li { grid-template-columns: 30px minmax(0, 1fr); }
  .lg-h, .lg-s { grid-column: 2; }
  .q { padding: 20px; }
  .player.docked { inset: auto 10px 10px auto; width: min(260px, 70vw); }
}
@media (max-height: 620px) and (min-width: 1021px) {
  .story-steps h3 { font-size: 40px; } .story-stage { height: 64vh; }
}

/* ---- readers who ask for less motion, more contrast, or paper ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js h1 .ln > span, .js h1 .dot, .js .hero-copy > :not(h1) { opacity: 1; transform: none; }
  .cue i { animation: none; }
}
@media (prefers-contrast: more) {
  :root { --border: var(--slate-10); --border-row: var(--slate-7); --text-2: var(--slate-12); --text-3: var(--slate-12); }
  .top-in { background: #ffffff; }
}
@media print {
  #stage, .top, .cue, .film, .story-dots, .story-stage, .menu-btn { display: none !important; }
  .js .reveal, .js .hero-copy > :not(h1), .js h1 .ln > span { opacity: 1 !important; transform: none !important; }
  .story { height: auto; } .story-pin { position: static; height: auto; } .story-in { display: block; }
  .story-steps { gap: 24px; } .story-steps li { grid-area: auto; opacity: 1; transform: none; }
  .scrub .w { opacity: 1 !important; }
  .hero { min-height: 0; }
}
