/* THE EVENING, ten deepenings · styles.
   The first part is the chosen mockup itself (d3-evening.html). Each part after it is one idea, switched on by a
   class on <html>: .fx-clock, .fx-numerals, .fx-glow, .fx-heroq, .fx-veil, .fx-notes, .fx-rows, .fx-city,
   .fx-map, .fx-cinema, .fx-pulse, .fx-pool. Nothing captures the scroll; reduced motion shows the end states. */

/* ═══ the page ═══════════════════════════════════════════════════════════ */
/* unseen until the scripts after e-base.js have put in their blocks and the room (e-base.js, e-kit.js end) */
.is-building main { visibility: hidden; }
.k-hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; background: #030405; overflow: clip; }
.k-stage.nd-win { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.k-stage .ds-cam { top: calc(50% + 96px); }
/* a window narrower than 16:9 (owner 2026-11-25: «уменьшалась пропорционально окнам, точно так же, как приложение»):
   the room is fitted to the width at the foot of the hero, so the laptop and the tall display stay in view, and the
   headline takes the band above it; until now the room filled the height and lost its sides */
@media (min-width: 901px) {
  /* the band above the room is no higher than the headline needs (owner: «Подними комнату чуть выше, слишком много
     чёрного»): the text's top + 260 px of text and air, less the 9.17vw at which the tall display's top sits in the room */
  .k-hero { container: hero / size; --k-band: max(96px, clamp(92px, 12vh, 132px) + 260px - 9.17vw); height: min(100svh, calc(56.25vw + var(--k-band))); }
  @container hero (aspect-ratio < 16 / 9) {
    .k-stage.nd-win { inset: auto 0 0; height: 56.25cqw; }
    /* the room keeps the 96 px it is lowered by in a wide hero (the headline stays above the displays) until the band
       above it is that high; max(640px, min(100svh, 1100px, 56.25vw + band)) is the hero's height, 56.25cqw the room's */
    .k-stage .ds-cam { top: calc(50% + max(0px, 96px - (max(640px, min(100svh, 1100px, 56.25vw + var(--k-band))) - 56.25cqw))); }
    /* the sky melts into the black of the band (below the tall display's top, which starts at 17 %) */
    .k-stage .ds-cam::after { content: ""; position: absolute; inset: 0 0 auto; height: 14%; pointer-events: none; background: linear-gradient(#030405, rgba(3, 4, 5, 0)); }
  }
}
.k-hero:not(.is-lit) .k-stage { cursor: none; }
.e-lit { background-size: 100% 100%; pointer-events: none; transition: opacity .9s; --tr: clamp(170px, 22vw, 340px); filter: brightness(1.3); container-type: size;
  -webkit-mask-image: radial-gradient(circle var(--tr) at var(--tx, 58%) var(--ty, 56%), #000 0, rgba(0, 0, 0, .92) 30%, rgba(0, 0, 0, .4) 58%, transparent 78%);
  mask-image: radial-gradient(circle var(--tr) at var(--tx, 58%) var(--ty, 56%), #000 0, rgba(0, 0, 0, .92) 30%, rgba(0, 0, 0, .4) 58%, transparent 78%); }
.k-hero.is-lit .e-lit { opacity: 0; }
.k-scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(3, 4, 5, .9) 0%, rgba(3, 4, 5, .72) 20%, rgba(3, 4, 5, 0) 46%), linear-gradient(0deg, rgba(3, 4, 5, .7), rgba(3, 4, 5, 0) 22%); }
.k-text { position: absolute; z-index: 4; left: 0; right: 0; top: clamp(92px, 12vh, 132px); pointer-events: none; }
/* the headline keeps to two lines so that, once the camera sits down, it stays above the monitors */
.k-text .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 18px 48px; align-items: start; }
@media (max-height: 780px) { .k-text .lead { font-size: 15px; } }
.k-text a, .k-text button, .k-text .dnote { pointer-events: auto; }
.k-text .h1 { margin: 14px 0 0; font-size: clamp(30px, 2vw + 12px, 48px); line-height: 1.02; text-shadow: 0 2px 26px rgba(0, 0, 0, .9); }
.k-text .h1 > .gold { display: block; }
/* 2560 px and up: the headline's second line stays above the lit wide display (it touched its top at 2560 × 1440) */
@media (min-width: 2000px) { .k-text { top: clamp(72px, 7vh, 100px); } }
.k-text .lead { text-shadow: 0 1px 14px rgba(0, 0, 0, .95); color: var(--text-primary); }
.k-side { display: grid; gap: 16px; justify-items: start; }
.k-stage .deck { left: 50%; right: auto; bottom: 64px; width: min(920px, calc(100% - 40px)); translate: -50% 0; }
.k-stage .nd-hint { top: auto; bottom: 138px; right: 50%; translate: 50% 0; }
.k-under { display: none; }
.e-lights { transition: opacity .6s; }
.e-lights[disabled], .k-hero.is-lit .e-lights { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .k-hero { height: auto; min-height: 0; max-height: none; padding-top: 84px; display: grid; }
  .k-text { position: static; order: 1; }
  .k-text .wrap { grid-template-columns: minmax(0, 1fr); }
  .k-stage.nd-win { position: relative; inset: auto; order: 2; margin: 22px 20px 0; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); }
  .k-stage .ds-cam { top: 50%; }
  .k-scrim { display: none; }
  .k-stage .deck { left: 8px; right: 8px; bottom: 8px; width: auto; translate: none; }
  .k-under { display: grid; order: 3; margin: 14px 20px 28px; }
}

.e-eve { overflow-x: clip; }
.e-eve > .wrap { position: relative; z-index: 1; }
.e-line { --pad: clamp(18px, 3vw, 46px); position: relative; list-style: none; margin: 0; padding: 0 0 0 var(--pad); display: grid; gap: clamp(52px, 5.6vw, 96px); }
.e-line::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--accent-line), rgba(214, 177, 92, .06)); }
.e-node { --hue: 214 177 92; position: relative; isolation: isolate; display: grid; gap: 18px; scroll-margin-top: 96px; }
.e-node[data-dev="main"] { --hue: 52 211 153; }
.e-node[data-dev="laptop"] { --hue: 214 177 92; }
.e-node[data-dev="risk"] { --hue: 245 158 11; }
.e-node[data-dev="lower"] { --hue: 244 96 120; }
.e-node[data-dev="portrait"] { --hue: 125 170 255; }
.e-node > time { display: block; font: 600 13px/1 var(--font-mono); letter-spacing: .16em; color: var(--accent); }
.e-node > time::before { content: ""; position: absolute; left: calc(-1 * var(--pad) - 4px); top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(214, 177, 92, .14); }
.e-node > time span { color: var(--text-tertiary); margin-left: 10px; }
.e-dev { display: none; font-style: normal; }
.e-row { position: relative; display: grid; grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 52px); align-items: center; }
.e-copy { display: grid; gap: 14px; justify-items: start; }
.e-q { margin: 0; font: 650 clamp(26px, 1.6vw + 14px, 42px)/1.05 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.e-copy p { margin: 0; color: var(--text-secondary); max-width: 44ch; }
.e-copy .lane { width: 100%; }
/* page 12 (html.tut: the tutorial account, money to the cent): a long tag such as «London · Mon · −$3,685.96» wraps
   under itself, right-aligned, before the lane's own text is squeezed to a word a line on a phone or at 1024 px */
.tut .e-copy > .lane { grid-template-columns: minmax(min(11em, 55%), 1fr) auto; }
.tut .e-copy > .lane .tag { text-align: right; line-height: 1.4; }
.k-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-primary); font: 600 14px/1 var(--font-sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 5px; }
.k-link:hover { text-decoration-color: var(--accent); }
.k-link .ic { width: 14px; height: 14px; color: var(--accent); }
.e-media { min-width: 0; }
/* on a phone every live screen pans sideways, so its hint line has its place from the start, not when the screen is drawn */
@media (max-width: 579px) { .eve :not(.e-stack) > .e-shot + .vshot-hint { display: block; } }
.e-frame { position: relative; }
/* A chapter's screens stand in one place, one over another, and the place is as tall as the tallest of them (the
   owner's rule, 2026-11-24): switching neither resizes the window nor moves the text and the buttons beside it.
   Each screen is stretched to that height with its content in the middle; only the chosen one is seen. */
.e-frame.e-stack { display: grid; }
.e-frame.e-stack > .e-view { grid-area: 1 / 1; min-width: 0; display: grid; align-content: center; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s, box-shadow 1.4s, border-color 1.4s; }
.e-frame.e-stack > .e-view.is-on { visibility: visible; opacity: 1; transition: opacity .3s, box-shadow 1.4s, border-color 1.4s; }
/* on a phone a live screen pans sideways and says so under itself; that line keeps its place whichever screen is shown */
.e-frame.e-stack > .vshot-hint { grid-area: 2 / 1; }
@media (max-width: 579px) { .eve .e-stack > .vshot-hint { display: block; visibility: hidden; } .eve .e-stack > .e-view.is-on + .vshot-hint { visibility: visible; } }
/* set «functions»: a chapter may show a picture of the full demo in the same frame as a live screen, switch
   between several screens, name the tabs it stands for, and link into the demo */
.e-pic { position: relative; margin: 0; padding: 10px; border-radius: 16px; overflow: hidden; background: #07090b; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.e-pic img { display: block; width: 100%; height: auto; max-height: max(360px, min(620px, 100svh - 240px)); object-fit: cover; object-position: left top; border-radius: 8px; }
.e-clip { position: relative; margin: 0; padding: 10px; border-radius: 16px; background: #07090b; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.e-clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #05070a; }
.e-clip video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.e-clip video::cue { font: 600 15px/1.35 Inter, system-ui, sans-serif; color: #f4f1e8; background: rgba(5, 7, 12, .86); }
/* the label sits on the frame's upper edge, off the film: nothing of the app is covered */
.e-clip figcaption { position: absolute; left: 22px; top: -11px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0e12; font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); pointer-events: none; transition: opacity .3s; }
.fx-glow .e-clip { box-shadow: 0 0 0 0 rgb(var(--hue) / 0); transition: box-shadow 1.4s, border-color 1.4s; }
.fx-glow .e-node.is-now .e-clip { box-shadow: 0 0 110px 4px rgb(var(--hue) / .2), 0 0 30px rgb(var(--hue) / .16); border-color: rgb(var(--hue) / .38); }
/* a phone (or any window under 761 px): a tap opens the clip full screen (e-kit.js FX.clips). The sign says so on
   the frame's lower edge, under the label and in its quiet manner, off the film and clear of the screen's light
   (fx-glow, lower right); it is no button. Full screen the box is the film alone, on black. */
.e-big { display: none; position: absolute; left: 22px; bottom: -11px; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0e12; font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--text-tertiary); pointer-events: none; }
.e-big svg { width: 11px; height: 11px; flex: none; }
@media (hover: none), (pointer: coarse), (max-width: 760px) { .e-big { display: inline-flex; } }
.e-frame.e-stack > .e-clip:fullscreen, .e-clip:fullscreen { display: block; padding: 0; border: 0; border-radius: 0; background: #000; box-shadow: none; }
.e-clip:fullscreen video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #000; }
.e-clip:fullscreen figcaption, .e-clip:fullscreen .e-big { display: none; }
.e-pic figcaption { position: absolute; right: 18px; bottom: 18px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(5, 7, 12, .8); font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
/* The place in the app is the way into it: one line that names the tabs and opens them in the full demo
   (2026-11-23; it used to be a label with a separate «Open in the full demo» under it). Where the demo is not
   served, v-kit.js leaves it as the plain label «In the app · …». */
.e-where { display: inline-block; padding: 6px 0; margin: -6px 0; font: 600 11px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); text-decoration: none; }
.e-where b { color: var(--accent); font-weight: 600; }
.e-where .ic { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; color: var(--accent); transition: translate .2s; }
.e-where:not(.is-off):hover b, .e-where:not(.is-off):focus-visible b { text-decoration: underline; text-underline-offset: 4px; }
.e-where:not(.is-off):hover .ic { translate: 3px 0; }
.e-where.is-off .ic { display: none; }
.e-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* one line the demo itself shows for the part: a figure, as the first three chapters have in their notes */
.e-copy .e-found { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; max-width: none; margin: 0; padding: 11px 14px 11px 16px; border-radius: 10px; background: rgb(var(--hue) / .05); color: var(--text-primary); font: 500 14.5px/1.45 var(--font-sans); }
.e-found span { flex: none; font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--hue)); }
.e-node[data-dev="audit"] { --hue: 214 177 92; }
.e-node[data-dev="strategy"] { --hue: 167 139 250; }
.e-node[data-dev="more"] { --hue: 125 170 255; }
.e-node[data-dev="copy"] { --hue: 56 189 248; }
.e-node--also .e-copy { justify-items: stretch; }
.e-open { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; color: var(--text-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; white-space: nowrap; }
.e-open:hover { text-decoration-color: var(--accent); }
.e-open .ic { width: 12px; height: 12px; color: var(--accent); }
/* five cards since the Terminal joined them (2026-11-26), and every row full: one row of five on a wide screen,
   three over two in the middle (a grid of six, the first three two columns wide, the last two three), two over two
   over one wide card below that, and one column on a phone */
.e-also { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
/* a card of «Also in the app»: the place above, then what you get, the line about it and the way in, all from one
   left edge and from the top (the place used to stand beside the text and squeeze it into a narrow column) */
.e-also .lane { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 8px; padding: 16px 18px 16px 22px; }
.e-also .lane .tag { grid-row: auto; grid-column: 1; line-height: 1.4; }
.e-also .lane b { font-size: 15.5px; line-height: 1.25; }
.e-also .lane p { max-width: none; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.e-also .e-open { justify-self: start; margin: 4px 0 0; font-size: 13.5px; }
@media (900px <= width < 1280px) { .e-also { grid-template-columns: repeat(6, minmax(0, 1fr)); } .e-also > .lane { grid-column: span 2; } .e-also > .lane:nth-last-child(-n+2) { grid-column: span 3; } }
@media (600px < width < 900px) { .e-also { grid-template-columns: repeat(2, minmax(0, 1fr)); } .e-also > .lane:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .e-also { grid-template-columns: minmax(0, 1fr); } }
.m-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .e-row, .m-slots { grid-template-columns: minmax(0, 1fr); } }
.k-access { position: relative; overflow: clip; }
.k-candles { position: absolute; left: 0; top: 0; width: 100%; height: 460px; display: block; pointer-events: none; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 92%); mask-image: linear-gradient(180deg, #000 20%, transparent 92%); }
.k-access .wrap { position: relative; z-index: 1; }
.e-stamp { font: 600 13px/1 var(--font-mono); letter-spacing: .16em; color: var(--accent); }
.k-tip { margin: 0; font: 600 11px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); text-shadow: 0 1px 10px #000; transition: opacity .6s; }
.k-tip b { color: var(--accent); font-weight: 700; }
.k-hero.is-lit .k-tip { opacity: 0; }

/* ═══ 1 · the clock: the evening's time in the header, the line fills, each chapter strikes ═══ */
.e-clock { margin-left: auto; display: flex; align-items: baseline; gap: 10px; font: 600 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; opacity: 0; translate: 0 -6px; transition: opacity .5s, translate .5s; }
.e-clock.is-on { opacity: 1; translate: 0 0; }
/* where the header is short of room, the chapter's name beside the time is cut short first; it used to push the
   request for access off the screen (2026-11-26, with «Functions» in the header) */
.e-clock { min-width: 0; }
.e-clock b { flex: none; }
.e-clock span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) { .vh .has-fn ~ .e-clock span { display: none; } } /* there the list icon has its room */
/* the language of the page (e-lang.js): a quiet pair of keys in the header, never gold. On a phone the header
   has room for it only until the clock of the evening comes in, so it is there at the top of the page. */
.vh-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .06); background: var(--pc-track); box-shadow: var(--pc-sh-engraved); }
.vh-lang button { min-width: 36px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--text-tertiary); font: 600 11.5px/1 var(--font-mono); letter-spacing: .08em; cursor: pointer; }
.vh-lang button:hover { color: var(--text-primary); }
.vh-lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .09); color: var(--text-primary); cursor: default; }
.vh-lang-s { display: none; height: 36px; padding: 0 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: #0c1014; color: var(--text-primary); color-scheme: dark; font: 600 12px/1 var(--font-mono); letter-spacing: .06em; }
@media (max-width: 700px) { .vh-lang, .e-clock.is-on + .right .vh-lang-s, .has-langs .e-clock:not(.is-on) { display: none; } .vh-lang-s { display: block; } .has-langs .e-clock:not(.is-on) + .right { margin-left: auto; } }
.e-clock b { display: inline-flex; font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(214, 177, 92, .35); }
.e-clock b i { font-style: normal; display: inline-block; }
.e-clock b i.tick { animation: e-tick .34s cubic-bezier(.2, .9, .3, 1); }
.e-clock b i.col { animation: e-blink 1.2s steps(1) infinite; }
@keyframes e-tick { from { transform: translateY(-60%); opacity: 0; } }
@keyframes e-blink { 50% { opacity: .25; } }
.vh .e-clock ~ .right { margin-left: 18px; }
@media (max-width: 760px) { .e-clock span { display: none; } .e-clock b { font-size: 15px; } .vh .e-clock ~ .right { margin-left: 10px; } }
.fx-clock .e-line::after, .fx-pulse .e-line::after { content: ""; position: absolute; left: -1px; top: 6px; width: 3px; height: calc((100% - 6px) * var(--lp, 0)); border-radius: 3px; background: linear-gradient(180deg, rgba(214, 177, 92, .15), var(--accent)); box-shadow: 0 0 14px rgba(214, 177, 92, .45); }
.fx-clock .e-node > time::before { background: #2b2619; box-shadow: 0 0 0 5px rgba(214, 177, 92, .05); transition: background .4s, box-shadow .4s; }
.fx-clock .e-node.is-hit > time::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(214, 177, 92, .16); animation: e-strike 1s ease-out; }
@keyframes e-strike { 0% { box-shadow: 0 0 0 0 rgba(214, 177, 92, .75); } 100% { box-shadow: 0 0 0 26px rgba(214, 177, 92, 0); } }
.fx-clock .e-node > time { transition: opacity .5s; }
.fx-clock .e-node:not(.is-hit) > time { opacity: .35; }

/* ═══ the big numerals: each chapter's time rose behind its screen. Removed (owner, 2026-11-28: the
   numbers in the background are not needed, traders review at different hours); the room they made
   between the chapters stays, the lamp shines into it. ═══ */
.fx-numerals .e-line { gap: clamp(120px, 11vw, 190px); }
.fx-numerals .e-row::before { display: none; content: attr(data-time); position: absolute; z-index: -1; right: -1%; bottom: 100%; translate: 0 calc(54% + var(--py, 0px)); font: 800 clamp(96px, 15vw, 250px)/.8 var(--font-mono); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(214, 177, 92, .13); pointer-events: none; user-select: none; transition: -webkit-text-stroke-color .8s; }
.fx-numerals .e-node.is-now .e-row::before { -webkit-text-stroke-color: rgba(214, 177, 92, .38); }
@media (max-width: 900px) { .fx-numerals .e-row::before { bottom: auto; top: 0; translate: 0 calc(-78% + var(--py, 0px)); } }

/* ═══ 2 · the glow: a screen wakes when you reach it and lights the page; the rest of the room stays dark ═══ */
.fx-glow .e-eve { background: #020304; }
.fx-glow .e-node { transition: opacity .8s, filter .8s; }
.fx-glow .e-node:not(.is-now) { opacity: .34; filter: saturate(.45); }
.fx-glow .e-frame::before { content: ""; position: absolute; inset: -16% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--hue) / .36), rgb(var(--hue) / .1) 55%, transparent 80%); filter: blur(34px); opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.fx-glow .e-node.is-now .e-frame::before { opacity: 1; animation: e-breathe 6s ease-in-out infinite; }
@keyframes e-breathe { 50% { opacity: .68; } }
/* the screen's own shadow is black and would swallow the glow, so here the screen casts light instead */
.fx-glow .e-shot, .fx-glow .e-pic { box-shadow: 0 0 0 0 rgb(var(--hue) / 0); transition: box-shadow 1.4s, border-color 1.4s; }
.fx-glow .e-node.is-now .e-pic { box-shadow: 0 0 110px 4px rgb(var(--hue) / .2), 0 0 30px rgb(var(--hue) / .16); border-color: rgb(var(--hue) / .38); }
.fx-glow .e-node.is-now .e-shot { box-shadow: 0 0 110px 4px rgb(var(--hue) / .2), 0 0 30px rgb(var(--hue) / .16); border-color: rgb(var(--hue) / .38); }
.fx-glow .e-node .e-q { transition: text-shadow 1s; }
.fx-glow .e-node.is-now .e-q { text-shadow: 0 0 34px rgb(var(--hue) / .35); }
.fx-glow .e-frame::after { content: ""; position: absolute; right: 18px; bottom: -13px; width: 6px; height: 6px; border-radius: 50%; background: #7a5a1c; box-shadow: 0 0 8px rgba(214, 150, 40, .5); transition: background .6s, box-shadow .6s; }
.fx-glow .e-node.is-awake .e-frame::after { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .8); }
.e-wake { position: absolute; inset: 0; z-index: 3; border-radius: 16px; background: #030405; pointer-events: none; display: grid; place-items: center; overflow: hidden; font: 600 10.5px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .22); }
.e-wake::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgb(var(--hue) / .95), transparent); opacity: 0; }
.e-node.is-awake .e-wake { animation: e-wake 1.5s cubic-bezier(.3, .7, .2, 1) forwards; }
.e-node.is-awake .e-wake::before { animation: e-wake-line 1.2s ease-out forwards; }
@keyframes e-wake { 0%, 22% { opacity: 1; color: transparent; } 55% { opacity: .6; background: rgb(var(--hue) / .16); } 100% { opacity: 0; visibility: hidden; } }
@keyframes e-wake-line { 0% { opacity: 0; transform: scaleX(.04); } 22% { opacity: 1; transform: scaleX(1); } 60% { opacity: .7; transform: scaleX(1) scaleY(140); } 100% { opacity: 0; transform: scaleX(1) scaleY(260); } }

/* ═══ 3 · the questions in the dark: the beam finds them on the dark displays ═══ */
.e-hq { position: absolute; translate: -50% -50%; text-align: center; white-space: nowrap; font: 600 1.02cqw/1.12 var(--font-display); letter-spacing: -.01em; color: rgba(255, 246, 222, .95); text-shadow: 0 0 1.4cqw rgba(214, 177, 92, .55); }
.e-hq small { display: block; margin-top: .5em; font: 600 .46cqw/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 177, 92, .85); }
.e-hq[data-dev="portrait"] { font-size: .78cqw; }
.e-hq[data-dev="laptop"] { font-size: .68cqw; }
.e-hq[data-dev="lower"] { font-size: .6cqw; }
.e-hq[data-dev="portrait"] small, .e-hq[data-dev="laptop"] small, .e-hq[data-dev="lower"] small { display: none; }
.fx-room .e-hq[data-dev^="main"] { font-size: .8cqw; } /* «room»: the wide display asks two questions, one per half */
/* «room»: five screens in the row of steps, so the panel is wider and a step narrower; the question beside them
   must be read whole (the longest, «Как складываются счета?», with «04 · Accounts» before it) */
/* (only where the steps carry their names: under 1181 px they are short dashes and the panel keeps its own width) */
/* no panel of steps under the room (owner, 2026-11-26: «убрать плашку… она теперь не имеет ценности»): a display
   opens its own tab of the demo; on a phone the text under the room said what the panel said. The hint to point
   takes the panel's place. */
.fx-room .k-stage .deck, .fx-room .k-under { display: none; }
.fx-room .k-stage .nd-hint { bottom: 72px; }

/* the flashlight goes on down the page: each screen starts dark with its question; the light opens it */
.fx-veil .e-eve { background: #020304; }
.fx-veil .e-eve::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 460px at var(--sx, 50%) var(--sy, -900px), rgba(255, 236, 190, .07), rgba(255, 236, 190, .02) 50%, transparent 72%); }
.e-veil { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 20px; border: 0; border-radius: 16px; background: #030405; color: inherit; cursor: none; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; transition: opacity 1s, visibility 0s 1s;
  -webkit-mask-image: radial-gradient(circle var(--vr, 0px) at var(--vx, 50%) var(--vy, 50%), transparent 0, transparent 56%, #000 100%);
  mask-image: radial-gradient(circle var(--vr, 0px) at var(--vx, 50%) var(--vy, 50%), transparent 0, transparent 56%, #000 100%); }
.e-veil .vq { font: 650 clamp(20px, 2.1vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; color: rgba(255, 255, 255, .8); }
.e-veil .vt { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.e-veil .vt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(214, 177, 92, .16); animation: e-blink 1.6s ease-in-out infinite; }
.e-veil.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.e-veil:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ═══ 4 · the notes: each chapter leaves a line for tomorrow; the page ends with the sheet ═══ */
/* Tone contour: the app's own recipe (app/widgets/tone-contour.css in the DEV tree, the owner's ruling of 2026-11-15
   there: no coloured stripe along one edge, «это выдаёт сгенерированный дизайн»). On the site since 2026-11-24, when
   he saw the three cards under the line of the evening with a stripe on top: «чтобы они огибали полностью окошечко».
   A thin line of the block's colour all the way round, brightest along the top, with a soft glow inside and out.
   --tone is an «R G B» triple: the chapter's --hue, or gold. A block that carries a colour takes this, never a bar
   on one side. */
.x5-cards > li, .e-copy .e-found, .e-note, .e-copy > .lane--neg, .e-copy > .lane--pos, .p-steps > .p-step-clip {
  --tone: var(--hue, 214 177 92);
  box-shadow: inset 0 0 0 1px rgb(var(--tone) / .46), inset 0 1px 0 rgb(var(--tone) / .74), inset 0 0 22px -12px rgb(var(--tone) / .5), 0 0 0 1px rgb(var(--tone) / .09), 0 0 var(--tc-glow, 18px) -6px rgb(var(--tone) / .44);
}
.e-copy .e-found, .e-note { --tc-glow: 14px; }
/* A chapter's lanes («Where the money leaks», shared.css .lane) carried their colour as a rail on the left edge and a
   tint fading from it (owner, 2026-11-26: the contour instead). The coloured ones take the contour and an even tint,
   the plain cards of «Also in the app» just lose the rail; the notch that sat beside the rail goes with it, the size
   and the padding stay. */
.e-copy .lane::before, .e-copy .lane::after { display: none; }
.e-copy > .lane--neg { --tone: 255 107 134; --tc-glow: 14px; }
.e-copy > .lane--pos { --tone: 39 224 162; --tc-glow: 14px; }
.e-copy > .lane--neg, .e-copy > .lane--pos { border-color: transparent; background: linear-gradient(rgb(var(--tone) / .05), rgb(var(--tone) / .05)), linear-gradient(180deg, #0f1316, #0b0e11); }
.e-copy .lane:not(.lane--neg, .lane--pos) { background: linear-gradient(180deg, #0f1316, #0b0e11); }
.e-note { width: 100%; min-height: 84px; margin-top: 4px; padding: 12px 16px 14px 18px; --tone: 214 177 92; border-radius: 10px; background: rgba(214, 177, 92, .05); opacity: 0; translate: 0 8px; transition: opacity .6s, translate .6s; }
.e-note.is-on { opacity: 1; translate: 0 0; }
.e-note .en-h { display: flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.e-note .en-h .ic { width: 13px; height: 13px; }
.e-copy .e-note p { margin: 8px 0 0; max-width: none; font: 500 22px/1.22 "Caveat", "Segoe Script", "Bradley Hand", cursive; color: #f0e7d0; }
/* the part of the note not written yet keeps its place, unseen; the cursor takes no width, so no line re-breaks */
.e-note .en-r { visibility: hidden; }
.e-note p.is-typing .en-t::after { content: ""; display: inline-block; width: 2px; height: .9em; margin: 0 -4px 0 2px; vertical-align: -.1em; background: var(--accent); animation: e-blink .7s steps(1) infinite; }
.e-pad { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(214, 177, 92, .3); background: rgba(14, 12, 8, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); color: var(--text-primary); font: 600 12.5px/1 var(--font-sans); cursor: pointer; translate: 0 90px; opacity: 0; transition: translate .5s cubic-bezier(.2, .9, .3, 1), opacity .5s, border-color .3s; }
.e-pad.is-on { translate: 0 0; opacity: 1; }
/* out of sight it is out of the Tab order too, once it has faded */
.e-pad:not(.is-on) { visibility: hidden; transition: translate .5s cubic-bezier(.2, .9, .3, 1), opacity .5s, border-color .3s, visibility 0s .5s; }
.e-pad:hover { border-color: var(--accent); }
.e-pad .ic { width: 15px; height: 15px; color: var(--accent); }
.e-pad b { font: 700 12px/1 var(--font-mono); color: var(--accent); }
.e-pad.bump { animation: e-bump .55s cubic-bezier(.2, .9, .3, 1); }
@keyframes e-bump { 30% { scale: 1.09; border-color: var(--accent); box-shadow: 0 0 0 6px rgba(214, 177, 92, .16), 0 14px 40px rgba(0, 0, 0, .5); } }
.e-node--sheet .e-row { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); align-items: center; }
.e-sheet { position: relative; padding: 30px 34px 26px 58px; border-radius: 3px; rotate: -.9deg; color: #24211a; background: #ece4d0 repeating-linear-gradient(180deg, transparent 0 37px, rgba(70, 90, 130, .2) 37px 38px); background-position: 0 30px; box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .2); }
.e-sheet::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 1px; background: rgba(190, 60, 60, .35); }
.e-sheet::after { content: ""; position: absolute; left: 50%; top: -13px; width: 96px; height: 26px; translate: -50% 0; rotate: 2deg; background: rgba(214, 177, 92, .5); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.e-sheet h4 { margin: 0 0 8px; font: 700 32px/38px "Caveat", "Segoe Script", cursive; }
.e-sheet ol { list-style: none; margin: 0; padding: 0; }
.e-sheet li { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; font: 500 23px/38px "Caveat", "Segoe Script", cursive; opacity: .2; transition: opacity .7s; }
.e-sheet li.is-on { opacity: 1; }
.e-sheet li time { font: 600 10.5px/38px var(--font-mono); letter-spacing: .08em; color: #8a7748; }
.e-sheet .es-sign { display: block; margin-top: 4px; text-align: right; font: 500 22px/38px "Caveat", "Segoe Script", cursive; color: #5d5846; }
@media (max-width: 900px) { .e-node--sheet .e-row { grid-template-columns: minmax(0, 1fr); } .e-sheet { padding: 26px 18px 22px 40px; } .e-sheet::before { left: 30px; } .e-sheet li { grid-template-columns: 46px minmax(0, 1fr); font-size: 21px; } }

/* ═══ 4b · the end of the evening without the paper sheet (data-end on the page; e-kit.js END) ═══
   Five ways to hand over what the evening noted. The handwriting goes with the paper: notes are set in the
   page's own type. An element with data-k is dim until its note is collected (.is-on). */
.no-paper .e-copy .e-note p { font: 500 15.5px/1.5 var(--font-sans); color: var(--text-primary); }
.e-end .e-row { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 2.6vw, 44px); align-items: start; }
.x-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.x-head .e-copy p { max-width: 58ch; }
.x-from { display: block; font: 600 11px/1.4 var(--font-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.x-from time { margin-right: 9px; color: rgb(var(--hue)); }
.x-k { font: 600 11px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-tertiary); }
.x-k b { color: var(--accent); font-weight: 600; }
.x-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--font-sans); color: var(--text-secondary); text-decoration: underline; text-decoration-color: rgb(var(--hue) / .4); text-underline-offset: 5px; }
.x-back:hover { color: var(--text-primary); text-decoration-color: rgb(var(--hue)); }
.x-back .ic { width: 13px; height: 13px; color: rgb(var(--hue)); }

/* А · three numerals */
.x1 { container-type: inline-size; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-subtle); }
.x1 > li { display: grid; gap: 12px; align-content: start; padding: 28px clamp(18px, 2.2vw, 40px) 6px; border-left: 1px solid var(--border-soft); }
.x1 > li:first-child { padding-left: 0; border-left: 0; }
.x1-num { display: flex; align-items: baseline; gap: .14em; margin: 8px 0 2px; font: 700 clamp(54px, 6.6cqi, 132px)/.86 var(--font-mono); letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(var(--hue) / .45); transition: color 1.2s, -webkit-text-stroke-color 1.2s, text-shadow 1.2s; }
.x1 > li.is-on .x1-num { color: rgb(var(--hue)); -webkit-text-stroke-color: transparent; text-shadow: 0 0 70px rgb(var(--hue) / .32); }
.x1-num small { font: 600 clamp(12px, 1.05cqi, 16px)/1 var(--font-mono); letter-spacing: .06em; color: var(--text-tertiary); -webkit-text-stroke: 0; text-shadow: none; }
.x1-cap { font: 600 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.x1-act { margin: 4px 0 6px; max-width: 24ch; font: 600 clamp(18px, 1.5cqi, 24px)/1.25 var(--font-display); letter-spacing: -.015em; color: var(--text-primary); text-wrap: balance; opacity: .3; transition: opacity 1s .3s; }
.x1 > li.is-on .x1-act { opacity: 1; }
@media (max-width: 900px) { .x1 { grid-template-columns: minmax(0, 1fr); } .x1 > li { padding: 24px 0 18px; border-left: 0; border-top: 1px solid var(--border-soft); } .x1 > li:first-child { border-top: 0; } .x1-num { font-size: clamp(54px, 20cqi, 96px); } }

/* Б · found tonight → done tomorrow */
.x2 { --do: 54%; display: grid; }
.x2-h { display: grid; grid-template-columns: minmax(0, 1fr) var(--do); }
.x2 li { display: grid; grid-template-columns: fit-content(46ch) minmax(48px, 1fr) var(--do); }
.x2-h { padding-bottom: 12px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-tertiary); }
.x2-h span:last-child { padding-left: clamp(18px, 2vw, 34px); color: var(--accent); }
.x2 ol { list-style: none; margin: 0; padding: 0; display: grid; }
.x2 li { align-items: center; border-top: 1px solid var(--border-soft); }
.x2 li:last-child { border-bottom: 1px solid var(--border-soft); }
.x2-f { display: grid; gap: 8px; padding: 26px 0; opacity: .3; transition: opacity .9s; }
.x2-f p { margin: 0; max-width: 46ch; font-size: 16.5px; color: var(--text-secondary); }
.x2-f p b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; color: rgb(var(--hue)); }
.x2-a { position: relative; height: 2px; margin: 0 16px 0 26px; }
.x2-a::before { content: ""; position: absolute; inset: 0 4px 0 0; background: linear-gradient(90deg, rgb(var(--hue) / .75), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1) .2s; }
.x2-a::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; border: solid var(--accent); border-width: 2px 2px 0 0; translate: 0 -50%; rotate: 45deg; opacity: 0; transition: opacity .4s 1.1s; }
.x2-d { align-self: stretch; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 26px clamp(18px, 2vw, 34px); border-left: 1px solid var(--accent-line); background: linear-gradient(90deg, rgba(214, 177, 92, .1), rgba(214, 177, 92, .02)); }
.x2-d > * { opacity: .25; transition: opacity .9s 1s; }
.x2-d i, .x5-cards > li > i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #20160a; font: 700 13px/28px var(--font-mono); font-style: normal; text-align: center; }
.x2-d p { margin: 0; max-width: 30ch; font: 600 clamp(18px, 1vw + 9px, 25px)/1.25 var(--font-display); letter-spacing: -.015em; color: var(--text-primary); text-wrap: balance; }
.x2 li.is-on .x2-f, .x2 li.is-on .x2-d > * { opacity: 1; }
.x2 li.is-on .x2-a::before { transform: none; }
.x2 li.is-on .x2-a::after { opacity: 1; }
@media (max-width: 900px) { .x2-h { display: none; } .x2 li { grid-template-columns: minmax(0, 1fr); } .x2-f { padding: 22px 0 14px; } .x2-a { display: none; } .x2-d { margin-bottom: 22px; border-left: 2px solid var(--accent); } }

/* В · the list to tick off */
.e-end--check .e-row { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); align-items: center; gap: clamp(22px, 3vw, 52px); }
.x3 { border-radius: 20px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, #101317, #0a0c0f); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.x3 header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--border-soft); }
.x3 header > div:first-child { display: grid; gap: 6px; }
.x3 header strong { font: 650 clamp(22px, 1.4vw + 8px, 30px)/1.1 var(--font-display); letter-spacing: -.02em; }
.x3-ring { position: relative; flex: none; width: 54px; height: 54px; display: grid; place-items: center; font: 600 12px/1 var(--font-mono); color: var(--text-secondary); }
.x3-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3; }
.x3-ring circle { stroke: rgba(255, 255, 255, .1); }
.x3-ring .r1 { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--done, 0) 99; opacity: var(--done, 0); transition: stroke-dasharray .6s cubic-bezier(.3, .7, .2, 1), opacity .3s; }
.x3-ring b { color: var(--accent); font-weight: 600; }
.x3 ul { list-style: none; margin: 0; padding: 4px 0; }
.x3 li { opacity: .3; transition: opacity .8s; }
.x3 li.is-on { opacity: 1; }
.x3 li + li { border-top: 1px solid var(--border-faint); }
.x3 label { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 26px; cursor: pointer; transition: background .2s; }
.x3 label:hover { background: rgba(255, 255, 255, .025); }
.x3 input { position: absolute; left: 26px; top: 18px; width: 28px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.x3-box { width: 28px; height: 28px; margin-top: 1px; border-radius: 9px; border: 1.5px solid rgba(214, 177, 92, .55); background: rgba(214, 177, 92, .05); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.x3-box svg { width: 18px; height: 18px; fill: none; stroke: #20160a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.x3-box path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s .05s; }
.x3 input:checked + .x3-box { background: var(--accent); border-color: var(--accent); }
.x3 input:checked + .x3-box path { stroke-dashoffset: 0; }
.x3 input:focus-visible + .x3-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.x3-t { display: grid; gap: 7px; }
.x3-t strong { font: 600 clamp(17px, .8vw + 9px, 21px)/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text-primary); text-decoration: line-through transparent; transition: color .3s, text-decoration-color .3s; }
.x3-t small { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.x3-t small b { font-weight: 650; color: rgb(var(--hue)); white-space: nowrap; }
.x3 li.is-done .x3-t strong { color: var(--text-tertiary); text-decoration-color: rgba(214, 177, 92, .65); }
.x3-foot { margin: 0; padding: 14px 26px 18px; border-top: 1px solid var(--border-soft); font: 600 11px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); transition: color .4s; }
.e-end.is-all .x3-foot { color: var(--accent); }
@media (max-width: 900px) { .e-end--check .e-row { grid-template-columns: minmax(0, 1fr); } .x3 header, .x3 label { padding-inline: 18px; } .x3 input { left: 18px; } .x3-foot { padding-inline: 18px; } }

/* Г · tomorrow morning: the only light part of the night */
.x4 { position: relative; isolation: isolate; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); background: #04060b; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.x4-sky, .x4-sky i { position: absolute; inset: 0; }
.x4-sky { z-index: -1; }
.x4-sky i:nth-child(1) { background: linear-gradient(180deg, #03050a 0%, #060b18 52%, #0c1630 100%); }
.x4-sky i:nth-child(2) { opacity: .75; transition: opacity 3s; background-image: radial-gradient(1.2px 1.2px at 8% 16%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 19% 58%, #cfe0ff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 31% 9%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 44% 34%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 57% 13%, #ffe9c4 50%, transparent 52%), radial-gradient(1px 1px at 66% 47%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 78% 21%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 88% 39%, #cfe0ff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 95% 8%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 3% 72%, #fff 50%, transparent 52%); }
.x4-sky i:nth-child(3) { opacity: 0; translate: 0 26%; transition: opacity 3.2s ease-out, translate 3.2s cubic-bezier(.2, .7, .2, 1); background: radial-gradient(72% 58% at 80% 112%, rgba(255, 222, 164, .98) 0, rgba(246, 170, 96, .7) 24%, rgba(170, 86, 92, .36) 48%, rgba(52, 62, 120, .2) 70%, transparent 90%), linear-gradient(0deg, rgba(214, 150, 80, .2), transparent 30%); }
.e-node.is-awake .x4-sky i:nth-child(2) { opacity: .2; }
.e-node.is-awake .x4-sky i:nth-child(3) { opacity: 1; translate: 0 0; }
.x4-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding: clamp(28px, 3.4vw, 60px) clamp(22px, 3.4vw, 60px) clamp(96px, 9vw, 170px); }
.x4-brief { list-style: none; margin: 0; padding: 0; display: grid; }
.x4-brief li { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); opacity: .3; transition: opacity .9s; }
.x4-brief li:first-child { padding-top: 0; border-top: 0; }
.x4-brief li.is-on { opacity: 1; }
.x4-brief p { margin: 0; display: grid; gap: 4px; }
.x4-brief strong { font: 600 clamp(18px, 1vw + 9px, 24px)/1.25 var(--font-display); letter-spacing: -.015em; color: var(--text-primary); text-wrap: balance; }
.x4-brief p span { font-size: 15px; color: var(--text-secondary); }
.x4-brief p span b { font-weight: 650; color: rgb(var(--hue)); white-space: nowrap; }
/* the night between: lights out on the left, the open on the right, and where the sun comes up */
.x4-line { position: absolute; left: clamp(22px, 3.4vw, 60px); right: clamp(22px, 3.4vw, 60px); bottom: clamp(44px, 4.4vw, 78px); display: flex; align-items: center; gap: 14px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .5); }
.x4-line i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 222, 170, .55)); }
.x4-line i + b + i { flex: 0 0 7%; background: rgba(255, 222, 170, .55); }
.x4-line b { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 222, 170, .55); background: rgba(16, 12, 8, .55); color: #ffe2b0; font-weight: 700; }
@media (max-width: 900px) { .x4-in { grid-template-columns: minmax(0, 1fr); } .x4-line span:first-child { display: none; } }

/* Д · the evening on one line */
.x5-h { display: flex; flex-wrap: wrap; gap: 0 .4em; font-size: clamp(28px, 2.2vw + 14px, 58px); }
.x5-h span:last-child { color: var(--accent); }
.fx-numerals .e-end--rail .e-row::before { display: none; } /* the line carries its own times */
.x5-rail { --n: 9; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.x5-rail::before, .x5-rail::after { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 30px; height: 1px; background: rgba(255, 255, 255, .13); }
.x5-rail::after { top: 29.5px; height: 2px; background: linear-gradient(90deg, rgba(214, 177, 92, .25), var(--accent)); box-shadow: 0 0 12px rgba(214, 177, 92, .45); transform: scaleX(0); transform-origin: left; transition: transform 2.4s cubic-bezier(.3, .6, .2, 1) .3s; }
.e-node.is-awake .x5-rail::after { transform: none; }
.x5-rail li > * { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0 8px; text-align: center; text-decoration: none; color: inherit; }
.x5-rail time { height: 12px; font: 600 11.5px/12px var(--font-mono); letter-spacing: .12em; color: var(--text-tertiary); }
.x5-rail i { box-sizing: border-box; width: 13px; height: 13px; margin: 4px 0; border-radius: 50%; border: 2px solid rgb(var(--hue)); background: #07090b; font: 700 12px/24px var(--font-mono); font-style: normal; color: #20160a; }
.x5-rail .is-flag i { width: 24px; height: 24px; margin: -1.5px 0; border: 0; background: var(--accent); box-shadow: 0 0 0 5px rgba(214, 177, 92, .16), 0 0 22px rgba(214, 177, 92, .45); }
.x5-rail .is-end i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(214, 177, 92, .16); }
.x5-rail b { font: 600 13.5px/1.25 var(--font-sans); color: var(--text-primary); text-wrap: balance; transition: color .2s; }
.x5-rail li > * > span { font-size: 12px; line-height: 1.35; color: var(--text-tertiary); text-wrap: balance; }
.x5-rail a:hover b { color: var(--accent); }
.x5-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.x5-cards > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px 23px 23px; border-radius: 16px; background: linear-gradient(180deg, rgb(var(--hue) / .08), rgba(255, 255, 255, .015) 62%); opacity: .3; transition: opacity .9s; }
.x5-cards > li.is-on { opacity: 1; }
.x5-cards div { display: grid; gap: 8px; }
.x5-act { margin: 0; font: 600 clamp(17px, .8vw + 9px, 21px)/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text-primary); text-wrap: balance; }
/* 1160, not 1100: with eleven stops (the chapter «Open positions», 2026-11-25) a Russian name was wider than its column from 1101 px */
@media (max-width: 1160px) { .x5-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 0; } .x5-rail::before, .x5-rail::after { display: none; } }
@media (max-width: 900px) { .x5-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .x5-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .x1-num, .x1-act, .x2-f, .x2-d > *, .x2-a::before, .x2-a::after, .x3 li, .x4-sky i, .x4-brief li, .x5-rail::after, .x5-cards > li { transition: none; } }

/* ═══ 5 · the rows: the statement goes in at 23:41, and every screen is wiped clean out of the same rows ═══ */
.fx-rows .e-facts { display: none; }
.e-term { container-type: size; position: relative; height: clamp(300px, 46vh, 460px); border-radius: 16px; overflow: hidden; background: #07090b; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font: 500 12px/26px var(--font-mono); color: #848b95; }
.e-term .tw { will-change: transform; }
.e-term table, .e-rows table { width: 100%; border-collapse: collapse; }
.e-term th, .e-term td, .e-rows td { padding: 0 14px; text-align: left; white-space: nowrap; font-weight: 500; }
.e-term th { color: #565c66; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.e-term td:last-child, .e-term th:last-child, .e-rows td:last-child { text-align: right; }
.e-term::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #07090b 0, transparent 16%, transparent 70%, #07090b 96%); }
.e-term .ts { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 0 14px; font: 600 10.5px/38px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); border-top: 1px solid rgba(255, 255, 255, .06); background: #090b0e; }
.e-term .ts b { color: var(--accent); font-weight: 600; }
.e-term .ts i { position: absolute; left: 0; top: -1px; height: 1px; width: calc(var(--k, 0) * 100%); background: var(--accent); box-shadow: 0 0 10px rgba(214, 177, 92, .7); }
.e-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; width: 100%; margin: 4px 0 0; }
.e-in div { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border-faint); }
.e-in dt { font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.e-in dd { margin: 0; font: 650 clamp(20px, 1.5vw + 8px, 30px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.e-rows { position: absolute; inset: 0; z-index: 3; border-radius: 16px; overflow: hidden; background: #07090b; font: 500 11.5px/24px var(--font-mono); color: #747b85; pointer-events: none; clip-path: inset(0 0 0 0); }
.e-scan { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent); box-shadow: 0 0 18px 2px rgba(214, 177, 92, .7); opacity: 0; pointer-events: none; }
.e-node.is-awake .e-rows { animation: e-wipe 1.7s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
.e-node.is-awake .e-scan { animation: e-scan 1.7s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
@keyframes e-wipe { to { clip-path: inset(0 0 0 100%); visibility: hidden; } }
@keyframes e-scan { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ═══ 6 · the city: behind the evening the city goes to sleep, window by window ═══ */
.fx-city .e-eve { background: #04060b; }
.e-city { position: sticky; top: 0; z-index: 0; display: block; width: 100%; height: 100svh; margin-bottom: -100svh; pointer-events: none; }
.fx-city .e-copy p, .fx-city .e-q { text-shadow: 0 1px 16px rgba(0, 0, 0, .9); }
.fx-city .e-eve .vs-head .lead { text-shadow: 0 1px 16px rgba(0, 0, 0, .9); }
.e-citycap { position: sticky; bottom: 62px; z-index: 2; width: max-content; max-width: calc(100% - 40px); margin: 40px auto 0; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(5, 7, 12, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); text-align: center; }
.e-citycap b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ═══ 7 · the desk map: a small map of the desk follows you; every screen stands on its own device ═══ */
.fx-map .e-dev { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgb(var(--hue) / .35); color: rgb(var(--hue)); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
/* the map lives in the header, where it never covers a screen */
.e-map { --hue: 214 177 92; margin-left: auto; display: flex; align-items: center; gap: 14px; opacity: 0; translate: 0 -6px; pointer-events: none; transition: opacity .5s, translate .5s; }
.e-map.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.e-map svg { display: block; flex: none; width: 118px; height: auto; overflow: visible; }
.vh .e-map ~ .right { margin-left: 18px; }
.e-map .mm { fill: #161b22; stroke: rgba(255, 255, 255, .34); stroke-width: 1.4; cursor: pointer; transition: fill .5s, stroke .5s, filter .5s; }
.e-map .mm:hover { stroke: rgba(255, 255, 255, .5); }
.e-map .mm.is-now { fill: rgb(var(--hue) / .42); stroke: rgb(var(--hue)); filter: drop-shadow(0 0 6px rgb(var(--hue) / .8)); }
.e-map .md { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.e-map .mv { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: .9; transition: x .7s cubic-bezier(.3, .8, .2, 1), y .7s cubic-bezier(.3, .8, .2, 1), width .7s cubic-bezier(.3, .8, .2, 1), height .7s cubic-bezier(.3, .8, .2, 1), opacity .4s; }
.e-map .mm-cap { display: grid; gap: 5px; min-width: 168px; }
.e-map .mm-cap b { font: 600 12.5px/1.2 var(--font-sans); color: var(--text-primary); white-space: nowrap; }
.e-map .mm-cap span { font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; }
@media (max-width: 1000px) { .e-map .mm-cap { display: none; } .e-map svg { width: 78px; } .vh .e-map ~ .right { margin-left: 10px; } }
.fx-map .e-node:not(.e-node--more) .e-frame { padding-bottom: 50px; }
.fx-map .e-frame::after { content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0; pointer-events: none; }
/* main: a neck and a foot */
.fx-map [data-dev="main"] .e-frame::after { width: 240px; height: 50px; background: linear-gradient(180deg, #171b21, #0d1014) center top / 34px 40px no-repeat, linear-gradient(180deg, #20252c, #0c0e11) center bottom / 240px 10px no-repeat; border-radius: 0 0 6px 6px; }
/* laptop: the keyboard deck */
.fx-map [data-dev="laptop"] .e-frame::after { width: 106%; height: 34px; bottom: 12px; border-radius: 3px 3px 16px 16px; background: linear-gradient(180deg, #23272e, #101317 30%, #0b0d10); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 16px 30px rgba(0, 0, 0, .6); -webkit-mask-image: linear-gradient(#000, #000); }
.fx-map [data-dev="laptop"] .e-frame::before { content: ""; position: absolute; z-index: 1; left: 50%; bottom: 36px; width: 15%; height: 5px; translate: -50% 0; border-radius: 0 0 6px 6px; background: #05070a; }
/* portrait: a tall arm */
.fx-map [data-dev="portrait"] .e-frame::after { width: 120px; height: 50px; background: linear-gradient(180deg, #171b21, #0d1014) center top / 16px 42px no-repeat, linear-gradient(180deg, #20252c, #0c0e11) center bottom / 120px 8px no-repeat; border-radius: 0 0 6px 6px; }
/* the small desk display: two feet */
.fx-map [data-dev="lower"] .e-frame::after { width: 62%; height: 50px; background: linear-gradient(180deg, #171b21, #0d1014) left top / 46px 22px no-repeat, linear-gradient(180deg, #171b21, #0d1014) right top / 46px 22px no-repeat, linear-gradient(180deg, #1a1e24, #0b0d10) center 22px / 100% 6px no-repeat; }
.fx-map [data-dev="risk"] .e-frame { padding-bottom: 0; }
.fx-map [data-dev="risk"] .e-frame::after { display: none; }

/* ═══ 8 · the film: each chapter is a scene; bars, a timecode, a cut between scenes ═══ */
.fx-cinema .e-eve { background: #010203; }
.fx-cinema .e-eve::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fx-cinema .e-line { padding-left: 0; gap: 0; }
.fx-cinema .e-line::before { display: none; }
.fx-cinema .e-node { min-height: 100svh; align-content: center; justify-items: center; text-align: center; gap: 26px; padding-block: 11vh; }
.fx-cinema .e-node > time { font: 800 clamp(56px, 9vw, 150px)/.86 var(--font-mono); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(214, 177, 92, .6); }
.fx-cinema .e-node > time::before { display: none; }
.fx-cinema .e-node > time span { display: block; margin: 16px 0 0; font: 600 12px/1 var(--font-mono); letter-spacing: .34em; text-transform: uppercase; -webkit-text-stroke: 0; color: var(--text-tertiary); }
.fx-cinema .e-row { grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; max-width: 1120px; gap: 30px; }
.fx-cinema .e-copy { justify-items: center; max-width: 760px; }
.fx-cinema .e-copy p { max-width: 58ch; }
.fx-cinema .e-copy .lane { display: none; }
.fx-cinema .e-q { font-size: clamp(30px, 2.4vw + 14px, 56px); }
.fx-cinema .e-media { width: 100%; }
.fx-cinema .e-node--more > .e-copy { justify-items: center; }
.fx-cinema .m-slots { width: 100%; text-align: left; }
.e-cut { display: grid; place-items: center; gap: 14px; padding-block: 5vh; font: 600 11.5px/1 var(--font-mono); letter-spacing: .34em; text-transform: uppercase; color: var(--text-tertiary); }
.e-cut::before { content: ""; width: 1px; height: 64px; background: linear-gradient(180deg, transparent, var(--accent-line)); }
.e-cut::after { content: ""; width: 1px; height: 64px; background: linear-gradient(0deg, transparent, var(--accent-line)); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fx-cinema .e-media { animation: e-push linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .fx-cinema .e-node > time { animation: e-title linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }
    .fx-cinema .e-copy { animation: e-rise linear both; animation-timeline: view(); animation-range: entry 30% cover 36%; }
    .e-cut { animation: e-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes e-push { from { opacity: .12; scale: .88; filter: brightness(.45) blur(4px); } to { opacity: 1; scale: 1; filter: none; } }
@keyframes e-title { from { opacity: 0; letter-spacing: .16em; } to { opacity: 1; letter-spacing: -.05em; } }
@keyframes e-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.e-bars::before, .e-bars::after { content: ""; position: fixed; left: 0; right: 0; z-index: 44; height: 0; background: #000; pointer-events: none; transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.e-bars::before { top: 0; }
.e-bars::after { bottom: 0; }
.is-film .e-bars::before { height: 78px; }
.is-film .e-bars::after { height: 54px; }
.e-hud { position: fixed; right: 0; bottom: 0; z-index: 45; height: 54px; display: flex; align-items: center; gap: 22px; padding: 0 max(22px, env(safe-area-inset-right, 0px)); font: 600 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-tertiary); opacity: 0; transition: opacity .6s; pointer-events: none; }
.is-film .e-hud { opacity: 1; }
.e-hud b { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.e-hud .rec { display: inline-flex; align-items: center; gap: 8px; }
.e-hud .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: e-blink 1.4s steps(1) infinite; }
@media (max-width: 900px) { .fx-cinema .e-node { min-height: 0; padding-block: 56px; } .e-hud .sc { display: none; } .is-film .e-bars::after, .e-hud { height: 40px; } }

/* ═══ 9 · the pulse: the line of the evening is a pulse; every chapter's figure is counted and drawn ═══ */
.fx-pulse .e-line::before { opacity: 0; }
.fx-pulse .e-line::after { display: none; }
.e-pulse { position: absolute; left: -26px; top: 0; width: 52px; height: 100%; overflow: visible; pointer-events: none; }
.e-pulse path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.e-pulse .p0 { stroke: rgba(214, 177, 92, .16); stroke-width: 1; }
.e-pulse .p1 { stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(214, 177, 92, .8)); }
.e-pulse circle { fill: #fff3d2; filter: drop-shadow(0 0 8px rgba(214, 177, 92, 1)); }
.fx-pulse .e-node > time::before { display: none; }
.e-fig { display: grid; gap: 8px; width: 100%; }
.e-fig .ef-n { display: flex; align-items: baseline; gap: 12px; }
.e-fig .ef-n b { font: 650 clamp(30px, 2.4vw + 10px, 50px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: rgb(var(--hue)); text-shadow: 0 0 30px rgb(var(--hue) / .3); }
.e-fig .ef-n span { font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.e-fig .ef-s { display: block; }
.e-fig svg { display: block; width: 100%; height: 46px; overflow: visible; }
.e-fig .ef-s.is-line { clip-path: inset(-4px 100% -4px 0); transition: clip-path 1.9s cubic-bezier(.4, 0, .2, 1) .2s; }
.e-node.is-awake .e-fig .ef-s.is-line { clip-path: inset(-4px 0 -4px 0); }
.e-fig .sl { fill: none; stroke: rgb(var(--hue)); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.e-fig .sa { fill: rgb(var(--hue) / .1); }
.e-fig .sb { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i) * 34ms); }
.e-fig .sb.up { fill: rgba(52, 211, 153, .85); }
.e-fig .sb.dn { fill: rgba(244, 96, 120, .85); transform-origin: 50% 0%; }
.e-fig .sz { stroke: rgba(255, 255, 255, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.e-node.is-awake .e-fig .sb { transform: none; }
.k-beat { display: block; width: min(420px, 100%); height: 26px; margin-top: 16px; overflow: visible; }
.k-beat path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: .22 .78; animation: k-beat 2.6s linear infinite; filter: drop-shadow(0 0 5px rgba(214, 177, 92, .7)); }
.k-beat .b0 { stroke: rgba(214, 177, 92, .2); stroke-dasharray: none; animation: none; filter: none; }
@keyframes k-beat { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ═══ the pool of light: the evening ends as it began, in the dark, with one light on the request ═══ */
.fx-pool .k-access { transition: background-color 1.6s; }
.fx-pool .k-access.is-out { background-color: #000; }
.fx-pool .k-access::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s .3s; background: radial-gradient(circle 52vmin at var(--px, 50%) var(--py, 64%), rgba(255, 236, 190, .1), rgba(255, 236, 190, .035) 46%, transparent 72%); }
.fx-pool .k-access.is-out::after { opacity: 1; }
.fx-pool .k-access.is-out .k-candles { opacity: .7; transition: opacity 1.6s; }

/* ═══ the lamp: the rest of the app lies in the dark behind the page; the pointer's light finds it ═══ */
/* .is-lamp is set by the script: with a mouse at any width, by touch only on a wide screen; a phone keeps the plain page.
   Every section from the evening down carries one layer: two screens of the app, left and right, under a sheet of the
   section's own colour. The layer spans the whole section and its inside sticks to the window. */
@property --ed-c { syntax: "<color>"; inherits: true; initial-value: #020304; }
.is-lamp .e-eve { background: #020304; }
.has-dark { position: relative; overflow-x: clip; } /* the heading's dark plate (.vs-head::before, 28 px out each side) made the page 8 px wider than a phone; clip, not hidden: the lamp's sticky screens keep sticking */
.has-dark > .wrap { position: relative; z-index: 1; }
.e-dark { --ed-c: var(--ed-c0, #020304); position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; transition: --ed-c 1.6s; }
.k-access.is-out .e-dark { --ed-c: #000; }
.k-access.is-out { --ed-m: #000; }
.ed-stick { position: sticky; top: 0; height: 100svh; overflow: clip; }
.ed-wins { position: absolute; inset: var(--eh, 68px) 0 0; overflow: clip; transform: translateZ(0); }
.ed-win { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s; }
.ed-win.is-on { opacity: 1; visibility: visible; transition: opacity .8s; }
.ed-pan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; will-change: transform; }
.ed-pan img { display: block; width: 100%; height: auto; }
.ed-pan img + img { box-shadow: -1px 0 0 rgba(255, 255, 255, .07); }
@media (max-width: 1600px) { .ed-pan { grid-template-columns: minmax(0, 1fr); } .ed-pan img + img { display: none; } } /* one screen across: two would be too small to read */
/* the sheet of darkness, and the hole the light makes in it: a warm core, then the sheet closes again */
.ed-shade { position: absolute; inset: 0; transform: translateZ(0); background: var(--ed-c); }
@supports (color: rgb(from red r g b / .5)) {
  .ed-shade { background:
      radial-gradient(circle var(--lr, 0px) at var(--lx, 50%) var(--ly, 50%), rgb(255 232 190 / .07), rgb(255 232 190 / .025) 40%, rgb(255 232 190 / 0) 66%),
      radial-gradient(circle var(--lr, 0px) at var(--lx, 50%) var(--ly, 50%), rgb(from var(--ed-c) r g b / .1) 0, rgb(from var(--ed-c) r g b / .14) 28%, rgb(from var(--ed-c) r g b / .32) 48%, rgb(from var(--ed-c) r g b / .66) 68%, rgb(from var(--ed-c) r g b / .92) 86%, var(--ed-c) 100%); }
}
/* Every part of the story is one solid block of the page: its time, its text and its screen stand on it together,
   and the light cannot pass behind it (the owner's rule, 2026-11-23: the app must not mix with the text). The app
   shows only beside the blocks and in the gaps between them. A section's heading stands on a block of its own. */
.is-lamp .e-node::before { content: ""; position: absolute; z-index: -2; inset: -22px -28px -26px calc(-1 * var(--pad) - 18px); border-radius: 22px; background: var(--ed-c0, #020304); box-shadow: 0 0 14px 6px var(--ed-c0, #020304); pointer-events: none; }
.is-lamp .has-dark .vs-head { position: relative; isolation: isolate; }
/* the tester's words are text too: the same tint, but on the section's own colour, so no screen shows through them */
.is-lamp .has-dark .vquote { background: linear-gradient(rgba(16, 28, 38, .35), rgba(16, 28, 38, .35)), var(--ed-c0, #020304); }
/* The request under the lamp pages: no light is carried over the candle chart. The chart is the background of the
   whole block, drawn across its full height (not a strip along the top), quiet enough for the cards to sit on it. */
.is-lamp .k-candles { height: 100%; opacity: .5; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%); }
.is-lamp.fx-pool .k-access.is-out .k-candles { opacity: .78; }
.is-lamp.fx-pool .k-access::after { display: none; }
.is-lamp .k-access .vs-head::before { transition: background-color 1.6s, box-shadow 1.6s; }
.is-lamp .has-dark .vs-head::before { content: ""; position: absolute; z-index: -1; inset: -22px -28px; border-radius: 22px; background: var(--ed-m, var(--ed-c0, #020304)); box-shadow: 0 0 14px 6px var(--ed-m, var(--ed-c0, #020304)); pointer-events: none; }
.e-darkcap { position: fixed; z-index: 30; left: 50%; bottom: 62px; translate: -50% 0; width: max-content; max-width: calc(100% - 40px); margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(5, 7, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); text-align: center; pointer-events: none; opacity: 0; transition: opacity .6s; }
.e-darkcap b { color: var(--accent); font-weight: 600; }
.e-darkcap.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* a chapter that is not being read is dimmed, not made see-through: the screens behind must not show through its own */
  .is-lamp.fx-glow .e-node:not(.is-now) { opacity: 1; filter: brightness(.34) saturate(.45); }
}

/* ═══ «chapters»: which chapter is being read and how far (e-kit.js FX.chapters, owner 2026-11-26) ═══
   A gold thread in the margin right of the clips, drawn as the evening's own line is drawn (.e-line, .fx-clock): a
   hairline of gold, a 3 px gold fill with its glow as far as the reader has come, 9 px gold points with a halo for the
   chapters reached, dark points ahead, the strike as a chapter is reached; the names beside the points (data-mode
   full), or the points only and a name when pointed at (slim); else a line under the header (bar). Fixed, so it moves
   nothing; no plate and no numbers (his pick «Зеркало» of five, 2026-11-26). */
.e-chap { position: fixed; z-index: 45; opacity: 0; pointer-events: none; transition: opacity .35s, translate .35s; }
.e-chap.is-on, .e-chap:focus-within { opacity: 1; pointer-events: auto; }
.e-chap .ec-bar, .e-chap .ec-side { display: none; }
/* at the side: the thread stands at --ec-x, in the middle of the screen below the header; the names to its right */
.e-chap:not([data-mode="bar"]) { left: var(--ec-x, calc(100% - 24px)); top: calc(50% + var(--ec-top, 0px) / 2); width: 0; translate: 0 -50%; }
.e-chap:not([data-mode="bar"]) .ec-side { display: block; }
.ec-side { --gold: 214 177 92; position: relative; }
.ec-side ol { position: relative; list-style: none; margin: 0; padding: 0; }
.ec-side li { position: relative; }
.ec-side a { position: relative; display: flex; align-items: center; width: calc(var(--ec-room, 120px) + 20px); min-height: 40px; padding: 6px 0 6px 20px; color: var(--text-quaternary); text-decoration: none; transition: color .25s; }
.ec-side .ec-l { font: 500 var(--ec-fs, 15px)/1.3 var(--font-sans); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.ec-side .is-past a { color: var(--text-tertiary); }
.ec-side .is-cur a { color: var(--accent); }
.ec-side a:hover { color: var(--text-primary); }
.ec-side a:focus-visible { outline: 0; }
.ec-side a:focus-visible .ec-l { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
/* the thread: the left line's hairline and its fill (e-kit.js measures where they start and how far the gold goes) */
.ec-track, .ec-fill { position: absolute; left: 0; translate: -50% 0; pointer-events: none; }
.ec-track { width: 1px; background: linear-gradient(180deg, var(--accent-line), rgb(var(--gold) / .1)); }
.ec-fill { width: 3px; border-radius: 3px; background: linear-gradient(180deg, rgb(var(--gold) / .15), var(--accent)); box-shadow: 0 0 14px rgb(var(--gold) / .45); }
/* the points: the left line's own, a little larger for the chapter being read */
.ec-side a > i { position: absolute; z-index: 1; left: 0; top: 50%; translate: -50% -50%; width: 9px; height: 9px; border-radius: 50%; background: #2b2619; box-shadow: 0 0 0 5px rgb(var(--gold) / .05); transition: background .4s, box-shadow .4s, width .3s, height .3s; }
.ec-side .is-past a > i { background: var(--accent); box-shadow: 0 0 0 5px rgb(var(--gold) / .12); }
.ec-side .is-cur a > i { width: 11px; height: 11px; background: var(--accent); box-shadow: 0 0 0 5px rgb(var(--gold) / .18), 0 0 16px rgb(var(--gold) / .55); }
.ec-side .is-hit a > i { animation: e-strike 1s ease-out; }
.ec-side a:hover > i { box-shadow: 0 0 0 5px rgb(var(--gold) / .22); }
/* text never over the lamp's pictures (owner's rule): behind the names the page's own black, feathered at the edges as
   the chapters' own text has it (.is-lamp .e-node::before), so no plate is seen, only nothing shows through */
.e-chap[data-mode="full"] .ec-side::before { content: ""; position: absolute; z-index: -1; left: -14px; top: -14px; bottom: -14px; width: calc(var(--ec-room, 120px) + 46px); border-radius: 22px; background: var(--ed-c0, #020304); box-shadow: 0 0 12px 4px var(--ed-c0, #020304); pointer-events: none; }
/* slim: the points only; a point's name comes out to its left while it is pointed at or focused */
.e-chap[data-mode="slim"] .ec-side a { width: 34px; margin-left: -17px; padding: 0; justify-content: center; }
.e-chap[data-mode="slim"] .ec-side a > i { left: 50%; }
.e-chap[data-mode="slim"] .ec-side .ec-l { position: absolute; right: calc(100% - 4px); top: 50%; translate: 0 -50%; padding: 9px 13px; border-radius: 10px; font-size: 15px; line-height: 1; white-space: nowrap; background: rgba(7, 8, 10, .96); box-shadow: inset 0 0 0 1px rgb(var(--gold) / .3), 0 12px 30px rgba(0, 0, 0, .55); color: var(--text-primary); text-shadow: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.e-chap[data-mode="slim"] .ec-side .is-cur .ec-l { box-shadow: inset 0 0 0 1px rgb(var(--gold) / .55), 0 12px 30px rgba(0, 0, 0, .55); color: var(--accent); }
.e-chap[data-mode="slim"] .ec-side a:hover .ec-l, .e-chap[data-mode="slim"] .ec-side a:focus-visible .ec-l { opacity: 1; }
/* bar: a line under the header, the chapter's name and a gold point per chapter on a thread, the evening's gold along
   its foot as far as the reader has come; it opens the header's list */
.e-chap[data-mode="bar"] { left: 0; right: 0; top: var(--ec-top, 68px); translate: 0 -6px; }
.e-chap[data-mode="bar"].is-on, .e-chap[data-mode="bar"]:focus-within { translate: 0 0; }
.e-chap[data-mode="bar"] .ec-bar { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; margin: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border: 0; border-bottom: 1px solid var(--border-faint); background: rgba(5, 6, 8, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-primary); font: 600 15px/1 var(--font-sans); text-align: left; cursor: pointer; }
.e-chap[data-mode="bar"] .ec-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, rgba(214, 177, 92, .2), var(--accent)); box-shadow: 0 0 10px rgba(214, 177, 92, .5); transform: scaleX(var(--kp, 0)); transform-origin: left; pointer-events: none; }
.ec-bar .ec-t { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ec-bar .ec-t:empty { display: none; }
/* where the header's clock already names the chapter (e-kit.js, .is-said), the line under the header does not say it
   again: it keeps its points (the place keeps its height, so nothing moves). Where the clock could only show the name
   cut short and the line names it whole, the clock's word gives way instead, keeping its place (.is-cut). */
.e-chap.is-said .ec-bar .ec-t { display: none; }
.e-clock span.is-cut { visibility: hidden; }
.ec-bar .ec-m { position: relative; flex: none; display: flex; align-items: center; gap: 9px; margin-left: auto; }
.ec-bar .ec-m::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: var(--accent-line); }
.ec-bar .ec-m i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #2b2619; }
.ec-bar .ec-m i.is-past { background: var(--accent); }
.ec-bar .ec-m i.is-cur { background: var(--accent); box-shadow: 0 0 0 3px rgba(214, 177, 92, .2), 0 0 10px rgba(214, 177, 92, .6); }
.ec-bar .ic { flex: none; width: 13px; height: 13px; color: var(--text-tertiary); transition: rotate .2s; }
.ec-bar[aria-expanded="true"] .ic { rotate: 180deg; }
.ec-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }
@media (max-width: 560px) { .e-chap[data-mode="bar"] .ec-bar { font-size: 14px; } .ec-bar .ec-m { gap: 6px; } .ec-bar .ec-m i { width: 6px; height: 6px; } }
/* a 360 px phone: the longest names («Портфель и реестр инвестора», «Portfolio und Investorenregister») keep whole */
@media (max-width: 380px) { .e-chap[data-mode="bar"] .ec-bar { gap: 9px; font-size: 13px; } .ec-bar .ec-m { gap: 4px; } .ec-bar .ec-m i { width: 5px; height: 5px; } }
@media (prefers-reduced-motion: reduce) {
  .e-chap { transition: opacity .2s; }
  .e-chap[data-mode="bar"] { translate: none; }
  .ec-side a, .ec-side a > i, .ec-side .ec-l, .ec-bar .ic { transition: none; }
  .ec-side .is-hit a > i { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-win, .ed-win.is-on, .e-darkcap { transition: none; }
  .e-wake, .e-rows, .e-scan { display: none; }
  .fx-glow .e-node:not(.is-now) { opacity: 1; filter: none; }
  .e-clock b i.tick, .e-clock b i.col, .k-beat path { animation: none; }
  .fx-glow .e-node.is-now .e-frame::before, .fx-clock .e-node.is-hit > time::before, .e-pad.bump { animation: none; }
}

/* ═══ no clock times on the page (owner, 2026-11-28: traders review at different hours) ═══
   The header keeps the chapter's name, a chapter's label is its name alone; the times stay as data
   (the clock's scroll, the gaps between chapters). */
.e-clock b { display: none; }
.e-node > time span:first-child { margin-left: 0; }
