/* static.css: the static pages' shell (about, story, videos, talks, press, courses; + uz/ru). BRIEF §1.
   Built by tools/build_seo.mjs + tools/seo/shell.mjs. Per-page rules go in css/static-<page>.css, never here.
   Grounds alternate ink/paper per section (data-ground), the accent is the active state only, her media is
   crop/resize/mask only: no filter, blend, gradient, scrim or text over it, anywhere. */

/* ------------------------------------------------------------ tokens
   READ-ONLY COPY of css/tokens.css (the film's tokens, 3 Oct 2026). Change them there first, then copy here. */
@font-face { font-family: 'Akt'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/akt-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Akt'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/akt-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: 'Akt'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/akt-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; }
:root {
  --ink: #14151A; --ink-2: #1E2027; --paper: #FFFFFF; --paper-2: #E4E5E3;
  --on-ink: #FFFFFF; --on-ink-mute: rgba(255, 255, 255, .62); --on-paper: #14151A; --on-paper-mute: #4E5058;
  --line-ink: rgba(255, 255, 255, .16); --line-paper: rgba(20, 21, 26, .18);
  --accent: #2438F0; --on-accent: #FFFFFF;
  --f-display: "Akt", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Akt", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-hero: clamp(4.5rem, 18vw, 21rem); --t-giant: clamp(3.5rem, 12vw, 14rem); --t-d1: clamp(2.75rem, 7vw, 8rem);
  --t-d2: clamp(2rem, 4.2vw, 4.75rem); --t-lead: clamp(1.25rem, 1.6vw, 1.625rem); --t-body: clamp(1rem, 1.1vw, 1.125rem);
  --t-small: .875rem; --t-micro: .75rem;
  --gut: clamp(16px, 2.2vw, 32px);
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem; --s-10: 10rem;
  --max-read: 38rem;
  --ease-osmo: cubic-bezier(.625, .05, 0, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-nav: 50; --z-cover: 120;
  /* static-page additions */
  --t-row: clamp(1.5rem, 2.6vw, 3rem);            /* row display (BRIEF §1.4) */
  --t-year: clamp(4rem, 12.5vw, 13.5rem);         /* year numerals */
  --sec-y: clamp(72px, 9vw, 144px);               /* section rhythm */
  --nav-h: 76px;                                  /* fixed nav + air: sticky tops and anchor offsets */
  --dpr: 1;                                       /* device pixel ratio, rounded UP (media never upscales) */
}
@media (min-resolution: 1.01dppx) { :root { --dpr: 1.25; } }
@media (min-resolution: 1.26dppx) { :root { --dpr: 1.5; } }
@media (min-resolution: 1.51dppx) { :root { --dpr: 1.75; } }
@media (min-resolution: 1.76dppx) { :root { --dpr: 2; } }
@media (min-resolution: 2.01dppx) { :root { --dpr: 2.5; } }
@media (min-resolution: 2.51dppx) { :root { --dpr: 3; } }
@media (min-resolution: 3.01dppx) { :root { --dpr: 4; } }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--paper); }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--on-paper); overflow-x: clip;
  font-family: var(--f-body); font-size: max(17px, var(--t-body)); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ground, var(--paper)); border-radius: 4px; }
main:focus, main:focus-visible { outline: none; box-shadow: none; }
.skip {
  position: fixed; left: var(--gut); top: 10px; z-index: calc(var(--z-nav) + 1); transform: translateY(-160%);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { transform: none; }

/* grounds: every section declares one; neighbours never share one */
[data-ground] { position: relative; }
[data-ground="ink"] { --ground: var(--ink); --fg: var(--on-ink); --mute: var(--on-ink-mute); --line: var(--line-ink); --raise: var(--ink-2); background: var(--ink); color: var(--on-ink); color-scheme: dark; }
[data-ground="paper"] { --ground: var(--paper); --fg: var(--on-paper); --mute: var(--on-paper-mute); --line: var(--line-paper); --raise: var(--paper-2); background: var(--paper); color: var(--on-paper); color-scheme: light; }

/* ------------------------------------------------------------ type */
/* the section kicker (copy of css/base.css .chk) */
.chk { font-family: var(--f-display); font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: currentColor; }
.chk__n { font-variant-numeric: tabular-nums; }
.chk__s { white-space: pre; }
.chk__hl { display: inline-block; width: 36px; height: 1px; margin-left: .75em; vertical-align: .34em; background: currentColor; opacity: .6; transform-origin: 0 50%; }
@media (max-width: 767px) { .chk { font-size: 12px; } .chk__hl { width: 28px; } }

.d-h1 { font-family: var(--f-display); font-weight: 900; letter-spacing: -.055em; line-height: .8; }
.d-sec { font-family: var(--f-display); font-size: var(--t-d1); font-weight: 900; letter-spacing: -.045em; line-height: .86; }
.d-row { font-family: var(--f-display); font-size: var(--t-row); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.d-year { font-family: var(--f-display); font-size: var(--t-year); font-weight: 900; letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.lbl { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.mute { color: var(--mute); }
.read { max-width: var(--max-read); font-size: max(18px, var(--t-body)); line-height: 1.55; }
.read > * + * { margin-top: 1em; }
.lead { font-size: var(--t-lead); line-height: 1.35; font-weight: 450; }

/* line reveal: a mask per line/word; the text is in place without JS, under reduced motion, and after the failsafe */
.ln { display: inline-block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.ln > span { display: inline-block; }
html.js [data-rv] .ln > span { transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; }
html.js [data-rv].is-in .ln > span { transform: none; transition: transform .9s var(--ease-osmo); transition-delay: calc(var(--i, 0) * 80ms); }
html.rv-off [data-rv] .ln > span { transform: none !important; }

/* ------------------------------------------------------------ frame + section rhythm */
.sec { padding: var(--sec-y) var(--gut); overflow-x: clip; }
/* touch screens, below the first screen: style, layout and paint wait until a section nears the viewport (first frame,
   WebView resizes, the /videos/ filter). `auto` remembers each section's real size once it has rendered; the
   placeholders are typical heights at 390 (review/freeze/FIX-PLAN.md A4). Not on fine pointers: there Lenis glides to
   an anchor (#contact, a year) by a distance measured on the placeholders, and lands thousands of px off. static.js
   loads the faces the page's text needs and renders the skipped rows while the main thread is idle */
@media not all and (hover: hover) and (pointer: fine) {
  main > .sec ~ .sec { content-visibility: auto; contain-intrinsic-size: auto 2000px; }
  /* inside them the rows are skipped too: a whole section rendered in one frame mid-scroll cost 100-300 ms (/press/
     index: 62 rows, 2667 layout objects); a row renders in a few ms as it nears the viewport. Placeholders are the
     median heights at 390. Not on .nx: its placeholder, just above #contact, moved the #contact jump 96 px; the
     footer keeps it with its own measured height (only its own size changes when it renders) (review/freeze/probes-R) */
  .ft { content-visibility: auto; contain-intrinsic-size: auto 1610px; }
  .hl-row, .tk-r { content-visibility: auto; contain-intrinsic-size: auto 172px; }
  .prow { contain-intrinsic-size: auto 236px; }
  .ab-ch { content-visibility: auto; contain-intrinsic-size: auto 1093px; }
  .cs-book > * { content-visibility: auto; contain-intrinsic-size: auto 880px; }
  /* paint containment would clip a focus ring or a full-bleed band (.prow::after) on a box's edge: unclipped while focused */
  .ft:focus-within, .hl-row:focus-within, .tk-r:focus-within, .ab-ch:focus-within, .cs-book > :focus-within { content-visibility: visible; }
}
.sec__head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 4vw, 64px); }
.sec__t { margin: 0; }
/* a hairline row rule that draws in where scroll-driven animations exist (static elsewhere) */
.hl-row { position: relative; }
.hl-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .hl-row::before { animation: hl-draw linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
/* touch: the rule draws once as its row enters; a composited transition holds its layer only while it runs
   (scroll-linked, every row kept a layer for the life of the page: review/freeze/FIX-PLAN.md A1) */
html.rv-tap .hl-row:not(.is-in)::before { transform: scaleX(0); }
html.rv-tap .hl-row.is-in::before { transition: transform .7s var(--ease-osmo); }
@keyframes hl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------ media: slot (poster-first, never upscaled) */
.slot { --slot-capw: calc(var(--pw) * 1.05px / var(--dpr)); --slot-caph: calc(var(--ph) * 1.05px / var(--dpr)); margin: 0; display: grid; justify-items: center; gap: 12px; }
.slot__m { position: relative; overflow: hidden; isolation: isolate; background: var(--raise, var(--ink-2)); width: var(--slot-w, min(100%, var(--slot-capw))); height: var(--slot-h, auto); aspect-ratio: var(--slot-ar, auto); max-width: var(--slot-capw); max-height: var(--slot-caph); }
.slot--pill .slot__m { border-radius: 999px; }
.slot--oval .slot__m { border-radius: 50%; }
.slot--round .slot__m { border-radius: 28px; }
.slot__m img, .slot__m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot__m video { opacity: 0; transition: opacity .4s linear; }
.slot__m video.is-ready { opacity: 1; }
.slot__cap span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--fg); color: var(--ground); font-size: .75rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
/* slit -> window: a mask that opens as the frame scrolls in (no JS needed; IO fallback adds .is-open) */
.slit { clip-path: inset(0 round 28px); }
@media (prefers-reduced-motion: no-preference) {
  html.js .slit:not(.is-open) { clip-path: inset(46% 0 46% 0 round 999px); transition: clip-path 1.1s var(--ease-osmo); }
  html.js .slit.is-open { transition: clip-path 1.1s var(--ease-osmo); }
  /* scroll-linked on fine pointers only: on touch it repainted every frame, even after it had finished; there the IO
     fallback above opens it once (js/static.js; review/freeze/FIX-PLAN.md A2) */
  @supports (animation-timeline: view()) {
    @media (hover: hover) and (pointer: fine) {
      html.js .slit, html.js .slit:not(.is-open) { clip-path: inset(0 round 28px); animation: slit-open linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; transition: none; }
    }
  }
}
@keyframes slit-open { from { clip-path: inset(46% 0 46% 0 round 999px); } to { clip-path: inset(0 round 28px); } }
html.rv-off .slit { clip-path: inset(0 round 28px) !important; animation: none !important; }

/* ------------------------------------------------------------ buttons (pencil scribble fill, port of .cb__enr) */
.btn { position: relative; display: inline-grid; place-items: center; isolation: isolate; overflow: hidden; min-height: 56px; padding: 0 28px; border-radius: 999px; text-decoration: none; text-align: center; font-weight: 700; font-size: 1rem; line-height: 1.15; letter-spacing: -.005em; transition: color .35s linear; }
.btn__o { position: absolute; inset: 0; z-index: -1; }
.btn__t { display: inline-flex; align-items: baseline; }
.btn__arr { display: inline-block; margin-left: .35em; transition: transform .6s var(--ease-osmo); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-ink); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--bubble { aspect-ratio: 1.62; min-height: 0; width: clamp(260px, 26vw, 420px); padding: 0 6%; border-radius: 50%; background: var(--fg); color: var(--ground); font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 1.8vw, 1.75rem); letter-spacing: -.02em; }
.pen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pen polyline { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.45, 0, .2, 1); }
@media (hover: hover) {
  .btn:hover { color: var(--on-accent); }
  .btn:hover .pen polyline { stroke-dashoffset: 0; }
  .btn:hover .btn__arr { transform: translateX(6px); }
}
.btn:active { color: var(--on-accent); }
.btn:active .pen polyline { stroke-dashoffset: 0; }

/* chips (anchor links / :has() filters); 44px targets on touch */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); background: transparent; font-size: .8125rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chip::after { content: ""; position: absolute; inset: -5px 0; }
.chip sup, .chip small { font-size: .75rem; top: 0; vertical-align: baseline; color: var(--mute); font-weight: 500; }
@media (hover: hover) { .chip:hover { border-color: var(--fg); } }
.chip[aria-pressed="true"], .chip[aria-current], input:checked + .chip { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] small, .chip[aria-current] small, input:checked + .chip small { color: inherit; opacity: .78; }
@media (max-width: 760px), (pointer: coarse) { .chip { min-height: 44px; } .chip::after { inset: 0; } }

/* hover rows: the row takes the opposite ground (pointer screens only); text never hides */
@media (hover: hover) and (pointer: fine) {
  .hrow { transition: background-color .75s var(--ease-osmo), color .6s var(--ease-out); }
  [data-ground="paper"] .hrow:hover { background: var(--ink); color: var(--on-ink); --mute: var(--on-ink-mute); --line: var(--line-ink); }
  [data-ground="ink"] .hrow:hover { background: var(--paper); color: var(--on-paper); --mute: var(--on-paper-mute); --line: var(--line-paper); }
}
.hrow .bub { display: inline-block; flex: none; width: 13px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .25s; }
@media (hover: hover) { .hrow:hover .bub { background: var(--accent); border-color: var(--accent); } }
/* the cursor preview oval (js/static.js creates it for rows with data-loop) */
.cur { position: fixed; left: 0; top: 0; z-index: 40; width: var(--cur-w, 240px); height: var(--cur-h, 300px); border-radius: 50%; overflow: hidden; pointer-events: none; background: var(--ink-2); opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.6); transition: opacity .3s linear, transform .5s var(--ease-osmo); }
.cur.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.cur img, .cur video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a row with no loop of its own ([data-tile]): the oval carries the row's figure as type, on the accent (no media) */
.cur__t { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 8px; padding: 0 14%; text-align: center; background: var(--accent); color: var(--on-accent); }
.cur__t b { font-family: var(--f-display); font-size: calc(var(--cur-w, 240px) * .2); font-weight: 900; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.cur__t small { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.cur.is-tile .cur__t { display: grid; }
.cur.is-tile img, .cur.is-tile video { display: none; }
/* odometer (js/static.js rolls the digits of a <data data-odo> to the value already in the HTML) */
.odo { display: inline-flex; vertical-align: top; }
.odo__c { position: relative; display: inline-block; height: 1.1em; line-height: 1.1em; overflow: clip; }
.odo__c::before { content: attr(data-d); visibility: hidden; }
.odo__x::before { content: attr(data-x); white-space: pre; }
.odo__s { position: absolute; top: 0; left: 50%; translate: -50% 0; width: max-content; text-align: center; white-space: pre; line-height: 1.1em; transform: translateY(0); transition: transform .8s var(--ease-osmo); transition-delay: calc(var(--i, 0) * 60ms); }
.odo__s::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; }
.odo.is-in .odo__s { transform: translateY(calc(var(--d) * -1.1em)); }
@media (prefers-reduced-motion: no-preference) { .odo { transition: opacity .3s linear; } .odo:not(.is-in) { opacity: 0; } }

/* ------------------------------------------------------------ nav (port of .rx-nav, scenes/r-archive.css) */
.nv { position: fixed; top: 14px; left: var(--gut); right: var(--gut); z-index: var(--z-nav); display: flex; align-items: center; gap: 8px; pointer-events: none; font-family: var(--f-body); transition: transform .6s var(--ease-osmo); }
.nv > * { pointer-events: auto; }
.nv.is-tucked { transform: translateY(-140%); }
.nv a { text-decoration: none; }
/* the label roll: the word slides up and its copy (data-t on .nv__l: no duplicate text in the HTML) slides in */
.nv__l { position: relative; display: inline-block; transition: transform .5s var(--ease-osmo); }
.nv__l::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; }
.nv__mark, .nv__a, .nv__ctab { overflow: clip; }
@media (hover: hover) { .nv__mark:hover .nv__l, .nv__a:hover .nv__l, .nv__cta:hover .nv__l { transform: translateY(-100%); } }
.nv__mark { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line-ink); font-family: var(--f-display); font-size: .9375rem; font-weight: 800; letter-spacing: -.015em; line-height: 44px; white-space: nowrap; }
.nv__list { margin-left: auto; }
.nv__list > ul { display: flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line-ink); }
.nv__a { position: relative; display: inline-flex; align-items: center; height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: 999px; line-height: 44px; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; color: inherit; white-space: nowrap; }
.nv__a[aria-current]::before { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: var(--accent); z-index: 0; }
.nv__a[aria-current] { color: var(--on-accent); }
.nv__a > * { position: relative; z-index: 1; }
.nv__en { font-size: .6875rem; font-weight: 600; opacity: .62; margin-left: 2px; }
.nv__cta { display: inline-flex; align-items: center; height: 44px; padding: 4px; color: var(--ink); flex: none; }
.nv__ctab { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 .8125rem/36px var(--f-body); letter-spacing: .01em; overflow: clip; transition: background-color .3s ease, color .3s ease; }
.nv__ctab i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-style: normal; font-size: 13px; line-height: 1; transition: transform .5s var(--ease-osmo), background-color .3s, color .3s; }
.nv__cta[aria-current] .nv__ctab { background: var(--accent); color: var(--on-accent); }
.nv__cta[aria-current] .nv__ctab i { background: var(--on-accent); color: var(--accent); }
@media (hover: hover) {
  .nv__cta:hover .nv__ctab { background: var(--accent); color: var(--on-accent); }
  .nv__cta:hover .nv__ctab i { background: var(--on-accent); color: var(--accent); transform: translateX(2px); }
}
.nv__cta--bar { display: none; }
/* EN | UZ | RU: a segmented pill, the active language is the accent bubble */
.nv__lang { flex: none; }
.nv__lang ul { display: flex; gap: 2px; padding: 0; border-radius: 999px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink); }
.nv__lang a { position: relative; display: inline-grid; place-items: center; height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; color: var(--on-ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.nv__lang a[aria-current]::before { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: var(--accent); }
.nv__lang a > * { position: relative; }
@media (hover: hover) { .nv__lang a:not([aria-current]):hover { background: rgba(255, 255, 255, .08); } }
/* the phone menu: a <details>, so it opens with no JS */
.nv__menu { display: none; position: relative; }
.nv__menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; min-width: 44px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line-ink); font: 600 .8125rem/44px var(--f-body); letter-spacing: .01em; cursor: pointer; }
.nv__menu > summary::-webkit-details-marker { display: none; }
.nv__menu > summary i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .3s ease; }
.nv__menu[open] > summary i { background: currentColor; }
.nv__panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(calc(100vw - 2 * var(--gut)), 24rem); max-height: calc(100svh - 76px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 28px; background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line-ink), 0 18px 48px -18px rgba(20, 21, 26, .55); }
.nv__panel ul { display: grid; gap: 2px; }
.nv__a--panel { display: flex; justify-content: space-between; align-items: center; height: 52px; line-height: 52px; padding: 0 20px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.nv__a--panel:focus-visible { outline: 2px solid var(--on-ink); outline-offset: -4px; box-shadow: none; }
.nv__lang--panel { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-ink); }
.nv__lang--panel ul { box-shadow: none; justify-content: stretch; }
.nv__lang--panel li { flex: 1; }
.nv__lang--panel a { width: 100%; height: 52px; }
@media (max-width: 1100px) { .nv__a { padding: 0 9px; } }
@media (max-width: 860px) {
  .nv { top: 10px; gap: 6px; }
  .nv__list, .nv > .nv__lang { display: none; }
  .nv__mark { font-size: .875rem; padding: 0 16px; }
  .nv__cta--bar { display: inline-flex; margin-left: auto; padding: 0; }
  .nv__cta--bar .nv__ctab { height: 44px; line-height: 44px; padding: 0 16px; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .nv__cta--bar .nv__ctab i { display: none; }
  .nv__cta--bar[aria-current] .nv__ctab { box-shadow: none; }
  .nv__menu { display: block; }
}
@media (max-width: 379px) {
  .nv__mark { padding: 0 12px; font-size: .8125rem; }
  .nv__cta--bar .nv__ctab { padding: 0 12px; }
  .nv__menu > summary { padding: 0 12px 0 14px; gap: 8px; }
}

/* ------------------------------------------------------------ the title frame (port of .rx-head; BRIEF §1.3) */
.hx {
  --hx-top: clamp(84px, 11vh, 112px); --hx-bot: var(--s-6); --hx-gap: var(--s-6);
  --slot-w: min(clamp(300px, 36vw, 640px), var(--slot-capw, 640px));
  --h1-fs: min(clamp(5.25rem, 16.5vw, 19rem), calc((100vw - 2 * var(--gut) - var(--hx-media-w, 0px) - var(--hx-gap)) / var(--h1-w, 3)));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "kick media" "gap media" "deck media" "title media" "chips media";
  column-gap: var(--hx-gap); min-height: min(100vh, 940px); min-height: min(100svh, 940px);
  padding: var(--hx-top) var(--gut) var(--hx-bot);
}
.hx:has(.hx__media) { --hx-media-w: min(36vw, 640px); }
.hx--bare { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kick" "gap" "deck" "title" "chips"; }
.hx__kick { grid-area: kick; margin-bottom: var(--s-4); }
.hx__deck { grid-area: deck; align-self: end; max-width: 34rem; font-size: var(--t-lead); line-height: 1.35; font-weight: 450; }
.hx__deck > * + * { margin-top: .6em; }
.hx__deck a { text-decoration: underline; }
.hx__title { grid-area: title; align-self: end; display: flex; align-items: flex-start; gap: .14em; margin-top: var(--s-6); }
.hx__h1 { font-family: var(--f-display); font-weight: 900; letter-spacing: -.055em; line-height: .8; font-size: var(--h1-fs); margin-left: -.05em; overflow-wrap: normal; }
.hx__h1 .ln { padding: .02em .02em .1em; margin-bottom: -.1em; }
.hx__h1:focus, .hx__h1:focus-visible { outline: none; box-shadow: none; }
.hx__n { flex: none; display: grid; gap: .3em; margin-top: calc(var(--h1-fs) * .05); font-family: var(--f-display); font-size: calc(var(--h1-fs) * .2); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hx__n small { font-family: var(--f-body); font-size: max(.75rem, .26em); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.hx__media { grid-area: media; align-self: stretch; display: grid; align-content: start; justify-items: end; }
.hx .slot { --slot-w: min(clamp(300px, 36vw, 640px), var(--slot-capw)); --slot-h: min(calc(min(100svh, 940px) - var(--hx-top) - var(--hx-bot) - 40px), var(--slot-caph)); }
.hx .slot__m { width: var(--slot-w); height: var(--slot-h); }
.hx__chips { grid-area: chips; margin-top: var(--s-5); }
@media (max-width: 760px) {
  .hx {
    --hx-top: 84px; --hx-bot: var(--s-7); --hx-gap: var(--s-4);
    --h1-fs: min(36vw, calc((100vw - 2 * var(--gut)) / var(--h1-w, 3)));
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto;
    grid-template-areas: "kick kick" "title title" "n media" "deck deck" "chips chips";
    row-gap: var(--s-5); min-height: 0;
  }
  .hx--bare { grid-template-areas: "kick kick" "title title" "n n" "deck deck" "chips chips"; }
  .hx__kick { margin: 0; }
  .hx__title { display: contents; }
  .hx__h1 { grid-area: title; }
  .hx__n { grid-area: n; align-self: end; gap: 8px; margin: 0 0 36px; font-size: clamp(2.5rem, 13vw, 4rem); }
  .hx__media { justify-items: end; }
  .hx .slot { --slot-w: min(58vw, var(--slot-capw)); --slot-h: min(calc(min(58vw, var(--slot-capw)) * 1.5), var(--slot-caph)); }
  .hx__chips { margin: 0; }
}

/* ------------------------------------------------------------ footer (ink, #contact; BRIEF §1.5) */
.ft { padding: clamp(64px, 8vw, 128px) var(--gut) 0; overflow: clip; }
.ft a { text-decoration: none; }
.ft__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-6); padding-bottom: clamp(48px, 6vw, 96px); }
.ft__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: var(--s-6) var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line-ink); }
.ft__h { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-mute); margin-bottom: var(--s-3); }
.ft__h--2 { margin-top: var(--s-6); }
.ft__ch a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line-ink); font-family: var(--f-display); font-size: clamp(1.0625rem, 1.3vw, 1.375rem); font-weight: 700; letter-spacing: -.01em; }
.ft__chv { flex: none; display: inline-flex; gap: .6em; align-items: baseline; font-family: var(--f-body); font-size: .8125rem; font-weight: 600; color: var(--on-ink-mute); }
.ft__chv i { font-style: normal; color: var(--on-ink); transition: transform .5s var(--ease-osmo); }
@media (hover: hover) { .ft__ch a:hover i { transform: translate(3px, -3px); } .ft__ch a:hover .ft__chn { text-decoration: underline; } }
.ft__mail a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-display); font-size: clamp(1.0625rem, 1.3vw, 1.375rem); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.ft__ls a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
@media (hover: hover) { .ft__ls a:hover { text-decoration: underline; } }
.ft__ls a[aria-current] { color: var(--on-ink-mute); }
.ft__fine { max-width: 60rem; margin-top: clamp(48px, 6vw, 96px); font-size: .8125rem; line-height: 1.5; color: var(--on-ink-mute); }
/* the giant wordmark: solid type (no media in any footer), set to the frame's width, cropped by the frame's foot */
.ft__word { margin: clamp(24px, 3vw, 48px) 0 -.11em -.04em; font-family: var(--f-display); font-weight: 900; letter-spacing: -.055em; line-height: .8; font-size: calc((100vw - 2 * var(--gut)) / 5.6); white-space: nowrap; color: var(--on-ink); user-select: none; }
.ft__word span { display: inline-block; }
@media (max-width: 860px) { .ft__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ft__cols > .ft__col:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .ft__top { flex-direction: column; align-items: flex-start; }
  .ft .btn--bubble { width: min(100%, 320px); }
  .ft__cols { grid-template-columns: minmax(0, 1fr); }
  .ft__word { white-space: normal; font-size: calc((100vw - 2 * var(--gut)) / 3.05); line-height: .82; }
  .ft__word span { display: block; }
}


/* ------------------------------------------------------------ the exit: "Next →" (shell.mjs next(); every page) */
.nxs { padding: 0 var(--gut) clamp(72px, 9vw, 150px); }
.nx { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "more more" "a p"; align-items: end; gap: var(--s-6); margin-top: clamp(24px, 3vw, 48px); padding-top: 24px; border-top: 1px solid var(--fg); }
.yr .nx, .sec .nx { margin-top: clamp(72px, 9vw, 150px); }
.nx__more { grid-area: more; }
.nx__a { grid-area: a; display: grid; gap: 14px; justify-items: start; min-width: 0; text-decoration: none; }
.nx__k { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.nx__k small { font-size: inherit; text-transform: none; letter-spacing: .02em; }
.nx__t { display: inline-flex; align-items: flex-start; gap: .06em; max-width: 100%; font-family: var(--f-display); font-size: min(clamp(4.5rem, 12vw, 13rem), calc((100vw - 2 * var(--gut) - min(clamp(150px, 15vw, 250px), 260px) - var(--s-6)) / var(--nx-w, 4))); font-weight: 900; letter-spacing: -.055em; line-height: .8; }
.nx__l { white-space: nowrap; }
.nx__t .ln { padding: .02em .02em .1em; margin-bottom: -.1em; }
.nx__t i { font-style: normal; font-size: .42em; line-height: 1; margin-top: .12em; transition: transform .6s var(--ease-osmo); }
@media (hover: hover) { .nx__a:hover .nx__t i { transform: translateX(.25em); } .nx__a:hover .nx__k { color: var(--fg); } }
.nx__p { grid-area: p; margin: 0; width: min(clamp(150px, 15vw, 250px), calc(var(--pw) * 1.05px / var(--dpr))); }
.nx__m { position: relative; aspect-ratio: 5 / 8; border-radius: 999px; overflow: hidden; background: var(--raise); }
.nx__m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .nx { gap: var(--s-4); }
  .yr .nx, .sec .nx { margin-top: 72px; }
  .nx__t { font-size: min(22vw, calc((100vw - 2 * var(--gut) - min(30vw, 140px) - var(--s-4)) / var(--nx-w, 4))); }
  .nx__p { width: min(30vw, 140px); }
}
@media (prefers-reduced-motion: reduce) { .nx__t i { transition: none !important; } }

/* ------------------------------------------------------------ reduced motion: no transitions that move things */
@media (prefers-reduced-motion: reduce) {
  html.js [data-rv] .ln > span { transform: none !important; transition: none !important; }
  .nv, .nv__l, .nv__ctab, .nv__ctab i, .btn__arr, .pen polyline, .odo__s, .ft__chv i, .slot__m video { transition: none !important; }
  .nv.is-tucked { transform: none; }
  .hrow { transition: none !important; }
  .odo .odo__s { transform: translateY(calc(var(--d) * -1.1em)); }
}

/* ------------------------------------------------------------ INTERIM: legacy body markup (seo-* classes)
   Keeps a page that has not been redesigned yet readable inside the new shell. Delete this block when all six
   page modules are ported (nothing new may use these classes). */
.seo-sec { padding: var(--s-8) var(--gut); border-top: 1px solid var(--line-paper); }
.seo-h2 { font-family: var(--f-display); font-size: var(--t-d2); font-weight: 900; letter-spacing: -.04em; line-height: .9; margin-bottom: var(--s-6); }
.seo-prose h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: var(--s-6) 0 var(--s-3); }
.seo-prose p, .seo-faq p { max-width: var(--max-read); margin-bottom: 1em; }
.seo-list > li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-5); padding: 16px 0; border-top: 1px solid var(--line-paper); }
.seo-list time { font-size: .8125rem; font-weight: 600; padding-top: .3em; }
.seo-list__t { font-weight: 600; display: block; }
.seo-list__o, .seo-list__m { display: block; font-size: .875rem; color: var(--on-paper-mute); margin-top: 4px; }
.seo-facts > div, .seo-rows > li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s-5); padding: 12px 0; border-top: 1px solid var(--line-paper); }
.seo-facts dt, .seo-rows__k { font-weight: 700; }
.seo-cards, .seo-quotes, .seo-courses, .seo-proof, .seo-jump ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--s-5); }
.seo-q blockquote { font-size: var(--t-lead); line-height: 1.35; }
.seo-q figcaption, .seo-q__tr { font-size: .8125rem; color: var(--on-paper-mute); margin-top: 8px; }
.seo-cards a, .seo-course { display: grid; gap: 6px; padding: var(--s-5); border: 1px solid var(--line-paper); border-radius: 28px; text-decoration: none; }
.seo-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.seo-proof b { display: block; font-family: var(--f-display); font-size: var(--t-d2); font-weight: 900; }
.seo-src { font-size: .8125rem; }
@media (max-width: 640px) { .seo-list > li, .seo-facts > div, .seo-rows > li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.ft__a .nv__l::after { content: none; }
