body.reader-open { overflow: hidden; }
.site-header { position: relative; height: 78px; color: var(--menu); background: var(--paper); }
.site-header .brand img,.reader-header .brand img { filter: none; width: auto; height: 54px; display: block; }
.chapter-experience { padding: clamp(34px,4.2vw,64px) 3vw 110px; background: var(--paper); }
.chapter-intro { padding: 0 0 54px; display: grid; grid-template-columns: .25fr 1.55fr .5fr; gap: 3vw; align-items: end; }
.chapter-intro h2 { margin: 0; font: 400 clamp(3rem,4.6vw,6rem)/.92 var(--serif); letter-spacing: -.045em; }
.chapter-intro h2 em { color: #6d906f; font-style: normal; display: inline-block; white-space: nowrap; }
.chapter-instruction { margin: 0; color: var(--muted); font-size: .88rem; }
.chapter-index { position: relative; }
.chapter-tabs { height: min(50vh,510px); min-height: 390px; display: flex; gap: 9px; }
.chapter-card { isolation: isolate; flex: .72; min-width: 0; border: 0; border-radius: 5px; overflow: hidden; position: relative; padding: 22px 18px; cursor: pointer; color: var(--ink); background: #d9d8ca; text-align: left; transition: flex .72s cubic-bezier(.2,.75,.2,1),transform .35s ease,filter .35s ease; }
.chapter-card:hover,.chapter-card:focus-visible { flex: 2.2; transform: translateY(-7px); }
.chapter-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .32; filter: saturate(.75); transition: opacity .5s ease,transform .8s ease; }
.chapter-card:hover img,.chapter-card:focus-visible img { opacity: .7; transform: scale(1.025); }
.chapter-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(13,38,41,.04),rgba(13,38,41,.8)); opacity: 0; transition: opacity .35s ease; }
.chapter-card.image-card::after { opacity: .72; }
.dark-card { background: var(--ink); }.accent-card { background: var(--accent); }
.card-number,.card-label,.card-headline,.card-indicator { position: absolute; z-index: 2; }
.card-number { top: 19px; left: 18px; font-size: .68rem; letter-spacing: .12em; font-weight: 600; }
.card-label { left: 50%; bottom: 58px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: .78rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; transition: opacity .25s ease,transform .45s ease; }
.card-headline { left: 28px; right: 28px; bottom: 60px; max-width: 700px; font: 400 clamp(2.1rem,3.4vw,4.4rem)/.98 var(--serif); letter-spacing: -.035em; opacity: 0; transform: translateY(18px); transition: opacity .38s ease .08s,transform .5s cubic-bezier(.2,.75,.2,1) .05s; }
.card-indicator { top: 14px; right: 15px; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; transition: transform .4s ease,background .3s ease; }
.chapter-card:hover .card-label,.chapter-card:focus-visible .card-label { opacity: 0; }
.chapter-card:hover .card-headline,.chapter-card:focus-visible .card-headline { opacity: 1; transform: none; }
.chapter-card:hover .card-indicator,.chapter-card:focus-visible .card-indicator { transform: rotate(45deg); background: rgba(255,255,255,.16); }
.image-card,.dark-card { color: #fff; }
.skip-chapters { display: block; width: max-content; margin: 28px 0 0 auto; border-bottom: 1px solid; padding-bottom: 4px; font-size: .84rem; }
.chapter-reader { position: fixed; inset: 0; z-index: 1000; background: var(--paper); color: var(--ink); display: grid; grid-template-rows: 78px 1fr 54px; }
.chapter-reader[hidden] { display: none; }
.reader-header,.reader-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(248,250,248,.96); }
.reader-footer { border-top: 1px solid var(--line); border-bottom: 0; font-size: .72rem; color: var(--muted); }
.reader-next { border: 0; background: none; padding: 8px 0; cursor: pointer; width: max-content; }
.reader-title { font-weight: 600; font-size: .82rem; }
.reader-viewport { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; outline: none; }.reader-viewport::-webkit-scrollbar { display: none; }
.reader-track { display: flex; height: 100%; width: max-content; }
.reader-panel { width: 100vw; height: 100%; flex: 0 0 100vw; overflow: hidden; padding: clamp(35px,5vw,76px); display: flex; align-items: center; background: var(--paper); }
.panel-copy { max-width: 900px; }.panel-kicker { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; color: var(--teal); margin-bottom: 24px; }
.reader-panel h2 { margin: 0; font: 400 clamp(3.1rem,6.3vw,7.6rem)/.91 var(--serif); letter-spacing: -.045em; }.reader-panel h2 em { color: #547966; font-style: normal; }
.reader-panel p { max-width: 700px; color: var(--muted); font-size: clamp(1rem,1.3vw,1.25rem); }
.panel-question { background: var(--ink); color: #fff; }.panel-question .panel-kicker { color: var(--accent); }.panel-question p { color: #cad7d2; }
.panel-split,.panel-product { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5vw; }.panel-split figure { margin: 0; height: 100%; min-height: 0; }
.panel-split figure img,.panel-product>img { width: 100%; height: 100%; max-height: 72vh; object-fit: cover; display: block; }.panel-split figcaption { font-size: .72rem; color: var(--muted); margin-top: 9px; }.panel-product>img { object-fit: contain; }
.panel-problem,.panel-heritage,.panel-brief { background: var(--paper); }
.inline-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 38px; }
.inline-values span { border-top: 1px solid var(--line); padding-top: 12px; font-size: .75rem; color: var(--muted); }
.panel-benefits { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; }.panel-benefits>h2 { font-size: clamp(3rem,5.4vw,6.5rem); }.panel-benefits>div { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }.panel-benefits section { border-top: 1px solid var(--line); padding-top: 20px; }.panel-benefits h3 { margin: 0 0 12px; font-size: 1.25rem; }.panel-benefits p { font-size: .95rem; }
.panel-contact { flex-direction: column; align-items: flex-start; justify-content: center; background: var(--ink); color: #fff; }.panel-contact .panel-kicker { color: var(--accent); }.panel-contact a { color: #fff; margin-top: 20px; text-decoration: underline; text-underline-offset: 5px; }
@media(max-width:900px){.chapter-intro{grid-template-columns:1fr}.chapter-intro h2 em{white-space:normal}.chapter-tabs{height:430px;overflow-x:auto;scroll-snap-type:x mandatory}.chapter-card{min-width:16vw}.chapter-card:hover,.chapter-card:focus-visible{min-width:60vw}.panel-split,.panel-product,.panel-benefits{grid-template-columns:1fr}.panel-workspace{grid-template-columns:1fr}.reader-panel{overflow-y:auto}.panel-values>div{grid-template-columns:1fr}.reader-footer>span:nth-child(2){display:none}}

.panel-medium { background: var(--mist); }
/* Support-team photo: fills the height, cropped from the left (the monitor side) so the three people stay in frame. */
.panel-medium figure img { height: 72vh; object-fit: cover; object-position: 100% 50%; }
@media(max-width:600px){.site-header{height:76px}.chapter-experience{padding:70px 5vw}.chapter-tabs{height:360px}.chapter-card{min-width:17vw}.chapter-card:hover,.chapter-card:focus-visible{min-width:70vw}.card-headline{font-size:2rem}.reader-header,.reader-footer{padding:0 14px}.reader-title{display:none}.reader-panel{padding:28px 22px}.reader-panel h2{font-size:2.8rem}.panel-split figure{height:44vh}.panel-benefits>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.chapter-card,.chapter-card img,.card-label,.card-headline,.card-indicator{transition:none}.reader-viewport{overflow-x:hidden;overflow-y:auto}.reader-track{display:block;width:100%;height:auto}.reader-panel{width:100%;height:auto;min-height:100vh;overflow:visible}}

/* ---- Top bar: light, logo in real colours, green menu letters. Shared by the site and the chapter view. ---- */
:root { --menu: #547966; }
.reader-header { padding: 0 3vw; color: var(--menu); }
.reader-exit { justify-self: end; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); padding: 9px 16px; font-size: .8rem; font-weight: 600; cursor: pointer; }

/* ---- Travelling scroll. --p is set by script.js for every scene: 1 = one screen to the right, 0 = centred, -1 = one screen to the left.
        Text and pictures use it in opposite directions, so they slide at different speeds. PARALLAX is the distance at p = 1. ---- */
.reader-panel { --parallax: 70px; }
.reader-panel .panel-copy,.reader-panel .workspace-heading,.panel-benefits>h2,.panel-contact>* { transform: translateX(calc(var(--p,0) * var(--parallax))); }
.reader-panel figure,.reader-panel>img,.solution-values,.panel-benefits>div,.reader-panel .workspace { transform: translateX(calc(var(--p,0) * var(--parallax) * -1)); }
.panel-split figure img { clip-path: polygon(7% 0,100% 0,93% 100%,0 100%); }

/* ---- Solution opener with the three values ---- */
.solution-values { list-style: none; margin: 0; padding: 0; }
.solution-values li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: center; border-top: 1px solid #ffffff33; padding: 20px 0; font: 400 clamp(1.15rem,1.5vw,1.8rem)/1.15 var(--serif); }
.solution-values li:last-child { border-bottom: 1px solid #ffffff33; }
.solution-values svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.reader-panel .panel-next-line { margin: 30px 0 0; color: var(--menu); font: 400 clamp(1.7rem,2.6vw,3rem)/1.05 var(--serif); letter-spacing: -.02em; }
.panel-medium h2 { font-size: clamp(2.6rem,4.3vw,5.2rem); line-height: 1.04; }
.reader-nav { justify-self: end; display: flex; gap: 28px; }
.reader-prev { border: 0; background: none; padding: 8px 0; cursor: pointer; }
.reader-prev:disabled { opacity: .35; cursor: default; }
@media(min-width:901px){.panel-solution{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:4vw}.panel-solution h2{font-size:clamp(2.6rem,4.4vw,5.4rem)}.panel-medium{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
@media(max-width:900px){.reader-header nav{display:none}.reader-header{grid-template-columns:1fr auto}.panel-solution{flex-direction:column;align-items:flex-start;justify-content:center;gap:28px}.reader-panel{--parallax:0px}}
@media(hover:none){.reader-viewport{scroll-snap-type:x mandatory}.reader-panel{scroll-snap-align:start}}
@media(prefers-reduced-motion:reduce){.reader-viewport{scroll-snap-type:none}}
/* Rushes slide: bigger screenshot. It fills the height, is cropped from the left (object-position keeps the right side), and gets the same slant as the photos. */
.panel-rushes>img { height: 72vh; object-fit: cover; object-position: 100% 50%; clip-path: polygon(7% 0,100% 0,93% 100%,0 100%); }
/* ---- Chapter door: sits at the left of each chapter's opening scene. --door is its width: DOOR_THIN while the scene is one screen away (p = 1),
        growing to DOOR_THIN + DOOR_GROW once the scene is centred (p = 0). The text keeps a fixed place beside the door's full width, so its lines never re-wrap while the door grows. ---- */
.has-door { position: relative; --door-thin: 8vw; --door-grow: 16vw; --door: calc(var(--door-thin) + var(--door-grow) * (1 - max(0, var(--p,0)))); padding-left: calc(var(--door-thin) + var(--door-grow) + clamp(35px,5vw,76px)); }
.has-door h2 { font-size: clamp(2.8rem,5.2vw,6.4rem); }
.chapter-door { position: absolute; inset: 0 auto 0 0; width: var(--door); overflow: hidden; background: #d9d8ca; color: var(--ink); border-right: 1px solid #ffffff1f; }
.chapter-door.dark-card { background: #0c2023; color: #fff; }
.chapter-door.accent-card { background: var(--accent); }
.chapter-door.image-card { background: #0c2023; color: #fff; }
.chapter-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.75); }
.door-number { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); font: 400 clamp(6rem,15vw,17rem)/1 var(--serif); letter-spacing: -.05em; }
.door-label { position: absolute; left: 50%; bottom: 34px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: .78rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
@media(max-width:900px){.has-door{padding-left:22px}.chapter-door{display:none}}
/* ---- StoryTown workspace viewer. One component, used on the main page (light) and in the chapter slide (dark); colours are inherited. ---- */
.workspace { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: center; }
.workspace-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.workspace-tabs button { border: 0; border-radius: 4px; background: transparent; color: inherit; opacity: .65; padding: 10px 14px; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.workspace-tabs button:hover { opacity: 1; }
.workspace-tabs button.is-active { opacity: 1; background: var(--accent); color: var(--ink); font-weight: 600; }
/* Fixed shape (the screenshots' own proportions) so the box does not jump when the tab changes. */
.workspace-media { display: block; position: relative; width: 100%; aspect-ratio: 1800/951; overflow: hidden; border-radius: 8px; background: #0b1018; box-shadow: 0 25px 80px #132c3033; }
.workspace-media>img { width: 100%; height: 100%; object-fit: contain; display: block; }
.workspace .workspace-caption { margin: 0; max-width: none; color: inherit; opacity: .8; font-size: .9rem; }
.panel-workspace { display: grid; grid-template-columns: 30% minmax(0,1fr); gap: 35px; align-items: center; background: #101319; color: #fff; }
.panel-workspace .workspace-media { width: min(100%,104vh); }
.workspace-heading h2 { font-size: clamp(2.8rem,4.8vw,5.8rem); }
@media(min-width:901px){.storytown{grid-template-columns:.78fr 1.22fr}}
/* Production tab: two screenshots, split by a draggable diagonal line. --split = where the line is; --lean = how far it tilts. */
@property --split { syntax: '<percentage>'; inherits: true; initial-value: 40%; }
.production-split { --split: 40%; --lean: 9%; position: absolute; inset: 0; display: block; animation: split-nudge 1.4s ease .5s 1; }
.production-split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.split-canvas { clip-path: polygon(0 0,calc(var(--split) + var(--lean)) 0,calc(var(--split) - var(--lean)) 100%,0 100%); }
.split-line { position: absolute; inset: 0; background: var(--accent); pointer-events: none; clip-path: polygon(calc(var(--split) + var(--lean) - 1.5px) 0,calc(var(--split) + var(--lean) + 1.5px) 0,calc(var(--split) - var(--lean) + 1.5px) 100%,calc(var(--split) - var(--lean) - 1.5px) 100%); }
/* The grab area is a wide invisible band along the line, so the line can be grabbed anywhere along its length. */
.split-handle { position: absolute; inset: 0; cursor: ew-resize; touch-action: none; outline: none; clip-path: polygon(calc(var(--split) + var(--lean) - 24px) 0,calc(var(--split) + var(--lean) + 24px) 0,calc(var(--split) - var(--lean) + 24px) 100%,calc(var(--split) - var(--lean) - 24px) 100%); }
.split-knob { position: absolute; left: var(--split); top: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: .95rem; font-weight: 700; pointer-events: none; box-shadow: 0 4px 18px #0008; }
.split-handle:focus-visible + .split-knob { outline: 3px solid #fff; outline-offset: 3px; }
.production-split b { position: absolute; bottom: 16px; padding: 8px 12px; background: #102b2ee8; border: 1px solid #d1e39e66; color: #fff; font-size: .74rem; pointer-events: none; }
.production-split b:first-of-type { left: 16px; }.production-split b:last-of-type { right: 16px; }
/* Small wiggle when the tab opens, so people see the line can move. Starts and ends on the default position above. */
@keyframes split-nudge { 0%,100% { --split: 40%; } 40% { --split: 48%; } 70% { --split: 36%; } }
/* ---- Dark slides arrive with a slanted leading edge, parallel to the slanted photos, and straighten as they settle.
        --edge-lean is the slant as a share of the slide's height (the photos lean about this much).
        The slant stays full until the slide is 40% of a screen away (the 2.5 below), then eases to straight. ---- */
.panel-question,.panel-workspace,.panel-contact { --edge-lean: .075; clip-path: polygon(calc((100vh - 132px) * var(--edge-lean) * min(1, max(0, var(--p,0)) * 2.5)) 0,100% 0,100% 100%,0 100%); }
/* A dark slide that follows another dark slide keeps a straight edge; a slant there would show a light wedge between them. */
:is(.panel-question,.panel-workspace,.panel-contact) + :is(.panel-question,.panel-workspace,.panel-contact) { clip-path: none; }
/* Heritage photo: keep the left of the picture (the man) and crop the monitor on the right. 0% = far left, 50% = centred. */
.panel-heritage figure img { object-position: 8% 50%; }
/* ---- Product names written in each product's own lettering. Wrap the word: <span class="brand-rushes">Rushes</span> / <span class="brand-storytown">StoryTown</span>.
        Rushes: the real mark and lettering from the Rushes site (Inter, weight 760, tight spacing).
        StoryTown: bold serif in the app's orange-gold with a light sweeping across it. This one is still matched by eye from screenshots. ---- */
.brand-rushes { font-family: Inter,var(--sans); font-weight: 760; letter-spacing: -.04em; color: var(--rushes-word); white-space: nowrap; }
/* The Rushes mark, taken from the Rushes site (x0on.github.io/rushes/assets/logo.svg) and embedded here so no extra file is needed.
   It is used as a mask, so it takes the colour of the word next to it, the way the Rushes site whitens it on dark. */
.brand-rushes::before { content: ''; display: inline-block; width: 1.05em; height: 1.15em; margin-right: .26em; vertical-align: -.24em; background: var(--rushes-mark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 336 368'%3E%3Cpath d='M43 91 Q27 85 27 104 V269 Q27 280 38 286 L116 329 Q132 338 132 319 V145 Q132 129 118 123 Z'/%3E%3Cpath d='M84 67 Q68 61 68 79 V89 L139 117 Q155 124 155 143 V286 L165 291 Q181 300 181 280 V121 Q181 102 164 96 Z'/%3E%3Cpath d='M130 44 Q114 38 114 56 V65 L184 92 Q204 100 204 121 V225 H224 C277 225 304 194 304 155 C304 122 285 100 249 88 Z'/%3E%3Cpath d='M204 247 V324 Q204 329 209 329 H281 Q291 329 284 321 L215 247 Q204 236 204 247 Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 336 368'%3E%3Cpath d='M43 91 Q27 85 27 104 V269 Q27 280 38 286 L116 329 Q132 338 132 319 V145 Q132 129 118 123 Z'/%3E%3Cpath d='M84 67 Q68 61 68 79 V89 L139 117 Q155 124 155 143 V286 L165 291 Q181 300 181 280 V121 Q181 102 164 96 Z'/%3E%3Cpath d='M130 44 Q114 38 114 56 V65 L184 92 Q204 100 204 121 V225 H224 C277 225 304 194 304 155 C304 122 285 100 249 88 Z'/%3E%3Cpath d='M204 247 V324 Q204 329 209 329 H281 Q291 329 284 321 L215 247 Q204 236 204 247 Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.brand-storytown { font-family: Georgia,'Times New Roman',serif; font-weight: 700; white-space: nowrap; color: var(--st-base); background: linear-gradient(100deg,var(--st-base) 0%,var(--st-mid) 42%,var(--st-light) 50%,var(--st-mid) 58%,var(--st-base) 100%) 0 0/250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: brand-shimmer 3.2s linear infinite; }
@keyframes brand-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
/* Inside the small capital labels above headlines, a product name keeps its own lettering: mixed case, no wide spacing, a little larger. */
:is(.panel-kicker,.kicker,.product-index) :is(.brand-storytown,.brand-rushes) { text-transform: none; letter-spacing: 0; font-size: 1.7em; margin-right: .25em; vertical-align: -.08em; }
/* Trademark colours. On light backgrounds: the Rushes mark in its own teal with the word in the site's dark ink, StoryTown in a deeper orange so it stays readable.
   On dark backgrounds: the Rushes mark and word in white (as on the Rushes site), StoryTown in its bright orange-gold. */
:root { --rushes-mark: #007F78; --rushes-word: var(--ink); --st-base: #b8641a; --st-mid: #d98526; --st-light: #f3b65a; }
.panel-question,.panel-workspace,.panel-contact,.support,.chapter-card.dark-card,.chapter-card.image-card { --rushes-mark: #fff; --rushes-word: #fff; --st-base: #e08a2e; --st-mid: #f3b65a; --st-light: #fff1c2; }
/* "StoryTown WORKSPACE" label: the capitals are raised to the height of the StoryTown name beside them. */
.workspace-heading .panel-kicker { font-size: 1.12rem; letter-spacing: .1em; }
.workspace-heading .panel-kicker .brand-storytown { font-size: 1.08em; vertical-align: 0; }
/* Performance: tell the browser these layers move, so it slides them on the graphics card instead of redrawing them every frame. */
.reader-panel .panel-copy,.reader-panel .workspace-heading,.panel-benefits>h2,.reader-panel figure,.reader-panel>img,.solution-values,.panel-benefits>div,.reader-panel .workspace { will-change: transform; }
/* ---- Content restored from the original site ---- */
.site-link { display: inline-block; width: max-content; margin-top: 26px; border-bottom: 1px solid currentColor; padding-bottom: 5px; font-size: .95rem; }
.reader-panel .panel-small { margin-top: 22px; font-size: .72rem; opacity: .7; }
.mail-note { display: block; margin-top: 10px; font-size: .78rem; opacity: .75; }
.proposal-data { max-width: 650px; margin-top: 70px; border-top: 1px solid #132c3050; padding-top: 22px; }
.proposal-data h3 { margin: 0 0 10px; font-size: 1.05rem; }
.proposal-data p { margin: 0; font-size: .98rem; }
.proposal-footer { margin-top: 70px; }
.panel-support>div { grid-template-columns: 1fr; gap: 24px; }
footer span { text-align: center; }
/* Data slide photo: shifted right so the storage unit stays in frame. */
.panel-data figure img { object-position: 85% 50%; }
/* Trademarks inside a big serif headline. The two names use heavier fonts with taller lowercase letters than the headline serif,
   so at the same size they look much bigger. These factors bring their lowercase letters level with the headline's. */
h2 .brand-rushes { font-size: .7em; letter-spacing: -.04em; }
h2 .brand-storytown { font-size: .78em; letter-spacing: -.01em; }
/* Support slide: even columns and a slightly smaller headline, so it reads in three clean lines. */
@media(min-width:901px){.panel-support{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5vw}}
.panel-benefits.panel-support>h2 { font-size: clamp(2.4rem,3.9vw,4.8rem); line-height: 1.04; }
/* ---- Phones ---- */
/* The StoryTown workspace slide: heading on top, viewer underneath (the two-column layout above is for wide screens). */
@media(max-width:900px){.panel-workspace{grid-template-columns:minmax(0,1fr);align-content:center;gap:18px}.workspace-heading h2{font-size:2.1rem}.panel-workspace .workspace-media{width:100%}}
/* Home page chapter cards: there is no hover on a phone, so the five cards become a simple list of wide buttons. */
@media(max-width:600px){
  .chapter-tabs{flex-direction:column;height:auto;min-height:0;overflow:visible;gap:8px}
  .chapter-card,.chapter-card:hover,.chapter-card:focus-visible{flex:none;min-width:0;height:84px;transform:none}
  .chapter-card .card-number{top:50%;transform:translateY(-50%)}
  .chapter-card .card-label,.chapter-card:hover .card-label,.chapter-card:focus-visible .card-label{writing-mode:horizontal-tb;left:62px;top:50%;bottom:auto;transform:translateY(-50%);opacity:1;font-size:.98rem}
  .chapter-card .card-headline{display:none}
  .chapter-card .card-indicator,.chapter-card:hover .card-indicator,.chapter-card:focus-visible .card-indicator{top:50%;right:16px;transform:translateY(-50%)}
}
@media(max-width:900px){.panel-medium{grid-template-columns:minmax(0,1fr);align-content:center;gap:18px}.panel-medium figure{height:auto;min-height:0}.panel-medium figure img{height:26vh}.panel-medium h2{font-size:2rem}}
/* Phones: the top and bottom bars float over the slide and slide away when the reader has the class "bars-hidden" (set in script.js).
   Two small arrows and a thin progress line stay on screen while the bars are hidden. */
.reader-arrow,.reader-line{display:none}
@media(max-width:600px),(pointer:coarse) and (max-height:500px){
  .chapter-reader{grid-template-rows:1fr}
  .reader-header,.reader-footer{position:absolute;left:0;right:0;z-index:3;transition:transform .3s ease}
  .reader-header{top:0;height:78px}
  .reader-footer{bottom:0;height:54px}
  .bars-hidden .reader-header{transform:translateY(-100%)}
  .bars-hidden .reader-footer{transform:translateY(100%)}
  .reader-line{display:block;position:absolute;left:0;right:0;bottom:0;height:3px;z-index:4;background:rgba(0,0,0,.08)}
  .reader-line i{display:block;height:100%;background:var(--accent);transform-origin:left;transform:scaleX(var(--done,0));transition:transform .3s}
  .reader-arrow{display:grid;place-items:center;position:absolute;bottom:14px;z-index:2;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:rgba(20,30,28,.55);color:#fff;font-size:1rem;opacity:0;pointer-events:none;transition:opacity .3s}
  .reader-arrow.prev{left:12px}
  .reader-arrow.next{right:12px}
  .bars-hidden .reader-arrow{opacity:1;pointer-events:auto}
  .bars-hidden .reader-arrow:disabled{opacity:.2}
}
