/*
 * «Il libro» — le scene del racconto in home (design doc §2–§3). Pacchetto B.
 *
 * Una scena è una .scene alta --len vh con dentro uno .stage sticky: mentre
 * lo stage è incollato, story.js scrive il progresso --p (0→1) e le ancore
 * sulle foto (--ax/--ay/--ar in px dello stage).
 *
 * Tutto ciò che si muove nel DOM è un @keyframes in cui la percentuale È il
 * progresso della scena (§2.6). Due orologi, un solo set di keyframe:
 *  - dove esiste animation-timeline, lo scroll li muove da solo (view());
 *  - altrove (e con html.no-native-timeline) li ferma story.js a p·1000 ms.
 * Proprietà animate: solo transform, opacity, stroke-dashoffset.
 *
 * Strati dentro lo stage (z): foto (.art-plate) 1 · veli e luce 1 ·
 * SVG 2 · testo 3 · dentro-la-bolla e flash 4 · bolle (canvas) 5.
 */

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

/* ================= il cielo ================= */
.story { position: relative; }
.scene[data-sky-from="memory"] { --sky-a: var(--sky-memory, #0b0d0d); }
.scene[data-sky-from="stage"]  { --sky-a: var(--sky-stage, #0a1414); }
.scene[data-sky-to="memory"]   { --sky-b: var(--sky-memory, #0b0d0d); --sky-to-color: var(--sky-memory, #0b0d0d); }
.scene[data-sky-to="stage"]    { --sky-b: var(--sky-stage, #0a1414); --sky-to-color: var(--sky-stage, #0a1414); }
.scene { --mix: 0; --scrim: color-mix(in oklab, var(--sky-a), var(--sky-b) calc(var(--mix) * 100%)); }

/* Il cielo fisso (§2.3) sta SOTTO al flusso (z -1) e si vede solo mentre il
   racconto è a schermo: ogni .stage dipinge comunque il proprio fondo con lo
   stesso colore (--scrim), quindi anche se un fondo del body lo coprisse il
   racconto resta identico. Nessuna transition: segue lo scroll. */
.sky {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none;
    background: color-mix(in oklab, var(--sky-a, #0a1414), var(--sky-b, #0a1414) calc(var(--mix, 0) * 100%));
}
html.in-story .sky { display: block; }

/* ================= scena e stage ================= */
.scene { position: relative; height: calc(var(--len, 200) * 1vh); }
.stage {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    overflow: hidden; contain: paint; background: var(--scrim);
}
.art { position: absolute; inset: 0; }
.art-plate { position: absolute; inset: 0 0 0 30%; z-index: 1; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
/* Dal bianco e nero al colore (richiesta del proprietario, 2026-10-01: vale
   per OGNI scena, sostituisce «ricordo B/N, presente a colori»). Un velo con
   backdrop-filter sopra le foto, dentro .art-plate (che con la sua maschera
   fa da radice: il filtro vede solo le foto, non le bolle né il testo). Si
   anima solo la sua opacità: la foto e il filtro non si ridisegnano. La
   scena 1 (0678) è in bianco e nero all'origine e non ce l'ha. */
.art-gray { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    -webkit-backdrop-filter: grayscale(1) contrast(1.05); backdrop-filter: grayscale(1) contrast(1.05); }
@keyframes gray-out { 0%, 6% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .55, 1) } 92%, 100% { opacity: 0 } }
.art-gray { animation-name: gray-out; }
/* La vignetta chiude gli angoli della foto nel cielo (§2.5). */
.art-plate::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 60% 45%, transparent 55%, var(--scrim) 100%); }
.art-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.art-photo.mono { filter: grayscale(1) contrast(1.05); }
.art-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: hidden; pointer-events: none; }
.art-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; display: block; }

/* ================= il testo ================= */
.copy { position: relative; z-index: 3; }
/* Ogni verso su UNA riga da 900px in su (tablet e desktop): il corpo si
   calcola dalla larghezza, in modo che il verso più lungo («Oggi le porto in
   scena come compagne di viaggio.», 48 battute) stia in ~60% della pagina.
   Sotto i 900px si va a capo, senza rientri: fra un verso e l'altro c'è aria,
   così una riga che continua non sembra un verso nuovo. */
.stanza {
    margin: 0; max-width: var(--stanza, 34rem);
    font-family: var(--serif, Georgia, serif); font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.9rem);
    font-weight: 340; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; line-height: 1.28;
    color: var(--ink, #f1ebdc); text-wrap: pretty;
}
.stanza br { display: none; }
.stanza .line { display: block; }
.stanza .line + .line { margin-top: .32em; }
.stanza .line.turn { font-style: italic; font-weight: 320; color: var(--gold-hi, #f1d88a); }
/* il testo sta sopra la foto: un'ombra larga e morbida lo stacca dai chiari */
.stanza { text-shadow: 0 0 28px rgba(5, 9, 9, .85), 0 1px 2px rgba(5, 9, 9, .6); }

@media (min-width: 900px) {
    .stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
        padding: var(--head-h, 64px) max(var(--gut, 16px), calc((100% - var(--wrap, 1280px)) / 2 + var(--gut, 16px))) 0; }
    .copy { grid-column: 1 / 8; grid-row: 1; }
    .stanza { max-width: none; white-space: nowrap; font-size: min(2.1rem, calc(min(100vw, var(--wrap, 1280px)) * .56 / 23)); }
    .stanza .line + .line { margin-top: .18em; }
}

@media (max-width: 899.98px) {
    /* Sotto 900px: la foto nel 60% alto, la strofa nel 40% basso su scrim (§2.4). */
    .art-plate { inset: 0 0 40% 0;
        -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
    .art-photo { object-position: var(--pos-m, var(--pos, 50% 50%)); }
    .copy {
        position: absolute; left: 0; right: 0; bottom: 0; min-height: 40%;
        display: flex; flex-direction: column; justify-content: safe center;
        padding: 3.2rem var(--gut, 16px) calc(1.6rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, var(--scrim) 72%, transparent);
    }
}

/* ================= i due orologi (§2.6) ================= */
.scene [data-anim] {
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-play-state: paused;
}
@supports (animation-timeline: view()) {
    /* view-timeline-inset 0: senza, la timeline nativa usa lo scroll-padding-top
       di html (l'altezza dell'header) e corre 72px avanti rispetto al p di
       story.js: le cifre del conto alla rovescia comparivano prima della loro
       bolla. Un solo set di keyframe, due orologi IDENTICI (§2.6). */
    .scene { view-timeline: --scene block; view-timeline-inset: 0; }
    .scene [data-anim] {
        animation-timeline: --scene;
        animation-range: contain 0% contain 100%;
        animation-play-state: running;
    }
}
/* Interruttore (Story.forceScrub): spegne l'orologio nativo, scrub da story.js. */
html.no-native-timeline .scene [data-anim] { animation-timeline: auto; animation-play-state: paused; }

/* ================= le righe (§2.7) =================
   Entrano nel loro intervallo con --ease-out; quando entra la riga dopo,
   scendono a .78 nello stesso intervallo: si vede sempre dove si è. */
@keyframes escape-l0 {
  0%, 4% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  18%, 26% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  42%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="escape"] .line[data-line="0"] { animation-name: escape-l0 }
@keyframes escape-l1 {
  0%, 26% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  42%, 56% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  72%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="escape"] .line[data-line="1"] { animation-name: escape-l1 }
@keyframes escape-l2 {
  0%, 56% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  72%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="escape"] .line[data-line="2"] { animation-name: escape-l2 }
@keyframes stop-l0 {
  0%, 4% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  18%, 30% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  44%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="stop"] .line[data-line="0"] { animation-name: stop-l0 }
@keyframes stop-l1 {
  0%, 30% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  44%, 58% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  74%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="stop"] .line[data-line="1"] { animation-name: stop-l1 }
@keyframes stop-l2 {
  0%, 58% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  74%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="stop"] .line[data-line="2"] { animation-name: stop-l2 }
@keyframes character-l0 {
  0%, 3% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  14%, 18% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  30%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="character"] .line[data-line="0"] { animation-name: character-l0 }
@keyframes character-l1 {
  0%, 18% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  30%, 40% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  52%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="character"] .line[data-line="1"] { animation-name: character-l1 }
@keyframes character-l2 {
  0%, 40% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  52%, 70% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  82%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="character"] .line[data-line="2"] { animation-name: character-l2 }
@keyframes character-l3 {
  0%, 70% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  82%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="character"] .line[data-line="3"] { animation-name: character-l3 }
@keyframes settle-l0 {
  0%, 3% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  14%, 20% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  32%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="settle"] .line[data-line="0"] { animation-name: settle-l0 }
@keyframes settle-l1 {
  0%, 20% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  32%, 54% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  66%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="settle"] .line[data-line="1"] { animation-name: settle-l1 }
@keyframes settle-l2 {
  0%, 54% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  66%, 76% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  88%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="settle"] .line[data-line="2"] { animation-name: settle-l2 }
@keyframes settle-l3 {
  0%, 76% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  88%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="settle"] .line[data-line="3"] { animation-name: settle-l3 }
@keyframes stage-l0 {
  0%, 4% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  18%, 34% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  48%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="stage"] .line[data-line="0"] { animation-name: stage-l0 }
@keyframes stage-l1 {
  0%, 34% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  48%, 66% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  78%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="stage"] .line[data-line="1"] { animation-name: stage-l1 }
@keyframes stage-l2 {
  0%, 66% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  78%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="stage"] .line[data-line="2"] { animation-name: stage-l2 }
@keyframes together-l0 {
  0%, 3% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  12%, 18% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  28%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="together"] .line[data-line="0"] { animation-name: together-l0 }
@keyframes together-l1 {
  0%, 18% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  28%, 34% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  44%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="together"] .line[data-line="1"] { animation-name: together-l1 }
@keyframes together-l2 {
  0%, 34% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  44%, 52% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  62%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="together"] .line[data-line="2"] { animation-name: together-l2 }
@keyframes together-l3 {
  0%, 52% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  62%, 74% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  86%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="together"] .line[data-line="3"] { animation-name: together-l3 }
@keyframes together-l4 {
  0%, 74% { opacity: 0; transform: translateY(.45em); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
  86%, 100% { opacity: 1; transform: none }
}
.scene[data-scene="together"] .line[data-line="4"] { animation-name: together-l4 }

/* ================= Scena 0 · Apertura ================= */
.hero-title {
    margin: 0 0 20px; font-family: var(--serif, Georgia, serif); font-size: clamp(2.2rem, 1.2rem + 5vw, 5.4rem);
    font-weight: 330; font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.02em; line-height: 1; color: var(--ink, #f1ebdc);
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--gold-hi, #f1d88a); }
.hero-copy .lede { margin: 0 0 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
/* «Salta agli spettacoli» nell apertura: su desktop compare al focus, su telefono è sempre lì, piccolo. */
.skip-story { display: inline-block; margin-top: 14px; font: 500 13.5px/1.5 var(--sans, system-ui, sans-serif); color: var(--ink-3, rgba(241, 235, 220, .5)); text-decoration: underline; text-underline-offset: 3px; }
.skip-story:hover, .skip-story:focus-visible { color: var(--gold, #d7b259); }
@media (min-width: 900px) {
    .scene-hero .copy { grid-column: 1 / 6; }
    .skip-story:not(:focus-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* «Salta agli spettacoli» (appendice 2 §2): sticky dentro #storia, quindi
   c'è dalla prima scena all'ultima anche senza JS; sparisce con la fine del
   racconto. height 0: non sposta l'apertura di un pixel. z 48: sopra il campo
   di bolle (45), sotto l'header (50). */
/* La riga sta sul BORDO BASSO della pastiglia (pastiglia con bottom: 0):
   così, quando #storia finisce, la pastiglia esce con l'ultima scena invece
   di restare appesa sotto, sopra la firma. Posizione a schermo identica al
   progetto (cima a 100svh − 76px). */
.story-skip-row { position: sticky; top: calc(100svh - 32px); z-index: 48; height: 0; overflow: visible; pointer-events: none; }
.story-skip {
    pointer-events: auto; position: absolute; right: var(--gut, 16px); bottom: 0;
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 20px;
    border-radius: 999px; font: 600 13px/1 var(--sans); letter-spacing: .04em;
    color: var(--gold-hi, #f1d88a); text-decoration: none; white-space: nowrap;
    background: rgba(10, 20, 20, .76);
    box-shadow: inset 0 0 0 1px rgba(215, 178, 89, .55), 0 12px 30px -16px #000;
    transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), background .25s;
}
.story-skip svg { width: 12px; height: 12px; flex: none; }
.story-skip:hover { background: rgba(215, 178, 89, .16); }
.story-skip:focus-visible { outline: 2px solid var(--gold, #d7b259); outline-offset: 3px; }
/* durante l'apertura no: ha già i suoi bottoni e il suo link. Torna appena
   comincia il conto alla rovescia (che si sovrappone alla coda dell'apertura):
   «3… 2… 1…» è proprio il momento in cui chi ha fretta cerca l'uscita. */
.story-skip-row:has(+ .scene-hero.is-active):not(:has(~ .scene-count.is-active)) .story-skip,
.story-skip-row:has(+ .scene-hero.is-before) .story-skip { opacity: 0; transform: translateY(8px); pointer-events: none; }
.menu-open .story-skip { visibility: hidden; }
@media (max-width: 899.98px) {
    /* su telefono il testo sta nel 40% basso: la pastiglia va sotto l'header, sulla foto */
    .story-skip-row { top: calc(var(--head-h, 64px) + 50px); }
    .story-skip { right: 12px; height: 40px; padding: 0 13px 0 15px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .story-skip { transition: none; } }

/* ================= a che punto sei: la barra laterale =================
   Un segno per scena, fisso sul bordo destro, a metà altezza. Il riempimento
   (scaleY) lo scrive story.js con il p della scena; .is-current sulla scena
   a schermo. Solo dentro il racconto (html.in-story), sopra il campo di
   bolle (45) e sotto l'header (50). */
.story-progress {
    position: fixed; right: max(10px, calc(var(--gut, 16px) - 6px)); top: 50%; z-index: 47;
    transform: translate(6px, -50%); opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
html.in-story .story-progress { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.menu-open .story-progress { visibility: hidden; }
.story-progress ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.story-progress a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 28px; height: 26px; text-decoration: none; }
.sp-track { position: relative; width: 2px; height: 100%; border-radius: 2px; background: rgba(215, 178, 89, .22); overflow: hidden; transition: width .25s var(--ease-out); }
.sp-fill { position: absolute; inset: 0; background: var(--gold-hi, #f1d88a); transform-origin: 50% 0; transform: scaleY(var(--sp, 0)); }
.story-progress a.is-current .sp-track { width: 3px; background: rgba(215, 178, 89, .35); }
.sp-label {
    position: absolute; right: 18px; top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
    padding: 6px 11px; border-radius: 999px; background: rgba(10, 20, 20, .86); box-shadow: inset 0 0 0 1px rgba(215, 178, 89, .4);
    font: 500 12.5px/1 var(--sans, system-ui, sans-serif); letter-spacing: .03em; color: var(--gold-hi, #f1d88a);
    transition: opacity .2s, transform .2s var(--ease-out);
}
.story-progress a:hover .sp-label, .story-progress a:focus-visible .sp-label { opacity: 1; transform: translate(0, -50%); }
.story-progress a:focus-visible { outline: none; }
.story-progress a:focus-visible .sp-track { box-shadow: 0 0 0 2px var(--gold, #d7b259); }
@media (max-width: 899.98px) {
    /* su telefono un filo sul bordo: niente etichette, non copre il testo */
    .story-progress { right: 0; }
    .story-progress ol { gap: 4px; }
    .story-progress a { width: 12px; height: 18px; }
    .sp-track { width: 2px; }
    .story-progress a.is-current .sp-track { width: 2px; }
    .sp-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .story-progress, .sp-label, .sp-track { transition: none; } }

@media (max-width: 899.98px) {
    .scene-hero .art-plate { inset: 0 0 36% 0; }
    .scene-hero .copy { min-height: 45%; justify-content: flex-end; }
}
/* Il titolo è già lì al primo paint; se ne va fra p .30 e .45. */
@keyframes hero-copy-out {
    0%, 30% { opacity: 1; transform: none; visibility: visible; animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    45%, 100% { opacity: 0; transform: translateY(-.3em); visibility: hidden }
}
.scene-hero .hero-copy { animation-name: hero-copy-out; }
/* Dentro la bolla: il ricordo. Il cerchio (--cx/--cy/--rim, px) lo scrive
   story.js con lo stesso raggio che il canvas usa per il bordo. */
.hero-inside {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: radial-gradient(closest-side, #121414, var(--sky-memory, #0b0d0d) 70%, var(--sky-memory, #0b0d0d));
    clip-path: circle(var(--rim, 0px) at var(--cx, 50%) var(--cy, 50%));
}
@keyframes hero-inside-in { 0%, 45% { opacity: 0 } 55%, 100% { opacity: 1 } }
.hero-inside { animation-name: hero-inside-in; }

/* ================= Il conto alla rovescia · «Fly with me» =================
   La scena si sovrappone ai vicini (vedi il commento nella vista):
   - margin-top −148vh: comincia a p .60 dell'apertura (220 − .60·120), quando
     la bolla ha già coperto lo schermo di nero (p ≈ .62 a 1440×900 e 390×844);
   - margin-bottom −134vh = −(100 + 34): la scena 1 si incolla SOTTO di lei a
     p .80 (1 − 34/170), prima che la farfalla diventi finestra (.83).
   Le tre misure dipendono da --len 270 (span 170vh) e da --len 220
   dell'apertura: cambiandone una vanno rifatte tutte e tre.

   Fluidità (collaudo del proprietario su Chrome vero, «scattoso»): niente
   canvas né bolle qui, niente maschere ricalcolate a ogni fotogramma. Il
   sipario è un div pieno; la finestra è UN riquadro con una maschera fissa
   (img/bfly-mask.svg) e quattro lastre piene, che cresce solo per transform. */
.scene-count { z-index: 2; margin: calc(-148 * 1vh) 0 calc(-134 * 1vh); pointer-events: none; --cd: min(100vw, 100svh); --curtain: #0b0d0d; }
.scene-count .stage { background: none; }
.count-curtain { position: absolute; inset: 0; z-index: 1; background: var(--curtain); }
/* l'occhio di bue petrolio al centro, sopra il sipario; se ne va prima che
   il sipario diventi finestra, così il colore intorno al buco è uno solo */
.count-spot { position: absolute; inset: 0; z-index: 1; background: radial-gradient(58% 52% at 50% 46%, #0f1a19 0%, rgba(12, 17, 16, .6) 45%, rgba(11, 13, 13, 0) 78%); }
/* Cala mentre il bordo della bolla esce dagli angoli; alla fine se ne va del
   tutto (senza JS niente finestra: si alza e basta). */
@keyframes count-curtain { 0% { opacity: 0 } 3%, 96% { opacity: 1 } 100% { opacity: 0 } }
.count-curtain { animation-name: count-curtain; }
@keyframes count-spot { 0% { opacity: 0 } 3%, 72% { opacity: 1 } 80%, 100% { opacity: 0 } }
.count-spot { animation-name: count-spot; }
.scene-count.is-window .count-curtain, .scene-count.is-window .count-spot { visibility: hidden; }

.count-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: hidden; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.count-light {
    position: absolute; left: 0; top: 0; z-index: 2; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
    background: radial-gradient(closest-side, #fff8e0 0, #f1d88a 18%, rgba(215, 178, 89, .35) 45%, rgba(215, 178, 89, 0) 100%);
    opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.count-window { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; visibility: hidden; will-change: transform; }
.scene-count.is-window .count-window { visibility: visible; }
.scene-count.is-open .count-window { visibility: hidden; }
.cw-tile, .cw-side { position: absolute; background: var(--curtain); }
.cw-tile {
    inset: 0;
    -webkit-mask-image: url(img/bfly-mask.svg), linear-gradient(#000 0 0); -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: xor;
    mask-image: url(img/bfly-mask.svg), linear-gradient(#000 0 0); mask-size: 100% 100%; mask-repeat: no-repeat; mask-composite: exclude;
}
/* le lastre: piene, ognuna un suo strato (il compositore le disegna come
   colore pieno, senza raster); entrano di un po' nell'aria del riquadro */
.cw-side { will-change: transform; }
.cw-t { left: -3000%; right: -3000%; bottom: 90%; height: 6000%; }
.cw-b { left: -3000%; right: -3000%; top: 90%; height: 6000%; }
.cw-l { top: -5%; bottom: -5%; right: 90%; width: 6000%; }
.cw-r { top: -5%; bottom: -5%; left: 90%; width: 6000%; }
.count-bf { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; transform-origin: 0 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }

.scene-count .count-copy {
    position: absolute; inset: 0; z-index: 3; min-height: 0; padding: 0; background: none;
    grid-column: auto; grid-row: auto; display: block;
}
.count-digits { margin: 0; }
/* Solo le cifre, grandi, al centro: una alla volta, mai due insieme. */
.count-digit {
    position: absolute; left: 50%; top: 46%;
    font-family: var(--serif, Georgia, serif); font-weight: 280; font-size: calc(var(--cd) * .42); line-height: 1;
    font-variation-settings: 'SOFT' 100, 'WONK' 0, 'opsz' 144; font-variant-numeric: lining-nums;
    color: var(--gold-hi, #f1d88a);
    background: linear-gradient(180deg, #fbefc8 8%, #f1d88a 38%, #d7b259 70%, #a77e2c 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(6%) scale(.94);
    will-change: transform, opacity;
}
/* Tre finestre di .15 con .02 di buio fra l'una e l'altra: entra salendo
   appena (.045), resta e sale ancora un filo, esce verso l'alto allargandosi. */
@keyframes count-d0 {
    0%, 3% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(6%) scale(.94); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    7.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) translateY(0) scale(1); animation-timing-function: linear }
    14.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) translateY(-2%) scale(1.01); animation-timing-function: cubic-bezier(.6, 0, .9, .4) }
    18%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(-8%) scale(1.06) }
}
@keyframes count-d1 {
    0%, 20% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(6%) scale(.94); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    24.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) translateY(0) scale(1); animation-timing-function: linear }
    31.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) translateY(-2%) scale(1.01); animation-timing-function: cubic-bezier(.6, 0, .9, .4) }
    35%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(-8%) scale(1.06) }
}
@keyframes count-d2 {
    0%, 37% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(6%) scale(.94); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    41.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) translateY(0) scale(1); animation-timing-function: linear }
    48.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) translateY(-2%) scale(1.01); animation-timing-function: cubic-bezier(.6, 0, .9, .4) }
    52%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(-8%) scale(1.06) }
}
.count-digit[data-digit="0"] { animation-name: count-d0; }
.count-digit[data-digit="1"] { animation-name: count-d1; }
.count-digit[data-digit="2"] { animation-name: count-d2; }

/* «Fly with me»: «Fly» corsivo d'oro, grandissimo, come «imparano a volare»
   del titolo; «with me» più piccolo, corsivo color carta. Dimensioni,
   posizione e tratto li scrive scenes.js (sono in px dello stage). */
.count-fly-word {
    font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 300;
    font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
    fill: var(--gold-hi, #f1d88a); stroke: var(--gold-hi, #f1d88a); stroke-linejoin: round;
}
.count-with {
    font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 320; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72;
    fill: var(--ink, #f1ebdc);
}
/* la farfalla: le stesse linee di Mariposa (site.css, .wing-*), in unità del
   disegno (il riquadro è 400×320 unità ≈ 2 px l'una): crescendo per transform
   si ingrossano con lei, e se ne vanno prima di diventare grosse */
.bf-line { fill: var(--curtain, #0b0d0d); fill-opacity: 0; stroke: var(--gold-hi, #f1d88a); stroke-width: calc(1.4 * var(--u1, .5)); stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.bf-vein { fill: none; stroke: var(--gold, #d7b259); stroke-opacity: .55; stroke-width: calc(.8 * var(--u1, .5)); }
.bf-band { fill: none; stroke: var(--gold-hi, #f1d88a); stroke-opacity: .8; stroke-width: calc(.9 * var(--u1, .5)); stroke-dasharray: 2.5 1.3; }
.bf-dot { fill: var(--gold-hi, #f1d88a); }
.bf-body path, .bf-body circle, .bf-body ellipse { fill: var(--curtain, #0b0d0d); stroke: var(--gold-hi, #f1d88a); stroke-width: calc(1.2 * var(--u1, .5)); stroke-linecap: round; }
.bf-body path:first-child { fill: none; }
/* la composizione ferma, solo in movimento ridotto */
.count-still { display: none; }

/* ================= i veli: coprono la bolla della foto mentre il canvas
   ne disegna il doppio (§6.8). Senza canvas (scenes.js o bubbles.js assenti)
   non servono, e coprirebbero la foto per niente. ================= */
.veil {
    --vd: calc(var(--ar, 0px) * .4);
    position: absolute; z-index: 1; pointer-events: none;
    left: var(--vx, var(--ax)); top: var(--vy, var(--ay)); width: var(--vd); height: var(--vd);
    margin: calc(var(--vd) / -2) 0 0 calc(var(--vd) / -2); border-radius: 50%;
    background: var(--scrim);
    -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent);
}
.scene:not(.has-canvas) .veil { display: none; }

/* ================= Scena 0 · la sfera della foto si spegne =================
   Centrato appena sotto il centro della sfera, così l'anello di metallo in
   cima si perde nel buio con lei; non arriva al nero pieno (.9): la mano dietro il
   vetro si intravede ancora, sparisce solo la luce della sfera. */
.veil-hero { --vy: calc(var(--ay) + var(--ar, 0px) * .01); --vd: calc(var(--ar, 0px) * .3); opacity: 0;
    -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent); mask-image: radial-gradient(closest-side, #000 66%, transparent); }
@keyframes veil-hero { 0%, 1.5% { opacity: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1) } 16%, 100% { opacity: .9 } }
.veil-hero { animation-name: veil-hero; }

/* ================= Scena 1 · Scappavano ================= */
.veil-escape { background: var(--sky-memory, #0b0d0d); }
@keyframes veil-escape { 0%, 22% { opacity: 1; animation-timing-function: cubic-bezier(.2, .7, .2, 1) } 40%, 100% { opacity: 0 } }
.veil-escape { animation-name: veil-escape; }

/* ================= Scena 2 · Fermarsi ================= */

/* Le onde dell'ascolto: tre cerchi unitari scalati in --ar, centrati sulla
   bolla sospesa (ancora mano − 0.16w). */
.listen { transform: translate(var(--ax, 0px), calc(var(--ay, 0px) - var(--ar, 0px) * .16)); }
.listen-ring { fill: none; stroke: var(--gold, #d7b259); stroke-width: 1; vector-effect: non-scaling-stroke; transform-origin: 0 0; opacity: 0; }
@keyframes listen-ring-0 {
    0%, 61.9% { opacity: 0; transform: scale(calc(var(--arn, 1000) * .09)) }
    62% { opacity: .35; transform: scale(calc(var(--arn, 1000) * .09)); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    78%, 100% { opacity: 0; transform: scale(calc(var(--arn, 1000) * .42)) }
}
@keyframes listen-ring-1 {
    0%, 67.9% { opacity: 0; transform: scale(calc(var(--arn, 1000) * .09)) }
    68% { opacity: .35; transform: scale(calc(var(--arn, 1000) * .09)); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    84%, 100% { opacity: 0; transform: scale(calc(var(--arn, 1000) * .42)) }
}
@keyframes listen-ring-2 {
    0%, 73.9% { opacity: 0; transform: scale(calc(var(--arn, 1000) * .09)) }
    74% { opacity: .35; transform: scale(calc(var(--arn, 1000) * .09)); animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    90%, 100% { opacity: 0; transform: scale(calc(var(--arn, 1000) * .42)) }
}
.listen-ring-0 { animation-name: listen-ring-0; }
.listen-ring-1 { animation-name: listen-ring-1; }
.listen-ring-2 { animation-name: listen-ring-2; }

/* ================= Scena 3 · Caratteri ================= */
/* La timida della foto, velata al 70% quando parte quella disegnata. */
.veil-shy { --vx: var(--ax-bubble); --vy: var(--ay-bubble); --vd: calc(var(--ar, 0px) * .42); }
@keyframes veil-shy { 0%, 62% { opacity: 0 } 70%, 100% { opacity: .7 } }
.veil-shy { animation-name: veil-shy; }
/* Le tracce: il tratteggio è fermo, la maschera (tratto pieno, pathLength 1)
   avanza con la bolla. d lo calcola story.js da data-trace. */
.trace { fill: none; stroke: var(--gold-hi, #f1d88a); stroke-width: 1.5; stroke-dasharray: 4 8; stroke-linecap: round; opacity: .55; }
.trace-reveal { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
@keyframes trace-bold { 0%, 16% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.6, 0, .9, .4) } 30%, 100% { stroke-dashoffset: 0 } }
@keyframes trace-shy { 0%, 62% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.45, 0, .2, 1) } 90%, 100% { stroke-dashoffset: 0 } }
.trace-reveal-bold { animation-name: trace-bold; }
.trace-reveal-shy { animation-name: trace-shy; }

/* ================= Scena 4 · Posarsi, e un respiro ================= */
@keyframes photo-breath-in { 0%, 44% { opacity: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1) } 56%, 100% { opacity: 1 } }
.photo-breath { animation-name: photo-breath-in; }
.veil-palm { --vx: var(--ax1); --vy: var(--ay1); --vd: calc(var(--ar1, 0px) * .7); }
@keyframes veil-palm { 0%, 26% { opacity: 1; animation-timing-function: cubic-bezier(.2, .7, .2, 1) } 34%, 100% { opacity: 0 } }
.veil-palm { animation-name: veil-palm; }
/* (il velo sulla bolla di fiato non c'è più: a p≈.45 era una macchia nera sul
   viso, e la bolla del canvas copre già quella della foto) */
/* La farfalla in filigrana dietro la bolla di fiato: larga 0.5w, le ali si
   aprono una volta (scaleX delle due metà, l'origine è il corpo). */
.ghost-fly-pos { transform: translate(var(--ax2, 0px), var(--ay2, 0px)) scale(calc(var(--arn2, 1000) * .5 / 200)); }
.ghost-fly { opacity: 0; }
/* la stessa ala incisa di Mariposa (#bb-wing), qui solo il contorno */
.ghost-fly .wing-line, .ghost-fly .wing-vein, .ghost-fly .wing-band, .ghost-fly ellipse { fill: none; stroke: var(--gold, #d7b259); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ghost-fly .wing-dot { fill: var(--gold, #d7b259); }
.ghost-wing { transform-origin: 0 0; }
@keyframes ghost-fly { 0%, 76% { opacity: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1) } 84% { opacity: .22; animation-timing-function: cubic-bezier(.45, 0, .2, 1) } 92%, 100% { opacity: 0 } }
@keyframes ghost-wing { 0%, 76% { transform: scaleX(.2); animation-timing-function: cubic-bezier(.2, .7, .2, 1) } 86%, 100% { transform: scaleX(1) } }
.ghost-fly { animation-name: ghost-fly; }
.ghost-wing { animation-name: ghost-wing; }

/* ================= Scena 5 · Il palco ================= */
/* L'occhio di bue: un div 8×lo stage centrato sulla cupola, con l'ellisse di
   luce fissa (55% × 85% dello stage); si anima solo la scala, .25 → 1. */
.spot {
    position: absolute; z-index: 1; pointer-events: none;
    width: 800%; height: 800%; left: calc(var(--ax, 50%) - 400%); top: calc(var(--ay, 50%) - 400%);
    background: radial-gradient(ellipse 6.875% 10.625% at 50% 50%, transparent 40%, rgba(5, 9, 9, .78) 100%);
    transform-origin: 50% 50%;
}
@keyframes spot-on { 0% { transform: scale(.25); animation-timing-function: cubic-bezier(.2, .7, .2, 1) } 20%, 100% { transform: scale(1) } }
.spot { animation-name: spot-on; }
.flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #f1d88a; opacity: 0; }
@keyframes flash { 0%, 69% { opacity: 0 } 70% { opacity: .18; animation-timing-function: cubic-bezier(.2, .7, .2, 1) } 72%, 100% { opacity: 0 } }
.flash { animation-name: flash; }

/* ================= Scena 6 · Voliamo insieme ================= */
@keyframes photo-laugh-in { 0%, 70% { opacity: 0; animation-timing-function: cubic-bezier(.2, .7, .2, 1) } 78%, 100% { opacity: 1 } }
.photo-laugh { animation-name: photo-laugh-in; }
.veil-together { --vx: var(--ax1); --vy: var(--ay1); --vd: calc(var(--ar1, 0px) * .5); }
/* La platea: sotto il testo (z 2), mai sopra. */
.house-svg circle { fill: var(--gold, #d7b259); }
.house-svg .row-1 { fill-opacity: .525; }
.house-svg .row-2 { fill-opacity: .42; }
.house-svg .row-3 { fill-opacity: .33; }
@media (max-width: 899.98px) { .house-svg .m-hide { display: none; } }
@keyframes house-rise {
    0%, 72% { transform: translateY(0); opacity: .667; animation-timing-function: cubic-bezier(.2, .7, .2, 1) }
    78%, 100% { transform: translateY(-14px); opacity: 1 }
}
.house { animation-name: house-rise; }
@keyframes house-on-0 { 0% { opacity: 0 } 6%, 100% { opacity: 1 } }
@keyframes house-on-1 { 0%, 2% { opacity: 0 } 8%, 100% { opacity: 1 } }
@keyframes house-on-2 { 0%, 4% { opacity: 0 } 10%, 100% { opacity: 1 } }
@keyframes house-on-3 { 0%, 6% { opacity: 0 } 12%, 100% { opacity: 1 } }
@keyframes house-on-4 { 0%, 8% { opacity: 0 } 14%, 100% { opacity: 1 } }
@keyframes house-on-5 { 0%, 10% { opacity: 0 } 16%, 100% { opacity: 1 } }
.house-col-0 { animation-name: house-on-0; }
.house-col-1 { animation-name: house-on-1; }
.house-col-2 { animation-name: house-on-2; }
.house-col-3 { animation-name: house-on-3; }
.house-col-4 { animation-name: house-on-4; }
.house-col-5 { animation-name: house-on-5; }

/* ================= la firma ================= */
.signature-block {
    height: 100vh; height: 100svh; margin-bottom: 120px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    background: var(--sky-stage, #0a1414);
}
.signature {
    margin: 0; font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 300;
    font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-variation-settings: 'WONK' 1; line-height: 1; color: var(--ink, #f1ebdc);
}
.signature-rule { display: block; width: 64px; height: 1px; background: var(--gold, #d7b259); transform-origin: left center; }
/* La riga si disegna dopo la firma (data-reveal → .in lo mette site.js). */
.reveal-on .signature-rule { transform: scaleX(0); transition: transform .5s cubic-bezier(.2, .7, .2, 1) .3s; }
.reveal-on .signature.in + .signature-rule { transform: scaleX(1); }

/* ================= movimento ridotto (§2.8): il libro resta un libro,
   fermo alla fine di ogni scena ================= */
@media (prefers-reduced-motion: reduce) {
    .scene { height: auto !important; }
    .scene .stage { position: relative; height: auto; min-height: 72vh; min-height: 72svh; background: var(--sky-to-color); }
    .scene [data-anim] {
        animation-timeline: auto !important;
        animation-duration: 1s !important;
        animation-delay: -1s !important;
        animation-play-state: paused !important;
    }
    /* L'apertura resta la copertina: titolo, foto, la bolla sull'anello. */
    .scene-hero [data-anim] { animation: none !important; }
    .scene-hero .hero-inside { display: none; }
    .scene-hero .stage { background: var(--sky-stage, #0a1414); }
    .sky, .veil, .art-gray { display: none !important; }
    .signature-rule { transform: none !important; transition: none !important; }

    /* Il conto alla rovescia, fermo: «3 · 2 · 1», ognuno nella sua bollina
       (le disegna scenes.js), e sotto «Fly with me» con la farfalla incisa
       accanto. Niente sovrapposizioni con i vicini, niente sipario. */
    .scene-count { margin: 0; z-index: auto; }
    .scene-count [data-anim] { animation: none !important; }
    .scene-count .stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 72px var(--gut, 16px) 88px; }
    .scene.scene-count .art { position: absolute; inset: 0; height: auto; order: 0; }
    .count-svg, .count-light, .count-window, .count-bf, .count-spot { display: none !important; }
    .scene-count .count-copy {
        position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; gap: 34px;
        grid-column: 1 / -1;
    }
    .count-digits { display: flex; align-items: center; gap: 1.5em; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); }
    .count-digit { position: relative; left: auto; top: auto; opacity: 1; visibility: visible; transform: none; font-size: 1em; will-change: auto; }
    .count-digit + .count-digit::before {
        content: ''; position: absolute; left: -.78em; top: 55%; width: 5px; height: 5px; border-radius: 50%;
        background: var(--gold, #d7b259); -webkit-text-fill-color: initial; opacity: .7;
    }
    .count-still { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
    .count-still-word { margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: .9; }
    .count-still-word em {
        font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 300; font-size: clamp(4.2rem, 3rem + 6vw, 8rem);
        font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; color: var(--gold-hi, #f1d88a);
    }
    .count-still-word span {
        font-family: var(--serif, Georgia, serif); font-weight: 340; font-size: clamp(1rem, .8rem + .8vw, 1.4rem);
        letter-spacing: .32em; margin: .7em -.32em 0 0; font-style: italic; color: var(--ink, #f1ebdc);
    }
    .count-still-fly { width: clamp(96px, 14vw, 170px); height: auto; overflow: visible; transform: rotate(-12deg); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
    .scene .stage { padding-top: calc(var(--head-h, 64px) + 48px); padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899.98px) {
    /* Su telefono, senza sticky: la foto sopra, la strofa sotto, nel flusso. */
    .scene .stage { min-height: 0; display: flex; flex-direction: column; }
    .scene .art { position: relative; inset: auto; height: 56vh; height: 56svh; flex: none; order: -1; }
    .scene .art-plate { inset: 0; }
    .scene-hero .art-plate { inset: 0; }
    .scene .copy { position: relative; min-height: 0; padding-top: 0; background: none; }
    .scene-hero .copy { min-height: 0; }
}
