/* SemaBooks: one world, from loose papers to tidy books, held together by the thread.
   Paper, ink, and three colours that carry meaning: green done, amber waiting, red stopped. */

: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);
  --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);
    --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: 12px; text-decoration: none; color: var(--ink); }
/* the Fintech Forensics logo: only its height is set, the width follows; never squeezed */
.brand picture { display: block; flex: none; line-height: 0; }
.brand .ff-logo { display: block; height: 40px; width: auto; }
.brand-div { flex: none; width: 1px; height: 28px; background: var(--line); }
.brand a { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand a:focus-visible { outline-offset: 4px; border-radius: 4px; }
.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(--green-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) {
  /* laptops and desktops: the hero is exactly the first screen under the menu, and the film block
     (bar, rail, stage, narration) is sized in code to fill it, so nothing of it is below the fold */
  .hero { min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); padding: clamp(8px, 1.8vh, 26px) 0; 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(280px, 1fr) minmax(0, 2.3fr); gap: 44px; }
  .hero:not(.pf) .hero-words .h1 { font-size: clamp(40px, 3vw, 58px); }
  .hero.pf .hero-words .h1 { font-size: clamp(50px, 4vw, 78px); }
  .hero.pf .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
}
/* short laptop screens: a slimmer menu and film chrome, so the stage keeps its room */
@media (min-width: 900px) and (max-height: 760px) { :root { --hdr: 60px; } .brand .ff-logo { height: 34px; } .brand span { font-size: 25px; } }
@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(--green); transform-origin: 0 50%; transform: scaleX(0); }
.seg-l { display: block; margin-top: 7px; white-space: nowrap; overflow: hidden; padding-right: 4px; }
/* labels are never cut: sb.js switches to shorter names (r-s), then to numbers with the current chapter named (r-n) */
.seg-n { display: none; font-weight: 600; }
.film-rail.r-n .seg:not(.on) .seg-t { display: none; }
.film-rail.r-n .seg:not(.on) .seg-n { display: inline; }
.film-rail.r-n .seg.on .seg-l { overflow: visible; position: relative; z-index: 1; }
.film-rail.r-n .seg.on + .seg .seg-n { visibility: hidden; }
.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 / 640; }
/* the narration bar along the top of the stage, under the chapter rail: where the eye goes first */
.film-say { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 22px 13px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--green); }
.say-mk { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); animation: say-pulse 1.8s var(--ease) infinite; }
@keyframes say-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--green-soft); } 50% { box-shadow: 0 0 0 8px var(--green-soft); } }
@media (prefers-reduced-motion: reduce) { .say-mk { animation: none; } }
.say-ls { display: grid; flex: 1; min-width: 0; }
.say-l { grid-area: 1 / 1; font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; line-height: 1.35; color: var(--ink); opacity: 0; }
@media (max-width: 699.98px) { .film-say { padding: 11px 16px 12px; gap: 12px; align-items: flex-start; } .say-mk { margin-top: 6px; } .say-l { font-size: 15.5px; } }
.film-stage .stage-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.film-stage .desk { width: 960px; height: 640px; }
.film-stage .chat { width: 380px; }
@media (max-width: 699.98px) { .film-stage { aspect-ratio: 380 / 640; } .film-stage-wrap { border-radius: 20px; } .film-stage .desk { display: none; } }
@media (min-width: 700px) { .film-stage .chat { display: none; } }
.film.pfl .film-stage { aspect-ratio: 440 / 620; }
.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 .desk { width: 960px; height: 640px; }
.still .pfilm { width: 440px; height: 620px; }
.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(--green-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 .brand .ff-logo { height: 44px; }
.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); } }

/* desk */
.desk .dk-bg { position: absolute; left: 0; top: 0; width: 960px; height: 640px; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--desk) 70%, var(--sheet)) 0%, var(--desk) 70%); }
.desk .dk-bg::after { content: ""; position: absolute; left: 32px; right: 32px; top: var(--capy, 560px); height: 1px; background: var(--line); }
.desk .cap-host .cap { font-size: var(--capf, 32px); }
.desk .cap-host, .pfilm .cap-host, .chat .cap-host { display: flex; align-items: center; justify-content: center; }
.stg .cap { position: absolute; left: 24px; right: 24px; text-align: center; font-family: var(--serif); font-size: 32px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.stg .cap span { display: inline-block; }

/* tray */
.desk .tray { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.desk .tray-st { position: relative; width: 38px; height: 48px; flex: none; }
.desk .tray-st i { position: absolute; width: 32px; height: 42px; border-radius: 3px; background: var(--sheet); border: 1px solid var(--line-2); }
.desk .tray-st i:nth-child(1) { left: 6px; top: 0; transform: rotate(6deg); }
.desk .tray-st i:nth-child(2) { left: 3px; top: 3px; transform: rotate(-4deg); }
.desk .tray-st i:nth-child(3) { left: 0; top: 6px; }
.desk .tray-x { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk .tray-x b { font-size: 13px; font-weight: 600; }
.desk .tray-x span { font-size: 11px; color: var(--ink-3); }
.desk .tray-n { margin-left: auto; font-size: 22px; font-weight: 500; color: var(--ink-2); }

/* books */
.desk .books { overflow: hidden; }
.desk .bk-h { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 0; }
.desk .bk-t { font-family: var(--serif); font-size: 26px; line-height: 1; }
.desk .bk-m { font-size: 11.5px; color: var(--ink-3); }
.desk .books[data-s="locked"] .bk-m { color: var(--green-t); }
.desk .bk-c { position: absolute; left: 32px; right: 16px; top: 52px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.desk .bk-c::after { content: ""; position: absolute; left: -18px; right: 0; top: 16px; height: 1px; background: var(--line); }
.desk .rw { position: absolute; left: 0; right: 0; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 13px; border-bottom: 1px solid var(--line); }
.stg .rw-d { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1.5px solid var(--line-2); background: var(--card); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.stg .rw-d[data-s="ok"] { background: var(--green); border-color: var(--green); }
.stg .rw-n { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.stg .rw-n b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg .rw-n span { font-size: 10.5px; color: var(--ink-3); }
.desk .rw .num { font-size: 13px; }
.desk .bk-srch { position: absolute; left: 6px; right: 6px; top: 0; height: 38px; border-radius: 8px; background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(217,154,11,.35); opacity: 0; }
.desk .bk-lock { position: absolute; left: 12px; right: 12px; top: 462px; height: 38px; border-radius: 10px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--green-soft); color: var(--green-t); font-size: 12.5px; font-weight: 600; opacity: 0; }
.stg svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.desk .bk-lock svg { width: 16px; height: 16px; }

/* threads */
.desk .threads { position: absolute; left: 0; top: 0; width: 960px; height: 640px; pointer-events: none; overflow: visible; }
.desk .threads path { fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; }
.desk .threads .rt { opacity: 0; stroke-width: 1.3; }
.desk .threads .lt { stroke-width: 2; }
.desk .threads circle { fill: var(--green); stroke: none; opacity: 0; }

/* photo of a paper */
.stg .photo { border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #CFC6B2, #B9AF99 70%, #A79D86); box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 18px 30px -14px rgba(0,0,0,.5); padding: 12px; }
.stg .ph-paper { position: relative; width: 100%; height: 100%; background: linear-gradient(175deg, #F7F2E6, #ECE4D2); border-radius: 2px; padding: 14px 12px; transform: rotate(1.5deg) scale(.97); filter: blur(.35px); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.stg .ph-paper .pb { background: rgba(40,36,30,.22); }
.stg .ph-paper .pb.dk { background: rgba(40,36,30,.5); }
.stg .ph-glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 55%, transparent 70%), radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.18)); pointer-events: none; }
.desk .sweep { position: absolute; top: -10%; left: 0; width: 60px; height: 120%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); opacity: 0; mix-blend-mode: screen; }

/* clean invoice */
.stg .inv { padding: 14px 14px 12px; }
.stg .iv-h { display: flex; justify-content: space-between; align-items: baseline; }
.stg .iv-no { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stg .iv-d { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.stg .iv-from { font-family: var(--serif); font-size: 20px; line-height: 1.1; margin: 6px 0 12px; }
.stg .iv-ls { border-top: 1px solid var(--line); padding-top: 6px; }
.stg .iv-l, .stg .iv-t { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 12px; }
.stg .iv-l span:first-child, .stg .iv-t span:first-child { flex: 1; white-space: nowrap; }
.stg .iv-l .num { font-size: 12px; }
.stg .iv-t { margin-top: 8px; padding-top: 6px; height: 32px; border-top: 1.5px solid var(--ink); font-weight: 600; font-size: 13px; }
.stg .iv-t .num { font-size: 14px; font-weight: 500; }
.stg .iv-note { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green-t); font-size: 11.5px; font-weight: 600; line-height: 1.35; }

/* bill */
.stg .bill { padding: 16px; }
.stg .bl-h { display: flex; justify-content: space-between; align-items: baseline; }
.stg .bl-t { font-family: var(--serif); font-size: 24px; line-height: 1; }
.stg .bl-no { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.stg .bl-sub { font-size: 11px; color: var(--ink-3); margin: 6px 0 18px; }
.stg .bl-amt { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 10px; border-top: 1.5px solid var(--ink); font-weight: 600; font-size: 12.5px; }
.stg .mark { position: absolute; left: 16px; bottom: 16px; height: 28px; display: inline-flex; align-items: center; padding: 0 12px 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; opacity: 0; transition: opacity .3s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.stg .mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.stg .mark span { display: none; }
.stg .mark[data-s="wait"] { opacity: 1; background: var(--amber-soft); color: var(--amber-t); box-shadow: inset 0 0 0 1px rgba(217,154,11,.4); }
.stg .mark[data-s="wait"] .m-wait { display: inline; }
.stg .mark[data-s="ok"] { opacity: 1; background: var(--green-soft); color: var(--green-t); }
.stg .mark[data-s="ok"] .m-ok { display: inline; }
.stg .chip { display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }
.stg .chip.ok { color: var(--green-t); border-color: rgba(14,122,94,.35); }
.stg .chip.money { color: var(--ink); }
.stg .chip svg { width: 18px; height: 18px; color: var(--green-t); flex: none; }

/* bank */
.stg .bk-l { padding: 5px 14px; height: 44px; border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease); }
.stg .bk-l:last-child { border-bottom: 0; }
.stg .bk-l .r1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.stg .bk-l .r1 span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg .bk-l .r1 .num { font-weight: 500; }
.stg .bk-l .r2 { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; height: 16px; }
.stg .bk-l small { font-size: 10.5px; color: var(--ink-3); }
.stg .st > span { display: none; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; }
.stg .st .tk { width: 13px; height: 13px; background-size: 8px; }
.stg .bk-l[data-s="ok"] .st-ok { display: inline-flex; color: var(--green-t); }
.stg .bk-l[data-s="wait"] .st-wait, .stg .bk-l[data-s="look"] .st-look { display: inline-flex; color: var(--amber-t); background: var(--amber-soft); padding: 1px 8px; border-radius: 999px; }
.stg .bk-l[data-s="look"] { background: var(--amber-soft); }
.stg .mt-ls { padding: 4px 14px 0; }
.stg .mt-l { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 12px; }
.stg .mt-l span:first-child { flex: 1; }
.stg .mt-l .tk { width: 13px; height: 13px; background-size: 8px; }
.stg .mt-i span:first-child::before { content: ""; display: inline-block; width: 8px; height: 10px; margin-right: 7px; border-radius: 1.5px; border: 1.2px solid var(--ink-3); vertical-align: -1px; }
.stg .mt-f { color: var(--ink-3); }
.stg .mt-s { margin-top: 4px; border-top: 1.5px solid var(--ink); height: 28px; font-weight: 600; padding-right: 21px; }

/* waiting and ladder */
.stg .wt { position: relative; padding: 10px 14px 10px 30px; border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease); }
.stg .wt:last-child { border-bottom: 0; }
.stg .wt::before { content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); transition: background-color .4s var(--ease); }
.stg .wt-a { font-size: 12.5px; font-weight: 600; line-height: 1.3; transition: color .4s var(--ease); }
.stg .wt-b { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.stg .wt[data-s="esc"] { background: var(--amber-soft); }
.stg .wt[data-s="esc"] .wt-b, .stg .wt[data-s="prom"] .wt-b { color: var(--amber-t); font-weight: 600; }
.stg .wt[data-s="done"]::before { background: var(--green); }
.stg .wt[data-s="done"] .wt-a { text-decoration: line-through; text-decoration-color: var(--green); text-decoration-thickness: 1.5px; color: var(--ink-3); }
.stg .wt[data-s="done"] .wt-b { color: var(--green-t); font-weight: 600; }
.stg .ladder { padding: 12px 14px; }
.stg .ld-t { font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.stg .ld-s { display: flex; align-items: center; }
.stg .ld-k { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 5px 10px 5px 7px; border-radius: 999px; border: 1px solid var(--line-2); transition: all .35s var(--ease); white-space: nowrap; }
.stg .ld-k i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background-color .35s var(--ease); }
.stg .ld-k[data-s="on"] { color: var(--amber-t); border-color: rgba(217,154,11,.6); background: var(--amber-soft); }
.stg .ld-k[data-s="on"] i { background: var(--amber); }
.stg .ld-k[data-s="done"] { color: var(--green-t); border-color: rgba(14,122,94,.4); background: var(--green-soft); }
.stg .ld-k[data-s="done"] i { background: var(--green); }
.stg .ld-c { flex: 1; height: 1.5px; background: var(--line-2); margin: 0 4px; min-width: 6px; }
.stg .email { overflow: hidden; }
.stg .em-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.stg .em-h svg { width: 16px; height: 16px; color: var(--green-t); }
.stg .em-x { margin-left: auto; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.stg .em-s { padding: 8px 14px 0; font-size: 11.5px; color: var(--ink-3); }
.stg .em-b { margin: 4px 14px 12px; font-size: 12.5px; line-height: 1.4; }
.stg .ghost { opacity: 0; }
.stg .receipt { padding: 12px 12px; }
.stg .rc-t { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.stg .rc-s { font-size: 10.5px; color: var(--ink-3); margin: 2px 0 12px; }
.stg .rc-a { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; border-top: 1px dashed var(--line-2); padding-top: 8px; margin: 10px 0; }
.desk .receipt { transform: rotate(4deg); }

/* checklist */
.stg .ck { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; font-size: 12.5px; font-weight: 500; }
.stg .ck-b { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); flex: none; transition: all .3s var(--ease); background: var(--card) center / 10px no-repeat; }
.stg .ck[data-s="ok"] .ck-b { background-color: var(--green); border-color: var(--green); background-image: 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"); }
.stg .ck span { transition: color .3s var(--ease); color: var(--ink-3); }
.stg .ck[data-s="ok"] span { color: var(--ink); }

/* return */
.desk .ret .rp { position: absolute; width: 210px; height: 250px; }
.stg .rp.top { padding: 16px; }
.stg .rt-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.stg .rt-t { font-family: var(--serif); font-size: 22px; line-height: 1; }
.stg .rt-m { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.stg .rt-l { display: flex; align-items: center; gap: 10px; height: 22px; }
.stg .rt-l i { display: block; height: 6px; border-radius: 3px; background: rgba(21,24,27,.16); transform-origin: 0 50%; }
@media (prefers-color-scheme: dark) { .stg .rt-l i { background: rgba(238,234,224,.2); } }
.stg .rt-l .num { margin-left: auto; font-size: 11px; }
.stg .stamp { position: absolute; right: 12px; bottom: 16px; padding: 8px 12px; border: 2px solid var(--green); color: var(--green-t); border-radius: 8px; font-size: 13px; line-height: 1.2; font-weight: 600; background: color-mix(in srgb, var(--sheet) 88%, var(--green)); transform: rotate(-7deg); opacity: 0; text-align: center; max-width: 150px; }
.stg .stamp b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.stg .cl { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 14px; font-size: 12.5px; }
.stg .cl span:nth-child(2) { flex: 1; }
.stg .cl .num { font-size: 11.5px; color: var(--ink-3); }
.stg .bell { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-t); }
.stg .bell svg { width: 13px; height: 13px; }

/* nudges */
.stg .nudge { padding: 14px; }
.stg .ng-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--amber-t); background: var(--amber-soft); padding: 4px 9px; border-radius: 999px; }
.stg .ng-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.stg .ng-x { font-family: var(--serif); font-size: 19px; line-height: 1.15; margin: 10px 0 10px; }
.stg .ng-ch { width: 100%; height: 56px; overflow: visible; }
.stg .ng-ch path { fill: none; stroke-width: 2; }
.stg .ng-ch .gl { stroke: var(--line-2); stroke-width: 1; }
.stg .ng-ch .ln-stock { stroke: var(--amber); }
.stg .ng-ch .ln-sales { stroke: var(--ink-3); }
.stg .ng-lg { display: flex; gap: 12px; font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.stg .ng-lg span::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 5px; vertical-align: 3px; border-radius: 2px; }
.stg .ng-lg .lg-s::before { background: var(--amber); }
.stg .ng-lg .lg-l::before { background: var(--ink-3); }
.stg .ng-lg .lg-r { margin-left: auto; }
.stg .ng-lg .lg-r::before { display: none; }
.stg .nudge-s { display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 13px; font-weight: 500; }
.stg .nd { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 0 4px var(--amber-soft); display: inline-block; }

/* answer table */
.stg .tb { margin-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; }
.stg .tb-r { display: grid; grid-template-columns: 1fr 58px 44px; gap: 4px; height: 22px; align-items: center; border-bottom: 1px solid var(--line); transition: color .3s var(--ease), background-color .3s var(--ease); }
.stg .tb-r .num { text-align: right; font-size: 11.5px; }
.stg .tb-h { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stg .tb-h span:not(:first-child) { text-align: right; }
.stg .tb-r[data-s="hl"] { color: var(--amber-t); font-weight: 600; background: var(--amber-soft); }

/* trail */
.stg .tr { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.stg .tr:last-child { border-bottom: 0; }
.stg .tr .tk { margin-top: 1px; }
.stg .tr-a { font-size: 12.5px; font-weight: 600; }
.stg .tr-b { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* phone */
.desk .phone { border-radius: 34px; background: #15181B; padding: 9px; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 30px 50px -24px rgba(0,0,0,.55); }
@media (prefers-color-scheme: dark) { .desk .phone { background: #05080D; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 50px -24px rgba(0,0,0,.8); } }
.desk .ph-s { position: relative; width: 100%; height: 100%; border-radius: 26px; background: var(--paper); overflow: hidden; }
.stg .ph-h { display: flex; align-items: center; gap: 9px; height: 52px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); background: var(--card); }
.stg .ph-h b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.stg .ph-h span { display: block; font-size: 10.5px; color: var(--ink-3); }
.stg .ph-mk { width: 28px; height: 28px; border-radius: 9px; flex: none; background: #15181B url("../img/mark-on-ink.svg") center / 20px no-repeat; }
.desk .ph-body { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; overflow: hidden; }
.desk .ph-list { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; flex-direction: column; }
.stg .msg { height: 0; overflow: hidden; flex: none; }
.stg .mi { padding-top: 7px; display: flex; }
.stg .msg.me .mi { justify-content: flex-end; }
.stg .b { max-width: 86%; padding: 8px 11px; border-radius: 14px; font-size: 12px; line-height: 1.38; opacity: 0; }
.stg .b p { margin: 0; }
.stg .sb .b { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.stg .me .b { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; }
.stg .b.wide { max-width: 94%; width: 94%; }
.stg .b.pic { padding: 6px; display: flex; align-items: center; gap: 9px; padding-right: 12px; }
.stg .thumb { position: relative; width: 38px; height: 48px; border-radius: 5px; overflow: hidden; background: #B9AF99; padding: 4px; transform: rotate(-4deg); flex: none; }
.stg .thumb .ph-paper { padding: 5px 4px; }
.stg .thumb .pb { height: 3px; margin-bottom: 3px; }
.stg .thumb .pb.gap { margin-top: 5px; }
.stg .th-l { font-size: 11.5px; font-weight: 500; }
.stg .qb { display: flex; gap: 6px; margin-top: 8px; opacity: 0; flex-wrap: wrap; }
.stg .cb { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--ink); color: var(--on-ink); transition: background-color .3s var(--ease); white-space: nowrap; }
.stg .cb.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.stg .cb[data-s="on"] { background: var(--green); color: #fff; }
.stg .cb[data-s="on"]::after { content: ""; width: 10px; height: 10px; margin-left: 6px; background: 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.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.stg .tap { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; }

/* chat view (phones) */
.chat { font-size: 14px; }
.chat .ch-cap { position: absolute; left: 14px; right: 14px; top: 0; height: 100px; }
.chat .cap { font-size: 27px; left: 4px; right: 4px; }
.chat .ch-pan { position: absolute; left: 10px; right: 10px; top: 100px; bottom: 10px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.chat .ph-h { height: 56px; padding: 0 14px; border-radius: 22px 22px 0 0; }
.chat .ph-h b { font-size: 14px; }
.chat .ph-h span { font-size: 11.5px; }
.chat .ch-day { margin-left: auto; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: inline-block; }
.chat .ch-body { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; overflow: hidden; }
.chat .ch-list { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; flex-direction: column; }
.chat .mi { padding-top: 8px; }
.chat .b { font-size: 13.5px; max-width: 86%; padding: 9px 12px; }
.chat .b.card-b { width: 92%; max-width: 92%; padding: 0; overflow: hidden; }
.chat .b.card-b > div { border: 0; }
.chat .b.card-b .inv { padding: 12px 14px; }
.chat .b.post-b, .chat .b.post-b2 { width: 92%; max-width: 92%; padding: 0; overflow: visible; }
.chat .b.post-b2 { padding: 9px 12px 0; }
.chat .b.post-b2 .pr { margin: 8px -12px 0; border-top: 1px solid var(--line); }
.chat .pr { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 12px; }
.chat .pr .num { font-size: 13px; }
.chat .pr-th { position: absolute; left: 7px; top: -30px; width: 20px; height: 34px; overflow: visible; }
.chat .pr-th path { stroke: var(--green); stroke-width: 2; fill: none; }
.chat .b.bare { background: none; border: 0; padding: 0; max-width: 100%; }
.chat .chip { height: 34px; font-size: 12.5px; }
.chat .b.nudge-b { display: flex; align-items: center; gap: 10px; }
.chat .srch-l { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; font-size: 11.5px; color: var(--amber-t); font-weight: 600; border-top: 1px solid var(--line); opacity: 0; }
.chat .srch-l i { flex: 1; height: 3px; border-radius: 3px; background: var(--amber); transform-origin: 0 50%; }
.chat .b.card-b .typ { padding: 10px 14px 0; }
.chat .b.card-b .qb { padding: 0 14px 12px; }
.chat .match { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.chat .wait { border-bottom: 1px solid var(--line); }
.chat .em-mini { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--green-t); font-weight: 600; margin-bottom: 4px; }
.chat .em-mini svg { width: 15px; height: 15px; }
.chat .ret-c { position: relative; padding: 12px; background: var(--card-2); }
.chat .ret-c .rp { position: relative; height: 230px; }
.chat .cal { border-top: 1px solid var(--line); padding-bottom: 6px; }
.chat .mark.sm { position: static; height: 24px; margin-left: 4px; font-size: 11px; background: rgba(255,255,255,.12); }
.chat .me .mark[data-s="wait"] { background: var(--amber); color: #2A1E00; box-shadow: none; }
.chat .me .mark[data-s="ok"] { background: var(--green); color: #fff; }

/* partner film */
.pfilm { width: 440px; height: 620px; }
.pfilm .pf-top { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.pfilm .pf-top b { font-size: 14px; font-weight: 600; }
.pfilm .pf-tabs { margin-left: auto; display: flex; gap: 2px; }
.pfilm .pf-tab { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 9px; border-radius: 999px; transition: all .35s var(--ease); }
.pfilm .pf-tab[data-s="on"] { background: var(--ink); color: var(--on-ink); }
.pfilm .pf-pan { overflow: hidden; }
.pfilm .pf-pan:not(.card) { overflow: visible; }
.pfilm .pf-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.pfilm .pf-pan:not(.card) > .pf-ph { padding: 4px 2px 12px; }
.pfilm .pf-t { font-family: var(--serif); font-size: 22px; line-height: 1; }
.pfilm .pf-s { font-size: 11.5px; color: var(--ink-3); }
.pfilm .pf-s b { color: var(--ink); font-weight: 600; }
.pfilm .chip-s { font-size: 11px; font-weight: 600; color: var(--green-t); background: var(--green-soft); padding: 4px 9px; border-radius: 999px; }
.pfilm .cl-c { display: grid; grid-template-columns: 1.2fr 86px 84px 72px; gap: 8px; padding: 8px 16px 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.pfilm .cr { display: grid; grid-template-columns: 1.2fr 86px 84px 72px; gap: 8px; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease); }
.pfilm .cr[data-s="hl"] { background: var(--amber-soft); box-shadow: inset 3px 0 0 var(--amber); }
.pfilm .cr-n b { display: block; font-size: 13px; font-weight: 600; }
.pfilm .cr-n span { font-size: 10.5px; color: var(--ink-3); }
.pfilm .bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pfilm .bar i { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; }
.pfilm .pill { font-size: 10.5px; padding: 2px 8px; justify-self: start; white-space: nowrap; }
.pfilm .own { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.pfilm .inv-w { width: 196px; }
.pfilm .inv-sc { transform: scale(.78); transform-origin: 0 0; width: 196px; }
.pfilm .inv-sc .inv { width: 196px; }
.pfilm .prop { padding: 12px 14px; }
.pfilm .pp-k { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--green-t); }
.pfilm .pp-l { display: flex; justify-content: space-between; font-size: 13.5px; margin: 4px 0 2px; }
.pfilm .pp-r { font-size: 11.5px; color: var(--ink-3); }
.pfilm .pp-b { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.pfilm .pp-b .qb { opacity: 1; }
.pfilm .pp-who, .pfilm .sg-x span { font-size: 11.5px; font-weight: 600; color: var(--ink-3); transition: color .3s var(--ease); }
.pfilm .pp-who[data-s="ok"], .pfilm .sg-x span[data-s="ok"] { color: var(--green-t); }
.pfilm .batch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 0 14px; font-size: 12px; font-weight: 500; }
.pfilm .batch .qb, .pfilm .sign .qb { opacity: 1; margin: 0; }
.pfilm .wt { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.pfilm .wt:last-child { border-bottom: 1px solid var(--line); }
.pfilm .wt[data-s="esc"] { background: color-mix(in srgb, var(--card) 80%, var(--amber)); }
.pfilm .ladder { margin-top: 6px; }
.pfilm .doc { padding: 14px; }
.pfilm .dc-h { padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.pfilm .dc-h b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.05; }
.pfilm .dc-h span { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.pfilm .dc-l { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 11.5px; }
.pfilm .dc-l span { width: 92px; flex: none; }
.pfilm .dc-l i { flex: 1; height: 6px; border-radius: 3px; background: rgba(21,24,27,.16); transform-origin: 0 50%; }
@media (prefers-color-scheme: dark) { .pfilm .dc-l i { background: rgba(238,234,224,.2); } }
.pfilm .dc-w { font-size: 10.5px; color: var(--ink-3); margin-top: 8px; }
.pfilm .stamp.sm { right: 10px; bottom: 12px; font-size: 11.5px; padding: 6px 10px; }
.pfilm .stamp.sm b { font-size: 18px; }
.pfilm .sign { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.pfilm .sg-x b { display: block; font-size: 14px; }
.pfilm .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 12px 14px; }
.pfilm .tile { position: relative; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px 9px; height: 54px; }
.pfilm .tile b { display: block; font-size: 11px; font-weight: 600; margin-bottom: 9px; }
.pfilm .tile .bar { height: 5px; }
.pfilm .tdot { position: absolute; right: 8px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pfilm .tdot.amb { background: var(--amber); }
.pfilm .cap { font-size: 28px; }
.pfilm .photo { padding: 9px; }

/* desk: the vertical escalation ladder (scene 4) */
.stg .ladder.vert .ld-t { margin-bottom: 10px; }
.stg .ladder.vert .ld-s { flex-direction: column; align-items: flex-start; }
.stg .ladder.vert .ld-c { flex: none; width: 1.5px; height: 10px; margin: 3px 0 3px 12px; min-width: 0; }

.chat .msg.spacer .mi i { display: block; height: 66px; }
.chat .b.post-b2 .pr-th { display: none; }
.grid-2 .lead, .grp-head .lead { font-size: clamp(17px, 1.35vw, 19px); }
/* 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; }
.pfilm .inv-sc .iv-note { display: none; }
.still .chat { width: 380px; height: 640px; }

/* ---------- film, second version: month end, the tax so far, the year end ---------- */
.stg .ck b { font-weight: 600; color: var(--green-t); }
.stg .ck:not([data-s="ok"]) b { color: inherit; font-weight: inherit; }
.desk .check .ck { font-size: 12px; }
.stg .rt-sub { font-size: 10.5px; color: var(--ink-3); margin: -2px 0 6px; }
/* the months of the year */
.stg .yr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 12px 14px 8px; }
.stg .ym { position: relative; height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.stg .ym b { font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1; }
.stg .ym .tk { width: 12px; height: 12px; background-size: 8px; opacity: 0; transform: scale(.5); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.stg .ym .ym-d { display: none; }
.stg .ym[data-s="ok"] { background: var(--green-soft); border-color: rgba(14,122,94,.35); }
.stg .ym[data-s="ok"] b { color: var(--ink); }
.stg .ym[data-s="ok"] .tk { opacity: 1; transform: none; }
.stg .ym[data-s="now"] { background: var(--amber-soft); border-color: rgba(217,154,11,.6); }
.stg .ym[data-s="now"] b { color: var(--amber-t); }
.stg .ym[data-s="now"] .tk { display: none; }
.stg .ym[data-s="now"] .ym-d, .stg .yl-now .ym-d { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.stg .yr-lg { display: flex; gap: 14px; padding: 0 14px 12px; font-size: 10.5px; color: var(--ink-3); }
.stg .yr-lg span { display: inline-flex; align-items: center; gap: 6px; }
.stg .yr-lg .tk { width: 11px; height: 11px; background-size: 7px; }
/* the statements and the yearly return */
.stg .ydocs { display: flex; gap: 10px; }
.stg .yd { position: relative; flex: 1; min-width: 0; height: 270px; padding: 14px 12px; }
.desk .ydw .yd { opacity: 0; }
.stg .yd-h { padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.stg .yd-h b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.05; }
.stg .yd-h span { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.stg .yd-l { display: flex; flex-direction: column; gap: 5px; margin: 0 0 9px; font-size: 11px; }
.stg .yd-l i { display: block; height: 6px; width: 100%; border-radius: 3px; background: rgba(21,24,27,.16); transform-origin: 0 50%; }
@media (prefers-color-scheme: dark) { .stg .yd-l i { background: rgba(238,234,224,.2); } }
.stg .yd .stamp.sm { right: 8px; bottom: 12px; font-size: 11px; padding: 6px 9px; max-width: 118px; }
.stg .yd .stamp.sm b { font-size: 17px; }
/* the tax so far this year */
.stg .tx { padding: 6px 14px 12px; }
.stg .tx-r { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 30px; font-size: 12px; border-bottom: 1px solid var(--line); }
.stg .tx-r .num { font-size: 12px; white-space: nowrap; }
.stg .tx-r.sub { font-weight: 600; border-top: 1.5px solid var(--ink); }
.stg .tx-r.tot { font-weight: 600; color: var(--amber-t); background: var(--amber-soft); margin: 4px -8px 0; padding: 0 8px; border-radius: 8px; border-bottom: 0; }
.stg .tx-n { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--card-2); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
/* the same pieces inside the phone conversation */
.chat .b.card-b .year .cd-h, .chat .b.card-b .ycheck .cd-h, .chat .b.card-b .tax .cd-h { padding: 10px 14px 8px; }
.chat .b.card-b .tax { border-top: 1px solid var(--line); margin-top: 10px; }
.chat .ydw { padding: 12px; background: var(--card-2); }
.chat .ydw .yd { height: 236px; }
.chat .ycheck .ck { height: 30px; }
/* the year-end list (home scroll) */
.ylist { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.ylist li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16.5px; }
.ylist li::before { content: ""; position: absolute; left: 0; top: 15px; width: 17px; height: 17px; border-radius: 5px; 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 / 11px no-repeat; }
.ylist li.lk { color: var(--green-t); font-weight: 600; }
.desk .tray-x b { white-space: nowrap; font-size: 12.5px; }
.desk .tray-n { font-size: 20px; }
.film.pfl .say-l { font-size: 14.5px; }
.film.pfl .film-say { padding: 9px 16px 10px; }

/* ---------- readable type on the stage: no small label under 11 design pixels ----------
   (the stage is never scaled below 1 on laptops and desktops, so these are the sizes seen) */
.desk .bk-c { font-size: 11px; }
.stg .rw-n span, .stg .iv-no, .stg .iv-d, .stg .bl-no, .stg .bk-l small, .stg .st > span, .stg .em-x,
.stg .rc-t, .stg .rc-s, .stg .rt-m, .stg .ng-lg, .stg .ph-h span, .stg .rt-sub, .stg .yr-lg, .stg .yd-h span { font-size: 11px; }
.stg .tb-h { font-size: 10.5px; }
.stg .b { font-size: 13px; }
.stg .cb, .stg .th-l { font-size: 12px; }
.pfilm .cl-c { font-size: 10.5px; }
.pfilm .cr-n span, .pfilm .pill, .pfilm .own, .pfilm .pp-k, .pfilm .dc-h span, .pfilm .dc-w { font-size: 11px; }
.pfilm .inv-sc { transform: scale(.9); }

/* ---------- the compact desk (shorter screens): the same pieces, laid out to the room ---------- */
.desk.cmp .cd-h { height: 36px; padding: 0 12px; align-items: center; }
.desk.cmp .cd-t { font-size: 17px; }
.desk.cmp .bk-h { padding: 11px 14px 0; }
.desk.cmp .bk-t { font-size: 22px; }
.desk.cmp .bk-c { top: 38px; left: 27px; right: 14px; }
.desk.cmp .bk-c::after { top: 15px; left: -16px; }
.desk.cmp .rw { padding: 0 12px 0 11px; gap: 9px; }
.desk.cmp.r1 .rw-n span { display: none; }
.desk.cmp .bk-srch { left: 5px; right: 5px; }
.desk.cmp .bk-lock { left: 10px; right: 10px; padding: 0 11px; }
.desk .tray.tray-s { gap: 9px; padding: 0 11px; }
.desk .tray.tray-s .tray-st { width: 22px; height: 26px; }
.desk .tray.tray-s .tray-st i { width: 18px; height: 23px; }
.desk .tray.tray-s .tray-st i:nth-child(1) { left: 4px; } .desk .tray.tray-s .tray-st i:nth-child(2) { left: 2px; top: 2px; } .desk .tray.tray-s .tray-st i:nth-child(3) { top: 3px; }
.desk .tray.tray-s .tray-x span { display: none; }
.desk .tray.tray-s .tray-x b { font-size: 12px; }
.desk .tray.tray-s .tray-n { font-size: 17px; }
.desk.cmp .inv { padding: 10px 12px; }
.desk.cmp .iv-from { font-size: 17px; margin: 4px 0 8px; }
.desk.cmp .iv-ls { padding-top: 4px; }
.desk.cmp .iv-l { height: 21px; }
.desk.cmp .iv-t { height: 28px; margin-top: 5px; padding-top: 4px; }
.desk.cmp .iv-note { margin-top: 8px; padding: 6px 9px; }
.desk.cmp .bill { padding: 12px 14px; }
.desk.cmp .bl-t { font-size: 21px; }
.desk.cmp .bl-sub { margin: 4px 0 12px; }
.desk.cmp .bill .pb { margin-bottom: 7px; }
.desk.cmp .bl-amt { margin-top: 10px; padding-top: 8px; }
.desk.cmp .bill .mark { bottom: 12px; left: 14px; }
.desk.cmp .chip { white-space: normal; line-height: 1.3; padding: 7px 12px 7px 10px; border-radius: 14px; }
.desk.cmp .bk-l { height: 34px; padding: 3px 12px; }
.desk.cmp .bk-l .r1 { line-height: 16px; }
.desk.cmp .bk-l .r2 { margin-top: 1px; height: 14px; }
.desk.cmp .mt-ls { padding: 4px 12px 6px; }
.desk.cmp .mt-l { height: 20px; }
.desk.cmp .mt-s { height: 26px; }
.desk.cmp .wt { padding: 6px 10px 6px 26px; }
.desk.cmp .wt::before { left: 11px; top: 11px; }
.desk.cmp .wt-b { margin-top: 2px; }
.desk.cmp .ladder { padding: 9px 12px 10px; }
.desk.cmp .ld-t { margin-bottom: 8px; }
.desk.cmp .ld-k { padding: 4px 9px 4px 6px; }
.desk.cmp .email .em-h { padding: 8px 12px; }
.desk.cmp .em-s { padding: 6px 12px 0; }
.desk.cmp .em-b { margin: 3px 12px 9px; }
.desk.cmp .receipt { padding: 10px; }
.desk.cmp .rc-s { margin-bottom: 8px; }
.desk.cmp .rc-a { margin: 6px 0; padding-top: 6px; }
.desk.cmp .receipt .pb { margin-bottom: 6px; }
.desk.cmp .ck { height: auto; min-height: 28px; padding: 4px 12px; }
.desk.cmp .rp.top { padding: 12px 14px; }
.desk.cmp .rt-h { padding-bottom: 7px; margin-bottom: 6px; }
.desk.cmp .rt-t { font-size: 20px; }
.desk.cmp .rt-l { height: 20px; }
.desk.cmp .stamp { padding: 6px 10px; font-size: 12px; bottom: 12px; }
.desk.cmp .stamp b { font-size: 18px; }
.desk.cmp .cl { height: 26px; padding: 0 12px; }
.desk.cmp .nudge { padding: 11px 12px; }
.desk.cmp .ng-x { font-size: 17px; margin: 8px 0 6px; }
.desk.cmp .ng-ch { height: 42px; }
.desk.cmp .nudge-s { padding: 9px 12px; min-height: 40px; font-size: 12.5px; }
.desk.cmp .tx { padding: 4px 12px 10px; }
.desk.cmp .tx-r { height: 26px; }
.desk.cmp .tx-n { margin-top: 8px; padding: 6px 9px; }
.desk.cmp .yr { padding: 9px 12px 6px; gap: 5px; }
.desk.cmp .ym { height: 32px; }
.desk.cmp .yr-lg { padding: 0 12px 9px; }
.desk.cmp .yd { padding: 12px 10px; }
.desk.cmp .yd-h b { font-size: 17px; }
.desk.cmp .yd-l { gap: 4px; margin-bottom: 7px; }
.desk.cmp .tr { padding: 8px 12px; }
.desk.cmp .phone { border-radius: 28px; padding: 8px; }
.desk.cmp .ph-s { border-radius: 21px; }
.desk.cmp .ph-h { height: 44px; padding: 6px 12px 0; }
.desk.cmp .ph-body { top: 44px; }
.desk.cmp .ph-list { left: 7px; right: 7px; bottom: 8px; }
.desk.cmp .b { max-width: 90%; padding: 7px 10px; }
.desk.cmp .b.wide { max-width: 96%; width: 96%; }
.desk.cmp .mi { padding-top: 6px; }
.desk.cmp .tb-r { grid-template-columns: 1fr 52px 36px; gap: 3px; }
.desk.cmp .tb-r span:first-child { white-space: nowrap; }
.desk.cmp .ng-lg { flex-wrap: wrap; row-gap: 2px; }
.desk.cmp .ng-lg span { white-space: nowrap; }

/* ---------- the compact partner screen (shorter screens): wider and shorter, the type at its size ---------- */
.pfilm .cap-host .cap { font-size: var(--capf, 28px); }
.pfilm.cmp .pf-top { padding: 0 14px; }
.pfilm.cmp .pf-ph { padding: 10px 14px 8px; }
.pfilm.cmp .pf-pan:not(.card) > .pf-ph { padding: 2px 2px 10px; }
.pfilm.cmp .pf-t { font-size: 19px; }
.pfilm.cmp .cl-c { padding: 6px 14px 5px; }
.pfilm.cmp .cr { padding: 0 14px; }
.pfilm.cmp.r1 .cr-n { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.pfilm.cmp.r1 .cr-n b { display: inline; }
.pfilm.cmp .inv-sc { transform: none; }
.pfilm.cmp .inv-sc .inv { padding: 10px 12px; }
.pfilm.cmp .iv-from { font-size: 17px; margin: 4px 0 8px; }
.pfilm.cmp .iv-l { height: 21px; }
.pfilm.cmp .pp-b { flex-wrap: wrap; gap: 6px; }
.pfilm.cmp .pp-b .qb { margin-top: 4px; }
.pfilm.cmp .batch { flex-wrap: wrap; padding: 10px 12px; gap: 6px; }
.pfilm.cmp .batch .qb { margin: 0; }
.pfilm.cmp .wt { margin-bottom: 6px; padding: 7px 12px 7px 28px; }
.pfilm.cmp .wt::before { top: 12px; }
.pfilm.cmp .ladder { padding: 10px 12px; }
.pfilm.cmp .doc { padding: 12px; }
.pfilm.cmp .dc-l { height: 22px; }
.pfilm.cmp .sign.vert { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 14px; }
.pfilm.cmp .sign.vert .qb { flex-wrap: wrap; }
.pfilm.cmp .tiles { grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px 12px; }
.pfilm.cmp .tile { height: 44px; padding: 7px 8px; }
.pfilm.cmp .tile b { margin-bottom: 8px; }
@media (min-width: 1200px) and (max-height: 820px) {
  .film-end { padding: 6px 16px 6px 20px; }
  .film-end .btn { min-height: 36px; }
}

/* short laptop screens: tighter film chrome (after the base film rules, so it wins) */
@media (min-width: 1200px) and (max-height: 820px) {
  .film-bar { margin-bottom: 6px; }
  .film-pp { height: 32px; }
  .film-day { padding: 5px 10px; }
  .film-rail { margin-bottom: 8px; }
  .seg { padding-top: 5px; }
  .seg-l { margin-top: 5px; }
  .film-say { min-height: 0; padding: 8px 18px 9px; }
  .hero-words .btns { margin-bottom: 20px; }
  .hero-words .h1 + .btns { margin-top: 24px; }
}

/* preview mode (?t=): states show at once, so a still moment is seen as it will look */
.preview .stg *, .preview .stg { transition: none !important; }
.desk.cmp .cl { height: auto; min-height: 26px; padding-top: 3px; padding-bottom: 3px; line-height: 1.25; }
.desk .tray.tray-ni .tray-st { display: none; }
.desk .tray.tray-ni .tray-n { margin-left: auto; }

/* the logo on phones and very short screens */
@media (max-width: 520px) { .brand { gap: 9px; } .brand .ff-logo { height: 32px; } .brand-div { height: 24px; } .brand span { font-size: 22px; } .ftr .brand .ff-logo { height: 40px; } }
@media (max-height: 520px) { .brand .ff-logo { height: 28px; } }
