:root {
  color-scheme: dark;
  --ground: #10100f;
  --ink: #f5f4f0;
  --muted: #aaa9a4;
  --font: Manrope, Arial, sans-serif;
  --gutter: clamp(20px, 3.2vw, 52px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; isolation: isolate; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #f7ce82; outline-offset: 6px; }
button:disabled { cursor: default; }
::selection { color: #12110e; background: #f0c57a; }
svg { flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; padding: 12px 20px; color: #111; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
#particle-scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 86px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header::before { content: ''; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(#10100ff5, #10100fbb 65%, #10100f00); }
.wordmark { font-size: 26px; font-weight: 700; letter-spacing: -.08em; line-height: 1; min-width: 84px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 20px; }
.main-nav a { font-size: 14px; color: #c2c0b9; padding: 12px 0; transition: color 180ms; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.header-tools { display: flex; align-items: center; gap: 22px; }
.language-switch { display: flex; }
.language-switch button { background: transparent; min-width: 36px; min-height: 44px; color: #94938e; font-size: 12px; transition: color 180ms; }
.language-switch button[aria-pressed=true], .language-switch button:hover { color: #fff; }
.motion-toggle { display: grid; place-items: center; width: 40px; height: 44px; padding: 8px; background: transparent; color: #b4b2ac; }
.motion-toggle svg { width: 18px; height: 18px; }
.motion-toggle .play-symbol, html[data-motion=off] .motion-toggle .pause-symbol { display: none; }
html[data-motion=off] .motion-toggle .play-symbol { display: block; }
.telegram-nav { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 16px; background: #efeee9; color: #171714; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background 180ms, transform 180ms; }
.telegram-nav svg { width: 16px; height: 16px; }
.telegram-nav:hover, .primary-link:hover { background: #fff; transform: translateY(-2px); }
.telegram-nav:active, .primary-link:active { transform: translateY(0); }
.story-track { position: relative; }
.story-stage { position: relative; outline: 0; }
.story-panel { position: relative; width: 100%; min-height: 100svh; padding: 110px max(var(--gutter), calc((100vw - 980px)/2)) 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; --local: 1; }
.panel-heading { max-width: 100%; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.12; font-weight: 550; letter-spacing: -.055em; text-wrap: balance; }
.panel-copy { max-width: 650px; color: #c4c1b9; font-size: 16px; line-height: 1.6; text-wrap: pretty; margin-top: 13px; }
.story-panel [data-ui] { margin-top: 28px; flex-shrink: 0; text-align: left; }
.story-panel h2:focus, .story-panel h3:focus { outline: none; }
.hero-panel { gap: 0; }
.hero-title { font-size: clamp(106px, 16vw, 216px); font-weight: 600; letter-spacing: -.095em; line-height: .9; padding-right: .07em; }
.hero-phrase { margin-top: 27px; font-size: clamp(24px, 3vw, 38px); font-weight: 450; line-height: 1.25; letter-spacing: -.05em; }
.hero-copy { max-width: 430px; margin-top: 17px; color: #d0cdc4; font-size: 16px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 49px; padding: 0 23px; border-radius: 6px; background: #f3f1eb; color: #191813; font-size: 14px; font-weight: 650; transition: transform 180ms, background 180ms; }
.primary-link svg { width: 19px; height: 19px; }
.hero-panel .primary-link { margin-top: 34px; }
.hero-byline { margin-top: 22px; color: #a7a49b; font-size: 12px; }
.contact-panel { gap: 0; }
.contact-title { font-size: clamp(64px, 8vw, 116px); font-weight: 500; line-height: 1; letter-spacing: -.075em; text-wrap: balance; }
.contact-panel .primary-link { margin-top: 36px; gap: 35px; padding: 16px 24px; font-size: 16px; }
.contact-panel .primary-link small { display: block; font-size: 11px; line-height: 1.5; font-weight: 450; color: #5f5b51; }
.contact-panel .primary-link strong { display: block; font-size: 23px; letter-spacing: -.04em; line-height: 1.35; }
.contact-panel .primary-link svg { width: 25px; height: 25px; }
.other-contacts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; margin-top: 38px; }
.other-contacts a, .other-contacts button { padding: 10px 0; font-size: 13px; color: #c3bfb4; background: transparent; transition: color 180ms; }
.other-contacts a:hover, .other-contacts button:hover { color: #fff; }
.other-contacts span { color: #e6e1d5; }
.other-contacts i { font-style: normal; margin-left: 6px; }
.site-footer { margin-top: 60px; color: #8f8c83; font-size: 12px; }
.stage-controls { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; height: 75px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; }
.stage-controls::before { content: ''; position: absolute; inset: -28px 0 0; z-index: -1; background: linear-gradient(#10100f00, #10100fbb 45%, #10100ff5); }
.stage-controls > * { pointer-events: auto; }
.scroll-cue { font-size: 12px; color: #bbb7ac; display: flex; align-items: center; gap: 12px; min-width: 210px; }
.scroll-cue svg { width: 16px; height: 20px; }
.scene-jumps { display: flex; align-items: center; gap: 0; }
.scene-jumps a { display: grid; place-items: center; width: 24px; height: 44px; }
.scene-jumps a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #67645b; transition: transform 180ms, background 180ms; }
.scene-jumps a[aria-current]::before { background: #ece6d5; transform: scale(1.8); }
.scene-jumps a:hover::before { background: #fff; }
.scene-travel { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 210px; }
.scene-name { margin-right: 12px; font-size: 12px; color: #aaa69b; }
.scene-travel button { width: 40px; height: 44px; background: transparent; display: grid; place-items: center; color: #dfd9cb; transition: color 180ms; }
.scene-travel button:disabled { opacity: .25; }
.scene-travel button svg { width: 18px; height: 18px; }
html[data-layout=pinned] .story-stage { position: sticky; top: 0; height: 100svh; }
html[data-layout=pinned] .story-panel { position: absolute; inset: 0; height: 100%; min-height: 0; padding-block: 88px 80px; visibility: hidden; opacity: 0; pointer-events: none; will-change: opacity, transform; }
html[data-layout=pinned] .story-panel.is-active { pointer-events: auto; }
html:not([data-layout=pinned]) .site-header { background: #10100ff2; }
html:not([data-layout=pinned]) #particle-scene { opacity: .22; }
html:not([data-layout=pinned]) .stage-controls { display: none; }
html:not([data-layout=pinned]) .story-panel { --local: 1 !important; scroll-margin-top: 15px; }
html:not([data-layout=pinned]) .story-panel:not(.hero-panel):not(.contact-panel) { padding-block: 96px; }
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation: none !important; transition: none !important; }
.toast { position: fixed; bottom: 84px; left: 50%; z-index: 60; transform: translate(-50%, 8px); padding: 12px 20px; border-radius: 6px; background: #eee9dd; color: #161510; font-size: 13px; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); transition: opacity 180ms, transform 180ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { margin: 20px; font-size: 14px; color: #bdb8ab; }
@media (min-width: 1700px) { .story-panel { padding-inline: max(var(--gutter), calc((100vw - 1100px)/2)); } }
@media (max-width: 1050px) {
  .header-tools { gap: 12px; }
  .main-nav { gap: 23px; margin-right: 4px; }
  .scene-name { display: none; }
  .scene-travel { min-width: 90px; }
  .scroll-cue { min-width: 90px; }
  .scroll-cue span { display: none; }
}
@media (max-width: 700px) {
  .site-header { height: 75px; gap: 14px; }
  .wordmark { font-size: 24px; min-width: auto; }
  .main-nav { display: none; }
  .header-tools { gap: 8px; margin-left: auto; }
  .telegram-nav { min-width: 40px; padding: 0 12px; }
  .telegram-nav span { display: none; }
  .story-panel { padding: 88px var(--gutter) 78px; }
  .panel-heading { font-size: clamp(28px, 6.8vw, 38px); line-height: 1.14; letter-spacing: -.05em; }
  .panel-copy { font-size: 14px; line-height: 1.5; margin-top: 11px; max-width: 430px; }
  .story-panel [data-ui] { margin-top: 22px; }
  .hero-title { font-size: clamp(108px, 27vw, 170px); }
  .hero-phrase { font-size: 26px; margin-top: 25px; }
  .hero-copy { max-width: 265px; font-size: 14px; }
  .hero-byline { max-width: 230px; font-size: 11px; }
  .hero-panel .primary-link { margin-top: 30px; font-size: 13px; }
  .stage-controls { height: 62px; padding: 0 13px; gap: 2px; }
  .scroll-cue { display: none; }
  .scene-jumps { margin: 0 auto; }
  .scene-jumps a { width: 18px; }
  .scene-travel { min-width: 76px; gap: 0; }
  .scene-travel button { width: 36px; }
  .contact-title { font-size: clamp(57px, 12vw, 84px); }
  .contact-panel .primary-link { margin-top: 31px; }
  .other-contacts { flex-direction: column; gap: 3px; margin-top: 29px; }
  .site-footer { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* The product's paper palette becomes the whole chapter, including navigation. */
.chapter-surface { position: fixed; inset: 0; z-index: -1; background: #faf7f0; opacity: var(--chapter-light, 0); pointer-events: none; }
.mz-panel { color: #20392d; }
.mz-panel > .panel-copy { color: #656d60; }
html[data-theme=minzi] { color-scheme: light; }
html[data-theme=minzi] .site-header, html[data-theme=minzi] .stage-controls { color: #20392d; }
html[data-theme=minzi] .site-header::before { background: linear-gradient(#faf7f0f5, #faf7f0bb 65%, #faf7f000); }
html[data-theme=minzi] .stage-controls::before { background: linear-gradient(#faf7f000, #faf7f0bb 45%, #faf7f0f5); }
html[data-theme=minzi] .main-nav a, html[data-theme=minzi] .motion-toggle, html[data-theme=minzi] .scroll-cue, html[data-theme=minzi] .scene-name, html[data-theme=minzi] .language-switch button { color: #737a6d; }
html[data-theme=minzi] .main-nav a:hover, html[data-theme=minzi] .main-nav a[aria-current], html[data-theme=minzi] .language-switch button[aria-pressed=true], html[data-theme=minzi] .language-switch button:hover, html[data-theme=minzi] .scene-travel button { color: #20392d; }
html[data-theme=minzi] .telegram-nav { color: #fffdf8; background: #20392d; }
html[data-theme=minzi] .telegram-nav:hover { background: #2e6b4b; }
html[data-theme=minzi] .scene-jumps a::before { background: #b4b6a9; }
html[data-theme=minzi] .scene-jumps a[aria-current]::before, html[data-theme=minzi] .scene-jumps a:hover::before { background: #2e6b4b; }
html[data-theme=minzi] :focus-visible { outline-color: #b84c3d; }
html:not([data-layout=pinned]) .mz-panel { background: #faf7f0; }
html:not([data-layout=pinned])[data-theme=minzi] .site-header { background: #faf7f0f2; }
@media (min-width:701px) {
  .stage-controls { display: grid; grid-template-columns: 1fr auto 1fr; }
  .scroll-cue { grid-column: 1; grid-row: 1; }
  .scene-jumps { grid-column: 2; grid-row: 1; }
  .scene-travel { grid-column: 3; grid-row: 1; }
}
html:not([data-layout=pinned]) .chapter-surface { display: none; }
