/* 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. */
html[data-page="rhyme"] #app-frame main > section.rh-hero { padding-top: clamp(8rem, 6rem + 4vw, 10.5rem); }   /* its own room under the fixed header */
.rh-hero { position: relative; padding: clamp(7.5rem, 6rem + 4vw, 10rem) 0 var(--rhythm-standard);
  background: radial-gradient(70% 60% at 78% 40%, rgba(var(--cta-rgb), 0.10), transparent 70%); }
.rh-hero-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.rh-copy .h1 { max-width: 12ch; }
.rh-copy .lead { margin-top: var(--sp-6); max-width: 30rem; }
.rh-go { margin-top: var(--sp-8); }
.rh-page { margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--l1);
  box-shadow: var(--sh-material), inset 0 0 0 1px var(--hairline); }
.rh-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rh-page figcaption { padding: var(--sp-6) var(--sp-8) var(--sp-6); }
.rh-verse { margin: 0; font-size: var(--site-verse); line-height: 1.65; color: var(--ink-title); }
.rh-verse .ln { display: block; }
.rh-w { position: relative; white-space: nowrap; color: var(--ink-title);
  background: linear-gradient(var(--cta), var(--cta)) 0 96% / 100% 2px no-repeat; padding-bottom: 1px; }
.rh-w--a { color: var(--cta); }
.rh-w--b { background-image: linear-gradient(rgba(var(--cta-rgb), 0.55), rgba(var(--cta-rgb), 0.55)); }
.rh-src { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: var(--sp-5) 0 0; padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline); font-size: var(--fs-meta); color: var(--ink-meta); }
.rh-src span:first-child { font-weight: 700; color: var(--ink-body); }
html[data-page="rhyme"] #listen .v16-music { display: none; }   /* this page is about the rhyme: the chapter, not the songs */
.rh-tips { padding: var(--rhythm-standard) 0; }
.rh-tips-in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.rh-tips-head { position: sticky; top: 7.5rem; }
.rh-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.rh-steps li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-6) 0; border-bottom: 1px solid var(--hairline); }
.rh-n { font-size: 2.4rem; line-height: 1; color: var(--cta); text-shadow: var(--glow-numeral); }
.rh-steps h3 { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--ink-title); }
.rh-steps p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-body); max-width: 34rem; }
.rh-start { padding: var(--rhythm-standard) 0; }
.rh-books { list-style: none; margin: var(--sp-10) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-5); }
.rh-book { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none;
  transition: transform calc(var(--dur-small) * var(--dz-k)) var(--ease-out); }
.rh-book img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card);
  box-shadow: var(--sh-card), inset 0 0 0 1px var(--hairline); margin-bottom: var(--sp-3); }
.rh-book b { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; color: var(--ink-title); }
.rh-book > span { font-size: var(--fs-meta); color: var(--ink-meta); }
.rh-book .num { color: var(--cta); }
@media (hover: hover) and (pointer: fine) { .rh-book:hover { transform: translateY(-4px); } }
@media (max-width: 819.98px) {
  .rh-hero { padding-top: 7rem; }
  .rh-hero-in, .rh-tips-in { grid-template-columns: 1fr; }
  .rh-page figcaption { padding: var(--sp-5); }
  .rh-tips-head { position: static; }
  .rh-steps li { grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--sp-4); }
  .rh-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); }
}

/* ===== 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); }
}
