/* thud-def.css — THUD DEF's own layer, over frap.css and thud.css, on both pages. GRACE UNDER FIRE
   (PLAN.md §0): spectacle where it is earned (the intro, a right answer, the Debrief); everything a
   learner reads or taps quiet and exact, an instrument. Written on the tokens (frap.css: Ember, and
   Dawn under Milk); the only literal colours here are LIGHTS (sparks, glows, strokes), never a ground
   for text, so the contrast gate's promises hold. */

/* ── type ───────────────────────────────────────────────────────────────────────────── */
/* THUD CORE's own cuts of Montserrat and Inter (scripts/build_punk_fonts.py, TYPE.md §2): 400 to 900, with their
   figures (tnum, lnum), small capitals, case forms and Inter's optical sizes. Cappuccino's (fonts/, byte for byte)
   are cut to 400–700 with no figures, so every 800 and 900 asked for here drew at 700 */
@font-face { font-family: 'Montserrat DEF'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts-punk/MontserratPUNK.woff2') format('woff2'); }
@font-face { font-family: 'Inter DEF'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts-punk/InterPUNK.woff2') format('woff2'); }
:root {
  --caps: "Montserrat DEF", "Montserrat", var(--face);
  --ui: "Inter DEF", "Inter", var(--face);
  /* LIGHTS (never a ground for text): molten gold and Ukraine's blue, wider than sRGB where the
     screen is (the M4's and the iPhone's are P3) */
  --gold: #ffc23f;
  --gold-hot: #fff2c9;
  --ember: #ff8a1f;
  --blue: #3f7dff;
  --steel: #8b9ab0;
}
@media (color-gamut: p3) {
  :root {
    --gold: color(display-p3 1 .76 .2);
    --gold-hot: color(display-p3 1 .95 .78);
    --ember: color(display-p3 1 .52 .08);
    --blue: color(display-p3 .18 .46 1);
  }
}
html[data-palette="ember"] body { font-family: var(--ui); }
/* a label in the instrument's voice: tracked capitals, small */
.caps { font-family: var(--caps); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* ── the intro (thud-intro.js) ──────────────────────────────────────────────────────── */
html[data-intro] { background: #000; }
html[data-intro] #view, html[data-intro] #tabbar { opacity: 0; }
html.def-reveal #view { animation: def-reveal 1s cubic-bezier(.16, 1, .3, 1) both; }
/* the bar's light alone comes up (2026-11-09): def-reveal's «transform: none» took the translate that centres it (on a
   phone it stood half off the screen for 1.3 s, then jumped), and its opacity outranked .away (it rose over the
   briefing's Begin); away (the briefing, a sheet), it stays away */
html.def-reveal #tabbar:not(.away) { animation: def-fade 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes def-reveal { from { opacity: 0; filter: blur(8px); transform: scale(1.015); } to { opacity: 1; filter: none; transform: none; } }

.intro { position: fixed; inset: 0; z-index: 9999; background: #000; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.intro__stage { position: absolute; inset: 0; will-change: transform; }
.intro__poster, .intro__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, filter 1.1s ease .12s; }
.intro--plate .intro__plate { opacity: 1; }
.intro--still .intro__poster { opacity: 1; animation: def-push 4.4s linear both; }
.intro--still .intro__plate { opacity: 0; }   /* a plate the phone refused to start is a frozen frame: the still shows through */
/* THE FILM, DRAWN (thud-intro.js): in a browser, a plate the phone refuses is decoded by the page and painted
   here, picture by picture; it comes up as the plate would, and the refused plate is hidden under it */
.intro__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: def-fade 1s ease both; transition: filter 1.1s ease .12s; }
.intro--film .intro__plate { opacity: 0; }
@keyframes def-push { from { transform: scale(1); } to { transform: scale(1.12); } }
.intro__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
@supports (mix-blend-mode: plus-lighter) { .intro__fx { mix-blend-mode: plus-lighter; } }
.intro__flash { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 43%, var(--gold-hot) 0%, rgba(255, 196, 90, .42) 12%, rgba(255, 140, 40, .08) 30%, transparent 46%); }
.intro--hit .intro__flash { animation: def-flash .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes def-flash { 0% { opacity: .75; } 100% { opacity: 0; } }
/* the swell (run 6): the burst's light gathers at its point for 0.9 s before the strike, then the flash takes over. It beats
   twice as it gathers (thud… thud… THUD), and the hush dims the world around it (2026-10-22, the owner: «as beautiful and
   perfect as possible»): the eye is drawn to where the strike will come before it comes */
.intro__swell { position: absolute; inset: 0; pointer-events: none; opacity: 0; transform-origin: var(--sx, 50%) var(--sy, 43%);
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 43%), rgba(255, 246, 228, .95) 0%, rgba(255, 236, 200, .6) 2.5%, rgba(var(--swell, 255, 190, 90), .4) 8%, rgba(var(--swell, 255, 190, 90), .12) 18%, transparent 32%);
  mix-blend-mode: screen; }
.intro--swell .intro__swell { animation: def-swell .9s cubic-bezier(.55, 0, .85, .35) both; }
.intro--hit .intro__swell { animation: none; opacity: 0; transition: opacity .18s ease; }
@keyframes def-swell { 0% { opacity: 0; transform: scale(.55); } 28% { opacity: .5; transform: scale(.8); } 42% { opacity: .3; transform: scale(.76); }
  74% { opacity: .85; transform: scale(.98); } 84% { opacity: .62; transform: scale(.95); } 100% { opacity: 1; transform: scale(1.1); } }
.intro__hush { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 43%), transparent 0%, transparent 9%, rgba(3, 4, 10, .34) 34%, rgba(3, 4, 10, .58) 78%); }
.intro--swell .intro__hush { animation: def-hush .9s cubic-bezier(.4, 0, .6, 1) both; }
.intro--hit .intro__hush { animation: none; opacity: 0; transition: opacity .12s ease; }
@keyframes def-hush { 0% { opacity: 0; } 100% { opacity: 1; } }
.intro--hit .intro__stage { animation: def-shake .55s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes def-shake {
  0% { transform: translate(0, 0) scale(1.035); } 10% { transform: translate(-5px, 3px) scale(1.03); }
  22% { transform: translate(4px, -3px) scale(1.022); } 38% { transform: translate(-2px, 2px) scale(1.012); }
  58% { transform: translate(1px, -1px) scale(1.005); } 100% { transform: none; } }
.intro--hit .intro__plate, .intro--hit .intro__poster, .intro--hit .intro__film { filter: brightness(.2) saturate(1.1) blur(7px); }

/* THE STORK COMES HOME (run 7, 2026-10-23): a white stork crosses the scene's sky in the first seconds, before the arms are
   forged, as storks come home to Ukraine every spring (art/stork/flight.webp, cut from Firefly Image 4); or the firebird in
   the skin's own craft (art/<skin>/firebird/flight.webp, 2026-11-11), flying right as the stork does; gone before the
   strike; never in the calm intro */
.intro__stork { position: absolute; left: 0; top: calc(env(safe-area-inset-top, 0px) + 13vh); width: min(26vmin, 190px); height: auto;
  z-index: 1; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)) brightness(.92); will-change: transform; }
.intro--plate .intro__stork { animation: stork-home 3.7s cubic-bezier(.3, .1, .6, .95) .15s both; }
@keyframes stork-home {
  0% { opacity: 0; transform: translate(-30vw, 3vh) scale(.82); }
  12% { opacity: 1; }
  50% { transform: translate(42vw, -1.5vh) scale(.9); }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translate(112vw, -4vh) scale(.96); } }
.intro--calm .intro__stork { display: none; }
@media (prefers-reduced-motion: reduce) { .intro__stork { display: none; } }

/* the name and the arms: the sparks gather into them (thud-intro.js targets(): «THUD» at --fs centred at --ty, the
   Tryzub --ah high standing .71 --fs above it; run 7: the arms of Ukraine over the name, the name lower to make room) */
.intro { --fs: min(20vw, 17vh); --ty: 53%; --ah: min(27vh, 40vw); }
.intro__mark { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.intro__mark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 72% 56% at 50% 44%, rgba(0, 0, 0, .58), transparent 72%); }
.intro__arms { position: absolute; left: 50%; top: calc(var(--ty) - .71 * var(--fs) - var(--ah)); height: var(--ah); aspect-ratio: 120 / 200;
  transform: translateX(-50%); filter: drop-shadow(0 0 22px rgba(255, 180, 70, .3)); }
.intro__arms > i { position: absolute; inset: 0;
  -webkit-mask: url("art/trizub/tryzub-alone.svg") center / 100% 100% no-repeat; mask: url("art/trizub/tryzub-alone.svg") center / 100% 100% no-repeat;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe39a 30%, #f2b33f 55%, #c9893a 72%, #9aa8bd 100%); background-size: 100% 260%; background-position: 0 0; }
.intro--mark .intro__arms > i { animation: def-cool 1.5s cubic-bezier(.2, .7, .3, 1) both; }
.intro__thud { position: absolute; left: 50%; top: var(--ty); transform: translate(-50%, -50%);
  font-family: var(--caps); font-weight: 900; font-size: min(20vw, 17vh); line-height: 1; letter-spacing: .06em; padding-left: .06em; white-space: nowrap;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe39a 30%, #f2b33f 55%, #c9893a 72%, #9aa8bd 100%); background-size: 100% 260%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro__rule { position: absolute; left: 50%; top: calc(var(--ty) + min(10.5vw, 9vh)); width: 56px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.intro__def { position: absolute; left: 50%; top: calc(var(--ty) + min(10.5vw, 9vh) + 14px); transform: translateX(-50%);
  font-family: var(--caps); font-weight: 600; font-size: clamp(11px, .9vw + 8px, 18px); letter-spacing: .62em; padding-left: .62em; text-transform: uppercase; white-space: nowrap; color: rgba(232, 238, 246, .88); }
.intro--mark .intro__mark { opacity: 1; transition: opacity .3s ease; }
.intro--mark .intro__thud { animation: def-cool 1.5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes def-cool {
  from { background-position: 0 0; filter: brightness(1.5) drop-shadow(0 0 28px rgba(255, 214, 140, .85)); }
  to { background-position: 0 70%; filter: brightness(1) drop-shadow(0 0 16px rgba(255, 180, 70, .28)); } }
.intro__line { position: absolute; left: 0; right: 0; bottom: calc(13vh + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center;
  font-family: var(--ui); font-weight: 500; font-size: 15px; letter-spacing: .01em; color: rgba(232, 238, 246, 0); }
.intro--mark .intro__line { color: rgba(232, 238, 246, .74); transition: color .7s ease .3s; }
.intro__skip { position: absolute; right: calc(16px + env(safe-area-inset-right, 0px)); top: calc(14px + env(safe-area-inset-top, 0px));
  font-family: var(--caps); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px 10px 16px;
  color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; }
.intro__skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.intro--hit .intro__skip { opacity: 0; transition: opacity .3s ease; }
.intro--out { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
/* the name leaves first (HANDOFF, 2026-10-21: THUD stood over the home's title for half a second as both faded) */
.intro--out .intro__mark, .intro--out .intro__line { opacity: 0; transition: opacity .25s ease; }
/* THE CRAFT (thud-intro.js, punk-craft.js; 2026-11-15): a world's own folk ornament, made by hand in a band under where
   the name will stand, a soft dark behind it so its lines hold over any scene; its name and what it is made of under it
   while it is made, gone at the THUD (the mark's own lines stand there then). It takes no tap */
.intro__craft { position: absolute; left: 50%; top: calc(var(--ty) + min(10.5vw, 9vh) + 14px + clamp(11px, .9vw + 8px, 18px) + 3.4vh); width: min(78vw, 46vh, 460px);
  transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.intro__craft::before { content: ''; position: absolute; z-index: -1; inset: -38% -14% -30%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(2, 4, 10, .72), rgba(2, 4, 10, .46) 55%, transparent 100%); }
.intro__craft canvas { display: block; width: 100%; aspect-ratio: 5 / 1; }
.intro__craftcap { display: block; margin-top: 9px; text-align: center; font-family: var(--ui); font-weight: 500; font-size: 12.5px; line-height: 1.3; letter-spacing: .01em;
  color: rgba(232, 238, 246, .84); text-shadow: 0 1px 8px rgba(0, 0, 0, .85); transition: opacity .25s ease; }
.intro__craftcap b { margin-right: .7em; font-family: var(--caps); font-weight: 700; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 228, 176, .96); }
.intro--craft .intro__craft { opacity: 1; }
.intro--hit .intro__craftcap { opacity: 0; }
/* gone, and then hidden: a band faded out is not drawn under the home as it is revealed (K1, the live run watched: the
   turning spider, painted on after the fade, cost Raypunk three frames of over 50 ms a run) */
.intro--out .intro__craft { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.intro--calm .intro__craft { transition: opacity .8s ease, visibility 0s linear .8s; }
.intro--calm .intro__craftcap { opacity: 0; }
/* the same ornament whole, on Settings' sheet (frap-screens.js craftSheet()): on its own dark ground in every light, as
   it stands in the opening; no word is set on it */
.craft-pv { margin: 6px 0 16px; padding: 16px 12px; border-radius: 16px; background: #0b0e16; }
.craft-pv canvas { display: block; width: 100%; aspect-ratio: 5 / 1; }
.craft-pv--cup canvas { width: 136px; aspect-ratio: 1 / 1; margin: 0 auto; }
/* the calm intro (prefers-reduced-motion; thud-intro.js CALM): the still, the name, a fade. Nothing moves. */
.intro--calm .intro__plate, .intro--calm .intro__fx, .intro--calm .intro__flash, .intro--calm .intro__swell, .intro--calm .intro__hush { display: none; }
.intro--calm .intro__poster { transition: opacity .9s ease; }
.intro--calm.intro--plate .intro__poster { opacity: 1; filter: brightness(.5) saturate(1.05); }
.intro--calm .intro__mark { transition: opacity .8s ease; }
.intro--calm.intro--mark .intro__thud { animation: none; background-position: 0 70%; filter: drop-shadow(0 0 16px rgba(255, 180, 70, .28)); }
.intro--calm.intro--mark .intro__arms > i { animation: none; background-position: 0 70%; }
.intro--calm.intro--mark .intro__line { transition: color .8s ease .2s; }
.intro--calm.intro--out { transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) {
  html.def-reveal #view, html.def-reveal #tabbar:not(.away) { animation: def-fade .6s ease both; }
}
@keyframes def-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── the headings: Montserrat, heavy and plain (THUD's Literata was a storybook's) ─────── */
html[data-palette="ember"] { --display: "Montserrat DEF", "Montserrat", var(--face); }
html[data-palette="ember"] .t-display { font-weight: 800; letter-spacing: -.02em; }
html[data-palette="ember"] .t-large, html[data-palette="ember"] .t-title, html[data-palette="ember"] .t-head,
html[data-palette="ember"] .phead h1, html[data-palette="ember"] .sheet .t-title { font-weight: 700; letter-spacing: -.012em; }

/* ── the Briefing (frap.js welcome) ──────────────────────────────────────────────────── */
.brief .fl__world img.brief__eye { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.08);
  transition: filter 1.2s ease, transform 1.6s cubic-bezier(.16, 1, .3, 1); animation: def-drift 22s ease-in-out infinite alternate; }
@keyframes def-drift { from { translate: 0 0; } to { translate: -1.5% 1%; } }
.brief:not([data-step="1"]) .fl__world img.brief__eye { filter: blur(22px) brightness(.4) saturate(1.2); transform: scale(1.25); }
/* THE ARMS (2026-10-22, the owner: «lets focus on ukraine»; the ram's emblem stood here): the skin's own Tryzub on its
   shield (cut_icon.py, from punk-trizub.js's render), standing over the words in a glow of the skin's light, sized so it
   never reaches them whatever the screen's shape; on the steps after the first, a blurred light behind them */
.brief { --arms-glow: 255, 176, 70; }
html[data-palette="steam"] .brief { --arms-glow: 255, 186, 110; }
html[data-palette="cyber"] .brief { --arms-glow: 60, 220, 255; }
html[data-palette="ray"] .brief { --arms-glow: 80, 220, 200; }
html[data-palette="west"] .brief { --arms-glow: 255, 160, 90; }
html[data-palette="silk"] .brief { --arms-glow: 255, 205, 120; }
.brief .fl__world:has(> .brief__arms) { background: radial-gradient(ellipse 62% 42% at 50% 27%, rgba(var(--arms-glow), .2), transparent 72%), var(--ground); }
.brief .fl__world img.brief__eye.brief__arms { position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(var(--sat) + 5vh);
  width: auto; height: clamp(190px, min(50vh, 100vh - 480px), 560px); max-width: 86vw; object-fit: contain; transform: none;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, .6)); animation: def-arms 8s ease-in-out infinite alternate; }
@media (min-aspect-ratio: 4/3) { .brief .fl__world img.brief__eye.brief__arms { height: clamp(190px, min(52vh, 100vh - 400px), 600px); } }
@keyframes def-arms { from { scale: 1; } to { scale: 1.022; } }
.brief:not([data-step="1"]) .fl__world img.brief__eye.brief__arms { filter: blur(28px) brightness(.5) saturate(1.25); transform: scale(1.7); }
/* a gleam crosses the gold now and then, masked to the arms (the mask set where the picture stands: the same top and height) */
.brief__gleam { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: var(--arms) no-repeat 50% calc(var(--sat) + 5vh) / auto clamp(190px, min(50vh, 100vh - 480px), 560px);
  mask: var(--arms) no-repeat 50% calc(var(--sat) + 5vh) / auto clamp(190px, min(50vh, 100vh - 480px), 560px);
  background: linear-gradient(100deg, transparent 46.5%, rgba(255, 248, 228, .62) 50%, transparent 53.5%) 120% 0 / 300% 100% no-repeat;
  mix-blend-mode: screen; }
@media (min-aspect-ratio: 4/3) { .brief__gleam {
  -webkit-mask-size: auto clamp(190px, min(52vh, 100vh - 400px), 600px); mask-size: auto clamp(190px, min(52vh, 100vh - 400px), 600px); } }
.brief[data-step="1"] .brief__gleam { opacity: 1; animation: arms-gleam 9s ease-in-out 2.4s infinite; }
@keyframes arms-gleam { 0%, 72% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
html[data-low="on"] .brief__gleam, html[data-watch="on"] .brief__gleam { display: none; }
@media (prefers-reduced-motion: reduce) { .brief__gleam { display: none; } }
.fl__joy.brief__arms { width: min(44vw, 210px); -webkit-mask: none; mask: none; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55)); }
.brief .fl__world::after { background: linear-gradient(180deg, rgba(var(--ground-rgb), .2) 0%, rgba(var(--ground-rgb), .05) 30%, rgba(var(--ground-rgb), .78) 72%, var(--ground) 100%); }
.brief__brand { color: var(--ink-2); margin: 0 0 12px; font-size: 12px; letter-spacing: .32em; }
html:not([data-look="milk"]) .brief__brand { color: var(--rwd-2); }
.brief__brand i { font-style: normal; color: var(--ink-3); margin: 0 .25em; }
.brief__title { font-size: clamp(38px, 11vw, 60px); line-height: 1; }
.brief__segs { display: flex; gap: 6px; margin: 6px 0 22px; }
.brief__segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(var(--tint), .16); }
.brief__segs i.on { background: var(--acc); }
.brief__eyebrow { color: var(--acc-ink); margin: 0 0 8px; }
.fl[data-step="5"] .fl__step[data-s="5"] { display: flex; animation: fl-in .6s var(--ease-out) both; }
.brief .fl__ready h2 { font-size: clamp(40px, 12vw, 64px); }
.brief__tall { width: min(60vw, 290px); }
.who[aria-checked] .topic__pick { margin-left: auto; opacity: 0; color: var(--acc-ink); transition: opacity .2s ease; }
.who[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--acc-3), var(--cast-answer); }
.who[aria-checked="true"] .topic__pick { opacity: 1; }

/* ── the home (frap.js learn) ────────────────────────────────────────────────────────── */
#view:has(> .top--def) { position: relative; }
.top--def { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--sat) + 10px); margin: 0;
  padding: 0 calc(var(--gutter) + var(--sar)) 0 calc(var(--gutter) + var(--sal)); }
.def-brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.def-brand .art { --s: 30px; }
/* by day the skies are pale: the wordmark keeps a darker halo so it holds over them (run 7, seen over Steampunk's, Weird
   West's and Silkpunk's morning skies) */
html[data-look="milk"] .def-brand { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 10px rgba(0, 0, 0, .45), 0 0 22px rgba(0, 0, 0, .3); }
.def-brand b { font-family: var(--caps); font-weight: 900; font-size: 19px; letter-spacing: .1em; }
.def-brand i { font-style: normal; font-family: var(--caps); font-weight: 800; font-size: 9.5px; letter-spacing: .22em; padding: 4px 5px 4px 7px; border-radius: 6px;
  color: var(--on-rwd); background: linear-gradient(135deg, var(--rwd-1), var(--rwd-3)); text-shadow: none; }
.side__brand i { font-style: normal; color: var(--rwd-3); font-size: .7em; letter-spacing: .18em; margin-left: .2em; }

.def-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: calc(-1 * (var(--sat) + 14px));
  height: min(66svh, 600px); min-height: 460px; }
.def-hero__art { position: absolute; inset: 0; z-index: -3; }
.def-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: def-breathe 16s ease-in-out infinite alternate; }
@keyframes def-breathe { from { transform: scale(1.02); } to { transform: scale(1.08); } }
/* the hero alive (thud.js live()): the same picture, moving; it fades in over the still once it draws */
.def-hero__live { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease; animation: def-breathe 16s ease-in-out infinite alternate; }
.def-hero__live.on { opacity: 1; }
.def-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), .62) 0%, transparent 20%, transparent 42%, rgba(var(--ground-rgb), .7) 72%, var(--ground) 100%); }
.def-hero__go { display: block; width: 100%; padding: 0 calc(var(--gutter) + var(--sar)) 22px calc(var(--gutter) + var(--sal)); color: var(--ink); text-decoration: none; }
.def-hero__eyebrow { display: block; margin-bottom: 9px; color: var(--ink-2); }
html:not([data-look="milk"]) .def-hero__eyebrow { color: var(--rwd-2); }
.def-hero__title { display: block; font-family: var(--caps); font-weight: 800; font-size: clamp(30px, 8.8vw, 46px); line-height: 1.03; letter-spacing: -.018em; text-wrap: balance; }
.def-hero__meta { display: block; margin-top: 9px; color: var(--ink-2); font-size: 15px; }
.def-hero__btn { margin-top: 18px; width: 100%; }
/* THE COURSE (frap-course.js, COURSE.md): today's hundred as a thin bar over the button; under the hero the whole course
   as one line, its count, and the other way on (Review, or the new words) */
.def-hero__day { display: block; height: 4px; margin-top: 14px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
html[data-look="milk"] .def-hero__day { background: rgba(0, 0, 0, .14); }
.def-hero__day::after { content: ""; display: block; height: 100%; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--ember)); }
.def-hero--course .def-hero__btn { margin-top: 14px; }
.def-course { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; min-height: 36px; }
.def-course__all { flex: 1 1 auto; height: 4px; border-radius: 2px; background: var(--line, rgba(128, 128, 128, .3)); overflow: hidden; }
.def-course__all i { display: block; height: 100%; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--acc-2, currentColor); }
.def-course__n { flex: none; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.def-course .chip { flex: none; text-decoration: none; }
.def-ease { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r-row); display: grid; gap: 12px; }
.def-ease__t { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.def-ease__t b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 15px; }
.def-ease__b { display: flex; flex-wrap: wrap; gap: 8px; }
/* on a desk the question and its two answers stand side by side: the line ran the page's whole width over two small buttons */
@media (min-width: 720px) { .def-ease { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px 16px 14px 18px; } .def-ease__t { max-width: 68ch; } .def-ease__b { flex-wrap: nowrap; } }
/* the course's three months: the road, the one in hand marked, another's stops a tap away */
.def-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 26px 0 22px; }
.def-month { display: grid; align-content: start; gap: 3px; min-height: 86px; padding: 5px 5px 12px; border: 0; border-radius: 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.def-month > :not(.def-month__art) { margin: 0 7px; }
/* the month's own picture, a window at the tile's top (scripts/cut_months.py); a month not yet open a little dimmer */
.def-month__art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 11px; margin-bottom: 6px; background: var(--glass-fill, rgba(127, 127, 127, .12)); }
.def-month[data-st="next"]:not([aria-pressed="true"]) .def-month__art { opacity: .66; }
.def-month__k { display: flex; align-items: center; gap: 4px; font-size: 10.5px; letter-spacing: .2em; color: var(--ink-2); }
.def-month__k .i { width: 12px; height: 12px; }
.def-month b { font-size: 15px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.def-month__n { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.def-month[data-st="now"] .def-month__n { color: var(--acc-ink); font-weight: 600; }
.def-month[data-st="next"]:not([aria-pressed="true"]) b { color: var(--ink-2); }
.def-month[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--acc-ink); }
.def-month:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
@media (min-width: 720px) { .def-months { gap: 12px; } .def-month { padding: 6px 6px 14px; } .def-month > :not(.def-month__art) { margin: 0 10px; } .def-month b { font-size: 17px; } }
/* wide: the picture beside the words, so three windows do not outweigh the road under them */
@media (min-width: 1000px) { .def-month { grid-template-columns: minmax(0, 44%) 1fr; column-gap: 14px; align-content: center; padding: 6px; } .def-month__art { grid-row: 1 / span 3; margin: 0; } .def-month > :not(.def-month__art) { grid-column: 2; margin: 0; } }
.def-more { margin: 0 0 30px; }
.def-more > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 18px; border-radius: 20px; cursor: pointer; list-style: none; color: var(--ink); }
.def-more > summary::-webkit-details-marker { display: none; }
.def-more__main { flex: 1 1 auto; display: grid; gap: 2px; }
.def-more__main b { font-weight: 700; font-size: 17px; }
.def-more__main span { color: var(--ink-2); font-size: 14px; }
.def-more > summary .i--chev { flex: none; transition: transform .2s ease; }
.def-more[open] > summary .i--chev { transform: rotate(90deg); }
.def-more__body { padding-top: 26px; }

/* the level check-in (LEVELS.md box 12): one quiet row under the hero, an offer and two buttons */
.def-check { margin: 14px 0 0; padding: 14px 16px 12px; border-radius: 18px; --r: 18px; display: grid; gap: 8px; }
.def-check__say { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.def-check__say b { color: var(--ink); font-weight: 650; }
.def-check__go { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
@media (min-width: 720px) { .def-check { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; } }
.def-ready { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 30px; }
.def-cell { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 13px 14px 12px; border-radius: 18px; --r: 18px; color: var(--ink); text-decoration: none; }
.def-cell .caps { color: var(--ink-3); font-size: 10px; letter-spacing: .22em; }
.def-cell b { font-family: var(--caps); font-weight: 800; font-size: 30px; line-height: 1.12; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.def-cell b small { font-size: 14px; font-weight: 700; color: var(--ink-3); margin-left: 1px; }
a.def-cell b { color: var(--acc-ink); }
.def-cell__sub { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.def-rail { margin: 0 0 30px; }
.def-rail__head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; margin-bottom: 13px; }
.def-rail__head h2 { margin: 0; color: var(--ink); font-size: 12px; letter-spacing: .24em; }
/* «All» is a word wide: its padding makes the finger's target (44 px), its margin keeps the row where it was */
.def-rail__all { font-size: 14px; font-weight: 600; color: var(--acc-ink); text-decoration: none; padding: 12px; margin: -12px; }
.def-rail__line { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
/* the course's month says why these words now: the order of the stop in hand, and its reason (frap.js, «Lines + Figure») */
.def-rail__why { grid-column: 1 / -1; margin: 3px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.def-rail__why .caps { margin-right: 7px; color: var(--acc-ink); font-size: 10px; letter-spacing: .22em; }
.def-rail__list { display: flex; gap: 12px; margin: 0 calc(-1 * (var(--gutter) + var(--sar))) 0 calc(-1 * (var(--gutter) + var(--sal)));
  padding: 2px calc(var(--gutter) + var(--sar)) 10px calc(var(--gutter) + var(--sal)); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: calc(var(--gutter) + var(--sal)); scrollbar-width: none; }
.def-rail__list::-webkit-scrollbar { display: none; }
.def-rail__list > li { flex: 0 0 min(44vw, 212px); scroll-snap-align: start; }

.def-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none;
  background: var(--frost-off); box-shadow: var(--cast); transform: translateZ(0); }
.def-card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.def-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 5, 10, .1) 30%, rgba(3, 5, 10, .86) 100%); }
.def-card::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 214, 140, .55), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .03) 62%, rgba(90, 140, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.def-card__body { position: absolute; left: 14px; right: 14px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.def-card__n { color: var(--gold); font-size: 10px; letter-spacing: .26em; }
.def-card__title { font-family: var(--caps); font-weight: 700; font-size: 16px; line-height: 1.16; letter-spacing: -.005em; text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.def-card__st { font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.def-card.is-done .def-card__st { color: var(--gold); }
.def-card__bar { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.def-card__bar::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--ember)); }
@media (hover: hover) { .def-card:hover .def-card__art { transform: scale(1.06); } }
.def-card:active { transform: scale(.985); transition: transform .12s ease; }

.def-wide { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; min-height: 160px; padding: 20px 18px;
  margin: -6px 0 30px; border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; box-shadow: var(--cast); }
.def-wide__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.def-wide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 5, 10, .9) 0%, rgba(3, 5, 10, .55) 55%, rgba(3, 5, 10, .2) 100%); }
.def-wide::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 214, 140, .5), rgba(255, 255, 255, .05) 40%, rgba(90, 140, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.def-wide__body { display: flex; flex-direction: column; gap: 5px; }
.def-wide__body .caps { color: var(--gold); font-size: 10px; letter-spacing: .26em; }
.def-wide__body b { font-family: var(--caps); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.def-wide__body span:last-child { font-size: 13.5px; line-height: 1.38; color: rgba(255, 255, 255, .8); }
.def-wide .i--chev { color: rgba(255, 255, 255, .7); }

@media (min-width: 600px) { .def-rail__list > li { flex-basis: 200px; } }

/* THE WAYS, SEEN (frap.js waysRail(), docs/teach/S1.md, 2026-11-17): Words' strategies in a rail under Today, each by
   the figure its own page draws (.ofig, its inks and its motion rule unchanged), its order over its name, the order's
   line, where the learner stands. On a phone one card and the next one's edge, so the rail says there is more; on a
   desk a grid, nothing to scroll. The learner's own is first and ringed. */
.def-ways__list > li { flex: 0 0 min(72vw, 268px); }
.waycard { --r: 20px; display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px 14px; border-radius: 20px; color: var(--ink); text-decoration: none; }
.waycard__fig { display: block; margin: 0 0 8px; }
.waycard__fig .ofig { max-width: none; margin: 0; }
.waycard__by { color: var(--acc-ink); font-size: 10px; letter-spacing: .22em; }
.waycard__name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.waycard__line { color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.waycard__st { margin-top: auto; padding-top: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.waycard.is-here { box-shadow: inset 0 0 0 1.5px var(--acc-ink); }
.waycard.is-here .waycard__st { color: var(--acc-ink); }
@media (min-width: 600px) { .def-ways__list > li { flex-basis: 268px; } }

/* a desk: the hero is a billboard in the column, the rails wider */
@media (min-width: 960px) {
  .def-hero { width: auto; margin: 0 0 4px; border-radius: 30px; height: min(60vh, 540px); min-height: 420px; box-shadow: var(--cast); }
  .def-hero__go { padding: 0 40px 36px; max-width: 620px; }
  .def-hero__btn { width: auto; min-width: 220px; }
  .def-hero__art img { object-position: 50% 38%; }
  .def-rail__list { margin: 0; padding: 2px 0 10px; scroll-padding-left: 0; }
  .def-rail__list > li { flex-basis: calc((100% - 5 * 14px) / 6); min-width: 150px; }
  .def-ways__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; }
  .def-ways__list > li { min-width: 0; }
  .def-wide { min-height: 190px; padding: 28px 30px; }
  .def-wide__body b { font-size: 26px; }
}
@media (min-width: 1100px) { .def-hero { margin-top: 0; } }
/* still, under Low power and Field mode */
html[data-low="on"] .def-hero__art img, html[data-low="on"] .brief__eye { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .brief .fl__world img.brief__eye { animation: none; } }

/* ── a strategy's page: its cover as a banner (frap.js strategy) ─────────────────────── */
html[data-palette="ember"] .phead { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; gap: 0;
  min-height: 216px; padding: 18px 18px 16px; margin: 6px 0 16px; border-radius: 24px; box-shadow: var(--cast); }
html[data-palette="ember"] .phead .art { position: absolute; inset: 0; z-index: -2; --s: 100%; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
html[data-palette="ember"] .phead .art img { object-position: 50% 45%; }
html[data-palette="ember"] .phead .art::before, html[data-palette="ember"] .phead .art::after { display: none; }
html[data-palette="ember"] .phead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 5, 10, .08) 22%, rgba(3, 5, 10, .86) 100%); }
html[data-palette="ember"] .phead::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 214, 140, .5), rgba(255, 255, 255, .05) 40%, rgba(90, 140, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
html[data-palette="ember"] .phead h1 { color: #fff; font-family: var(--caps); font-weight: 800; font-size: clamp(26px, 7.4vw, 36px); line-height: 1.05; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
html[data-palette="ember"] .phead__prog { color: rgba(255, 255, 255, .82); }
.row__art { flex: none; width: 40px; height: 52px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.stop__art { flex: none; width: 54px; height: 70px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }

/* ── a section's sheet: its cover (frap.js sectionBody) ─────────────────────────────── */
.ss__cover { position: relative; height: 156px; margin: 2px 0 14px; border-radius: 20px; overflow: hidden; box-shadow: var(--cast-answer); }
.ss__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ss__cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); background: linear-gradient(180deg, transparent 55%, rgba(3, 5, 10, .45)); }
.strat__panel .ss__cover { height: 136px; }

/* ── the drill: sparks, not petals (the right answer's molten fill sweeps in: frap-drill.css) ── */
[data-ram="ember"] .petal { left: -1.5px; top: -7px; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-hot), var(--gold) 45%, var(--ember)) !important; box-shadow: 0 0 8px 1px rgba(255, 170, 60, .6); }

/* ── the Debrief (the round's results, frap-drill.js; the list of questions kept) ────── */
/* its word heads the eyebrow, so the two stand on one plate over a scene (punk-wall.css «THE DEBRIEF ON THE SCENE»,
   2026-11-17); a top with no eyebrow wears it itself, as every top did */
.fr-res__top:not(:has(> .eyebrow))::before, .fr-res__top > .eyebrow::before { content: "Debrief"; display: block; margin: 0 0 8px; font-family: var(--caps); font-weight: 700; font-size: 11px; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--ink-2); }
html:not([data-look="milk"]) .fr-res__top:not(:has(> .eyebrow))::before, html:not([data-look="milk"]) .fr-res__top > .eyebrow::before { color: var(--rwd-2); }
.fr-arc .ring { position: relative; }
.fr-arc .ring::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(var(--tint), .26) 0 .9deg, transparent .9deg 7.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.def-strong .fr-arc .ring__bar { stroke: url(#rwd-stroke); filter: drop-shadow(0 0 10px var(--rwd-glow)); }
html[data-palette="ember"] .fr-arc__n { font-family: var(--caps); font-weight: 800; }
/* the Debrief's score in its rim (THUD CORE, PUNK.md call 41): blued steel, knurled and ticked, between two rings of
   brass, a 1930s watch's bezel (art/ember/bezel.webp, scripts/cut_rims.py), its opening 180 px of 224, clear of the ticks */
html:is([data-palette="ember"], :not([data-palette])) .fr-arc, html:is([data-palette="ember"], :not([data-palette])) .fr-res .fr-arc { margin: 38px 0 36px; }
html:is([data-palette="ember"], :not([data-palette])) .fr-arc .ring::after { content: ""; position: absolute; inset: -36px; pointer-events: none;
  background: url("art/ember/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
html[data-look="milk"]:is([data-palette="ember"], :not([data-palette])) .fr-arc .ring::after { filter: drop-shadow(0 6px 10px rgba(30, 44, 56, .3)); }
html[data-palette="ember"] .fr-res .rs-head { font-family: var(--caps) !important; font-weight: 800 !important; }
html[data-palette="ember"] .fr-tiles b, html[data-palette="ember"] .fr-tile b { font-family: var(--caps); font-weight: 800; }

/* the peeking bird, where the card sits high (thud.js place): smaller, in the corner, clear of the topic’s line */
html[data-palette="cyber"] .intro__swell { --swell: 69, 227, 255; }
html[data-palette="ray"] .intro__swell { --swell: 82, 220, 198; }

/* THE ORDER, SAID AND DRAWN (2026-11-15; the owner, from a menu of six ways: «Lines + Figure»). On a strategy's page,
   a glass under its promise: the order's name, its figure (frap-figure.js), its three lines (data/paths.js `lines`) and
   its paragraph one tap further (frap.js strategy()). Folded, once a section is under way, it is one line: the order and
   its reason. Every ink here is one the contrast contract prices on glass (frap.css); the figure is whole standing
   still, and moves only where motion is welcome: never under reduced motion, Low power or Field mode (<html data-low>),
   nor in a calm skin (<html data-calm>). verify_orders.py holds all of it. */
.order { --r: 22px; margin: 4px 0 8px; }
.order > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; }
.order > summary::-webkit-details-marker { display: none; }
.order__by { flex: none; color: var(--acc-ink); font-size: 11px; letter-spacing: .22em; }
.order__peek { flex: 1 1 auto; min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order[open] .order__peek { display: none; }
.order > summary .i--chev { flex: none; margin-left: auto; transition: transform .2s ease; }
.order[open] > summary .i--chev { transform: rotate(90deg); }
.order__body { padding: 0 16px 6px; }
.order__lines { margin: 4px 0 0; }
.order__lines > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.order__lines dt { color: var(--ink-3); font-size: 9.5px; letter-spacing: .18em; line-height: 1.35; padding-top: 4.5px; }   /* a label that wraps (THE / ORDER in a wide caps face) stays one label */
.order__lines dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.42; }
.order__more { border-top: 1px solid var(--line); }
.order__more > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--acc-ink); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.order__more > summary::-webkit-details-marker { display: none; }
.order__more > summary::after { content: "\203A"; transition: transform .2s ease; }
.order__more[open] > summary::after { transform: rotate(90deg); }
.order__more p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
/* Words' other turns, set (2026-11-15): the drill drawn on a section's sheet; How THUD works' four turns on a strip a
   thumb turns; Review's «When a word comes back», the learner's words under each of its days */
.ss__fig { max-width: 272px; margin: 0 auto 6px; }
.ss__fig .ofig { margin: 0 auto; }
.how__turns { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 10px; margin: 12px 0 0; padding: 2px 0 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; list-style: none; scrollbar-width: thin; }
.how__turns:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; border-radius: 18px; }
.how__turn { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-radius: 18px; }
.how__k { margin: 0; font-size: 10px; letter-spacing: .16em; color: var(--ink-3); }
.how__k .a { margin-right: 4px; color: var(--acc-ink); }
.how__turn .ofig { margin: 4px auto 2px; }
.how__say { margin: 0; font-size: 13.5px; line-height: 1.42; color: var(--ink-2); }
.how__say b { color: var(--ink); font-weight: 650; }
.rv-why { margin-top: 12px; }
.ladder__k { margin: 4px 0 6px; font-size: 9.5px; letter-spacing: .18em; color: var(--ink-3); }

/* the figure: the page's own inks, so every skin colours it; text never dimmed below its ink */
.ofig { display: block; width: 100%; max-width: 320px; height: auto; margin: 2px auto 6px; overflow: visible; color: var(--ink-2); font-family: inherit; }
.ofig text { fill: var(--ink-2); }
.ofig .t { font-size: 9px; font-weight: 500; fill: var(--ink-3); }
.ofig .u { font-size: 10.5px; font-weight: 650; fill: var(--ink); }
.ofig .u.big { font-size: 13.5px; }
.ofig .e { font-size: 8.5px; font-weight: 450; fill: var(--ink-3); }
.ofig .k { font-family: var(--caps); font-size: 7.5px; font-weight: 700; letter-spacing: .14em; fill: var(--ink-3); }
.ofig .pre { fill: var(--ink-3); }
.ofig .a, .ofig .k.a { fill: var(--acc-ink); }
.ofig .ln { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .55; }
.ofig .ln.lt { stroke-width: 1; stroke-opacity: .28; }
.ofig .m { fill: currentColor; fill-opacity: .3; }
.ofig .m.on, .ofig .m.top { fill: var(--acc-ink); fill-opacity: 1; }
.ofig .pr { fill: none; stroke: var(--acc-ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 67; }
.ofig .st { fill: transparent; stroke: currentColor; stroke-width: 1.4; }
.ofig .st.on { fill: var(--acc-ink); stroke: var(--acc-ink); }
.ofig .pin { fill: transparent; stroke: currentColor; stroke-opacity: .7; stroke-width: 1.3; }
.ofig .gl { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ofig .here { stroke: var(--acc-ink); stroke-opacity: 1; }
.ofig .pulse { fill: none; stroke: var(--acc-ink); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ofig .bub.on path { stroke: var(--acc-ink); stroke-opacity: 1; }
.ofig .flow { fill: none; stroke: var(--acc-ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 11; }
.ofig .reg { fill: currentColor; fill-opacity: .04; stroke: currentColor; stroke-opacity: .35; stroke-width: 1.1; }
.ofig .reg.on { stroke: var(--acc-ink); stroke-opacity: 1; }
.ofig .sp rect { fill: currentColor; fill-opacity: .08; stroke: currentColor; stroke-opacity: .55; stroke-width: 1.1; }
.ofig .sp.on { transform: translateY(-8px); }
.ofig .sp.on rect { stroke: var(--acc-ink); stroke-opacity: 1; }
.ofig .tick { fill: var(--acc-ink); }
/* Words' other turns (frap-figure.js drill(), round(), review()): a card and how it is answered, a round's two orders,
   Review's returns. The answer lit, the caret, the first asked and the hold are the accent's, standing still too */
.ofig .card, .ofig .field { fill: currentColor; fill-opacity: .05; }
.ofig .wave { fill: none; stroke: var(--acc-ink); stroke-width: 1.5; stroke-linecap: round; }
.ofig .chip rect { fill: currentColor; fill-opacity: .05; stroke: currentColor; stroke-opacity: .38; stroke-width: 1; }
.ofig .chip.on rect { stroke: var(--acc-ink); stroke-opacity: 1; stroke-width: 1.6; }
.ofig .c { font-size: 8.5px; font-weight: 550; fill: var(--ink-2); }
.ofig .chip.on .c { font-weight: 700; fill: var(--ink); }
.ofig .ok { fill: none; stroke: var(--acc-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ofig .caret { fill: var(--acc-ink); }
.ofig .kb { fill: currentColor; fill-opacity: .16; }
.ofig .tile { fill: currentColor; fill-opacity: .05; stroke: currentColor; stroke-opacity: .35; stroke-width: 1; }
.ofig .tile.on { stroke: var(--acc-ink); stroke-opacity: 1; stroke-width: 1.6; }
.ofig .num { font-size: 6.5px; font-weight: 650; fill: var(--ink-2); }
.ofig .x { fill: none; stroke: var(--acc-ink); stroke-width: 1.1; stroke-opacity: .7; }
.ofig .ln.mem { stroke: var(--acc-ink); stroke-opacity: 1; stroke-width: 1.7; }
.ofig .ln.thr { stroke-dasharray: 5 4; }
/* The book's turns (frap-figure.js ways(), back(), missed()): two ways to one next, a lesson's ring on Matcha's days, a
   missed question followed through its rounds. The ways, the next, the rings and the checked are the accent's, still too */
.ofig .card.on { stroke: var(--acc-ink); stroke-opacity: 1; stroke-width: 1.6; }
.ofig .way { fill: none; stroke: var(--acc-ink); stroke-width: 2; stroke-linecap: round; }
.ofig .rg { fill: none; stroke: var(--acc-ink); stroke-width: 2.6; stroke-linecap: round; }
.ofig .no { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-low="on"]):not([data-calm]) .ofig--ways .way { stroke-dasharray: 100 100; animation: ofig-way 8s ease-in-out infinite backwards; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--back .rg { animation: ofig-fill 7s linear infinite backwards; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--missed .tr { animation: ofig-trace 6s linear infinite backwards; animation-delay: var(--d, 0s); }
  /* Reading's turns (frap-figure.js asks(), grow(), aloud()): the five questions asked in turn from the top; a level read
     wide, a story after another; a Journey climbing; the step up drawn; a line read after another, the voice. The
     reader's level, the step, the line read and the word held stand in the accent still */
  html:not([data-low="on"]):not([data-calm]) .ofig--asks .reg { animation: ofig-ring 7.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--grow .wd { animation: ofig-lit 3.6s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--grow .st { animation: ofig-stop 4.8s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--grow .way { stroke-dasharray: 100 100; animation: ofig-draw 4.8s ease-in-out infinite; }
  html:not([data-low="on"]):not([data-calm]) .ofig--aloud .m { animation: ofig-lit 6s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--aloud .wave { animation: ofig-wave 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--drill .wave { animation: ofig-wave 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--drill .ok { animation: ofig-ok 3.2s ease-in-out infinite; }
  html:not([data-low="on"]):not([data-calm]) .ofig--drill .caret { animation: ofig-blink 1.1s steps(1) infinite; }
  html:not([data-low="on"]):not([data-calm]) .ofig--round .tile { animation: ofig-ask 6.3s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--review .st { animation: ofig-stop 7s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--rank .m:not(.top),
  html:not([data-low="on"]):not([data-calm]) .ofig--task .m:not(.top) { animation: ofig-lit 5.4s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--band .m { animation: ofig-lit 6s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--route .pr { animation: ofig-draw 7s linear infinite; }
  html:not([data-low="on"]):not([data-calm]) .ofig--route .st { animation: ofig-stop 7s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--place .pulse { animation: ofig-pulse 2.8s ease-out infinite; }
  html:not([data-low="on"]):not([data-calm]) .ofig--exchange .bub path { animation: ofig-turn 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--system .flow { animation: ofig-flow 1.4s linear infinite; }
  html:not([data-low="on"]):not([data-calm]) .ofig--subject .reg { animation: ofig-ring 7.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--field .sp { animation: ofig-lift 8.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--field .sp rect { animation: ofig-spine 8.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--form .tick { animation: ofig-tick 5.6s ease-in-out infinite; }
}
@keyframes ofig-lit { 0%, 100% { fill: currentColor; fill-opacity: .3; } 5%, 16% { fill: var(--acc-ink); fill-opacity: 1; } 24% { fill: currentColor; fill-opacity: .3; } }
@keyframes ofig-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 70%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ofig-stop { 0%, 100% { fill: transparent; stroke: currentColor; } 3%, 30% { fill: var(--acc-ink); stroke: var(--acc-ink); } 38% { fill: transparent; stroke: currentColor; } }
@keyframes ofig-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes ofig-turn { 0%, 44% { stroke: var(--acc-ink); stroke-opacity: 1; } 52%, 94% { stroke: currentColor; stroke-opacity: .55; } 100% { stroke: var(--acc-ink); stroke-opacity: 1; } }
@keyframes ofig-flow { to { stroke-dashoffset: -16; } }
@keyframes ofig-ring { 0%, 100% { stroke: currentColor; stroke-opacity: .35; } 8%, 30% { stroke: var(--acc-ink); stroke-opacity: 1; } 38% { stroke: currentColor; stroke-opacity: .35; } }
@keyframes ofig-lift { 0%, 100% { transform: translateY(0); } 4%, 10% { transform: translateY(-8px); } 14% { transform: translateY(0); } }
@keyframes ofig-spine { 0%, 100% { stroke: currentColor; stroke-opacity: .55; } 4%, 10% { stroke: var(--acc-ink); stroke-opacity: 1; } 14% { stroke: currentColor; stroke-opacity: .55; } }
@keyframes ofig-tick { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(28px); } 50%, 70% { transform: translateY(56px); } 75%, 95% { transform: translateY(84px); } 100% { transform: translateY(0); } }
@keyframes ofig-wave { 0%, 100% { stroke-opacity: .25; } 30%, 50% { stroke-opacity: 1; } }
@keyframes ofig-ok { 0%, 25% { opacity: 0; } 35%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ofig-blink { 50% { opacity: 0; } }
@keyframes ofig-ask { 0%, 100% { stroke: currentColor; stroke-opacity: .35; } 1.5%, 8.5% { stroke: var(--acc-ink); stroke-opacity: 1; } 12% { stroke: currentColor; stroke-opacity: .35; } }
@keyframes ofig-way { 0% { stroke-dashoffset: 100; } 30%, 46% { stroke-dashoffset: 0; } 56%, 100% { stroke-dashoffset: -100; } }
@keyframes ofig-fill { 0%, 100% { stroke-opacity: .25; } 3%, 30% { stroke-opacity: 1; } 38% { stroke-opacity: .25; } }
@keyframes ofig-trace { 0%, 100% { stroke: currentColor; stroke-opacity: .35; } 3%, 22% { stroke: var(--acc-ink); stroke-opacity: 1; } 28% { stroke: currentColor; stroke-opacity: .35; } }
