@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('./fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('./fonts/manrope-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;
}

:root {
    color-scheme: light;
    --paper: #f4f1e9;
    --diagram-paper: #faf8f2;
    --diagram-lavender: #e0dafb;
    --ink: #262232;
    --ink-muted: #615b6c;
    --brand: #4f46e5;
    --night: #24212f;
    --night-deep: #1e1b28;
    --night-ink: #f6f2eb;
    --night-muted: #c2bccc;
    --night-line: #706780;
    --night-brand: #b7acff;
    --page-gutter: clamp(24px, 4.45vw, 80px);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    font-family: Manrope, sans-serif;
    font-synthesis: none;
    color: var(--ink);
    background: var(--paper);
    accent-color: var(--brand);
    caret-color: var(--brand);
    scrollbar-color: #777084 var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 4px; }
::selection { color: var(--paper); background: var(--brand); }
h1, h2, h3, p, figure { margin: 0; }
svg { display: block; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.symbol-library { position: absolute; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-width { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--page-gutter); }
.skip-link { position: absolute; top: 16px; left: var(--page-gutter); z-index: 10; padding: 12px 20px; color: var(--paper); background: var(--brand); transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: none; }

.cover { --thread-exit-inset: 68px; position: relative; min-height: 850px; min-height: max(850px, 100svh); overflow: clip; background: var(--paper); }
.cover-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.cover-header .brand img { width: 170px; }
.header-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }
.header-link svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; transition: transform 220ms var(--ease-out); }
.header-link:hover svg { transform: translateY(4px); }
.cover-copy { position: relative; z-index: 1; padding-top: clamp(32px, 5.2vh, 64px); text-align: center; }
.cover-copy h1 { font-size: clamp(56px, 6.7vw, 96px); line-height: 1.09; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.cover-copy p { margin: 24px auto 0; max-width: 32ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.6; font-weight: 400; color: var(--ink-muted); text-wrap: balance; }
.cover-visual { position: relative; margin-top: 20px; padding-inline: clamp(12px, 3.5vw, 56px); }
.year-art { width: 100%; max-height: 465px; overflow: visible; -webkit-user-select: none; user-select: none; }
.year-letters { fill: var(--brand); font-family: Manrope, sans-serif; font-size: 410px; font-weight: 750; letter-spacing: -.04em; }
.year-connector { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hanging-tags { position: absolute; inset: 0; pointer-events: none; }
.hanging-tag { position: absolute; z-index: 2; min-height: 44px; padding: 10px 18px; border: 1px solid var(--brand); border-radius: 6px; background: var(--paper); color: var(--brand); font-size: 15px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%); touch-action: pan-y pinch-zoom; user-select: none; pointer-events: auto; cursor: grab; }
.hanging-tag[data-tag="0"] { left: 25%; top: 29%; }
.hanging-tag[data-tag="1"] { left: 70%; top: 39%; }
.hanging-tag[data-tag="2"] { left: 87%; top: 85%; }
.hanging-tag[data-tag="3"] { left: 21%; top: 57%; }
.hanging-tag[data-tag="4"] { left: 62.5%; top: 18%; }
.hanging-tag[data-tag="5"] { left: 91%; top: 63%; }
.ornament-svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hanging-tag.hero-icon { display: grid; place-items: center; width: clamp(44px, 4.4vw, 64px); height: clamp(44px, 4.4vw, 64px); padding: 11px; border-color: #c5bdcd; border-radius: 12px; color: #465465; background: var(--diagram-paper); }
.hanging-tag.is-dragging { z-index: 4; }
.hanging-tag:active, .hanging-tag.is-dragging { cursor: grabbing; }
.hanging-tag:disabled { cursor: default; opacity: 1; }
.tag-hint { visibility: hidden; }
.has-tag-physics .tag-hint { visibility: visible; }
.cover-equipment { transform: rotate(-8deg); transform-origin: 521px 239px; }
.cover-smoke, .cover-fault, .cover-fixed { display: none; pointer-events: none; }
.cover[data-equipment-state="smoking"] :is(.cover-smoke, .cover-fault),
.cover[data-equipment-state="fixed"] .cover-fixed { display: inline; }
.cover-smoke path { fill: #ff681d; opacity: .9; }
.cover-fault { fill: var(--ink-muted); }
.cover-fixed circle { fill: var(--diagram-paper); stroke: var(--brand); stroke-width: 1.5; }
.cover-fixed path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
    .cover[data-equipment-state="smoking"] .cover-smoke path { animation: cover-smoke 2.7s ease-in-out infinite paused; }
    .cover[data-running="true"] .cover-smoke path { animation-play-state: running; }
    .cover-smoke path:nth-child(2) { animation-delay: -.8s; }
    .cover-smoke path:nth-child(3) { animation-delay: -1.6s; }
}
@keyframes cover-smoke {
    0%, 100% { opacity: .94; transform: translateY(1px); }
    50% { opacity: .63; transform: translate(6px, -11px); }
}
.cover-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 8px; padding-bottom: 44px; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.scroll-cue { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: none; }
.scroll-cue svg { width: 28px; height: 28px; stroke: var(--brand); stroke-width: 1.5; transition: transform 220ms var(--ease-out); }
.scroll-cue:hover svg { transform: translateY(5px); }
.cover-exit-line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 28px; background: var(--brand); }

.hardware-shell { fill: #f9f6ee; stroke: #393145; stroke-width: 1.5; }
.hardware-side { fill: #dbd4cc; stroke: #393145; stroke-width: 1.5; }
.hardware-rule { fill: none; stroke: #aaa0b0; stroke-width: 1; stroke-linecap: round; }
.hardware-inset { fill: #ebe6e0; stroke: none; }
.hardware-vent { fill: none; stroke: #a498aa; stroke-width: 1; stroke-linecap: round; }
.hardware-fan { fill: none; stroke: #a498aa; stroke-width: 1.2; }
.hardware-hub { fill: #f9f6ee; stroke: var(--brand); stroke-width: 1.2; }
.hardware-blade { fill: none; stroke: var(--brand); stroke-width: 1.3; stroke-linecap: round; }
.hardware-led { fill: var(--brand); }

.direction-story { position: relative; background: var(--night); color: var(--night-ink); }
.direction-story { padding-block: 64px 40px; overflow: clip; }
.gallery-shell { width: min(calc(100% - var(--page-gutter) * 2), 1440px); margin-inline: auto; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gallery-toolbar h2 { font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.gallery-toolbar h2 span { color: var(--night-brand); }
.rotation-control { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 10px; padding: 8px 14px; border: 1px solid #736782; border-radius: 8px; color: var(--night-ink); background: transparent; font-size: 14px; cursor: pointer; }
.rotation-control svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gallery-stage { position: relative; isolation: isolate; touch-action: pan-y; }
.is-gallery-ready .gallery-stage { height: 570px; }
.process-visual { position: relative; width: min(100%, 1300px); margin: 24px auto 0; }
.process-diagram { width: 100%; overflow: visible; }
.process-diagram path, .process-diagram rect, .process-diagram circle { stroke-linejoin: round; stroke-linecap: round; }
.is-gallery-ready .process-visual { position: absolute; right: -20px; top: 0; width: 78%; height: 100%; margin: 0; }
.is-gallery-ready .process-diagram { width: 100%; height: 100%; }
.process-module { transform-origin: center; }
.module-side { fill: #15131d; }
.module-paper { fill: #f0ede6; stroke: none; }
.diagram-title { fill: #302a39; font-family: Manrope, sans-serif; font-size: 22px; font-weight: 600; }
.diagram-label { fill: #655d70; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 400; }
.diagram-compact { display: none; }
.paper-rule { fill: none; stroke: #cec7d0; stroke-width: 1; }
.paper-accent { fill: var(--diagram-lavender); }
.paper-check { fill: none; stroke: var(--brand); stroke-width: 2; }
.diagram-button { fill: #4f46a3; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 600; }
.plan-fill { fill: #302b3d; }
.plan-wall { fill: none; stroke: #a297b1; stroke-width: 2; }
.plan-door { fill: none; stroke: #7b708e; stroke-width: 1.25; }
.plan-measure { fill: none; stroke: #7b708e; stroke-width: 1; }
.plan-point { fill: #b7acff; }
.plan-label { fill: var(--night-muted); font-family: Manrope, sans-serif; font-size: 17px; }
.plan-route { fill: none; stroke: #b7acff; stroke-width: 3.5; }
.calendar-cell { fill: var(--diagram-lavender); }
.calendar-check { fill: none; stroke: var(--brand); stroke-width: 2; }
.process-thread { fill: none; stroke: var(--night-brand); stroke-width: 3.5; }
.equipment-shadow { fill: #17141f; opacity: .6; }
.gallery-copy { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.gallery-copy article { min-width: 0; }
.gallery-copy h3 { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.gallery-copy p { margin-top: 20px; max-width: 33ch; font-size: 17px; line-height: 1.7; color: var(--night-muted); }
.is-gallery-ready .gallery-copy { position: absolute; top: 50%; left: 0; width: 34%; max-width: 460px; display: block; margin: 0; transform: translateY(-50%); }
.is-gallery-ready .gallery-copy h3 { font-size: clamp(34px, 3.4vw, 48px); }
.is-gallery-ready .gallery-copy p { font-size: 18px; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 12px; }
.gallery-pickers { display: grid; grid-template-columns: 1fr 1fr .7fr 1.25fr; gap: 28px; width: min(100%, 720px); }
.gallery-pickers button { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 60px; padding: 0; border: 0; background: none; color: var(--night-muted); font-size: 14px; text-align: left; cursor: pointer; }
.gallery-pickers button:hover, .gallery-pickers button[aria-disabled="true"] { color: var(--night-ink); }
.gallery-shell button:focus-visible { outline-color: var(--night-brand); }
.direction-track { display: block; position: relative; width: 100%; height: 2px; overflow: hidden; background: #5c526a; }
.direction-track::after { content: ''; position: absolute; inset: 0; background: var(--night-brand); transform: scaleX(0); transform-origin: left; }
.gallery-pickers button.is-complete .direction-track::after { transform: scaleX(1); }
.gallery-pickers button[aria-disabled="true"] .direction-track::after { transform: scaleX(var(--slide-progress, 1)); }
.gallery-arrows { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gallery-position { min-width: 44px; color: var(--night-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #736782; border-radius: 50%; color: var(--night-ink); background: none; cursor: pointer; }
.gallery-arrow svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; }
.gallery-arrow:disabled { color: #978ca5; border-color: #51475e; cursor: default; }

.page-footer { padding-block: 40px; background: var(--night-deep); color: var(--night-ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner .brand img { width: 150px; }
.return-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; color: var(--night-muted); text-decoration: none; }
.return-link svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; }
.return-link:hover { color: var(--night-ink); }
.page-footer a:focus-visible { outline-color: var(--night-brand); }

@media (min-width: 1600px) {
    .cover { min-height: max(900px, 100svh); }
    .cover-visual { margin-top: 32px; }
}
@media (max-width: 1100px) {
    .cover { min-height: 780px; }
    .cover-copy { padding-top: 48px; }
    .cover-copy h1 { font-size: clamp(56px, 7.4vw, 80px); }
    .cover-visual { margin-top: 36px; }
    .cover-bottom { padding-top: 24px; }
    .is-gallery-ready .gallery-copy p { font-size: 16px; }
    .gallery-controls { gap: 28px; }
}
@media (max-width: 899px), (max-height: 699px) {
    .cover { min-height: 0; }
    .cover-header { min-height: 100px; }
    .cover-copy { padding-top: 48px; }
    .cover-visual { padding-inline: 8px; margin-top: 48px; }
    .cover-bottom { padding-top: 32px; padding-bottom: 48px; }
    .direction-story { padding-block: 48px 32px; }
    .is-gallery-ready .gallery-stage { display: flex; flex-direction: column; height: auto; padding-top: 40px; }
    .is-gallery-ready .gallery-copy { position: relative; top: auto; left: auto; width: 100%; max-width: 620px; min-height: 180px; transform: none; order: 0; }
    .is-gallery-ready .gallery-copy h3 { font-size: 40px; }
    .is-gallery-ready .gallery-copy p { font-size: 17px; }
    .is-gallery-ready .process-visual { position: relative; top: auto; right: auto; width: 100%; height: 370px; order: 1; }
    .process-visual { width: 100%; margin-block: 32px; }
    .gallery-controls { flex-direction: column; align-items: stretch; gap: 16px; }
    .gallery-arrows { justify-content: flex-end; }
    .gallery-position { margin-right: auto; }
}
@media (max-width: 600px) {
    :root { --page-gutter: 24px; }
    .cover { --thread-exit-inset: 140px; }
    .cover-header { min-height: 88px; gap: 16px; }
    .cover-header .brand img { width: 139px; }
    .header-link { gap: 8px; font-size: 13px; }
    .header-link svg { width: 17px; height: 17px; }
    .cover-copy { padding-top: 64px; }
    .cover-copy h1 { font-size: clamp(40px, 10.5vw, 60px); line-height: 1.12; }
    .cover-copy h1 span { display: block; }
    .cover-copy p { font-size: 16px; margin-top: 24px; line-height: 1.7; }
    .cover-visual { margin-top: 48px; padding-inline: 0; }
    .year-art { min-height: 196px; width: 115%; margin-left: -7.5%; }
    .year-connector { stroke-width: 2.5; }
    .hanging-tag { min-height: 44px; padding: 8px 12px; font-size: 12px; }
    .hanging-tag[data-tag="2"] { left: min(87%, calc(100% - 70px)); }
    .hanging-tag.hero-icon { padding: 8px; border-radius: 10px; }
    .hanging-tag[data-tag="3"] { left: 12%; top: 72%; }
    .hanging-tag[data-tag="4"] { left: 47%; top: 16%; }
    .hanging-tag[data-tag="5"] { left: 85%; top: 50%; }
    .cover-bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 40px; font-size: 12px; }
    .scroll-cue { gap: 12px; font-size: 14px; }
    .scroll-cue svg { width: 24px; height: 24px; }
    .gallery-toolbar { gap: 16px; }
    .gallery-toolbar h2 { font-size: 22px; }
    .rotation-control { padding: 8px 10px; gap: 6px; font-size: 12px; }
    .rotation-control svg { width: 14px; height: 14px; }
    .is-gallery-ready .gallery-stage { padding-top: 36px; }
    .is-gallery-ready .gallery-copy { min-height: 176px; }
    .is-gallery-ready .gallery-copy h3 { font-size: clamp(29px, 7.8vw, 36px); }
    .is-gallery-ready .gallery-copy p { margin-top: 16px; font-size: 16px; }
    .is-gallery-ready .process-visual { height: 230px; }
    .process-visual { margin-top: 36px; margin-bottom: 24px; width: 100%; margin-left: 0; }
    .diagram-wide, .diagram-label, .plan-label { display: none; }
    .diagram-compact { display: inline; }
    .diagram-title { font-size: 40px; }
    .diagram-button { font-size: 30px; }
    .gallery-copy { grid-template-columns: minmax(0, 1fr); }
    .gallery-pickers { gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gallery-pickers button { font-size: 12px; gap: 12px; min-height: 64px; }
    .gallery-controls { margin-top: 0; }
    .page-footer { padding-block: 28px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-inner .brand img { width: 139px; }
}
@media (max-width: 360px) {
    .gallery-toolbar { gap: 12px; }
    .gallery-toolbar h2 { flex-shrink: 0; font-size: 20px; }
    .rotation-control { gap: 4px; padding-inline: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
