@font-face {
  font-family: 'Geist Navigation';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(./assets/fonts/geist-navigation.ttf) format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./assets/fonts/geist-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./assets/fonts/geist-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./assets/fonts/geist-mono-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:dark;--bg:#101114;--surface:#1b1d22;--surface-high:#24262c;--text:#f4f4f0;--muted:#a4a6ae;--dim:#777b85;--border:rgba(223,231,244,.11);--accent:#278cff;--signal:#278cff;--radius:24px;font-family:"Geist",Arial,sans-serif;font-weight:350;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{background:radial-gradient(ellipse at 5% 0%,#22273180,transparent 45%),var(--bg)}button{font:inherit;cursor:pointer}button:focus-visible,.stage:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{color:inherit}button:disabled{cursor:default}[hidden]{display:none!important}
.site-shell{width:100%;max-width:2400px;margin:auto;min-height:100svh;padding:0 clamp(18px,2vw,40px);display:flex;flex-direction:column}.masthead{height:88px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-size:25px;line-height:1.13;font-weight:300;letter-spacing:-.8px;display:flex;align-items:center;gap:13px}.brand-period{font-size:13px;align-self:flex-start;margin:1px 0 0 -7px;font-weight:400}.brand-mark{flex:none;display:grid;grid-template-columns:repeat(3,4px);gap:4px;width:20px;margin-right:3px}.brand-mark i{width:4px;height:4px;border-radius:1px;background:#e7e9e6}.brand-mark i:nth-child(3),.brand-mark i:nth-child(7){opacity:.32}.masthead-caption{font-size:13px;line-height:1.5;letter-spacing:-.1px;color:#d7d9dd;margin-right:auto;margin-left:clamp(25px,5vw,100px)}.masthead-caption span{color:var(--dim)}.archive-badge{flex:none;font-size:13px;color:#c7cbd2;display:flex;align-items:center;gap:10px;padding:11px 16px;border:1px solid var(--border);border-radius:100px;background:#ffffff04}.archive-badge>span{font-family:"Geist Mono",monospace;color:var(--text)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,28vw,480px);gap:16px;flex:1;min-height:0;height:calc(100svh - 132px)}.stage{position:relative;overflow:clip;min-width:0;container-type:size;min-height:570px;border:1px solid var(--border);border-radius:var(--radius);background:radial-gradient(ellipse at 50% 38%,#3a404d40,transparent 65%),linear-gradient(145deg,#202329,#17191e);isolation:isolate;--cassette-radius:74px;--cassette-axis:98px}.stage:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,#b2bbcf33 .65px,transparent .9px);background-size:22px 22px;mask-image:linear-gradient(to bottom,#0005,#0009);opacity:.65}.stage:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px 0 #ffffff08;pointer-events:none}.stage-head{position:absolute;left:28px;right:28px;top:24px;display:flex;align-items:center;justify-content:space-between;z-index:15}.eyebrow{font-size:14px;letter-spacing:-.15px;display:flex;align-items:center;gap:10px;color:#c7cbd2}.tiny-grid{font-size:21px;color:var(--muted);line-height:1}.count-badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ffffff14;border-radius:7px;color:var(--muted);font:12px "Geist Mono",monospace;padding:4px 6px}.stage-index{display:flex;align-items:center;gap:12px;font:14px "Geist Mono",monospace;color:#737985}.stage-index>#stageIndex{color:var(--text)}.stage-index-divider{color:#4c515b}.cassette{position:absolute;inset:0;perspective:1800px;transform-style:preserve-3d}.track-card{position:absolute;left:50%;bottom:calc(var(--cassette-axis) + var(--cassette-radius));width:min(85cqw,calc((100cqh - 240px)*1.62));aspect-ratio:1.62;padding:0;border:0;background:none;transform-origin:50% calc(100% + var(--cassette-radius));color:var(--text);will-change:transform,opacity;backface-visibility:visible}.track-card-inner{display:block;position:relative;width:100%;height:100%;overflow:hidden;border:1px solid #cbd6e52a;border-radius:19px;background:linear-gradient(130deg,#303640ef,#24282fef);box-shadow:inset 0 1px 0 #ffffff18,0 20px 70px #0004;backdrop-filter:blur(24px)}.track-card[aria-current="true"] .track-card-inner{border-color:#cbd6e54a;box-shadow:inset 0 1px 0 #ffffff21,0 26px 80px #0007,0 2px 6px #0005}.card-topline{position:absolute;left:24px;right:24px;top:20px;display:flex;align-items:center;justify-content:space-between;font:12px "Geist Mono",monospace;letter-spacing:.06em;color:#b9c0ca;z-index:1}.card-topline span:last-child{color:#7e8795}.card-map{position:absolute;left:4%;top:45px;width:92%;height:calc(100% - 116px);overflow:visible}.map-grid line{stroke:#b5c2d6;stroke-width:.7;opacity:.07}.source-scheme{transition:opacity .25s;opacity:.99}.map-route path{fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.track-card[data-mode="infrastructure"] .map-route{opacity:0}.track-card[data-mode="route"] .source-scheme{opacity:.32}.track-card[data-mode="trace"] .source-scheme{opacity:.035}.track-card[data-mode="trace"] .map-grid{opacity:0}.card-bottom{position:absolute;left:24px;right:24px;bottom:19px;padding-top:13px;border-top:1px solid #e9eff914;display:flex;align-items:center;justify-content:space-between;text-align:left}.card-bottom strong{font-size:clamp(16px,1.3vw,24px);font-weight:350;letter-spacing:-.6px}.card-bottom small{font:11px "Geist Mono",monospace;letter-spacing:.04em;color:#939ba7}.card-bottom>span:first-child{display:flex;align-items:baseline;gap:16px}.card-bottom br{display:none}.stage-rule{position:absolute;left:50%;transform:translateX(-50%);border:1px solid #d7e2ff0b;border-radius:50%;pointer-events:none}.stage-rule-a{width:75%;height:135px;bottom:82px}.stage-rule-b{width:63%;height:85px;bottom:104px}.cassette-base{position:absolute;bottom:98px;left:14%;right:14%;height:1px;background:linear-gradient(90deg,transparent,#c3cee62c,transparent);pointer-events:none}.cassette-base span{display:none}.stage-bottom{position:absolute;bottom:22px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:16}.scroll-cue{display:flex;align-items:center;gap:11px;font-size:12px;line-height:1.5;color:#b4bac4}.cue-secondary{color:#747c88}.mouse-icon{width:15px;height:23px;border:1px solid #8f98a7;border-radius:8px;position:relative}.mouse-icon:after{content:"";position:absolute;left:6px;top:4px;width:1px;height:5px;background:#8f98a7}.stage-nav{display:flex;gap:8px}.nav-arrow{border:1px solid #d8e4ff1b;background:#ffffff07;border-radius:50%;width:44px;height:44px;font-size:22px;transition:background .2s,border .2s}.nav-arrow:hover{background:#ffffff12;border-color:#d8e4ff4d}.index-nav{display:flex;gap:4px}.index-nav button{width:26px;height:30px;border:0;background:transparent;color:#717987;font:11px "Geist Mono",monospace;border-radius:7px;transition:background .2s,color .2s}.index-nav button[aria-current="true"]{background:#e3ecf817;color:#f1f3f7}.index-nav button:hover{color:var(--accent)}
.inspector{display:flex;flex-direction:column;min-width:0;min-height:0;gap:12px}.tile{border:1px solid var(--border);border-radius:20px;box-shadow:inset 0 1px 0 #ffffff04;background:linear-gradient(135deg,#22242a,#1d1f24)}.info-tile{padding:22px 25px 20px;flex:none}.inspector-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.category{font:11px "Geist Mono",monospace;color:#b5bac4;letter-spacing:.03em}.record-id{font:14px "Geist Mono",monospace;color:#727984}.record-title{font-size:clamp(34px,3.2vw,60px);line-height:1.02;font-weight:300;letter-spacing:-.045em;margin:0;overflow-wrap:normal}.description{font-size:15px;line-height:1.45;letter-spacing:-.2px;color:#afb3be;margin:17px 0 0;max-width:45ch}.source-line{font:10px "Geist Mono",monospace;letter-spacing:.025em;color:#797f8b;margin-top:17px;line-height:1.5}.photo-trigger{position:relative;min-height:105px;flex:1;max-height:270px;overflow:hidden;width:100%;padding:0;text-align:left;background:#282b30}.photo-trigger>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:50% 50%;filter:saturate(.6) brightness(.82);transition:filter .3s,transform .5s}.photo-trigger:hover>img{filter:saturate(.9) brightness(.95);transform:scale(1.025)}.photo-shade{position:absolute;inset:0;background:linear-gradient(0deg,#080b12bb,transparent 85%)}.photo-trigger-label{position:absolute;left:22px;bottom:18px;display:flex;flex-direction:column;gap:4px}.photo-trigger-label>span{font-size:12px;color:#c3c6ce}.photo-trigger-label strong{font-size:19px;letter-spacing:-.5px;font-weight:350}.photo-expand{position:absolute;right:18px;bottom:18px;width:32px;height:32px;border:1px solid #ffffff3b;border-radius:50%;display:grid;place-items:center;background:#ffffff0b;backdrop-filter:blur(12px);font-size:20px}.facts{display:grid;grid-template-columns:.82fr 1.18fr;gap:12px;margin:0;flex:none}.facts>.tile{min-height:96px;position:relative;padding:16px 20px}.facts dt{font-size:12px;color:#949ba7;letter-spacing:-.1px}.facts dd{margin:11px 0 0;font-size:15px;font-weight:400;letter-spacing:-.3px;text-transform:lowercase}.levels-tile dd{font-family:"Geist Mono",monospace;font-weight:300;font-size:36px!important;line-height:.95;margin-top:8px}.level-symbol{position:absolute;right:22px;bottom:24px;display:flex;flex-direction:column;gap:3px;transform:skewY(-20deg)}.level-symbol i{width:24px;height:4px;border:1px solid #8a94a580;border-radius:1px}.level-symbol i:nth-child(2){opacity:.65}.level-symbol i:nth-child(3){opacity:.35}.features-tile dd{line-height:1.35;max-width:18ch}.layers-tile{padding:15px 18px;flex:none}.mode-label{font-size:12px;color:#949ba7;margin-bottom:11px}.mode-tabs{display:flex;gap:4px;background:#090b1047;border-radius:10px;padding:3px}.mode-tabs button{flex:1;border:1px solid transparent;border-radius:7px;background:none;color:#9098a5;font-size:13px;padding:9px 5px;transition:all .2s}.mode-tabs button[aria-pressed="true"]{background:#373d48;color:#f2f4f7;border-color:#ffffff13;box-shadow:0 2px 5px #0002}.mode-tabs button:hover{color:var(--text)}.action-row{display:grid;grid-template-columns:1.35fr 1fr;gap:10px;flex:none}.primary-button,.secondary-button{border:1px solid transparent;border-radius:14px;min-height:58px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;letter-spacing:-.3px;font-weight:350;transition:background .2s,transform .2s}.primary-button{background:var(--accent);color:#06182b;box-shadow:inset 0 1px 0 #ffffff44}.primary-button:hover{background:#55a5ff}.primary-button:active,.secondary-button:active{transform:translateY(1px)}.secondary-button{background:#272a32;border-color:var(--border);color:#e4e7ee}.secondary-button:hover{background:#343943}.play-icon{font-size:24px;line-height:1}.traces-icon{font-size:25px;color:#a1adbf;line-height:1}.site-footer{height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;color:#737984;font-size:12px;letter-spacing:-.1px}.site-footer>span:last-child{font:10px "Geist Mono",monospace;letter-spacing:.09em}.footer-divider{padding:0 9px;color:#454c58}
.stage-overlay{position:absolute;inset:0;z-index:30;background:#191d25ed;backdrop-filter:blur(22px);display:flex;flex-direction:column;border-radius:inherit}.overlay-top{padding:23px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none;z-index:1}.text-button{font-size:13px;display:flex;align-items:center;gap:12px;background:none;border:0;padding:8px 0;color:#b5bdca}.text-button>span{font-size:25px;font-weight:300;line-height:.7}.text-button:hover{color:var(--text)}.run-canvas,.traces-canvas{position:relative;flex:1;min-height:0;margin:0 24px}.run-svg,.traces-svg{position:absolute;inset:0;margin:auto;width:100%;height:100%;max-height:100%;pointer-events:none}.run-svg .source-scheme{opacity:.66}.run-route-base{fill:none;stroke:#278cff70;stroke-width:8}.run-route-progress{fill:none;stroke:var(--accent);stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.run-train{fill:var(--accent);stroke:#e8f4ff;stroke-width:2.5;filter:drop-shadow(0 0 7px #278cff66)}.train-direction{stroke:#06182b;stroke-width:3;stroke-linecap:round}.run-bottom{padding:18px 28px 24px;display:flex;flex-direction:column;gap:17px;flex:none;z-index:1}.run-readout{font-size:12px;color:#a4adbb;display:flex;align-items:center;gap:24px}.run-readout>span:first-child{margin-right:auto}.run-readout strong{font:15px "Geist Mono",monospace;color:var(--text);padding-left:6px}.run-actions{display:flex;justify-content:flex-end;gap:10px}.run-actions button{min-height:46px;min-width:160px;font-size:13px}.traces-svg{pointer-events:auto}.traces-svg path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.trace-item{cursor:pointer;outline:none}.trace-line{stroke:#fff;stroke-width:8;opacity:var(--trace-opacity);pointer-events:none;transition:opacity .25s}.has-active-trace .trace-line{opacity:calc(var(--trace-opacity)*.55)}.trace-hit{stroke:transparent;stroke-width:24;pointer-events:stroke}.trace-highlight{opacity:0;pointer-events:none;transition:opacity .2s}.trace-highlight.is-visible{opacity:1}.trace-highlight path{stroke:var(--accent);stroke-width:8;pointer-events:none}.traces-svg .map-grid{pointer-events:none;opacity:.5}.traces-caption{font-family:"Geist Mono",monospace;min-height:64px;font-size:12px;color:#aab2bf;text-align:center;padding:23px}.photo-dialog{border:1px solid #bfc9dc33;border-radius:24px;padding:0;background:#1a1c22;color:var(--text);width:min(95vw,1200px);max-height:94svh;box-shadow:0 35px 120px #000b}.photo-dialog::backdrop{background:#07090dd9;backdrop-filter:blur(16px)}.photo-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 24px;font-size:14px}.photo-dialog>img{width:100%;max-height:calc(94svh - 165px);display:block;object-fit:contain;background:#101216}.photo-dialog>p{font-size:12px;color:var(--muted);padding:0 24px;margin:14px 0}.photo-thumbs{display:flex;gap:8px;padding:0 24px 20px}.photo-thumbs button{padding:0;border:1px solid transparent;border-radius:8px;overflow:hidden;background:none;opacity:.5}.photo-thumbs button[aria-current="true"]{opacity:1;border-color:var(--accent)}.photo-thumbs img{display:block;width:58px;height:42px;object-fit:cover}
@media(min-width:1800px){.workspace{grid-template-columns:minmax(0,1fr) clamp(440px,25vw,560px)}.inspector{gap:16px}.info-tile{padding:28px 30px}.description{font-size:17px}.inspector-top{margin-bottom:30px}.facts>.tile{min-height:115px}.layers-tile{padding:19px 22px}.photo-trigger{max-height:none}.primary-button,.secondary-button{min-height:64px;font-size:16px}.source-line{font-size:12px}.category{font-size:12px}}
@media(min-width:1001px) and (max-height:820px){.masthead{height:72px}.workspace{height:calc(100svh - 112px)}.site-footer{height:40px}.inspector{gap:9px}.info-tile{padding:17px 20px}.inspector-top{margin-bottom:17px}.record-title{font-size:clamp(32px,3vw,44px)}.description{font-size:14px;line-height:1.38;margin-top:13px}.source-line{margin-top:12px;font-size:9px}.facts>.tile{min-height:80px;padding:12px 17px}.levels-tile dd{font-size:31px!important}.facts dd{margin-top:8px;font-size:13px}.layers-tile{padding:12px 15px}.mode-label{margin-bottom:8px}.mode-tabs button{padding:7px 4px}.primary-button,.secondary-button{min-height:52px;font-size:13px;padding:0 12px}.photo-trigger{min-height:94px}.stage{--cassette-radius:64px;--cassette-axis:92px}.track-card{width:min(85cqw,calc((100cqh - 222px)*1.62))}.card-map{top:40px;height:calc(100% - 102px)}.card-topline{top:16px}.card-bottom{bottom:15px;padding-top:10px}.card-bottom strong{font-size:17px}.card-bottom small{font-size:10px}}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 310px;gap:12px}.masthead-caption{margin-left:30px}.stage-head{left:20px;right:20px}.stage-bottom{left:20px;right:20px;gap:10px}.scroll-cue{font-size:10px;gap:7px}.index-nav{gap:0}.index-nav button{width:21px}.nav-arrow{width:37px;height:37px}.info-tile{padding-left:18px;padding-right:18px}.card-bottom>span:first-child{display:block}.card-bottom small{display:none}}
@media(max-width:850px){.site-shell{padding:0 16px}.masthead{height:76px}.brand{font-size:23px}.masthead-caption{display:none}.archive-badge{font-size:11px;padding:9px 12px}.workspace{display:flex;flex-direction:column;height:auto;gap:14px}.stage{height:clamp(470px,67svh,700px);flex:none;min-height:0;--cassette-radius:58px;--cassette-axis:92px}.track-card{width:min(85cqw,calc((100cqh - 208px)*1.62))}.inspector{display:grid;grid-template-columns:1fr 1fr;gap:12px}.info-tile{grid-column:1;grid-row:1/3}.photo-trigger{grid-column:2;grid-row:1;min-height:165px}.facts{grid-column:2;grid-row:2;gap:10px}.layers-tile{grid-column:1;grid-row:3}.action-row{grid-column:2;grid-row:3;align-items:stretch}.primary-button,.secondary-button{padding:0 10px;font-size:13px}.record-title{font-size:40px}.description{font-size:15px}.source-line{font-size:10px}.facts>.tile{padding:13px;min-height:88px}.site-footer{height:54px}}
@media(max-width:520px){.site-shell{padding:0 10px}.masthead{height:78px;padding:0 4px;gap:12px}.brand{font-size:clamp(16px,4.6vw,23px);letter-spacing:-.6px;gap:9px}.brand-mark{transform:scale(.85);margin-right:0}.archive-badge{font-size:0;gap:0;width:34px;height:34px;padding:0;justify-content:center}.archive-badge>span{font-size:12px}.stage{height:440px;--cassette-radius:52px;--cassette-axis:92px;border-radius:20px}.stage-head{top:20px;left:18px;right:18px}.eyebrow{font-size:13px}.stage-index{font-size:12px;gap:8px}.track-card{width:88cqw;aspect-ratio:1.4}.track-card-inner{border-radius:14px}.card-topline{font-size:9px;left:16px;right:16px;top:14px}.card-map{top:35px;height:calc(100% - 86px);left:3%;width:94%}.card-bottom{left:16px;right:16px;bottom:13px;padding-top:9px}.card-bottom strong{font-size:15px;letter-spacing:-.4px}.stage-bottom{left:17px;right:17px;bottom:18px}.scroll-cue{display:none}.index-nav button{width:29px;height:32px}.nav-arrow{width:37px;height:37px}.inspector{display:flex;gap:10px}.info-tile{padding:22px}.inspector-top{margin-bottom:21px}.record-title{font-size:42px}.description{font-size:15px;max-width:none}.source-line{font-size:10px}.photo-trigger{min-height:200px;flex:none}.facts{gap:10px}.facts>.tile{min-height:94px;padding:16px 19px}.facts dd{font-size:15px}.layers-tile{padding:16px 18px}.primary-button,.secondary-button{min-height:56px;font-size:14px}.site-footer{font-size:10px;gap:15px;padding:0 4px}.site-footer>span:last-child{font-size:8px;white-space:nowrap}.overlay-top{padding:17px 18px}.run-canvas,.traces-canvas{margin:0 10px}.run-bottom{padding:13px 17px 18px;gap:14px}.run-readout{font-size:10px;gap:12px;flex-wrap:wrap}.run-readout>span:first-child{flex-basis:100%}.run-readout strong{font-size:13px}.run-actions button{min-width:0;flex:1;font-size:11px;min-height:43px;padding:0 8px}.traces-caption{font-size:12px}.text-button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

@media(min-width:1200px){.brand{flex:none;font-size:clamp(23px,1.55vw,28px);line-height:1.15}.brand-title{white-space:nowrap}.brand-break{display:none}.masthead-caption{margin-left:clamp(28px,3vw,64px);flex:none}.masthead{gap:24px}}

/* Stable information and photographs */
.record-title{line-height:1.12;letter-spacing:-.012em;font-stretch:normal;font-weight:300;margin:0}
.card-bottom strong{letter-spacing:-.015em}
.photo-stack{position:absolute;inset:0;display:block;overflow:hidden}
.photo-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;opacity:0;filter:saturate(.6) brightness(.82);transition:opacity .5s ease;will-change:opacity}
.photo-frame.is-current{opacity:1}
.existence-period{display:flex;flex-direction:column;gap:7px;border-top:1px solid var(--border);padding-top:14px;margin-top:16px;font:11px 'Geist Mono',monospace;line-height:1.5;color:var(--muted)}
.existence-period>span:last-child{color:var(--text);font-size:12px}
.about-link{display:block;background:none;border:0;padding:0;color:var(--dim);font-size:inherit;line-height:inherit;text-align:left}
.about-link:hover{color:var(--accent)}
/* Project → traces → configurations */
.project-intro{flex:1;min-height:calc(100svh - 132px);display:grid;grid-template-columns:1fr 1.1fr;grid-template-rows:1fr auto;gap:35px 20px;padding:clamp(28px,4vw,68px);overflow:hidden;position:relative;background:radial-gradient(ellipse at 85% 30%,#273b582e,transparent 55%),#191c22}
.intro-copy{align-self:center;max-width:620px;position:relative;z-index:1}
.intro-eyebrow{display:flex;align-items:center;gap:36px;font:12px 'Geist Mono',monospace;color:#b6bbc5;margin-bottom:clamp(28px,5vh,58px)}
.intro-eyebrow>span{color:#717987}
#projectTitle{font-size:clamp(40px,3.8vw,68px);font-weight:300;line-height:1.07;letter-spacing:-.025em;margin:0 0 28px}
.intro-lead{font-size:clamp(18px,1.55vw,26px);font-weight:300;line-height:1.4;max-width:32ch;margin:0 0 20px}
.intro-description{color:#a4abb7;font-size:clamp(14px,1.05vw,17px);line-height:1.6;max-width:47ch;margin:0}
.intro-next{margin-top:34px;gap:34px;font-weight:400;min-height:56px;justify-content:space-between;padding:0 22px}
.intro-next>span{font-size:24px}
.intro-field{display:flex;flex-direction:column;min-width:0;position:relative;align-self:stretch;padding:12px 0}
.intro-field-label,.intro-field-caption{font:11px 'Geist Mono',monospace;color:#7f8999;line-height:1.5}
.intro-field-label{display:flex;justify-content:space-between;padding:0 22px}
.intro-field-caption{text-align:center}
#introArtwork{position:relative;flex:1;min-height:300px}
#introArtwork svg{position:absolute;inset:0;width:100%;height:100%}
#introArtwork path{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.intro-sequence{grid-column:1/-1;display:flex;gap:40px;padding-top:22px;border-top:1px solid var(--border);font:11px 'Geist Mono',monospace;color:#727c8c}
.intro-sequence .is-current{color:#dde1e8}
:is([data-screen="about"],[data-screen="traces"]) .workspace{display:block}
:is([data-screen="about"],[data-screen="traces"]) .stage{height:100%;min-height:570px}
:is([data-screen="about"],[data-screen="traces"]) .inspector{display:none}
:is([data-screen="about"],[data-screen="traces"]) .stage-head,:is([data-screen="about"],[data-screen="traces"]) .cassette,:is([data-screen="about"],[data-screen="traces"]) .stage-bottom,:is([data-screen="about"],[data-screen="traces"]) .cassette-base,:is([data-screen="about"],[data-screen="traces"]) .stage-rule{visibility:hidden}
:is([data-screen="about"],[data-screen="traces"]) .traces-overlay{background:#191d25;backdrop-filter:none}
@media(min-width:851px){.workspace{min-height:var(--workspace-min,570px)}}
@media(max-width:1100px){.project-intro{padding:34px;gap:28px 12px}.intro-eyebrow{margin-bottom:28px}#projectTitle{font-size:48px}.intro-description{font-size:14px}.intro-lead{font-size:19px}}
@media(max-width:850px){.project-intro{grid-template-columns:1fr;min-height:auto;padding:32px}.intro-copy{max-width:none}.intro-field{min-height:300px}.intro-sequence{gap:20px;font-size:10px}#introArtwork{min-height:250px}:is([data-screen="about"],[data-screen="traces"]) .stage{height:calc(100svh - 146px);min-height:450px}.existence-period{font-size:10px}.masthead-caption{display:block;margin-left:auto}.masthead-caption{font-size:0}.about-link{font-size:12px;white-space:nowrap}.archive-badge{display:none}}
@media(max-width:520px){.project-intro{padding:26px 22px;gap:28px}#projectTitle{font-size:clamp(30px,8.7vw,42px);letter-spacing:-.025em}.intro-eyebrow{font-size:10px;gap:26px;margin-bottom:28px}.intro-lead{font-size:18px}.intro-description{font-size:14px}.intro-next{width:100%;font-size:13px;margin-top:26px}.intro-field{min-height:235px;padding:0}.intro-field-label,.intro-field-caption{font-size:9px}.intro-field-label{padding:0}#introArtwork{min-height:210px}.intro-sequence{flex-wrap:wrap;gap:12px 20px;font-size:9px;padding-top:20px}.masthead-caption{margin-left:0}.about-link{font-size:10px}.traces-caption{font-size:10px;line-height:1.5}.traces-overlay .overlay-top{gap:12px}.traces-overlay .text-button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.photo-frame{transition:none}}

#projectTitle>span{display:block;white-space:nowrap}
@media(min-width:851px){:is([data-screen="about"],[data-screen="traces"]) .workspace{display:grid;grid-template-columns:minmax(0,1fr)}:is([data-screen="about"],[data-screen="traces"]) .stage{height:auto}}
@media(max-width:1100px){.card-bottom>span:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.card-bottom small{display:block;font-size:10px;letter-spacing:0}}
@media(max-width:520px){.card-bottom small{font-size:9px}}
/* Project text sits above the complete route field. */
.project-intro{grid-template-columns:minmax(0,1fr);isolation:isolate;gap:32px}
.intro-field{position:absolute;inset:24px 20px 70px;z-index:0;padding:0;pointer-events:none}
#introArtwork{position:absolute;inset:0;min-height:0;opacity:.8}
#introArtwork path{stroke-width:4}
.intro-field-label{position:absolute;top:12px;right:30px;left:auto;gap:30px;z-index:1}
.intro-field-caption{position:absolute;bottom:20px;right:30px;z-index:1}
.intro-copy{width:min(650px,56%);max-width:none;align-self:center;padding:clamp(28px,3vw,44px);border:1px solid #dce7ff1b;border-radius:24px;background:linear-gradient(135deg,#171b23ed,#1d232ddd);backdrop-filter:blur(20px);box-shadow:0 20px 70px #0003,inset 0 1px 0 #ffffff08}
.intro-eyebrow{margin-bottom:30px}
#projectTitle{font-size:clamp(38px,3.35vw,60px);margin-bottom:24px}
.intro-lead{font-size:clamp(18px,1.25vw,23px);margin-bottom:18px}
.intro-description{font-size:clamp(14px,.95vw,16px)}
.intro-next{margin-top:28px}
.intro-sequence{z-index:1;position:relative;grid-column:1;align-self:end}
@media(max-width:1100px){.intro-copy{width:62%;padding:28px}#projectTitle{font-size:clamp(34px,3.65vw,44px)}.intro-field-label{font-size:9px;right:10px;padding:0}.intro-field-caption{font-size:9px;right:10px}}
@media(max-width:850px){.project-intro{min-height:calc(100svh - 130px);padding:34px 24px}.intro-copy{width:min(570px,100%);padding:28px;background:#191e27eb}.intro-field{inset:0 -100px 60px;min-height:0}.intro-field-label,.intro-field-caption{display:none}#introArtwork{min-height:0}.intro-sequence{margin-top:12px}#projectTitle{font-size:clamp(32px,5vw,46px)}}
@media(max-width:520px){.project-intro{padding:54px 16px 22px;gap:32px}.intro-copy{padding:25px 20px;border-radius:18px}#projectTitle{font-size:clamp(27px,7.3vw,36px);letter-spacing:-.02em}.intro-eyebrow{font-size:9px;margin-bottom:24px}.intro-lead{font-size:17px}.intro-description{font-size:13px;line-height:1.6}.intro-next{font-size:12px;padding:0 16px;gap:16px}.intro-sequence{font-size:8px;gap:10px 16px}.intro-field{inset:-40px -160px 35px}}
/* A single persistent route scene: zoomed introduction → interactive map. */
:is([data-screen="about"],[data-screen="traces"]) .workspace{min-height:650px}
:is([data-screen="about"],[data-screen="traces"]) .stage{min-height:650px}
.traces-overlay{overflow:hidden}
.traces-canvas{position:absolute;inset:80px 24px 72px;margin:0;min-height:0}
.traces-svg{transform:scale(1);transform-origin:60% 48%;transition:transform 1.8s cubic-bezier(.4,0,.2,1),opacity 1.2s ease;opacity:1;will-change:transform}
[data-screen="about"] .traces-svg{transform:scale(2.6);opacity:.5}
.traces-overlay[data-ready="false"] .traces-svg{pointer-events:none}
.traces-overlay[data-ready="false"] .trace-hit{pointer-events:none}
.traces-overlay>.overlay-top{position:absolute;inset:0 0 auto;transition:opacity .35s ease .55s}
.traces-overlay>.traces-caption{position:absolute;bottom:0;left:0;right:0;transition:opacity .35s ease .55s}
[data-screen="about"] .traces-overlay>.overlay-top,[data-screen="about"] .traces-overlay>.traces-caption{opacity:0;pointer-events:none;transition-delay:0s}
#projectIntro{position:absolute;inset:0;z-index:4;min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;margin:0;border:0;border-radius:inherit;box-shadow:none;background:transparent;padding:clamp(28px,4vw,68px);gap:28px;pointer-events:none;opacity:1;visibility:visible;transition:opacity .42s ease,visibility 0s;overflow:hidden}
#projectIntro .intro-copy{pointer-events:auto}
[data-screen="traces"] #projectIntro{opacity:0;visibility:hidden;transition:opacity .42s ease,visibility 0s .42s}
[data-screen="traces"] #projectIntro .intro-copy{pointer-events:none}
[data-screen="about"] .traces-overlay .map-grid{opacity:0}
@media(max-width:850px){:is([data-screen="about"],[data-screen="traces"]) .stage{height:max(700px,calc(100svh - 146px));min-height:700px}:is([data-screen="about"],[data-screen="traces"]) .workspace{min-height:0}#projectIntro{padding:34px 24px}.traces-canvas{inset:75px 18px 70px}}
@media(max-width:520px){#projectIntro{padding:40px 16px 24px;gap:28px}.traces-canvas{inset:65px 10px 75px}[data-screen="about"] .traces-svg{transform:scale(3.2)}}
@media(prefers-reduced-motion:reduce){.traces-svg,#projectIntro,.traces-overlay>.overlay-top,.traces-overlay>.traces-caption{transition:none!important}}
.panel-label{display:block;font:10px 'Geist Mono',monospace;line-height:1.5;color:#929cac;letter-spacing:.02em}
.intro-question{font-size:clamp(24px,1.8vw,32px);font-weight:300;line-height:1.22;letter-spacing:-.02em;margin:22px 0}
.panel-body{font-size:14px;line-height:1.55;color:#b1b7c2;margin:17px 0 0;max-width:40ch}
.story-link{display:flex;align-items:center;gap:18px;background:none;border:0;padding:0;color:#bbc6d5;font-size:12px;line-height:1.5;margin-top:20px;text-align:left}.story-link span{font-size:20px;line-height:1}.story-link:hover{color:var(--accent)}
.record-brief{margin-top:20px;padding:15px 0 0;border-top:1px solid var(--border)}.record-brief p{margin:7px 0 0;font-size:clamp(18px,1.35vw,25px);font-weight:300;line-height:1.25;letter-spacing:-.015em}.info-tile .story-link{margin-top:14px}.info-tile .source-line{font-size:9px;margin-top:15px}.existence-period{flex-direction:row;justify-content:space-between;gap:16px;align-items:baseline}
.text-dialog{width:min(920px,94vw);max-height:90svh;padding:0;border:1px solid #c3d2e52e;border-radius:24px;background:#171a21;color:var(--text);box-shadow:0 35px 120px #000b}.text-dialog::backdrop{background:#07090dba;backdrop-filter:blur(18px)}.text-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 28px;border-bottom:1px solid var(--border)}.text-dialog-content{padding:28px}.text-dialog h2{font-size:clamp(30px,3vw,44px);font-weight:300;line-height:1.15;letter-spacing:-.02em;margin:0 0 26px}.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.story-panel{padding:24px}.story-panel h3{font-size:12px;color:#9da9ba;font-weight:400;line-height:1.5;margin:0 0 18px}.story-panel p{font-size:16px;line-height:1.55;white-space:pre-line;margin:0 0 18px;color:#d1d6df}.story-panel p:last-child{margin-bottom:0}.story-grid .story-panel:nth-child(2){grid-column:2;grid-row:1/3}.story-grid:has(.story-panel:last-child:nth-child(2)) .story-panel:nth-child(2){grid-row:auto}
@media(max-height:820px) and (min-width:1001px){.intro-panel{padding:26px}.intro-panel #projectTitle{font-size:42px}.intro-panel .intro-eyebrow{margin-bottom:24px}.intro-question{font-size:26px}.record-brief{margin-top:14px;padding-top:12px}.record-brief p{font-size:20px}.info-tile .description{font-size:14px}.info-tile .existence-period{margin-top:12px;padding-top:12px}}
.info-tile .record-title{font-size:clamp(36px,2.7vw,52px)}.info-tile .inspector-top{margin-bottom:20px}.info-tile .record-brief{margin-top:16px}.info-tile .record-brief p{font-size:clamp(18px,1.2vw,23px)}
@media(min-width:851px){.info-tile .record-title{font-size:clamp(36px,2.55vw,48px)}.info-tile .inspector-top{margin-bottom:14px}.info-tile .record-brief{margin-top:12px;padding-top:12px}.info-tile .description{font-size:14px;line-height:1.45;margin-top:12px}.info-tile .story-link{margin-top:10px}.info-tile .source-line{margin-top:10px}.info-tile .existence-period{margin-top:12px;padding-top:10px}.info-tile{padding-top:20px;padding-bottom:18px}}

/* One centered panel, three manually paced parts of the project story. */
#projectIntro{display:grid;grid-template-rows:1fr;place-items:center;padding:36px 28px;gap:0}
#projectIntro .intro-single{width:min(700px,100%);max-width:none;justify-self:center;align-self:center;padding:clamp(28px,3vw,46px);border:1px solid #dce7ff1b;border-radius:24px;background:linear-gradient(135deg,#171b23ed,#1d232ddd);backdrop-filter:blur(24px);box-shadow:0 20px 70px #0003,inset 0 1px 0 #ffffff08}
.intro-single .intro-eyebrow{justify-content:space-between;margin-bottom:32px;gap:20px}.intro-single .intro-section-label{color:#b6bbc5}
.intro-slide-stage{display:grid;min-width:0;cursor:pointer;border-radius:8px}.intro-slide-stage:focus-visible{outline:1px solid var(--accent);outline-offset:8px}.intro-slide{grid-area:1/1;visibility:hidden;pointer-events:none}.intro-slide.is-current{visibility:visible;pointer-events:auto}
.intro-single #projectTitle,.intro-slide-title{font-size:clamp(38px,3.2vw,56px);font-weight:300;line-height:1.09;letter-spacing:-.025em;margin:0 0 26px}
.intro-single .intro-lead{font-size:clamp(19px,1.3vw,23px);line-height:1.4;max-width:32ch;margin-bottom:20px}.intro-single .intro-description{font-size:15px;line-height:1.6;max-width:51ch}
.intro-story-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.intro-tabs{display:flex;gap:7px}.intro-tabs button{width:36px;height:32px;background:none;border:1px solid transparent;border-radius:8px;color:#798494;font:11px 'Geist Mono',monospace;transition:color .2s,background .2s}.intro-tabs button[aria-selected="true"]{color:#edf4ff;background:#ffffff09;border-color:#dce7ff17}.intro-tabs button:hover{color:var(--text)}
.intro-slide-arrows{display:flex;gap:7px}.intro-slide-arrows button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #dce7ff1b;border-radius:50%;background:#ffffff04;color:#bcc6d5;font-size:20px;line-height:1}.intro-slide-arrows button:hover{color:var(--accent);border-color:#278cff66}
.intro-cta-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}.intro-single .intro-next,.intro-single .story-link{margin-top:0}.intro-single .intro-next{min-height:56px;font-size:14px;padding:0 22px;gap:28px}.intro-single .story-link{font-size:11px;white-space:nowrap;gap:10px}
#projectIntro .intro-sequence{position:absolute;bottom:35px;left:clamp(28px,4vw,68px);right:clamp(28px,4vw,68px);margin:0;pointer-events:none}
@media(max-height:820px) and (min-width:851px){#projectIntro .intro-single{padding:30px 36px}.intro-single .intro-eyebrow{margin-bottom:24px}.intro-single #projectTitle,.intro-slide-title{font-size:46px;margin-bottom:22px}.intro-single .intro-lead{font-size:20px}.intro-story-nav{margin-top:20px;padding-top:16px}.intro-cta-row{margin-top:20px}}
@media(max-width:850px){#projectIntro{padding:32px 24px 82px}:is([data-screen="about"],[data-screen="traces"]) .stage{height:max(700px,calc(100svh - 146px));min-height:700px}}
@media(max-width:520px){#projectIntro{padding:28px 16px 72px}#projectIntro .intro-single{padding:26px 22px;border-radius:20px}.intro-single .intro-eyebrow{font-size:10px;margin-bottom:26px}.intro-single #projectTitle,.intro-slide-title{font-size:clamp(28px,7.5vw,36px);margin-bottom:22px}.intro-single .intro-lead{font-size:18px;margin-bottom:18px}.intro-single .intro-description{font-size:13px;line-height:1.55}.intro-story-nav{margin-top:20px;padding-top:16px}.intro-cta-row{flex-wrap:wrap;gap:16px;margin-top:20px}.intro-single .intro-next{width:100%;font-size:12px;padding:0 16px;gap:16px;min-height:52px}.intro-single .story-link{margin:auto}.intro-sequence{font-size:8px;gap:10px 16px}#projectIntro .intro-sequence{bottom:24px;left:24px;right:24px}.text-dialog-content{padding:20px}.text-dialog-head{padding:16px 20px}.story-grid{grid-template-columns:1fr}.story-grid .story-panel:nth-child(2){grid-column:auto;grid-row:auto}.story-panel{padding:20px}.story-panel p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.intro-slide{transition:none!important;transform:none}}
/* Enlarged paths must not make the scene scroll when controls receive focus. */
.traces-overlay,#projectIntro{overflow:clip}

/* The engine and each wagon follow their own point and tangent on the track. */
#trainMarker{filter:drop-shadow(0 2px 3px #071120b3)}
.train-body{fill:#dae8f7;stroke:#101e30;stroke-width:1.2}
.train-locomotive .train-body{fill:var(--accent);stroke:#c7e4ff}
.train-cab{fill:#113f70;stroke:#a0ceff;stroke-width:.8}
.train-window{fill:#c5e6ff}.train-boiler{fill:#358bdf;stroke:#c6e5ff;stroke-width:.7}
.train-chimney{fill:#112940;stroke:#daecff;stroke-width:1}
.train-plow{fill:#a4cefa;stroke:#172d48;stroke-width:1}
.train-wheels{fill:#13263b;stroke:#b3cce5;stroke-width:.65}
.train-roof{fill:#83a6cb;stroke:#233e5c;stroke-width:.7}
.train-detail{fill:none;stroke:#315778;stroke-width:.8}
.train-coupler{fill:none;stroke:#d2e5f8;stroke-width:1.4;vector-effect:non-scaling-stroke;stroke-linecap:round}
.run-route-base{stroke:#278cff45;stroke-width:5}.run-route-progress{stroke-width:5}
.train-sound-controls{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 16px;border:1px solid var(--border);border-radius:14px;background:#ffffff03}
.sound-toggle{display:flex;align-items:center;gap:10px;min-height:30px;background:none;border:0;padding:0;color:#c2cddd;font-size:12px;white-space:nowrap}
.sound-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.sound-toggle[aria-pressed="true"]{color:#a5d0ff}.sound-toggle:hover{color:var(--accent)}
.sound-muted,.sound-toggle[aria-pressed="false"] .sound-waves{display:none}.sound-toggle[aria-pressed="false"] .sound-muted{display:block}
.train-volume{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}
.train-volume input{width:clamp(90px,12vw,170px);height:26px;margin:0;accent-color:var(--accent);cursor:pointer}
.train-volume output{min-width:36px;text-align:right;font:11px 'Geist Mono',monospace;color:#c5d1e1}
@media(max-width:520px){.train-sound-controls{padding:10px 12px;gap:8px}.sound-toggle{font-size:10px;gap:6px}.sound-toggle svg{width:17px;height:17px}.train-volume{gap:7px}.train-volume>span{display:none}.train-volume input{width:86px}.train-volume output{font-size:10px;min-width:30px}.run-bottom{gap:12px}.run-actions button{font-size:11px}.overlay-top .eyebrow{font-size:12px}}

.glyph-arrow{font-family:"Geist Navigation","Geist",sans-serif;font-weight:300;font-variant-ligatures:common-ligatures;font-feature-settings:"liga" 1,"clig" 1;letter-spacing:0;line-height:1;display:inline-block}
.nav-arrow .glyph-arrow{font-size:22px}
.intro-slide-arrows .glyph-arrow{font-size:20px}
.primary-button>.glyph-arrow,.story-link>.glyph-arrow{font-size:22px}
.about-link>.glyph-arrow{font-size:16px;vertical-align:-.08em}
.traces-caption>.glyph-arrow{font-size:16px;vertical-align:-.1em}
.photo-expand.glyph-arrow{display:grid;place-items:center}

.action-row{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) 52px}
.action-row>.primary-button,.action-row>.secondary-button{min-width:0}
.telegram-feedback{padding:0;text-decoration:none;display:grid;place-items:center}
.telegram-feedback svg{width:23px;height:23px;fill:currentColor}
.telegram-feedback:hover{color:var(--accent)}
@media(max-width:1100px) and (min-width:851px){.action-row{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) 46px;gap:8px}.action-row>.primary-button,.action-row>button{padding:0 8px;font-size:12px;gap:6px}.action-row>.primary-button>.glyph-arrow{font-size:20px}}
@media(max-width:520px){.action-row{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) 48px;gap:8px}.action-row>.primary-button,.action-row>button{padding:0 10px;gap:7px}}

/* Slow, staggered blue highlights beneath the introductory story. */
.intro-route-field{display:none;pointer-events:none}
.intro-route{fill:none;stroke:var(--accent);stroke-width:8;opacity:0;pointer-events:none}
[data-screen="about"] .intro-route-field{display:block}
[data-screen="about"] .intro-route{animation:intro-route-light var(--route-cycle) linear var(--route-delay) infinite}
[data-ambient-paused="true"] .intro-route{animation-play-state:paused}
@keyframes intro-route-light{0%,16.667%,100%{opacity:0}3%,10%{opacity:1}}
[data-screen="about"] .traces-svg{opacity:.68}
[data-screen="about"] .trace-line{opacity:calc(var(--trace-opacity)*.74)}
/* Matte translucent surfaces with gently diffused detail beneath them. */
.tile{background:linear-gradient(135deg,#22242ac9,#1d1f24bf);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#projectIntro{backdrop-filter:none;-webkit-backdrop-filter:none}
#projectIntro .intro-single{background:linear-gradient(135deg,#171b239e,#1d232d94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.track-card-inner{background:linear-gradient(130deg,#303640cf,#24282fc4);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
@media(prefers-reduced-motion:reduce){[data-screen="about"] .intro-route{animation:none}[data-screen="about"] .intro-route:first-child{opacity:.8}}

/* Local scene navigation, with the title acting as the return to the opening. */
.brand{border:0;background:none;padding:0;text-align:left;min-width:0}
.brand:hover{color:#ffffff}
.stage-head,.traces-overlay>.overlay-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center}
.stage-head>.eyebrow,.traces-overlay>.overlay-top>.eyebrow{justify-self:start;white-space:nowrap}
.stage-head>.stage-index,.traces-overlay #closeTraces{justify-self:end}
.scene-about{justify-self:center;white-space:nowrap;color:#aab3c1;font-size:13px;gap:9px}
.scene-about>.glyph-arrow,.traces-overlay #closeTraces>.glyph-arrow{font-size:20px;line-height:1}
@media(max-width:520px){.stage-head,.traces-overlay>.overlay-top{gap:8px}.scene-about{font-size:11px;gap:5px}.scene-about>.glyph-arrow,.traces-overlay #closeTraces>.glyph-arrow{font-size:17px}.traces-overlay>.overlay-top{grid-template-columns:auto minmax(0,1fr) auto}.traces-overlay #closeTraces{gap:6px}.stage-head>.eyebrow{font-size:12px}}
/* Put the scheme controls before its description on narrow screens. */
@media(max-width:850px) and (min-width:521px){
  .inspector>.layers-tile{grid-column:1;grid-row:1}
  .inspector>.action-row{grid-column:2;grid-row:1}
  .inspector>.info-tile{grid-column:1;grid-row:2/4}
  .inspector>.photo-trigger{grid-column:2;grid-row:2}
  .inspector>.facts{grid-column:2;grid-row:3}
}
@media(max-width:850px){
  [data-screen="traces"] .traces-svg{transform:scale(1.1);transform-origin:50% 50%;cursor:pointer}
  .traces-svg .trace-hit{pointer-events:none}
}
/* Keep each identifier and total in one place on the current screen. */
:is([data-screen="cards"],[data-screen="traces"]) .archive-badge{display:none}
.card-map{height:calc(100% - 65px)}
.card-topline .card-mode-label{color:#b9c0ca}
.mode-tabs button:disabled{opacity:.38;cursor:not-allowed}
.mode-tabs button:disabled:hover{color:#9098a5}
.photo-dialog:not(.has-multiple-photos)>img{max-height:calc(94svh - 100px)}
@media(max-width:520px){.card-map{height:calc(100% - 55px)}}

/* Use the opening story's fade rhythm throughout content changes. */
.source-scheme,.map-route,.map-grid,.card-mode-label{transition:opacity .42s ease-out}
.photo-frame{transition:opacity .72s cubic-bezier(.4,0,.2,1)}
.trace-line{transition:opacity .42s ease-out,stroke .42s ease-out}
.has-active-trace .trace-item.is-highlighted .trace-line{stroke:var(--accent);opacity:1}
.trace-highlight{transition:opacity .42s ease-out}
.photo-thumbs button{transition:opacity .42s ease-out,border-color .42s ease-out}
.photo-dialog.has-multiple-photos>img{height:calc(94svh - 165px)}
.intro-route-field{display:block;opacity:0;transition:opacity .42s ease-out}
[data-screen="about"] .intro-route-field{opacity:1}
.intro-route{animation:intro-route-light var(--route-cycle) linear var(--route-delay) infinite}
:is(.photo-dialog,.text-dialog)[open]::backdrop{animation:dialog-backdrop-in .42s ease-out both}
:is(.photo-dialog,.text-dialog).is-closing::backdrop{animation:dialog-backdrop-out .3s ease-in both}
@keyframes dialog-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes dialog-backdrop-out{from{opacity:1}to{opacity:0}}

/* Phone typography follows the available width instead of desktop line breaks. */
@media(max-width:850px){
  .mobile-record-header{padding:22px;flex:none;min-width:0}
  .mobile-record-header .inspector-top{margin-bottom:14px}
  .mobile-record-header .record-title{font-size:40px}
  :is([data-screen="about"],[data-screen="traces"]) .mobile-record-header{display:none}
  .intro-lead .desktop-break{display:none}
  .intro-single .intro-lead,.intro-slide-title,.record-brief p{max-width:none;text-wrap:balance}
  .intro-description,.description,.story-panel p,.category,.story-panel h3{max-width:none;text-wrap:pretty}
  .brand-title{white-space:normal;text-wrap:balance}
  #projectTitle>span{white-space:normal;text-wrap:balance}
  .info-tile>.record-brief{border-top:0;margin-top:0;padding-top:0}
  .cassette{perspective:1400px}
  .track-card{width:min(88cqw,calc((100cqh - 200px)*1.6));aspect-ratio:1.6}
  .stage-head{z-index:20}
}
@media(max-width:520px){
  .intro-single #projectTitle,.intro-slide-title{font-size:clamp(25px,7vw,36px)}
  [data-screen="cards"] .stage{height:clamp(420px,115vw,500px)}
  .track-card{width:min(88cqw,calc((100cqh - 200px)*1.4));aspect-ratio:1.4}
  .action-row>button{font-size:clamp(11px,3.2vw,14px);white-space:nowrap;padding:0 8px;gap:5px}
  .action-row{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) 44px}
  .action-row .glyph-arrow{font-size:18px}
  .text-dialog-head,.photo-dialog-head{align-items:flex-start}
  .text-dialog-content{padding:16px}
  .story-panel{padding:16px}
  .text-dialog-head .panel-label{min-width:0;text-wrap:balance}
  .text-dialog-head .text-button,.photo-dialog-head .text-button{flex:none;white-space:nowrap}
  .photo-dialog-head #photoDialogTitle{min-width:0;text-wrap:balance}
  .train-sound-controls{flex-wrap:wrap}
  .train-volume{margin-left:auto}
  .site-footer{height:auto;min-height:54px;flex-wrap:wrap;gap:6px 16px;padding-top:12px;padding-bottom:12px}
}
@media(max-width:380px){
  .text-dialog-content{padding:14px}
  .story-panel{padding:12px}
  .traces-overlay>.overlay-top{grid-template-columns:minmax(0,1fr) auto}
  .traces-overlay>.overlay-top>.eyebrow{grid-column:1;grid-row:1}
  .traces-overlay #aboutButton{grid-column:2;grid-row:1;justify-self:end}
  .traces-overlay #closeTraces{grid-column:1/-1;grid-row:2}
  .traces-canvas{inset:100px 10px 75px}
  #runOverlay>.overlay-top{gap:8px}
  #runOverlay>.overlay-top .eyebrow{font-size:11px}
}

/* Ten configuration numbers stay visible beside the mobile arrow controls. */
@media(max-width:520px){
  .stage-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  .index-nav{display:grid;grid-template-columns:repeat(5,29px);gap:1px 0;justify-content:start}
  .stage-nav{grid-column:2;grid-row:1;align-self:center}
}
