/* The shared look of the case pages, taken from the dispatch case: see README-cases.md. */
/* Fonts: the landing's own files. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-greek-ext.woff2") format("woff2");
    unicode-range: U+1F00-1FFF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Case page, rebuilt from the landing's own pieces:
   dark hero with the contour map → paper sections like About and Approach →
   dark bands for the market and the call recordings → the contacts map as the finale. */
:root {
    --ink: #0a0a0a;
    --ink-2: #141414;
    --paper: #ebe6db;
    --paper-2: #e2dccf;
    --sheet: #f1eee6;
    --white: #f5f1e8;
    --muted: #5a5650;
    --muted-d: #a09a90;
    --accent: #d7ff2f;
    --line: rgba(10, 10, 10, .16);
    --line-d: rgba(255, 255, 255, .12);
    --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --ease: cubic-bezier(.7, 0, .2, 1);
    --out: cubic-bezier(.22, 1, .36, 1);
    --max: 1280px;
    --gutter: 56px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.5 var(--f-sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); position: relative; }

/* ---------- header: the landing's own ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding: calc(20px + env(safe-area-inset-top, 0px)) 0 20px; background: linear-gradient(to bottom, rgba(10, 10, 10, .65), rgba(10, 10, 10, 0)); border-bottom: 1px solid transparent; transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease); }
.site-header.is-scrolled { background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom-color: rgba(255, 255, 255, .07); padding-bottom: 14px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: baseline; gap: 14px; flex-shrink: 0; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.brand-role { font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--muted-d); }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav-link { position: relative; padding: 6px 0; font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.nav-link::before { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-link:hover::before, .nav-link.is-active::before { right: 0; }
.nav-link.is-active { color: var(--accent); }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .2em; line-height: 1; transition: color .35s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--paper); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn > * { position: relative; }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }

/* ---------- shared type ---------- */
.eyebrow, .label { display: flex; align-items: center; gap: 14px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before, .label::before { content: ''; width: 28px; height: 3px; flex: none; background: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 110px; background: var(--ink); isolation: isolate; }
.contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.contours.is-ready { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--ink)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.back { display: inline-flex; gap: 10px; margin-bottom: 44px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); transition: color .3s; }
.back:hover { color: var(--paper); }
.hero .eyebrow { color: var(--muted-d); margin-bottom: 26px; }
.hero-title { font-weight: 900; font-size: clamp(40px, 4.4vw, 72px); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.hero-grid--solo .hero-title { font-size: clamp(40px, 6.2vw, 96px); }
.hero-grid--solo .hero-lead { max-width: 640px; }

.hero-lead { margin-top: 32px; max-width: 560px; font-size: 17px; line-height: 1.55; color: #cfc9bc; }
.hero-tags { margin-top: 28px; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .2em; color: var(--muted-d); }


/* ---------- paper sections ---------- */
.light { position: relative; background: var(--white); color: var(--ink); }
.dark { position: relative; background: var(--ink) url("public/assets/media/cases/dispatch/dark.jpg") center / cover; background-blend-mode: multiply; color: var(--paper); }


/* chapters: a mono label with the lime dash on the left (like «Обо мне»), the text on the right */
.chapters-band { padding: 24px 0 40px; }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; padding: 80px 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter--wide { grid-template-columns: 1fr; }
.ch-head { align-self: start; }
.ch-head h2 { display: flex; align-items: center; gap: 14px; padding-top: 6px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chapter .ch-head h2 { align-items: flex-start; gap: 18px; padding-top: 0; font: 900 clamp(30px, 3.2vw, 46px)/1 var(--f-sans); letter-spacing: -.035em; color: var(--ink); }
.chapter .ch-head h2::before { width: 36px; height: 5px; margin-top: .4em; }
.ch-head h2::before { content: ''; width: 28px; height: 3px; flex: none; background: var(--accent); box-shadow: 0 0 0 .5px rgba(10, 10, 10, .2); }

.ch-body { min-width: 0; max-width: 760px; }
.chapter--wide .ch-body { max-width: none; }
.ch-body p { font-size: 17px; line-height: 1.65; color: #34312c; }
.ch-body p + p { margin-top: 18px; }
.ch-body .big { font-size: clamp(20px, 1.75vw, 24px); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: var(--ink); max-width: 860px; }
.ch-body strong { font-weight: 700; color: var(--ink); }

/* hero facts: the result up front */
.hero-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 40px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.hero-facts div { display: grid; gap: 8px; }
.hero-facts dt { font-weight: 900; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-facts dd { margin: 0; max-width: 150px; font: 500 10.5px/1.45 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }

/* figures inside the paper bands */
.fig-cap { display: grid; gap: 10px; max-width: 760px; margin-bottom: 44px; }
.fig-eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .2em; color: var(--muted-d); }
.fig-eyebrow--ink { color: var(--muted); }
.fig-title { font-weight: 900; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.fig-desc { font-size: 16.5px; line-height: 1.55; color: var(--muted-d); }
.light .fig-desc { color: var(--muted); }

/* ---------- project passport: role, team, product ---------- */
.meta { padding: 80px 0 0; }
.passport { margin: 0; border-top: 2px solid var(--ink); }
.passport-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0 64px; align-items: baseline; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.passport dt { font: 500 12px/1.6 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.passport dd { margin: 0; max-width: 780px; font-size: 18px; line-height: 1.6; color: #2b2925; }

/* ---------- context: the lead and the story side by side ---------- */
.ctx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ctx-lead { font-weight: 700 !important; font-size: clamp(21px, 1.9vw, 27px) !important; line-height: 1.28 !important; letter-spacing: -.025em; color: var(--ink) !important; text-wrap: balance; }
.ctx-more { margin-top: 6px !important; font-size: 17px !important; line-height: 1.65 !important; }

/* ---------- result tiles ---------- */
.chapter--result .ch-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.chapter--result .score-num { font-size: clamp(48px, 5.2vw, 78px) !important; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.tile { padding: 18px 0 20px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: #34312c; }
.tile:last-child { grid-column: 1 / -1; }


/* ---------- finale: the contacts map ---------- */
.finale { position: relative; overflow: hidden; padding: 120px 0 calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--ink); isolation: isolate; }
.ch-head--dark h2 { color: var(--muted-d); }
.verdict { margin-top: 56px; max-width: 1040px; }
.verdict-pre, .verdict-post { max-width: 640px; font-size: 18px; line-height: 1.6; color: #cfc9bc; }
.verdict-main { margin: 30px 0; font-weight: 900; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.verdict-main strong { font-weight: 900; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 92% / 100% .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size 1.1s var(--out) .4s; }
.js .verdict:not(.is-in) .verdict-main strong { background-size: 0 .14em; }
.verdict-stat { display: flex; align-items: center; gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line-d); }
.verdict-num { font-weight: 900; font-size: clamp(88px, 14vw, 200px); line-height: .85; letter-spacing: -.05em; color: var(--accent); }
.verdict-cap { font: 500 12px/1.6 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.exit { margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.exit-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 30px 32px; background: var(--accent); color: var(--ink); transition: transform .4s var(--out), box-shadow .4s; }
.exit-cta:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 0 70px rgba(215, 255, 47, .45); }
.exit-q { font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.exit-btn { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.exit-next { display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: 40px 20px; padding: 30px 32px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: border-color .3s; }
.exit-next:hover { border-color: var(--paper); }
.exit-label { grid-column: 1 / -1; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--muted-d); }
.exit-title { font-weight: 800; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -.02em; }
.exit-next svg { align-self: end; transition: transform .35s var(--out); }
.exit-next:hover svg { transform: translateX(6px); }

/* ---------- pieces the other cases need ---------- */
.band { padding: 96px 0 104px; }
.hero-tags[data-chrome] { margin-top: 28px; }

/* a list of findings: three columns under one lead sentence */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 44px; }
.cols li { padding-top: 20px; border-top: 2px solid var(--ink); font-size: 16px; line-height: 1.6; color: #34312c; }
.cols strong { display: block; margin-bottom: 10px; font-weight: 800; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }

/* cards of equal weight, each with a number and a pair of notes */
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 44px; }
.case-block { padding-top: 16px; border-top: 2px solid var(--ink); }
.case-block-num { display: block; margin-bottom: 18px; font: 700 13px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink); }
.case-block h4 { margin: 0 0 14px; font-weight: 900; font-size: clamp(22px, 2vw, 28px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.ch-body .case-block p { font-size: 16px; line-height: 1.55; }
.ch-body .case-block p + p { margin-top: 12px; }

.blocks--five { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 32px; margin-top: 0; }
.blocks--five .case-block { grid-column: span 2; }
.blocks--five .case-block:nth-child(n + 4) { grid-column: span 3; }

.cols--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.ch-body .after-list { margin-top: 44px; }
.tiles--wide .tile { font-size: 17px; }
.verdict-text + .verdict-text { margin-top: .8em; }
.cols--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 0; }
.cols--two li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.decisions li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* one stream of work: its story on the left, what came of it on the right */
.track { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: start; padding-top: 32px; border-top: 2px solid var(--ink); }
.track + .track { margin-top: 64px; }
.track h3 { grid-column: 1 / -1; font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.track-text { min-width: 0; }
.case-callout { position: relative; padding: 26px 28px 28px; background: var(--ink); color: var(--paper); }
.case-callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform-origin: top; transition: transform .9s var(--out); }
.has-case-motion .case-callout:not(.is-in)::before { transform: scaleY(0); }
.case-callout-label { display: block; margin-bottom: 14px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ch-body .case-callout p { font-size: 16px; line-height: 1.55; color: #cfc9bc; }
.ch-body .case-callout p + p { margin-top: 12px; }
.ch-body .case-callout strong { color: var(--paper); }

/* a figure in a dark band: the caption beside the artifact */
.case-viz { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.viz-cap { display: grid; gap: 12px; position: sticky; top: 96px; }
.viz-title { font-weight: 900; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.viz-desc { font-size: 16.5px; line-height: 1.55; color: var(--muted-d); }
.cva { min-width: 0; }
.case-viz--wide { grid-template-columns: minmax(0, 1fr); }
.case-viz--wide .viz-cap { position: static; max-width: 760px; }

/* numbered decisions */
.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; counter-reset: decision; }
.decisions li { position: relative; padding: 20px 0 0 52px; border-top: 2px solid var(--ink); font-size: 16px; line-height: 1.6; color: #34312c; counter-increment: decision; }
.decisions li::before { content: counter(decision, decimal-leading-zero); position: absolute; left: 0; top: 24px; font: 700 13px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink); }
.decisions strong { display: block; margin-bottom: 8px; font-weight: 800; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }

/* the closing thought: a passage with one sentence carrying the weight */
.verdict-text { font-weight: 600; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.28; letter-spacing: -.02em; color: #cfc9bc; }
.verdict-text strong { font-weight: 900; color: var(--paper); background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 96% / 100% .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size 1.1s var(--out) .4s; }
.js .verdict:not(.is-in) .verdict-text strong { background-size: 0 .1em; }

/* a chapter whose heading is a whole sentence: a small label above it */
.ch-kicker { display: block; margin-bottom: 16px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ch-kicker--dark, .ch-head--on-dark .ch-kicker { color: var(--muted-d); }
.ch-head--on-dark h2 { align-items: flex-start; gap: 18px; padding-top: 0; font: 900 clamp(30px, 3.2vw, 46px)/1 var(--f-sans); letter-spacing: -.035em; color: var(--paper); }
.ch-head--on-dark h2::before { width: 36px; height: 5px; margin-top: .4em; box-shadow: none; }
.track--plain { padding-top: 0; border-top: 0; }

/* real screens and recordings in a dark band */
.shots { display: grid; gap: 72px; }
.shots-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.shot { display: grid; gap: 14px; min-width: 0; }
.shot-head { display: flex; justify-content: space-between; gap: 16px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.shot-img { min-width: 0; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-d); }
.shot-img img, .shot-img video { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 16px; line-height: 1.5; color: var(--muted-d); }
.shot--side { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 14px 32px; align-items: end; }
.shot--side .shot-head { grid-column: 1 / -1; }
.demo { padding-top: 8px; }
.demo-text { max-width: 760px; margin: 24px 0 28px; font-size: 17px; line-height: 1.6; color: #cfc9bc; }
.demo-note { margin-top: 14px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .1em; color: var(--muted-d); }

/* the process, before and after: on the old path the request crosses between two teams
   and comes back; on the new one it runs straight. The light moves at the speed of each */
.flows { display: grid; gap: 56px; margin-top: 44px; }
.flow .cva-mk { margin-bottom: 20px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.flow--new .cva-mk { color: var(--accent); }
.flow-stage { position: relative; aspect-ratio: 1168 / 300; }
.flow--new .flow-stage { aspect-ratio: 1168 / 120; }
.flow-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.flow-lane { stroke: var(--line-d); stroke-width: 1; stroke-dasharray: 3 7; }
.flow-line { stroke: rgba(245, 241, 232, .28); stroke-width: 2; transition: stroke-dashoffset 1.3s var(--out) .3s; stroke-dasharray: 1; }
.has-case-motion [data-cv]:not(.is-in) .flow-line { stroke-dashoffset: 1; }
.flow--new .flow-line { stroke: var(--accent); stroke-width: 3; }
.flow-run { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .05 1; animation: flow-run 6s linear infinite; }
.flow--new .flow-run { stroke: var(--ink); stroke-width: 4; stroke-dasharray: .03 1; animation-duration: 1.7s; }
@keyframes flow-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -.05; } }
.flow-steps { position: absolute; inset: 0; }
.flow-steps li { position: absolute; display: flex; gap: 12px; align-items: flex-start; width: 29.11%; height: 40%; padding: 16px 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.35; color: #cfc9bc; transition: opacity .6s var(--out), transform .6s var(--out); transition-delay: calc(var(--i) * 120ms); }
.has-case-motion [data-cv]:not(.is-in) .flow-steps li { opacity: 0; transform: translateY(14px); }
.flow-steps span { flex: none; font: 700 12px/1.8 var(--f-mono); color: var(--muted-d); }
.flow--old li:nth-child(1) { left: 0; top: 0; }
.flow--old li:nth-child(2) { left: 35.45%; top: 56.67%; }
.flow--old li:nth-child(3) { left: 70.89%; top: 56.67%; }
.flow--new .flow-steps li { top: 0; height: 100%; background: var(--white); box-shadow: none; color: var(--ink); font-weight: 600; }
.flow--new li:nth-child(1) { left: 0; }
.flow--new li:nth-child(2) { left: 35.45%; }
.flow--new li:nth-child(3) { left: 70.89%; }
.flow--new .flow-steps span { padding: 0 6px; background: var(--accent); color: var(--ink); line-height: 1.7; }

/* the four stages: outlined numbers like the landing's, lit one after another */
.stages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; }
.stages::before, .stages::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-d); }
.stages::after { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.stages.is-in::after { animation: stages-line 8s linear infinite; }
.stages span { display: block; margin-bottom: 18px; font-size: clamp(64px, 8vw, 108px); font-weight: 800; line-height: .95; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px var(--white); }
.stages.is-in span { animation: stage-lit 8s linear infinite; animation-delay: calc(var(--i) * 2s); }
.stages strong { display: block; font-weight: 900; font-size: clamp(19px, 2vw, 27px); line-height: 1.05; letter-spacing: -.03em; color: var(--white); }
.stages small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--muted-d); }
@keyframes stages-line { to { transform: scaleX(1); } }
@keyframes stage-lit { 0%, 22% { color: var(--accent); -webkit-text-stroke-color: var(--accent); } 25%, 100% { color: transparent; -webkit-text-stroke-color: var(--white); } }
.demo-text--big { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.45; color: var(--paper); }

/* a screen in its window */
.shot-bar { display: flex; gap: 6px; padding: 11px 13px; background: #1c1c1a; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 241, 232, .22); }

/* the result: one number takes the block, the rest stand beside it */
.ch-link { display: block; width: fit-content; margin-top: 10px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.wins { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.win { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; grid-column: span 5; min-width: 0; padding: 26px 28px 28px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); }
.win--lead { grid-column: span 7; grid-row: span 2; background: var(--accent); box-shadow: none; color: var(--ink); }
.win-num { font-weight: 900; font-size: clamp(64px, 8vw, 112px); line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--paper); }
.win--lead .win-num { font-size: clamp(130px, 25vw, 340px); line-height: .8; color: var(--ink); }
.win-foot { display: grid; gap: 16px; }
.win-lab { font: 500 12px/1.5 var(--f-mono); letter-spacing: .08em; color: var(--muted-d); }
.win-lab b { display: block; margin-bottom: 4px; font: 800 clamp(17px, 1.5vw, 21px)/1.2 var(--f-sans); letter-spacing: -.015em; color: var(--paper); }
.win--lead .win-lab b { color: var(--ink); }
.win-vs { display: grid; gap: 6px; }
.win-vs div { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font: 500 11px/1 var(--f-mono); color: var(--muted-d); }
.win--lead .win-vs div { color: var(--ink); }
.win-vs i { position: relative; height: 10px; }
.win-vs i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: max(var(--v), 3px); background: rgba(245, 241, 232, .34); transform-origin: left; transition: transform 1s var(--out) .3s; }
.win-vs .now i::after { background: var(--accent); transition-delay: .7s; }
.win--lead .win-vs i::after { background: rgba(10, 10, 10, .34); }
.win--lead .win-vs .now i::after { background: var(--ink); }
.has-case-motion .wins:not(.is-in) .win-vs i::after { transform: scaleX(0); }

/* the finished document, on paper */
.doc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding: 80px 0; }
.doc h2 { font-weight: 900; font-size: clamp(38px, 5vw, 72px); line-height: .96; letter-spacing: -.04em; text-transform: uppercase; color: var(--ink); }
.doc h2 em { font-style: normal; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 100% .3em; }
.doc p { max-width: 520px; margin-top: 24px; font-size: 17px; line-height: 1.6; color: #34312c; }
.doc-link { display: inline-flex; gap: 10px; margin-top: 28px; padding: 15px 20px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .16em; transition: background .3s, color .3s; }
.doc-link:hover { background: var(--accent); color: var(--ink); }
.doc-img { position: relative; isolation: isolate; }
.doc-img::before { content: ''; position: absolute; z-index: -1; inset: 6% -5% -3% 7%; background: linear-gradient(135deg, #dcff3d, #b6dc1c); transform: rotate(4deg); }
.doc-img img { display: block; width: 100%; height: auto; transform: rotate(-1.4deg); box-shadow: 0 30px 70px rgba(10, 10, 10, .28), 0 0 0 1px var(--line); }
.exit-arrow { align-self: end; font-size: 26px; line-height: 1; transition: transform .35s var(--out); }
.exit-next:hover .exit-arrow { transform: translateX(6px); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .nav { display: none; }
    .header-inner { justify-content: space-between; }
    .chapter { grid-template-columns: 1fr; }
    .ctx { grid-template-columns: 1fr; gap: 28px; }
    .passport-row { grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; }
    .cols, .cols--two, .cols--four, .blocks, .blocks--five { grid-template-columns: 1fr; gap: 28px; }
    .blocks--five .case-block, .blocks--five .case-block:nth-child(n + 4) { grid-column: auto; }
    .track { grid-template-columns: 1fr; }
    .case-viz { grid-template-columns: 1fr; }
    .viz-cap { position: static; max-width: 640px; }
    .decisions { grid-template-columns: 1fr; }
    .win, .win--lead { grid-column: 1 / -1; grid-row: auto; }
    .shots-two, .shot--side, .doc { grid-template-columns: 1fr; }
    .flow-stage, .flow--new .flow-stage { aspect-ratio: auto; }
    .flow-stage svg { display: none; }
    .flow-steps { position: static; display: grid; gap: 10px; }
    .flow-steps li, .flow--new .flow-steps li { position: static; width: auto; height: auto; }
    .flow--old li:nth-child(n + 2) { margin-left: 28px; }
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
    .doc { gap: 32px; padding: 52px 0; }
    .doc-img { max-width: 420px; }
    /* the sheet stays inside the gutter: a page wider than the phone also stops the page transition */
    .doc-img::before { inset: 6% -2% -3% 4%; transform: rotate(2.5deg); }
    .chapter--result .ch-body { grid-template-columns: 1fr; }
    .exit { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
    :root { --gutter: 20px; }
    .brand-role { display: none; }
    .site-header .btn { padding: 11px 14px; }
    .hero { padding: 108px 0 64px; }
    .back { margin-bottom: 28px; }
    .hero .eyebrow { margin-bottom: 18px; }
    .hero-title, .hero-grid--solo .hero-title { font-size: clamp(30px, 9.4vw, 48px); white-space: normal; }
    .hero-lead { font-size: 16px; }
    .hero-facts { grid-template-columns: 1fr; gap: 14px; }
    .hero-facts div { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); align-items: center; gap: 12px; }
    .hero-facts dt { font-size: 26px; }
    .chapter { padding: 52px 0; gap: 28px; }
    .ch-body p { font-size: 16px; }
    .meta { padding-top: 56px; }
    .passport-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0 22px; }
    .passport dd { font-size: 16px; }
    .ctx-more { font-size: 16px !important; }
    .tiles { grid-template-columns: 1fr; }
    .band { padding: 72px 0 80px; }
    .case-callout { padding: 22px 22px 24px; }
    .finale { padding-top: 84px; }
    .verdict { margin-top: 36px; }
    .exit { margin-top: 64px; }
    .exit-cta, .exit-next { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- consent banner (consent-case.css): the site's fonts and flat ghost buttons ---------- */
body .consent-banner { --f-mono: 'JetBrains Mono', ui-monospace, monospace; font-family: var(--f-sans); }
.consent-banner p { margin: 0; }
.consent-btn { cursor: pointer; }
.consent-btn-ghost { background: transparent; }
body .case-cookie-controls, body .case-cookie-controls a, body .case-cookie-controls button { font-family: var(--f-mono); }

.case-cookie-controls { padding: 0 24px 28px; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); background: var(--ink); }
.case-cookie-controls a, .case-cookie-controls button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
