
@import url("./rail.css");
:root {
  --paper: #f0efea; --ink: #26261f; --graphite: #4a4a44; --pencil: #8a897f; --blue: #6f95bd; --mid: #65645c; --rule: #cfceC6;
  --display: "Jost", "Futura", "Avenir Next", sans-serif; --serif: "Literata", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --t: 240ms;
  --gutter: max(22px, env(safe-area-inset-left, 0px)); --gutter-r: max(22px, env(safe-area-inset-right, 0px));
  
  --col: 40rem; --edge: max(var(--gutter), 50vw - 24px - var(--col)); --edge-r: max(var(--gutter-r), 50vw - 24px - var(--col));
}
@media (min-width: 720px) { :root { --gutter: max(64px, 3.2vw, env(safe-area-inset-left, 0px)); --gutter-r: max(64px, 3.2vw, env(safe-area-inset-right, 0px)); } } 
html { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.6; font-optical-sizing: auto; }
@media (min-width: 720px) { html { font-size: clamp(18px, 0.4vw + 12.24px, 22px); } } 
a { text-decoration: none; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; text-wrap: balance; }
body::before { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; background-image: var(--grain-url); background-size: 160px; opacity: 0.035; mix-blend-mode: multiply; }


.guide { position: fixed; left: calc(var(--gutter) - 6px); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20; padding: 1px 6px; background: var(--paper); font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--mid); min-height: 1.4em; max-width: 60vw; }
.guide:empty { background: none; }

.steps { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 18; display: flex; gap: 28px; font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.08em; } 
.step { color: var(--mid); padding: 1px 6px; transition: color var(--t) var(--ease), opacity var(--t) var(--ease); }
.steps[data-moving] .step { opacity: 0; pointer-events: none; } 
.step:hover { color: var(--ink); }
.step:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }
.steps:not([data-at="title"]) .step-go, .steps[data-at="title"] .step-back, .steps[data-at="title"] .step-next, .steps[data-at="credits"] .step-next { display: none; }
.switch { position: fixed; right: var(--gutter-r); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20; font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--mid); padding-bottom: 2px; border-bottom: 0.5px solid var(--rule); }
.switch:hover { color: var(--ink); }


html.film-mode, html.film-mode body { overflow: hidden; height: 100%; }
.film { height: 100svh; position: relative; }
.stage { position: relative; height: 100svh; overflow: hidden; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; z-index: 19; } 
.thr { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; fill: none; }

.state { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: clamp(24px, 6svh, 56px) var(--gutter-r) clamp(24px, 6svh, 56px) var(--gutter); opacity: 0; visibility: hidden; pointer-events: none; overflow-y: auto; }
.state.is-on { opacity: 1; visibility: visible; }
.state.is-hold { pointer-events: auto; }
.figure { position: relative; width: min(58svh, 70vw, max(420px, 23.3rem)); aspect-ratio: 288 / 432; } 
.figure svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.sketch .solid { fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; fill-opacity: var(--fill, 1); stroke-opacity: var(--stroke, 0); } 

html.js:not(.is-final) [data-reveal] { opacity: var(--reveal, 0); transform: translateY(calc((1 - var(--rise, 0)) * 0.5em)); } 
html.js:not(.is-final) [data-reveal].is-out { visibility: hidden; } 

html.js:not(.is-final) .thing[data-reveal] { opacity: 1; transform: none; }
html.js:not(.is-final) .thing[data-reveal] .thing-title, html.js:not(.is-final) .thing[data-reveal] .thing-line { opacity: var(--words, 0); transform: translateY(calc((1 - var(--rise, 0)) * 0.5em)); }
html.js:not(.is-final) .film.measuring [data-reveal] { transform: none !important; }

html.js:not(.is-final) .state-built .brand-bl path, html.js:not(.is-final) .state-built .brand-bl circle { fill-opacity: var(--bl-fill, 0); }
html.js:not(.is-final) .state-credits .mark { opacity: var(--ink-back, 0); }

html.js:not(.is-final) .small-things li, html.js:not(.is-final) .smalls .state-head, html.js:not(.is-final) .about .state-head { border-top-color: transparent; }

.state-built, .state-small { --line-top: calc(28px + 1.4rem + 14px + 36px); } 
.carrier { position: absolute; left: 50%; top: var(--line-top); bottom: var(--line-top); width: 1.2px; margin-left: -0.6px; background: var(--ink); opacity: 0; pointer-events: none; }
.carrier--small { left: var(--cx, 50%); }
.film[data-rest="built"] .state-built .carrier, .film[data-rest="small"] .carrier--small { opacity: 1; view-transition-name: thread; }

html:not(.booted):not(.is-final) .state-built:target { opacity: 1; visibility: visible; pointer-events: auto; }
html:not(.booted):not(.is-final) .state-built:target [data-reveal], html:not(.booted):not(.is-final) .state-built:target .thing-title, html:not(.booted):not(.is-final) .state-built:target .thing-line { opacity: 1; transform: none; visibility: visible; }
html:not(.booted):not(.is-final) .state-built:target { --mango-fill: 1; --bl-fill: 1; }
html:not(.booted):not(.is-final) .state-built:target .carrier { opacity: 1; view-transition-name: thread; }

html:not(.booted):not(.is-final) .state-small:target { opacity: 1; visibility: visible; pointer-events: auto; }
html:not(.booted):not(.is-final) .state-small:target [data-reveal], html:not(.booted):not(.is-final) .state-small:target .thing-title { opacity: 1; transform: none; visibility: visible; }
html:not(.booted):not(.is-final) .state-small:target .carrier--small { opacity: 1; view-transition-name: thread; }
.thing[data-thing="tm"] .symbol { view-transition-name: symbol-tm; }
.thing[data-thing="bl"] .symbol { view-transition-name: symbol-bl; }
.thing[data-thing="bl"] .bl-name, .chapter-card .bl-name { view-transition-name: wordmark-bl; }

.is-final .film { height: auto; }
.is-final .stage { position: static; height: auto; overflow: visible; }
.is-final .state { position: relative; min-height: 100svh; opacity: 1; visibility: visible; pointer-events: auto; }
.is-final .thread, .is-final .carrier { display: none; }
.is-final .sketch .solid { fill-opacity: 1; stroke-opacity: 0; }


.state-head { font-family: var(--display); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; color: var(--mid); position: absolute; top: 28px; left: var(--gutter); }
.pick { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 40px; width: 100%; max-width: 96rem; } 
.thing { display: grid; justify-items: center; gap: 14px; color: var(--ink); text-align: center; padding: 24px; }
.thing .symbol { width: min(34svh, 26vw); aspect-ratio: 1; overflow: visible; margin-bottom: 10px; }

.lockup { display: flex; align-items: flex-start; gap: 0.144em; line-height: 0; }
.brand-word { display: block; height: 1em; width: auto; overflow: visible; }
.thing .lockup { font-size: min(max(36px, 4.2vw), max(60px, 2.5vw + 24px), 86px); } 
.thing .brand-mango { height: 0.875em; width: auto; aspect-ratio: 360 / 409; margin: -0.089em 0 0; }
.thing-title.thing-title--word { font-size: inherit; max-width: none; line-height: 0; } 
.thing .brand-word { view-transition-name: wordmark-tm; }
html.js:not(.is-final) .thing-title--word { opacity: 1 !important; transform: none !important; } 

html.js:not(.is-final) .state-built .brand-mango [data-layer] { fill-opacity: var(--mango-fill, 0); }
.thing-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: 0.005em; max-width: 16ch; text-wrap: balance; }
.thing-line { font-style: italic; color: var(--mid); font-size: 1.125rem; }

.lockup--bl { align-items: baseline; gap: 0.22em; line-height: 1; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; color: #21382e; }
.brand-bl { display: block; height: 0.74em; width: auto; aspect-ratio: 40 / 32; overflow: visible; }
.bl-name { font: inherit; letter-spacing: inherit; margin: 0; }
.thing .lockup--bl { font-size: min(max(43px, 5vw), max(72px, 3vw + 28.8px), 103px); } 
.thing .brand-bl { width: auto; height: 0.74em; aspect-ratio: 40 / 32; margin: 0; } 
.thing .thing-title--bl { font: inherit; letter-spacing: inherit; line-height: 1; max-width: none; }
html.js:not(.is-final) .thing[data-reveal] .thing-title--bl { opacity: var(--bl-fill, 0); transform: none; } 
.is-final .brand-bl path, .is-final .brand-bl circle, html:not(.js) .brand-bl path, html:not(.js) .brand-bl circle { fill-opacity: 1; }



.smalls { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 64px; align-items: start; width: 100%; max-width: 78rem; } 
.smalls .state-head { position: static; padding-top: 12px; border-top: 0.5px solid var(--rule); }

.small-things { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.small-things li { border-top: 0.5px solid var(--rule); padding-top: clamp(16px, 3svh, 32px); }
.thing--small { padding: 0 0 8px; gap: 10px; justify-items: start; text-align: left; }
.thing--small .thing-title { max-width: none; } 

.is-final .state-about { height: 100svh; min-height: 0; } 
.about { --about-off: 32px; --about-gap: 32px; --about-pad: 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; gap: clamp(18px, 3.4svh, 34px) 0; width: 100%; max-width: 78rem; align-self: center; }
.about .state-head { position: static; grid-column: 1; grid-row: 1; align-self: start; padding: 12px var(--about-off) 0 0; border-top: 0.5px solid var(--rule); } 
.about-intro { grid-column: 2; grid-row: 1; padding: 12px 0 0 var(--about-gap); display: grid; gap: 8px; max-width: calc(66ch + var(--about-gap)); }
.about-intro p:first-child { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 3svh, 1.75rem); line-height: 1.18; } 
.about-intro p + p { font-size: clamp(0.9375rem, 2.2svh, 1.0625rem); }
.about-tabs { grid-column: 1; grid-row: 2; align-self: center; display: grid; justify-items: end; padding-right: var(--about-off); }
.about-tab { position: relative; display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; line-height: 1.4; padding: 5px 0; color: var(--mid); text-align: right; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 0.5px; text-underline-offset: 0.3em; transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease); }
.about-tab:hover, .about-tab:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }
.about-tab.is-current { color: var(--ink); text-decoration: none; }
.about-tab:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }
.about-tab::after { content: ""; position: absolute; top: 50%; right: calc(-1 * var(--about-off) - 3.5px); width: 7px; height: 1.2px; margin-top: -0.6px; background: var(--ink); transition: width var(--t) var(--ease); } 
.about-tab:hover::after, .about-tab:focus-visible::after { width: 13px; }
.about-tab.is-current::after { width: calc(var(--about-off) + 3.5px - 10px); } 

.about-body { grid-column: 2; grid-row: 2; align-self: center; justify-self: start; position: relative; margin-left: var(--about-gap); width: min(calc(100% - var(--about-gap)), 38rem); height: var(--box-h, 30rem); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; border: 0.5px solid var(--ink); font-size: clamp(0.9375rem, 2.2svh, 1.0625rem); }
.about-body.is-sizing { height: auto; overflow: visible; } 
.about-body.is-sizing .about-panel { min-height: 0; }
.is-final .about-body { overscroll-behavior: auto; } 
.about-body:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }
html.js:not(.is-final) .about-body { border-color: transparent; } 
.about-panel { box-sizing: border-box; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 34px var(--about-pad) 38px; display: grid; gap: 12px; align-content: center; }
.about-panel-head { font-family: var(--display); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--mid); margin-bottom: 2px; }
.is-final .about-tab, .is-final .about-tab::after { transition: none; }

.pull { margin: 2px 0; padding: 2px 0 2px 18px; border-left: 0.5px solid var(--ink); display: grid; gap: 8px; }
.pull blockquote { margin: 0; } 
.pull blockquote p { font-style: italic; color: var(--graphite); }
.pull figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--mid); }
.pull figcaption a { padding-bottom: 1px; border-bottom: 0.5px solid var(--rule); transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.pull figcaption a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.pull figcaption a:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }

html:not(.js) .about-tabs { display: none; }
.is-final .about::before, html:not(.js) .about::before { content: ""; grid-column: 1; grid-row: 1 / -1; justify-self: end; width: 1.2px; margin-right: -0.6px; background: var(--ink); }

@media (max-width: 719px) {
  .state-about { padding-bottom: 88px; } 
  .is-final .state-about { height: auto; min-height: 100svh; }
  .about { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 18px; align-self: start; }
  .about .state-head, .about-intro, .about-tabs, .about-body { grid-column: auto; grid-row: auto; padding-left: 0; padding-right: 0; }
  .about-intro { padding-top: 0; max-width: none; }
  .about-tabs { display: flex; flex-wrap: wrap; gap: 0 18px; align-self: auto; }
  .about-tab { text-align: left; padding: 4px 0; }
  .about-tab::after { display: none; }
  .about-body { margin-left: 0; width: auto; height: auto; overflow: visible; scroll-snap-type: none; overscroll-behavior: auto; border: 0; }
  .about-panel { min-height: 0; padding: 0; align-content: start; }
  .about-panel + .about-panel { margin-top: 26px; padding-top: 22px; border-top: 0.5px solid var(--rule); }
  .pull { border-left: 0; } 
  .is-final .about::before, html:not(.js) .about::before { display: none; }
}
.credits-state { display: grid; justify-items: center; gap: 10px; text-align: center; }
.credits-state .mark { width: max(76px, 4.2rem); color: var(--ink); margin-bottom: 22px; }
.credits-state .name { font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 2.6vw, 2rem); letter-spacing: 0.01em; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(thread), ::view-transition-group(symbol-tm), ::view-transition-group(wordmark-tm), ::view-transition-group(symbol-bl), ::view-transition-group(wordmark-bl), ::view-transition-group(care) { animation-duration: 360ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

html[data-motion="reduce"]::view-transition-old(root), html[data-motion="reduce"]::view-transition-new(root), html[data-motion="reduce"]::view-transition-group(*) { animation: none; }


.hypothesis { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.375rem); line-height: 1.18; max-width: 26ch; }
.small-note { font-size: 0.875rem; color: var(--mid); font-style: italic; }

.about h2 { font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--mid); }
.credits { padding: 10vh var(--gutter-r) 18vh var(--gutter); display: grid; gap: 10px; justify-items: start; }
.credits .mark { width: 44px; color: var(--ink); margin-bottom: 20px; }
.credits .name { font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 2.6vw, 2rem); letter-spacing: 0.01em; }
.gap { font-family: var(--display); font-size: 0.875rem; border-color: var(--mid); color: var(--mid); opacity: 1; }
.gap b { color: var(--ink); font-weight: 500; }


.thread-rule { position: fixed; top: 0; bottom: 0; left: 50%; width: 1.2px; margin-left: -0.6px; background: var(--ink); z-index: 1; pointer-events: none; view-transition-name: thread; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px var(--gutter-r) 20px var(--gutter); position: relative; z-index: 3; }
.top .mark { width: 28px; color: var(--ink); }
.crumb { font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--mid); }
.chapter-card { min-height: 78svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 6vh var(--edge-r) 10vh var(--edge); } 
.card-left { display: grid; gap: 22px; padding-right: 24px; min-width: 0; }
.card-right { display: grid; gap: 22px; padding-left: 24px; min-width: 0; }
.chapter-card .chapter-symbol { width: clamp(110px, 16vw, 170px); height: auto; aspect-ratio: 1; margin-bottom: 10px; overflow: visible; }
.chapter-card .chapter-symbol[data-symbol="bl"] { view-transition-name: symbol-bl; }

.chapter-card .lockup--bl { font-size: clamp(48px, min(6.2vw, 8.4svh), 130px); margin-bottom: 4px; } 
.chapter-card .chapter-symbol.brand-bl { width: auto; height: 0.74em; aspect-ratio: 40 / 32; margin: 0; }
.chapter-card .lockup--bl h1 { font: inherit; letter-spacing: inherit; line-height: 1; }

.card-build { min-height: 100svh; padding: 0; display: block; }
.top--over { position: absolute; top: 0; left: 0; right: 0; }
.card-build .card-stage { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-content: center; align-items: center; padding: max(6vh, 88px) var(--edge-r) max(4vh, 56px) var(--edge); }
.card-build .card-left, .card-build .card-right { gap: clamp(12px, 2.6svh, 22px); }

.card-build .lockup { --wh: clamp(40px, min(5.2vw, 7svh), 100px); font-size: var(--wh); margin-bottom: 4px; } 
.mango-box { position: relative; height: 0.875em; aspect-ratio: 360 / 409; margin: -0.089em 0 0; }
.card-build .intro { font-size: clamp(0.9375rem, 2.3svh, 1.0625rem); }
.card-build .tag { font-size: clamp(1.0625rem, 2.6svh, 1.5rem); }
.mango-box > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; margin: 0; }
.mango-box .brand-mango { view-transition-name: symbol-tm; } 
.card-build .brand-mango [data-layer] { fill-opacity: 1; }
.card-build .brand-word { view-transition-name: wordmark-tm; }
.card-build .brand-word path { fill-opacity: 1; }
.lockup .wordmark { font-size: inherit; line-height: 0; margin: 0; } 
.brand-word path { fill: var(--ink); fill-opacity: var(--wf, 0); } 
.brand-care { height: clamp(22px, 2.4vw, 30px); width: auto; overflow: visible; view-transition-name: care; } 

.brand-care .care-trace { fill: none; stroke: var(--ink); stroke-width: 16.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); opacity: calc(1 - var(--wf, 0)); }
.brand-care .care-mark { fill-opacity: var(--wf, 0); stroke: none; }
.brand-care .care-word { fill: var(--ink); fill-opacity: var(--wf, 0); stroke: none; }
.sub { display: grid; grid-template-columns: auto minmax(0, 34ch); align-items: center; gap: 24px; margin-top: clamp(4px, 1.4svh, 12px); }
.sub .gap { margin: 0; font-size: 0.8125rem; padding: 0.7em 0.9em; }
.sub .care-link { display: inline-flex; line-height: 0; color: inherit; border-radius: 2px; } 
.sub .care-link:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }

.is-final .card-build .card-stage, html:not(.js) .card-build .card-stage { position: static; }

.is-final .brand-word path, html:not(.js) .brand-word path { fill-opacity: 1; }
.is-final .brand-care .care-mark, .is-final .brand-care .care-word, html:not(.js) .brand-care .care-mark, html:not(.js) .brand-care .care-word { fill-opacity: 1; }
.is-final .brand-care .care-trace, html:not(.js) .brand-care .care-trace { display: none; }
.is-final .brand-mango [data-layer], html:not(.js) .brand-mango [data-layer] { fill-opacity: 1; }
@media (max-width: 899px) { .sub { grid-template-columns: 1fr; } }
.chapter-card h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.02; }
.chapter-card .tag { font-style: italic; font-size: clamp(1.125rem, 1.8vw, 1.5rem); color: var(--mid); }
.fine { font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.03em; line-height: 1.5; color: var(--mid); opacity: 1; } 
.fine span { display: block; } 
.chapter-card .intro { max-width: 56ch; display: grid; gap: 14px; }

.more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; max-width: none; align-items: start; }
.more h2 { grid-column: 1; padding-right: 24px; }
.more .planned-list { grid-column: 2; padding-left: 24px; }
.next-chapter, .credits { max-width: calc(50vw - 24px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.scene { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter) 0 var(--edge); }
.scene svg { width: min(50vw - var(--edge) - var(--gutter) - 8px, 72svh, clamp(560px, 560px + (100vw - 1440px) * 0.25, 820px)); overflow: visible; } 
.prose { padding: 8vh var(--gutter-r) 16vh 24px; max-width: 60ch; display: grid; gap: 22px; }
.prose h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; }
.deck { font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--mid); }
.stamp { font-family: var(--display); font-size: 0.8125rem; color: var(--mid); letter-spacing: 0.03em; }
.cs-section { display: grid; gap: 20px; padding-block: 10vh; }
.cs-section h2 { font-size: 1.125rem; font-weight: 500; letter-spacing: 0.02em; padding-top: 14px; border-top: 0.5px solid var(--rule); }
.cs-closing { font-style: italic; font-size: 1.375rem; padding-bottom: 10vh; }
@media (max-width: 899px) {
  .thread-rule { display: none; } 
  .chapter-card, .card-build .card-stage, .more { grid-template-columns: 1fr; }
  .card-left, .card-right, .more h2, .more .planned-list { grid-column: auto; padding-left: 0; padding-right: 0; }
  .next-chapter, .credits { max-width: none; }
  .story { display: block; }
  .scene { height: 44svh; background: var(--paper); z-index: 2; padding: 0 var(--gutter); box-shadow: 0 0.5px 0 var(--rule); }
  .scene svg { width: min(86vw, 40svh); }
  .prose { padding: 6vh var(--gutter-r) 12vh var(--gutter); }
  .cs-section { padding-block: 6vh; }
}

.sc { font-family: var(--display); }
.sc text { fill: var(--ink); font-size: 15px; }
.sc .n { fill: var(--graphite); font-size: 12.5px; }
.sc .box { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.sc .con { fill: none; stroke: var(--blue); stroke-width: 0.9; }
.sc .strike { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc .caret { fill: var(--ink); }
html:not(.is-final) .sc .caret { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.sc g[data-s] { opacity: 0; transition: opacity 480ms var(--ease), transform 600ms var(--ease); }
.sc g[data-s] * { transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.scene[data-scene="0"] g[data-s="0"], .scene[data-scene="1"] g[data-s="1"], .scene[data-scene="2"] g[data-s="2"], .scene[data-scene="3"] g[data-s="3"], .scene[data-scene="4"] g[data-s="4"], .scene[data-scene="5"] g[data-s="5"] { opacity: 1; }
.sc .late { opacity: 0; } .sc .shown .late, .sc [data-on] .late { opacity: 1; }
.sc .ring { fill: none; stroke: var(--ink); stroke-width: 14; transform-box: fill-box; transform-origin: center; }
html:not(.is-final) .scene[data-scene="4"] .breathe { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }
.sc .card { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.demo { display: grid; gap: 12px; padding: 22px 0 18px; border-top: 0.5px solid var(--ink); border-bottom: 0.5px solid var(--ink); font-family: var(--display); }
.demo label { font-size: 0.8125rem; color: var(--mid); letter-spacing: 0.03em; }
.demo input { font: inherit; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); background: transparent; border: 0; border-bottom: 0.5px solid var(--rule); padding: 6px 0; width: 100%; border-radius: 0; }
.demo input:focus { outline: none; border-bottom-color: var(--ink); }
.demo .verdict { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; min-height: 1.5em; }
.demo .verdict b { font-weight: 500; }
.demo .tries { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; color: var(--mid); }
.demo .tries button { color: var(--mid); border-bottom: 0.5px solid var(--rule); padding-bottom: 2px; }
.demo .tries button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.more { padding: 6vh var(--edge-r) 10vh var(--edge); }
.more h2 { font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--mid); }
.planned-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.planned-list li { display: grid; gap: 4px; padding: 14px 16px; border: 0.5px dashed var(--pencil); }
.planned-list b { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; }
.planned-list p { font-size: 0.9375rem; color: var(--mid); font-style: italic; }
.planned-list small { font-family: var(--display); font-size: 0.75rem; color: var(--mid); letter-spacing: 0.03em; }
.next-chapter { padding: 4vh var(--gutter-r) 8vh var(--gutter); font-family: var(--display); font-size: 0.9375rem; letter-spacing: 0.02em; display: grid; gap: 8px; }
.next-chapter a { border-bottom: 0.5px solid var(--ink); width: max-content; padding-bottom: 2px; }
.cap { opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s linear 400ms; } 
.scene[data-scene="0"] [data-cap="0"], .scene[data-scene="1"] [data-cap="1"], .scene[data-scene="2"] [data-cap="2"], .scene[data-scene="3"] [data-cap="3"], .scene[data-scene="4"] [data-cap="4"], .scene[data-scene="5"] [data-cap="5"] { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease), visibility 0s; }

.decision h2 { font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.005em; border-top: 0; padding-top: 0; }
.decision p { font-family: var(--serif); font-size: 1rem; font-style: normal; color: var(--ink); }

.more--built { grid-template-rows: auto 1fr; } 
.more .built-list { grid-column: 2; grid-row: 1 / span 2; padding-left: 24px; padding-right: 0; grid-template-columns: 1fr; }
.built-list p { font-style: normal; color: var(--graphite); }

.learned-body { grid-column: 2; padding-left: 24px; max-width: 56ch; display: grid; gap: 14px; }
.credits-line { font-family: var(--display); font-size: 0.875rem; letter-spacing: 0.02em; color: var(--mid); }
@media (max-width: 899px) { 
  .chapter-card { gap: 28px; } 
  .more--built { grid-template-rows: none; }
  .more--built .shot-figure, .more .built-list, .learned-body { grid-column: auto; grid-row: auto; padding: 0; max-width: none; }
}
