/* Sacred Spaces 3D — светлая воздушная/стеклянная тема */
:root {
  --pearl: #F6F4EF;
  --mist: #E9EEF2;
  --ink: #1A1D24;
  --ink-soft: rgba(26, 29, 36, 0.62);
  --accent: #B8651E;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-line: rgba(255, 255, 255, 0.75);
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: linear-gradient(180deg, var(--pearl), var(--mist)); color: var(--ink); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { min-height: 100vh; }
body.mode-hub { overflow-x: auto; overflow-y: hidden; }
body.mode-scene { overflow-x: hidden; overflow-y: auto; }
body.mode-transition, body.is-loading { overflow: hidden; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
body.is-hover-symbol { cursor: pointer; }

/* горизонтальный трек хаба */
#track { display: none; width: calc(4 * 100vw); height: 1px; position: relative; z-index: -1; }
#track i { display: inline-block; width: 100vw; height: 1px; scroll-snap-align: start; }
body.mode-hub #track { display: flex; }
@media (pointer: coarse) { html { scroll-snap-type: x mandatory; } }

/* шапка */
.chrome { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 28px clamp(20px, 4vw, 56px); pointer-events: none; }
.brand { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; }
.ghost, .btn { pointer-events: auto; font: inherit; color: var(--ink); cursor: pointer; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-radius: 999px; transition: background .3s, transform .3s, border-color .3s; }
.ghost { padding: 9px 18px; font-size: 0.78rem; letter-spacing: 0.08em; }
.ghost:hover { background: rgba(255, 255, 255, 0.75); }
.ghost:focus-visible, .btn:focus-visible, .dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* подписи хаба */
.hub-info { position: fixed; z-index: 4; left: clamp(24px, 6vw, 96px); bottom: clamp(88px, 14vh, 150px); width: min(34rem, 86vw); opacity: 0; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; pointer-events: none; display: none; }
body.mode-hub .hub-info { display: block; opacity: 1; }
body.mode-hub .hub-info.is-off { opacity: 0; transform: translateY(10px); }
.hub-info .btn, .hub-info.is-off .btn { pointer-events: none; }
body.mode-hub .hub-info:not(.is-off) .btn { pointer-events: auto; }
/* тег — просто мелкий текст; подзаголовок — стеклянная плашка: читается на любом небе (рассвет ... ночь) */
.eyebrow { display: block; margin: 0 0 12px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(26, 29, 36, 0.72); text-shadow: 0 0 32px rgba(255, 255, 255, 0.75); }
.hub-info h1 { margin: 0 0 16px; font-weight: 600; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
/* 3D-стеклянный заголовок (по умолчанию; ?t3d=0 -> DOM): h1 остаётся в DOM для доступности (sr-only); на его месте — слот того же размера. Пока шрифт грузится, h1 невидим, но держит место */
body.t3d-pending .hub-info h1 { visibility: hidden; }
.title-slot { display: none; margin: 10px 0 22px; pointer-events: none; }
body.has-3d-title .title-slot { display: block; }
body.has-3d-title .hub-info h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sub { position: relative; margin: 0 0 26px; padding: 14px 6px; max-width: 40ch; font-size: 1.05rem; font-weight: 420; line-height: 1.55; color: var(--ink); text-shadow: 0 0 16px rgba(250, 246, 241, 0.85); }
/* за .sub — не плашка, а бесформенное светящееся облако-плазма (js/subcloud.js, canvas за текстом): без рамки/контура/заливки, спад к нулю */
.sub-cloud { position: fixed; z-index: 3; left: 0; top: 0; pointer-events: none; display: none; }
/* без WebGL: только мягкий ореол текста */
body.no-sub-cloud .sub { text-shadow: 0 0 14px rgba(250, 246, 241, 0.95), 0 0 30px rgba(250, 246, 241, 0.8); }
.btn { position: relative; overflow: hidden; padding: 14px 28px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); border: 1px solid rgba(255, 255, 255, calc(0.6 + 0.2 * var(--br, 0.5))); background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1)); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 calc(18px + 10px * var(--br, 0.5)) rgba(255, 255, 255, calc(0.2 + 0.16 * var(--br, 0.5))), 0 0 36px rgba(255, 255, 255, 0.1); transition: background .5s ease, transform .3s, border-color .4s; }
/* ток плазмы: при наведении по стеклу слева направо проходит мягкий светящийся блик (~0.9 с) */
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 70%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%); transform: translateX(-120%); opacity: 0; pointer-events: none; }
.btn:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)); border-color: rgba(255, 255, 255, 0.95); }
.btn:hover::after { animation: btn-wave .9s ease-out 1; }
@keyframes btn-wave { 0% { transform: translateX(-120%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(190%); opacity: 0; } }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.5), 0 0 0 7px rgba(255, 255, 255, 0.28); }
.btn:active { transform: scale(0.98); }

/* точки навигации */
.dots { position: fixed; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); display: none; gap: 26px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.mode-hub .dots { display: flex; }
.dots { box-shadow: inset 0 0 calc(10px + 8px * var(--br, 0.5)) rgba(255, 255, 255, 0.18); transition: box-shadow .5s ease; }
.dots:hover { box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.42); }
.dot:hover i { background: var(--ink); transform: scale(1.35); }
.dot { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.dot i { width: 7px; height: 7px; border-radius: 50%; background: rgba(26, 29, 36, 0.28); transition: all .4s; }
.dot.on { color: var(--ink); }
.dot.on i { background: var(--ink); transform: scale(1.5); }
.dot span { display: none; }
.dot.on span { display: inline; }
@media (min-width: 900px) { .dot span { display: inline; } }

/* сцена-заглушка */
.scene-ui { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .6s; }
body.mode-scene .scene-ui { opacity: 1; }
.back { position: absolute; top: 24px; left: clamp(16px, 4vw, 56px); margin-top: 54px; }
.scene-head { position: absolute; top: 24px; right: clamp(20px, 4vw, 56px); margin-top: 58px; text-align: right; max-width: 22rem; }
.scene-head h2 { margin: 0; font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; }
.scene-head p { margin: 6px 0 0; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }
#chapters { display: none; position: relative; z-index: 2; pointer-events: none; }
body.mode-scene #chapters, body.mode-transition #chapters { display: block; }
body.mode-transition #chapters { opacity: 0; }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 12vh clamp(24px, 8vw, 120px); }
.chapter-inner { max-width: 36rem; padding: 40px 44px; border-radius: 28px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); pointer-events: auto; opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.chapter:nth-child(even) { justify-content: flex-end; }
.chapter.in-view .chapter-inner { opacity: 1; transform: none; }
.chapter-no { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.3em; color: var(--accent); }
.chapter h3 { margin: 8px 0 14px; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.chapter-body { margin: 0 0 20px; line-height: 1.75; color: var(--ink-soft); font-size: 0.95rem; }
.sources { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; line-height: 1.9; }
.sources a { color: var(--ink); text-underline-offset: 3px; }
.sources a:hover { color: var(--accent); }
.badge { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(184, 101, 30, 0.3); color: var(--accent); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sources em { color: var(--ink-soft); }

/* прелоадер */
#preloader { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: linear-gradient(180deg, var(--pearl), var(--mist)); }
.pl-inner { text-align: center; }
.pl-title { font-size: clamp(1.4rem, 4.4vw, 2.6rem); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.pl-bar { width: 180px; height: 2px; margin: 26px auto 14px; background: rgba(26, 29, 36, 0.12); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.pl-note { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-soft); }
.pl-error { display: none; margin-top: 18px; color: #9b1b30; }
#preloader.error .pl-error { display: block; }
.noscript { position: fixed; inset: auto 0 20px; text-align: center; z-index: 30; }

/* узкий экран: блок подписей на всю ширину внизу, символ вписывается в область над ним (камера в hub.js), 3D-заголовок под символом */
@media (max-aspect-ratio: 19/20) {
  .hub-info { left: 16px; right: 16px; width: auto; bottom: 76px; }
  .title-slot { margin: 6px 0 14px; }
  .hub-info h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); margin-bottom: 10px; }
  .sub { margin: 0 0 14px; padding: 10px 4px; max-width: 34ch; font-size: 0.95rem; line-height: 1.5; }
  .btn { padding: 12px 24px; }
  .eyebrow { margin-bottom: 6px; font-size: 0.66rem; }
  .dots { gap: 18px; bottom: 18px; }
}
@media (max-width: 640px) {
  .chapter-inner { padding: 28px 24px; }
  .scene-head { display: none; }
  .back { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .chapter-inner { transform: none; }
  .ghost, .dots, .chapter-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.7); }
}

/* ---- шапка: Support / RU-EN ---- */
.chrome-right { display: flex; align-items: center; gap: 14px; }
.quiet { pointer-events: auto; all: unset; box-sizing: border-box; cursor: pointer; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-soft); padding: 6px 4px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.chrome .quiet { pointer-events: auto; }
.quiet:hover { color: var(--ink); border-bottom-color: var(--ink); }
.quiet:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lang { display: inline-flex; pointer-events: auto; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.lang-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 11px; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-soft); }
.lang-btn.on { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.lang-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.draft-flag { margin: -8px 0 14px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); opacity: .8; }
.chapter-end { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--glass-line); }
@media (max-width: 640px) { .chrome { padding-left: 16px; padding-right: 16px; } .chrome-right { gap: 6px; } .chrome .brand { font-size: 0.66rem; letter-spacing: 0.08em; white-space: nowrap; } .chrome .ghost { padding: 7px 9px; font-size: 0.68rem; letter-spacing: 0.02em; } .chrome .quiet { font-size: 0.72rem; letter-spacing: 0.04em; padding: 6px 0; } .lang-btn { padding: 7px 8px; font-size: 0.66rem; } }

/* ---- страница «Поддержать автора» ---- */
body.support-open .chrome { z-index: 9; }
body.support-open { overflow: hidden; }
.support { position: fixed; inset: 0; z-index: 8; opacity: 0; transition: opacity .5s ease; }
.support[hidden] { display: none; }
.support.is-open { opacity: 1; }
.support-sky { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 100%, rgba(255, 236, 200, 0.75), rgba(255, 236, 200, 0) 70%), linear-gradient(180deg, var(--pearl) 0%, var(--mist) 100%); }
.support-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: min(34vh, 300px); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.support-horizon svg { width: min(100%, 1100px); height: 100%; display: block; }
.support-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 96px clamp(16px, 5vw, 56px) 160px; scrollbar-width: thin; }
.support-close { position: absolute; top: 76px; left: clamp(16px, 4vw, 56px); }
.support-col { max-width: 62rem; margin: 0 auto; padding-top: 28px; }
.support h2 { margin: 0 0 18px; font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.support-text { max-width: 40rem; margin: 0 0 26px; padding: 22px 26px; line-height: 1.75; font-size: 1rem; border-radius: 24px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.progress { max-width: 40rem; margin: 0 0 30px; }
.progress-label { display: block; margin-bottom: 8px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.progress-bar { display: block; height: 2px; background: rgba(26, 29, 36, 0.12); }
.progress-bar i { display: block; height: 100%; min-width: 2px; background: var(--accent); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tier { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.tier h3 { margin: 0; font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; }
.price { margin: 4px 0 10px; font-size: 1.05rem; } .price span { color: var(--ink-soft); font-size: 0.9rem; }
.tier-d { margin: 0 0 18px; flex: 1; font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); }
.pay { display: flex; flex-direction: column; gap: 6px; }
.pay-btn { display: block; padding: 8px 14px; text-align: center; text-decoration: none; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink); border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(255, 255, 255, 0.4); transition: background .3s, border-color .3s; }
.pay-btn:hover { background: rgba(255, 255, 255, 0.85); border-color: var(--glass-line); }
.pay-btn.is-soon { color: var(--accent); }
.pay-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.support-note { margin: 18px 0 40px; font-size: 0.76rem; color: var(--ink-soft); }
.credits { max-width: 40rem; padding: 22px 26px; border-radius: 24px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.credits h3 { margin: 0 0 8px; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.credits p { margin: 4px 0; font-size: 0.9rem; color: var(--ink-soft); }
.credits-empty { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .support-text, .tier, .credits, .lang { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.7); } }
.chrome .ghost { white-space: nowrap; }
.support-close { top: 84px; }
.support-scroll { padding-top: 120px; }
body.support-open .chrome { background: linear-gradient(180deg, var(--pearl) 55%, rgba(246, 244, 239, 0)); padding-bottom: 22px; }

/* Станция с интерьерным ракурсом (Христианство): плашка слева сверху, а не внизу — окно в правой половине кадра */
@media (min-aspect-ratio: 6/5) {
  body.st-interior .hub-info { bottom: auto; top: clamp(64px, 11vh, 120px); }
}

/* Ислам — сумерки: заголовок, тег и шапка светлые (тот же один цвет на всех светлых небесах — чернила; здесь — единый светлый вариант, без цвета) */
.brand, .chrome .quiet, .hub-info h1, .eyebrow { transition: color .5s ease, text-shadow .5s ease, border-color .3s; }
body.mode-hub[data-st="islam"] .brand,
body.mode-hub[data-st="islam"] .chrome .quiet,
body.mode-hub[data-st="islam"] .hub-info h1 { color: #F6F4EF; }
body.mode-hub[data-st="islam"] .chrome .quiet:hover { color: #fff; border-bottom-color: #fff; }
body.mode-hub[data-st="islam"] .eyebrow { color: rgba(246, 244, 239, 0.86); text-shadow: none; }
body.mode-hub[data-st="islam"] .sub { color: #F6F4EF; text-shadow: 0 0 16px rgba(22, 28, 76, 0.8); }
.chrome .quiet { color: var(--ink); text-shadow: 0 0 30px rgba(255, 255, 255, 0.7); }
body.mode-hub[data-st="islam"] .chrome .quiet { text-shadow: none; }
body.mode-hub[data-st="islam"] .hub-info .btn { color: #F6F4EF; border-color: rgba(255, 255, 255, 0.38); background: linear-gradient(135deg, rgba(150, 170, 255, 0.28), rgba(90, 100, 200, 0.1)); box-shadow: inset 0 0 24px rgba(150, 170, 255, 0.28), 0 0 36px rgba(120, 140, 255, 0.1); }
body.mode-hub[data-st="islam"] .hub-info .btn:hover { box-shadow: inset 0 0 32px rgba(170, 190, 255, 0.5), 0 0 40px rgba(130, 150, 255, 0.12); }
/* Христианство (1440x810): заголовок лежал на аббатстве — текстовый блок станции ниже (слои не трогаем) */
@media (min-aspect-ratio: 6/5) { body.mode-hub[data-st="christianity"] .hub-info { bottom: clamp(78px, 9.5vh, 96px); } }

/* ---- путь традиции (js/journey.js): текст поверх живого фона, без плашек/карточек ---- */
body.has-journey .scene-head { display: none; }
.jr-spacer { pointer-events: none; }
.jr-ui { --jr-fg: #1A1D24; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
body.mode-scene .jr-ui { opacity: 1; transition: opacity 1.1s ease .15s; }
.jr-ui[data-ink="l"] { --jr-fg: #F6F4EF; }
.jr-p { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(64px, 7vw, 112px) 0 clamp(24px, 6vw, 96px); opacity: 0; pointer-events: none; will-change: opacity, transform; }
.jr-in { position: relative; width: min(34rem, 100%); }
.jr-p.on .jr-in { pointer-events: auto; }
.jr-p.ink-d { color: #1A1D24; --jr-mute: rgba(26, 29, 36, 0.66); --jr-glow: 0 0 18px rgba(250, 246, 241, 0.75), 0 0 2px rgba(250, 246, 241, 0.4); }
.jr-p.ink-l { color: #F6F4EF; --jr-mute: rgba(246, 244, 239, 0.74); --jr-glow: 0 0 20px rgba(14, 20, 52, 0.6); }
.jr-in > * { text-shadow: var(--jr-glow); }
.jr-no { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; color: var(--jr-mute); }
.jr-when { margin: 10px 0 12px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; color: var(--jr-mute); }
.jr-h { margin: 0 0 16px; font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
.jr-t { margin: 0 0 18px; max-width: 38ch; font-size: 1.05rem; font-weight: 400; line-height: 1.55; }
.jr-src { margin: 0; max-width: 44ch; font-size: 0.76rem; font-weight: 400; line-height: 1.5; color: var(--jr-mute); }
.jr-kicker { margin: 0 0 18px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--jr-mute); }
.jr-ess .jr-in { width: min(76rem, 100%); }
.jr-phrase { margin: 0 0 clamp(26px, 6vh, 56px); max-width: 24em; font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.18; letter-spacing: -0.015em; }
.jr-ideas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px clamp(20px, 2.6vw, 44px); }
.jr-idea::before { content: ''; display: block; width: 26px; height: 1px; margin-bottom: 12px; background: currentColor; opacity: 0.5; }
.jr-idea h3 { margin: 0 0 6px; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; }
.jr-idea p { margin: 0; font-size: 0.86rem; font-weight: 400; line-height: 1.5; color: var(--jr-mute); }
.jr-draft { text-shadow: var(--jr-glow); position: absolute; left: clamp(24px, 6vw, 96px); bottom: clamp(18px, 3.4vh, 34px); margin: 0; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--jr-mute); }
.jr-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.jr-p.ink-l .ghost, .jr-p.ink-l .btn { color: #F6F4EF; border-color: rgba(255, 255, 255, 0.4); background: linear-gradient(135deg, rgba(150, 170, 255, 0.26), rgba(90, 100, 200, 0.1)); }
.jr-p.ink-l .quiet { color: rgba(246, 244, 239, 0.78); }
.jr-p.ink-l .quiet:hover { color: #fff; border-bottom-color: #fff; }
.jr-end .btn, .jr-end .ghost { text-shadow: none; }
.jr-bignum { position: absolute; right: clamp(80px, 11vw, 190px); top: 50%; transform: translateY(-54%); font-weight: 600; font-size: clamp(9rem, 27vw, 24rem); line-height: 0.8; letter-spacing: -0.045em; color: transparent; background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 72%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6); filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.55)); user-select: none; pointer-events: none; }
.jr-p.ink-l .jr-bignum { background: linear-gradient(165deg, rgba(200, 214, 255, 0.6), rgba(150, 170, 255, 0.1) 72%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(200, 214, 255, 0.5); filter: drop-shadow(0 0 34px rgba(130, 150, 255, 0.5)); }

/* нить света: индикатор пути (7 узлов: суть + 6 этапов) */
.jr-rail { position: absolute; right: clamp(10px, 2vw, 30px); top: 50%; width: 26px; height: min(56vh, 440px); transform: translateY(-50%); color: var(--jr-fg); pointer-events: auto; transition: color .6s ease; }
.jr-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, currentColor 14%, currentColor 86%, transparent); opacity: 0.4; }
.jr-node { all: unset; box-sizing: border-box; position: absolute; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; cursor: pointer; }
.jr-node i { display: block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.65; transition: transform .5s ease, opacity .5s ease, background .5s ease; }
.jr-node.done i { opacity: 0.9; background: color-mix(in srgb, currentColor 35%, transparent); }
.jr-node.on i { opacity: 1; background: currentColor; transform: scale(calc(1.3 + 0.25 * var(--br, 0.5))); box-shadow: 0 0 calc(8px + 12px * var(--br, 0.5)) 1px currentColor; }
.jr-node:hover i { opacity: 1; transform: scale(1.5); }
.jr-node:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 50%; }
.jr-lab { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); max-width: 16rem; text-align: right; white-space: nowrap; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; opacity: 0; pointer-events: none; transition: opacity .3s ease; text-shadow: 0 0 16px rgba(250, 246, 241, 0.7); }
.jr-ui[data-ink="l"] .jr-lab { text-shadow: 0 0 16px rgba(14, 20, 52, 0.7); }
.jr-node:hover .jr-lab, .jr-node:focus-visible .jr-lab { opacity: 1; }

/* шапка и кнопка возврата читаются на тёмных кадрах пути */
body.mode-scene[data-jr-ink="l"] .brand, body.mode-scene[data-jr-ink="l"] .chrome .quiet, body.mode-scene[data-jr-ink="l"] .back, body.mode-scene[data-jr-ink="l"] .chrome .ghost { color: #F6F4EF; text-shadow: none; }
body.mode-scene[data-jr-ink="l"] .back, body.mode-scene[data-jr-ink="l"] .chrome .ghost { border-color: rgba(255, 255, 255, 0.38); background: rgba(40, 52, 120, 0.22); }
body.mode-scene[data-jr-ink="l"] .lang { border-color: rgba(255, 255, 255, 0.38); background: rgba(40, 52, 120, 0.22); }
body.mode-scene[data-jr-ink="l"] .lang-btn { color: rgba(246, 244, 239, 0.75); }
body.mode-scene[data-jr-ink="l"] .lang-btn.on { color: #1A1D24; }

@media (max-width: 1100px) { .jr-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* узкое/портретное окно: кадр сверху, текст ниже на облаке */
@media (max-aspect-ratio: 19/20) {
  .jr-p { align-items: flex-end; padding: 0 clamp(18px, 6vw, 40px) clamp(28px, 5.5vh, 60px) clamp(18px, 6vw, 40px); }
  .jr-p.jr-st { padding-right: clamp(40px, 9vw, 64px); }
  .jr-ess .jr-in { width: 100%; }
  .jr-in { width: 100%; }
  .jr-h { font-size: clamp(1.5rem, 6.4vw, 2.1rem); margin-bottom: 12px; }
  .jr-t { font-size: 0.98rem; line-height: 1.5; margin-bottom: 12px; max-width: none; }
  .jr-when { margin: 6px 0 8px; font-size: 0.64rem; }
  .jr-src { font-size: 0.72rem; }
  .jr-phrase { font-size: clamp(1.35rem, 5.6vw, 1.9rem); margin-bottom: 22px; }
  .jr-ideas { gap: 18px 18px; }
  .jr-idea h3 { font-size: 0.9rem; } .jr-idea p { font-size: 0.8rem; line-height: 1.42; }
  .jr-idea::before { margin-bottom: 8px; }
  .jr-draft { left: clamp(18px, 6vw, 40px); right: 56px; bottom: 12px; font-size: 0.62rem; }
  .jr-bignum { right: 12vw; top: 24%; font-size: 52vw; }
  .jr-rail { right: 6px; top: 8%; height: 38%; transform: none; }
  .jr-end { margin-top: 18px; gap: 8px 14px; }
  .jr-end .btn { padding: 11px 18px; font-size: 0.74rem; }
  .jr-end .ghost { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .jr-p { will-change: auto; } }
