/* 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/bin-loop.css */
/* «Окремі роботи» on the direction pages — the endless bin (bin.js → initBinLoop).
   The look of the home page track (clips on a timeline, the open one plays and lights the room), but the row
   runs in a circle: the open clip in the middle, slivers on both sides fading out at the screen edges. */

.bl-sec { overflow: hidden; isolation: isolate; }
/* the room light: a gradient in the open clip's colours behind the row (tint() in bin.js) */
.bl-glow { position: absolute; inset: 18% -10% -6%; z-index: -1; pointer-events: none; }
.bl-glow i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-out);
  background: radial-gradient(50% 46% at 50% 56%, var(--g1, transparent) 0%, transparent 72%), radial-gradient(60% 55% at 26% 34%, var(--g2, transparent) 0%, transparent 75%); }
.bl-glow i.on { opacity: 0.42; }

.bl { --h: clamp(340px, 60vh, 620px); --ruler: 26px; position: relative; padding-top: var(--ruler); margin-right: var(--tsb-right, 0px); }
/* ruler ticks across the whole row, like the time ruler above a timeline */
.bl::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--ruler); pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 64px) 0 100% / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 16px) 0 100% / 100% 5px no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.12);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

.bl-track { --gap: 4px; position: relative; height: var(--h); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.bl-track.drag { cursor: grabbing; }

.bl-tile { position: absolute; left: 0; top: 0; height: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  transition: transform 0.7s var(--ease-out), clip-path 0.7s var(--ease-out); will-change: transform; }
.bl-tile.nt, .nt-all .bl-tile { transition: none; }
.bl-track.drag .bl-tile { cursor: grabbing; }

.bl-clip { position: relative; display: block; height: 100%; overflow: hidden; background: #0d0d0f; }
/* the clip's label colour along the top, as in Premiere / Resolve */
.bl-clip::before { content: ''; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 4px; background: color-mix(in oklab, var(--tag, var(--dir)) 80%, #000); }
.bl-media { position: absolute; inset: 0; display: block; overflow: hidden; container-type: inline-size; }
.bl-media img, .bl-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; pointer-events: none; }
.bl-media img { transition: filter 0.7s var(--ease-out), transform 1.4s var(--ease-out); }
.bl-media video { opacity: 0; transition: opacity 0.25s linear; }
.bl-media video.ready { opacity: 1; }
.bl-tile:not(.on) .bl-media img { filter: brightness(0.42) saturate(0.55); transform: scale(1.06); }
.bl-tile:not(.on):hover .bl-media img { filter: brightness(0.72) saturate(0.85); }
.bl-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.72) 100%); opacity: 0; transition: opacity 0.6s; }
.bl-tile.on .bl-media::after { opacity: 1; }

/* sliver label: the number written along the clip */
.bl-vl { position: absolute; z-index: 2; left: 50%; bottom: 14px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: var(--fs-mono); letter-spacing: 0.14em; color: rgba(255,255,255,.72); white-space: nowrap; transition: opacity 0.35s; }
.bl-tile.on .bl-vl { opacity: 0; }

/* the open clip: number and «Відкрити» */
.bl-cap { position: absolute; z-index: 2; left: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.8vw, 24px); font-size: var(--fs-mono); letter-spacing: 0.12em; color: rgba(255,255,255,.75); white-space: nowrap;
  opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.bl-cap b { font-weight: 600; color: #fff; }
.bl-open { position: absolute; z-index: 2; right: clamp(14px, 1.6vw, 24px); bottom: clamp(12px, 1.6vw, 22px); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,12,.4); backdrop-filter: blur(6px); white-space: nowrap;
  opacity: 0; transition: opacity 0.35s, background-color 0.25s, color 0.25s; }
.bl-tile.on .bl-cap, .bl-tile.on .bl-open { opacity: 1; transform: none; transition-delay: 0.3s; }
.bl-tile.on:hover .bl-open { background: #fff; color: #0b0b0c; }

/* the playhead: from the ruler down through the open clip */
.bl-ph { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--rec); box-shadow: 0 0 12px rgba(255,69,58,.65);
  opacity: 0; transform: translate3d(calc(var(--p, 0) * 100cqw), 0, 0); pointer-events: none; }
.bl-ph::before { content: ''; position: absolute; left: -5px; top: 0; width: 12px; height: 14px; background: var(--rec); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.bl-tile.on .bl-ph { opacity: 1; }
.bl-tile:focus-visible { outline: none; }
.bl-tile:focus-visible .bl-clip { box-shadow: inset 0 0 0 2px #fff; border-radius: 6px; }

/* prev / next: large, prominent round buttons over the faded edges */
.bl-nav {
  position: absolute; z-index: 5; top: calc(var(--ruler) + var(--h) / 2);
  width: 64px; height: 64px; margin-top: -32px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.58);
  background: rgba(12,12,15,.82);
  box-shadow: 0 14px 36px rgba(0,0,0,.68), 0 0 0 1px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  color: #fff; cursor: pointer;
  transition: transform 0.22s var(--ease-out), background-color 0.22s, color 0.22s, border-color 0.22s;
}
.bl-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bl-nav:hover { transform: scale(1.06); background: #fff; color: #0b0b0c; border-color: #fff; }
.bl-nav:active { transform: scale(0.96); }
.bl-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bl-prev { left: var(--gutter); }
.bl-next { right: var(--gutter); }

.bl-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(22px, 4vh, 44px); }
.bl-count { font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-keys { display: none !important; }

/* phones: the same row, swiped; a shorter strip, smaller arrows tucked to the sides */
@media (max-width: 759px) {
  .bl { --h: clamp(300px, 58svh, 480px); --ruler: 18px; }
  .bl-track { --gap: 3px; -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
  /* the arrows leave the picture: they sit under the strip, on the line of the counter */
  .bl-nav { width: 46px; height: 46px; margin-top: 0; top: calc(var(--ruler) + var(--h) + 14px); }
  .bl-nav svg { width: 22px; height: 22px; }
  .bl-prev { left: auto; right: calc(var(--gutter) + 56px); }
  .bl-next { right: var(--gutter); }
  .bl-foot { margin-top: 16px; min-height: 46px; }
  .bl-vl { bottom: 10px; }
  .bl-open { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-tile, .bl-media img, .bl-cap, .bl-glow i { 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; }
}

/* production/production.css */
/* Production page: conditions stage + Steenbeck */

/* ---------- on set ---------- */
.set { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(16px, 2vw, 28px); }
.set-stage {
  position: relative; height: clamp(440px, 68vh, 760px); border-radius: var(--radius); overflow: hidden;
  background: var(--stage-bg); border: 1px solid var(--line); perspective: 1400px; perspective-origin: 50% 46%; isolation: isolate;
  --lx: 50%; --ly: 45%;
}
.set-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.sc {
  position: absolute; left: 0; top: 0; width: 200px; height: 112px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--card-bg); box-shadow: var(--card-shadow); overflow: hidden; will-change: transform, opacity; transform-origin: 50% 50%;
  backface-visibility: hidden; color: #fff;
}
.sc-m, .sc-m img, .sc-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.sc-m img { transition: transform 0.9s var(--ease-out); }
.sc-m video { opacity: 0; transition: opacity 0.25s; }
.sc-m video.on { opacity: 1; }
.sc::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--lt, 0) * 0.16)), transparent 46%); }
.sc-t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 8px 6px; font-size: var(--fs-mono); font-weight: 600; line-height: 1.25; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); opacity: 0; transition: opacity 0.25s; }
.sc:hover .sc-t, .sc:focus-visible .sc-t { opacity: 1; }
.sc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-stage[data-mode='solo'] .sc { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85); }
.set-stage[data-mode='night'] { background: #050506; }
/* viewfinder */
.set-hud { position: absolute; inset: 0; z-index: 5001; pointer-events: none; color: #fff; font-size: var(--fs-mono); letter-spacing: 0.08em; }
.set-hud .c { position: absolute; width: 22px; height: 22px; border: 1.5px solid currentColor; opacity: 0.7; }
.set-hud .tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.set-hud .tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.set-hud .bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.set-hud .br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.set-slug { position: absolute; left: 46px; top: 18px; text-transform: uppercase; }
.set-rec { position: absolute; right: 46px; top: 18px; display: flex; gap: 8px; align-items: center; }
.set-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: recblink 1.2s steps(1) infinite; }
.set-rec b { font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes recblink { 50% { opacity: 0.2; } }
.set-hint { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5001; text-align: center; font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); pointer-events: none; margin: 0; }

.set-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* N5: rows like the /immersive/ projects — hairlines, the chosen condition lifted by tone (red stays for the playhead) */
.set-modes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.set-mode {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-weight: 600; font-size: var(--fs-btn);
  transition: color 0.2s, background-color 0.25s;
}
.set-mode b { font-weight: 500; font-size: var(--fs-mono); color: var(--muted); }
.set-mode i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color 0.2s, border-color 0.2s; }
.set-mode:hover { color: var(--text); background: color-mix(in oklab, var(--surface) 55%, transparent); }
.set-mode[aria-checked='true'] { color: var(--text); background: var(--surface); }
.set-mode[aria-checked='true'] i { background: var(--text); border-color: var(--text); }
.set-note { margin-top: auto; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.set-note b { display: block; 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-big); margin-bottom: 6px; }
.set-note p { margin: 0; color: var(--muted); font-size: var(--fs-body); }

/* ---------- Steenbeck ---------- */
.stb { display: grid; gap: 18px; }
.stb-screen { position: relative; height: min(50vh, 40vw); border-radius: 6px; overflow: hidden; background: #050403; cursor: zoom-in; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.stb-screen img, .stb-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.stb-screen video { opacity: 0; transition: opacity 0.35s; }
.stb-screen video.on { opacity: 1; }
.stb-screen.jump img { filter: brightness(1.6) blur(1px); }
.stb-flicker { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.stb-flicker::after { content: ''; position: absolute; inset: 0; background: #fff3dc; opacity: 0; animation: flick 0.18s steps(2) infinite; mix-blend-mode: soft-light; }
@keyframes flick { 0% { opacity: 0.02; } 50% { opacity: 0.07; } 100% { opacity: 0.03; } }
.stb-info { position: absolute; left: clamp(14px, 2vw, 26px); bottom: clamp(12px, 2vw, 22px); right: clamp(14px, 2vw, 26px); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); pointer-events: none; }
.stb-info .pg-chip { color: rgba(255, 255, 255, 0.85); }
.stb-n { font-size: var(--fs-mono); letter-spacing: 0.08em; opacity: 0.8; }
.stb-t { 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-big); line-height: 1.1; }
.stb-deck { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 10px; align-items: center; }
.stb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.stb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stb-btn:hover { border-color: var(--text); }
.stb-strip {
  --film: #2c1e12; --hole: var(--bg);
  position: relative; height: 150px; overflow: hidden; border-radius: 6px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(circle, var(--hole) 0 3.5px, transparent 4px) 0 9px / 20px 20px repeat-x,
    radial-gradient(circle, var(--hole) 0 3.5px, transparent 4px) 0 calc(100% - 9px) / 20px 20px repeat-x,
    var(--film);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stb-strip.drag { cursor: grabbing; }
.stb-track { position: absolute; left: 0; top: 22px; bottom: 22px; display: flex; gap: 6px; will-change: transform; }
.stb-f { position: relative; flex: none; height: 100%; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; opacity: 0.5; transition: opacity 0.25s; }
.stb-f.on { opacity: 1; }
.stb-f img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: sepia(0.25) saturate(0.9); }
.stb-f.on img { filter: none; }
.stb-edge { position: absolute; left: 4px; top: -17px; font-size: var(--fs-mono); color: rgba(240, 190, 110, 0.75); letter-spacing: 0.06em; }
.stb-gate { position: absolute; left: 50%; top: 14px; bottom: 14px; transform: translateX(-50%); aspect-ratio: 16 / 10.6; border: 2px solid var(--rec); border-radius: 5px; pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.12); }
.stb-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stb-hint { margin: 0; text-align: center; display: none; } /* N9: the section text already says «протягніть плівку»; phones keep it under the strip */

@media (max-width: 900px) {
  .set { grid-template-columns: minmax(0, 1fr); }
  .set-stage { height: min(72svh, 600px); }
  .set-panel { order: -1; }
  .set-panel .pg-hint { display: none; }
  .set-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 0; }
  .set-mode { border-bottom: 0; border-radius: 10px; background: var(--surface); }
  .set-mode[aria-checked='true'] { background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--text); }
  .stb-hint { display: block; }
  .set-mode { grid-template-columns: minmax(0, 1fr); justify-items: start; min-height: 54px; padding: 8px 10px; gap: 2px; font-size: var(--fs-ui); }
  .set-mode i { position: absolute; right: 10px; top: 10px; width: 9px; height: 9px; }
  .set-note { order: 3; margin-top: 0; padding: 12px 14px; }
  .set-note b { font-size: var(--fs-big); }
  .set-slug { left: 40px; font-size: var(--fs-mono); } .set-rec { right: 40px; font-size: var(--fs-mono); } .set-rec b { display: none; }
  .set-hint { display: none; }
  .stb-screen { height: auto; aspect-ratio: 16 / 9; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .stb-deck { grid-template-columns: minmax(0, 1fr); }
  .stb-btn { display: none; }
  .stb-strip { height: 112px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .stb-track { top: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .stb-flicker::after, .set-rec i { animation: none; }
}

