/* Teaching (teaching.fintechforensics.com): base copied from the SemaBooks site (2026-10-12), then our own film.
   Paper and ink; colours with fixed meanings: blue = the AI teacher, green = strong / understood,
   amber = shaky / needs attention, red = weak / lost. The connecting element: the seats of the class. */

:root {
  --paper: #F5F2EA;
  --paper-2: #EEEADF;
  --desk: #EBE6D9;
  --card: #FCFAF6;
  --card-2: #F7F4EC;
  --sheet: #FFFDF8;
  --ink: #15181B;
  --ink-2: #3D4349;
  --ink-3: #5E646A;
  --line: rgba(21, 24, 27, .11);
  --line-2: rgba(21, 24, 27, .2);
  --green: #0E7A5E;
  --green-t: #0B6A51;
  --green-soft: rgba(14, 122, 94, .11);
  --amber: #D99A0B;
  --amber-t: #845900;
  --amber-soft: rgba(217, 154, 11, .17);
  --red: #A6493F;
  --red-t: #93392F;
  --red-soft: rgba(166, 73, 63, .12);
  --blue: #2B5BA6;
  --blue-t: #234D8F;
  --blue-soft: rgba(43, 91, 166, .12);
  --board: #1F3A33;
  --chalk: #EEF1EA;
  --on-ink: #F5F2EA;
  --shadow: 0 1px 2px rgba(21, 24, 27, .05), 0 6px 18px -10px rgba(21, 24, 27, .22);
  --shadow-lg: 0 1px 2px rgba(21, 24, 27, .05), 0 30px 60px -30px rgba(21, 24, 27, .35);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.33, 1, .68, 1);
  --gut: 16px;
  --maxw: 1240px;
  --hdr: 64px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1521;
    --paper-2: #111A28;
    --desk: #131D2B;
    --card: #182436;
    --card-2: #1C2A3E;
    --sheet: #1E2C41;
    --ink: #EEEAE0;
    --ink-2: #C9C5BB;
    --ink-3: #A3A097;
    --line: rgba(238, 234, 224, .11);
    --line-2: rgba(238, 234, 224, .2);
    --green-t: #4CC6A0;
    --green-soft: rgba(30, 170, 130, .16);
    --amber-t: #F0BB45;
    --amber-soft: rgba(217, 154, 11, .2);
    --red-t: #E58A7F;
    --red-soft: rgba(200, 90, 78, .18);
    --blue: #6E9BE6;
    --blue-t: #8DB1F0;
    --blue-soft: rgba(110, 155, 230, .18);
    --board: #18302A;
    --chalk: #E8ECE4;
    --on-ink: #0E1521;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .75);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --gut: 28px; --hdr: 72px; } }
@media (min-width: 1200px) { :root { --gut: 40px; } }
@media (min-width: 1700px) { :root { --maxw: 1440px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--paper) var(--grain); background-size: 180px 180px;
  color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2.5px solid var(--green-t); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(14, 122, 94, .22); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -.01em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-block; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav .nav-cta a { background: var(--ink); color: var(--on-ink); margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--ink-2); color: var(--on-ink); }
.nav .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 999px; }
.nav-toggle { display: none; }
@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; }
  .nav-toggle i { position: relative; width: 16px; height: 10px; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
  .nav-toggle i::before { top: 1px; } .nav-toggle i::after { top: 7px; }
  .menu-open .nav-toggle i::before { top: 4.2px; transform: rotate(45deg); }
  .menu-open .nav-toggle i::after { top: 4.2px; transform: rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--hdr); background: var(--paper) var(--grain); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px var(--gut) 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { display: block; padding: 14px 6px; font-size: 19px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); padding-left: 14px; }
  .nav .nav-cta a { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-t); margin: 0 0 18px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.h1 { font-family: var(--serif); font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -.018em; }
.h1 em, .h2 em { font-style: italic; color: var(--ink-2); }
.h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.012em; margin-bottom: 20px; }
.h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 8px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }
.prose p { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.tlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 4px; font-weight: 500; }
.tlink:hover { text-decoration-thickness: 2.5px; }
.arrow::after { content: " \2192"; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec-tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { max-width: 52ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1.25fr; } .grid-2.flip > :first-child { order: 2; } .grid-2.even { grid-template-columns: 1fr 1fr; } }
.blocks { display: grid; gap: 28px 40px; }
@media (min-width: 700px) { .blocks.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .blocks.three { grid-template-columns: repeat(3, 1fr); } }
.block p { color: var(--ink-2); margin: 0; font-size: 16.5px; }
.block { position: relative; padding-top: 18px; border-top: 1px solid var(--line-2); }
.block .ic { margin-bottom: 14px; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { transform: none; transition: opacity .3s linear; } }

/* icons */
.ic { display: block; width: 44px; height: 44px; flex: none; color: var(--ink); }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic .g { stroke: var(--green); stroke-width: 1.8; }
.ic .gf { fill: var(--green); stroke: none; }
.ic .a { stroke: var(--amber); stroke-width: 1.8; }
.ic .af { fill: var(--amber); stroke: none; }
.ic .sf { fill: var(--card); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-words .lead { margin: 22px 0 30px; }
.hero-words .btns { margin-bottom: 26px; }
.hero-firm { font-size: 15.5px; color: var(--ink-3); margin: 0; }
.hero-firm a { color: var(--ink); }
.hero-words .h1 + .btns { margin-top: 30px; }
@media (min-width: 1200px) {
  .hero { min-height: min(calc(100dvh - var(--hdr)), 1000px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  /* the home film takes about two thirds of the width; the words column is narrower */
  .hero:not(.pf) > .wrap { max-width: 1840px; }
  .hero-grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 48px; }
  .hero:not(.pf) .hero-words .h1 { font-size: clamp(40px, 3vw, 58px); }
  .hero.pf .hero-words .h1 { font-size: clamp(54px, 4.3vw, 78px); }
  .hero.pf .hero-grid { grid-template-columns: 6fr 5fr; gap: 64px; }
}
@media (min-width: 700px) and (max-width: 1199.98px) { .hero-words { max-width: 720px; } }

/* the opening (home page): the headline first, alone; then the words, the line, and the stage */
.film-pre { display: none; }
.intro [data-intro] .hero-words { position: relative; z-index: 4; }
.intro [data-intro] .h1 { transform-origin: 50% 50%; will-change: transform, opacity; }
.intro [data-intro] .hero-words > *, .intro [data-intro] .film-bar, .intro [data-intro] .film-rail { opacity: 0; }
.intro [data-intro] .film-stage-wrap { visibility: hidden; }
.intro [data-intro] .film-pre { display: block; position: absolute; left: 0; right: 0; z-index: 3; margin: 0; transform-origin: 50% 50%; text-align: center; padding: 0 16px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 44px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); opacity: 0; pointer-events: none; margin-top: -.55em; }

/* ---------- film ---------- */
.film { position: relative; min-width: 0; }
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 10px; max-width: var(--stage-w, none); }
.film-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.film-day { flex: none; font-family: var(--mono); font-size: 12.5px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }
.film-chap { font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-pp { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: border-color .2s var(--ease); }
.film-pp:hover { border-color: var(--ink); }
.film-pp svg { width: 18px; height: 18px; fill: currentColor; }
.film-pp .i-play, .film-pp .i-replay { display: none; }
.film-pp[data-st="play"] .i-pause, .film-pp[data-st="replay"] .i-pause { display: none; }
.film-pp[data-st="play"] .i-play { display: block; }
.film-pp[data-st="replay"] .i-replay { display: block; }
.film-rail { display: flex; gap: 4px; margin: 0 auto 14px; max-width: var(--stage-w, none); }
.seg { flex: 1 1 0; min-width: 0; padding: 8px 0 2px; margin: 0; border: 0; background: none; color: var(--ink-3); font: 500 12px/1.2 var(--sans); text-align: left; cursor: pointer; }
.seg-bar { display: block; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.seg-fill { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.seg-l { display: block; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.seg.on { color: var(--ink); }
.seg:hover { color: var(--ink); }
.seg:focus-visible { outline-offset: 2px; }
@media (max-width: 899.98px) { .seg-l { display: none; } .seg { padding: 12px 0 10px; } }
.film-stage-wrap { position: relative; max-width: var(--stage-w, none); margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--desk); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.film-stage { position: relative; margin: 0 auto; overflow: hidden; background: var(--desk); width: 100%; aspect-ratio: 960 / 600; }
/* the narration bar along the bottom of the stage */
.film-say { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 11px 20px 12px; background: var(--card); border-top: 1px solid var(--line); }
.say-mk { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.say-ls { display: grid; flex: 1; min-width: 0; }
.say-l { grid-area: 1 / 1; font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.4; color: var(--ink-2); opacity: 0; }
@media (max-width: 699.98px) { .film-say { padding: 10px 16px 12px; gap: 10px; align-items: flex-start; } .say-mk { margin-top: 7px; } .say-l { font-size: 14.5px; } }
.film-stage .stage-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.film-stage .wide { width: 960px; height: 600px; }
.film-stage .narrow { width: 380px; height: 590px; }
@media (max-width: 699.98px) and (orientation: portrait) { .film-stage { aspect-ratio: 380 / 590; } .film-stage-wrap { border-radius: 20px; } .film-stage .wide { display: none; } }
@media (min-width: 700px), (orientation: landscape) { .film-stage .narrow { display: none; } }
.film-end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 18px 14px 22px; background: var(--desk); border-top: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .7s var(--ease), transform .7s var(--ease); border-radius: 0 0 22px 22px; }
.film-end.in { opacity: 1; transform: none; }
.film-end p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.65vw, 27px); line-height: 1.1; }
.film-end p em { color: var(--ink-2); }
.film-end .btns { gap: 8px; flex-wrap: nowrap; }
.film-end .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
@media (max-width: 699.98px) {
  .film:not(.pfl) .film-end { justify-content: center; padding: 40px 16px 18px; border-top: 0; border-radius: 0 0 20px 20px; background: linear-gradient(to top, var(--desk) 62%, transparent); }
  .film:not(.pfl) .film-end p { display: none; }
  .film-end p { font-size: 22px; }
}
.no-js .film-bar, .no-js .film-rail, .no-js .film-stage-wrap { display: none; }
.no-js .film-text { position: static !important; width: auto !important; height: auto !important; clip: auto !important; margin: 0 !important; overflow: visible !important; white-space: normal !important; }
.film.failed .film-bar, .film.failed .film-rail, .film.failed .film-stage-wrap { display: none; }
.film.failed .film-text { position: static !important; width: auto !important; height: auto !important; clip: auto !important; margin: 0 !important; overflow: visible !important; white-space: normal !important; }
.film-text ol { margin: 0; padding-left: 1.2em; }
.film-text li { margin-bottom: .6em; color: var(--ink-2); }

/* ---------- stills ---------- */
.still { position: relative; overflow: hidden; border-radius: 18px; background: var(--desk); border: 1px solid var(--line); box-shadow: var(--shadow-lg); width: 100%; }
.still .stage-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .6s var(--ease); }
.still.ready .stage-inner { opacity: 1; }
.still .wide { width: 960px; height: 600px; }
.still .narrow { width: 380px; height: 590px; }
.still .cap-host { display: none; }

/* pinned chapter */
.pin { display: grid; gap: 40px; }
.pin-pic { display: none; }
.step { padding: 0 0 8px; }
.step .still { margin-bottom: 22px; }
.step .kicker { margin-bottom: 10px; }
.step h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 12px; }
.step p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 960px) {
  .pin { grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
  .pin-pic { display: block; position: sticky; top: calc(var(--hdr) + 6vh); }
  .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .5s var(--ease); }
  .step:first-child { min-height: 50vh; }
  .step.on { opacity: 1; }
  .no-js .step { opacity: 1; }
  .step .still { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 960px) { .step { opacity: 1; } }

/* chapter index */
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: c; border-top: 1px solid var(--line-2); }
@media (min-width: 760px) { .toc { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.toc li { counter-increment: c; border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: baseline; gap: 16px; padding: 16px 2px; text-decoration: none; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; transition: color .2s var(--ease), padding .3s var(--ease); }
.toc a::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 12.5px; color: var(--blue-t); min-width: 22px; }
.toc a:hover { padding-left: 10px; }

/* feature cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 26px; box-shadow: var(--shadow); }
.fcard .ic { margin-bottom: 18px; }
.fcard p { color: var(--ink-2); margin: 0; font-size: 16px; }
.fcard .h3 { font-size: 18.5px; }

/* nudges */
.nudges { display: grid; gap: 16px; }
@media (min-width: 680px) { .nudges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .nudges { grid-template-columns: repeat(3, 1fr); } }
.nudge-c { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ntag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--amber-t); background: var(--amber-soft); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.ntag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.nudge-c .say { font-family: var(--serif); font-size: 22px; line-height: 1.18; margin: 0 0 14px; }
.nudge-c p { color: var(--ink-2); font-size: 16px; margin: 0; }
.nudge-c .h3 { margin-top: 2px; }
.spark { height: 46px; margin: 4px 0 16px; }
.spark path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .s1 { stroke: var(--ink); }
.spark .s2 { stroke: var(--green); }
.spark .s3 { stroke: var(--amber); stroke-dasharray: 3 4; }
.spark .base { stroke: var(--line-2); stroke-width: 1; }

/* ask box */
.ask { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; display: grid; }
@media (min-width: 960px) { .ask { grid-template-columns: 1fr 1.1fr; } }
.ask-l { padding: clamp(24px, 3.5vw, 44px); }
.ask-l .h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; margin-bottom: 14px; }
.ask-l p { color: var(--ink-2); }
.ask-r { padding: clamp(20px, 3vw, 36px); background: var(--card-2); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
@media (min-width: 960px) { .ask-r { border-top: 0; border-left: 1px solid var(--line); } }
.bub { max-width: 92%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.45; }
.bub.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 5px; }
.bub.sb { align-self: flex-start; background: var(--sheet); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.mini-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
.mini-t th { text-align: left; font: 500 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.mini-t td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.mini-t td.num, .mini-t th.r { text-align: right; }
.mini-t tr.hl td { color: var(--amber-t); font-weight: 600; }

/* findings */
.findings { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.f-head b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.f-head span { font-size: 13px; color: var(--ink-3); }
.f-row { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.f-row:last-child { border-bottom: 0; }
.f-n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.f-t { font-weight: 600; font-size: 16px; }
.f-m { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-3); }
.f-m .pill { font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12.5px/1.5 var(--sans); }
.pill.amb { color: var(--amber-t); background: var(--amber-soft); }
.pill.grn { color: var(--green-t); background: var(--green-soft); }
.pill.red { color: var(--red-t); background: var(--red-soft); }

/* band */
.band { background: var(--ink); color: var(--on-ink); border-radius: 26px; padding: clamp(32px, 5vw, 64px); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .band { grid-template-columns: 1.6fr auto; } }
.band .h2 { margin: 0; color: var(--on-ink); font-size: clamp(32px, 4vw, 52px); }
.band p { margin: 12px 0 0; color: color-mix(in srgb, var(--on-ink) 78%, transparent); max-width: 52ch; }
.band .btn { background: var(--on-ink); color: var(--ink); }
.band .btn:hover { background: color-mix(in srgb, var(--on-ink) 85%, var(--ink)); }
.band .thread-deco { position: absolute; right: -40px; top: -30px; width: 360px; opacity: .35; pointer-events: none; }
.band .thread-deco path { fill: none; stroke: var(--green); stroke-width: 2; }

/* contact */
.contact { text-align: left; }
.contact .big { display: inline-block; font-family: var(--serif); font-size: clamp(34px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -.02em; color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--green), var(--green)); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 96%; padding-bottom: 6px; word-break: break-word; transition: background-size .4s var(--ease); }
.contact .big:hover { background-size: 100% 4px; }
.contact .btns { margin-top: 32px; }
.contact-note { margin-top: 26px; color: var(--ink-3); font-size: 15.5px; max-width: 56ch; }
.c-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .c-steps { grid-template-columns: repeat(3, 1fr); } }
.c-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.c-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-t); font: 600 14px/1 var(--mono); margin-bottom: 14px; }
.c-steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.c-steps span { color: var(--ink-2); font-size: 15.5px; }

/* page hero (inner pages) */
.phero { padding: clamp(48px, 8vw, 112px) 0 clamp(32px, 5vw, 64px); }
.phero .h1 { font-size: clamp(42px, 6.6vw, 84px); max-width: 15ch; }
.phero .lead { margin-top: 24px; max-width: 46ch; }
.phero .btns { margin-top: 30px; }

/* item list (what we do) */
.items { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .items { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.item { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.item .ic { width: 48px; height: 48px; padding: 9px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.item h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; letter-spacing: -.01em; }
.item p { color: var(--ink-2); margin: 0; font-size: 16px; }
.grp { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.grp-head { display: grid; gap: 28px; margin-bottom: 40px; align-items: center; }
@media (min-width: 960px) { .grp-head { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.grp-head .h2 { margin-bottom: 14px; }
.grp-n { font-family: var(--mono); font-size: 13px; color: var(--green-t); letter-spacing: .1em; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; }
.ftr-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr .brand span { font-size: 26px; }
.ftr p { color: var(--ink-3); font-size: 15px; margin: 14px 0 0; max-width: 34ch; }
.ftr h2 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 8px; }
.ftr a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.ftr a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* 404 */
.nf { min-height: calc(100dvh - var(--hdr) - 200px); display: grid; align-content: center; padding: 64px 0; }
.nf svg { width: min(360px, 80%); margin-bottom: 28px; }
.nf svg .pg { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.nf svg .ln { stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.nf svg .th { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.nf svg .br { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; }

/* =====================================================================
   THE STAGE: drawn in design pixels, scaled as a whole
   ===================================================================== */
.stg { font-family: var(--sans); font-size: 13px; line-height: 1.35; color: var(--ink); -webkit-font-smoothing: antialiased; }
.stg .a { position: absolute; }
.stg .num { font-family: var(--mono); }
.stg .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.stg .paper { background: var(--sheet); border-radius: 4px; box-shadow: 0 1px 1px rgba(21,24,27,.06), 0 10px 24px -12px rgba(21,24,27,.35); }
.stg .tk { display: inline-block; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.9' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.stg .cd-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.stg .cd-t { font-family: var(--serif); font-size: 19px; line-height: 1; }
.stg .cd-s { font-size: 11px; color: var(--ink-3); }
.stg .pb { display: block; height: 6px; border-radius: 3px; background: rgba(21,24,27,.16); margin: 0 0 8px; }
.stg .pb.dk { background: rgba(21,24,27,.42); height: 8px; }
.stg .pb.gap { margin-top: 14px; }
.stg .pb.r { margin-left: auto; }
.stg .w30 { width: 30%; } .stg .w35 { width: 35%; } .stg .w40 { width: 40%; } .stg .w44 { width: 44%; } .stg .w50 { width: 50%; } .stg .w55 { width: 55%; } .stg .w60 { width: 60%; } .stg .w64 { width: 64%; } .stg .w65 { width: 65%; } .stg .w68 { width: 68%; } .stg .w70 { width: 70%; } .stg .w72 { width: 72%; } .stg .w75 { width: 75%; } .stg .w80 { width: 80%; }
@media (prefers-color-scheme: dark) { .stg .pb { background: rgba(238,234,224,.18); } .stg .pb.dk { background: rgba(238,234,224,.45); } }

/* preview mode (?t=): no reveal transitions, so a scene can be looked at directly */
.preview .rv, .preview .still .stage-inner, .preview .film-end { transition: none !important; }
.preview .rv { opacity: 1; transform: none; }
.still .stage-inner * { transition: none !important; }
