/* P23 Letka Air — Boarding pass · thermal print
   Tokens → base → preloader → gate strip / menu → stage → journey chapters → tickets → route arc
   → ground → form → footer → motion states → responsive → reduced motion */

:root {
  --navy: oklch(0.19 0.03 262);
  --navy-2: oklch(0.24 0.035 262);
  --paper: oklch(0.97 0.008 90);
  --paper-2: oklch(0.93 0.01 90);
  --ticket: oklch(0.99 0.005 90);
  --fg: oklch(0.18 0.02 260);
  --muted: oklch(0.45 0.02 260);
  --on-video: oklch(0.96 0.01 90);
  --on-video-muted: oklch(0.82 0.015 90);
  --accent: oklch(0.64 0.16 248);
  --accent-fg: oklch(0.98 0.005 90);
  --accent-ink: oklch(0.5 0.16 252);   /* CTA fill: --accent-fg on it ≥ 4.5:1 (on --accent it is 3.2:1) */
  --accent-hi: oklch(0.83 0.08 245);   /* accent as text on navy / over video */
  --line: oklch(0.82 0.01 90);
  --perf: oklch(0.86 0.01 90);
  --field-line: oklch(0.58 0.02 260);
  --scrim: oklch(0.19 0.03 262 / 0.6);
  --chapter-vh: 150vh;
  --section-y: clamp(5rem, 4rem + 5vw, 9rem);
  --pad: 24px;
  --gate-h: 44px;
  --display: 'Funnel Display', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --print: cubic-bezier(0.215, 0.61, 0.355, 1);   /* power2.out */
  --io: cubic-bezier(0.65, 0, 0.35, 1);
  --cut: 25%;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--gate-h) + 12px); }
html.motion { scroll-behavior: auto !important; }
body { margin: 0; background: var(--navy); color: var(--fg); font: 400 1.0625rem/1.6 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.gate :focus-visible, .menu :focus-visible, .chapter :focus-visible, .footer :focus-visible { outline-color: var(--accent-hi); }
.chapter .ticket :focus-visible { outline-color: var(--accent-ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 0.75rem 1rem; background: var(--paper); color: var(--fg); font: 500 0.8125rem var(--mono); }
.skip:focus { top: 12px; }

.display-1 { font: 300 clamp(2.75rem, 1.9rem + 4.2vw, 6.75rem)/1 var(--display); letter-spacing: -0.01em; }
.display-2 { font: 500 clamp(2rem, 1.5rem + 2.4vw, 4rem)/1.05 var(--display); letter-spacing: -0.01em; }
.display-3 { font: 500 clamp(1.375rem, 1.2rem + 0.9vw, 2rem)/1.15 var(--display); }
.label { font: 300 0.75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.lead { font-size: 1.1875rem; line-height: 1.55; max-width: 40rem; color: var(--muted); }
.muted-inline { color: var(--muted); font-weight: 300; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 52px; padding: 0 1.5rem; border-radius: 0; font: 600 1.25rem/1 var(--display); letter-spacing: -0.005em; transition: background-color 0.25s, color 0.25s, border-color 0.25s; white-space: nowrap; }
.btn-primary { background: var(--accent-ink); color: var(--accent-fg); }
.btn-primary:hover { background: oklch(0.44 0.15 252); }
.btn-sm { min-height: 44px; padding: 0 1rem; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.btn-ghost { border: 1px solid currentColor; }
.btn-ghost:hover { background: var(--fg); color: var(--paper); border-color: var(--fg); }
.link-down { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-video); }
.link-down .icon { transition: transform 0.3s var(--print); }
.link-down:hover .icon { transform: translateY(3px); }

/* ---------- preloader: the boarding pass prints, then tears ---------- */
.loader, .veil { display: none; }
html.motion .loader { display: block; position: fixed; inset: 0; z-index: 90; --bp-w: min(400px, calc(100vw - 48px)); --stub-h: 112px; }
html.intro-done .loader { display: none; }
.loader-half { position: absolute; left: 0; right: 0; height: 50.2%; background: oklch(0.19 0.03 262 / 0.92); }
.loader-top { top: 0; }
.loader-bot { bottom: 0; }
.printer { position: absolute; left: 50%; top: 50%; width: var(--bp-w); height: 0; transform: translateX(-50%); }
.feed { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--stub-h)); clip-path: inset(-100vh -50vw 0 -50vw); }
.bp { position: relative; transform: translateY(101%); color: var(--fg); font: 300 0.75rem/1.5 var(--mono); }
.bp-top, .bp-stub { background: var(--ticket); padding: 20px 22px; }
.bp-top { border-radius: 6px 6px 0 0; padding-bottom: 18px;
  -webkit-mask: radial-gradient(circle 3.2px at 50% 100%, #0000 3px, #000 3.4px) bottom / 10px 100% repeat-x;
          mask: radial-gradient(circle 3.2px at 50% 100%, #0000 3px, #000 3.4px) bottom / 10px 100% repeat-x; }
.bp-stub { height: var(--stub-h); display: grid; align-content: space-between; padding-top: 16px;
  -webkit-mask: radial-gradient(circle 3.2px at 50% 0, #0000 3px, #000 3.4px) top / 10px 100% repeat-x;
          mask: radial-gradient(circle 3.2px at 50% 0, #0000 3px, #000 3.4px) top / 10px 100% repeat-x; }
.bp-perf { position: relative; height: 0; }
.bp-ln { display: flex; justify-content: space-between; gap: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bp-ln b { font-weight: 500; }
.bp-head { color: var(--muted); }
.bp-route { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 14px; font: 300 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--display); letter-spacing: -0.01em; }
.bp-arrow { font-size: 0.6em; color: var(--accent-ink); }
.bp-dash { color: var(--line); }
.bp-count { font-weight: 500; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.bp-count b { display: inline-block; min-width: 3ch; text-align: right; }
.bp-bar { width: 100%; height: 34px; fill: var(--fg); }
[data-pl] { opacity: 0.18; transition: opacity 0.5s linear; }
[data-pl].is-ink { opacity: 1; }
.slot { position: absolute; top: var(--stub-h); left: -26px; right: -26px; height: 12px; margin-top: -2px; border-radius: 6px; background: oklch(0.11 0.02 262); box-shadow: inset 0 3px 4px oklch(0 0 0 / 0.6), 0 1px 0 oklch(1 0 0 / 0.1); }
.slot span { position: absolute; left: 22px; right: 22px; top: 2px; height: 1px; background: var(--accent); opacity: 0.25; transition: opacity 0.12s; }
.slot.is-hot span { opacity: 1; box-shadow: 0 0 10px var(--accent); }
html.revisit .printer { visibility: hidden; }
html.reduce .veil { display: block; position: fixed; inset: 0; z-index: 90; background: var(--navy); pointer-events: none; animation: veil 0.3s ease-out 0.05s forwards; }
@keyframes veil { to { opacity: 0; visibility: hidden; } }

/* ---------- gate strip ---------- */
.gate { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--gate-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-inline: var(--pad); background: oklch(0.19 0.03 262 / 0.6); color: var(--on-video); transition: background-color 0.4s; }
html:not(.motion) .gate, html.on-ground .gate { background: var(--navy); }
.gate-mark { justify-self: start; font: 600 1.25rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.gate-status { height: 1.25rem; overflow: hidden; font: 500 0.75rem/1.25rem var(--mono); letter-spacing: 0.08em; white-space: nowrap; text-align: center; }
.gate-reel { position: relative; display: block; height: 100%; }
.gate-t { display: block; }
.gate-t + .gate-t { position: absolute; left: 0; right: 0; top: 0; }
.gate-t b { font-weight: 500; color: var(--accent-hi); }
.g-short { display: none; }
.gate-menu { justify-self: end; display: inline-flex; align-items: center; gap: 0.6em; min-height: 44px; padding-inline: 0.75rem; margin-right: -0.75rem; font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.gate-menu::before { content: ''; width: 18px; height: 7px; border-block: 1px solid currentColor; }
.gate-perf { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: radial-gradient(circle at 1px 1px, oklch(0.96 0.01 90 / 0.35) 1px, #0000 1.3px) 0 0 / 6px 2px repeat-x; }
.gate-fill { position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, var(--accent) 1px, #0000 1.3px) 0 0 / 6px 2px repeat-x; transform: scaleX(0); transform-origin: left; }
html:not(.motion) .gate-perf { display: none; }

/* ---------- menu overlay ---------- */
.menu { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--navy); color: var(--on-video); }
.menu::backdrop { background: oklch(0.19 0.03 262 / 0.6); }
.menu-inner { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 2rem; padding: 0 var(--pad) 2rem; }
.menu-nav, .menu-phone { width: 100%; max-width: 1280px; margin-inline: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--gate-h); }
.menu-mark { font: 600 1.25rem/1 var(--display); }
.menu-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; font-size: 1.25rem; }
.menu-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-content: center; }
.menu-label { font: 300 0.75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-video-muted); padding-bottom: 0.75rem; border-bottom: 1px solid oklch(0.96 0.01 90 / 0.2); }
.menu-list li { border-bottom: 1px solid oklch(0.96 0.01 90 / 0.12); }
.menu-list a { display: flex; align-items: baseline; gap: 1.25rem; padding: 0.5rem 0; min-height: 44px; font: 300 2.5rem/1.1 var(--display); letter-spacing: -0.01em; transition: color 0.2s, padding 0.3s var(--print); }
.menu-list a:hover { color: var(--accent-hi); padding-left: 0.5rem; }
.ml-c { font: 500 0.75rem/1 var(--mono); color: var(--on-video-muted); min-width: 2.5ch; letter-spacing: 0.06em; }
.menu-phone { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; font: 500 0.875rem/1 var(--mono); }
.menu.is-printing .menu-list li { overflow: hidden; }
html.motion .menu.is-printing .menu-list a { animation: print-in 0.5s var(--print) both; }
html.motion .menu.is-printing .menu-col + .menu-col a { animation-delay: 0.18s; }
.menu.is-printing .menu-list li:nth-child(2) a { animation-delay: 0.06s; }
.menu.is-printing .menu-list li:nth-child(3) a { animation-delay: 0.12s; }
.menu.is-printing .menu-list li:nth-child(4) a { animation-delay: 0.18s; }
.menu.is-printing .menu-list li:nth-child(5) a { animation-delay: 0.24s; }
.menu.is-printing .menu-list li:nth-child(6) a { animation-delay: 0.3s; }
@keyframes print-in { from { transform: perspective(600px) translateY(100%) rotateX(8deg); opacity: 0; } }

/* ---------- stage (fixed canvas under the journey) ---------- */
.stage { display: none; }
html.motion .stage { display: block; position: fixed; inset: 0; z-index: 0; background: var(--navy); overflow: hidden; }
.sky, .sky span, .stage-poster, .stage-canvas, .stage-scrim, .grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster { object-fit: cover; }
.stage-canvas { opacity: 0; }
.stage.is-live .stage-canvas { opacity: 1; }
.stage.is-live .stage-poster { visibility: hidden; }
.stage.is-faded .stage-canvas { opacity: 0; transition: opacity 0.6s; }
.sky span { opacity: 0; transition: opacity 0.9s var(--io); }
.stage[data-ch="0"] .sky-0, .stage[data-ch="1"] .sky-1, .stage[data-ch="2"] .sky-2, .stage[data-ch="3"] .sky-3, .stage[data-ch="4"] .sky-4, .stage[data-ch="5"] .sky-5 { opacity: 1; }
/* Stratosphere dawn: fallback skies while frames or posters are missing */
.sky-0, .chapter[data-chapter="0"] { background: linear-gradient(180deg, oklch(0.14 0.025 262) 0%, oklch(0.22 0.04 262) 38%, oklch(0.55 0.08 50) 58%, oklch(0.3 0.04 262) 61%, oklch(0.12 0.02 262) 100%); }
.sky-1, .chapter[data-chapter="1"] { background: linear-gradient(180deg, oklch(0.24 0.04 258) 0%, oklch(0.5 0.05 245) 48%, oklch(0.66 0.04 240) 58%, oklch(0.2 0.03 255) 100%); }
.sky-2, .chapter[data-chapter="2"] { background: linear-gradient(180deg, oklch(0.36 0.06 265) 0%, oklch(0.72 0.07 35) 46%, oklch(0.9 0.03 70) 56%, oklch(0.84 0.02 250) 100%); }
.sky-3, .chapter[data-chapter="3"] { background: radial-gradient(120% 90% at 70% 40%, oklch(0.88 0.03 80), oklch(0.62 0.05 60) 55%, oklch(0.3 0.03 50)); }
.sky-4, .chapter[data-chapter="4"] { background: linear-gradient(180deg, oklch(0.5 0.06 245) 0%, oklch(0.82 0.02 240) 45%, oklch(0.6 0.03 245) 70%, oklch(0.3 0.03 250) 100%); }
.sky-5, .chapter[data-chapter="5"] { background: linear-gradient(180deg, oklch(0.24 0.05 268) 0%, oklch(0.62 0.09 40) 52%, oklch(0.5 0.06 200) 66%, oklch(0.18 0.03 240) 100%); }
.stage-scrim { background:
  linear-gradient(180deg, oklch(0.19 0.03 262 / 0.5), oklch(0.19 0.03 262 / 0) 120px),
  linear-gradient(0deg, oklch(0.19 0.03 262 / 0.6), transparent 55%); transition: opacity 0.6s; }
html.ch-2 .stage-scrim, html.ch-4 .stage-scrim { background:
  linear-gradient(180deg, oklch(0.19 0.03 262 / 0.62), oklch(0.19 0.03 262 / 0) 160px),
  linear-gradient(0deg, oklch(0.19 0.03 262 / 0.66), transparent 60%); }
.grain { opacity: 0.04; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- journey ---------- */
.journey { position: relative; }
html.motion .journey { height: calc(6 * var(--chapter-vh) + 100vh); }
html.motion .journey-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: clip; }
.chapter { position: relative; color: var(--on-video); }
html.motion .chapter { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.6s var(--io); background: none; }
html.motion .chapter.is-active { opacity: 1; pointer-events: auto; }
.chapter-media { position: absolute; inset: 0; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; }
html.motion .chapter-media { display: none; }
html.motion.no-frames .chapter-media { display: block; }
.chapter-ui { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: end; min-height: 100svh; max-width: calc(1280px + 2 * var(--pad)); margin-inline: auto; padding: calc(var(--gate-h) + 3.5rem) var(--pad) clamp(2.5rem, 8vh, 5.5rem); }
html.motion .chapter-ui { height: 100%; min-height: 0; }
.chapter-ui > * { grid-column: 1 / -1; }
html:not(.motion) .chapter { min-height: 100svh; overflow: hidden; }
html:not(.motion) .chapter::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, oklch(0.19 0.03 262 / 0.7), oklch(0.19 0.03 262 / 0.2) 55%, oklch(0.19 0.03 262 / 0.45)); }

/* halo: local scrim behind text that sits directly on video (≥ 4.5:1 over the brightest frame) */
.halo { position: relative; isolation: isolate; }
/* solid core under the text, eased feather on all sides (two linear masks intersected) */
.halo::before { content: ''; position: absolute; z-index: -1; inset: -190px -260px; pointer-events: none; background: oklch(0.19 0.03 262 / 0.68);
  --fx: 230px; --fy: 165px;
  --m: linear-gradient(90deg, #0000, #0003 calc(var(--fx) * 0.35), #000c calc(var(--fx) * 0.75), #000 var(--fx), #000 calc(100% - var(--fx)), #000c calc(100% - var(--fx) * 0.75), #0003 calc(100% - var(--fx) * 0.35), #0000), linear-gradient(#0000, #0003 calc(var(--fy) * 0.35), #000c calc(var(--fy) * 0.75), #000 var(--fy), #000 calc(100% - var(--fy)), #000c calc(100% - var(--fy) * 0.75), #0003 calc(100% - var(--fy) * 0.35), #0000);
  -webkit-mask: var(--m); -webkit-mask-composite: source-in; mask: var(--m); mask-composite: intersect; }
.hero.halo::before { inset: -330px -300px -260px -420px; --fx: 300px; --fy: 300px; background: oklch(0.19 0.03 262 / 0.62); }
.halo--r::before { inset: -260px -320px -300px -300px; -webkit-mask: none; mask: none; background: radial-gradient(closest-side, oklch(0.19 0.03 262 / 0.66), oklch(0.19 0.03 262 / 0.6) 45%, oklch(0.19 0.03 262 / 0.3) 75%, oklch(0.19 0.03 262 / 0)); }

.hero { grid-column: 1 / span 7; }
.hero .label { color: var(--on-video); margin-bottom: 1.25rem; }
.hero-title { max-width: 14.5em; font-size: clamp(2.75rem, 1.9rem + 3.6vw, 6rem); }
.hero-quiet { display: block; margin-top: 0.35em; font-size: 0.48em; line-height: 1.1; font-weight: 400; color: var(--on-video-muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 2rem; }

.chapter--vzlet .ticket { grid-column: 1 / span 6; align-self: center; }
.chapter--kabina .ticket { grid-column: 7 / -1; align-self: center; }
.chapter--let .chapter-ui { align-content: end; }
.stubs { grid-column: 1 / -1; justify-self: center; display: flex; gap: 16px; }
.land { grid-column: 1 / span 8; }
.land .label { color: var(--on-video); margin-bottom: 1.25rem; }
.land-title { font-size: clamp(2.5rem, 1.8rem + 3vw, 5.25rem); max-width: 15em; }
.land .link-down { margin-top: 1.75rem; }

/* ---------- tickets (Ticket stack) ---------- */
.ticket { position: relative; display: grid; grid-template-columns: var(--cut) minmax(0, 1fr); background: var(--ticket); color: var(--fg); border-radius: 6px;
  -webkit-mask: radial-gradient(circle 10px at var(--cut) 0, #0000 9.5px, #000 10px) top / 100% 51% no-repeat, radial-gradient(circle 10px at var(--cut) 100%, #0000 9.5px, #000 10px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 10px at var(--cut) 0, #0000 9.5px, #000 10px) top / 100% 51% no-repeat, radial-gradient(circle 10px at var(--cut) 100%, #0000 9.5px, #000 10px) bottom / 100% 51% no-repeat; }
.ticket::before { content: ''; position: absolute; left: calc(var(--cut) - 1px); top: 16px; bottom: 16px; width: 2px; background: radial-gradient(circle at 1px 1px, var(--perf) 1px, #0000 1.4px) 0 0 / 2px 6px repeat-y; transform-origin: top; }
.t-stub { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem clamp(0.75rem, 1.6vw, 1.5rem); min-width: 0; }
.t-body { padding: 1.25rem clamp(1rem, 2.4vw, 2rem); min-width: 0; }
.t-code { font: 500 0.875rem/1.3 var(--mono); letter-spacing: 0.02em; }
.t-code--big { font: 300 clamp(2rem, 1.5rem + 1.2vw, 2.625rem)/1 var(--display); letter-spacing: -0.01em; }
.t-small { font: 300 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.t-bar { width: 100%; max-width: 160px; height: 30px; margin-top: auto; fill: var(--line); }
.ticket--video { --perf: oklch(0.8 0.01 90); }
.ticket--video .display-3 { margin-bottom: 0.75rem; }
.t-rows { border-top: 1px solid var(--line); }
.t-row { border-bottom: 1px solid var(--line); }
.t-row .ln-i { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; padding: 0.7rem 0.5rem 0.7rem 0; transition: background-color 0.2s, padding 0.3s var(--print); }
.tr-c { font: 500 0.8125rem/1.3 var(--mono); color: var(--accent-ink); white-space: nowrap; }
.tr-n { font-size: 1.0625rem; line-height: 1.4; }
.t-rows--hover .t-row:hover .ln-i { background: oklch(0.64 0.16 248 / 0.08); padding-left: 0.5rem; }
.ln { display: block; }

/* chapter 2 stubs: torn-off pieces, the quiet chapter */
.stub { position: relative; display: grid; gap: 0.2rem; min-width: 9.5rem; padding: 1.1rem 1.25rem 1.2rem; background: var(--ticket); color: var(--fg); border-radius: 6px;
  -webkit-mask: radial-gradient(circle 3.2px at 50% 0, #0000 3px, #000 3.4px) top / 10px 100% repeat-x;
          mask: radial-gradient(circle 3.2px at 50% 0, #0000 3px, #000 3.4px) top / 10px 100% repeat-x; border-top-left-radius: 0; border-top-right-radius: 0; }
.stub-n { font: 300 clamp(2.5rem, 2rem + 2vw, 3.75rem)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.stub-l { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; color: var(--muted); }

/* ---------- route arc ---------- */
.route-ui { align-content: start; }
.route-head { grid-column: 8 / -1; position: relative; z-index: 2; }
.route-head .label { color: var(--on-video); margin-bottom: 0.75rem; }
.route-note { margin-top: 0.75rem; color: var(--on-video); max-width: 26rem; }
.origins { display: flex; gap: 8px; margin-top: 1.25rem; }
.o-chip { min-width: 64px; min-height: 44px; padding: 0 1rem; border: 1px solid oklch(0.96 0.01 90 / 0.5); background: oklch(0.19 0.03 262 / 0.72); color: var(--on-video); font: 500 0.875rem/1 var(--mono); letter-spacing: 0.04em; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.o-chip:hover { border-color: var(--on-video); }
.o-chip[aria-checked="true"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-fg); }
.route-map-wrap { position: absolute; inset: 0; z-index: 1; }
.route-map { width: 100%; height: 100%; overflow: visible; }
html.is-safari .r-arc { filter: none; }
.r-arc, .r-arc-old { fill: none; stroke: var(--accent); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px oklch(0.19 0.03 262 / 0.6)); }
.r-plane circle { fill: var(--paper); stroke: var(--accent); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.pt-code { font: 500 14px/1 var(--mono); fill: var(--on-video); letter-spacing: 0.04em; transition: fill 0.2s; }
.pt-tag { fill: oklch(0.19 0.03 262 / 0.78); transition: fill 0.2s; }
.pt:hover .pt-tag, .pt:focus-visible .pt-tag { fill: oklch(0.19 0.03 262 / 0.9); }
.pt.is-on .pt-tag { fill: var(--accent-ink); }
.org.is-on .pt-tag { fill: oklch(0.19 0.03 262 / 0.85); }
.org-ring { fill: none; stroke: var(--on-video); stroke-width: 1px; opacity: 0.45; vector-effect: non-scaling-stroke; }
.org-dot { fill: var(--on-video); }
.org.is-on .org-ring { stroke: var(--accent-hi); opacity: 1; }
.org.is-on .pt-code { fill: var(--accent-hi); }
.org:not(.is-on) .pt-code { fill: var(--on-video-muted); }
.pt { cursor: pointer; outline: none; }
.pt-hit { fill: oklch(0.19 0.03 262 / 0); pointer-events: all; stroke: none; transition: fill 0.2s; }
.pt-dot { fill: var(--on-video); stroke: oklch(0.19 0.03 262 / 0.6); stroke-width: 1px; transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--print), fill 0.2s; }
.pt:hover .pt-dot, .pt:focus-visible .pt-dot { transform: scale(1.6); }
.pt:hover .pt-code, .pt:focus-visible .pt-code { fill: var(--accent-hi); }
.pt:focus-visible .pt-hit { fill: oklch(0.19 0.03 262 / 0.45); stroke: var(--accent-hi); stroke-width: 2px; }
.pt.is-on .pt-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 1.5px; transform: scale(1.6); }
.pt.is-on .pt-code { fill: var(--paper); }
.ticket--route { position: absolute; z-index: 3; left: 0; top: 0; width: min(480px, 100%); --cut: 24%; grid-column: auto; transition: left 0.5s var(--io), top 0.5s var(--io); }
.ticket--route .t-bar { max-width: 72px; height: 22px; }
.ticket--route .t-body { padding-block: 1.1rem; }
.rt-plane { font: 300 0.75rem/1.4 var(--mono); color: var(--muted); margin-top: 0.3rem; }
.rt-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; margin-top: 0.7rem; padding-block: 0.55rem; border-block: 1px solid var(--line); }
.rt-grid > div + div { padding-left: 0.75rem; border-left: 1px solid var(--line); }
.rt-grid dd small { display: block; font: 300 0.625rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.rt-grid dt { font: 300 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.rt-grid dd { font: 500 1.0625rem/1.3 var(--display); margin-top: 0.1rem; }
.ticket--route .t-stub { justify-content: center; }
.rt-route { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.5rem; font: 300 1.875rem/1.1 var(--display); letter-spacing: -0.01em; }
.rt-arrow { color: var(--accent-ink); font-size: 0.75em; }
.rt-dur { font: 500 0.8125rem/1 var(--mono); color: var(--muted); margin-left: auto; }
.ticket--route .btn { margin-top: 0.8rem; width: 100%; font-size: 0.75rem; }
.route-table { display: none; }
html:not(.js) .route-table { display: table; position: relative; z-index: 2; margin-top: 2rem; border-collapse: collapse; background: var(--ticket); color: var(--fg); font: 300 0.875rem/1.4 var(--mono); }
.route-table caption { text-align: left; padding: 0.5rem 0; color: var(--on-video); }
.route-table th, .route-table td { padding: 0.4rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- ground ---------- */
.ground { position: relative; z-index: 3; background: var(--paper); color: var(--fg); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }
.wrap { max-width: calc(1280px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.sec-head .label { color: var(--muted); }
.sec-head .display-2 { max-width: 18em; }
.stack { display: grid; gap: 16px; filter: drop-shadow(0 1px 0 oklch(0.82 0.01 90)) drop-shadow(0 14px 24px oklch(0.19 0.03 262 / 0.07)); }

.fleet .t-stub { padding-block: 1.75rem; }
.fleet-code { font: 300 clamp(3.5rem, 2.4rem + 4.5vw, 7rem)/0.85 var(--display); letter-spacing: -0.03em; }
.fleet .t-body { padding-block: 1.75rem; display: grid; gap: 1.1rem; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.specs > div { padding: 0.8rem 0.75rem 0.8rem 0; }
.specs > div + div { padding-left: 0.9rem; border-left: 1px solid var(--line); }
.specs dt, .who-facts dt, .fs-list dt { font: 300 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.specs dd { font: 500 1.375rem/1.2 var(--display); margin-top: 0.2rem; white-space: nowrap; }
.fleet-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.fleet-price b { font: 300 2rem/1 var(--display); letter-spacing: -0.01em; }
.fp-l, .fp-o { font: 300 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fleet-note { color: var(--muted); }

.leg .t-stub { justify-content: center; padding-block: 1.25rem; }
.leg-date { font: 300 clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem)/1.05 var(--display); white-space: nowrap; }
.leg-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 0.75rem 1.5rem; }
.leg-route { font: 300 clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem)/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.leg-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font: 300 0.8125rem/1.5 var(--mono); }
.leg-meta b { font-weight: 500; }

.who { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; }
.who-text { display: grid; gap: 1.25rem; max-width: 40rem; }
.who-text .label { color: var(--muted); }
.who-text .display-2 { margin-bottom: 0.5rem; }
.who-facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.who-facts > div { padding: 0.9rem 1.5rem 0 0; margin-right: 1.5rem; }
.who-facts dd { font: 500 0.9375rem/1.3 var(--mono); margin-top: 0.2rem; }
.media { position: relative; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.who-media { aspect-ratio: 3 / 2; }
.media.is-missing { background:
  radial-gradient(circle at 1px 1px, var(--perf) 1px, #0000 1.4px) top left / 6px 2px repeat-x,
  radial-gradient(circle at 1px 1px, var(--perf) 1px, #0000 1.4px) bottom left / 6px 2px repeat-x,
  radial-gradient(circle at 1px 1px, var(--perf) 1px, #0000 1.4px) top left / 2px 6px repeat-y,
  radial-gradient(circle at 1px 1px, var(--perf) 1px, #0000 1.4px) top right / 2px 6px repeat-y,
  var(--paper-2); }
.media.is-missing::after { content: 'IMG'; position: absolute; inset: 0; display: grid; place-items: center; font: 500 0.875rem/1 var(--mono); letter-spacing: 0.12em; color: var(--muted); }
.chapter-media.is-missing { background: none; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.faq { border-top: 1px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; min-height: 64px; padding: 0.9rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.q-c { font: 500 0.75rem/1 var(--mono); color: var(--accent-ink); letter-spacing: 0.06em; }
.q-t { font: 500 1.25rem/1.3 var(--display); }
.q-i { transition: transform 0.3s var(--print); }
.faq details[open] .q-i { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.5rem 4rem; max-width: 44rem; color: var(--muted); }
.faq summary:hover .q-t { color: var(--accent-ink); }

/* ---------- form ticket ---------- */
.ticket--form { --cut: 30%; align-items: stretch; filter: none; }
.stack-like { filter: drop-shadow(0 1px 0 var(--line)); }
.form-stub { justify-content: flex-start; gap: 1.25rem; padding: 2rem clamp(1rem, 2vw, 2rem); background: var(--paper-2); }
.fs-route { display: flex; align-items: baseline; gap: 0.5rem; font: 300 clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem)/1 var(--display); letter-spacing: -0.02em; flex-wrap: wrap; }
.fs-route .rt-arrow { font-size: 0.55em; }
.fs-list { display: grid; gap: 0.8rem; }
.fs-list dd { font: 500 0.9375rem/1.3 var(--mono); margin-top: 0.15rem; }
.ticket--form > .t-body { padding: 2rem clamp(1rem, 3vw, 2.75rem); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 300 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field input:not([type="checkbox"]), .field select { width: 100%; min-height: 48px; padding: 0.6rem 0; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; background: transparent; font: 400 1.0625rem/1.3 var(--display); }
.field select { appearance: none; padding-right: 1.75rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat; }
.field input:focus-visible, .field select:focus-visible { outline: none; border-bottom: 2px solid var(--accent-ink); margin-bottom: -1px; }
.field input::placeholder { color: oklch(0.55 0.02 260); }
.field [aria-invalid="true"] { border-bottom-color: oklch(0.5 0.16 252); border-bottom-style: dashed; }
.field--check-inline { align-content: end; }
.check { display: flex; align-items: flex-start; gap: 0.75rem; min-height: 44px; padding-top: 0.6rem; cursor: pointer; font: 400 1rem/1.4 var(--display) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--fg) !important; }
.check input { width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--accent-ink); flex: none; }
.err { font: 500 0.75rem/1.4 var(--mono); color: oklch(0.42 0.14 252); }
.err::before { content: '× '; }
.form-err { padding: 0.9rem 1rem; background: var(--paper-2); font: 500 0.8125rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; border-left: 2px solid var(--accent-ink); }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-note { font: 300 0.75rem/1.5 var(--mono); color: var(--muted); }
.form-ok { display: grid; gap: 1rem; align-content: center; min-height: 100%; padding: 1rem 0; }
.form-ok[hidden] { display: none; }
.ok-code { font: 300 clamp(1.75rem, 1.3rem + 2vw, 3rem)/1.1 var(--display); letter-spacing: -0.01em; }
.ok-text { font-size: 1.1875rem; color: var(--muted); }
.form-ok:focus { outline: none; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 3; background: var(--navy); color: var(--on-video); padding-bottom: 2.5rem; }
.footer-media { aspect-ratio: 16 / 5; border-radius: 0; background: var(--navy-2); }
.footer-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--navy), oklch(0.19 0.03 262 / 0.2) 60%); }
.footer-media.is-missing { background: linear-gradient(180deg, oklch(0.3 0.05 265), oklch(0.55 0.08 45) 70%, var(--navy)); }
.footer-media.is-missing::after { content: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: 1.5rem 24px; margin-top: -3rem; position: relative; z-index: 2; font: 300 0.875rem/1.6 var(--mono); }
.footer-mark { grid-row: span 2; font: 300 clamp(3rem, 2rem + 6vw, 8.5rem)/0.9 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: oklch(0.96 0.01 90 / 0.4); }
.footer a:hover { color: var(--accent-hi); }
.demo { grid-column: 2 / -1; color: var(--on-video-muted); padding-top: 1rem; border-top: 1px solid oklch(0.96 0.01 90 / 0.2); }

/* ---------- motion states: thermal print ---------- */
html.motion .print .ln { overflow: clip; }
html.motion .print.is-done .ln { overflow: visible; }
html.motion .print .ln-i { transform: perspective(600px) translateY(105%) rotateX(8deg); transform-origin: 50% 100%; opacity: 0; transition: transform 0.5s var(--print) var(--d, 0s), opacity 0.45s linear var(--d, 0s); }
html.motion .print.is-printed .ln-i { transform: none; opacity: 1; }
html.motion .print.is-printed [data-row]:not(.is-in) > .ln-i { transform: perspective(600px) translateY(105%) rotateX(8deg); opacity: 0; transition-delay: 0s; }
html.motion .print.is-out .ln-i { transform: translateY(-105%); opacity: 0; transition: transform 0.35s var(--io), opacity 0.3s linear; }
html.motion .print.no-tr .ln-i, html.motion .print.no-tr::before { transition: none !important; }
html.motion .ticket.print::before { transform: scaleY(0); transition: transform 0.4s var(--print); }
html.motion .ticket.print.is-printed::before { transform: scaleY(1); }
html.motion .stub { transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--print), opacity 0.5s linear; }
html.motion .stubs.is-printed .stub { transform: none; opacity: 1; }
html.motion .stubs.is-printed .stub:nth-child(2) { transition-delay: 0.12s; }
html.motion .stubs.is-printed .stub:nth-child(3) { transition-delay: 0.24s; }
html.motion [data-enter] { opacity: 0; }
html.motion.intro-done [data-enter] { opacity: 1; }
html.motion .hero-title:not(.is-ready) { visibility: hidden; }
html.motion.intro-done .hero-title { visibility: visible; }
html.motion:not(.intro-done) .gate { opacity: 0; }
.is-bump { animation: bump 0.5s var(--print); }
@keyframes bump { 40% { transform: translateY(-3px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .chapter--vzlet .ticket { grid-column: 1 / span 8; }
  .chapter--kabina .ticket { grid-column: 5 / -1; }
  .route-head { grid-column: 7 / -1; }
}
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .route-ui { display: flex; flex-direction: column; gap: 1rem; padding-top: calc(var(--gate-h) + 1.5rem); }
  .route-head { order: 0; }
  .route-head .label { margin-bottom: 0.4rem; }
  .route-note { margin-top: 0.4rem; font-size: 1rem; }
  .origins { margin-top: 0.75rem; }
  .halo::before, .hero.halo::before, .halo--r::before { inset: -130px -60px; --fx: 40px; --fy: 110px; background: oklch(0.19 0.03 262 / 0.68); -webkit-mask: var(--m); -webkit-mask-composite: source-in; mask: var(--m); mask-composite: intersect; }
  .halo--r::before { inset: -70px -60px -18px; --fy: 36px; }
  .route-map-wrap { position: relative; order: 1; inset: auto; width: calc(100% + 2 * var(--pad)); margin-inline: calc(-1 * var(--pad)); aspect-ratio: 1230 / 600; }
  .ticket--route { position: relative; order: 2; left: auto !important; top: auto !important; width: 100%; }
}
@media (max-width: 767px) {
  :root { --pad: 16px; --gate-h: 40px; }
  .chapter-ui { column-gap: 12px; padding-bottom: 1.75rem; }
  .hero, .land { grid-column: 1 / -1; }
  .hero-title { font-size: clamp(2.375rem, 1.6rem + 3.6vw, 2.75rem); }
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .land-title { font-size: 2.375rem; }
  .chapter--vzlet .ticket, .chapter--kabina .ticket { grid-column: 1 / -1; align-self: end; }
  .t-row .ln-i { grid-template-columns: 4.6rem 1fr; gap: 0.6rem; padding-block: 0.55rem; }
  .ticket--video .display-3 { font-size: 1.375rem; }
  .tr-n { font-size: 1rem; }
  .ticket--video { --cut: 21%; }
  .ticket--video .t-bar { height: 22px; }
  .ticket--video .t-stub { padding-inline: 0.6rem; }
  .ticket--video .t-code { font-size: 0.75rem; }
  .stubs { gap: 8px; width: 100%; }
  .stub { min-width: 0; flex: 1; padding: 0.9rem 0.75rem 1rem; }
  .stub-n { font-size: 2rem; }
  .stub-l { font-size: 0.625rem; }
  .gate { grid-template-columns: auto 1fr auto; gap: 0.75rem; }
  .gate-mark { font-size: 1.25rem; }
  .g-long { display: none; }
  .g-short { display: inline; }
  .menu-nav { grid-template-columns: 1fr; gap: 1.5rem; align-content: start; }
  .menu-list a { font-size: 1.875rem; padding: 0.35rem 0; }
  .menu-inner { gap: 1.25rem; }
  .rt-route { font-size: 1.5rem; }
  .ticket--route { --cut: 22%; }
  .ticket--route .t-stub { padding-inline: 0.6rem; }
  .ticket--route .t-body { padding: 0.9rem 0.9rem 1rem; }
  .ticket--route .t-code--big { font-size: 1.5rem; }
  .ticket--route .btn { margin-top: 0.6rem; }
  .rt-grid { margin-top: 0.5rem; }
  .rt-grid dd { font-size: 1rem; }
  .fleet { --cut: 26%; }
  .fleet .t-stub { padding: 1.25rem 0.75rem; }
  .fleet .t-body { padding: 1.25rem 1rem; }
  .fleet-code { font-size: 3rem; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .specs dd { font-size: 1.25rem; }
  .fleet-price b { font-size: 1.625rem; }
  .leg { --cut: 30%; }
  .leg-body { grid-template-columns: 1fr; gap: 0.5rem; }
  .leg-route { font-size: 1.75rem; }
  .leg .t-stub { padding-inline: 0.75rem; }
  .leg-date { font-size: 1.375rem; white-space: normal; }
  .who, .faq-wrap { grid-template-columns: 1fr; }
  .faq summary { grid-template-columns: 2.25rem 1fr auto; gap: 0.75rem; }
  .q-t { font-size: 1.25rem; }
  .faq details p { padding: 0 0 1.25rem 3rem; }
  .ticket--form { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket--form::before { left: 0; top: auto; bottom: auto; width: auto; margin-inline: 16px; height: 2px; background: radial-gradient(circle at 1px 1px, var(--perf) 1px, #0000 1.4px) 0 0 / 6px 2px repeat-x; position: relative; grid-row: 2; }
  .form-stub { grid-row: 1; padding: 1.5rem 1rem 1.25rem; gap: 0.9rem; }
  .fs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket--form > .t-body { grid-row: 3; padding: 1.5rem 1rem 1.75rem; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; white-space: normal; text-align: center; padding-block: 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .footer-mark { grid-row: auto; font-size: 3.25rem; }
  .demo { grid-column: auto; }
  .footer-media { aspect-ratio: 16 / 9; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html.reduce .veil { animation-duration: 0.3s !important; }
  .link-down .icon, .menu-list a, .q-i, .pt-dot, .ticket--route { transition: none; }
}
