/* ---- review/review.css ---- */
/* v15 review layer. Editing overlay = the house Lab panel (site.css .lab); the GPT review bar was retired 2026-10-03. */
:root{--review-height:0px}   /* kept at 0: v15.css offsets still read it */
html{scroll-padding-top:170px}
.voice-review-page .hero .lead{max-width:34rem}
.voice-review-page #make .h2{max-width:19ch}
.voice-review-page #why .h2{max-width:24ch}
.voice-review-page #routine .h2{max-width:22ch}
.voice-review-page .mk-ai{max-width:64rem}
.voice-character{padding:100px 0}

.voice-character .eyebrow{margin-bottom:20px}.voice-character .lead{font-size:1.1rem;line-height:1.65;margin:22px 0}.voice-character .h2{font-size:clamp(2rem,3.2vw,3.4rem)}
.voice-word-demo{font-size:1.65rem!important;line-height:1.25;max-width:12ch;display:block}

@media(max-width:819px){.voice-character{padding:60px 0}.voice-review-page .hero .h1{font-size:clamp(2.1rem,8.5vw,3.4rem)}html{scroll-padding-top:210px}}

@media(min-width:820px){.voice-review-page .hero--story .hero-copy{padding-top:100px;padding-bottom:45px}.voice-review-page .hero--story{min-height:max(680px,calc(100svh - var(--review-height)));align-items:start}.voice-review-page .hero--story .hero-copy>.h1{max-width:min(38rem,46vw);font-size:clamp(2.7rem,4.4vw,4rem)}}

/* Six-comment review: keep the Library tag readable with either highlight state. */
.voice-review-page .p4-card--lib .p4-tag{color:#fff3dc;background:#493921}
.voice-proposed #m4-fixed,.voice-proposed .m4-draft-k .m4-arrow{display:none}
.voice-proposed .m4-draft-k{display:flex;flex-wrap:wrap;gap:6px 12px}
.voice-proposed #m4-lines{white-space:normal}

/* "v15 edits" highlight (Lab select or ?highlights): same marks as the v14 lab highlight. */

/* Lab panel fit: selects stay inside the 190px panel; the title folds the panel (folded by default on phones). */
.lab select{min-width:0;width:100%;text-overflow:ellipsis}

/* ---- v15.css ---- */
/* V15 founder revision: world gallery and character composition only.
   Creation, keepsakes, music, research, controls and method use original CSS/JS. */
.v15-page .v15-nav{display:flex;gap:24px;align-items:center;margin-left:auto;margin-right:28px}
.v15-nav a{color:var(--ink-title);font-weight:800;text-decoration:none;padding:12px 0;font-size:14px}
.v15-nav a:hover{color:var(--cta)}
.v15-page .chapter-now{display:none!important}
.v15-page :is(button,a,summary):focus-visible{outline:3px solid #ffd178;outline-offset:5px}
.v15-page #overview{padding:28px 0 20px}
.v15-page #overview .sec-head{display:none}
.v15-page .ov14-rows{margin-top:0}
.v15-page .ov14-rows a{padding:24px 18px}
.v15-page .ov14-rows .ov14-t>span{display:none}
.v15-page .ov14-rows .h3{font-size:1.15rem}
.v15-page #worlds{padding:0;position:relative}
.v15-page #w4-pin{height:auto!important}
.v15-page .w4-sticky{position:relative;top:auto;height:clamp(850px,100svh,1100px);max-height:none}
.v15-page .world-intro{position:absolute;z-index:6;top:44px;left:var(--site-gutter);right:var(--site-gutter);max-width:700px;padding:0;background:none}
.world-intro .eyebrow{color:#ffd178;margin:0 0 12px}
.world-intro h2{font:700 clamp(2rem,3.3vw,3.4rem)/1.08 var(--font-display);color:#fff6e6;max-width:650px;margin:0 0 18px;text-wrap:balance}
.world-intro>p:last-child{font-size:17px;line-height:1.6;max-width:520px;color:#fff6e6;margin:0}
.v15-page .w4-scrim{background:linear-gradient(180deg,rgba(14,16,25,.82),transparent 48%,rgba(14,16,25,.9)),linear-gradient(90deg,rgba(14,16,25,.28),transparent)}
.v15-page .w4-fg{padding-bottom:125px}
.v15-page .w4-day{inset:auto 0 0;height:auto;translate:none;display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;padding:22px 24px;background:#151722db;backdrop-filter:blur(12px);z-index:9}
.v15-page .w4-day>.ico{display:none}
.v15-page .w4-dots{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;transform:none;width:auto}
.v15-page .w4-dots::before,.v15-page .w4-dots::after{display:none}
.v15-page .w4-dots button{width:auto;height:auto;min-height:44px;padding:10px 13px;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:#fff5e2;font:700 14px/1.2 var(--font-body);cursor:pointer}
.v15-page .w4-dots button[aria-current="true"]{color:#ffd178;border-color:#ffd178;background:#ffffff0a}
.v15-page .voice-character{padding:0 0 110px;position:relative;background:#141925;overflow:visible}
.character-opening{position:relative;min-height:640px;display:grid;align-items:center;isolation:isolate}
.character-opening>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:75% 42%;z-index:-2}
.character-opening:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#141925f0 0%,#141925b8 35%,transparent 68%),linear-gradient(0deg,#141925,transparent 45%)}
.character-opening-copy .h2{max-width:560px;font-size:clamp(2.5rem,4.3vw,4.5rem);line-height:1.07}
.character-opening-copy .lead{max-width:430px;margin-top:24px;font-size:19px;line-height:1.7}
.v15-page .character-portraits{display:grid;grid-template-columns:1fr 1fr;gap:65px;position:relative;margin-top:-40px;padding-bottom:80px}
.character-portrait.cosmo{padding-top:95px}
.character-portrait img{width:100%;aspect-ratio:1.65;object-fit:cover;border-radius:4px 60px 4px 4px;box-shadow:0 18px 60px #0005}
.character-portrait.cosmo img{border-radius:60px 4px 4px 4px}
.character-portrait>div{padding:25px 8px 0;max-width:490px}
.character-portrait h3,.character-home h3{font:700 clamp(1.7rem,2.3vw,2.5rem)/1.15 var(--font-display);color:#fff1d9;margin:0 0 16px}
.character-portrait p,.character-home p{font-size:18px;line-height:1.8;color:#d7d6df;margin:0}
.character-home{display:grid;grid-template-columns:1.2fr 1fr;gap:55px;align-items:center}
.character-home>img{width:100%;border-radius:4px 4px 65px 4px}
.character-home .btn{margin-top:28px}
.v15-page .k4-head .h2{max-width:850px;margin-inline:auto;text-wrap:balance}
.v15-page .k4-head .lead{margin-top:32px}
.v15-page .join-sheet{top:var(--review-height)}
@media(max-width:819px){
.v15-page .site-head{flex-wrap:wrap;padding-bottom:4px}
.v15-page .v15-nav{order:3;flex-basis:100%;justify-content:space-between;margin:0;gap:10px}
.v15-nav a{font-size:13px;padding:12px 0;min-height:44px}
.v15-page .w4-sticky{height:900px}
.v15-page .world-intro{top:34px;left:24px;right:24px}
.world-intro h2{font-size:2.2rem}
.world-intro>p:last-child{font-size:16px}
.v15-page .w4-fg{display:block;padding:0 24px 205px}
.v15-page .w4-name{font-size:2.3rem}
.v15-page .w4-word{white-space:normal}
.v15-page .w4-desc{font-size:16px}
.v15-page .w4-covers{display:none}
.v15-page .w4-day{padding:14px 12px;gap:12px}
.v15-page .w4-dots button{font-size:12px;padding:10px}
.character-opening{min-height:730px;align-items:end}
.character-opening>img{object-position:62% top;height:440px}
.character-opening:after{background:linear-gradient(0deg,#141925 34%,transparent 75%)}
.character-opening-copy{padding-bottom:28px}
.character-opening-copy .h2{font-size:2.4rem;max-width:420px}
.character-opening-copy .lead{font-size:17px;margin-top:18px}
.v15-page .character-portraits{grid-template-columns:1fr;gap:38px;margin-top:20px;padding-bottom:48px}
.character-portrait.cosmo{padding-top:0}
.character-portrait p,.character-home p{font-size:17px}
.character-home{grid-template-columns:1fr;gap:26px}
.v15-page .voice-character{padding-bottom:75px}
.v15-page .k4-head .h2{font-size:clamp(1.9rem,6vw,2.8rem)}
.v15-page .k4-head .lead{margin-top:24px}
}
@media(prefers-reduced-motion:reduce){.v15-page .w4-art{transition:none!important}}

.v15-page .character-opening-copy{width:calc(100% - 2 * var(--site-gutter));max-width:var(--site-max,1200px);margin-inline:auto}
@media(min-width:820px){
.character-opening>img{width:72%;left:auto;right:0;object-position:65% center}
.character-opening:after{background:linear-gradient(90deg,#141925 20%,#141925cf 35%,transparent 62%),linear-gradient(0deg,#141925,transparent 40%)}
.character-opening-copy .h2{max-width:490px}
}
#app-frame .voice-character{background:#141925}
@media(min-width:820px){.v15-page .world-intro{left:max(var(--site-gutter),calc((100% - 1200px)/2));top:45px}}
/* Clip the transition bubble without creating a hidden scroll container. */
.v15-page .w4-sticky{overflow:clip}
.v15-page .k4-head .h2{max-width:1120px;white-space:pre-line}
@media(max-width:819px){.v15-page .k4-head .h2{font-size:clamp(1.35rem,5.4vw,2.3rem);white-space:pre-line;max-width:none}}

/* The introduction and tabs form one gallery header, on the page ground. */
.v15-page .world-intro{position:relative;inset:auto;max-width:1200px;margin:0 auto;padding:52px var(--site-gutter) 34px;display:grid;grid-template-columns:1.15fr 1fr;gap:12px 65px;align-items:end}
.world-intro .eyebrow{grid-column:1 / -1;margin:0}
.world-intro h2{margin:0;max-width:600px}
.world-intro>p:last-child{max-width:440px;margin:0 0 5px}
.v15-page .w4-day{position:relative;inset:auto;translate:none;background:none;backdrop-filter:none;padding:0 var(--site-gutter) 22px;border-bottom:1px solid var(--hairline);gap:0}
.v15-page .w4-fg{padding-bottom:60px}
.v15-page .w4-scrim{background:linear-gradient(180deg,rgba(14,16,25,.15),transparent 48%,rgba(14,16,25,.9))}
#app-frame .voice-character{background:linear-gradient(to bottom,#141925 0%,#141925 62%,var(--feature-bg) 100%)}
@media(max-width:819px){
.v15-page .world-intro{display:block;padding:38px 24px 24px}
.world-intro .eyebrow{margin-bottom:12px}
.world-intro h2{margin-bottom:18px}
.v15-page .w4-day{padding:0 12px 18px}
.v15-page .w4-sticky{height:740px}
.v15-page .w4-fg{padding-bottom:36px}
}
/* Full section navigation with a persistent language switcher. */
.v15-page .v15-nav{gap:17px;margin-right:22px}
.v15-page .v15-nav a{font-size:13px;white-space:nowrap}
.v15-page .site-head .head-tools .seg--sm{display:flex}
@media(max-width:1350px){
.v15-page .site-head{flex-wrap:wrap}
.v15-page .v15-nav{order:3;flex-basis:100%;justify-content:space-between;margin:0;gap:6px}
.v15-page .head-tools{margin-left:auto}
.v15-page .v15-nav a{min-height:40px;padding:10px 0}
html.v15-page{scroll-padding-top:calc(var(--review-height) + 128px)}
}
@media(max-width:600px){
.v15-page .v15-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 6px}
.v15-page .v15-nav a{font-size:11px;text-align:center;white-space:normal;line-height:1.25;display:flex;justify-content:center;align-items:center;min-height:38px}
html.v15-page{scroll-padding-top:calc(var(--review-height) + 168px)}
.v15-page .site-head .head-tools{gap:8px}
}

/* ---- system.css ---- */
/* v16 system layer: tokens -> roles for the whole page (the rework plan, section 3). Loaded after every older sheet.
   Intent: one spacing scale, one container, one type ladder and one evening-arc ground, so every section is built from
   the same parts. Letter: new tokens only (never redefining the app's or the site's existing ones), applied only to
   sections v16.js has opted in (data-rhythm / data-register / data-ground). The frozen shelf and keepsakes are fenced:
   they keep v15's exact values, proven by tools/frozen_diff.py. */

#app-frame {
  /* Section rhythm on the 4 px grid (extends --sp-1..8 = 4..40 px). Desktop values; phones below. */
  --sp-12: 48px; --sp-14: 56px; --sp-20: 80px; --sp-24: 96px; --sp-30: 120px; --sp-40: 160px;
  --rhythm-compact: var(--sp-24);    /* Q, a breath */
  --rhythm-standard: var(--sp-30);   /* M, a feature */
  --rhythm-stage: var(--sp-40);      /* L, a stage (pinned scenes own their height) */
  /* Inner gaps: eyebrow to heading, heading to lead, lead to the proof */
  --gap-eyebrow: var(--sp-4); --gap-lead: var(--sp-4); --gap-proof: var(--sp-8);   /* 16 / 16 / 40: the values most v15 sections already used (16, 16, 35) */
  /* One container */
  --v16-max: 76rem;
  /* Type ladder: display is the loudest thing on the page, used by the hero and the finale only */
  --display-hero: clamp(2.4rem, 1.2rem + 4.2vw, 5rem);
  --display-stage: clamp(2.3rem, 1.4rem + 3.8vw, 4.4rem);   /* = v15 .h2--xl, so the frozen headings already sit on it */
  --display-section: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);  /* = --site-h2 */
  --body-min: 1rem;
  /* Evening-arc ground stops (one set for both themes: in light the arc paints only the night panels). Warm night family
     only: never cream, purple or black. Consumed by v16.js (phase 3). */
  --ground-dusk: #2a2119;
  --ground-page: #211c15;   /* = --surface-page in the dark theme; a literal so the light theme's night panels never blend to cream */
  --ground-night: var(--feature-bg);    /* #1d1813 */
  --ground-deep: #16120e;
  --ground-sky: #1a1612;
}
@media (max-width: 819.98px) {
  #app-frame { --rhythm-compact: var(--sp-8); --rhythm-standard: var(--sp-14); --rhythm-stage: var(--sp-20); --gap-proof: var(--sp-6); }
}

/* ---- the frozen fence ----
   Both sections show the page ground through (no background of their own), and they must keep doing so: an opaque
   background of the same colour measurably changes text antialiasing inside them (1 level, frozen_diff 2026-10-03).
   The fence is therefore in v16.js: the evening arc (phase 3) is pinned to exactly the page ground at both edges of
   either section and never paints them, and no v16 rule selects them (checked by frozen_diff via SW.v16.fence()). */

/* ---- v16.css ---- */
/* v16 section and component rules (the rework iteration, forked from v15 2026-10-03).
   Phone rules live only inside @media (max-width: 819.98px): the desktop stays as it is (WS-053). */

@media (max-width: 819.98px) {
  /* Founder 2026-10-03: "on mobile the header menu items shouldn't appear". The phone header is the wordmark,
     the EN/RO switch and Join; the ten section links stay on desktop only. */
  .v15-page .v15-nav { display: none; }
  .v15-page .site-head { flex-wrap: nowrap; }
  html.v15-page { scroll-padding-top: calc(var(--review-height) + 80px); }
}

/* ---- Phase 2: rhythm, container, type ladder (plan section 3.1-3.2) ----
   Intent: every section built from the same spacing and heading parts, so the page reads as a score (loud / medium /
   quiet) instead of one template repeated. Letter: rules select only sections v16.js opted in; the frozen shelf and
   keepsakes are never tagged. */

/* Section rhythm */
#app-frame [data-rhythm="stage"]    { padding-block: var(--rhythm-stage); }
#app-frame [data-rhythm="standard"] { padding-block: var(--rhythm-standard); }
#app-frame [data-rhythm="compact"]  { padding-block: var(--rhythm-compact); }
/* Compositions that own their frame: the hero and the finale fill the viewport; Tella opens on full-bleed art */
#app-frame .hero--story[data-rhythm], #app-frame .finale[data-rhythm] { padding-block: 0; }
#app-frame #character[data-rhythm] { padding-block: 0 var(--rhythm-standard); }
/* Worlds: the gallery header opens the stage; the art runs to the section's end (it dissolves into the next in phase 3) */
#app-frame #worlds[data-rhythm] { padding-block: var(--rhythm-stage) 0; }
#app-frame #worlds .world-intro { padding-top: 0; row-gap: var(--gap-eyebrow); }

/* One container: the worlds header and the Tella opening sat on a 1200 px box with doubled padding (left edge 170 / 162 px
   at 1440, against every other section's 112 px) */
#app-frame #worlds .world-intro { max-width: calc(var(--v16-max) + 2 * var(--site-gutter)); }
#app-frame #character .character-opening-copy { padding-inline: 0; }

/* Inner gaps: eyebrow to heading, heading to lead, the section's head to its proof */
#app-frame [data-register] .eyebrow { margin-bottom: var(--gap-eyebrow); }
#app-frame #worlds .world-intro .eyebrow { margin-bottom: 0; }   /* the header grid's row gap carries it */
#app-frame [data-register] :is(.sec-head, .listen-head, .y7-head) .lead { margin-top: var(--gap-lead); }
#app-frame #character .character-opening-copy .lead { margin-top: var(--gap-lead); }
#app-frame [data-register] :is(.sec-head, .listen-head, .y7-head) { margin-bottom: var(--gap-proof); }

/* Type ladder: display (hero, finale) > stage (loud) > section (medium, quiet) */
#app-frame .hero--story .hero-copy > .h1 { font-size: var(--display-hero); max-width: min(46rem, 52vw); }
#app-frame .finale .h2 { font-size: var(--display-hero); }
#app-frame .finale .finale-copy { max-width: 56rem; }
#app-frame [data-register="medium"] .h2--xl, #app-frame [data-register="quiet"] .h2--xl { font-size: var(--display-section); }
#app-frame #character .character-opening-copy .h2 { font-size: var(--display-section); }
#app-frame #worlds .world-intro h2 { font-size: var(--display-stage); max-width: none; }

@media (max-width: 819.98px) {
  #app-frame .hero--story .hero-copy > .h1 { max-width: none; }
  #app-frame #worlds .world-intro { padding-inline: var(--site-gutter); }   /* v15 phone rule used 24 px; every other section uses the gutter */
}

/* ---- Phase 3: the evening arc and the picture dissolves (plan section 5, Ground journey) ----
   Founder 2026-10-03: "I want to try the evening arc background" (asked against keeping the night veil). The ground
   itself is painted by v16.js; these rules retire the veil and let each picture's edge dissolve into that ground with a
   mask (no painted overlay, P18). Frozen sections are never selected. */
#app-frame .night-veil { display: none; }
#app-frame {
  --dissolve: min(18vh, 160px);
  /* 2026-10-04 (founder: "make sure the background colors and images are blended properly as you scroll"): the dissolves
     ease in (slow start, like the arc's smoothstep) instead of a straight ramp, which let a picture's hue arrive within
     about 50 px; pictures whose colour differs most from the ground (music's blue night, the plans sky, the finale) take a
     longer one. */
  --dissolve-long: min(40vh, 360px);
  --dissolve-both: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.05) calc(var(--dissolve) * .25), rgba(0,0,0,.22) calc(var(--dissolve) * .5), rgba(0,0,0,.6) calc(var(--dissolve) * .75), #000 var(--dissolve),
    #000 calc(100% - var(--dissolve)), rgba(0,0,0,.6) calc(100% - var(--dissolve) * .75), rgba(0,0,0,.22) calc(100% - var(--dissolve) * .5), rgba(0,0,0,.05) calc(100% - var(--dissolve) * .25), transparent 100%);
  --dissolve-top: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.05) calc(var(--dissolve) * .25), rgba(0,0,0,.22) calc(var(--dissolve) * .5), rgba(0,0,0,.6) calc(var(--dissolve) * .75), #000 var(--dissolve));
  --dissolve-both-long: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.05) calc(var(--dissolve-long) * .25), rgba(0,0,0,.22) calc(var(--dissolve-long) * .5), rgba(0,0,0,.6) calc(var(--dissolve-long) * .75), #000 var(--dissolve-long),
    #000 calc(100% - var(--dissolve-long)), rgba(0,0,0,.6) calc(100% - var(--dissolve-long) * .75), rgba(0,0,0,.22) calc(100% - var(--dissolve-long) * .5), rgba(0,0,0,.05) calc(100% - var(--dissolve-long) * .25), transparent 100%);
  --dissolve-top-long: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.05) calc(var(--dissolve-long) * .25), rgba(0,0,0,.22) calc(var(--dissolve-long) * .5), rgba(0,0,0,.6) calc(var(--dissolve-long) * .75), #000 var(--dissolve-long));
}
#app-frame #worlds .w4-arts { -webkit-mask-image: var(--dissolve-both); mask-image: var(--dissolve-both); }
#app-frame #music .mu-bg, #app-frame #plans .p4-bg { -webkit-mask-image: var(--dissolve-both-long); mask-image: var(--dissolve-both-long); }
/* the pictures' legibility scrims fade out with them at the edges (they ended in solid blue / solid night, so they drew
   the edge back: measured worlds|Tella step 14, music edges 4) */
#app-frame #worlds .w4-scrim { -webkit-mask-image: var(--dissolve-both); mask-image: var(--dissolve-both); }
#app-frame #music.music::before { -webkit-mask-image: var(--dissolve-both-long); mask-image: var(--dissolve-both-long); }
#app-frame #character .character-opening > img, #app-frame #character .character-opening::after { -webkit-mask-image: var(--dissolve-top-long); mask-image: var(--dissolve-top-long); }   /* the picture and its navy overlay only: a mask on the container dimmed Tella's heading */
#app-frame .finale .finale-sky { -webkit-mask-image: var(--dissolve-top-long); mask-image: var(--dissolve-top-long); }
@media (min-width: 820px) {   /* desktop: the hero art reaches the section's bottom edge; on phones its own scrim already fades it */
  #app-frame .hero--story .hero-art { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--dissolve)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--dissolve)), transparent); }
}
/* the FAQ sits on the night (plan: "feature night, no band"); the light theme keeps its paper band */
#app-frame:not(.dz-light) #faq[data-ground] { box-shadow: none; }

/* Founder 2026-10-03: "The h1 is too big, scale it back by 20%" (the hero heading only; the finale keeps the display tier) */
#app-frame .hero--story .hero-copy > .h1 { font-size: calc(var(--display-hero) * 0.8); }

/* ---- Phase 5: Make and Method as set pieces (plan section 4, items 4 and 13; desktop only) ----
   The demo takes the screen (v16.js scales the stage to its column and the screen's height); the steps become a compact
   rail with a progress line. The original step blocks stay in place, invisible, because the scene scripts read their
   positions to pick the active step. Phones keep the auto-cycling demo above the step list (WS-052/053). */
#app-frame .v16-rail { display: none; }   /* phones: the scenes keep their own step list */
@media (min-width: 820px) {
  #app-frame .mk-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
  #app-frame .mk-grid > .mk-stage-col { grid-column: 1; grid-row: 1; }
  #app-frame .mk-grid > .mk-beats, #app-frame .mk-grid > .v16-rail { grid-column: 2; grid-row: 1; }
  #app-frame .m4-grid { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); }
  #app-frame .m4-grid > .m4-stage-col { grid-column: 2; grid-row: 1; }
  #app-frame .m4-grid > .m4-steps, #app-frame .m4-grid > .v16-rail { grid-column: 1; grid-row: 1; }
  #app-frame :is(.mk-beats, .m4-steps) { visibility: hidden; }
  #app-frame .m4-steps { padding-bottom: 24vh; }   /* the finished page with its cover row holds a little longer: the larger stage releases earlier */
  #app-frame .mk-stage, #app-frame .m4-stage { width: 600px; }
  #app-frame .m4-stage-col { display: flex; justify-content: flex-end; align-items: flex-start; }

  /* the rail (founder 2026-10-04: "a better and cleaner UI ... the text looks a bit bunched together"): a hairline track on the
     left edge, numerals beside it, the titles at a rail size, air between the steps */
  #app-frame .v16-rail { display: block; position: relative; align-self: stretch; }
  #app-frame .v16-rail-wrap { position: sticky; top: var(--v16-stage-top, 12vh); height: var(--v16-stage-h, 70vh); display: flex; flex-direction: column; justify-content: center; }
  #app-frame .v16-rail-in { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 30px; position: relative; }
  #app-frame .v16-rail-step { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
  #app-frame .v16-rail-mark { font-family: var(--font-numeral); font-size: 0.95rem; letter-spacing: 0.04em; color: var(--ink-title); opacity: 0.38; line-height: 1;
    transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft); }
  #app-frame .v16-rail-step.is-now .v16-rail-mark { opacity: 1; }
  #app-frame .v16-rail .h3 { margin: 0; font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem); line-height: 1.25; opacity: 0.45;
    transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft); }
  #app-frame .v16-rail .step-d { font-size: 1rem; line-height: 1.6; max-width: 24rem; margin: 10px 0 0; opacity: 0;
    transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft); }
  #app-frame .v16-rail-step.is-now .h3 { opacity: 1; }
  #app-frame .v16-rail-step.is-now .step-d { opacity: 0.86; }
  #app-frame .v16-rail-step:not(.is-now) .step-d { display: none; }
  /* the track: a hairline on the rail's left edge, filled in cream down to the step being shown */
  #app-frame .v16-rail-line { position: absolute; left: 0; width: 1px; z-index: 0; background: var(--hairline); }
  #app-frame .v16-rail-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--fill, 0); background: var(--ink-title);
    transition: height calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft); }
  #app-frame .v16-rail-hit { position: absolute; inset: -8px -10px -8px -12px; background: none; border: 0; border-radius: var(--radius-card, 12px); cursor: pointer; }
  #app-frame .v16-rail-hit:focus-visible { outline: 2px solid var(--focus, var(--cta)); outline-offset: 2px; }

  /* the Studio pills and the small print: one hairline row under the stage */
  #app-frame .make4 .mk-foot { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-6); row-gap: var(--sp-3);
    border-top: 1px solid var(--hairline); padding-top: var(--sp-5); }
  #app-frame .make4 .mk-safe { margin: 0; }
  #app-frame .make4 .mk-ai { flex-basis: 100%; }
}

/* ---- Phase 6: hero arm H2 "Open book" (Lab: Hero = C; ?arm=book). The book itself is built by v16.js. ----
   The book lives outside #app-frame on desktop (it travels over the sections), so it reads :root tokens or literals.
   Paper is the book's own material, the same in both themes. */
.h2-book { --paper: #f3ebdd; --paper-in: #e7dbc5; --fold: 1; position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  transform-origin: 0 0; will-change: transform; }
.h2-tilt { position: absolute; inset: 0; transform-style: preserve-3d; border-radius: 6px;
  box-shadow: 0 calc(10px + 30px * var(--fold)) calc(24px + 50px * var(--fold)) rgba(10, 7, 4, calc(0.25 + 0.3 * var(--fold))); }
.h2-tilt::before { content: ""; position: absolute; inset: 0; border-radius: 6px; transform: translateZ(-1px); opacity: var(--fold);
  box-shadow: 0 2px 0 #e2d6bf, 0 4px 0 #d6c8ad, 0 6px 0 #c9b998, 0 7px 2px rgba(0, 0, 0, 0.35); }   /* the page block's edge */
.h2-board { position: absolute; inset: -9px -11px -13px -11px; border-radius: 9px; transform: translateZ(-2px); opacity: calc(0.15 + 0.85 * var(--fold));
  background: #3b2618; box-shadow: inset 0 1px 0 rgba(255, 236, 205, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.35); }   /* the hardcover board under the pages */
.h2-page { position: absolute; top: 0; bottom: 0; width: 50%; background-color: var(--paper-in); background-repeat: no-repeat; }
.h2-left { left: 0; border-radius: 6px 0 0 6px; }
.h2-right { right: 0; border-radius: 0 6px 6px 0; background-color: var(--paper); }
.h2-turn { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform calc(1500ms * var(--dz-k, 1)) var(--ease-settle, cubic-bezier(0.2, 0.8, 0.2, 1)); }
.h2-book.is-open .h2-turn { transform: rotateY(-180deg); }
.h2-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.h2-front { background: var(--paper); border-radius: 0 6px 6px 0; display: grid; place-items: center; }
.h2-back { transform: rotateY(180deg); background-repeat: no-repeat; border-radius: 6px 0 0 6px; }
.h2-title { margin: 0; padding: 0 12%; text-align: center; font-family: var(--font-display, "Baloo 2", system-ui, sans-serif); font-weight: 800;
  font-size: 2.6rem; line-height: 1.1; color: #3b2f22; }
.h2-gutter { position: absolute; left: 50%; top: 0; bottom: 0; width: 22%; transform: translateX(-50%) translateZ(1px); opacity: var(--fold); pointer-events: none;
  background: linear-gradient(90deg, rgba(40, 26, 12, 0) 0%, rgba(255, 244, 225, 0.10) 22%, rgba(40, 26, 12, 0.30) 42%, rgba(30, 18, 8, 0.62) 50%, rgba(40, 26, 12, 0.30) 58%, rgba(255, 244, 225, 0.10) 78%, rgba(40, 26, 12, 0) 100%); }   /* the fold's own shading: the pages curve down into it */
#app-frame.hero-book .hero--story .hero-art > picture { display: none; }
#app-frame.h2-landing .stage-pics { opacity: var(--h2-hand, 1); }
@media (min-width: 820px) {
  #app-frame.hero-book .hero--story .hero-art { display: none; }
}
@media (max-width: 819.98px) {   /* phones: the book opens in the hero and stays there */
  #app-frame.hero-book .hero--story .hero-art { aspect-ratio: auto; height: auto; padding: calc(var(--review-height, 0px) + 92px) calc(var(--site-gutter) + 8px) var(--sp-8); }   /* clears the fixed header */
  #app-frame.hero-book .hero--story .hero-art::after { display: none; }
  #app-frame.hero-book .hero--story .hero-copy { margin-top: 0; }
  .hero-art .h2-book { position: relative; width: 100%; aspect-ratio: 1344 / 752; transform: perspective(1400px) rotateX(9deg) rotateY(-5deg) rotateZ(-1.5deg); --fold: 1; }
  .hero-art .h2-title { font-size: 1.15rem; }
}

