/* ==========================================================================
   Saizen Acuity — Case Studies ("The Casebook")
   Warm ink, ivory type, gold as the brand metal. Each capability carries one
   accent (--acc) so a case is recognisable at a glance across the index, the
   map and its own page. Evidence grades have fixed colours everywhere:
   result emerald, projection gold, target sky, qualitative ivory, scope dim.
   Type is the site's: Playfair Display SC headlines, Playfair Display serif
   text, DM Sans body, DM Mono labels. Emphasis is colour, never italics.
   ========================================================================== */

:root {
  --bg:      #000000;
  --bg-2:    #050505;
  --panel:   #0A0A0A;
  --panel-2: #111111;
  --ink:     #F2F0EB;
  --ink-2:   #BAB5AC;
  --muted:   #86817A;
  --dim:     #3A3733;
  --line:    rgba(255, 255, 255, 0.09);
  --line-2:  rgba(255, 255, 255, 0.15);
  --line-3:  rgba(255, 255, 255, 0.26);
  --gold:    #E2AE36;
  --gold-d:  #B8892B;
  --gold-l:  #F3D488;
  --acc:     var(--gold);

  --g-result: #34C88F;
  --g-projection: #E6B64C;
  --g-target: #5CC4EE;
  --g-qualitative: #CFC5B4;
  --g-scope: #958B7B;

  --grad-gold: linear-gradient(100deg, #8E6416 0%, var(--gold-d) 18%, var(--gold) 36%, #F3D488 50%, var(--gold) 62%, var(--gold-d) 80%, #8E6416 100%);

  --f-sc:      'Playfair Display SC', 'Playfair Display', Georgia, serif;
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono:    'DM Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
  --spring:   cubic-bezier(0.34, 1.4, 0.64, 1);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(84px, 10vw, 150px);
  --bar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; scroll-padding-top: calc(var(--bar-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-sc); font-weight: 400; letter-spacing: 0.004em; line-height: 1.06; }
h1 em, h2 em, h3 em { font-style: normal; }
figure, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(226, 174, 54, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 4px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.wm { font-family: var(--f-sc); letter-spacing: .02em; }
.wm b { font-weight: 700; color: var(--gold); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px; border-radius: 3px; background: var(--ink); color: var(--bg); font: 500 14px/1 var(--f-body); text-decoration: none; transition: top .3s var(--ease-out); }
.skip:focus { top: 16px; }


/* Reveal */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* Labels, grades, buttons */
.label { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.label b { font-weight: 500; color: var(--gold); }
.sublabel { margin: clamp(48px, 6vw, 80px) 0 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.grade {
  --gc: var(--g-qualitative);
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 2px;
  font: 500 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; font-style: normal; white-space: nowrap;
  color: var(--gc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 42%, transparent); background: color-mix(in srgb, var(--gc) 9%, transparent);
}
.grade::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gc); }
.grade--result { --gc: var(--g-result); }
.grade--projection { --gc: var(--g-projection); }
.grade--projection::before { background: repeating-linear-gradient(45deg, var(--gc) 0 1.5px, transparent 1.5px 3px); box-shadow: inset 0 0 0 1px var(--gc); }
.grade--target { --gc: var(--g-target); }
.grade--target::before { background: none; box-shadow: inset 0 0 0 1.5px var(--gc); }
.grade--qualitative { --gc: var(--g-qualitative); }
.grade--scope { --gc: var(--g-scope); }
.grade--scope::before { width: 8px; height: 1.5px; border-radius: 0; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 9px 0 24px; border-radius: 4px; border: 0; cursor: pointer;
  font: 500 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--spring), box-shadow .4s, background .3s, color .3s;
}
.btn i { width: 38px; height: 38px; border-radius: 3px; display: grid; place-items: center; transition: transform .55s var(--spring); }
.btn i svg { width: 14px; height: 14px; }
.btn:hover i { transform: rotate(-45deg); }
.btn--gold { background: var(--gold); color: #000000; }
.btn--gold i { background: #000000; color: var(--gold); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost i { background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.hero__ctas .btn--gold:hover i, .match__cta:hover i { transform: translateY(2px); }
.link-btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 14px/1 var(--f-body); color: var(--ink); }
.link-btn i { width: 34px; height: 34px; border-radius: 3px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s, transform .5s var(--spring); }
.link-btn i svg { width: 12px; height: 12px; }
.link-btn:hover i { background: var(--gold); color: #0A0A0A; transform: rotate(-45deg); box-shadow: none; }

.cue { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.cue i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); animation: bob 2.4s var(--ease-io) infinite; }
.cue i svg { width: 13px; height: 13px; }
@keyframes bob { 50% { transform: translateY(5px); } }
.vbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.vbtn svg { width: 11px; height: 11px; }
.vbtn .vbtn__play { display: none; }
.vbtn[aria-pressed="true"] .vbtn__play { display: block; }
.vbtn[aria-pressed="true"] .vbtn__pause { display: none; }

/* ==========================================================================
   THE BAR
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent; transition: background .5s, border-color .5s;
}
.bar.is-solid { background: rgba(0, 0, 0, .94); border-bottom-color: var(--line); }
.bar__back { justify-self: start; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.bar__ico { width: 34px; height: 34px; border-radius: 3px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, transform .45s var(--spring); }
.bar__ico svg { width: 13px; height: 13px; }
.bar__back:hover .bar__ico { background: rgba(255, 255, 255, .1); transform: translateX(-3px); }
.bar__pub { font: 400 15px/1 var(--f-sc); letter-spacing: .1em; }
.bar__pub b { font-weight: 700; color: var(--gold); }
.bar__feat { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; font: 400 14px/1 var(--f-display); color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); white-space: nowrap; }
.bar.is-solid .bar__feat { opacity: 1; transform: none; }
.bar__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.bar__ch { display: flex; align-items: baseline; gap: 10px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bar__ch b { color: var(--gold); font-weight: 500; }
.bar__toc { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 13px; border-radius: 3px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; cursor: pointer; font: 400 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; transition: background .3s; }
.bar__toc i { position: relative; width: 14px; height: 8px; }
.bar__toc i::before, .bar__toc i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.4px; background: currentColor; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.bar__toc i::before { top: 0; } .bar__toc i::after { top: 6.6px; }
.bar__toc[aria-expanded="true"] i::before { top: 3.3px; transform: rotate(45deg); }
.bar__toc[aria-expanded="true"] i::after { top: 3.3px; transform: rotate(-45deg); }
.bar__toc:hover { background: rgba(255, 255, 255, .08); }
.bar__prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.bar__prog i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-d), var(--gold-l), var(--acc)); }

.toc { position: fixed; z-index: 99; top: var(--bar-h); right: var(--gutter); width: min(360px, calc(100vw - 2 * var(--gutter))); background: rgba(20, 17, 14, .97); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: none; animation: tocIn .4s var(--ease-out); }
@keyframes tocIn { from { opacity: 0; transform: translateY(-8px); } }
.toc__in { padding: 16px 10px 10px; max-height: calc(100svh - var(--bar-h) - 24px); overflow: auto; }
.toc__h { padding: 0 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.toc__h span { color: var(--muted); }
.toc a { display: flex; align-items: baseline; gap: 16px; padding: 10px 12px; border-radius: 3px; text-decoration: none; color: var(--ink-2); transition: background .25s, color .25s; }
.toc a b { width: 18px; font: 400 11px/1 var(--f-mono); color: var(--muted); }
.toc a span { font: 400 17px/1.1 var(--f-display); }
.toc a:hover, .toc a.is-current { background: rgba(226, 174, 54, .08); color: var(--ink); }
.toc a.is-current b { color: var(--gold); }

/* ==========================================================================
   SHARED SECTION PARTS
   ========================================================================== */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head__h { font-size: clamp(36px, 4.6vw, 76px); }
.sec-head__h em { color: var(--gold); }
.sec-head__p { max-width: 460px; justify-self: end; color: var(--ink-2); }
.sec-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; }
.sec-head--center .sec-head__p { justify-self: center; margin-top: 18px; }

/* Domain art: the fallback for any cover image not generated yet */
.art {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 38%, color-mix(in srgb, var(--acc) 34%, transparent), transparent 70%),
    radial-gradient(45% 40% at 18% 90%, rgba(226, 174, 54, .14), transparent 70%),
    linear-gradient(160deg, #0A0A0A, #0B0A08 70%);
}
.art::before { content: ''; position: absolute; inset: 0; opacity: .55; -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 80%); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 80%); }
.art--data::before { background: radial-gradient(circle, color-mix(in srgb, var(--acc) 70%, transparent) 1.2px, transparent 1.6px) 0 0 / 22px 22px; }
.art--ai::before { background: repeating-radial-gradient(circle at 72% 40%, transparent 0 26px, color-mix(in srgb, var(--acc) 45%, transparent) 26px 27px); }
.art--transform::before { background: repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--acc) 40%, transparent) 18px 19px); }
.art--commercial::before { background: repeating-linear-gradient(90deg, transparent 0 30px, color-mix(in srgb, var(--acc) 40%, transparent) 30px 31px); -webkit-mask-image: linear-gradient(0deg, #000, transparent 85%); mask-image: linear-gradient(0deg, #000, transparent 85%); }
.art--ops::before { background: repeating-linear-gradient(0deg, transparent 0 20px, color-mix(in srgb, var(--acc) 38%, transparent) 20px 21px); }
.art--engage::before { background: repeating-radial-gradient(circle at 30% 60%, transparent 0 34px, color-mix(in srgb, var(--acc) 40%, transparent) 34px 35px); }
.art__no { position: absolute; right: 4%; bottom: -6%; font: 400 clamp(160px, 26vw, 420px)/.8 var(--f-sc); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--acc) 40%, transparent); letter-spacing: -.04em; }
img[data-optional] { opacity: 0; transition: opacity 1.2s ease; }
img[data-optional].is-in { opacity: 1; }

/* ==========================================================================
   INDEX · 00 HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero__cv, .hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.4s ease; }
.hero.has-video .hero__video { opacity: 1; }
.hero.has-video .hero__cv, .hero.has-poster .hero__cv { opacity: 0; transition: opacity 1.2s; }
/* real footage is brighter than the canvas: a deeper veil keeps the statement and lede crisp */
.hero.has-poster .hero__veil, .hero.has-video .hero__veil { background:
  radial-gradient(ellipse 58% 50% at 50% 52%, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .62) 48%, rgba(0, 0, 0, .12) 85%),
  linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 66%, var(--bg) 100%); }
.hero__lede { text-shadow: 0 1px 18px rgba(0, 0, 0, .9); }
.hero__veil { position: absolute; inset: 0; background:
  radial-gradient(ellipse 62% 46% at 50% 48%, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, 0) 85%),
  linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 70%, var(--bg) 100%); }
.hero__center { position: relative; padding-top: 40px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 3vw, 38px); }
.hero__kicker .wm { font-size: 17px; }
.hero__kicker i { width: 28px; height: 1px; background: var(--line-3); }
.hero__kicker .mono { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.hero__title { font-size: clamp(44px, 8vw, 142px); line-height: .96; letter-spacing: -.02em; }
.hero__title .hl { display: block; overflow: hidden; padding: 0 .04em .06em; }
.hero__title .hl > span, .cover__l > span { display: inline-block; text-wrap: balance; }
.hero__title em { color: var(--gold); }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero__lede { max-width: 40em; margin: clamp(22px, 2.6vw, 34px) auto 0; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: clamp(28px, 3vw, 40px); }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: space-between; align-items: center; }

/* ==========================================================================
   SHARED EFFECTS
   ========================================================================== */
/* cards that hold a key figure carry a 2px accent rule on top */
.dossier::before, .metric::before, .board::before, .match::before, .std__focus::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: var(--acc); pointer-events: none;
}
/* headline words rise out of a mask */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em 0; margin: 0 -.04em -.1em 0; }
.wd > span { display: inline-block; will-change: transform; }
/* text that inks in as it is read */
.fw { transition: opacity .25s linear, color .25s linear; }
.js [data-fill] .fw { opacity: .16; }
/* portrait wipe */
.js [data-wipe] img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-wipe].is-in img { clip-path: inset(0 0 0 0); }
[data-tilt] { transform-style: preserve-3d; }

/* ==========================================================================
   INDEX · 01 THE LEDGER — a pinned evidence board
   ========================================================================== */
.ledger { position: relative; }
.ledger__pin { height: 100vh; height: 100svh; min-height: 540px; display: flex; padding: calc(var(--bar-h) + clamp(16px, 3vh, 28px)) 0 clamp(16px, 3vh, 32px); }
.ledger__grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .95fr); gap: clamp(24px, 3.5vw, 56px); align-items: stretch; }
.ledger__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ledger__head .label { margin-bottom: 14px; }
.ledger__head .sec-head__h { font-size: clamp(28px, min(3.4vw, 6.2vh), 56px); margin-bottom: clamp(14px, 2.6vh, 30px); }

.board {
  position: relative; flex: 1; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(22px, 2.4vw, 34px); border-radius: 4px; overflow: hidden; isolation: isolate; background: #050505;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.board__bg { position: absolute; inset: 0; z-index: -1; }
.board__bg img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s linear; }
.board__bg img.is-on { opacity: .62; transform: scale(1); }
.board__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.board__bg video.is-on { opacity: .72; }
.board__bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .62) 45%, rgba(0, 0, 0, .25) 100%),
  linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, transparent 45%); transition: background 1s; }
.board__top { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.board__top b { color: var(--acc); font-weight: 500; }
.board__ctl { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.board__pp { width: 32px; height: 32px; }
.board__v { margin: auto 0 0; font: 400 clamp(64px, min(10vw, 14vh), 176px)/.92 var(--f-display); font-variant-numeric: lining-nums; letter-spacing: -.02em; color: var(--ink); }
.od { display: inline-flex; align-items: flex-end; white-space: nowrap; }
.od__d { position: relative; display: inline-block; height: 1.1em; overflow: hidden; transition: width .7s var(--ease-out); }
.od__s { display: flex; flex-direction: column; transition: transform 1.25s cubic-bezier(.2, .9, .1, 1); }
.od__s span { display: block; height: 1.1em; line-height: 1.1em; text-align: center; }
.od__c { display: inline-block; height: 1.1em; line-height: 1.1em; white-space: pre; animation: odIn .7s var(--ease-out) both; }
@keyframes odIn { from { opacity: 0; transform: translateY(.35em); } }
.board__foot { margin-top: clamp(14px, 2.4vh, 24px); }
.board__l { max-width: 32ch; font: 400 clamp(17px, min(1.6vw, 3.2vh), 25px)/1.3 var(--f-display); color: var(--ink); }
.board__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.board__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.board__prog i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-d), var(--acc)); box-shadow: none; }
.board.is-run .board__prog i { animation: boardTimer var(--dur, 5s) linear forwards; }
.ledger.is-paused .board__prog i, .ledger.is-paused .lg.is-cur::before { animation-play-state: paused; }
@keyframes boardTimer { to { transform: scaleX(1); } }

.ledger__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; padding-top: 6px; }
.ledger__p { font-size: 15px; color: var(--ink-2); }
.ledger__tally { display: flex; flex-wrap: wrap; gap: 8px; }
.tally { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 14px; border: 0; border-radius: 3px; cursor: pointer; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s; }
.tally:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.tally.is-on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--gold); }
.tally__n { font: 400 19px/1 var(--f-display); color: var(--ink); }
.tally .grade { height: 22px; padding: 0 8px; }
.ledger__list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; border-top: 1px solid var(--line-2); -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.lg { position: relative; border-bottom: 1px solid var(--line); transition: opacity .4s, filter .4s; }
.lg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--acc); transform: scaleY(0); transition: transform .5s var(--ease-out); }
.lg a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 6px 10px 14px; text-decoration: none; transition: background .4s; }
.lg__v { font: 400 22px/1 var(--f-display); color: var(--ink-2); transition: color .4s; font-variant-numeric: tabular-nums; }
.lg__l { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.lg__l small { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lg .grade { height: 22px; padding: 0 8px; font-size: 8.5px; }
.lg a:hover { background: rgba(255, 255, 255, .03); }
.lg.is-cur::before { transform: scaleY(1); }
.js .lg.is-cur::before { transform-origin: top; animation: rowTimer var(--dur, 5s) linear forwards; }
@keyframes rowTimer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.lg.is-cur a { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 13%, transparent), transparent 80%); }
.lg.is-cur .lg__v { color: var(--acc); }
.lg.is-cur .lg__l { color: var(--ink); }
.lg.is-off { opacity: .18; filter: grayscale(1); }
.ledger__q { font-size: 10.5px; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; color: var(--muted); }
.ledger__q b { font-weight: 500; color: var(--gold); }

/* ==========================================================================
   INDEX · 02 THE REEL — the header rides inside the pinned frame
   ========================================================================== */
.casebook { position: relative; }
.reel { position: relative; }
.reel__pin { height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(14px, 2.4vh, 26px); padding: calc(var(--bar-h) + clamp(14px, 3vh, 30px)) 0 clamp(14px, 3vh, 26px); overflow: hidden; }
.reel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.reel__head .label { margin-bottom: 12px; }
.reel__head .sec-head__h { font-size: clamp(30px, 3.6vw, 58px); }
.reel__head .sec-head__p { max-width: 420px; font-size: 15px; color: var(--ink-2); }
.reel__view { min-height: 0; min-width: 0; }
.reel__track { display: flex; gap: clamp(16px, 2vw, 28px); height: 100%; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.reel__item { flex: none; width: min(74vw, 1080px); height: 100%; }
.file { position: relative; display: block; height: 100%; border-radius: 4px; overflow: hidden; text-decoration: none; isolation: isolate; box-shadow: inset 0 0 0 1px var(--line); transform-origin: 50% 50%; }
.file__media { position: absolute; inset: 0 -8%; z-index: -1; }
.file__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out), opacity 1.2s ease; }
.file:hover .file__img { transform: scale(1); }
.file__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .95) 100%), linear-gradient(90deg, rgba(0, 0, 0, .6), transparent 62%); }
.file__top { position: absolute; top: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.file__dom { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 2px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 9.5px; }
.file__dom i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: none; }
.file__body { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; }
.file__sector { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.file__h { margin-top: 10px; max-width: 17ch; font: 400 clamp(28px, min(4.2vw, 7.4vh), 72px)/1 var(--f-sc); color: var(--ink); }
.file__h em { font-style: normal; color: var(--gold-l); }
.file__title { margin-top: 10px; max-width: 56ch; font: 400 14.5px/1.45 var(--f-display); color: var(--ink-2); }
.file__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(14px, 2.4vh, 24px); padding-top: clamp(12px, 2vh, 18px); border-top: 1px solid var(--line-2); }
.file__metric { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 6px; align-items: center; }
.file__metric b { grid-row: span 2; font: 400 clamp(30px, 3vw, 46px)/1 var(--f-display); color: var(--ink); }
.file__metric > span:not(.grade) { max-width: 30ch; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.file__metric .grade { justify-self: start; }
.file__go { flex: none; display: inline-flex; align-items: center; gap: 12px; font: 500 14px/1 var(--f-body); color: var(--ink); }
.file__go i { width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; background: var(--acc); color: #000000; transition: transform .55s var(--spring); }
.file__go i svg { width: 15px; height: 15px; }
.file:hover .file__go i { transform: rotate(-45deg) scale(1.06); }
.reel__hud { display: flex; align-items: center; gap: 20px; }
.reel__count { font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.reel__count b { color: var(--gold); font-weight: 500; }
.reel__bar { position: relative; flex: 1; max-width: 420px; height: 1px; background: var(--line-2); }
.reel__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(.125); background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); }
.reel__hint { margin-left: auto; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   INDEX · 03 THE MAP — cells wave in, a spotlight follows the cursor,
   a crosshair marks the hovered case, its footage fills the reader
   ========================================================================== */
.map { padding: var(--section) 0; }
.map__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.map__grid { --mx: -999px; --my: -999px; position: relative; display: grid; grid-template-columns: minmax(130px, 1.1fr) repeat(6, minmax(0, 1fr)); border-radius: 4px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.map__grid > * { min-height: 78px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.js .map__grid > * { opacity: 0; transform: translateY(14px) scale(.96); }
.js .map__grid.is-in > * { animation: cellIn .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes cellIn { to { opacity: 1; transform: none; } }
.map__corner { display: flex; align-items: flex-end; padding: 16px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.map__col { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; padding: 16px 12px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; font: 400 12.5px/1.25 var(--f-body); color: var(--ink-2); transition: background .3s, color .3s; }
.map__col i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: none; }
.map__col:hover, .map__col.is-on { background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--ink); }
.map__row-h { display: flex; align-items: center; padding: 0 16px; font: 400 15px/1.2 var(--f-display); color: var(--ink-2); transition: color .3s, background .3s; }
.map__row-h.is-hot { color: var(--ink); background: rgba(255, 255, 255, .04); }
.map__cell { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .35s; }
.map__cell::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.map__cell.has::before { display: none; }
.map__cell.is-col { background: color-mix(in srgb, var(--acc, #fff) 7%, transparent); }
.map__cell.is-x { background: rgba(255, 255, 255, .035); }
.map__dot { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: color-mix(in srgb, var(--acc) 18%, transparent); box-shadow: inset 0 0 0 1.5px var(--acc) 60%, transparent); transition: transform .5s var(--spring), background .3s, opacity .4s; }
.map__dot b { position: relative; z-index: 1; font: 500 11px/1 var(--f-mono); color: var(--ink); }
.map__dot:hover, .map__dot.is-hot { transform: scale(1.18); background: var(--acc); }
.map__dot:hover b, .map__dot.is-hot b { color: #000000; }
.map__grid.is-filtered .map__dot:not(.is-match) { opacity: .16; transform: scale(.82); }
.map__read { position: relative; overflow: hidden; isolation: isolate; display: flex; border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); min-height: 420px; }
.map__bg { position: absolute; inset: 0; z-index: -1; }
.map__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 2.4s var(--ease-out); }
.map__bg img.is-on { opacity: .55; transform: scale(1); }
.map__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, .96) 100%); }
.map__rt { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 26px; width: 100%; }
.map__k { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.map__k b { color: var(--acc); font-weight: 500; }
.map__k span { margin-left: 8px; color: var(--muted); }
.map__t { font: 400 24px/1.15 var(--f-display); color: var(--ink); }
.map__s { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.map__m { font: 400 15px/1.3 var(--f-display); color: var(--ink); }
.map__m b { font-size: 30px; font-weight: 400; color: var(--acc); margin-right: 8px; }
.map__rt .link-btn { padding-top: 6px; }
.map__rt > * { transition: opacity .35s, transform .5s var(--ease-out); }
.map__read.is-swap .map__rt > * { opacity: 0; transform: translateY(8px); }

/* ==========================================================================
   INDEX · 04 THE STANDARD — the evidence ladder, climbed on scroll
   ========================================================================== */
.standard { position: relative; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: var(--section); }
.std__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + 24px) 0 32px; }
.std__pin > .wrap { width: 100%; }
.std__head { margin-bottom: clamp(22px, 4vh, 48px); }
.std { --gc: var(--g-qualitative); --p: 0; display: grid; grid-template-columns: 230px minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(18px, 2.6vw, 40px); align-items: stretch; }
.std__ladder { position: relative; padding-left: 30px; }
.std__rail { position: absolute; left: 8px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.std__rail i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p) * 100%); border-radius: 2px; background: var(--gc); box-shadow: none; transition: height .3s linear; }
.std__rungs { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.std__rungs li { position: relative; }
.std__rungs li:nth-child(1) { --c: var(--g-result); }
.std__rungs li:nth-child(2) { --c: var(--g-projection); }
.std__rungs li:nth-child(3) { --c: var(--g-target); }
.std__rungs li:nth-child(4) { --c: var(--g-qualitative); }
.std__rungs button { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; border-radius: 4px; text-align: left; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, box-shadow .4s, transform .5s var(--spring); }
.std__rungs button::before { content: ''; position: absolute; left: -27px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--line-3); transition: background .4s, box-shadow .4s; }
.std__rungs button.is-past::before { background: var(--c); box-shadow: none; }
.std__rungs button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 10%, var(--panel-2)); box-shadow: inset 0 0 0 1px var(--c); transform: translateX(6px); }
.std__rungs button[aria-pressed="true"]::before { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent); }
.std__n { font-size: 11px; letter-spacing: .14em; color: var(--c); }
.std__t { font: 400 22px/1.1 var(--f-sc); color: var(--ink); }
.std__focus { --acc: var(--gc); container-type: inline-size; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 2.6vw, 38px); border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .6s; }
.std__k { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.std__big { font: 400 clamp(34px, 11cqi, 104px)/.92 var(--f-sc); color: var(--gc); transition: color .5s; }
.std__def { max-width: 26ch; font: 400 clamp(19px, 1.6vw, 24px)/1.35 var(--f-display); color: var(--ink); }
.std__cnt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.std__cnt b { font: 400 26px/1 var(--f-display); letter-spacing: 0; color: var(--gc); margin-right: 6px; }
.std__ex { --gc2: var(--gc); padding: 22px 24px; border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.std__ek { margin-bottom: 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.std__row { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.std__row:first-child { border-top: 0; padding-top: 0; }
.std__row b { font: 400 24px/1 var(--f-display); color: var(--gc); }
.std__row span { font-size: 13.5px; color: var(--ink-2); }
.std__row small { display: block; margin-top: 3px; font: 400 9.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.std__row:hover span { color: var(--ink); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(24px, 4vw, 48px); }
.rules p { padding: 20px 20px 22px; border-top: 1px solid var(--gold-d); font: 400 clamp(17px, 1.35vw, 20px)/1.35 var(--f-display); color: var(--ink); }
.rules b { display: block; margin-bottom: 12px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; color: var(--gold); }

/* ==========================================================================
   INDEX · 05 THE PEOPLE — portraits wipe in, the Council in orbit
   ========================================================================== */
.people { padding: var(--section) 0; }
.people__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.person { display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.person__ph { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #0D0D0D; }
.person__ph::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 100%, transparent 0 34px, rgba(226, 174, 54, .07) 34px 35px); }
.person__ph img { position: absolute; left: 50%; bottom: 0; height: 104%; width: auto; max-width: none; transform: translateX(-50%); object-fit: contain; }
.person:hover .person__ph img { transform: translateX(-50%) scale(1.04); }
.person__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--panel)); }
.person__t { display: flex; flex-direction: column; gap: 10px; padding: 4px 26px 26px; flex: 1; }
.person__k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.person__n { font-size: clamp(26px, 2.2vw, 34px); }
.person__b { font-size: 14.5px; color: var(--ink-2); }
.person__cases { margin: 6px 0 10px; border-top: 1px solid var(--line); }
.person__cases a { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 16px/1.3 var(--f-display); transition: color .3s, padding .4s var(--ease-out); }
.person__cases a:hover { color: var(--gold-l); padding-left: 6px; }
.person__cases b { font-size: 11px; font-weight: 500; color: var(--gold); }
.person__cases span { grid-column: 2; font: 400 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.person .link-btn { margin-top: auto; }
.council { position: relative; display: grid; place-items: center; min-height: 460px; border-radius: 4px; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(226, 174, 54, .3); }
.council::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgba(226, 174, 54, .06) 38px 39px); }
.council__orbit { position: absolute; inset: 0; }
.council__orbit img { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #0A0A0A; box-shadow: 0 0 0 2px #0A0A0A, 0 10px 20px -10px #000; will-change: transform, opacity; }
.council__core { position: relative; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 200px; text-align: center; pointer-events: none; }
.council__n { font: 400 clamp(72px, 7vw, 108px)/.9 var(--f-display); color: var(--gold); }
.council__t { font: 400 16px/1.35 var(--f-display); color: var(--ink); text-shadow: 0 2px 12px #000; }
.council__go { position: absolute; z-index: 301; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-l); }
.council__go i { width: 30px; height: 30px; border-radius: 3px; display: grid; place-items: center; background: var(--gold); color: #0A0A0A; transition: transform .5s var(--spring); }
.council__go svg { width: 11px; height: 11px; }
.council:hover .council__go i { transform: rotate(-45deg); }

/* ==========================================================================
   INDEX · 06 FINDER — the match opens on its own footage
   ========================================================================== */
.finder { position: relative; padding: var(--section) 0; overflow: hidden; isolation: isolate; }
.finder__glow { display: none; }
.finder__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.q { margin: 0 0 14px; padding: 24px; border: 0; border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.q legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; padding: 0; font: 400 22px/1.2 var(--f-display); }
.q legend span { font-size: 11px; color: var(--gold); letter-spacing: .14em; }
.q__opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.q__opts label { position: relative; cursor: pointer; }
.q__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q__opts span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 3px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 14px/1 var(--f-body); color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--spring); }
.q__opts label:hover span { box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); }
.q__opts input:checked + span { background: var(--ink); color: #000000; box-shadow: none; transform: translateY(-2px); }
.q__opts input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.match { position: sticky; top: calc(var(--bar-h) + 24px); overflow: hidden; isolation: isolate; border-radius: 4px; min-height: 420px; display: flex; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.match__media { position: absolute; inset: 0; z-index: -1; }
.match__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; clip-path: circle(0% at 85% 15%); transition: clip-path 1.3s var(--ease-io), opacity .3s; }
.match.has-img .match__media img { opacity: .6; clip-path: circle(150% at 85% 15%); }
.match__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .92) 60%); }
.match__in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 28px; width: 100%; }
.match__k { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.match__k span { margin-left: 8px; color: var(--acc); }
.match__h { margin-top: 12px; font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--f-display); }
.match__h em { display: block; font-style: normal; color: var(--gold); }
.match__card { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 20px; border-radius: 4px; text-decoration: none; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); transition: transform .5s var(--spring); }
.match__card:hover { transform: translateY(-3px); }
.match__no { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.match__t { font: 400 24px/1.15 var(--f-display); }
.match__s { font-size: 14px; color: var(--ink-2); }
.match__m { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.match__m b { font: 400 28px/1 var(--f-display); color: var(--ink); }
.match__also { font-size: 13.5px; color: var(--ink-2); }
.match__also a { color: var(--ink); text-underline-offset: 3px; }
.match__cta { align-self: flex-start; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { border-top: 1px solid var(--line); padding: 34px 0 30px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot__in i { font-style: normal; color: var(--dim); }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.foot__brand img { border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(23, 19, 14, 0.18); }
.foot__brand .wm { font-size: 19px; letter-spacing: .04em; text-transform: none; color: var(--ink); }
.foot--index { padding-top: clamp(48px, 6vw, 80px); }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot__nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color .3s; }
.foot__nav a:hover { color: var(--gold-l); }
.foot--index .foot__in { align-items: flex-start; }
.foot--index .foot__in p:last-child { max-width: 56ch; text-align: right; letter-spacing: .1em; line-height: 1.6; }

/* ==========================================================================
   CASE · 00 COVER — one statement over the loop, sized to any screen.
   On scroll the footage closes into a framed card (cases.js).
   ========================================================================== */
.cover { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.cover__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; will-change: clip-path; }
.cover__img, .cover__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__video { opacity: 0; transition: opacity 1.4s; }
.cover.has-video .cover__video { opacity: 1; }
.cover__veil { position: absolute; inset: 0; background:
  radial-gradient(ellipse 62% 52% at 50% 50%, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .12) 88%),
  linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .85) 100%); }
.cover__center { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--bar-h) * .6); will-change: transform, opacity; }
.cover__kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 4vh, 38px); padding: 9px 16px; border-radius: 2px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.cover__kicker a { text-decoration: none; color: var(--ink); }
.cover__kicker i { font-style: normal; color: var(--dim); }
.cover__h { max-width: 15ch; font-size: clamp(38px, min(7.4vw, 13vh), 132px); line-height: .98; letter-spacing: -.015em; text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.cover__l { display: block; overflow: hidden; padding: 0 .04em .08em; }
.cover__l > span { display: inline-block; }
.cover__h em { color: var(--acc); }
.cover__sub { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(18px, 3.6vh, 34px); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); text-shadow: 0 1px 12px #000; }
.cover__sub i { font-style: normal; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: none; flex: none; }
.cover__foot { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vh, 28px); display: flex; justify-content: space-between; align-items: center; }

/* ==========================================================================
   CASE · THE BRIEF — standfirst inks in; the dossier holds the facts
   ========================================================================== */
.brief { position: relative; padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.brief__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.brief__l .label { margin-bottom: 26px; }
.brief__stand { font: 400 clamp(26px, 2.7vw, 44px)/1.3 var(--f-display); letter-spacing: -.005em; color: var(--ink); }
.dossier { position: sticky; top: calc(var(--bar-h) + 24px); padding: clamp(22px, 2.2vw, 30px); border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.dossier__metric { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.dossier__v { font: 400 clamp(56px, 5.6vw, 96px)/.9 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.dossier__l { font-size: 15px; color: var(--ink-2); }
.dossier__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.dossier__dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dossier__dl div:nth-last-child(-n+2) { border-bottom: 0; }
.dossier__dl dt { margin-bottom: 6px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dossier__dl dd { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); }

/* ==========================================================================
   CASE · CHAPTERS
   ========================================================================== */
.ch { position: relative; padding: var(--section) 0; }
.opener { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
/* the numeral is an outline that fills with the case colour as you arrive */
.opener__num {
  --f: 0%;
  display: block; font: 400 clamp(90px, 12vw, 190px)/.78 var(--f-sc); color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--acc) 60%, transparent);
  background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 85%, transparent) var(--f), transparent var(--f));
  -webkit-background-clip: text; background-clip: text;
}
.opener .label { margin-bottom: 16px; }
.opener__h { font-size: clamp(34px, 4.4vw, 72px); max-width: 18ch; }
.opener__h em { color: var(--acc); }
.read--cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.read p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.read .lead { font: 400 clamp(21px, 1.8vw, 27px)/1.45 var(--f-display); color: var(--ink); }

.chals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; perspective: 1200px; }
.chal { position: relative; padding: 26px 22px 28px; border-radius: 4px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.chal::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--acc), transparent); transform: scaleX(.18); transform-origin: left; transition: transform .9s var(--ease-out); }
.chal:hover::before { transform: scaleX(1); }
.chal__big { position: absolute; right: -6px; bottom: -22px; font: 400 120px/1 var(--f-sc); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; }
.chal__n { position: relative; font-size: 10.5px; letter-spacing: .14em; color: var(--acc); }
.chal h3 { position: relative; margin: 18px 0 10px; font: 400 22px/1.15 var(--f-display); }
.chal p { position: relative; font-size: 14.5px; color: var(--ink-2); }

/* the work: a sticky heading and a timeline that draws itself */
.ch--work { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.work__head { position: sticky; top: calc(var(--bar-h) + 40px); }
.work__head .opener__num { margin-bottom: 18px; }
.work__head .label { margin-bottom: 16px; }
.work__count { margin-top: 28px; font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.work__count b { font: 400 34px/1 var(--f-display); letter-spacing: 0; color: var(--acc); margin-right: 6px; }
.strands-wrap { position: relative; padding-left: 44px; }
.strands__line { position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: var(--line-2); }
.strands__line i { position: absolute; inset: 0; border-radius: 2px; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--acc), var(--gold)); box-shadow: none; }
.strand { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.js .strand { opacity: .32; transition: opacity .6s; }
.js .strand.is-on { opacity: 1; }
.strand__node { position: absolute; left: -44px; top: 32px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-3); transition: box-shadow .5s; }
.strand__node i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); transition: background .5s, box-shadow .5s, transform .6s var(--spring); }
.strand.is-on .strand__node { box-shadow: inset 0 0 0 1.5px var(--acc); }
.strand.is-on .strand__node i { background: var(--acc); box-shadow: none; transform: scale(1.3); }
.strand__n { padding-top: 7px; font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.strand h3 { margin-bottom: 10px; font: 400 clamp(22px, 2vw, 30px)/1.15 var(--f-display); }
.strand p { font-size: 15.5px; color: var(--ink-2); }

/* ── Fig. 1 container (each figure is drawn by figs.js) ── */
.fig { margin-top: clamp(56px, 7vw, 100px); padding: clamp(18px, 2vw, 28px); border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.fig__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.fig-label { display: flex; align-items: baseline; gap: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.fig-label span { color: var(--acc); }
.fig__alt { display: none; color: var(--ink-2); }
.no-js .fig__alt { display: block; }
.fig-cap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fig__stage { position: relative; }
.fbtns { display: inline-flex; padding: 4px; border-radius: 4px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.fbtns button { height: 36px; padding: 0 14px; border: 0; border-radius: 3px; background: none; cursor: pointer; font: 500 13px/1 var(--f-body); color: var(--ink-2); transition: background .3s, color .3s; }
.fbtns button[aria-pressed="true"] { background: var(--ink); color: #000000; }
.fbtns button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.fctl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.fread { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.fread div { padding: 14px 16px; border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); }
.fread dt { font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fread dd { margin: 8px 0 0; font: 400 22px/1.1 var(--f-display); color: var(--ink); transition: color .4s; }
.fread dd.is-good { color: var(--g-result); }
.fread dd.is-bad { color: #E9A44C; }
.fsvg { width: 100%; height: auto; overflow: visible; }
.fsvg text { font-family: var(--f-mono); fill: var(--ink-2); }
.ghost-btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 0; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font: 400 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: background .3s, color .3s; }
.ghost-btn:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.ghost-btn svg { width: 13px; height: 13px; }

/* mesh */
.mesh .ln { stroke: var(--line-3); stroke-width: 1.2; fill: none; transition: stroke .5s, opacity .5s; }
.mesh .ln--mesh { stroke: color-mix(in srgb, var(--acc) 55%, transparent); stroke-dasharray: 3 5; }
.mesh .node circle { fill: var(--panel-2); stroke: var(--line-3); stroke-width: 1.4; transition: fill .5s, stroke .5s; }
.mesh .node text { font: 400 12px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; fill: var(--ink); }
.mesh .node .prod { fill: color-mix(in srgb, var(--acc) 22%, transparent); stroke: var(--acc); opacity: 0; transition: opacity .6s; }
.mesh.is-mesh .node .prod { opacity: 1; }
.mesh.is-mesh .node circle.c { stroke: var(--acc); }
.mesh .hub { fill: #241D14; stroke: var(--gold); stroke-width: 1.5; transition: all .6s var(--ease-out); }
.mesh .hub-t { font: 400 12px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; fill: var(--gold-l); }
.mesh .pkt { fill: var(--gold-l); }
.mesh.is-mesh .pkt { fill: var(--acc); }
.mesh .queue rect { fill: #E9A44C; opacity: .85; }

/* router */
.rt { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 18px; }
.rt__qs { display: grid; gap: 10px; align-content: start; }
.rt__qs button { padding: 16px 18px; border: 0; border-radius: 4px; text-align: left; cursor: pointer; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); font: 400 17px/1.3 var(--f-display); color: var(--ink-2); transition: box-shadow .3s, color .3s, background .3s; }
.rt__qs button small { display: block; margin-bottom: 8px; font: 400 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rt__qs button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--acc) 10%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.rt__board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 4px; background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px var(--line); }
.rt__dom { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 4px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, opacity .4s; }
.rt__dom h4 { margin: 0 0 4px; font: 400 17px/1.2 var(--f-display); }
.rt__dom span { padding: 8px 10px; border-radius: 3px; font: 400 10.5px/1.3 var(--f-mono); letter-spacing: .06em; background: rgba(255, 255, 255, .04); color: var(--ink-2); transition: background .4s, color .4s; }
.rt__dom.is-need { box-shadow: inset 0 0 0 1.5px var(--acc); }
.rt__dom.is-need span.is-use { background: color-mix(in srgb, var(--acc) 22%, transparent); color: var(--ink); }
.rt__dom.is-lock { opacity: .4; }
.rt__dom .lock { position: absolute; top: 12px; right: 12px; font: 400 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #E9A44C; opacity: 0; transition: opacity .3s; }
.rt__dom.is-lock .lock { opacity: 1; }
.rt__links { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; overflow: visible; }
.rt__links path { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.rt__ans { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 4px; background: rgba(255, 255, 255, .04); font-size: 14.5px; color: var(--ink-2); }
.rt__ans b { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; }
.rt__ans b.ok { background: color-mix(in srgb, var(--g-result) 18%, transparent); color: var(--g-result); }
.rt__ans b.part { background: rgba(233, 164, 76, .16); color: #E9A44C; }

/* levers */
.lv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, .5fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.lv__col { display: grid; gap: 10px; align-content: center; }
.lv__col h4 { margin: 0 0 4px; font: 400 9.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lv__i { position: relative; z-index: 1; padding: 14px 16px; border: 0; border-radius: 4px; text-align: left; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); font: 400 16px/1.25 var(--f-display); color: var(--ink-2); transition: box-shadow .4s, color .4s, background .4s, opacity .4s; }
button.lv__i { cursor: pointer; }
.lv__i small { display: block; margin-bottom: 6px; font: 400 9.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--acc); }
.lv__i.is-on { color: var(--ink); background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.lv.has-sel .lv__i:not(.is-on) { opacity: .45; }
.lv__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lv__svg path { fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: stroke .4s, opacity .4s; }
.lv__svg path.is-on { stroke: var(--acc); stroke-width: 1.8; }
.lv.has-sel .lv__svg path:not(.is-on) { opacity: .2; }
.lv__save { margin-top: 18px; padding: 18px; border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); }
.lv__save-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lv__save-top b { font: 400 30px/1 var(--f-display); }
.lv__bar { position: relative; height: 12px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.lv__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(45deg, var(--g-projection) 0 6px, color-mix(in srgb, var(--g-projection) 45%, transparent) 6px 12px); transition: transform 2s var(--ease-out); }
.lv__save.is-in .lv__bar i { transform: scaleX(1); }
.lv__save p { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* hundred */
.hd__track { position: relative; margin: 6px 0 16px; }
.hd__phases { display: grid; grid-template-columns: 15fr 15fr 100fr; gap: 4px; margin-bottom: 10px; }
.hd__phases span { padding: 9px 10px; border-radius: 3px; font: 400 9.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .04); color: var(--muted); transition: background .4s, color .4s; }
.hd__phases span.is-on { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--ink); }
.hd__lanes { display: grid; gap: 10px; }
.hd__lane { display: grid; grid-template-columns: 170px minmax(0, 1fr) 54px; align-items: center; gap: 14px; }
.hd__lane b { font: 400 16px/1.2 var(--f-display); font-weight: 400; }
.hd__lane small { display: block; font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hd__bar { position: relative; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.hd__bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 50%, transparent), var(--acc)); }
.hd__pct { font: 400 13px/1 var(--f-mono); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.hd__lane--total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.hd__lane--total .hd__bar { height: 14px; }
.hd__lane--total .hd__bar i { background: linear-gradient(90deg, var(--gold-d), var(--g-result)); }
.hd__lane--total .hd__pct { color: var(--ink); font-size: 15px; }
.hd__scrub { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hd__scrub input { flex: 1; accent-color: var(--acc); }
.hd__day { min-width: 120px; font: 400 22px/1 var(--f-display); }

/* pipeline */
.pp__svg .axis { stroke: var(--line-3); stroke-width: 1; }
.pp__svg .tick { stroke: var(--line-2); }
.pp__svg .mlab { font-size: 11px; letter-spacing: 1.5px; fill: var(--muted); }
.pp__svg .ms circle { fill: var(--panel-2); stroke: var(--acc); stroke-width: 1.6; }
.pp__svg .ms.is-on circle { fill: var(--acc); }
.pp__svg .ms text.v { font: 400 30px var(--f-display); fill: var(--ink); }
.pp__svg .ms text.l { font-size: 11px; letter-spacing: 1px; fill: var(--ink-2); }
.pp__svg .cd circle { fill: var(--gold); }
.pp__svg .acct rect { fill: var(--acc); }
.pp__svg .span { stroke: var(--acc); stroke-width: 2; stroke-linecap: round; }
.pp__svg .sp-t { font-size: 10.5px; letter-spacing: 1.5px; fill: var(--ink-2); }
.pp__svg .head { stroke: var(--gold-l); stroke-width: 1.4; stroke-dasharray: 2 4; }

/* rooms */
.rm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.rm__svg .seat { fill: var(--panel-2); stroke: var(--line-3); stroke-width: 1.4; transition: fill .4s, stroke .4s; }
.rm__svg .seat.is-on { fill: var(--acc); stroke: var(--acc); }
.rm__svg .ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 5; }
.rm__svg .n { font: 400 64px var(--f-display); fill: var(--ink); }
.rm__svg .nl { font-size: 11px; letter-spacing: 2px; fill: var(--muted); }
.rm__svg .ev circle { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.rm__svg .ev text { font-size: 10px; letter-spacing: 1.2px; fill: var(--gold-l); }
.rm__uc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rm__uc div { padding: 18px; border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .5s, background .5s; }
.rm__uc div.is-on { background: color-mix(in srgb, var(--acc) 10%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.rm__uc h4 { margin: 0 0 10px; font: 400 18px/1.2 var(--f-display); }
.rm__uc p { display: flex; align-items: center; gap: 8px; font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rm__uc p::before { content: ''; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px var(--muted); transition: background .4s, box-shadow .4s; }
.rm__uc div.is-on p { color: var(--g-result); }
.rm__uc div.is-on p::before { background: var(--g-result); box-shadow: none; }

/* procure */
.pc__sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pc__site { position: relative; padding: 16px; border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); }
.pc__site h4 { margin: 0 0 4px; font: 400 17px/1.2 var(--f-display); }
.pc__site small { display: block; font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc__tank { position: relative; height: 130px; margin: 14px 0 10px; border-radius: 3px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.pc__tank i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 70%, transparent), color-mix(in srgb, var(--acc) 30%, transparent)); transition: height 1.2s var(--ease-out); }
.pc__tank .need { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--ink-2); }
.pc__tank .need::after { content: 'Needed'; position: absolute; right: 6px; top: -16px; font: 400 9px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pc__st { font: 400 10px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.pc__st.ex { color: #E9A44C; } .pc__st.sh { color: #E9A44C; } .pc__st.ok { color: var(--g-result); }
.pc__req { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.pc__req span { padding: 6px 8px; border-radius: 3px; font: 400 10px/1 var(--f-mono); background: rgba(233, 164, 76, .14); color: #E9A44C; transition: opacity .5s, transform .5s; }
.pc__req span.is-gone { opacity: 0; transform: translateY(-6px); }
.pc__req span.rep { background: color-mix(in srgb, var(--g-result) 16%, transparent); color: var(--g-result); }
.pc__po { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); }
.pc__po p { font-size: 14.5px; color: var(--ink-2); }
.pc__po b { font-weight: 500; color: var(--ink); }

/* single view of physician */
.svp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.svp__src { display: grid; gap: 10px; align-content: start; }
.svp__s { padding: 14px 16px; border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s; }
.svp__s h4 { margin: 0 0 8px; display: flex; justify-content: space-between; font: 400 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.svp__s h4 b { font-weight: 500; color: var(--acc); }
.svp__s ul { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.svp__reps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svp__rep { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 4px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.svp__rep h4 { margin: 0; font: 400 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.svp__card { padding: 12px; border-radius: 3px; background: rgba(255, 255, 255, .04); }
.svp__card b { display: block; font: 400 17px/1.2 var(--f-display); }
.svp__card small { font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svp__f { display: grid; gap: 5px; margin-top: 10px; }
.svp__f span { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.svp__f span em { font-style: normal; color: var(--ink); text-align: right; }
.svp__f span.miss em { color: var(--dim); }
.svp__talk { padding: 10px 12px; border-radius: 3px; font-size: 13px; line-height: 1.4; background: rgba(233, 164, 76, .1); color: #F0C18A; }
.svp.is-one .svp__talk { background: color-mix(in srgb, var(--g-result) 12%, transparent); color: #9FE3C6; }
.svp__prep { display: flex; align-items: center; gap: 10px; font: 400 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svp__prep i { flex: 1; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; position: relative; }
.svp__prep i::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, .9)); background: #E9A44C; transition: transform 1s var(--ease-out), background .6s; }
.svp.is-one .svp__prep i::after { background: var(--g-result); }

/* ── Outcome ── */
.ch--outcome { padding-bottom: calc(var(--section) * .7); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: clamp(40px, 5vw, 64px); }
.metric { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px; border-radius: 4px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.metric__v { font: 400 clamp(52px, 5.4vw, 92px)/.9 var(--f-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric__l { flex: 1; font-size: 14.5px; color: var(--ink-2); }
.nofig { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); padding: 26px 28px; border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.nofig__mark { position: relative; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.nofig__mark::after { content: ''; position: absolute; width: 84%; height: 1.5px; background: var(--muted); transform: rotate(-45deg); }
.nofig p { max-width: 70ch; color: var(--ink-2); }
.nofig b { display: block; margin-bottom: 4px; font: 400 20px/1.3 var(--f-display); color: var(--ink); }
.outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); border-top: 1px solid var(--line-2); }
.out { position: relative; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.out::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--acc), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.out.is-in::after { transform: scaleX(1); }
.out__t { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.out h3 { font: 400 clamp(20px, 1.6vw, 24px)/1.2 var(--f-display); }
.out p { font-size: 15px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.legend a { color: var(--gold); text-underline-offset: 4px; }

/* ── What it shows: each takeaway inks in as it is read ── */
.ch--meaning { padding-top: calc(var(--section) * .7); }
.meaning { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.meaning__head { position: sticky; top: calc(var(--bar-h) + 40px); }
.meaning__head .opener__num { margin-bottom: 18px; }
.takes li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 30px 0; border-top: 1px solid var(--line); }
.takes li:last-child { border-bottom: 1px solid var(--line); }
.takes .mono { padding-top: 8px; font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.takes p { font: 400 clamp(22px, 2vw, 32px)/1.35 var(--f-display); color: var(--ink); }
.who { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center; margin-top: clamp(48px, 6vw, 90px); padding: 22px; border-radius: 4px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(226, 174, 54, .25); }
.who__ph { position: relative; display: block; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #0D0D0D; }
.who__ph img { position: absolute; left: 50%; bottom: 0; height: 108%; width: auto; max-width: none; transform: translateX(-50%); }
.who__t { display: flex; flex-direction: column; gap: 8px; }
.who__k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.who__name { font: 400 clamp(28px, 2.6vw, 40px)/1.05 var(--f-sc); }
.who__role { font-size: 14px; color: var(--ink); }
.who__bio { max-width: 60ch; font-size: 14.5px; color: var(--ink-2); }
.who .link-btn { margin-top: 8px; }

/* ── Source record ── */
.record { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.record__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.record__h { font-size: clamp(30px, 3vw, 46px); }
.record__h em { color: var(--gold); }
.record__p { margin-top: 16px; max-width: 42ch; font-size: 15px; color: var(--ink-2); }
.record__dl { margin: 0; border-top: 1px solid var(--line-2); }
.record__dl div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.record__dl dt { padding-top: 3px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.record__dl dd { margin: 0; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.record__dl a { color: var(--gold-l); text-underline-offset: 3px; }

/* ── Next case: full bleed, on its own footage ── */
.pnav { padding: 0; }
.next { position: relative; display: block; min-height: clamp(440px, 78svh, 720px); overflow: hidden; isolation: isolate; text-decoration: none; border-top: 1px solid var(--line); }
.next__media { position: absolute; inset: 0; z-index: -1; }
.next__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.2s var(--ease-out), opacity 1.2s ease; }
.next:hover .next__media img { transform: scale(1.02); }
.next__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .25) 100%), linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 55%); }
.next__in { position: relative; min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-top: 80px; padding-bottom: clamp(40px, 7vh, 72px); }
.next__k { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.next__k b { font-weight: 500; color: var(--acc); }
.next__h { max-width: 16ch; font: 400 clamp(44px, min(6.4vw, 11vh), 112px)/.98 var(--f-sc); color: var(--ink); transition: translate 1s var(--ease-out); }
.next__h em { font-style: normal; color: var(--acc); }
.next:hover .next__h { translate: 10px 0; }
.next__t { max-width: 60ch; font: 400 16px/1.45 var(--f-display); color: var(--ink-2); }
.next__go { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; font: 500 15px/1 var(--f-body); color: var(--ink); }
.next__go i { width: 54px; height: 54px; border-radius: 4px; display: grid; place-items: center; background: var(--acc); color: #000000; transition: transform .6s var(--spring); }
.next__go i svg { width: 16px; height: 16px; }
.next:hover .next__go i { transform: rotate(-45deg) scale(1.08); }
.close { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 40px; }
.close__prev { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font: 400 17px/1.3 var(--f-display); color: var(--ink-2); transition: color .3s; }
.close__prev small { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.close__prev i { width: 40px; height: 40px; flex: none; border-radius: 3px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .5s var(--spring); }
.close__prev i svg { width: 13px; height: 13px; }
.close__prev:hover { color: var(--ink); }
.close__prev:hover i { transform: translateX(-4px); }
.close__acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .council { grid-column: 1 / -1; }
  .map__wrap { grid-template-columns: 1fr; }
  .map__read { min-height: 300px; }
  .std { grid-template-columns: 200px minmax(0, 1fr); }
  .std__ex { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__feat, .bar__ch { display: none; }
  .sec-head, .read--cols, .meaning, .record__grid, .finder__grid, .rt, .rm, .svp, .brief__grid, .work, .ledger__grid { grid-template-columns: 1fr; }
  .sec-head { gap: 18px; }
  .sec-head__p { justify-self: start; }
  .ledger__pin, .std__pin { height: auto; min-height: 0; padding: var(--section) 0 0; }
  .ledger__list { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .board { min-height: 380px; }
  .reel__pin { height: auto; overflow: visible; grid-template-rows: auto; padding: var(--section) 0 0; }
  .reel__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .reel__track { width: auto; height: auto; flex-direction: column; }
  .reel__item { width: 100%; height: auto; }
  .file { height: min(78svh, 600px); }
  .reel__hud { display: none; }
  .map__grid { overflow-x: auto; grid-template-columns: 120px repeat(6, minmax(86px, 1fr)); }
  .std { grid-template-columns: 1fr; }
  .std__ladder { padding-left: 0; }
  .std__rail, .std__rungs button::before { display: none; }
  .std__rungs { flex-direction: row; flex-wrap: wrap; height: auto; }
  .std__rungs li { flex: 1 1 40%; }
  .std__rungs button[aria-pressed="true"] { transform: none; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outs { grid-template-columns: 1fr; }
  .work__head, .meaning__head, .dossier { position: relative; top: auto; }
  .lv { grid-template-columns: 1fr 40px 1fr; }
  .pc__sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match { position: relative; top: auto; }
  .who { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .hero__title { font-size: 10.6vw; }
  .cover__h { font-size: 11vw; }
  .cover__kicker { letter-spacing: .16em; }
  .lg a { grid-template-columns: 78px minmax(0, 1fr); }
  .lg .grade { grid-column: 2; justify-self: start; }
  .file__foot { flex-direction: column; align-items: flex-start; }
  .file__h { font-size: 32px; }
  .opener { grid-template-columns: 1fr; }
  .opener > .opener__num { display: none; }
  .dossier__dl { grid-template-columns: 1fr; }
  .dossier__dl div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .rules, .people__grid, .rm__uc, .rt__board { grid-template-columns: 1fr; }
  .council { min-height: 380px; }
  .lv { grid-template-columns: 1fr; gap: 10px; }
  .lv__svg, .lv__gap { display: none; }
  .hd__lane { grid-template-columns: 110px minmax(0, 1fr) 46px; gap: 10px; }
  .pc__sites, .svp__reps { grid-template-columns: 1fr; }
  .record__dl div { grid-template-columns: 1fr; gap: 6px; }
  .who { grid-template-columns: 1fr; }
  .who__ph { max-width: 200px; }
  .nofig { grid-template-columns: 1fr; }
  .close { flex-direction: column; align-items: flex-start; }
  .foot--index .foot__in p:last-child { text-align: left; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .ledger__p { display: none; }
  .lg a { padding-top: 7px; padding-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .cue i, .hero__title em, .rt__links path, .glow::before, .map__dot::before { animation: none; }
  .js [data-fill] .fw { opacity: 1; }
  .js .strand { opacity: 1; }
  .js .map__grid > * { opacity: 1; transform: none; }
  .js [data-wipe] img { clip-path: none; }
}
