/* src-3e1ac42f66/css/fonts.css */
/* Self-hosted fonts (OFL): Unbounded, Manrope, JetBrains Mono — variable weights, latin + cyrillic subsets (₴ is in latin-ext).
   Files in /fonts/ are immutable (the version is in the name); this stylesheet lives under /src/ and is re-checked like the rest. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-v1-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-v1-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-v1-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-v1-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/manrope-v1-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/manrope-v1-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/manrope-v1-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/manrope-v1-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-v1-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-v1-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-v1-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/fonts/unbounded-v1-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* src-3e1ac42f66/css/site.css */
/* Viacheslav Yermolenko — site base.
   Style «Монтажна» (A, html[data-theme='A']) — NLE black, warm white, REC red ·
   Unbounded (variable 200–900: liquid heads AND subheads) / Manrope / JetBrains Mono */

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --surface: #161618;
  --surface-2: #1e1e21;
  --line: rgba(241, 239, 234, 0.1);
  --line-strong: rgba(241, 239, 234, 0.22);
  --field-edge: rgba(241, 239, 234, 0.4);   /* input borders: 3:1 against bg and surface */
  --text: #f1efea;
  --muted: #a3a097;
  --accent: #ff453a;          /* REC */
  --accent-ink: #0b0b0c;     /* 5.8:1 on REC (white would be 3.4:1) */
  --link: #f1efea;
  --btn-bg: #f1efea;          /* primary button */
  --btn-ink: #0b0b0c;
  --on-media: #ffffff;
  --rec: #ff453a;
  --stage-bg: radial-gradient(120% 90% at 50% 40%, #18181b 0%, #0d0d0f 55%, #070708 100%);
  --card-bg: #161619;
  --card-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shade: #050506;
  --lt-ripple: 255 255 255;

  --f-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-liquid: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --display-w: 500;
  --line-w: 400;              /* the second-level statement under a wordmark */
  --display-ls: -0.025em;
  --display-vs: normal;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --tsb-right: 0px;
  --tsb-bottom: 0px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* type scale (2026-10-29): one size per role, nothing in between.
     Desktop (≥1440) → phone (≤767): sec 72→38 · sub 48→29 · big 28→22 · lead 19→17 · body/btn/ui/mono stay.
     Tablets and small laptops (768–1439): sec and sub run in proportion to the viewport (5vw = 72 px at 1440),
     so a single long word still fits a half-width column; at any width every head is the same size.
     Outside the scale on purpose: the intro VY|MIRY, the footer name, the hero h1 of the pages. */
  --fs-sec: clamp(38px, 5vw, 72px);       /* section heads (.sec-h): all the same; a long one wraps, never shrinks */
  --fs-sub: clamp(29px, 3.3334vw, 48px);  /* direction name (.fm-name, next-direction), an opened work's title */
  --fs-big: 28px;   /* big words: marquee, work titles, card heads, «Здача» */
  --fs-lead: 19px;  /* ledes next to a head, hero and contact leads */
  --fs-body: 16px;  /* running text, links, inputs */
  --fs-btn: 15px;   /* buttons, footer nav */
  --fs-ui: 13px;    /* menu, chips, captions, UI */
  --fs-mono: 11px;  /* mono labels, timecodes, kickers */
  color-scheme: dark;
}
/* whole pixels in between too (browsers without round() keep the plain clamp above) */
@supports (width: round(1.5px, 1px)) {
  :root { --fs-sec: round(clamp(38px, 5vw, 72px), 1px); --fs-sub: round(clamp(29px, 3.3334vw, 48px), 1px); }
}
@media (max-width: 767px) {
  :root { --fs-sec: 38px; --fs-sub: 29px; --fs-big: 22px; --fs-lead: 17px; }
}

html[data-tsb='v'] { --tsb-right: 86px; }
html[data-tsb='h'] { --tsb-bottom: 90px; }
@media (max-width: 767px) { html[data-tsb='h'] { --tsb-bottom: 62px; } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--gutter) + var(--tsb-right)) 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; hyphens: manual; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 200; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px; transform: translateY(-160%); transition: transform 0.2s; text-decoration: none; font-weight: 600; }
.skip:focus { transform: none; }

/* ---------- buttons, links, segmented ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--f-ui); font-weight: 600; font-size: var(--fs-btn); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--text);
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in oklab, var(--btn-bg) 86%, var(--bg)); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-ui); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-btn); }
.btn-xl { min-height: 60px; padding: 0 28px; font-size: var(--fs-btn); }
.btn-glass { background: rgba(11, 11, 12, 0.62); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-glass svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--link) 40%, transparent); padding-bottom: 2px; }
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover::after, a:hover > .link-arrow::after { transform: translateX(4px); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 82%, transparent); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: var(--fs-ui); font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 30px; transition: color 0.2s, background-color 0.25s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--text); color: var(--bg); }

.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); flex: none; }

/* kicker = a clip label: colour chip + number + name */
.kick { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kick i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: block; flex: none; }
.kick span:first-of-type { color: var(--text); }

/* section heads */
.sec-h {
  font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs);
  letter-spacing: var(--display-ls); line-height: 1; margin: 0 0 22px; font-size: var(--fs-sec); text-wrap: balance;
}
.sec-h.lt { font-family: var(--lt-font); }
/* phones: liquid heads break their lines in 90% of the column — the intro wave and the finger widen a few letters,
   so the headroom is in the measure, not in a smaller font (all section heads stay one size) */
@media (max-width: 767px) { .sec-h > .lt-inner, .pg-next-name > .lt-inner { max-width: 90%; } }

/* NLE clip header at the top edge of a section: the "splice" between two clips */
.clip-head {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; height: 26px;
  margin: 0 calc(var(--tsb-right)) 0 0; padding: 0 var(--gutter);
  font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--muted); letter-spacing: 0.04em;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in oklab, var(--bg-2) 92%, transparent), transparent 70%);
}
.clip-head i { width: 18px; height: 10px; border-radius: 2px; background: var(--c); display: block; }
.clip-head b { font-weight: 500; color: var(--text); }
.clip-head em { margin-left: auto; font-style: normal; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; z-index: 70; left: 0; right: var(--tsb-right); top: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px var(--gutter); pointer-events: none;
  transition: transform 0.45s var(--ease-out);
}
.topbar > * { pointer-events: auto; }
.topbar.hide { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); font-size: var(--fs-ui); letter-spacing: -0.005em; color: var(--text); padding: 8px 12px 8px 10px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 70%, transparent); }
.topbar-r { display: flex; align-items: center; gap: 8px; }
.topbar-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 82%, transparent);
  font-size: var(--fs-ui); font-weight: 600; color: var(--text); text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.topbar-link:hover { border-color: var(--line-strong); background: var(--surface); }
html.on-media .brand, html.on-media .seg, html.on-media .topbar-link { color: #fff; }

@media (max-width: 767px) {
  .topbar { padding: 10px 12px; gap: 6px; }
  .topbar-link { display: none; }
  .topbar-cta { min-height: 34px; padding: 0 11px; font-size: var(--fs-ui); }
  .brand { font-size: var(--fs-ui); padding: 7px 10px 7px 9px; gap: 7px; }
  .seg button { padding: 5px 8px; font-size: var(--fs-ui); min-height: 30px; }
}
/* the call to action never wraps or runs off the screen (audit 2026-11-26): on narrow phones the short label;
   the full text stays the accessible name, the visible short one is hidden from screen readers (content / "") */
.topbar-cta { white-space: nowrap; flex: none; }
@media (max-width: 430px) {
  .topbar-cta { font-size: 0 !important; gap: 0; }
  .topbar-cta > * { font-size: 0; }
  .topbar-cta::after { content: "Обговорити"; content: "Обговорити" / ""; font-size: var(--fs-ui); }
  html[lang="en"] .topbar-cta::after { content: "Let's talk"; content: "Let's talk" / ""; }
  /* the short mark VY + playhead (brand system: the abbreviation of VY│MIRY) frees the room for the call to action */
  .brand-vy > span { display: none; }
  .topbar-r { gap: 6px; }
}
@media (max-width: 359px) {
  .topbar { padding-left: 8px; padding-right: 8px; }
  .topbar-r { gap: 4px; }
  .seg button { padding: 5px 5px; }
  .topbar-cta { padding: 0 9px; }
  .pg-dirs summary svg { display: none; }
  .pg-dirs summary { padding: 0 9px; }
  .topbar { gap: 4px; }
  .brand { padding: 7px 6px; }
}

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + var(--tsb-bottom) + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: var(--fs-ui); font-weight: 600; transition: opacity 0.3s, transform 0.3s var(--ease-out); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- detail (framed modal open of a work over dimmed/blurred page) ---------- */
.detail {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(4, 4, 5, 0.74);
  backdrop-filter: blur(12px) saturate(0.82);
  -webkit-backdrop-filter: blur(12px) saturate(0.82);
  color: #fff; display: grid; place-items: center;
  padding: clamp(16px, 3.2vw, 44px) clamp(16px, 4vw, 56px) clamp(76px, 11vh, 112px);
}
.detail[hidden] { display: none; }
.d-frame {
  position: relative;
  width: min(86vw, 1280px, calc(74vh * var(--ar, 1.7778)));
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 76vh;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 36px 96px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.45);
  overflow: hidden; transform-origin: 50% 50%; will-change: transform;
  background: #070709;
}
.d-frame.portrait {
  width: auto;
  height: min(78vh, calc(88vw / var(--ar, 0.5625)));
  max-width: 88vw; max-height: 78vh;
  aspect-ratio: var(--ar, 9 / 16);
}
.d-bg { display: none !important; }
.d-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.d-fg.contain { object-fit: contain; }
.d-grad { display: none; }
.d-info {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(clamp(16px, 2.6vh, 32px) + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; pointer-events: none;
}
.d-info > * { pointer-events: auto; }
.d-info .mask { overflow: hidden; padding-bottom: 2px; }
.d-info .mask > * { will-change: transform; }
.d-kick { display: inline-flex; gap: 10px; align-items: center; font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.78); text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.d-kick::before { content: ''; width: 18px; height: 1px; background: var(--rec); }
.d-info h2 { margin: 0; font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.05; letter-spacing: var(--display-ls); text-shadow: 0 2px 16px rgba(0,0,0,.75); }
.d-sub-m { margin-top: 0; }
.d-sub { display: block; font-size: var(--fs-body); line-height: 1.4; color: rgba(255,255,255,.75); text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.d-info .btn-primary { background: #fff; color: #0b0b0c; }
.d-top { position: absolute; right: var(--gutter); top: calc(clamp(14px, 2.4vw, 26px) + env(safe-area-inset-top)); display: flex; gap: 8px; z-index: 2; }
.d-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.32); background: rgba(10,10,12,.62); color: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s, background-color 0.2s; }
.d-btn:hover { border-color: #fff; background: rgba(20,20,24,.85); }
.d-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.d-btn:focus-visible { outline: 2px solid #fff; }
.d-btn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- shared top bar pieces (home + direction pages) ---------- */
/* topbar mark: VY | MIRY in miniature */
.brand-vy { display: inline-flex; align-items: center; gap: 0; font-family: var(--f-display); letter-spacing: -0.01em; }
.brand-vy b { font-weight: 700; }
.brand-vy span { font-weight: 300; }
.brand-vy i { display: inline-block; width: 2px; height: 1.05em; background: var(--rec); margin: 0 0.18em; }

/* directions menu */
.pg-dirs { position: relative; }
.pg-dirs summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 82%, transparent);
  font-size: var(--fs-ui); font-weight: 600; color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}
.pg-dirs summary:hover, .pg-dirs[open] summary { border-color: var(--line-strong); background: var(--surface); }
.pg-dirs summary::-webkit-details-marker { display: none; }
.pg-dirs summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease-out); }
.pg-dirs[open] summary svg { transform: rotate(180deg); }
.pg-dirs-list {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  transform-origin: top right; animation: pgDirsDrop 0.24s var(--ease-out) both;
}
.pg-dirs-list::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.pg-dirs[open] .pg-dirs-list li { animation: pgDirsItem 0.26s var(--ease-out) both; }
.pg-dirs[open] .pg-dirs-list li:nth-child(2) { animation-delay: 0.018s; }
.pg-dirs[open] .pg-dirs-list li:nth-child(3) { animation-delay: 0.036s; }
.pg-dirs[open] .pg-dirs-list li:nth-child(4) { animation-delay: 0.054s; }
.pg-dirs[open] .pg-dirs-list li:nth-child(5) { animation-delay: 0.072s; }
.pg-dirs[open] .pg-dirs-list li:nth-child(6) { animation-delay: 0.090s; }
.pg-dirs[open] .pg-dirs-list li:nth-child(7) { animation-delay: 0.108s; }
@keyframes pgDirsDrop { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pgDirsItem { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.pg-dirs-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: var(--fs-ui); font-weight: 600; color: var(--text); }
.pg-dirs-list a:hover { background: var(--surface-2); }
.pg-dirs-list a[aria-current='page'] { background: color-mix(in oklab, var(--c) 22%, var(--surface)); }
.pg-dirs-list i { width: 14px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.pg-dirs-list b { font-weight: 500; font-size: var(--fs-mono); color: var(--muted); }
html.on-media .pg-dirs summary { color: #fff; }
/* phones: the menu stays in the topbar as a compact chip; the list opens full-width under the bar */
@media (max-width: 900px) {
  .pg-dirs summary { min-height: 34px; padding: 0 10px; gap: 6px; font-size: var(--fs-ui); }
  .pg-dirs-list { position: fixed; left: 12px; right: 12px; top: 58px; min-width: 0; max-height: calc(100svh - 80px); overflow: auto; }
  .pg-dirs-list a { padding: 12px; }
}

/* lenis@1.1.13 base styles (inlined: one render-blocking third-party request less on every page) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* sections off screen: endless decorative CSS loops wait (main.js / shell.js toggle .offscreen) */
.offscreen, .offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }

/* keyboard focus is never hidden: the topbar comes back while it holds focus; the phone strip keeps focus above it */
.topbar:has(:focus-visible) { transform: none; }
html { scroll-padding-bottom: calc(var(--tsb-bottom, 0px) + 12px); }

/* src-3e1ac42f66/css/scrollbar.css */
/* Timeline scrollbar (from lab/fx/timeline-scrollbar). The strip is an NLE panel: always dark. */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

.tsb {
  --tsb-bg: rgba(14, 14, 16, 0.94);
  --red: var(--rec, #ff453a);
  --text: #f1efea; --muted: #a3a097; --line: rgba(255, 255, 255, 0.1); --line-strong: rgba(255, 255, 255, 0.2);
  --font-mono: var(--f-mono); --font-ui: var(--f-ui);
  position: fixed; z-index: 60; display: flex; gap: 6px;
  background: var(--tsb-bg); border: 1px solid var(--line-strong); border-radius: 12px;
  /* no backdrop-filter: blurring a playing background video every frame halves the frame rate */
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .9);
  font-family: var(--font-mono); color: var(--text); user-select: none; -webkit-user-select: none;
}
.tsb-track { position: relative; flex: 1 1 auto; touch-action: none; cursor: pointer; }
.tsb.scrubbing .tsb-track { cursor: grabbing; }
.tsb-clips { position: absolute; }
.tsb-clip {
  position: absolute; padding: 0; margin: 0; border: 0; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--c) 55%, #000); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: filter .2s, box-shadow .2s, opacity .2s; opacity: .78; color: #fff;
}
.tsb-clip:hover { filter: brightness(1.18); opacity: 1; }
.tsb-clip.on { opacity: 1; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .92); }
.tsb-clip:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; z-index: 2; }
.tsb-film {
  position: absolute; inset: 0; background-image: var(--poster, none); opacity: .55; pointer-events: none;
}
.tsb-film::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--c) 25%, transparent); }
.tsb-name {
  position: absolute; display: flex; gap: 6px; align-items: center; white-space: nowrap; pointer-events: none;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-mono); letter-spacing: .01em; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.tsb-name b { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono); opacity: .75; }
.tsb-name .short { display: none; }
.tsb-clip::before { content: ''; position: absolute; background: var(--c); z-index: 1; }

.tsb-ruler { position: absolute; pointer-events: auto; cursor: ew-resize; }
.tsb-head { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; z-index: 3; }
.tsb-line { position: absolute; background: var(--red); box-shadow: 0 0 8px color-mix(in srgb, var(--red) 60%, transparent); }
.tsb-flag { position: absolute; background: var(--red); pointer-events: auto; cursor: grab; }
.tsb-bubble {
  position: absolute; background: var(--red); color: #fff; font-size: var(--fs-mono); font-weight: 500; padding: 3px 7px; border-radius: 6px;
  white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.tsb:hover .tsb-bubble, .tsb.scrubbing .tsb-bubble { opacity: 1; }
.tsb-tc { display: flex; flex-direction: column; justify-content: center; gap: 2px; pointer-events: none; }
.tsb-tc-main { font-size: var(--fs-mono); font-weight: 500; letter-spacing: .02em; }
.tsb-tc-sec { font-family: var(--font-ui); font-size: var(--fs-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- vertical: right edge ---------- */
.tsb[data-mode='v'] { right: 10px; top: 12px; bottom: 12px; width: 66px; flex-direction: column; padding: 8px 6px; }
.tsb[data-mode='v'] .tsb-tc { align-items: center; text-align: center; }
.tsb[data-mode='v'] .tsb-tc-main { font-size: var(--fs-mono); }
.tsb[data-mode='v'] .tsb-tc-sec { display: none; }
.tsb[data-mode='v'] .tsb-ruler {
  left: 0; top: 0; bottom: 0; width: 8px;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 1px, transparent 1px calc(var(--tick, 8px) * 5)) left top / 8px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 1px, transparent 1px var(--tick, 8px)) left top / 4px 100% no-repeat;
}
.tsb[data-mode='v'] .tsb-clips { left: 11px; right: 0; top: 0; bottom: 0; }
.tsb[data-mode='v'] .tsb-clip { left: 0; right: 0; border-bottom: 3px solid #09090b; }
.tsb[data-mode='v'] .tsb-clip:last-child { border-bottom: 0; }
.tsb[data-mode='v'] .tsb-clip > .tsb-film { background-size: 100% auto; background-repeat: repeat-y; }
.tsb[data-mode='v'] .tsb-clip::before { left: 0; top: 0; bottom: 0; width: 3px; }
.tsb[data-mode='v'] .tsb-name { left: 50%; top: 50%; writing-mode: vertical-rl; transform: translate(-50%, -50%); }
.tsb[data-mode='v'] .tsb-clip.use-short .tsb-name .full { display: none; }
.tsb[data-mode='v'] .tsb-clip.use-short .tsb-name .short { display: inline; }
.tsb[data-mode='v'] .tsb-clip.num-only .tsb-name { writing-mode: horizontal-tb; }
.tsb[data-mode='v'] .tsb-clip.num-only .tsb-name .full,
.tsb[data-mode='v'] .tsb-clip.num-only .tsb-name .short { display: none; }
.tsb[data-mode='v'] .tsb-head { right: -6px; left: -4px; height: 0; }
.tsb[data-mode='v'] .tsb-line { left: 0; right: 0; top: -1px; height: 2px; }
.tsb[data-mode='v'] .tsb-flag { left: -4px; top: -6px; width: 12px; height: 12px; clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%); }
.tsb[data-mode='v'] .tsb-bubble { right: calc(100% + 12px); top: -11px; }

/* ---------- horizontal: bottom ---------- */
.tsb[data-mode='h'] { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 64px; padding: 6px 8px; align-items: stretch; }
.tsb[data-mode='h'] .tsb-tc { width: 112px; flex: none; padding: 0 6px; border-right: 1px solid var(--line); margin-right: 4px; }
.tsb[data-mode='h'] .tsb-ruler {
  left: 0; right: 0; top: 0; height: 12px;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,.42) 0 1px, transparent 1px calc(var(--tick, 8px) * 5)) left bottom / 100% 10px no-repeat,
    repeating-linear-gradient(to right, rgba(255,255,255,.18) 0 1px, transparent 1px var(--tick, 8px)) left bottom / 100% 5px no-repeat;
}
.tsb[data-mode='h'] .tsb-clips { left: 0; right: 0; top: 15px; bottom: 0; }
.tsb[data-mode='h'] .tsb-clip { top: 0; bottom: 0; border-right: 2px solid #0b0b0c; }
.tsb[data-mode='h'] .tsb-clip:last-child { border-right: 0; }
.tsb[data-mode='h'] .tsb-clip > .tsb-film { background-size: auto 100%; background-repeat: repeat-x; }
.tsb[data-mode='h'] .tsb-clip::before { left: 0; right: 0; top: 0; height: 3px; }
.tsb[data-mode='h'] .tsb-name { left: 7px; top: 50%; transform: translateY(-50%); }
.tsb[data-mode='h'] .tsb-clip.use-short .tsb-name .full { display: none; }
.tsb[data-mode='h'] .tsb-clip.use-short .tsb-name .short { display: inline; }
.tsb[data-mode='h'] .tsb-clip.num-only .tsb-name .full,
.tsb[data-mode='h'] .tsb-clip.num-only .tsb-name .short { display: none; }
.tsb[data-mode='h'] .tsb-head { top: -4px; bottom: -2px; width: 0; }
.tsb[data-mode='h'] .tsb-line { top: 0; bottom: 0; left: -1px; width: 2px; }
.tsb[data-mode='h'] .tsb-flag { left: -6px; top: 0; width: 12px; height: 12px; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.tsb[data-mode='h'] .tsb-bubble { bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); }

/* ---------- phone: compact strip ---------- */
.tsb.compact[data-mode='h'] { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 46px; padding: 4px 6px; border-radius: 10px; }
/* vertical swipes that start on the strip scroll the page (scrollbar.js decides by the first movement) */
.tsb[data-mode='h'] .tsb-track { touch-action: pan-y; }
.tsb.compact .tsb-tc { width: 78px; padding: 0 4px 0 2px; }
.tsb.compact .tsb-tc-main { font-size: var(--fs-mono); }
.tsb.compact .tsb-tc-sec { font-size: var(--fs-mono); }
.tsb.compact .tsb-ruler { height: 8px; }
.tsb.compact .tsb-clips { top: 10px; }
.tsb.compact .tsb-name { left: 4px; font-size: var(--fs-mono); gap: 3px; }
.tsb.compact .tsb-name b { display: none; }
.tsb.compact .tsb-name .full { display: none; }
.tsb.compact .tsb-name .short { display: inline; }
.tsb.compact .tsb-clip.tiny .tsb-name { display: none; }
.tsb.compact .tsb-bubble { display: none; }
.tsb.compact .tsb-flag { width: 10px; height: 9px; left: -5px; }

@media (prefers-reduced-motion: reduce) {
  .tsb-clip, .tsb-bubble { transition: none; }
}

/* ---------- v1: nested sequence (a group of sections = one clip with sub-clips) ---------- */
.tsb-clip.is-group { background: #1d1d22; --c: #8a877e; }
.tsb-clip.is-group.on { background: #222228; }
.tsb-clip.is-group > .tsb-film { display: none; }
.tsb-clip.is-group::before { background: #8a877e; opacity: 0.75; }
.tsb-subs { position: absolute; inset: 0; pointer-events: none; }
.tsb-sub {
  position: absolute; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 45%, #111114);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  border-radius: 3px;
  transition: background-color .25s, box-shadow .25s;
  overflow: hidden;
}
.tsb-sub::before { content: ''; position: absolute; background: var(--c); }
.tsb-sub.on {
  background: color-mix(in srgb, var(--c) 76%, #111114);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.tsb-sub-t {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  color: rgba(241, 239, 234, 0.78); letter-spacing: 0.01em;
  white-space: nowrap; pointer-events: none;
}
.tsb-sub.on .tsb-sub-t { color: #fff; }
.tsb-sub.hide-t .tsb-sub-t, .tsb.compact .tsb-sub-t { display: none; }
.tsb[data-mode='v'] .tsb-clip.is-group > .tsb-name { left: 9px; top: 50%; transform: translate(-50%, -50%); }
.tsb[data-mode='v'] .tsb-subs { left: 18px; right: 1px; top: 1px; bottom: 1px; }
.tsb[data-mode='v'] .tsb-sub { left: 0; right: 0; border-bottom: 2px solid #0b0b0c; }
.tsb[data-mode='v'] .tsb-sub:last-child { border-bottom: 0; }
.tsb[data-mode='v'] .tsb-sub::before { left: 0; top: 0; bottom: 0; width: 3px; }
.tsb[data-mode='v'] .tsb-sub-t { writing-mode: vertical-rl; padding-left: 2px; }
.tsb[data-mode='h'] .tsb-subs { left: 1px; right: 1px; top: 18px; bottom: 1px; }
.tsb[data-mode='h'] .tsb-clip.is-group > .tsb-name { top: 9px; transform: translateY(-50%); font-size: 11px; }
.tsb[data-mode='h'] .tsb-sub { top: 0; bottom: 0; border-right: 2px solid #0b0b0c; }
.tsb[data-mode='h'] .tsb-sub:last-child { border-right: 0; }
.tsb[data-mode='h'] .tsb-sub::before { left: 0; right: 0; top: 0; height: 3px; }
.tsb-clip.is-group .tsb-name { z-index: 1; }
/* names are the point now (9 clips instead of 14): bigger, numbers quieter */
.tsb-name { font-size: var(--fs-mono); }
.tsb-name b { opacity: .78; }

/* hover tooltip: poster + name + in-point */
.tsb-tip {
  position: absolute; z-index: 5; pointer-events: none; display: flex; gap: 10px; align-items: center;
  padding: 6px 12px 6px 6px; border-radius: 10px; background: rgba(14, 14, 16, .96); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .9); white-space: nowrap; opacity: 0; transition: opacity .18s, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.tsb-tip-img { width: 72px; height: 41px; border-radius: 5px; flex: none; background: #222 center / cover no-repeat; box-shadow: inset 0 -3px 0 var(--c); }
.tsb-tip.no-img .tsb-tip-img { background: color-mix(in srgb, var(--c) 55%, #000); }
.tsb-tip-t { display: grid; gap: 2px; }
.tsb-tip b { font-family: var(--font-ui); font-size: var(--fs-ui); font-weight: 600; color: var(--text); }
.tsb-tip em { font-style: normal; font-size: var(--fs-mono); color: var(--muted); letter-spacing: .03em; }
.tsb[data-mode='v'] .tsb-tip { right: calc(100% + 14px); top: 0; transform: translate3d(6px, calc(var(--at, 0px) - 50%), 0); }
.tsb[data-mode='v'].tipping .tsb-tip { opacity: 1; transform: translate3d(0, calc(var(--at, 0px) - 50%), 0); }
.tsb[data-mode='h'] .tsb-tip { bottom: calc(100% + 12px); left: 0; transform: translate3d(calc(var(--at, 0px) - 50%), 6px, 0); }
.tsb[data-mode='h'].tipping .tsb-tip { opacity: 1; transform: translate3d(calc(var(--at, 0px) - 50%), 0, 0); }
.tsb.scrubbing .tsb-tip, .tsb.compact .tsb-tip { display: none; }
@media (hover: none) { .tsb-tip { display: none; } }
/* while the tooltip names the clip, the timecode bubble steps aside */
.tsb.tipping .tsb-bubble { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tsb-tip { transition: none; } }

/* ---------- polish 2026-10-29: colour lives only in the current clip; the rest of the strip is quiet ---------- */
.tsb-clip { transition: filter .2s, box-shadow .2s, opacity .2s, background-color .35s; }
.tsb-film { transition: opacity .35s; }
.tsb-clip:not(.on):not(.is-group) { background: #19191c; opacity: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.tsb-clip:not(.on) > .tsb-film { opacity: 0; }
.tsb-clip:not(.on)::before { opacity: .45; }
.tsb-clip:not(.on) .tsb-name { color: var(--muted); text-shadow: none; }
.tsb-clip:not(.on):hover { filter: none; background: #222226; }
.tsb-sub:not(.on) { background: #18181b; }
.tsb-sub:not(.on)::before { opacity: .45; }
/* phone strip: steps aside while reading downward (scrollbar.js adds .away) */
.tsb.compact { transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .3s; }
.tsb.compact.away { transform: translate3d(0, calc(100% + 16px), 0); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tsb.compact { transition: none; } }

/* src-3e1ac42f66/css/liquid-type.css */
/* LiquidType (from lab/fx/liquid-type) — component styles. Font: any variable font with a wght axis (wdth optional).
   Tokens: --lt-font, --lt-rest (ink at rest), --lt-hot (ink under the mass), --lt-ls, --lt-glow. */

.lt {
  --lt-font: var(--f-liquid, 'Unbounded'), sans-serif;
  --lt-rest: color-mix(in oklab, var(--text, #f1f0ec) 86%, transparent);
  --lt-hot: color-mix(in oklab, var(--text, #fff) 70%, var(--accent, #fff));
  --lt-glow: 0.5;
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--lt-font);
  font-weight: 400;
  font-optical-sizing: auto;
  font-kerning: normal;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--lt-rest);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: text;
}
.lt-inner { position: relative; display: block; }
.lt-line { display: block; white-space: nowrap; }
.lt-word { display: inline-block; white-space: nowrap; }
.lt-ch {
  display: inline-block;
  font-variation-settings: 'wght' var(--w, 300), 'wdth' var(--d, 100), 'opsz' 144;
  letter-spacing: calc(var(--m, 0) * var(--lt-ls, -0.03em));
  color: color-mix(in oklab, var(--lt-hot) calc(var(--m, 0) * 100%), var(--lt-rest));
  text-shadow: 0 0 calc(var(--m, 0) * 0.42em) rgb(var(--lt-ripple, 255 255 255) / calc(var(--m, 0) * var(--lt-glow)));
}
.lt[data-liquid='weight'] { --lt-ls: -0.065em; }
.lt[data-liquid='width'] { --lt-ls: -0.015em; }
.lt[data-liquid='breathe'] { --lt-ls: -0.02em; --lt-glow: 0.38; }

/* glow + ripples layer (drawn by JS) */
.lt-fx {
  position: absolute; left: 0; right: 0; top: -45%; bottom: -45%;
  width: 100%; height: 190%;
  z-index: -1; pointer-events: none;
  /* feather the edges so the glow never shows the canvas box */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}

/* appear: letters rise out of a blur, then the mass wave runs through */
.lt.lt-pre .lt-ch { opacity: 0; }
.lt.lt-intro .lt-ch {
  opacity: var(--a, 0);
  transform: translateY(calc((1 - var(--a, 0)) * 0.32em));
  filter: blur(calc((1 - var(--a, 0)) * 10px));
}

@media (prefers-reduced-motion: reduce) {
  .lt .lt-ch { opacity: 1 !important; transform: none !important; filter: none !important; }
  .lt-fx { display: none; }
}

/* src-3e1ac42f66/pages/pages.css */
/* Direction pages — shared shell on top of src/css/site.css (+ scrollbar.css, liquid-type.css).
   Prefix pg- / reel / lbx so nothing collides with the home page sections. */
/* lbx.css and talk.css are linked from each page's <head> (an @import here would load them one step later) */

/* top bar directions menu and the VY|MIRY mark live in src/css/site.css (shared with the home page) */

/* ---------- sections ---------- */
.pg-sec { position: relative; padding: 0 0 clamp(72px, 12vh, 140px); }
.pg-sec > .clip-head { margin-bottom: clamp(56px, 9vh, 110px); }
.pg-sec.alt { background: var(--bg-2); }
.pg-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 5vh, 56px); }
.pg-head .sec-h { margin: 0; font-size: var(--fs-sec); } /* the scale's section head (72/38), below the hero h1 */
.pg-head p { margin: 0; color: var(--muted); max-width: 46ch; font-size: var(--fs-lead); }
.pg-hint { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.pg-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pg-chip::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--accent)); }

/* ---------- direction timeline bar at the top of each direction page ---------- */
.pg-tl { width: 100%; margin-bottom: clamp(20px, 3.2vh, 36px); position: relative; z-index: 4; }
.pg-tl-track {
  display: flex; align-items: stretch; gap: 4px;
  padding: 4px; border-radius: 10px;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  animation: pg-tl-in 0.55s var(--ease-out) both;
}
@keyframes pg-tl-in {
  from { opacity: 0; transform: translateY(-6px) scaleX(0.96); }
  to { opacity: 1; transform: none; }
}
.pg-tl-item {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7px 10px 6px; border-radius: 6px;
  text-decoration: none; color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  transition: flex 0.35s var(--ease-out), background-color 0.2s, color 0.2s;
  overflow: hidden;
}
.pg-tl-item:hover, .pg-tl-item:focus-visible {
  color: var(--text);
  background: color-mix(in oklab, var(--c) 14%, var(--surface-2));
}
.pg-tl-item.is-cur {
  flex: 1.85 1 0;
  color: var(--text);
  background: color-mix(in oklab, var(--c) 20%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 45%, transparent);
}
.pg-tl-item.is-past { opacity: 0.82; }
.pg-tl-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--c); opacity: 0.72; transition: opacity 0.2s;
}
.pg-tl-item:hover .pg-tl-bar, .pg-tl-item.is-cur .pg-tl-bar { opacity: 1; height: 3px; }
.pg-tl-ph {
  position: absolute; left: 7px; top: 0; bottom: 0; width: 2px;
  background: var(--rec); pointer-events: none;
}
.pg-tl-ph::before {
  content: ''; position: absolute; left: -3px; top: 0;
  border: 4px solid transparent; border-top: 5px solid var(--rec);
}
.pg-tl-txt {
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12px; line-height: 1.15; font-weight: 600;
}
.pg-tl-item.is-cur .pg-tl-txt { padding-left: 6px; }
.pg-tl-txt b { font-size: var(--fs-mono); font-weight: 500; color: var(--muted); letter-spacing: 0.04em; flex: none; }
.pg-tl-item.is-cur .pg-tl-txt b { color: var(--text); }
.pg-tl-name, .pg-tl-full { overflow: hidden; text-overflow: ellipsis; }
.pg-tl-item.is-cur:has(.pg-tl-full) .pg-tl-name { display: none; }
@media (max-width: 900px) {
  .pg-tl-item:not(.is-cur) .pg-tl-name { display: none; }
  .pg-tl-item.is-cur .pg-tl-full { display: none; }
  .pg-tl-item.is-cur:has(.pg-tl-full) .pg-tl-name { display: inline; }
  .pg-tl-item:not(.is-cur) { flex: 0.72 1 0; align-items: center; padding: 7px 4px 6px; }
  .pg-tl-item.is-cur { flex: 2.2 1 0; }
}
@media (max-width: 480px) {
  .pg-tl { margin-bottom: 16px; }
  .pg-tl-track { gap: 3px; padding: 3px; }
  .pg-tl-item:not(.is-cur) { padding: 6px 2px 5px; }
  .pg-tl-txt { font-size: 11px; gap: 5px; }
}

/* ---------- hero ---------- */
.pg-hero {
  position: relative; min-height: min(100svh, 1000px); display: grid; align-content: center;
  padding: clamp(78px, 11vh, 112px) 0 clamp(48px, 8vh, 88px);
  background: radial-gradient(90% 70% at 78% 40%, color-mix(in oklab, var(--dir) 12%, var(--bg)) 0%, var(--bg) 70%);
}
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4.5vw, 80px); align-items: center; }
/* wide screens: kick + h1 span the whole row, the copy and the monitor sit side by side under it.
   The last 1fr row soaks up the monitor's extra height so the copy rows stay tight. */
@media (min-width: 901px) {
  .pg-hero-copy { display: contents; }
  .pg-hero-grid { grid-template-areas: 'kick kick' 'h1 h1' 'lead hm' 'body hm' 'act hm' '. hm'; grid-template-rows: auto auto auto auto auto 1fr; row-gap: 0; align-items: start; }
  .pg-hero .kick { grid-area: kick; }
  .pg-hero h1 { grid-area: h1; margin-bottom: clamp(28px, 4vh, 44px); }
  .pg-hero .pg-lead { grid-area: lead; }
  .pg-hero .pg-body { grid-area: body; }
  .pg-hero .pg-act { grid-area: act; }
  .pg-hero .hm { grid-area: hm; }
}
.pg-hero .kick { margin-bottom: 22px; }
.pg-hero h1 { font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); letter-spacing: var(--display-ls); line-height: 0.98; margin: 0 0 26px; font-size: clamp(44px, 6.6vw, 112px); }
.pg-hero h1.lt { font-family: var(--lt-font); }
.pg-lead { font-size: var(--fs-lead); line-height: 1.4; margin: 0 0 16px; max-width: 32ch; font-weight: 500; }
.pg-body { color: var(--muted); margin: 0 0 14px; max-width: 48ch; font-size: var(--fs-body); }
.pg-act { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 26px; }

/* program monitor */
.hm { position: relative; }
.hm-bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-radius: 14px 14px 0 0; background: var(--surface); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--muted); letter-spacing: 0.04em; }
.hm-bar .rec { color: var(--rec); }
.hm-bar .hm-tc { color: var(--text); font-variant-numeric: tabular-nums; }
.hm-bar .hm-name { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.hm-frame { position: relative; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; background: #050506; border-radius: 0 0 14px 14px; }
.hm-frame img, .hm-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hm-frame video { opacity: 0; transition: opacity 0.2s linear; }
.hm-frame video.on { opacity: 1; }
.hm-frame video.fit { object-fit: contain; }
.hm-frame img.blur { filter: blur(22px) brightness(0.5); transform: scale(1.15); }
.hm.cut .hm-frame::after { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0.08; }
/* N2: the safe frame and crosshair stay out of the picture until the pointer is over the monitor */
.hm-safe { position: absolute; inset: 6% 5%; border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 4px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.3s; }
@media (hover: hover) { .hm:hover .hm-safe { opacity: 1; } }
.hm-safe::before, .hm-safe::after { content: ''; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, 0.4); }
.hm-safe::before { width: 18px; height: 1px; transform: translate(-50%, -50%); }
.hm-safe::after { width: 1px; height: 18px; transform: translate(-50%, -50%); }

/* ---------- reel (justified contact sheet) ---------- */
.reel { --row: clamp(150px, 19vw, 260px); display: flex; flex-wrap: wrap; gap: 10px; }
.reel.reel-mixed { --row: clamp(130px, 14.5vw, 196px); }
.reel.reel-mixed > .reel-end { display: none; }
.reel-card {
  position: relative; flex: calc(var(--a) * 100) 1 calc(var(--a) * var(--row)); aspect-ratio: var(--a); min-width: 0;
  padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--card-bg); color: #fff; text-align: left;
  transition: transform 0.4s var(--ease-out);
}
.reel-end { flex: 10000 1 0; }
.reel-media, .reel-media img, .reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.reel-media img { transition: transform 1.2s var(--ease-out), filter 0.4s; }
.reel-media video { opacity: 0; transition: opacity 0.25s linear; }
.reel-media video.on { opacity: 1; }
.reel-card:hover .reel-media img { transform: scale(1.04); }
.reel-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: baseline; padding: 30px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); font-size: var(--fs-ui); font-weight: 600; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.reel-cap b { font-weight: 500; font-size: var(--fs-mono); opacity: 0.8; }
.reel-card:hover .reel-cap, .reel-card:focus-visible .reel-cap, .reel-card.playing .reel-cap { opacity: 1; transform: none; }
.reel-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.reel-card.playing::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
@media (hover: none) { .reel-cap { opacity: 1; transform: none; } }

/* ---------- talk (contact) ---------- */
.pg-talk-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pg-talk .sec-h { font-size: var(--fs-sec); }
.pg-talk .sec-h.lt, .pg-talk .sec-h { margin: 0 0 clamp(20px, 3vh, 32px); line-height: 1.02; }
.pg-hero h1.lt { margin: 0 0 clamp(18px, 3vh, 30px); }
.pg-talk-lead { font-size: var(--fs-lead); max-width: 36ch; margin: 0 0 28px; }
.pg-channels { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 18px 0 0; padding: 0; }
.pg-channels a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--fs-btn); font-weight: 600; color: var(--muted); transition: color 0.2s; }
.pg-channels a:hover, .pg-channels a:focus-visible { color: var(--text); }
.pg-brief {
  display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); text-decoration: none;
  background: var(--surface); position: relative; overflow: hidden;
  transition: background-color 0.25s, transform 0.4s var(--ease-out);
}
.pg-brief:hover { background: var(--surface-2); transform: translateY(-2px); }
.pg-brief b { font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); font-size: var(--fs-big); line-height: 1.05; letter-spacing: var(--display-ls); }
.pg-brief > span:not(.kick):not(.link-arrow) { color: var(--muted); }
.pg-brief .kick { margin: 0; }

/* ---------- next direction ---------- */
.pg-next { position: relative; padding: 0 0 clamp(56px, 9vh, 100px); }
.pg-next > .clip-head { margin-bottom: clamp(40px, 7vh, 80px); }
.pg-next-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pg-next-link { position: relative; display: block; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden; isolation: isolate; padding: clamp(24px, 4vw, 52px); min-height: clamp(260px, 38vh, 420px); background: var(--surface); }
.pg-next-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; z-index: -2; opacity: 0.0; transform: scale(1.08); transition: opacity 0.6s, transform 1.4s var(--ease-out); }
.pg-next-link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 0%, color-mix(in oklab, var(--surface) 80%, transparent) 48%, color-mix(in oklab, var(--surface) 30%, transparent) 100%); }
.pg-next-link:hover .pg-next-poster, .pg-next-link:focus-visible .pg-next-poster { opacity: 0.85; transform: scale(1); }
.pg-next-kick { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pg-next-kick::before { content: ''; width: 14px; height: 9px; border-radius: 2px; background: var(--c); }
.pg-next-name { display: block; /* block: fitHeadings() measures its width (an inline span reads 0 and was never fitted) */ font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); letter-spacing: var(--display-ls); font-size: var(--fs-sub); line-height: 0.96; margin: 18px 0 16px; } /* N1: stays below the hero h1 */
.pg-next-name.lt { font-family: var(--lt-font); }
.pg-next-line { max-width: 44ch; color: var(--muted); margin: 0; font-size: var(--fs-body); }
.pg-next-go { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); transition: transform 0.4s var(--ease-out); }
.pg-next-go svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-next-link:hover .pg-next-go { transform: translateX(6px); }
.pg-ring { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; opacity: 0.6; transition: opacity 0.3s; }
.pg-ring:hover, .pg-ring:focus-within { opacity: 1; }
.pg-ring::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; border: 1px solid var(--line); }
.pg-ring a { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; text-decoration: none; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); min-width: 44px; min-height: 44px; align-content: center; }
.pg-ring a i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); transition: transform 0.3s var(--ease-out), background-color 0.3s; }
.pg-ring a:hover { color: var(--text); }
.pg-ring a:hover i { transform: scale(1.3); }
.pg-ring a.cur { color: var(--text); }
.pg-ring a.cur i { background: var(--c); transform: scale(1.4); box-shadow: 0 0 0 5px color-mix(in oklab, var(--c) 30%, transparent); }
.pg-ring a.nx i { background: color-mix(in oklab, var(--c) 45%, var(--surface)); }
.pg-ring a.home { left: 50%; top: 50%; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 40px; color: var(--text); white-space: nowrap; }
.pg-ring a.home:hover { border-color: var(--line-strong); }

/* ---------- footer ---------- */
.pg-foot { position: relative; background: var(--bg); padding: clamp(28px, 6vh, 64px) 0 calc(28px + var(--tsb-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.pg-foot-word { padding: 0 calc(var(--gutter) + var(--tsb-right)) 0 var(--gutter); font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); letter-spacing: var(--display-ls); font-size: clamp(34px, 8.6vw, 170px); line-height: 0.95; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin-bottom: clamp(18px, 3vh, 32px); user-select: none; }
.pg-foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--fs-ui); color: var(--muted); }
.pg-foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pg-foot-row a { color: var(--muted); }
.pg-foot-row a:hover { color: var(--text); }
/* «Розбори»: guides of this direction, one quiet row above the name */
.pg-foot-kb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; font-size: var(--fs-ui); margin-bottom: clamp(20px, 4vh, 40px); }
.pg-foot-kb .mono { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.pg-foot-kb a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.pg-foot-kb a:hover { text-decoration-color: var(--rec); }
.pg-foot-kb .pg-foot-kb-all { color: var(--muted); text-decoration: none; }
.pg-foot-kb .pg-foot-kb-all:hover { color: var(--text); }

/* ---------- small screens: separate composition ---------- */
@media (max-width: 900px) {
  .pg-hero { min-height: 0; padding-top: 78px; align-items: start; }
  .pg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pg-hero .hm { order: -1; margin: 0 calc(var(--gutter) * -1 + 4px); }
  /* N3: a flatter monitor so the main button clears the fixed timeline strip on the first screen */
  .pg-hero { padding-bottom: calc(clamp(48px, 8vh, 88px) + var(--tsb-bottom, 64px)); }
  .pg-hero .hm-frame { aspect-ratio: 16 / 10; }
  /* …and the buttons come right after the lead; the longer body text follows them */
  .pg-hero-copy { display: flex; flex-direction: column; }
  .pg-hero .pg-act { order: 1; margin: 4px 0 22px; }
  .pg-hero .pg-body { order: 2; }
  .pg-hero h1 { font-size: clamp(40px, 11.5vw, 72px); margin-bottom: 18px; }
  .pg-head { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
  /* section heads and the next-direction name follow the scale tokens (site.css) on phones too */
  .pg-talk-grid, .pg-next-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-ring { display: none; }
  .reel { --row: 132px; gap: 6px; }
}
@media (max-width: 480px) {
  .topbar-r { gap: 5px; }
  .topbar .seg-lang button { padding: 5px 7px; }
  .brand { font-size: var(--fs-ui); padding: 6px 8px; }
  .reel-card { flex-basis: calc(var(--a) * 118px); }
  .pg-next-go { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-media img, .reel-card, .pg-next-poster, .pg-brief { transition: none !important; }
}

.pg-foot-word .fw-r { font-weight: 300; font-variation-settings: 'wght' 300; }
/* footer name (same as home, foot-name.js): V and Y stand out, a red playhead unrolls the rest */
.pg-foot-word { position: relative; }
.pg-foot-word b { font-weight: 700; font-variation-settings: 'wght' 700; color: var(--text); -webkit-text-stroke: 0; }
.pg-foot-word .fw-r { display: inline-block; }
.pg-foot-word .fw-ch { transition: color 0.12s ease-out; }
.pg-foot-word .fw-ph { position: absolute; left: 0; top: 0.06em; bottom: 0.02em; width: 2px; margin-left: -1px; background: var(--rec); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.pg-foot-word.fw-run .fw-ph { opacity: 1; transition: none; }

/* phones: the name on two lines, V and Y stacked like the logo; fitText sizes it to the longer line */
@media (max-width: 599px) { .pg-foot-word { line-height: 1.02; text-align: left; } .pg-foot-word .fw-sp { display: block; height: 0; overflow: hidden; } }

/* «Питання»: real client questions on a direction page — collapsed answers, same look as the guides' FAQ */
.pg-faq-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) { .pg-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; } .pg-faq-grid .pg-head { position: sticky; top: 96px; } }
.pg-faq { display: grid; gap: 10px; counter-reset: faq; }
/* questions as clips on a track (audit 2026-11-26): a numbered marker, the clip's coloured head edge, a timeline marker instead of «+» */
.pg-faq-item { counter-increment: faq; position: relative; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pg-faq-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dir, var(--rec)); opacity: 0.35; transition: opacity 0.2s; }
.pg-faq-item[open]::before, .pg-faq-item:hover::before { opacity: 1; }
.pg-faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.pg-faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; font-size: 16px; line-height: 1.38; color: var(--text); display: flex; align-items: center; gap: 14px; }
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-item summary::before { content: counter(faq, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500; color: var(--muted); flex: none; order: -1; min-width: 2ch; }
.pg-faq-item summary::after { content: ''; width: 9px; height: 9px; margin-left: auto; flex: none; border: 1.5px solid var(--muted); border-radius: 2px; transform: rotate(45deg); transition: background-color 0.2s, border-color 0.2s; }
.pg-faq-item[open] summary::after { background: var(--dir, var(--rec)); border-color: var(--dir, var(--rec)); }
.pg-faq-item summary:focus-visible { outline: 2px solid var(--rec); outline-offset: -2px; }
.pg-faq-ans { padding: 0 20px 18px calc(20px + 2ch + 14px); color: var(--muted); font-size: 15px; line-height: 1.62; max-width: 68ch; }
.pg-faq-ans p { margin: 0; }
.pg-faq-grid .pg-head { display: block; }
.pg-faq-grid .pg-head p { margin-top: 18px; max-width: 32ch; }

/* src-3e1ac42f66/css/lbx.css */
/* Letterbox viewer — shared by the direction pages (src/pages/viewer.js) and the home page bin. */
.lbx { position: fixed; inset: 0; z-index: 180; color: #fff; }
.lbx[hidden] { display: none; }
.lbx-bg {
  position: absolute; inset: 0;
  background: rgba(4, 4, 5, 0.74);
  backdrop-filter: blur(12px) saturate(0.82);
  -webkit-backdrop-filter: blur(12px) saturate(0.82);
  opacity: 0; transition: opacity 0.25s;
}
.lbx.in .lbx-bg { opacity: 1; }
.lbx-frame {
  position: absolute; left: 50%; top: 47%;
  width: min(86vw, 1280px, calc(74vh * var(--ar, 1.7778)));
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 76vh;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.25s;
  background: #070709;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 36px 96px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.lbx.portrait .lbx-frame {
  width: auto;
  height: min(78vh, calc(88vw / var(--ar, 0.5625)));
  max-width: 88vw; max-height: 78vh;
  aspect-ratio: var(--ar, 9 / 16);
}
.lbx.in .lbx-frame { transform: translate(-50%, -50%); opacity: 1; }
/* a whole work (bin «Окремі роботи»): a smaller, higher frame so the native controls never sit under the caption */
.lbx.whole .lbx-frame { width: min(86vw, 1240px, calc(70vh * var(--ar, 1.7778))); top: 45%; }
.lbx.whole.portrait .lbx-frame { width: auto; height: min(72vh, calc(88vw / var(--ar, 0.5625))); max-width: 88vw; }
.lbx-frame img, .lbx-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.lbx-frame video { opacity: 0; transition: opacity 0.2s; }
.lbx-frame video.on { opacity: 1; }
.lbx-top { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(16px + env(safe-area-inset-top)); display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 2; }
.lbx-top-r { display: flex; align-items: center; gap: 10px; }
.lbx-n { font-size: var(--fs-mono); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.78); }
.lbx-sound {
  height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 12, 0.68); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.lbx-sound:hover { border-color: #fff; background: rgba(20, 20, 24, 0.88); }
.lbx-sound[hidden] { display: none; }
.lbx-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbx-info { position: absolute; left: var(--gutter); right: 120px; bottom: calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 6px; pointer-events: none; z-index: 2; }
.lbx-k { font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.lbx-s { font-size: var(--fs-body); line-height: 1.4; color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.lbx-s:empty { display: none; }
.lbx-t { margin: 0; font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); letter-spacing: var(--display-ls); font-size: var(--fs-sub); line-height: 1.08; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.lbx-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(10, 10, 12, 0.62); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: border-color 0.2s, background-color 0.2s; }
.lbx-btn:hover { border-color: #fff; background: rgba(20, 20, 24, 0.85); }
.lbx-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbx-btn:focus-visible, .lbx-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lbx-prev, .lbx-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lbx-prev { left: var(--gutter); }
.lbx-next { right: var(--gutter); }
.lbx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); z-index: 2; }
.lbx-bar i { display: block; height: 100%; background: var(--rec); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 767px) {
  .lbx-prev, .lbx-next { top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .lbx-prev { left: auto; right: calc(var(--gutter) + 52px); }
  .lbx-info { right: 120px; }
  .lbx-sound span { display: none; }
  .lbx-sound { width: 44px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .lbx-frame, .lbx-bg { transition: none !important; } }

/* src-3e1ac42f66/css/talk.css */
/* «Обговорити» pop-up: a clip window cut into the page. It opens from the middle like a splice
   (a red cut line, then the window spreads to both sides), closes the same way back. */

.talk { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); color: var(--text); }
.talk[hidden] { display: none; }
.talk-bg { position: absolute; inset: 0; background: rgba(4, 4, 5, 0.72); backdrop-filter: blur(10px) saturate(0.8); -webkit-backdrop-filter: blur(10px) saturate(0.8);
  opacity: 0; transition: opacity 0.35s var(--ease-out); }
.talk.in .talk-bg { opacity: 1; }

.talk-win { position: relative; width: min(1080px, 100%); max-height: calc(100svh - 2 * clamp(12px, 3vw, 40px)); overflow: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  clip-path: inset(0 50% 0 50% round 18px); transition: clip-path 0.6s var(--ease-out); }
.talk.in .talk-win { clip-path: inset(0 0 0 0 round 18px); }
/* the cut: a red line in the middle that the window opens from */
.talk-win::before { content: ''; position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--rec);
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.8); opacity: 1; transition: opacity 0.5s 0.15s; pointer-events: none; }
.talk.in .talk-win::before { opacity: 0; }

/* header = a clip head on the V1 track */
.talk-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 clamp(18px, 2.4vw, 32px);
  background: color-mix(in oklab, var(--bg-2) 92%, #000); border-bottom: 1px solid var(--line); font-size: var(--fs-mono); letter-spacing: 0.06em; }
.talk-head > i { width: 26px; height: 12px; border-radius: 3px; background: var(--rec); }
.talk-head > span { color: var(--muted); }
.talk-head > b { font-weight: 500; }
.talk-tc { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.talk-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s; }
.talk-x:hover { background: rgba(255, 255, 255, 0.08); }
.talk-x:focus-visible { outline: 2px solid var(--text); outline-offset: 0; }
.talk-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.talk-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding: clamp(26px, 4vw, 52px) clamp(18px, 3.4vw, 48px) clamp(26px, 3.6vw, 46px); }
.talk-main { min-width: 0; }
.talk-ref { margin: 0 0 14px; font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.talk-ref b { font-weight: 500; color: var(--text); letter-spacing: 0.06em; }
.talk-h { margin: 0 0 14px; font-family: var(--f-display); font-weight: 300; letter-spacing: -0.02em;
  font-size: var(--fs-sec); line-height: 1.02; }
.talk-lead { margin: 0 0 26px; font-size: var(--fs-lead); color: var(--muted); }
.talk-brief { display: inline-flex; margin-top: 26px; }
.talk-quick { margin-top: 0; align-self: start; align-content: start; }

/* content rises after the window has opened */
.talk-body > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.talk.in .talk-body > * { opacity: 1; transform: none; transition-delay: 0.28s; }
.talk.in .talk-body > * + * { transition-delay: 0.36s; }

/* channels and the short form — self-contained, so the window looks the same on the direction pages */
.talk .channels { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.talk .channels a { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  text-decoration: none; font-weight: 600; font-size: var(--fs-btn); color: var(--text); transition: border-color 0.2s, background-color 0.2s; }
.talk .channels a:hover { border-color: var(--text); }
.talk-quick { padding: clamp(20px, 2.2vw, 28px); border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 12px; }
.talk-quick .quick-h { margin: 0; font-weight: 700; }
.talk-quick label { display: grid; gap: 6px; font-size: var(--fs-ui); color: var(--muted); }
.talk-quick input { min-height: 46px; border-radius: 10px; border: 1px solid var(--field-edge); background: var(--bg); color: var(--text); padding: 0 12px; font: inherit; font-size: var(--fs-body); }
.talk-quick input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.talk-quick .quick-err { margin: 0; color: var(--rec); font-size: var(--fs-ui); }
.talk-quick .quick-ok { margin: 0; font-size: var(--fs-ui); color: var(--muted); }
.talk-quick .btn { justify-self: start; }

/* two ways to write: Telegram (left button) and an email straight from the site (the mail button) */
.talk-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.talk-mailbtn { gap: 10px; }
.talk-mailbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.talk-side { align-self: start; min-width: 0; display: grid; gap: 12px; }
.talk-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.talk-seg button { position: relative; z-index: 1; min-height: 34px; border: 0; background: none; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; border-radius: 999px; transition: color 0.3s; }
.talk-seg button[aria-selected='true'] { color: #0b0b0c; }
.talk-seg button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.talk-seg > i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--text); transition: transform 0.45s var(--ease-out); }
.talk-side[data-mode='mail'] .talk-seg > i { transform: translateX(100%); }

/* the two forms share one cell; switching is a cut with a short slide */
.talk-panes { display: grid; }
.talk-pane { grid-area: 1 / 1; transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s 0.45s; }
.talk-side[data-mode='tg'] .talk-pane[data-pane='mail'], .talk-side[data-mode='mail'] .talk-pane[data-pane='tg'] { opacity: 0; visibility: hidden; pointer-events: none; }
.talk-side[data-mode='tg'] .talk-pane[data-pane='mail'] { transform: translate3d(24px, 0, 0); }
.talk-side[data-mode='mail'] .talk-pane[data-pane='tg'] { transform: translate3d(-24px, 0, 0); }
.talk-side[data-mode='tg'] .talk-pane[data-pane='tg'], .talk-side[data-mode='mail'] .talk-pane[data-pane='mail'] { transition: opacity 0.35s 0.08s, transform 0.5s 0.08s var(--ease-out), visibility 0s; }

.talk-mail { padding: clamp(20px, 2.2vw, 28px); border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.talk-mail .quick-h { margin: 0; font-weight: 700; }
.talk-mail label { display: grid; gap: 6px; font-size: var(--fs-ui); color: var(--muted); }
.talk-mail input, .talk-mail textarea { min-height: 46px; border-radius: 10px; border: 1px solid var(--field-edge); background: var(--bg); color: var(--text); padding: 10px 12px; font: inherit; font-size: var(--fs-body); }
.talk-mail textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.talk-mail input:focus, .talk-mail textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.talk-mail .quick-err { margin: 0; color: var(--rec); font-size: var(--fs-ui); }
.talk-mail .btn { justify-self: start; }
.talk-mail .btn[disabled] { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); cursor: progress; }
/* Turnstile: invisible (0 px, its grid gap folded away) until Cloudflare asks for a click — then .on */
.talk-ts { min-height: 0; }
.talk-ts:not(.on) { margin-top: -12px; }
.talk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* sent: the fields step aside, a short confirmation stays */
.talk-mail.sent > :not(.talk-sent):not(.quick-h) { display: none; }
.talk-sent { display: grid; gap: 8px; }
.talk-sent[hidden], .talk [hidden] { display: none !important; }
.talk-sent-h { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-big); }
.talk-sent p { margin: 0; color: var(--muted); }
.talk-sent p b { color: var(--text); font-weight: 600; }
.talk-again { justify-self: start; background: none; border: 0; padding: 0; color: var(--text); font: inherit; cursor: pointer; }

html.talk-open { overflow: hidden; }

@media (max-width: 759px) {
  .talk { padding: 0; place-items: end stretch; }
  .talk-win { width: 100%; max-height: 92svh; border-radius: 18px 18px 0 0; clip-path: inset(100% 0 0 0 round 18px 18px 0 0); }
  .talk.in .talk-win { clip-path: inset(0 0 0 0 round 18px 18px 0 0); }
  .talk-win::before { display: none; }
  .talk-body { grid-template-columns: minmax(0, 1fr); }
  .talk-head > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-win, .talk-bg, .talk-body > * { transition: none !important; }
  .talk-win { clip-path: none !important; }
  .talk-win::before { display: none; }
}

/* strategy/strategy.css */
/* Content strategy: system timeline/funnel + rubricator */

.sys { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: 'mon stage' 'ctl stage'; gap: 14px clamp(16px, 2.4vw, 32px); align-items: start; }
.sys-mon { grid-area: mon; --c: #5bbf86; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.sys-mon-top { display: flex; gap: 14px; align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.sys-mon-top .rec { color: var(--rec); }
.sys-mon-top span:nth-child(2) { color: var(--text); font-variant-numeric: tabular-nums; }
.sys-mon-top span:last-child { margin-left: auto; }
.sys-mon-body { padding: clamp(18px, 2.2vw, 28px); min-height: 300px; }
.sys-mon.cut .sys-mon-body > * { animation: sys-in 0.5s var(--ease-out) both; }
.sys-mon.cut .sys-mon-body > *:nth-child(2) { animation-delay: 0.04s; } .sys-mon.cut .sys-mon-body > *:nth-child(3) { animation-delay: 0.08s; } .sys-mon.cut .sys-mon-body > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes sys-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sys-mon h3 { margin: 0 0 8px; overflow-wrap: anywhere; hyphens: auto; font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); letter-spacing: var(--display-ls); font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; }
.sys-mon-body > p:first-of-type { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.sys-get-h { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sys-mon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sys-mon li { display: flex; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.sys-mon li::before { content: ''; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.sys-ctl { grid-area: ctl; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sys-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.sys-play[aria-pressed='true'] { border-color: var(--rec); }
.sys-stage {
  grid-area: stage; position: relative; height: clamp(360px, 52vh, 480px); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
}
.sys-ruler { position: absolute; left: 48px; right: 0; top: 0; height: 22px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 60px) left bottom / 100% 9px no-repeat, repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 12px) left bottom / 100% 5px no-repeat; transition: opacity 0.4s; }
.sys-lanes { position: absolute; left: 0; top: 22px; bottom: 0; width: 48px; display: grid; grid-template-rows: 1fr 1fr 1fr; border-right: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--muted); transition: opacity 0.4s; }
.sys-lanes span { display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.sys-stage[data-view='fn'] .sys-ruler, .sys-stage[data-view='fn'] .sys-lanes { opacity: 0; }
.sys-blocks { position: absolute; inset: 0; }
.sys-b {
  position: absolute; left: 0; top: 0; height: 64px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; overflow: hidden; text-align: left; color: var(--text);
  /* only the current stage carries its full colour; the rest sit back as tinted surfaces */
  background: color-mix(in oklab, var(--c) 30%, var(--surface, #161618)); box-shadow: inset 0 0 0 1px var(--line); will-change: transform;
  transition: filter 0.2s, background-color 0.3s, color 0.3s;
}
.sys-b::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.sys-b:hover { filter: brightness(1.15); }
.sys-b[aria-selected='true'] { background: var(--c); color: var(--bg); box-shadow: none; }
.sys-b[aria-selected='true'] .sys-b-n { text-shadow: none; }
.sys-b[aria-selected='true'] .sys-wave { background: repeating-linear-gradient(90deg, rgba(11,11,12,.55) 0 2px, transparent 2px 5px); }
.sys-b:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sys-b-in { position: absolute; left: 10px; right: 8px; top: 10px; bottom: 6px; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; overflow: hidden; }
.sys-b-in b { font-weight: 500; font-size: 11px; opacity: 0.75; }
.sys-b-n { font-weight: 650; font-size: var(--fs-ui); letter-spacing: -0.01em; line-height: 1.1; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: normal; hyphens: manual; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sys-wave { position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; opacity: 0.45;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(transparent 0, #000 30%, #000 70%, transparent); mask: linear-gradient(transparent 0, #000 30%, #000 70%, transparent); }
.sys-head { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 3; }
.sys-head i { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--rec); box-shadow: 0 0 8px var(--rec); }
.sys-head i::before { content: ''; position: absolute; left: -5px; top: 0; width: 12px; height: 12px; background: var(--rec); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.sys-stage[data-view='fn'] .sys-head { opacity: 0; }

/* rubricator */
.rub { display: grid; gap: 16px; }
.rub-niches { display: flex; flex-wrap: wrap; gap: 8px; }
.rub-n { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 600; font-size: var(--fs-btn); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.rub-n:hover { border-color: var(--text); }
.rub-n[aria-checked='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rub-board { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 12px; overflow: hidden; }
.rub-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.rub-days span { padding-left: 4px; }
.rub-tracks { display: grid; gap: 8px; padding-top: 8px; }
.rub-lane { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-height: 132px; padding-top: 20px; border-bottom: 1px dashed var(--line); }
.rub-lane:last-child { border-bottom: 0; }
.rub-lane-n { position: absolute; left: 4px; top: 2px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.rub-c {
  grid-column: calc(var(--d) + 1); position: relative; min-height: 104px; padding: 0; border: 0; border-radius: 8px; cursor: pointer; text-align: left;
  background: var(--surface-2); box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px var(--line);
  perspective: 600px; transition: transform 0.55s var(--ease-out), opacity 0.4s; transition-delay: calc(var(--d) * 55ms);
}
.rub-c.drop { transform: translateY(-46px) scale(0.96); opacity: 0; transition: none; }
.rub-front, .rub-back { position: absolute; inset: 0; padding: 10px 10px 10px 13px; display: grid; align-content: start; gap: 4px; backface-visibility: hidden; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.rub-back { transform: rotateY(180deg); opacity: 0; align-content: center; font-size: 13px; line-height: 1.35; }
.rub-c.flip .rub-front { transform: rotateY(-180deg); opacity: 0; }
.rub-c.flip .rub-back { transform: none; opacity: 1; }
.rub-f { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.rub-c b { font-size: 14px; line-height: 1.2; }
.rub-i { font-size: var(--fs-ui); line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rub-g { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.rub-c:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rub-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.rub-bal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; flex: 1 1 320px; min-width: 0; }
.rub > * { min-width: 0; }
.rub-bal-h { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* the chips wrap instead of clipping their labels on a phone; flex-grow (inline) still follows the count */
.rub-bar { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.rub-bar i { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px; flex-basis: auto !important; background: var(--surface-2); box-shadow: inset 0 -2px 0 color-mix(in oklab, var(--c) 55%, var(--surface-2)); min-width: 0; overflow: hidden; transition: flex-grow 0.6s var(--ease-out); }
.rub-bar span { font-size: 11px; white-space: nowrap; color: var(--text); }
.rub-legend { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .sys { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'ctl' 'mon'; }
  .sys-stage { height: 300px; }
  .sys-mon-body { min-height: 0; }
  .sys-b-in { gap: 0; top: 8px; left: 7px; right: 4px; }
  /* phones: the clips are too narrow for names — the number stays, the name is in the monitor below (and stays readable for screen readers) */
  .sys-b-in b { font-size: 12px; opacity: 0.9; }
  .sys-b-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sys-lanes, .sys-ruler { width: 34px; } .sys-ruler { left: 34px; width: auto; }
  /* the week becomes a vertical day list: one row per day, its clips side by side */
  .rub-days { display: none; }
  .rub-tracks { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rub-lane { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding-top: 22px; }
  .rub-c { min-height: 0; }
  .rub-front { position: relative; inset: auto; }
  .rub-back { inset: 0; }
  .rub-i { -webkit-line-clamp: 4; }
  .rub-n { padding: 0 14px; font-size: var(--fs-ui); }
}
@media (prefers-reduced-motion: reduce) {
  .rub-c, .rub-front, .rub-back, .rub-bar i { transition: none; }
  .sys-mon.cut .sys-mon-body > * { animation: none; }
}

/* hero: a vertical monitor for a vertical showreel (hero.js: one clip = a 30 s reel, looped) */
.pg-hero .hm.hm-v { width: min(100%, calc((100svh - 230px) * 9 / 16 + 2px), 400px); justify-self: center; }
.pg-hero .hm.hm-v .hm-frame video { object-fit: cover; }
.pg-hero .hm.hm-v .hm-bar .hm-name { display: none; }
@media (max-width: 900px) {
  .pg-hero .hm.hm-v { width: min(100%, calc(62svh * 9 / 16 + 2px), 340px); margin: 0 auto; order: -1; }
}

/* «Рубрики в роботі»: 4 rows × 7 reels, all vertical */
#reel.reel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
#reel .reel-card { flex: none; width: 100%; aspect-ratio: 9 / 16; }
#reel .reel-end { display: none; }
/* the playing reel: a quiet 1 px frame (red stays for the playhead only) */
#reel .reel-card.playing::after { box-shadow: inset 0 0 0 1px var(--text); }
@media (max-width: 1100px) { #reel.reel { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767px) { #reel.reel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }
/* phones: nine best reels, the other 19 open in place from the «Ще 19 роликів» pill (strategy.js · initReelMore) */
.reel-more { display: none; }
@media (max-width: 767px) {
  #reel.reel:not(.is-open) .reel-card:nth-child(n + 10) { display: none; }
  #reel.reel:not(.is-open) + .reel-more {
    display: flex; align-items: center; justify-content: center; margin: 20px auto 0; min-height: 48px; padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: transparent; color: #F1EFEA;
    font-family: var(--f-ui); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: border-color 0.2s, background-color 0.2s;
  }
  .reel-more:active { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.4); }
  #reel .reel-card.reel-in { animation: reel-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) backwards; }
}
@keyframes reel-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@media (prefers-reduced-motion: reduce) { #reel .reel-card.reel-in { animation: none; } }

/* strategy/feed-system.css */
/* «Стрічка ↔ Система»: a 3×4 profile grid that re-cuts into the chain behind it (feed-system.js).
   Cells are absolutely positioned and moved by springs (transform only); every cell's content is
   designed at 236×315 and scaled to the cell with --k. Documents are paper, reels are dark. */

.sg-head-r { display: grid; gap: 18px; justify-items: start; }
.sg-mode { background: color-mix(in oklab, var(--bg) 90%, transparent); border-color: var(--line-strong); }
.sg-mode button { font-size: var(--fs-ui); padding: 8px 16px 8px 13px; min-height: 40px; }
.sg-ic { width: 13px; height: 13px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sg-ic-grid { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M0 0h3.6v3.6H0zM4.7 0h3.6v3.6H4.7zM9.4 0H13v3.6H9.4zM0 4.7h3.6v3.6H0zM4.7 4.7h3.6v3.6H4.7zM9.4 4.7H13v3.6H9.4zM0 9.4h3.6V13H0zM4.7 9.4h3.6V13H4.7zM9.4 9.4H13V13H9.4z'/%3E%3C/svg%3E"); }
.sg-ic-chain { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M0 2h3v4H0zM5 2h3v4H5zM10 2h3v4h-3zM0 8h13v3H0z'/%3E%3C/svg%3E"); }

/* stage */
.sg { position: relative; display: grid; grid-template-columns: var(--side, 0px) minmax(0, 1fr); min-height: 300px; transition: height 0.85s var(--ease-out); }
.sg-cells { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 60% 40%; pointer-events: none; z-index: 2; }
.sg-cell {
  position: absolute; left: 0; top: 0; width: var(--cw, 200px); height: var(--ch, 266px); padding: 0; margin: 0; border: 0;
  border-radius: 10px; overflow: hidden; background: #161618; color: inherit; text-align: left; cursor: default;
  transform-origin: 0 0; will-change: transform; pointer-events: auto; backface-visibility: hidden;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.6s var(--ease-out), filter 0.35s, box-shadow 0.3s;
}
.sg-reel { cursor: pointer; }
.sg-cell.off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s var(--ease-out), visibility 0s 0.4s; }
.sg.pre .sg-cell { opacity: 0; }
.sg.has-hot .sg-cell:not(:hover):not(:focus) { filter: brightness(0.62) saturate(0.75); }
.sg-cell:hover, .sg-cell:focus-visible { box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.95), 0 0 0 1.5px var(--c); }
.sg-cell:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; transition: opacity 0.6s var(--ease-out), filter 0.35s; }
.sg-in { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.dc { position: absolute; left: 0; top: 0; width: 236px; height: 315px; transform: scale(var(--k, 1)); transform-origin: 0 0; overflow: hidden; display: block; }

/* stage label + kind glyph */
.sg-chip {
  position: absolute; right: 8px; top: 8px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 40px);
  padding: 4px 9px 4px 7px; border-radius: 999px; background: rgba(11, 11, 12, 0.84); color: #f1efea; font-size: 11px; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); opacity: 0; transform: translateY(-5px); transition: opacity 0.25s, transform 0.35s var(--ease-out); pointer-events: none;
}
.sg-chip i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.sg-chip b { font-weight: 600; opacity: 0.7; }
.sg-chip span { overflow: hidden; text-overflow: ellipsis; }
.sg-cell.on .sg-chip, .sg-cell:hover .sg-chip, .sg-cell:focus-visible .sg-chip { opacity: 1; transform: none; }
.sg[data-mode='sys'] .sg-chip { font-size: var(--fs-ui); right: 9px; top: 9px; }
.sg-glyph { position: absolute; right: 8px; top: 8px; z-index: 3; width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); opacity: 0.9; transition: opacity 0.25s; }
.sg-glyph .f { fill: #fff; stroke: none; }
.sg-doc .sg-glyph { stroke: #1b1b1d; filter: none; opacity: 0.55; }
.sg-c-analytics .sg-glyph { stroke: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); opacity: 0.85; }
.sg-cell.on .sg-glyph { opacity: 0; }

/* ---------------- reels */
.rl { background: #0e0e10; }
.rl img, .rl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-v video { opacity: 0; transition: opacity 0.3s; }
.rl-v video.on { opacity: 1; }
.rl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 11px; display: grid; gap: 2px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.rl-cap b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.rl-cap span { font-weight: 700; font-size: var(--fs-ui); line-height: 1.2; }
.rl-cap span:empty { display: none; }
.rl-cap b { font-size: 11px; font-weight: 600; }
.sg-cell.on .rl-cap, .sg-cell:hover .rl-cap { opacity: 1; transform: none; }

/* ---------------- paper documents */
.dc-plan, .dc-shoot, .dc-script { --paper: #ece9e1; --ink: #19191b; --ink2: #6d6a62; background: var(--paper); color: var(--ink); font-family: var(--f-ui); }
.dc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dc-top b { font-family: var(--f-display); font-weight: 500; font-size: 11.5px; letter-spacing: -0.01em; }
.dc-top span { font-family: var(--f-mono); font-size: 6.6px; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }

/* content plan */
.dc-plan { padding: 13px 12px 0; }
.pl-leg { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 0; }
.pl-leg i { font-style: normal; font-family: var(--f-mono); font-size: 6.6px; padding: 2px 6px 2px 5px; border-radius: 99px; background: color-mix(in oklab, var(--c) 20%, var(--paper)); color: var(--ink); transition: background-color 0.35s, color 0.35s; }
.pl-leg i::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 1px; margin-right: 4px; vertical-align: 1px; background: var(--c); }
.pl-view { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 8%, #000 86%, transparent); mask: linear-gradient(transparent, #000 8%, #000 86%, transparent); }
.pl-roll { padding: 4px 12px 0; will-change: transform; }
.sg-cell.on .pl-roll { animation: sg-roll 30s linear infinite; }
@keyframes sg-roll { to { transform: translateY(-50%); } }
.pl-w { margin: 7px 0 3px; padding-bottom: 2px; border-bottom: 1px solid rgba(0, 0, 0, 0.14); font-family: var(--f-mono); font-size: 6.6px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }
.pl-r { display: grid; grid-template-columns: 13px 5px minmax(0, 1fr) auto; gap: 5px; align-items: center; padding: 4px 4px; margin: 0 -4px; border-radius: 4px; font-size: 8.4px; line-height: 1.25; transition: background-color 0.4s, opacity 0.4s; }
.pl-r i { width: 5px; height: 14px; border-radius: 2px; background: var(--c); }
.pl-d { font-family: var(--f-mono); font-size: 6.8px; color: var(--ink2); }
.pl-t { font-weight: 600; }
.pl-f { font-family: var(--f-mono); font-size: 6.2px; color: var(--ink2); }
.dc-plan[data-hl] .pl-r { opacity: 0.32; }
.dc-plan[data-hl='m'] .pl-r[data-r='m'], .dc-plan[data-hl='t'] .pl-r[data-r='t'], .dc-plan[data-hl='s'] .pl-r[data-r='s'], .dc-plan[data-hl='p'] .pl-r[data-r='p'], .dc-plan[data-hl='l'] .pl-r[data-r='l'] { opacity: 1; background: color-mix(in oklab, var(--c, #e8b04a) 26%, transparent); }
.pl-r[data-r='m'] { --c: #e8b04a; } .pl-r[data-r='t'] { --c: #4aa8c7; } .pl-r[data-r='s'] { --c: #42b574; } .pl-r[data-r='p'] { --c: #a46ee8; } .pl-r[data-r='l'] { --c: #d0609a; }
.dc-plan[data-hl='m'] .pl-leg i[data-r='m'], .dc-plan[data-hl='t'] .pl-leg i[data-r='t'], .dc-plan[data-hl='s'] .pl-leg i[data-r='s'], .dc-plan[data-hl='p'] .pl-leg i[data-r='p'], .dc-plan[data-hl='l'] .pl-leg i[data-r='l'] { background: var(--c); }

/* reel script — pages flip up like a notepad, lines get a marker */
.dc-script { background: #cfcbc1; }
.sc-pg { position: absolute; inset: 0; padding: 13px 12px; background: var(--paper); z-index: var(--z); transform-origin: 50% 0; transition: transform 0.8s var(--ease-out), opacity 0.6s; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.5); }
.sc-pg.gone { transform: perspective(700px) rotateX(82deg); opacity: 0; }
.sc-pg header { display: grid; gap: 2px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.sc-pg header b { font-family: var(--f-display); font-weight: 500; font-size: 10.5px; line-height: 1.2; }
.sc-pg header span { font-family: var(--f-mono); font-size: 6.6px; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.06em; }
.sc-pg ol { list-style: none; margin: 0; padding: 0; }
.sc-pg li { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 4px; padding: 3.6px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.13); font-size: 8.1px; line-height: 1.33; }
.sc-pg em { font-style: normal; font-family: var(--f-mono); font-size: 6.6px; color: var(--ink2); padding-top: 1px; }
.sc-pg u { text-decoration: none; font-family: var(--f-mono); font-size: 6.2px; letter-spacing: 0.05em; color: #7a4fc4; }
.sc-pg mark { color: inherit; font-weight: 700; background: linear-gradient(transparent 52%, #ffd84d 52%, #ffd84d 92%, transparent 92%) no-repeat 0 0 / 0% 100%; transition: background-size 0.55s var(--ease-out); padding: 0 1px; }
.sg-cell.on .sc-pg.cur mark { background-size: 100% 100%; transition-delay: calc(0.35s + var(--d) * 0.42s); }
.sc-pg footer { position: absolute; left: 12px; right: 12px; bottom: 9px; font-family: var(--f-mono); font-size: 6.2px; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.06em; }

/* shoot sheet — boxes get ticked one by one */
.dc-shoot { padding: 13px 12px; }
.sh-meta { display: flex; gap: 4px; margin: 7px 0 5px; }
.sh-meta span { font-family: var(--f-mono); font-size: 6.4px; padding: 2px 6px; border-radius: 3px; background: #19191b; color: #ece9e1; letter-spacing: 0.04em; }
.dc-shoot ul { list-style: none; margin: 0; padding: 0; }
.dc-shoot li { display: grid; grid-template-columns: 10px 14px minmax(0, 1fr) auto; gap: 5px; align-items: center; padding: 4.5px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.14); font-size: 8.3px; line-height: 1.25; }
.dc-shoot li b { font-family: var(--f-mono); font-weight: 600; font-size: 7px; }
.dc-shoot li em { font-style: normal; font-family: var(--f-mono); font-size: 5.9px; text-transform: uppercase; color: var(--ink2); letter-spacing: 0.04em; }
.dc-shoot li span { transition: color 0.3s; text-decoration-line: line-through; text-decoration-color: transparent; transition: color 0.3s, text-decoration-color 0.3s; }
.cb { position: relative; width: 9px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1.2px var(--ink); transition: background-color 0.2s, box-shadow 0.2s; }
.cb::after { content: ''; position: absolute; left: 2.7px; top: 0.6px; width: 2.6px; height: 5.2px; border: solid #fff; border-width: 0 1.4px 1.4px 0; transform: rotate(45deg) scale(0); transition: transform 0.25s var(--ease-out); }
.dc-shoot li.ok .cb { background: #2f9a5f; box-shadow: none; }
.dc-shoot li.ok .cb::after { transform: rotate(45deg) scale(1); }
.dc-shoot li.ok span { color: var(--ink2); text-decoration-color: rgba(0, 0, 0, 0.45); }
.sh-foot { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 6.4px; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.05em; }
.sh-n { color: #2f9a5f; font-weight: 600; }

/* storyboard of the knight: six panels of the finished film, grey like a pencil board until the cell wakes up */
.dc-sb { background: #ece9e1; color: #19191b; padding: 13px 12px; }
.sb-g { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.sb-g li { position: relative; aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: #d4cfc3; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.sb-g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35) brightness(1.3); mix-blend-mode: multiply; opacity: 0.74; transition: filter 0.5s, opacity 0.5s; }
.sb-g li.done img { filter: none; mix-blend-mode: normal; opacity: 1; }
.sb-g li.cur { box-shadow: 0 0 0 2px var(--rec); }
.sb-g b { position: absolute; left: 3px; top: 3px; z-index: 2; font-family: var(--f-mono); font-weight: 500; font-size: 6.4px; padding: 1px 4px; border-radius: 2px; background: rgba(11, 11, 12, 0.78); color: #fff; }
.sb-foot { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 3px; }
.sb-cap { font-weight: 700; font-size: 8.4px; line-height: 1.25; }
.sb-n { font-family: var(--f-mono); font-size: 6.4px; color: #6d6a62; text-transform: uppercase; letter-spacing: 0.05em; }

/* research: cover → three conclusions */
.dc-res { background: #232326; }
.rs-back { position: absolute; left: 34px; right: 10px; top: 22px; bottom: 26px; padding: 12px; background: #d6d1c5; border-radius: 3px; transform: rotate(5deg); display: grid; align-content: start; gap: 7px; transition: transform 0.7s var(--ease-out), opacity 0.6s; }
.rs-back span { font-family: var(--f-display); font-weight: 500; font-size: 9px; color: #2a2a2c; }
.rs-back i { height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.16); }
.rs-back i:nth-of-type(2n) { width: 70%; }
.rs-cover {
  position: absolute; left: 14px; right: 24px; top: 16px; bottom: 30px; padding: 16px 14px 14px 18px; display: flex; flex-direction: column; gap: 8px;
  background: #ece9e1; color: #19191b; border-radius: 3px; box-shadow: inset 5px 0 0 #2f9a5f, 0 12px 24px -10px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 0; transition: transform 0.8s var(--ease-out), opacity 0.6s, filter 0.6s;
}
.rs-k { font-family: var(--f-mono); font-size: 6.6px; text-transform: uppercase; letter-spacing: 0.08em; color: #2f9a5f; }
.rs-cover b { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-btn); line-height: 1.15; letter-spacing: -0.01em; }
.rs-y { font-family: var(--f-mono); font-size: 7.5px; color: #6d6a62; }
.rs-cover ul { list-style: none; margin: auto 0 0; padding: 8px 0 0; border-top: 1px solid rgba(0, 0, 0, 0.15); display: flex; gap: 5px; flex-wrap: wrap; }
.rs-cover li { font-family: var(--f-mono); font-size: 6.4px; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.rs-th { position: absolute; left: 10px; right: 10px; bottom: 10px; list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.rs-th li { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 1px 5px; padding: 7px 9px 7px 7px; border-radius: 6px; background: #f4f1ea; color: #19191b; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.8); font-size: 8.4px; line-height: 1.28; font-weight: 600;
  opacity: 0; transform: translateY(26px) scale(0.96); transition: opacity 0.45s, transform 0.6s var(--ease-out); }
.rs-th li i { grid-row: span 2; font-style: normal; font-family: var(--f-mono); font-size: 7px; color: #2f9a5f; padding-top: 1px; }
.rs-th li b { font-family: var(--f-mono); font-weight: 500; font-size: 6.6px; color: #2f9a5f; text-transform: uppercase; letter-spacing: 0.04em; }
.sg-cell.open .rs-cover { transform: translateY(-58px) scale(0.8) rotate(-2.5deg); opacity: 0.4; filter: blur(0.5px); }
.sg-cell.open .rs-back { transform: translateY(-64px) rotate(9deg); opacity: 0.5; }
.sg-cell.open .rs-th li { opacity: 1; transform: none; transition-delay: calc(0.22s + var(--d) * 0.28s); }

/* analytics: screens with static instead of numbers */
.dc-an { background: #0d0d0f; }
.an-scr { position: absolute; inset: 0; }
.an-fig { position: absolute; inset: 0; opacity: 0; transition: opacity 0.55s; }
.an-fig.cur { opacity: 1; }
.an-fig img, .an-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.an-fig img { object-fit: cover; }
.an-pl { position: absolute; left: 9px; top: 9px; padding: 2px 7px; border-radius: 99px; font-size: 6.8px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(11, 11, 12, 0.82); color: #f1efea; }
.an-tag { display: none; }

/* ---------------- side panel (feed view, desktop): the inspector only — the stage legend lives on the «Система» timeline */
.sg-side { grid-column: 1; align-self: start; position: sticky; top: 104px; display: none; padding-right: 32px; transition: opacity 0.45s, transform 0.6s var(--ease-out); }
.sg.desk .sg-side { display: block; }
.sg[data-mode='sys'] .sg-side { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.sg-insp { padding: 26px 0 22px; min-height: 230px; }
.sg-insp-k { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sg-insp-k i { width: 9px; height: 9px; border-radius: 3px; background: var(--rec); transition: background-color 0.3s; }
.sg-insp h3 { margin: 0 0 12px; font-family: var(--f-display); font-weight: var(--display-w); letter-spacing: var(--display-ls); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; text-wrap: balance; }
.sg-insp-d { margin: 0; color: var(--muted); font-size: var(--fs-btn); line-height: 1.5; max-width: 34ch; }

/* ---------------- the system layer (tracks, stage heads, playhead) */
.sg-sys { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s; z-index: 1; }
.sg[data-mode='sys'] .sg-sys { opacity: 1; transition-delay: 0.2s; }
.sg-band { position: absolute; left: 0; right: 0; top: calc(var(--shead) - 9px); height: calc(var(--sh) + 18px); border-radius: 10px; background: rgba(255, 255, 255, 0.022); box-shadow: inset 0 0 0 1px var(--line); }
.sg-band[data-k='1'] { top: calc(var(--shead) + var(--sh) + var(--sgy) - 9px); }
.sg-band span { position: absolute; left: 12px; top: 12px; width: calc(var(--slane) - 18px); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.35; text-transform: uppercase; }
.sg-heads { position: absolute; left: 0; top: 0; margin: 0; padding: 0; list-style: none; }
.sg-heads li { position: absolute; left: 0; top: 4px; height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); white-space: nowrap;
  background: color-mix(in oklab, var(--c) 12%, transparent); box-shadow: inset 0 2px 0 var(--c); transition: background-color 0.3s, color 0.3s; }
.sg-heads li b { font-weight: 500; opacity: 0.65; }
.sg-heads li span { overflow: hidden; text-overflow: ellipsis; }
.sg-heads li::after { content: '→'; position: absolute; right: calc(var(--sgx) * -0.5 - 5px); color: var(--muted); font-size: 11px; }
.sg-heads li:last-child::after { content: none; }
.sg-heads li.cur { background: color-mix(in oklab, var(--c) 34%, transparent); color: var(--text); }
.sg-ph { position: absolute; left: 0; top: 40px; height: calc(var(--sysh) - 44px); width: 0; z-index: 3; }
.sg-ph i { position: absolute; left: -1px; top: 0; bottom: -6px; width: 2px; background: var(--rec); box-shadow: 0 0 8px var(--rec); opacity: 0.85; }
.sg-ph i::before { content: ''; position: absolute; left: -5px; top: -2px; width: 12px; height: 12px; background: var(--rec); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.sg-sys .sg-ph { z-index: 0; }


/* ---------------- phones: a plain two-column grid (no re-cut) */
.sg.flat { display: block; height: auto !important; min-height: 0; }
.sg.flat .sg-side, .sg.flat .sg-sys { display: none; }
.sg.flat .sg-cells { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; perspective: none; }
.sg.flat .sg-cell { position: relative; width: auto; height: auto; aspect-ratio: 3 / 4; transform: none !important; opacity: 1; }
.sg.flat .sg-cell.off { display: none; }
.sg.flat[data-mode='sys'] .sg-chip { opacity: 1; transform: none; font-size: 11px; }
@media (max-width: 759px) {
  .sg-head-r { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sg { transition: none; }
  .sg-cell, .sg-chip, .rl-cap, .sc-pg, .rs-cover, .rs-back, .rs-th li, .an-fig, .fr-media video { transition: none !important; }
  .sc-pg.cur mark, .sc-pg:first-child mark { background-size: 100% 100%; }
  .sg-cell:hover .rs-th li { opacity: 1; transform: none; }
  .sg-cell:hover .rs-cover { opacity: 0.4; transform: translateY(-58px) scale(0.8); }
}

/* ---------------- the strip under the system tracks: which stage this is and what happens in it */
.sg-expl { position: absolute; left: var(--slane); right: 0; top: calc(var(--sysh) + 14px); display: grid; gap: 6px; align-content: start; padding: 4px 0 0 18px; border-left: 3px solid var(--c, var(--rec)); transition: border-color 0.3s; }
.sg-expl p { margin: 0; }
.sg-expl p.mono { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sg-expl-h { font-family: var(--f-display); font-weight: var(--display-w); letter-spacing: var(--display-ls); font-size: clamp(17px, 1.7vw, 24px); line-height: 1.25; max-width: 56ch; text-wrap: balance; }
.sg-expl-d { color: var(--muted); font-size: var(--fs-btn); line-height: 1.45; min-height: 1.45em; max-width: 70ch; }
.sg:not([data-mode='sys']) .sg-expl { opacity: 0; }
.sg[data-mode='sys'] .sg-expl { opacity: 1; transition: opacity 0.4s 0.35s, border-color 0.3s; }
.sg.flat .sg-expl { display: none; }

