/* ---- Phase 6: hero arm D "Fizz, alive" (Lab: Hero = D; ?arm=fizz). The scene is composited by v16.js in one WebGL canvas from
   generated layers (the plate, its masks, its depth, the apples, the rain); lightning glows sit above the copy's scrim. ---- */
#app-frame.hero-fizz .hero--story .hero-art { inset: 0; overflow: hidden; animation: fz-in calc(1400ms * var(--dz-k, 1)) var(--ease-settle) backwards; }
#app-frame.hero-fizz .hero--story .hero-img { animation: none; object-position: 50% 50%; }
#app-frame.hero-fizz .hero--story :is(.hero-img, .fz-stage, .fz-sky, .hr-stage) { transform: scale(var(--fz-s, 1.03)); transform-origin: var(--fz-ox, 57%) 45%; }
.fz-stage { position: absolute; pointer-events: none; z-index: 0; }
.fz-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity calc(700ms * var(--dz-k, 1)) var(--ease-soft); }
.fz-stage.is-living .fz-gl { opacity: 1; }
.fz-sky { position: absolute; z-index: 1; pointer-events: none; }   /* above the copy's scrim (hero-art::after): the clouds behind the words light too */
.fz-glow, .fz-bolt { position: absolute; height: auto; opacity: 0; mix-blend-mode: screen; transition: opacity calc(70ms * var(--dz-k, 1)) linear; }
.fz-bolt { transform: translateX(-50%); }
.hero--story.fz-over-apple { cursor: pointer; }
/* founder 2026-10-03: "Let's try making the hero full width, so the hero text content is aligned with the header logo on the left
   side": the copy drops its centred box and starts on the header's own gutter at every width (the verse ends on it at the right) */
#app-frame.hero-fizz .hero--story .hero-copy { max-width: none; margin-inline: 0; }
/* founder 2026-10-03: "the hero content looks off and a bit orphaned ... the H1 a bit larger because it has more space ... better padding
   and content positioning to balance this scene". A deliberate Z: the copy in the storm sky above the cart (upper left), Fizz in the
   middle, the Narrator lower right. Room under the header, a larger headline, one rhythm, and a lead narrow enough to stay clear of
   the heap (desktop only; phones keep their stack). */
@media (min-width: 820px) {
  #app-frame.hero-fizz .hero--story .hero-copy { padding-top: clamp(104px, 15vh, 160px); padding-inline: calc(var(--site-gutter) * 1.6); }   /* founder: lateral padding +60% */
  /* the mast stands at about 46% of the width at these aspect ratios: the headline and the lead end before it (never across the art) */
  #app-frame.hero-fizz .hero--story .hero-copy > .h1 { font-size: clamp(2.3rem, 1.1rem + 3.78vw, 4.7rem); max-width: calc(44vw - var(--site-gutter) * 1.6); line-height: 1.04; text-wrap: balance; }
  #app-frame.hero-fizz .hero--story .hero-copy > .eyebrow, #app-frame.hero-fizz .hero--story .hero-copy > .h1 > .eyebrow { margin-bottom: 20px; }
  #app-frame.hero-fizz .hero--story .hero-copy > .lead { margin-top: 28px; max-width: min(29rem, calc(34vw - var(--site-gutter) * 1.6)); }
  #app-frame.hero-fizz .hero--story .hero-copy > .actions { margin-top: 36px; }
  #app-frame.hero-fizz .hero--story .hero-copy > .hero-meta { margin-top: 18px; }
}
#app-frame.hero-fizz .hero--story .hero-copy { pointer-events: none; }   /* the copy box spans the hero: the apples stay touchable */
#app-frame.hero-fizz .hero--story .hero-copy > * { pointer-events: auto; }
/* the Narrator's page: quiet type under the actions, each word lights as it is read */
.fz-verse { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; margin-top: var(--sp-7); max-width: 31rem;
  animation: sw-rise calc(var(--dur-large) * var(--dz-k)) var(--ease-soft) calc(900ms * var(--dz-k)) backwards; }
.fz-play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--onart-ink, #f2efe8);
  background: rgba(20, 16, 12, 0.35); border: 1px solid rgba(242, 239, 232, 0.4);
  transition: background calc(var(--dur-small) * var(--dz-k)) var(--ease-light), transform calc(var(--dur-press) * var(--dz-k)) var(--ease-out); }
.fz-play:hover { background: rgba(20, 16, 12, 0.55); } .fz-play:active { transform: scale(0.94); }
.fz-play:focus-visible { outline: 2px solid var(--onart-ink, #f2efe8); outline-offset: 3px; }
.fz-play .ico { width: 18px; height: 18px; display: grid; } .fz-play .ico svg { width: 100%; height: 100%; }
.fz-from { margin: 0 0 4px; font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.01em; color: var(--onart-ink, #f2efe8); opacity: 0.72; }
.fz-text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--onart-ink, #f2efe8); text-shadow: 0 1px 10px rgba(var(--feature-bg-rgb), 0.9); }
.fz-line { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.fz-w { opacity: 0.42; transition: opacity calc(260ms * var(--dz-k)) var(--ease-soft); }
.fz-w.is-lit { opacity: 1; }
/* desktop: the Narrator's page in the scene's bottom right, over its darkest ground (founder 2026-10-03) */
/* founder 2026-10-03: "Can we try making a glass panel around the bottom right element": frosted glass over the scene, a light tint
   and a hairline edge (the app's glass material), inset by the same +60% gutter as the copy */
.fz-verse.is-scene { position: absolute; z-index: 2; right: calc(var(--site-gutter) * 1.6); bottom: clamp(32px, 5vh, 56px); margin: 0; max-width: 30rem;
  padding: 18px 22px 18px 18px; border-radius: var(--radius-card); background: rgba(22, 17, 12, 0.34);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.14), inset 0 1px 0 rgba(255, 244, 225, 0.10), 0 18px 40px rgba(10, 7, 4, 0.28); }
.fz-verse.is-scene .fz-text { font-size: 0.95rem; }
.fz-verse.is-scene .fz-text { text-shadow: 0 1px 12px rgba(16, 12, 9, 0.95), 0 0 2px rgba(16, 12, 9, 0.6); }
@keyframes fz-in { from { opacity: 0; } }
@media (max-width: 819.98px) {
  #app-frame.hero-fizz .hero--story .hero-art { inset: auto; }
  .fz-verse { margin-top: var(--sp-6); }
  .fz-text { font-size: 0.9375rem; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  #app-frame.hero-fizz .hero--story :is(.hero-img, .fz-stage, .fz-sky, .hr-stage) { transform: none; }
  .fz-w { transition: none; }
}

/* ---- Overview rows: a picture on hover (founder 2026-10-03: "for the 'find a favorite' and the other 3 buttons, I want them to have a
   relevant image on hover that matches the button and works in the background - doesn't clash with the panel structure").
   Each cell shows art from its own topic (generated, from the site's media), clipped to the cell so the hairline grid stays, and
   masked away from the title so the words keep the page ground. Desktop pointers only; reduced motion: a fade, no scale. ---- */
/* founder 2026-10-03: "Use different images for each, with different adventures. For sing, use the rabbits, change favorite and wind
   down": four adventures (Bram, B-078 4.5; Tella and Cosmo; Tippi, B-138 4.5; the Make demo) */
/* keyed to each card's destination, not its place (2026-10-06: the cards follow the page now; "Listen and sing" left, the
   keepsakes card came in: a keepsake from a free story, the Moon-Wink mirror, on the night ground at the cell's right) */
html.sw-idle #app-frame .ov14-rows a[href$="#shelf"] { --ov-img: url("media/hover/bram-tower.webp"); --ov-pos: 40% 45%; }
html.sw-idle #app-frame .ov14-rows a[href$="#keepsakes"] { --ov-img: url("media/keepsakes/b-143.webp"); --ov-pos: 92% 50%; --ov-size: auto 130%; }
html.sw-idle #app-frame .ov14-rows a[href$="#routine"] { --ov-img: url("media/hover/tippi-pond.webp"); --ov-pos: 30% 55%; }
html.sw-idle #app-frame .ov14-rows a[href$="#make"] { --ov-img: url("media/make/page-day.webp"); --ov-pos: 40% 50%; }
@media (hover: hover) and (min-width: 820px) {
  #app-frame .ov14-rows a { position: relative; isolation: isolate; overflow: hidden; }
  #app-frame .ov14-rows a::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    /* founder 2026-10-03: no dark gradient; then "a slight dark overlay for all of them, like 18% of the background color" */
    background: linear-gradient(color-mix(in srgb, var(--l0) 18%, transparent), color-mix(in srgb, var(--l0) 18%, transparent)),
                var(--ov-img) var(--ov-pos, center) / var(--ov-size, cover) no-repeat;
    opacity: 0; transform: scale(1.08);
    transition: opacity calc(var(--dur-large) * var(--dz-k)) var(--ease-soft), transform calc(var(--dur-ceremony) * var(--dz-k)) var(--ease-settle); }
  #app-frame .ov14-rows a:is(:hover, :focus-visible)::before { opacity: 1; transform: scale(1); }
  #app-frame .ov14-rows a :is(.ov14-t, .ov14-go) { transition: text-shadow calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft); }
  #app-frame .ov14-rows a:is(:hover, :focus-visible) :is(.ov14-t, .ov14-go) { text-shadow: 0 1px 2px rgba(12, 9, 6, 0.85), 0 2px 14px rgba(12, 9, 6, 0.7); }   /* readable on the picture without a scrim */
}
@media (prefers-reduced-motion: reduce) { #app-frame .ov14-rows a::before { transform: none !important; } }

/* ---- the app's arrival roles (Motion-Language-V36 section 3), written by v16.js on every non-frozen reveal ----
   The block itself stays put; its parts arrive. Individual translate (not transform) so the parts' own transforms are untouched. */
#app-frame .reveal.v16-choreo.is-pending, #app-frame .reveal.v16-choreo.is-shown { opacity: 1; transform: none; filter: none; }
#app-frame .v16-choreo [data-v16r] { --v16rd: 520ms; --v16re: var(--ease-soft); --v16rf: 1; }
#app-frame .v16-choreo [data-v16r="settle"] { --v16rd: 620ms; --v16re: var(--ease-settle); }
#app-frame .v16-choreo [data-v16r="sub"] { --v16rd: 640ms; }
#app-frame .v16-choreo [data-v16r="cascade"] { --v16rd: 460ms; --v16rf: 0.6; }
#app-frame .v16-choreo [data-v16r="surface"] { --v16rd: 420ms; }
#app-frame .v16-choreo.is-arriving [data-v16r] {
  transition: opacity calc(var(--v16rd) * var(--dz-k)) var(--v16re) var(--v16d, 0ms),
              translate calc(var(--v16rd) * var(--dz-k)) var(--v16re) var(--v16d, 0ms),
              filter calc(var(--v16rd) * var(--v16rf) * var(--dz-k)) var(--v16re) var(--v16d, 0ms); }
#app-frame .v16-choreo.is-pending [data-v16r="settle"] { opacity: 0; translate: 0 14px; filter: blur(10px) brightness(0.8); }
#app-frame .v16-choreo.is-pending :is([data-v16r="resolve"], [data-v16r="sub"]) { opacity: 0; translate: 0 6px; filter: blur(6px); }
#app-frame .v16-choreo.is-pending [data-v16r="cascade"] { opacity: 0; translate: 0 10px; filter: blur(4px); }
#app-frame .v16-choreo.is-pending [data-v16r="surface"] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #app-frame .v16-choreo.is-pending [data-v16r] { translate: none; filter: none; }   /* reduced motion: fades only */
}

/* ---- Phase 7a: the quiet sections as breaths (plan section 4, items 3, 11, 12, 15) ---- */
@media (min-width: 820px) {
  /* Overview: a short breath between the player and Make (was 96 px each side, with Make's own 160 px a 256 px gap) */
  #app-frame #overview[data-rhythm] { padding-block: var(--sp-14); }
  /* Controls: the bedtime-screen card sits in the promises column, as one more row of the same column */
  /* the heading and subtitle above both columns; the promises (+ the bedtime card) and the settings card start on one line */
  #app-frame #controls .s12-grid { grid-template-rows: auto auto 1fr; row-gap: 0; }
  #app-frame #controls .s12-copy { display: contents; }
  #app-frame #controls .s12-copy > .sec-head { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--gap-proof); }
  #app-frame #controls .s12-copy > .s12-always { grid-column: 1; grid-row: 2; margin-top: 0; }
  #app-frame #controls .s12-copy > .s13-screen { grid-column: 1; grid-row: 3; align-self: start; }
  #app-frame #controls .s12-side { grid-column: 2; grid-row: 2 / span 2; }
  #app-frame #controls .s12-side .c6-card { margin-top: 0; }
  #app-frame #controls .s13-screen.is-in-column { margin-top: var(--sp-5); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); row-gap: 4px; align-items: start; }
  #app-frame #controls .s13-screen.is-in-column > .c6-mark { grid-row: span 2; }
  #app-frame #controls .s13-screen.is-in-column > .h3, #app-frame #controls .s13-screen.is-in-column > .step-d { margin: 0; max-width: none; }
}

/* ---- Phase 7b: the feature sections carry the middle without competing (plan section 4, items 2, 7, 9, 10) ---- */
@media (min-width: 820px) {
  /* the player: the slide is the hero of the section (about 60% of the row), the verse beside it */
  #app-frame #listen .player { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 2rem; }   /* the slide leads; the verse keeps its longest line on one line (1.6 and 1.5 wrapped it) */
  /* Tella and Cosmo: each portrait as picture-beside-words, the pair side by side (was two tall cards, 1.97 screens) */
  #app-frame #character .character-opening { min-height: 560px; }
  #app-frame #character .character-portraits { gap: 40px; margin-top: -24px; padding-bottom: 64px; align-items: center; }
  #app-frame #character .character-portrait.cosmo { padding-top: 0; }
  #app-frame #character .character-portrait { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  #app-frame #character .character-portrait img { aspect-ratio: 4 / 5; }
  #app-frame #character .character-portrait > div { padding: 0; }
  #app-frame #character .character-portrait h3 { font-size: clamp(1.45rem, 1.1rem + 0.9vw, 2rem); margin-bottom: 10px; }
  #app-frame #character .character-portrait p { font-size: 1rem; line-height: 1.65; }
  /* music: the disc is the visual centre, a little larger */
  #app-frame #music .mu-disc-wrap { transform: scale(1.1); transform-origin: 50% 50%; }
}
/* the family lines under the chapter: one quiet hairline row, not two boxed cards (house quiet register) */
#app-frame #listen .l13-who { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); gap: 0; }
#app-frame #listen .l13-who li { background: none; box-shadow: none; border-radius: 0; padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; }
@media (min-width: 820px) { #app-frame #listen .l13-who li + li { border-left: 1px solid var(--hairline); padding-left: var(--sp-5); } }
@media (max-width: 819.98px) { #app-frame #listen .l13-who li + li { border-top: 1px solid var(--hairline); } }
/* the routine's "Lights out" page dimming was tried and removed (founder 2026-10-04) */

/* ---- 7c fixes (founder 2026-10-04): world tags inside the slide; the method note under the stage, smaller ---- */
#app-frame #worlds .w4-day.is-in-slide { position: absolute; inset: 84px 0 auto; z-index: 9; border-bottom: 0; padding: 0 var(--site-gutter); }
/* phase 9: each tag is an on-art chip, the cast chips' own material (the scrim alone measured 2.69-4.13 on the brighter worlds) */
#app-frame #worlds .w4-day.is-in-slide .w4-dots { gap: var(--sp-2); }
#app-frame #worlds .w4-day.is-in-slide .w4-dots button { min-height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: var(--radius-pill);
  background: rgba(var(--onart-scrim-rgb, 0,0,0), 0.7); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
#app-frame #worlds .w4-day.is-in-slide .w4-dots button[aria-current="true"] { background: rgba(var(--onart-scrim-rgb, 0,0,0), 0.72); box-shadow: inset 0 0 0 1px #ffd178; }
#app-frame #worlds .w4-scrim { background: linear-gradient(180deg, rgba(14, 16, 25, 0.72) 0, rgba(14, 16, 25, 0.3) 20%, transparent 44%, rgba(14, 16, 25, 0.9)); }   /* phase 9: the gold current tag measured 2.96 on the Hill Farm sky */
@media (max-width: 819.98px) {
  /* phones: one line that scrolls sideways, so the tags never stack over the picture */
  #app-frame #worlds .w4-day.is-in-slide { inset: 70px 0 auto; padding: 0; justify-content: flex-start; }
  #app-frame #worlds .w4-day.is-in-slide .w4-dots { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 12px; max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent); }
  #app-frame #worlds .w4-day.is-in-slide .w4-dots::-webkit-scrollbar { display: none; }
  #app-frame #worlds .w4-day.is-in-slide .w4-dots button { flex: none; white-space: nowrap; }
}
#app-frame #method .method-foot.is-under-stage { font-size: 0.875rem; line-height: 1.6; color: var(--ink-body); max-width: none; margin: 0; }
@media (min-width: 820px) {
  #app-frame #method .method-foot.is-under-stage { grid-column: 2; grid-row: 2; justify-self: end; width: var(--v16-stage-w, 600px); }
  #app-frame #method .m4-grid { row-gap: 36px; }   /* the note sits close under the cover row */
}

/* ---- Phase 7d: header arms (plan section 4, item 17). Desktop only; phones keep their header (founder 2026-10-03). ---- */
@media (min-width: 820px) {
  /* one row at every desktop width (v15 wrapped the links to a second row below 1,350 px) */
  .v15-page .site-head { flex-wrap: nowrap; }
  .v15-page .v15-nav { order: 0; flex: 0 1 auto; flex-basis: auto; min-width: 0; margin: 0 clamp(16px, 1.6vw, 28px) 0 auto; justify-content: flex-end;
    gap: clamp(14px, 1.25vw, 24px); white-space: nowrap; }
  .v15-page .v15-nav a { font-size: 14px; min-height: 44px; padding: 12px 0; display: inline-flex; align-items: center; }
  .v15-page .head-tools { margin-left: 0; }
  html.v15-page { scroll-padding-top: calc(var(--review-height) + 88px); }
  /* the links step aside where they do not fit, never a second row */
  #app-frame.nav-tight .v15-nav { visibility: hidden; flex: 1 1 0; }
  /* B: the six links a deciding parent needs */
  #app-frame.nav-b .v15-nav a:not([data-six]) { display: none; }
  /* C: the header slides away while the reader scrolls down */
  #app-frame .site-head { transition: background-color calc(var(--dur-medium) * var(--dz-k)) var(--ease-light), box-shadow calc(var(--dur-medium) * var(--dz-k)) var(--ease-light),
    translate calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft); }
  #app-frame.nav-c .site-head.is-away { translate: 0 -100%; }
}

/* ---- Phase 8: the phone sequence (plan section 4, item 18; WS-052 "investigate and critique it properly from a UX perspective",
   WS-053 "Keep the desktop version as it is"). Phone-only; desktop proven unchanged by tools/desk_styles.py. ---- */
@media (max-width: 819.98px) {
  /* tempo: a section break is one beat. Measured before: 98-147 px of empty screen between sections (12-17% of a screen),
     against 56-80 px elsewhere. Stage 80 -> 48 px, feature 56 -> 40 px; the frozen shelf and keepsakes keep their own pads. */
  #app-frame { --rhythm-standard: var(--sp-8); --rhythm-stage: var(--sp-12); }
  /* 44 px taps: the chapter's page segments (were 41 px wide) and the study sources (were 27 px tall) */
  #app-frame #listen .progress { gap: 0; }
  #app-frame #listen .progress button { height: 44px; }
  #app-frame #listen .progress button::before, #app-frame #listen .progress button > i { margin-inline: 2px; }
  #app-frame .y7-src { min-height: 44px; padding-top: 0; }
}

/* ---- Phase 9: phones use solid grounds instead of live blur (Marketing-Visual-Style 2.4, WS-052/053). The world tags, the cast
   chips and the routine timer were the three live-blur parts on phones (the last two since v15). ---- */
@media (max-width: 819.98px) {
  #app-frame #worlds .w4-day.is-in-slide .w4-dots button, #app-frame #worlds .w4-cast li, #app-frame .r12-timer {
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  #app-frame #worlds .w4-day.is-in-slide .w4-dots button { background: rgba(var(--onart-scrim-rgb, 0,0,0), 0.8); }
  #app-frame #worlds .w4-day.is-in-slide .w4-dots button[aria-current="true"] { background: rgba(var(--onart-scrim-rgb, 0,0,0), 0.86); }
  #app-frame #worlds .w4-cast li { background: rgba(var(--onart-scrim-rgb, 0,0,0), 0.62); }
  #app-frame .r12-timer { background: rgba(var(--feature-bg-rgb), 0.84); }
}

/* ---- Method head (founder 2026-10-04: "move the 'how we use AI' element on the right of the header and subtitle, like the first
   part of worlds, and make sure it works flawlessly responsively"). The worlds intro's own grid (v15.css:95: 1.15fr / 1fr,
   aligned to the bottom): heading, eyebrow and lead on the left, the AI note on the right, its last line on the lead's last
   line. Phones keep the stacked order. ---- */
@media (min-width: 820px) {
  #app-frame #method .sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(32px, 4.5vw, 65px);
    align-items: end; max-width: none; }
  #app-frame #method .sec-head > :not(.m14-ai) { grid-column: 1; }
  #app-frame #method .sec-head > .m14-ai { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0 0 calc(-1 * (var(--sp-4) + 1px)); max-width: 30rem; }   /* its text, not its hairline, ends on the lead's last line */
}

/* Create: "A story of their own" started late (founder 2026-10-04: "seems to start a bit later"). Measured: beats 1-3 each held
   about 540 px of scroll, beat 4 fired with only 272 px left before the stage released. Its marker moves 12vh earlier and the
   stage holds 12vh longer (beat 4 about 490 px; beat 3 about 430 px). Desktop only. */
@media (min-width: 820px) {
  #app-frame .mk-beat[data-beat="4"] { margin-top: -12vh; }
  #app-frame .mk-beats { padding-bottom: 12vh; }
}

/* Tella and Cosmo's moon card: the singing picture from the app's onboarding (founder 2026-10-04), 4:3; its width/height
   attributes reserve the space, so the height must follow the width */
#app-frame #character .character-home > img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Create: the disclaimer travels with the demo (founder 2026-10-04): one sticky holder, the stage then its safety line and AI note */
#app-frame #make .mk-foot.is-under-stage { margin: var(--sp-4) 0 0; }
@media (min-width: 820px) {
  #app-frame .v16-stage-hold { position: sticky; top: 12vh; }
  #app-frame .v16-stage-hold > .mk-stage { position: relative; top: auto; }
  #app-frame #make .mk-foot.is-under-stage { display: grid; gap: var(--sp-2); }
  #app-frame #make .mk-foot.is-under-stage .mk-ai { flex-basis: auto; }
}

/* ---- Round 14 (founder 2026-10-04): the shelf's age ranges larger and more visible ("make the '0-3' and the rest of the numbers
   larger"). ?ages15 (proof only) keeps v15's size for frozen_diff. ---- */
#app-frame:not(.ages15) #shelf .wave-age { font-size: 1.05rem; }
#app-frame:not(.ages15) #shelf .wave-age .num { font-size: clamp(2.5rem, 1.6rem + 2.3vw, 3.75rem); line-height: 1; margin-right: 0.16em; }

/* ---- Round 14: the rotating hero (v16.js "the rotating hero"). The canvas draws the six generated scenes over the Fizz plate and
   under the copy's scrim; it fades in when a non-Fizz scene shows, and the Fizz layers fade out. The thumbnails sit top right. ---- */
/* round 15: the generated scenes are clean layers (background, character cut-out, two sprite canvases), never bent */
#app-frame .hr-stage { position: absolute; z-index: 0; pointer-events: none; overflow: hidden; }
#app-frame .hero--story :is(.fz-stage, .fz-sky) { transition: opacity calc(1400ms * var(--dz-k, 1)) var(--ease-soft); }
#app-frame .hero--story.hr-away :is(.fz-stage, .fz-sky) { opacity: 0; }
#app-frame .hr-scene { position: absolute; inset: 0; opacity: 0; }
#app-frame .hr-scene.is-on, #app-frame .hr-scene[style*="z-index: 2"], #app-frame .hr-scene[style*="z-index: 1"] { opacity: 1; }   /* round 18: the iris reveals; no crossfade */
#app-frame .hr-iris { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
#app-frame .hr-scene.is-on { opacity: 1; }

#app-frame .hr-bg { position: absolute; inset: 0; width: 100%; height: 100%; }   /* exactly the plate's box: the cut-out stays aligned */
#app-frame .hr-ground { position: absolute; inset: 0; }
#app-frame .hr-char { position: absolute; will-change: transform; }
#app-frame .hr-hero { position: absolute; inset: 0; width: 100%; height: 100%; }
#app-frame .hr-part, #app-frame .hr-gl-layer { position: absolute; }
#app-frame .hr-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
#app-frame .hr-thumbs { position: absolute; z-index: 4; top: calc(var(--review-height, 0px) + 88px); right: calc(var(--site-gutter) * 1.6); display: flex; gap: 10px; }
#app-frame .hr-thumb { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 16px; background: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform calc(var(--dur-medium) * var(--dz-k, 1)) var(--ease-soft); }
#app-frame .hr-thumb { background: rgba(242, 239, 232, 0.08); }
#app-frame .hr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0.72;
  box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.25); transition: opacity calc(var(--dur-medium) * var(--dz-k, 1)) var(--ease-soft); }
#app-frame .hr-thumb:hover { transform: translateY(-2px); }
#app-frame .hr-thumb:hover img, #app-frame .hr-thumb[aria-pressed="true"] img { opacity: 1; }
/* the current scene: a gold ring that fills while it shows (a control, not art) */
#app-frame .hr-thumb[aria-pressed="true"]::before { content: ""; position: absolute; inset: -4px; border-radius: 19px; padding: 2px;
  background: conic-gradient(var(--cta) var(--p, 0%), rgba(242, 239, 232, 0.28) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
#app-frame .hr-thumb:focus-visible { outline: 2px solid var(--focus, var(--cta)); outline-offset: 5px; }
@media (max-width: 819.98px) {
  /* phones: the thumbnails take their own row under the hero copy (moved there by v16.js), never over a line of text */
  #app-frame .hr-thumbs { position: static; margin: var(--sp-5) 0 0; gap: 0; justify-content: space-between; max-width: 22rem; }
  #app-frame .hr-thumb { width: 44px; height: 44px; border-radius: 13px; }   /* seven fit on one row from 340 px */
  #app-frame .hr-thumb[aria-pressed="true"]::before { border-radius: 16px; }
}
#app-frame #worlds[hidden] { display: none; }   /* round 14: retired; the hero rotates through the worlds */

/* ---- Round 18: music in "Start with a story", always visible, in the chapter player's structure (v16.js "Round 18: music"). ---- */
#app-frame #music[hidden] { display: none; }
#app-frame .v16-music { margin-top: var(--rhythm-standard, 96px); scroll-margin-top: 88px; }
#app-frame .v16-mplayer .player-bar { align-items: center; }
#app-frame .v16-mplayer .mu-lang { margin: 0; }
/* the picture panel: the record player on the chapter picture's own card */
#app-frame .v16-mstage { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, var(--l2), var(--l1)); }
#app-frame .v16-mstage .mu-deck { position: relative; top: auto; order: 0; width: 100%; height: 100%; display: grid; grid-template-rows: auto auto auto; justify-items: center; align-content: center;
  gap: var(--sp-2); padding: var(--sp-5) var(--sp-6); }
#app-frame .v16-mstage .mu-disc-wrap { width: min(42%, 16rem); align-self: center; transform: none; }
#app-frame .v16-mstage .mu-now { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); margin-top: 0; }
#app-frame .v16-mstage .mu-sub { margin: 0; }
#app-frame .v16-mctrl { grid-area: progress; }
#app-frame .v16-mctrl .mu-ctrl { width: 100%; }
/* the list: quiet rows between hairlines, like the verse column (no cards, no glass) */
#app-frame .v16-mlist .mu-shelves { display: grid; gap: 0; }
#app-frame .v16-mlist .mu-shelf { padding: var(--sp-4) 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid var(--hairline); }
#app-frame .v16-mlist .mu-shelf:first-child { padding-top: 0; }
#app-frame .v16-mlist .mu-shelf:last-child { border-bottom: 0; }
#app-frame .v16-mlist .mu-h { font-size: 1.125rem; color: var(--ink-title); }
#app-frame .v16-mlist .mu-d { color: var(--ink-body); font-size: 0.95rem; }
@media (min-width: 820px) {
  #app-frame .v16-mplayer { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 2rem; grid-template-areas: "bar bar" "stage verse" "progress verse"; }
  #app-frame .v16-mstage { align-self: start; }
}
@media (max-width: 819.98px) {
  #app-frame .v16-mplayer { grid-template-areas: "bar" "stage" "progress" "verse"; }
  #app-frame .v16-mstage { aspect-ratio: 1 / 1; }
  #app-frame .v16-mstage .mu-disc-wrap { width: min(62%, 15rem); }
}

/* ---- v17.css ---- */
/* v17 (SEO iteration) home additions. The footer gains a Stories column (links to the story pages, so every generated page
   is reachable from / by a plain link). Desktop: four columns; phones keep the v13 stacking rules. */
#app-frame .f13:has(.f13-stories) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr); }
@media (max-width: 819.98px) { #app-frame .f13:has(.f13-stories) { grid-template-columns: 1fr; } }

/* 2026-10-05: the music list borrows the chapter player's .verse-wrap, which carries `contain: size` on desktop (site.css),
   so its 680 px of shelves had no height of their own and ran 217 px into the overview row below. The list sizes itself. */
@media (min-width: 820px) {
  #app-frame .v16-mlist { contain: none; }
  /* the taller list now spans the stage and control rows: the last row takes the slack, so the controls stay under the picture */
  #app-frame .v16-mplayer { grid-template-rows: auto auto 1fr; }
  #app-frame .v16-mplayer .v16-mctrl { align-self: start; }
}

/* 2026-10-05: the craft section is a short head + a link to the How page (the demo is kept hidden for the scripts that read it) */
/* home only: Our craft (html[data-page="craft"], build.py SUBPAGES) shows the whole demo */
html:not([data-page]) #app-frame #method .m17-hidden, html:not([data-page]) #app-frame #method .v16-rail { display: none !important; }
#app-frame #method .m17-more { margin: var(--sp-8) 0 0; }
html:not([data-page]) #app-frame #method { padding-block: clamp(4rem, 3rem + 4vw, 7.5rem); }

/* round 4 (2026-10-05): pages made from the home's sections (Our craft, Plans) start with a section, not the hero, so the
   fixed header needs its room above the first heading on every width (on phones it sat on the wordmark) */
html[data-page] #app-frame main > section:first-child { padding-top: max(7.5rem, calc(var(--site-gutter) + 6rem)); }
@media (min-width: 820px) { html[data-page] #app-frame main > section:first-child { padding-top: 9.5rem; } }

/* ===== Why rhyme (round 5, 2026-10-05; build.py SUBPAGES "rhyme"): the home's science block and chapter player between
   sections of its own, in the home's classes. The idea is shown with the thing itself: a real page with its rhymes marked. */
   /* its own room under the fixed header */

html[data-page="rhyme"] #listen .v16-music { display: none; }   /* this page is about the rhyme: the chapter, not the songs */

/* ===== round 8 (2026-10-06, founder) ===== */
/* "Some nights" gets its night: the bedroom from the library (media/bg/routine.webp), the bed and the sleeping bunny behind
   the routine card, the words on the quiet wall; the picture dissolves into the ground on the left and at both edges */
#app-frame #routine .r4-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%;
  -webkit-mask-image: linear-gradient(to right, transparent 8%, rgba(0,0,0,.45) 40%, #000 72%), linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent);
  mask-image: linear-gradient(to right, transparent 8%, rgba(0,0,0,.45) 40%, #000 72%), linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; filter: brightness(.72) saturate(.9); }
@media (max-width: 819.98px) {
  #app-frame #routine .r4-sky { height: 62%; object-position: 88% 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, rgba(0,0,0,.5) 70%, transparent);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%, rgba(0,0,0,.5) 70%, transparent); }
}
/* Tella's moon (founder: "a hard edge on the left, and the large bunny is quite faded and cut off at the top"): the picture
   starts at its top (Cosmo's ears in frame), dissolves into the ground over 72 px instead of 360 (his face was at 22-60 %),
   and its own left edge fades out instead of meeting the navy overlay at 85 % */
#app-frame #character .character-opening > img { object-position: 65% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%), linear-gradient(to bottom, transparent 0, #000 72px);
  mask-image: linear-gradient(to right, transparent 0, #000 34%), linear-gradient(to bottom, transparent 0, #000 72px);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
#app-frame #character .character-opening::after { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px); mask-image: linear-gradient(to bottom, transparent 0, #000 72px); }
@media (max-width: 819.98px) {
  #app-frame #character .character-opening > img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 64px, #000 72%, transparent 100%); }
}

/* ===== round 11 (2026-10-06, founder: "the sections don't flow seamlessly into each other ... make sure the backgrounds are
   properly blended") =====
   Mechanism: round 8 gave the bedroom and Tella's moon short straight top ramps (18 %, 72 px, 64 px), so a blue picture
   arrived over warm ground within ~60-90 px and read as an edge (blend.py: routine 17/41, character 82 on phones). Intent:
   no picture edge reads as a line as you scroll. Letter: those tops (and the bedroom's foot) take the house's eased curve
   (v16 --dissolve shape: slow start), long where the picture has room (the bedroom's foot too), --dissolve where a face sits near the top. */
#app-frame #routine .r4-sky {
  --ease-top: 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%);
  -webkit-mask-image: linear-gradient(to right, transparent 8%, rgba(0,0,0,.45) 40%, #000 72%), var(--ease-top);
  mask-image: linear-gradient(to right, transparent 8%, rgba(0,0,0,.45) 40%, #000 72%), var(--ease-top); }
#app-frame #character .character-opening > img, #app-frame #character .character-opening::after {
  --ease-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)); }
#app-frame #character .character-opening > img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%), var(--ease-top); mask-image: linear-gradient(to right, transparent 0, #000 34%), var(--ease-top); }
#app-frame #character .character-opening::after { -webkit-mask-image: var(--ease-top); mask-image: var(--ease-top); }
@media (min-width: 820px) {   /* the hero's foot: v16's straight 160 px ramp left the bright field ending in a line (blend.py 33) */
  #app-frame .hero--story .hero-art { --ease-foot: linear-gradient(to bottom, #000 calc(100% - 260px), rgba(0,0,0,.6) calc(100% - 195px), rgba(0,0,0,.22) calc(100% - 130px), rgba(0,0,0,.05) calc(100% - 65px), transparent 100%);
    -webkit-mask-image: var(--ease-foot); mask-image: var(--ease-foot); }
}
@media (max-width: 819.98px) {
  #app-frame #routine .r4-sky { -webkit-mask-image: var(--ease-top); mask-image: var(--ease-top); }
  #app-frame #character .character-opening > img {
    -webkit-mask-image: 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 72%, transparent 100%);
    mask-image: 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 72%, transparent 100%); }
}

/* ===== round 11b (2026-10-06, founder: "Tella background image doesn't blend down into the flat blue bg. Same with the pricing
   section, no blending") =====
   Mechanism: overlays that END in an opaque colour other than the ground draw a line where they stop. Tella's picture had no
   foot fade and its navy overlay ends at #141925 over the section's #0d1220; the plans scrim (::before) is solid #1d1813 at
   its foot over the FAQ's #131110 ground; the finale scrim is .95 #1d1813 at its foot over the footer's #11100f. Round 11's meter
   passed them (a 9-10 one-row step, under its 10). Intent: every layer is transparent where its section meets another, so
   only the shared ground shows at the edge. Letter: each such layer takes the house's eased dissolve at that edge. */
#app-frame {
  --dissolve-foot: linear-gradient(to bottom, #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%);
}
#app-frame #character .character-opening > img, #app-frame #character .character-opening::after {
  --ease-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),
    #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%); }
#app-frame #plans::before {   /* both edges: its fixed #1d1813 only matches the ground when the evening arc is off (founder screenshot, arc on) */
  -webkit-mask-image: var(--dissolve-both-long); mask-image: var(--dissolve-both-long); }
#app-frame .finale::before { -webkit-mask-image: var(--dissolve-foot); mask-image: var(--dissolve-foot); }
#app-frame .finale .finale-sky {   /* its foot too: with the scrim dissolved, the sky's own dark foot met the footer in a line (0,3,8 vs 17,16,15) */
  --sky-mask: 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)), 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%);
  -webkit-mask-image: var(--sky-mask); mask-image: var(--sky-mask); }
/* ===== The waitlist form and its sheet (2026-10-30, founder: "Please redesign the join the starwink waitlist UI").
   Intent: a parent gives an email in one calm step and knows what happens next. Replaces site.css .join, v11.css
   .join-heard/.join-phone and the sheet, v15.css .jsh-panel and the 2026-10-25 newsletter rules here (all retired).
   Built on the contact form's approved idiom (pages.css .pg-field: labels above hairline fields, one gold commit).
   Inline (hero, sections, player end): the gold button still unfolds into the email pill; the two optional parts sit
   under it as quiet rows, outside the pill. The sheet (header Join): three real covers, the title, the promise, then
   labelled fields and the button last. The newsletter box stays UNTICKED (founder 2026-10-25, consent law). */
.join { display: grid; gap: var(--sp-3); width: min(100%, 27rem); margin: 0; text-align: left;
  animation: sw-unfold calc(var(--dur-medium) * var(--dz-k)) var(--ease-out) backwards; transform-origin: 0 50%; }
.join-field { display: grid; gap: var(--sp-2); }
.join-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* inline: the pill's placeholder carries it */
.join-row { display: flex; gap: var(--sp-2); padding: 5px; border-radius: calc(var(--radius-control) + 5px);
  background: rgba(var(--text-second-rgb), 0.1); box-shadow: inset 0 0 0 1px var(--hairline-strong);
  transition: box-shadow calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.dz-night .join-row { background: rgba(242, 239, 232, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.22); }
.join-row:focus-within, .dz-night .join-row:focus-within { box-shadow: inset 0 0 0 1px var(--cta), 0 0 0 3px rgba(var(--cta-rgb), 0.22); }
.join-row input { flex: 1 1 auto; min-width: 0; min-height: calc(var(--control-h-md) - 10px); padding: 0 var(--sp-3); border: 0; outline: none;
  background: transparent; color: var(--ink-title); font: inherit; font-size: 1rem; }
.join input::placeholder { color: var(--ink-meta); opacity: 1; }
.dz-night .join input { color: var(--onart-ink); }
.dz-night .join input::placeholder { color: rgba(242, 239, 232, 0.5); }
.join .btn { min-height: calc(var(--control-h-md) - 10px); padding: 0 var(--sp-5); white-space: nowrap; }
.join-heard { display: grid; gap: 6px; padding-inline: 2px; font-size: var(--fs-meta); color: var(--ink-meta); }
.dz-night .join-heard { color: rgba(242, 239, 232, 0.78); }
.join-opt { font-weight: 400; opacity: 0.72; }
/* the "how did you hear" select (the contact form's .pg-select: native list, drawn chevron) and its "other" field */
.join-select { position: relative; display: block; }
.join-select::after { content: ""; position: absolute; right: var(--sp-4); top: 50%; width: 0.45em; height: 0.45em; margin-top: -0.32em; pointer-events: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
.join-heard select { appearance: none; -webkit-appearance: none; width: 100%; padding-right: var(--sp-10, 40px); cursor: pointer; }
.join-heard select option { color: var(--ink-title); background: var(--l1); }
.join-heard :is(input, select) { min-height: 44px; padding-left: var(--sp-4); border: 0; border-radius: var(--radius-control); background: transparent;
  color: var(--ink-title); font: inherit; font-size: 1rem; box-shadow: inset 0 0 0 1px var(--hairline-strong);
  transition: box-shadow calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.join-heard input { padding-right: var(--sp-4); }
.join-heard input[hidden] { display: none; }
.join-heard :is(input, select):hover { box-shadow: inset 0 0 0 1px var(--ink-meta); }
.join-heard :is(input, select):focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.dz-night .join-heard :is(input, select) { color: var(--onart-ink); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.22); }
.dz-night .join-heard :is(input, select):hover { box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.4); }
.dz-night .join-heard select option { color: var(--onart-ink); background: var(--feature-bg); }
.join-heard select:has(option[value=""]:checked) { color: var(--ink-meta); }
.dz-night .join-heard select:has(option[value=""]:checked) { color: rgba(242, 239, 232, 0.55); }
/* the newsletter box: a 44px row, a drawn box that turns gold when ticked (the app's switch colour), the words beside it */
.join-news { display: flex; align-items: flex-start; gap: var(--sp-3); min-height: 44px; padding: 10px 2px; font-size: var(--fs-meta); line-height: 1.45;
  color: var(--ink-meta); cursor: pointer; }
.dz-night .join-news { color: rgba(242, 239, 232, 0.78); }
.join-news input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; display: grid; place-content: center; width: 22px; height: 22px; margin: -1px 0 0;
  border-radius: 7px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--hairline-strong); cursor: pointer;
  transition: background calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light), box-shadow calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.dz-night .join-news input { box-shadow: inset 0 0 0 1.5px rgba(242, 239, 232, 0.4); }
.join-news:hover input { box-shadow: inset 0 0 0 1.5px var(--cta); }
.join-news input::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border: solid var(--gold-ink); border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0); transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out); }
.join-news input:checked, .dz-night .join-news input:checked { background: var(--gold-grad); box-shadow: none; }
.join-news input:checked::after { transform: rotate(-45deg) scale(1); }
.join-news input:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.join-done { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; max-width: 27rem; color: var(--ink-title); font-weight: 700; line-height: 1.45; text-align: left;
  animation: sw-rise calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft) backwards; }
.join-done .ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -2px; border-radius: 50%;
  color: var(--sage, var(--cta)); box-shadow: inset 0 0 0 1.5px currentColor; }
.join-done .ico svg { width: 16px; height: 16px; }
.dz-night .join-done { color: var(--onart-ink); }

/* the sheet: a bottom sheet on phones, a centred card from 820px; a night panel in both themes */
.join-sheet { position: fixed; inset: 0; z-index: 90; }
.jsh-scrim { position: absolute; inset: 0; background: rgba(var(--shadow-rgb), 0.6); opacity: 0;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity calc(240ms * var(--dz-k)) var(--ease-light); }
.jsh-panel { position: absolute; left: 50%; bottom: 0; width: min(100%, 31rem); translate: -50% 0; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: var(--sp-6) var(--site-gutter) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--feature-bg); color: var(--onart-ink); box-shadow: var(--sh-lg), inset 0 1px 0 rgba(242, 239, 232, 0.12);
  transform: translateY(100%); transition: transform calc(300ms * var(--dz-k)) var(--ease-settle); }
.join-sheet.is-open .jsh-scrim { opacity: 1; }
.join-sheet.is-open .jsh-panel { transform: none; }
@media (min-width: 820px) {
  .jsh-panel { top: 50%; bottom: auto; translate: -50% -50%; padding: var(--sp-8); border-radius: var(--radius-sheet);
    opacity: 0; transform: translateY(16px) scale(0.98);
    transition: transform calc(300ms * var(--dz-k)) var(--ease-settle), opacity calc(200ms * var(--dz-k)) var(--ease-light); }
  .join-sheet.is-open .jsh-panel { opacity: 1; }
}
.jsh-x { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(242, 239, 232, 0.08); color: var(--onart-ink); cursor: pointer; transition: background calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.jsh-x:hover { background: rgba(242, 239, 232, 0.16); }
.jsh-x svg { width: 18px; height: 18px; }
.jsh-covers { display: flex; align-items: flex-end; height: 92px; margin: 0 0 var(--sp-5); padding-left: 4px; }
.jsh-covers img { width: 63px; height: 84px; object-fit: cover; border-radius: 9px; opacity: 0;   /* site.js adds .is-in once the file has arrived */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(242, 239, 232, 0.16); }
.jsh-covers img + img { margin-left: -16px; }
.jsh-covers img:nth-child(1) { rotate: -8deg; translate: 0 2px; }
.jsh-covers img:nth-child(2) { position: relative; z-index: 1; translate: 0 -6px; }
.jsh-covers img:nth-child(3) { rotate: 8deg; translate: 0 2px; }
.jsh-covers img.is-in { opacity: 1; }
.join-sheet.is-open .jsh-covers img.is-in { animation: jsh-deal calc(var(--dur-large, 420ms) * var(--dz-k)) var(--ease-out) backwards; }
.join-sheet.is-open .jsh-covers img:nth-child(2) { animation-delay: calc(70ms * var(--dz-k)); }
.join-sheet.is-open .jsh-covers img:nth-child(3) { animation-delay: calc(140ms * var(--dz-k)); }
@keyframes jsh-deal { from { opacity: 0; transform: translateY(14px) rotate(0deg); } }
.jsh-title { margin: 0; padding-right: var(--sp-8); font-size: clamp(1.55rem, 1.3rem + 1vw, 1.95rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--onart-ink); text-wrap: balance; }
.jsh-lead { margin: var(--sp-3) 0 0; max-width: 26rem; font-size: var(--fs-body, 1rem); line-height: 1.5; color: rgba(242, 239, 232, 0.76); text-wrap: pretty; }
.jsh-panel .actions { display: block; margin-top: var(--sp-6); }
.jsh-panel .note { margin: var(--sp-3) 0 0; text-align: center; color: rgba(242, 239, 232, 0.78); }
.jsh-panel .note:empty { display: none; }
/* a refused or failed email reads as one: the app's danger ink (no rule coloured it before; the retired .join-msg had one) */
#app-frame .note.is-error { color: var(--danger-text, var(--danger)); font-weight: 600; }   /* #app-frame: v2.css #app-frame .note outranks a class pair */
#app-frame .dz-night .note.is-error, #app-frame .jsh-panel .note.is-error { color: #e39079; }   /* night --danger (tokens.css:564): the light theme's #cf6a4f is too dark on a night panel */
/* in the sheet every field is labelled above it, the email field is a plain field (no pill), the button closes the form */
.join--sheet { width: 100%; gap: var(--sp-5); animation: none; }
.join--sheet .join-k, .join--sheet .join-k2 { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--onart-ink); }
.join--sheet .join-heard { gap: var(--sp-2); padding: 0; }
.join--sheet .join-row { padding: 0; border-radius: var(--radius-control); background: rgba(242, 239, 232, 0.06); }
.join--sheet .join-row input, .join--sheet .join-heard :is(input, select) { min-height: 52px; padding-left: var(--sp-4); background: rgba(242, 239, 232, 0.06); }
.join--sheet .join-row input { padding-right: var(--sp-4); }
.join--sheet .join-row input { background: transparent; }
.join--sheet .join-news { padding-block: 4px; }
.join--sheet > .btn { width: 100%; min-height: var(--control-h-md); margin-top: var(--sp-1); }
.jsh-panel .join-done { padding: var(--sp-5); border-radius: var(--radius-card); background: rgba(242, 239, 232, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.14);
  max-width: none; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .jsh-panel, .jsh-scrim { transition: opacity 160ms linear; }
  .jsh-panel { transform: none; }
  .join-sheet.is-open .jsh-covers img { animation: none; }
}

/* ===== Mobile hero (2026-10-25, founder: "Mobile version of the website needs a makeover, particularly the hero section").
   Findings and plan: MOBILE-HERO-PLAN-2026-10-25.md. Phones only; the desktop hero is untouched.
   Intent: the picture ends in the ground, never in a line; each world's character stands whole in the frame; the world picker
   sits on the picture it changes; the headline starts on clean ground; the gold action stays on screen 1 at 360x640.
   Letter: an eased foot mask, a right-weighted crop, the picker in the art's grid cell, a balanced eyebrow, one row of actions. */
@media (max-width: 819.98px) {
  /* the foot: the scrim alone stopped at .9, so a tenth of the picture drew a line at its edge (site.css .hero-art::after) */
  /* the band follows the screen's height, so a short phone keeps the gold action on screen 1 (4 / 3.4 put it at 638 px of 640) */
  #app-frame .hero--story .hero-art { aspect-ratio: auto; height: min(85vw, max(240px, 38svh)); }
  @media (max-height: 680px) { #app-frame .hero--story .hero-art { height: max(200px, 35svh); } }   /* Romanian stacks its two actions */
  #app-frame .hero--story .hero-art {
    --ease-foot-ph: linear-gradient(to bottom, #000 70%, rgba(0,0,0,.6) 77.5%, rgba(0,0,0,.22) 85%, rgba(0,0,0,.05) 92.5%, transparent 100%);
    -webkit-mask-image: var(--ease-foot-ph); mask-image: var(--ease-foot-ph); }
  /* the copy no longer sits on the picture: a light scrim under the picker only */
  #app-frame .hero--story .hero-art::after { background: linear-gradient(0deg, rgba(var(--feature-bg-rgb), 0.55) 0%, rgba(var(--feature-bg-rgb), 0) 34%); }
  /* the crop: every character stands right of centre on its plate (media/hero/layers.json boxes reach 0.98); both stages read
     this object-position, so the moving layers stay aligned */
  #app-frame.hero-fizz .hero--story .hero-img { object-position: 85% 50%; }
  #app-frame.hero-fizz .hero--story :is(.hero-img, .fz-stage, .fz-sky, .hr-stage) { transform-origin: 85% 45%; }
  /* the picker on the picture's foot (v16.js home() puts it between the art and the copy), outside the art's mask */
  #app-frame .hero--story > .hero-art { grid-area: 1 / 1; }
  #app-frame .hero--story > .hr-thumbs { grid-area: 1 / 1; align-self: end; position: relative; inset: auto; z-index: 3; max-width: none;
    margin: 0 var(--site-gutter) var(--sp-3); animation: sw-rise calc(var(--dur-large) * var(--dz-k)) var(--ease-soft) calc(600ms * var(--dz-k)) backwards; }
  #app-frame .hero--story > .hero-copy { grid-area: 2 / 1; margin-top: var(--sp-3); }
  /* the eyebrow never leaves one word alone on its second line */
  #app-frame .hero--story .h1 > .eyebrow { text-wrap: balance; }
  /* the two actions share a row when both labels fit (English); a longer label takes its own row (Romanian) */
  #app-frame .hero--story .actions .btn { padding-inline: var(--sp-4); }
}

