/* ============================================================
   HOME JOURNEY — Sarah & Arturo, main immersive journey
   Loads after styles.css and reuses its tokens (--marfil, --lino,
   --olivo, --peonia, --miel, --dusty-pink, --ink, --ink-deep,
   --font-display, --font-script, --font-body, --margin-h). No new
   colors or fonts are introduced here.

   ARCHITECTURE (structural rebuild — replaces the old one-sticky-
   section-per-scene system): #home-journey is one tall section whose
   height (--journey-h) IS the whole scroll budget. #home-stage pins
   inside it (position:sticky) for that entire budget and never
   un-pins until the journey ends. Every beat is a .world, absolutely
   positioned filling the stage; home-scenes.js buildMasterTimeline()
   drives all of them off ONE scrubbed GSAP timeline, with adjacent
   worlds' in/out tweens overlapping in time so nothing hard-cuts.
   #stage-atmosphere is a second absolutely-positioned stack, same
   technique, sitting behind the worlds — see "ATMOSPHERE SYSTEM".
   ============================================================ */

/* ----------------------------------------------------------
   JOURNEY / STAGE SHELL
---------------------------------------------------------- */
:root {
  /* Total scroll budget — see the label table in home-scenes.js
     buildMasterTimeline(); keep these in sync (1 unit = 1vh on
     mobile). Desktop gets more room per beat than mobile (--journey-h
     below is the mobile value, widened in the @media block further
     down).
     MOBILE PATCH 09: 3020 -> 2935, matching CP.rsvpClosing.end's own
     -85 shift exactly (still 1 unit = 1vh here) — patches 05-08
     compressed everything upstream of RSVP but never touched this
     total, so a ~200-unit dead pinned range had built up after RSVP's
     own CTA settled with nothing left to shorten it; this rescale is
     what actually removes that dead scroll (the CP.rsvpClosing.end
     edit alone wouldn't have — the pin still would have held open for
     the old, larger vh budget regardless of where the timeline's own
     content stopped changing). */
  /* FINAL MOBILE PASS: 2935 -> 1960, matching the new TOTAL_TIME in
     home-scenes.js (+65 opening-sky readable hold, -1040 Explore static
     hold). Still 1 unit = 1vh. */
  /* MICRO-PATCH (Green -> RSVP): 1960 -> 1937, matching the new TOTAL_TIME
     (RSVP's CTAs settle 23 units sooner; the release tail after them is
     unchanged). Still 1 unit = 1vh. */
  --journey-h: 1937vh;
  /* FINAL MOBILE PASS — one global baseline for the CONTINÚA cue and
     one shared "clear line" every bottom-band element on mobile
     (countdown sub, Nos Vemos CTA, Convento CTA, Caminar badge) must
     stay above, so scene content and the cue can never collide no
     matter how the viewport resolves. The index has no
     viewport-fit=cover, so env(safe-area-inset-bottom) is 0 in Safari
     today — the 84px itself is what lifts the cue clear of iOS
     Safari's bottom toolbar; env() is kept for the case it's added. */
  --cue-bottom: calc(84px + env(safe-area-inset-bottom));
  --cue-clear: calc(var(--cue-bottom) + 46px); /* cue's own ~34px height + 12px air */
  /* CROSS-BROWSER PASS: how much of the (100lvh) stage is currently
     hidden under expanded browser toolbars. 0 while scrolling (toolbars
     collapsed) in both Safari and Chrome; up to ~100px+ in iPhone Chrome
     at rest with both toolbars shown. See the cue rules below. */
  --ui-inset: 0px;
  /* Countdown legibility patch — deep near-black green, requested
     specifically for the countdown text over sky/volcano artwork
     where the palette's existing --ink (warm near-black) still read
     too warm/light against the illustration. */
  --countdown-deep: #1e2418;
  /* Convento Santa Clara typographic layout patch — dark, opaque
     tone shared by title, meta, and CTA, for legibility over this
     world's open-sky illustration. */
  --convento-ink: #1c1714;
}
/* Must follow the :root defaults above so it overrides --ui-inset: 0px. */
@supports (height: 100dvh) {
  :root { --ui-inset: calc(100lvh - 100dvh); }
}

#home-journey {
  position: relative;
  height: var(--journey-h);
  /* Was var(--marfil) (cream) — that's also <body>'s own background
     (styles.css), so ANY subpixel rounding gap between this element's
     own bottom edge and .footer beginning (a sticky-unpin + fractional
     --journey-h vh-to-px rounding is enough) let a thin cream line
     show through against the RSVP scrim / footer's dark brown —
     correction #35. ink-deep matches both neighbors, so even if a
     stray sub-pixel gap exists, nothing shows through, cream or
     otherwise. */
  background: var(--ink-deep);
}

#home-stage {
  position: sticky;
  top: 0;
  /* CROSS-BROWSER PASS: 100svh -> 100lvh. ScrollTrigger's pin freezes
     this element at a px height measured once at load, and ignores
     toolbar resizes. At 100svh (the SMALLEST viewport, toolbars
     expanded) that froze the stage short: as soon as iPhone Chrome
     collapses its top + bottom toolbars on scroll, the visible area
     grows past the stage and #home-journey's brown background showed
     as a strip along the bottom — the "brown bottom strip" CONTINÚA was
     falling into. It also meant every vh unit inside the stage (which
     resolves to the LARGE viewport on iOS) was measured against a
     shorter box, pushing vh-anchored copy higher and letting cover-fit
     art crop more sky in Chrome. 100lvh is static (toolbars never change
     it), fills the screen in the scrolling state in both browsers, and
     matches the unit every vh inside the stage already resolves to.
     Desktop: lvh = svh = vh, no change.
     Every in-stage size that used svh below now uses lvh too, so
     all caps are measured against the box they actually live in. */
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none; /* just a clipping/pin container — only a world's own links (below) re-enable this */
}

/* ----------------------------------------------------------
   ATMOSPHERE SYSTEM — one full-bleed tone layer per beat, crossfaded
   by the master timeline, always covering the whole stage so no
   page background ever shows at the edges of a world's own artwork.
   Gradients, not flat fills — "richer than flat color" per the brief.
---------------------------------------------------------- */
.stage-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* decorative only — never intercept clicks meant for a world's own links */
}
.atmosphere-layer {
  position: absolute;
  inset: -2vh; /* slight overscan so parallax/scale never reveals an edge */
  opacity: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
/* Base references from the client: blue #C2DBF0, grey #E7E0DE, night
   #5D6374, green #C3D26F — used as the dominant mid-tone of each
   tonal family below, never as a flat fill (each field still gets a
   lighter top / richer bottom and a soft directional wash). */
.atmosphere-sky {
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #d8eaf6 0%, #c2dbf0 45%, #9fbedb 100%);
}
.atmosphere-stone {
  /* Legibility/mood patch: the original tones here (#efe9e6/#e7e0de/
     #cfc4bf, all R>G>B by ~9-16) read as warm beige/paper, not grey.
     Neutralized to near-equal R/G/B at each stop (same lightness
     progression, light top to richer bottom) for a proper cool-neutral
     grey wash — scoped to this tone only, .atmosphere-grey (Story's
     own tone, later section) is untouched. */
  background-image:
    radial-gradient(100% 60% at 50% 10%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #e9e9e7 0%, #dcdcda 50%, #b8b8b6 100%);
}
.atmosphere-convento {
  background-image:
    radial-gradient(110% 65% at 50% 0%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #ede4d8 0%, #ddd0bf 55%, #c3b39d 100%);
}
.atmosphere-grey {
  background-image:
    radial-gradient(100% 60% at 50% 15%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ece6e3 0%, #e7e0de 45%, #cdc4bf 100%);
}
.atmosphere-dusk {
  background-image:
    linear-gradient(180deg, #7c8598 0%, #5d6374 45%, #363b49 100%);
}
/* Villa's own transitional tone (correction #27) — night at the top,
   green at the bottom, in ONE gradient, so the top/bottom split is
   spatial (baked into the gradient itself) rather than relying on two
   flat-color layers crossfading in time. Endpoints deliberately reuse
   .atmosphere-dusk's own 45% mid-tone (#5d6374) and .atmosphere-olive's
   own 45% mid-tone (#c3d26f) so both handoffs (dusk->villa-mix and
   villa-mix->olive, see home-scenes.js) land on a color each
   neighboring layer already has, instead of introducing new tones at
   the seams. */
.atmosphere-villa-mix {
  background-image:
    radial-gradient(100% 60% at 50% 8%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #5d6374 0%, #748497 22%, #9daf91 50%, #b3c378 74%, #c3d26f 100%);
}
.atmosphere-olive {
  background-image:
    radial-gradient(100% 65% at 50% 10%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #d6dd9a 0%, #c3d26f 45%, #9aa751 100%);
}

/* ----------------------------------------------------------
   WORLD SHELL — a beat's full layer stack. Absolutely positioned
   inside the pinned stage (not its own sticky frame); the master
   timeline tweens opacity/transform per world, never a hard show/hide.
---------------------------------------------------------- */
.world {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Only a world's own links/buttons are ever clickable — never the
   whole full-bleed box (see .world's own pointer-events:none above).
   They stay permanently pointer-events:auto and rely on their own
   autoAlpha-driven visibility to gate real interactivity: GSAP's
   autoAlpha sets visibility:hidden at opacity 0, and a hidden element
   is never hit-testable regardless of pointer-events — so a link that
   isn't currently faded in simply can't be clicked, with no need to
   track "which world is active" separately. */
.world a,
.world button { pointer-events: auto; }

.layer {
  position: absolute;
  inset: -4vh; /* overscan for parallax travel without exposing an edge */
  width: calc(100% + 8vh);
  height: calc(100% + 8vh);
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}
/* Volcán's own landscape sits lower in its box (correction #4) —
   biasing the crop down instead of moving the whole layer keeps the
   peak from being pushed off the top edge. */
.layer--paisaje { object-position: center 75%; }
/* volcan kept at the SAME default object-position as humo/mas-humo
   (no independent crop bias) — an earlier pass shifted only volcan's
   crop upward, which broke its alignment with the smoke layers next
   to it since they stayed at the default. All three now share the
   same crop so the artists' own built-in alignment holds. */

/* Volcano -> Arco patch: soft blue-to-grey atmospheric blend, scoped
   to Arco only. Sits right above Arco's own cielo in paint order so it
   tints the sky without a hard rectangular seam — top ~75% stays
   untouched blue, the lower quarter eases toward grey where
   casas-frente/the street sit. Faded in by home-scenes.js, not a flat
   color swap. */
.arco-grey-blend {
  position: absolute;
  inset: -4vh;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(184, 181, 172, 0) 0%,
    rgba(184, 181, 172, 0) 62%,
    rgba(178, 174, 164, 0.6) 82%,
    rgba(162, 158, 148, 0.88) 100%
  );
}

/* Volcano -> Arco patch: deterministic stacking for the Arco world's
   own layers once #volcano-persist is reparented in front of them
   (see home-scenes.js) at z-index 1. Each of these needs to render
   IN FRONT of that old volcano group, in this order, so they each get
   an explicit z-index higher than 1 and higher than the one before —
   relying on plain DOM order alone left this non-deterministic. Only
   these five; cielo/grey-blend stay at the default (behind everything
   here, correctly). Direct-child combinator (>), not a plain
   descendant selector — #volcano-persist's OWN [data-layer="volcan"]
   (the old volcano peak) also lives inside this world once reparented,
   nested one level deeper, and must NOT match these rules. */
[data-world="arco"] > [data-layer="volcan"] { z-index: 2; }
[data-world="arco"] > [data-layer="nubes"] { z-index: 3; }
[data-world="arco"] > [data-layer="casas-fondo"] { z-index: 4; }
[data-world="arco"] > [data-layer="arco"] { z-index: 5; }
[data-world="arco"] > [data-layer="casas-frente"] { z-index: 6; }

/* Paisaje (the lower landscape) is a bottom-anchored STRIP now, not a
   full-height layer — it must only ever cover the bottom of the
   frame, never compete with the volcano above it. Overrides the
   shared .layer box sizing (top/height) for this instance only; left/
   right/bottom overscan stay inherited from .layer's own inset. */
/* Sky -> Volcano patch: volcan-volcan's own rest position nudged ~1vh
   (~8px at mobile height) higher than the shared .layer default, so
   the crater sits closer under the smoke instead of leaving a visible
   gap between them. `top` (not `transform`) because GSAP's own `y`
   animation on this element overwrites `transform` on every tick. */
.volcano-persist [data-layer="volcan"] {
  top: -5vh;
}

.volcano-persist [data-layer="paisaje"] {
  top: auto;
  /* -4vh (original) minus another 50% of its own 34vh height, moved
     via `bottom` (not `transform`) — home-scenes.js's own GSAP `y`
     animation on this element fully overwrites `transform` on every
     tick, so a transform:translateY() here would get silently
     discarded the moment the entrance tween runs. `bottom` is a plain
     positional property GSAP never touches, so it's safe. */
  bottom: -21vh;
  height: 34vh;
  object-position: center 100%;
}

/* FULL-BLEED SCALE TARGETS — oversized so a painted illustration edge
   never becomes visible as the layer moves/settles during its own
   entrance. Static baseline scale; home-scenes.js's own entrance
   transforms multiply on top of this, not replace it. */
[data-layer="cielo"] { transform: scale(1.25); } /* covers Arco/Convento/Villa/final-Arco cielo in one rule */
[data-layer="ruinas"] { transform-origin: center bottom; }
[data-world="transition"] [data-layer="night-sky"] { transform: scale(1.25); }
/* RSVP's old separate paisaje (scale 2) + casas-fondo (scale 3) zoom
   treatment removed (correction #31) — replaced by one combined
   "rsvp" illustration (images/home/rsvp/rsvp.png) that already bakes
   both together at a natural scale. No extra zoom here on purpose:
   the whole point of the new asset is a calmer, less zoomed-in
   closing composition, using the same plain cover treatment as every
   other .layer instead of a bespoke multiplier. */

/* GRIS / GRIS 2 — the actual prepped watercolor wash images (not a
   flat CSS fill) behind Nos Vemos' and Story's own photos. */
.layer--wash {
  transform: scale(1.25);
  object-position: center;
}

/* Opening handoff clouds (checkpoint 01) — two independent groups,
   each mostly off their own edge, so roughly half of each is visible
   inside the frame while the rest bleeds off-screen. */
[data-layer="cloud-left"],
[data-layer="cloud-right"] {
  width: 70%;
  height: 45%;
  inset: auto;
  object-fit: contain;
  object-position: center;
}
[data-layer="cloud-left"] { left: -35%; top: 8%; }
[data-layer="cloud-right"] { right: -35%; top: 22%; }

/* ----------------------------------------------------------
   FLOATING OBJECTS — content that must paint above every .world
   regardless of which is active: either it spans a transition
   (boton_historia) or it must stay visually static while a sibling
   .world's own content changes underneath it (volcano-persist). Two
   .world elements can never achieve the latter between each other —
   same stacking level, and an animated opacity<1 forces its own
   stacking context — so this layer exists specifically for that.
---------------------------------------------------------- */
.floating-objects {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

/* VOLCANO-PERSIST — smoke + peak, shared unmoving across the whole
   Volcano -> Arco handoff. Sized/positioned exactly like a world's own
   .layer stack so it lines up with sky-volcano's cielo/paisaje
   underneath it without any per-world alignment tuning. */
.volcano-persist {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.volcano-persist .layer { pointer-events: none; }

/* ----------------------------------------------------------
   COPY STAGE — every text block, above ALL illustration layers
   including volcano-persist's dynamic z-index switch (correction #3).
   Deliberately not a .world: nothing here should ever be at risk of
   sitting under a floating group again.
---------------------------------------------------------- */
.copy-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.copy-stage a,
.copy-stage button { pointer-events: auto; }

.floating-badge {
  width: min(150px, 38vw);
  opacity: 0;
  pointer-events: auto; /* gated by its own autoAlpha visibility, same reasoning as .world a above */
  transition: transform 0.25s ease;
}
.floating-badge img { display: block; width: 100%; height: auto; }
/* scale only — .floating-badge--historia's resting position no longer
   uses `transform` for centering (correction #18: left/right/margin
   instead, to stay clear of its own GSAP y-tween), so a translateX()
   here would have shifted it sideways on hover instead of just
   scaling it. */
.floating-badge:hover, .floating-badge:focus-visible { transform: scale(1.05); }

/* ----------------------------------------------------------
   HANDOFF CLOUDS — correction #1. Sits above #invitation-intro's own
   z-index:300 so clouds can visually rise over the still-disappearing
   envelope, synced by home-scenes.js to the same scroll range as
   invitation-intro.js's own exit.
---------------------------------------------------------- */
.handoff-clouds {
  position: fixed;
  inset: 0;
  z-index: 310;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.handoff-cloud {
  position: absolute;
  width: 70%;
  height: 45%;
  object-fit: contain;
}
.handoff-cloud--left { left: -35%; top: 55%; }
.handoff-cloud--right { right: -35%; top: 42%; }

/* ----------------------------------------------------------
   HOME STORY PROGRESS — persistent scroll/story cue, fixed to the
   viewport at one stable location for the entire index experience.
   Unchanged from the previous architecture — still a global overlay,
   not scoped to any one world.
---------------------------------------------------------- */
.home-story-progress {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(20px, 4vh, 48px) + 75px);
  bottom: calc(clamp(20px, 4vh, 48px) + 75px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 310;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, color 0.5s ease;
}
/* FINAL MOBILE PASS: 0.68 -> 0.82 plus a soft halo in the tone's
   opposite color, so the cue holds contrast over blue sky, grey,
   beige architecture and green alike (night gets the light variant). */
.home-story-progress.is-visible { opacity: 0.82; pointer-events: auto; }
.home-story-progress.is-visible:hover,
.home-story-progress.is-visible:focus-visible { opacity: 1; }
.home-story-progress { text-shadow: 0 1px 10px rgba(255, 251, 242, 0.75), 0 0 2px rgba(255, 251, 242, 0.5); }
.home-story-progress.is-dark { color: var(--white); text-shadow: 0 1px 10px rgba(20, 18, 12, 0.55), 0 0 2px rgba(20, 18, 12, 0.4); }
/* MICRO-PATCH: Villa-only tone — deep olive (already in the palette as
   --countdown-deep) with the light halo, and a firmer opacity, because the
   default ink / night-white cue read too light over Villa's pale sky and
   pond. Declared after .is-dark so it wins while both classes overlap. */
.home-story-progress.is-villa { color: var(--countdown-deep); text-shadow: 0 1px 10px rgba(255, 251, 242, 0.85), 0 0 2px rgba(255, 251, 242, 0.6); }
.home-story-progress.is-visible.is-villa { opacity: 0.96; }

@media (min-width: 721px) {
  /* Darker + bolder cue on computers/tablets: deepest brown at full
     strength, slightly larger, a hairline stroke in its own colour for
     weight (the font has one weight, so font-weight would fake-bold it),
     and no soft halo. Phones keep their own version (<=720px block). */
  .home-story-progress { color: var(--ink-deep); text-shadow: none; -webkit-font-smoothing: antialiased; }
  .home-story-progress.is-visible { opacity: 1; }
  .home-story-progress .home-story-progress-label { font-size: 14px; -webkit-text-stroke: 0.45px currentColor; }
  .home-story-progress .home-story-progress-arrow { font-size: 15px; -webkit-text-stroke: 0.45px currentColor; }
}
.home-story-progress-label {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-story-progress-arrow {
  display: block;
  font-size: 13px;
  line-height: 1;
  animation: home-story-drift 3.6s ease-in-out infinite;
}
@keyframes home-story-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-story-progress-arrow { animation: none; }
}

/* ----------------------------------------------------------
   COPY — one poetic thought, at most one CTA, per world. Replaces
   the old .scene-content (same visual language, new container).
---------------------------------------------------------- */
.copy {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  padding: 0 var(--margin-h);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
/* Two copy blocks can coexist in the same world (sky-volcano merges
   two beats) — position each explicitly instead of both centering
   on top of each other. */
.copy--sky { top: 30%; }
/* Volcano copy keeps the SAME position as the sky copy it replaces —
   patch pass correction #1: the text shouldn't jump to the bottom,
   only the illustration underneath it should change. */
.copy--volcano { top: 30%; }
/* Patch (Volcano -> Arco transition): the countdown belongs to the
   street/casas-frente foreground, not floating up in the sky. */
.copy--countdown { top: auto; bottom: 18vh; transform: none; }
.copy--lower { top: auto; bottom: 12vh; transform: none; }
/* RSVP's houses are scaled ~200% (checkpoint 12) and now reach much
   higher into the frame than a default-centered copy block clears. */
.copy[data-copy-world="rsvp"] { top: 15%; transform: none; }
.copy--on-dark { color: var(--white); }
.copy--on-dark .scene-detail { color: rgba(255, 255, 255, 0.75); }

/* ----------------------------------------------------------
   CONVENTO SANTA CLARA — typographic layout patch. This world's
   illustration (cielo -> nubes -> ruinas) has three distinct empty
   zones — open sky above, the ruin's own central arch/opening, and
   the ground plane at the bottom — so its copy is laid out as three
   independently-positioned pieces keyed to those zones, instead of
   the shared .copy centered-flex-column pattern every other section
   uses. Scoped entirely to .convento-copy/-title/-meta/-cta so
   nothing here reaches Villa or any other .copy--lower/.copy user.
   Visibility/timing is untouched — home-scenes.js's textBeat() still
   only ever tweens the outer .copy div's autoAlpha/y; these rules
   only change where things sit once visible. */
.convento-copy {
  position: absolute;
  /* Override the base .copy centered-flex-column layout entirely —
     children below position themselves independently against this
     box's edges. top AND bottom both need to be 0 (not "auto" on
     either side) for this to actually STRETCH to fill the frame —
     with any side left auto, the box collapses to its own content
     height (0, since every child is position:absolute and removed
     from flow) and children's top/bottom percentages end up measured
     from the wrong edge entirely. */
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transform: none;
  display: block;
  padding: 0;
  gap: 0;
}
.convento-copy .convento-cta { pointer-events: auto; }

/* Qualified as .convento-copy .convento-X (specificity 0,2,0), not
   bare .convento-X — the shared .scene-headline/.scene-detail/
   .scene-cta base rules these elements ALSO carry are defined later
   in this file, and at equal specificity source order wins, which
   silently discarded color/font-size/line-height/text-shadow here.
   The extra ancestor qualifier guarantees these win regardless of
   where the base rules happen to sit. */
.convento-copy .convento-title {
  position: absolute;
  top: calc(8vh + 60px);
  left: 50%;
  transform: translateX(-50%);
  /* Widened (82%->92%) and font-size lowered slightly — "AQUÍ
     COMENZARÁ" (line 1's own <br>-forced content) was wrapping into
     a 4th line at 82%/2.4rem-min on a 375px viewport, breaking the
     required exact 3-line split. max-width:none is the actual fix
     for the wrap, though — .scene-headline's own max-width:16ch (13ch
     under 720px) was silently capping this box's real width to ~2/3
     of what `width` asked for, since max-width and width don't
     conflict via specificity (different properties) and the base
     rule's max-width was never overridden until now. */
  width: min(92%, 520px);
  max-width: none;
  text-align: center;
  color: var(--convento-ink);
  font-size: clamp(2rem, 6.6vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(255, 251, 242, 0.7);
  z-index: 21;
}
.convento-copy .convento-meta {
  position: absolute;
  top: 40vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(58%, 300px);
  text-align: center;
  /* Same tone as .convento-title (--convento-ink), not the softer
     --convento-ink-soft — requested to match exactly. */
  color: var(--convento-ink);
  /* 12% bigger than the original clamp(1.1rem, 3.2vw, 1.8rem), then
     -10%, then another -6% on request:
     clamp(1.23rem, 3.58vw, 2.02rem) * 0.9 * 0.94. */
  font-size: clamp(1.04rem, 3.03vw, 1.71rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-style: normal;
  text-shadow: 0 2px 14px rgba(255, 251, 242, 0.6);
  z-index: 21;
}
.convento-copy .convento-cta {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  top: auto;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--convento-ink);
  font-size: clamp(1.2rem, 3.8vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  z-index: 21;
  pointer-events: auto;
}
@media (max-width: 430px) {
  /* Same ancestor-qualified selectors as above, and for the same
     reason — font-size here would otherwise lose to .scene-headline's
     own font-size at equal specificity. */
  .convento-copy .convento-title {
    top: calc(7.5vh + 60px);
    width: 92%;
    font-size: clamp(1.9rem, 7.6vw, 3.6rem);
  }
  .convento-copy .convento-meta {
    top: 39vh;
    width: 62%;
    /* 12% bigger than the original clamp(1rem, 3.3vw, 1.4rem), then
       -10%, then another -6% on request:
       clamp(1.12rem, 3.7vw, 1.57rem) * 0.9 * 0.94. */
    font-size: clamp(0.95rem, 3.13vw, 1.33rem);
  }
  .convento-copy .convento-cta {
    bottom: 8vh;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
}

.scene-eyebrow {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.copy--on-dark .scene-eyebrow { color: rgba(255, 255, 255, 0.7); }

.scene-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.3;
  max-width: 16ch;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(255, 251, 242, 0.6);
}
.copy--on-dark .scene-headline {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(20, 18, 12, 0.5);
}

.scene-detail {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  color: var(--lino);
  letter-spacing: 0.02em;
}

.scene-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}
.scene-cta span { transition: transform 0.25s ease; }
.scene-cta:hover, .scene-cta:focus-visible { gap: 14px; color: var(--lino); }
.scene-cta:hover span, .scene-cta:focus-visible span { transform: translateX(2px); }
.copy--on-dark .scene-cta { color: var(--white); }
.copy--on-dark .scene-cta:hover { color: var(--miel); }

.scene-cta--muted {
  border-bottom-color: transparent;
  opacity: 0.8;
  font-size: 15px;
}

.scene-cta--badge {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 8px;
}
.scene-cta--badge img {
  display: block;
  /* width:100% (was its own independent min(168px,45vw)) — that value
     didn't match .villa-copy-group__cta's own width (min(168px,38vw)),
     the only element this rule is used on, so the image quietly
     overflowed its anchor at viewports where vw (not the px cap)
     was binding, throwing off the careful centering over copy-badge.
     100% makes the anchor's own width the single source of truth. */
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}
.scene-cta--badge:hover img,
.scene-cta--badge:focus-visible img { transform: scale(1.05); }

/* CIELO-BOKEH — Villa's own sky (renamed off the generic
   [data-layer="cielo"] every other world uses — correction #26),
   fully overriding the generic .layer box instead of just its
   object-fit — correction #27. The generic box (inset:-4vh, full
   viewport height) plus object-fit:contain left most of that tall box
   empty BELOW the actual letterboxed image, which meant a bottom-edge
   mask (below) landed on empty space instead of the image itself —
   its fade stops never touched anything visible. Locking this
   element's own box to the asset's real aspect-ratio (1080/909) makes
   the box's rendered height track the image's own height directly, so
   there's no leftover empty space for the mask math to miss — the
   gradient now dissolves the image's OWN bottom edge, not empty air
   below it. object-position:top keeps it anchored to the sky's place
   in the composition; the mask is what removes its rectangular
   canvas edge so it dissolves into whatever atmosphere layer is
   currently behind it instead of hard-cutting into it. */
[data-world="villa"] [data-layer="cielo-bokeh"] {
  position: absolute;
  inset: auto;
  top: -2vh;
  left: -2vh;
  right: -2vh;
  width: calc(100% + 4vh);
  height: auto;
  aspect-ratio: 1080 / 909;
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.35) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.35) 88%, transparent 100%);
}

/* JARDIN — its own group (correction #9, badge moved out in #24 — see
   .villa-copy-group below) so it can still be animated as its own
   unit independent of the copy card above it. */
.villa-jardin-group { position: absolute; inset: 0; }

/* VILLA-COPY-GROUP — copy-badge (Villa's headline as one lace/paper
   decorative piece, text baked into copy-badge.png, replacing the old
   plain .copy[data-copy-world="villa"] text block) with the "Ver
   todos los eventos" CTA overlapping its lower edge — correction #24,
   same mounting technique as Historia's own photo-frame + CTA earlier
   in the journey. This wrapper is a plain, static frame of reference
   (never touched by GSAP, no transform of its own) — top-anchored and
   sized to sit in the open sky above casa/jardin, with room on every
   side instead of crowding the architecture below it. Both children
   are independently GSAP-animated against this shared box. */
.villa-copy-group {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: clamp(64px, 11vh, 112px);
  margin-inline: auto;
  width: min(320px, 74vw);
  aspect-ratio: 1 / 1;
}
/* Horizontal centering is left:0/right:0/margin-inline:auto — NOT
   left:50%+transform — this element gets a GSAP y-rise entrance, and
   a static transform on the same element would be silently
   overwritten the moment GSAP composes its own (same reasoning as
   .story-photo-object--tray and .floating-badge--historia earlier
   this project) — correction #23. No rotation (removed per request —
   correction #26; was `rotate(10deg)` via gsap.set in home-scenes.js). */
.copy-badge {
  position: absolute;
  inset: 0;
  transform: none;
  filter: drop-shadow(0 14px 26px rgba(20, 18, 12, 0.25));
}
.copy-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* CTA mounted on the copy card's own bottom edge, ~30% of the card's
   own height overlapping upward onto it (bottom is a plain positional
   property, not transform, for the same GSAP-coexistence reason as
   copy-badge above — this element's own entrance also animates `y`).
   z-index above copy-badge so it visibly paints in front, reading as
   physically attached rather than floating separately below it. */
.villa-copy-group__cta {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -69px; /* was -29px, moved 40px down on request */
  margin-inline: auto;
  width: min(168px, 38vw); /* +12% over 150px/34vw — Villa CTA enlarged on request */
  /* Soft ornamental lift so the badge reads as a physical card sitting
     above copy-badge, not flat against it. */
  filter: drop-shadow(0 10px 18px rgba(20, 18, 12, 0.25));
}

/* ----------------------------------------------------------
   COUNTDOWN — typography-as-composition, no boxed widget. Reuses the
   live countdown engine already in site.js (initCountdown ->
   #cd-days/#cd-hours/#cd-minutes).
---------------------------------------------------------- */
.scene-countdown-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.35em;
  /* Split from a single `gap` shorthand: on narrow viewports this row
     wraps ("246 días · 23 horas" / "22 min" on two lines), and the
     default 0.35em row-gap left too much air between those two
     wrapped lines — tightened separately from the horizontal spacing
     between day/hour/min groups, which stays the same. */
  row-gap: 0.05em;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.scene-countdown-value strong {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 500;
  min-width: 2ch;
  text-align: center;
  display: inline-block;
}
.scene-countdown-unit {
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Legibility patch: var(--muted) (#8a7f63, pale olive-beige) was
     hard to read over sky/smoke — swapped for --ink, the same warm
     near-black used for headlines elsewhere, not a new color. */
  color: var(--ink);
  margin-right: 0.4em;
  /* Legibility patch: thin text-stroke reinforces this small
     uppercase label's thin strokes against busy sky/smoke — same
     dark tone as the fill, so it just thickens the letterforms
     slightly rather than adding a visible outline color. */
  -webkit-text-stroke: 0.5px var(--ink);
}
.scene-countdown-dot { color: var(--olivo); opacity: 0.7; }
.scene-countdown-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--lino);
}
/* Volcano->Arco patch: stronger vertical hierarchy. "Faltan" + the
   numbers sit up in the sky/cloud area, well clear of the arch below;
   the supporting line sits well below that, opening real breathing
   room between the two. Legibility patch: pulled the group's own lift
   back by ~18vh (~140px mobile), from -35vh to -18vh — at -35vh it sat
   glued to the top edge, right against the nav; -18vh keeps it clearly
   in the upper sky with real margin instead, still nowhere near the
   volcano smoke. Both are safe as plain CSS transforms/offsets —
   textBeat() only ever tweens the parent .copy div, never these
   children directly. Soft light text-shadow added on both pieces —
   same treatment .scene-headline already uses elsewhere for text over
   illustrations — since this sits directly over sky/smoke of varying
   brightness. */
.copy--countdown {
  /* Refinement: tighter column gap for this block specifically (the
     base .copy gap is 18px) — "Faltan" and the numbers should read as
     one compact, connected group, not spread out. Cut further (8px ->
     2px) since "Faltan" now also moves independently above the
     numbers (see below) and needs to read as close to them as the
     layout gap can get. */
  gap: 2px;
}
.copy--countdown .scene-eyebrow {
  /* Refinement: darkened to match the numbers/labels — was still
     using the base .scene-eyebrow's var(--muted) (pale olive-beige). */
  color: var(--countdown-deep);
  /* Refinement: "Faltan" now moves independently, 75px higher than
     the numbers below it (which stay exactly where they were — see
     .scene-countdown-value) — no longer sharing one rigid transform
     with them. calc() keeps it relative to the same -40vh baseline
     instead of a separate hardcoded value. */
  transform: translateY(calc(-40vh - 75px));
  text-shadow: 0 2px 18px rgba(255, 251, 242, 0.7);
}
.copy--countdown .scene-countdown-value {
  /* Refinement: the requested 80px-more-on-top-of-55px would total
     -135px, but the measured gap at -55px was only 22px (eyebrow
     bottom at y=184, value top at y=206) — another 80px would flip
     the numbers above "Faltan" again, same break as the earlier 200px
     attempt. Capped at 20px more (75px total) instead: closes the gap
     to ~2px, as tight as it can get without the two blocks colliding.
     "Faltan" and "para encontrarnos" both stay exactly where they
     were. */
  transform: translateY(calc(-40vh - 75px));
  text-shadow: 0 2px 18px rgba(255, 251, 242, 0.7);
}
.copy--countdown .scene-countdown-sub {
  /* Refinement: 30px lower than the previous pass's 15px (now 45px)
     — still a plain transform (margin-top doesn't work on this last
     child since .copy--countdown is bottom-anchored with auto height:
     it only grows the column upward instead of moving this element). */
  transform: translateY(45px);
  /* Refinement: matches "Faltan" — deep near-black green instead of
     var(--lino), which was too light against sky/smoke. */
  color: var(--countdown-deep);
  text-shadow: 0 2px 18px rgba(255, 251, 242, 0.7);
}
/* Line break only forced on mobile — desktop keeps its own natural
   wrap/one-line reading, unaffected. */
.scene-countdown-sub-break { display: inline; }

/* ----------------------------------------------------------
   INVITATION REVEAL CARD — legacy typography reference for the
   envelope's own card (styles.css .intro-reveal echoes this), kept
   as-is; unrelated to the journey rebuild.
---------------------------------------------------------- */
.invitation-reveal-card {
  position: relative;
  z-index: 5;
  width: min(420px, 78vw);
  aspect-ratio: 4 / 4.3;
  margin: auto;
  padding: 15% 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  border-radius: 2px;
  background: linear-gradient(165deg, #fffdf8 0%, var(--marfil) 55%, #f4ecdb 100%);
  box-shadow: 0 4px 14px rgba(35, 28, 16, 0.16);
}
.invitation-reveal-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--lino);
}
.invitation-reveal-names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  color: var(--ink);
}
.invitation-reveal-names .script { color: var(--lino); }
.invitation-reveal-date {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------
   FRAMED PHOTOS — Nos Vemos' photo-frame.webp (its own tray position,
   correction #6) and Story's own, distinct photo-alt.webp, ~75% larger
   than the shared default (correction #8) and grouped with
   boton_historia so they travel together — see .story-photo-group.
---------------------------------------------------------- */
.story-photo-object {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 40%;
  width: min(240px, 56vw);
  aspect-ratio: 736 / 1104;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgba(20, 18, 12, 0.28));
}
.story-photo-object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* TRAY — its own resting position, not the shared centered default:
   high, near the nav, tilted, with negative space below for text
   (correction #6). */
.story-photo-object--tray {
  top: 0;
  width: min(403px, 88.4vw); /* ~30% larger than the 240px shared default (patch pass correction #9), then another +30% on request: 310px/68vw * 1.3. */
  /* transform is owned entirely by GSAP now (xPercent:-50 + rotation:15,
     set in home-scenes.js right before its riseIn tween) — correction
     #17. A static translateX(-50%) here fought GSAP's own y-animation
     for the same computed transform: once GSAP composed its first
     frame it discarded this rule's contribution, so the tray lost its
     horizontal centering the moment its rise-in tween ran. */
  transform: none;
  margin-top: calc(80px + env(safe-area-inset-top));
}

/* CAMINAR + BOTON_HISTORIA — one physical group (correction #8),
   editorial-composition patch: the group is now top-anchored (was
   vertically centered at 40%, landing in the same zone as the
   headline above it) so it reads as headline -> frame -> badge, top
   to bottom, with real separation from the text. Top-anchoring
   (top:320px + transform:translateX(-50%) only, no Y-transform
   component) also coexists cleanly with this element's own GSAP
   riseIn() entrance below — that tween animates y from 12vh to 0, and
   a rest state of y:0 lines up exactly with this being purely
   top-anchored; a translateY(-50%) here would have been silently
   discarded the first time GSAP touched the element anyway (its own
   y:0 rest value would win), same lesson as the volcano-persist
   paisaje fix much earlier in this project. */
.story-photo-group {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 272px;
  width: min(677px, 96vw); /* +10% over the previous 615px/87vw (correction #19) */
  aspect-ratio: 736 / 1104;
  /* transform owned entirely by GSAP (xPercent:-50, set in
     home-scenes.js right before its riseIn tween) — same fix as
     .story-photo-object--tray above (correction #17): a static
     translateX(-50%) here was overwritten the moment GSAP's own
     y-animation composed the transform, shifting the group off-center. */
  transform: none;
}
.story-photo-object--caminar {
  position: absolute;
  inset: 0;
  transform: none;
  width: auto;
  z-index: 1; /* explicitly behind the badge below — correction #21 */
  filter: drop-shadow(0 18px 30px rgba(20, 18, 12, 0.28));
}
/* Badge mounted ON TOP of the frame's lower portion, not hanging below
   it — bottom:-45px (a plain positional property, not transform) drops
   it 75px lower than the previous 30px pass, further into/over the
   photo (correction #21). z-index:2, explicitly above the caminar
   photo's own z-index:1, so stacking no longer depends on DOM order
   alone.
   Horizontal centering is `left:0; right:0; margin-inline:auto` —
   NOT `left:50%+ transform:translateX(-50%)` — because this element's
   own entrance animates `y` via GSAP (14px -> 0, then a fade-out);
   left/right/margin centering never touches `transform`, so GSAP's
   y-only tween can never overwrite it (correction #18).
   Size +25% over the previous min(150px,34vw) (correction #20). Drop
   shadow added so the enlarged badge reads as layered above the photo
   rather than flat against it — same warm shadow tone as the frame's
   own filter above, softer/tighter since the badge is much smaller. */
.floating-badge--historia {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: -45px;
  z-index: 2;
  margin-inline: auto;
  width: min(188px, 43vw);
  filter: drop-shadow(0 10px 18px rgba(20, 18, 12, 0.28));
}

/* Nos Vemos' text sits a bit higher than before, balancing against the
   now-larger tray above it — patch pass correction #9. */
.copy[data-copy-world="nos-vemos"] { top: auto; bottom: 15vh; transform: none; }

/* ----------------------------------------------------------
   STORY ("Después de encontrarnos...") — editorial layout patch.
   Was vertically centered (same default as everything else), landing
   in almost the same zone as the photo group below it and reading as
   "text glued to the photo." Now an explicit top-anchored headline,
   then the frame further down, then the badge mounted on the frame's
   own bottom edge — headline -> frame -> badge, in that vertical
   order, with real air between each.
---------------------------------------------------------- */
.copy[data-copy-world="story"] {
  top: 85px;
  bottom: auto;
  transform: none;
}
.copy[data-copy-world="story"] .scene-headline {
  /* max-width:none overrides .scene-headline's own max-width (16ch,
     13ch under 720px) — same fix as Convento's title needed: width
     and max-width are different properties, so max-width silently
     caps this box regardless of what width says unless explicitly
     cleared here. */
  width: min(84%, 520px);
  max-width: none;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   EXPLORE — a numbered editorial list (not cards, not a button grid).
   Structural logic (row grid, border rhythm, generous touch targets)
   referenced from the Jatnna & Rainerd project's own "Explora la
   boda" section — colors/typography are this project's own, only the
   spacing/grid pattern was reused. Rebuilt (correction #28) because
   .explore-frame had no top padding at all, so the list started at
   y:0 and collided with .copy.explore-heading (absolutely positioned
   at top:14% in #copy-stage, a separate stacking layer) instead of
   sitting cleanly below it.
---------------------------------------------------------- */
.explore-frame {
  position: relative;
  z-index: 5;
  max-width: 640px;
  margin: 0 auto;
  /* top clears the heading (top:14%, ~2 lines) with real air below it;
     Jatnna's own reference used a plain fixed top padding + margin-top
     on the list for this same gap, done here as one clamp so it scales
     with viewport height instead of a fixed px value. */
  padding: clamp(150px, 26vh, 230px) var(--margin-h) 40px;
  text-align: center;
}
.copy.explore-heading {
  position: absolute;
  top: 14%;
  left: 0; right: 0;
  transform: none;
  display: block;
  width: min(82%, 620px);
  max-width: none;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  font-weight: 500;
  text-align: center;
  color: var(--ink-deep);
}
.explore-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  border-top: 1px solid rgba(37, 26, 21, 0.2);
  text-align: left;
}
/* Each row is its own grid — number / eyebrow+title / arrow columns,
   never overlapping. Correction #30: the number column is now a real
   graphic column (not a small metadata digit), so row height/columns
   were rebuilt around it — min-height/padding increased so a large
   01-05 has room to breathe alongside the category+title stack. */
.explore-list__item {
  display: grid;
  grid-template-columns: clamp(72px, 20vw, 110px) 1fr clamp(28px, 7vw, 42px);
  align-items: center;
  column-gap: clamp(12px, 3vw, 20px);
  min-height: 112px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(37, 26, 21, 0.2);
  text-align: left;
}
/* Large graphic numeral — the row's main visual anchor, not a small
   label. font-weight left at normal (400): --font-display already
   reads elegant at this size without needing extra weight. */
/* font-family swapped to --font-script (New Icon Script) for a more
   decorative/fancy numeral — size/column/alignment/rest color
   untouched. */
.explore-list__num {
  font-family: var(--font-script);
  font-size: clamp(64px, 14vw, 92px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: rgba(37, 26, 21, 0.55);
}
.explore-list__link { display: flex; flex-direction: column; gap: 4px; }
.explore-list__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(17px, 4vw, 23px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 26, 21, 0.65);
}
.explore-list__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(25px, 5.2vw, 36px);
  color: var(--ink-deep);
  line-height: 1;
}
.explore-list__arrow {
  font-family: var(--font-body);
  font-size: clamp(26px, 6vw, 36px);
  color: var(--ink-deep);
  opacity: 0.7;
  text-align: right;
}
/* Smooth color transition on every interactive piece of the row, not
   just the arrow's own transform/opacity. */
.explore-list__num,
.explore-list__eyebrow,
.explore-list__title,
.explore-list__arrow {
  transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.explore-list__item:hover .explore-list__arrow,
.explore-list__link:focus-visible ~ .explore-list__arrow { transform: translateX(4px); opacity: 1; }
/* --dusty-pink still didn't hold enough contrast against
   wash-green-yellow's own yellow-green tones — swapped for
   --white, applied across the whole row (number, eyebrow, title,
   arrow) on both hover AND keyboard focus (:focus-within on the row),
   so it reads as one coherent state reacting together, not a single
   line changing color while its neighbors stay put. */
.explore-list__item:hover .explore-list__num,
.explore-list__item:hover .explore-list__eyebrow,
.explore-list__item:hover .explore-list__title,
.explore-list__item:hover .explore-list__arrow,
.explore-list__item:focus-within .explore-list__num,
.explore-list__item:focus-within .explore-list__eyebrow,
.explore-list__item:focus-within .explore-list__title,
.explore-list__item:focus-within .explore-list__arrow {
  color: var(--white);
}

/* ----------------------------------------------------------
   RSVP CLOSING — the one world allowed a primary CTA
   ("Confirmar asistencia") plus one secondary text link ("Ver los
   detalles"). Illustration is just cielo + clouds + the combined
   rsvp.png (correction #31) — no per-layer object-position/zoom
   overrides needed, plain .layer cover is enough for a calm,
   non-zoomed composition.
---------------------------------------------------------- */
/* Primary CTA (correction #32): was inheriting the global .btn/
   .btn-primary block-level pill (width:100%, font-size:19px,
   padding:16px 26px) meant for full-width form buttons — oversized
   here. Now a small inline pill, single line, pushed down (was
   margin-top:6px, now 306px, i.e. +300 per request) so it sits low in
   the frame instead of crowding the headline, which is untouched. */
.copy[data-copy-world="rsvp"] .scene-rsvp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  font-size: clamp(15px, 3vw, 19px);
  line-height: 1;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  white-space: nowrap;
  border-radius: 999px;
  /* FINAL MOBILE PASS: min() only kicks in on SHORT viewports (below
     ~780px tall), where the fixed 306px pushed "Ver los detalles" past
     the stage bottom. At 844px+ this still resolves to exactly 306px. */
  margin-top: 306px; /* fallback for browsers without lvh */
  margin-top: min(306px, calc(85lvh - 358px));
  margin-bottom: 0;
  background: var(--ink-deep);
  color: var(--white);
}
/* Global .btn-primary:hover uses --lino (olive/green) — overridden to
   plain black here, per request ("no green hover"). */
.copy[data-copy-world="rsvp"] .scene-rsvp-primary:hover,
.copy[data-copy-world="rsvp"] .scene-rsvp-primary:focus-visible {
  background: #000;
  color: var(--white);
}
/* "Ver los detalles" (correction #31, spacing recalculated in #32): a
   genuinely small, underlined, de-emphasized text link — not the
   pill/badge feel of .scene-rsvp-primary above it. Was margin-top:500px,
   measured against the OLD (much higher) primary CTA position; now
   that CTA sits ~300px lower, 500px would have pushed this far past
   the frame. A normal fixed gap reads correctly instead. */
.copy[data-copy-world="rsvp"] .scene-cta--muted {
  /* FINAL MOBILE PASS: 28 -> 0. The column's own 18px flex gap alone
     now sets the space under "Confirmar asistencia": measured at rest,
     box-to-box goes 46px -> 18px (~20px perceived to the cap height),
     so both read as one action group. */
  margin-top: 0;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-deep); /* "brown" per request — this token already is one */
  border-bottom-color: currentColor; /* restore the underline .scene-cta--muted otherwise removes */
}
/* Base .scene-cta:hover uses --lino (an olive/green tone) — swapped to
   plain black for this link specifically, per request ("no green
   hover here"). Equal specificity to the base rule, but declared later
   in the cascade, so it wins without needing !important. */
.copy[data-copy-world="rsvp"] .scene-cta--muted:hover,
.copy[data-copy-world="rsvp"] .scene-cta--muted:focus-visible {
  color: #000;
}

/* RSVP -> FOOTER, correction #34 — replaces the duplicated-illustration
   bleed attempt (correction #33), which read as a repeated/cut second
   copy of the artwork. New approach: no second image anywhere.
   1) rsvp.png shown in FULL (object-fit:contain, never cropped),
      bottom-aligned in its world.
   2) A plain color scrim behind it fades from transparent (cielo's own
      blue watercolor shows through untouched at the top) to the exact
      footer brown at the bottom, so the frame's own lower edge already
      IS footer-brown before the footer even begins — the illustration
      then simply sits on top of that color, once, nowhere else. */
.rsvp-brown-scrim {
  /* inset:0 (was -4vh, matching the generic .layer overscan) —
     correction #35. With the overscan, this box's own bottom edge sat
     4vh BELOW the actual visible viewport edge, so the gradient's own
     100%-opaque stop landed there instead — at the real visible
     bottom, the color was only ~92% opaque, reading as an
     off-brown, not the exact solid ink-deep the footer uses. inset:0
     makes "100%" mean the real bottom. The last 8% is held flat at
     full opacity (no interpolation left to round short of solid) so
     the visible edge is unambiguously 100% var(--ink-deep), not still
     mid-fade. */
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 26, 21, 0) 0%, rgba(37, 26, 21, 0) 55%, var(--ink-deep) 92%, var(--ink-deep) 100%);
}
/* Belt-and-suspenders against sub-pixel rounding between a
   position:sticky element un-pinning and the next normal-flow element
   — #home-journey's own height is a vh value (--journey-h), which can
   round to a fractional px at some viewport heights, leaving a
   sub-pixel gap. Scoped to THIS page's structure (footer directly
   follows #home-journey only here — styles.css's shared .footer rule,
   reused on other pages with different preceding elements, is left
   alone) rather than a global fix. Both sides are var(--ink-deep) now
   anyway (see #home-journey and .rsvp-brown-scrim above), so this is
   purely defensive — nothing but a solid color could ever show
   through, even if the 1px pull ever became visible itself. */
#home-journey + .footer { margin-top: -1px; }

[data-world="rsvp"] [data-layer="rsvp"] {
  /* inset:0 (not the generic .layer's inset:-4vh overscan) — with
     object-fit:contain + object-position:bottom, "bottom" needs to
     mean the ACTUAL visible viewport edge; the standard -4vh overscan
     box would push the image's own bottom 4vh below the fold, cropping
     exactly the edge this change is meant to keep fully visible. */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ----------------------------------------------------------
   RESPONSIVE — desktop gets more room per beat; mobile is the
   authored default above.
---------------------------------------------------------- */
@media (min-width: 900px) {
  /* MOBILE PATCH 09: 3860 -> 3751, same ratio to the new mobile
     2935 base as before (3860/3020 ≈ 1.278), just carried forward
     against the new total instead of recomputed from scratch — desktop
     keeps the same relative pacing/feel, just rescaled to match RSVP's
     shortened tail like the mobile value above. */
  /* FINAL MOBILE PASS: 3751 -> 2505, same 1.278 desktop/mobile ratio
     carried forward against the new 1960 mobile total. */
  /* MICRO-PATCH: 2505 -> 2476, same 1.278 ratio to the 1937 mobile total. */
  :root { --journey-h: 2476vh; }
}
@media (max-width: 720px) {
  .scene-headline { max-width: 13ch; }
  /* SAFARI MICRO FIX: RSVP illustration zoomed in 10% on mobile to trim
     the exposed side edges. Origin is bottom-center, so the image's
     bottom edge (and the brown-footer handoff under it) stays exactly
     where it was; the extra width is clipped by the stage. GSAP never
     animates this layer (only its parent world), so a CSS transform
     here can't be overwritten. */
  [data-world="rsvp"] [data-layer="rsvp"] {
    /* CROSS-BROWSER PASS: width-locked instead of object-fit:contain.
       contain made the art's WIDTH depend on stage height: on a shorter
       stage it became height-limited and narrower than the screen,
       exposing the sides (the "more zoomed out in Chrome" report). Now
       it's always the full screen width, natural aspect, bottom-aligned,
       so the zoom is identical in every browser; anything taller than
       the stage is clipped at the TOP (sky), never at the sides or the
       brown-footer bottom edge. At 390x844 this renders exactly as
       before (contain was already width-limited there). */
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    object-fit: fill;
    transform: scale(1.1);
    transform-origin: 50% 100%;
  }
  /* FINAL MOBILE PASS — CONTINÚA global baseline. Was ~9px above the
     layout-viewport bottom (clamp(20px,4vh,48px) - 25px), which on a
     real iPhone sits under Safari's bottom toolbar. Now one global
     84px baseline (see --cue-bottom), and every old scene-specific
     override that pushed it even lower (.is-arco-countdown at ~-11px,
     .is-nosvemos, .is-convento) is removed — scene content is kept
     above --cue-clear instead of moving the cue out of its way. */
  .home-story-progress { bottom: var(--cue-bottom); }
  /* CROSS-BROWSER PASS: the cue is position:fixed, so its `bottom` is
     measured from the VISIBLE bottom, while every scene is laid out
     against the (now 100lvh) stage bottom. They coincide while
     scrolling (toolbars collapsed) in both browsers; when iPhone
     Chrome's toolbars are expanded, the stage's lowest --ui-inset px
     are hidden and a plain `bottom` would lift the cue that far up
     INTO the scene. Subtracting --ui-inset keeps every story slot
     locked to its scene composition, floored 6px above the browser UI.
     Safari (where lvh ~ dvh) is unaffected. The intro slot is NOT
     corrected: #invitation-intro is itself position:fixed to the
     visible viewport, so its plain value already matches its scene. */
  .home-story-progress { bottom: max(6px, calc(var(--cue-bottom) - var(--ui-inset))); }

  /* CROSS-BROWSER PASS — crisp cue. The light/dark glow halos read as
     blurry on device. Solid color at full strength, no shadow, and a
     hairline stroke in the text's own color for weight (the body font
     ships one weight, so font-weight would fake-bold and look fuzzier).
     Color/tone switching per scene is unchanged. */
  .home-story-progress,
  .home-story-progress.is-dark,
  .home-story-progress.is-villa { text-shadow: none; }
  .home-story-progress { color: var(--ink-deep); -webkit-font-smoothing: antialiased; }
  .home-story-progress.is-dark { color: var(--white); }
  .home-story-progress.is-villa { color: var(--countdown-deep); }
  .home-story-progress.is-visible,
  .home-story-progress.is-visible.is-villa { opacity: 1; }
  .home-story-progress-label { font-size: 14px; -webkit-text-stroke: 0.35px currentColor; }
  .home-story-progress-arrow { font-size: 14px; }
  /* MICRO-PATCH: the cue's own `bottom` now animates, so leaving the
     envelope-intro / Convento states glides back to the global baseline
     instead of snapping. */
  .home-story-progress { transition: opacity 0.6s ease, color 0.5s ease, bottom 0.5s ease; }
  /* Envelope resting state only (class set by home-scenes.js between the
     invitation opening and the first real scroll): parked 44px below the
     global baseline so it sits on the envelope's front pocket instead of
     straddling the gap between the card's bottom edge and the pocket.
     40px is still above Safari's bottom toolbar band the baseline was
     lifted for (the pocket itself is anchored to the stage bottom, so
     this lands on it at every phone height). */
  /* SAFARI MICRO FIX: 18px lower again (40px -> 22px from the bottom),
     so it sits on the envelope's front pocket instead of floating in
     the gap under the card. Intro state only — the global baseline
     and every other scene's slot are unchanged. */
  .home-story-progress.is-intro { bottom: calc(var(--cue-bottom) - 62px); }
  /* Convento only (LAYOUT CORRECTION): order is now CTA above, cue BELOW.
     The cue drops 54px under the global baseline (30px from the stage
     bottom) and the CTA sits directly above it (see .convento-cta below).
     Class toggled by home-scenes.js only while Convento's copy is on
     screen. */
  .home-story-progress.is-convento { bottom: max(6px, calc(var(--cue-bottom) - 54px - var(--ui-inset))); }
  /* Caminar (LAYOUT CORRECTION): same low slot as Convento's, so the cue
     reads as a secondary scroll cue clearly below the photo + badge group
     and the class window is contiguous with Convento's (no bounce). */
  .home-story-progress.is-caminar { bottom: max(6px, calc(var(--cue-bottom) - 54px - var(--ui-inset))); }
  /* Explore (HIERARCHY REDESIGN): same low slot again, so the five taller
     rows have room above the cue and it reads as the last, secondary
     element under the list. */
  /* FINAL 3 MICRO-FIXES: Explore cue 10px UP from the shared low slot so
     the whole cue, arrow included, stays inside the green. */
  /* CROSS-BROWSER PASS — Arco: same low slot as Convento (30px up),
     so the order reads street copy ABOVE, cue BELOW. At the global
     84px baseline the cue sat on top of "Para encontrarnos / en
     Antigua" (sub bottom 92px vs cue 84-118px at 390x844). Class set by
     home-scenes.js while the countdown copy is on screen. */
  .home-story-progress.is-arco { bottom: max(6px, calc(var(--cue-bottom) - 54px - var(--ui-inset))); }
  .home-story-progress.is-explore { bottom: max(6px, calc(var(--cue-bottom) - 44px - var(--ui-inset))); }

  /* FINAL MOBILE PASS — whole countdown group +100px DOWN from the
     deployed state (was -40vh-75px-60px). The real-phone recording
     showed "Faltan" pinned under the nav; at 390x664 it measured 5px
     from the top edge. */
  /* MICRO-PATCH (Arco position correction): upper group (FALTAN + days /
     hours / min) moved 50px UP as one unit — both children keep the same
     transform, so their 2px gap is preserved. Sub is positioned
     independently below. */
  .copy--countdown .scene-eyebrow,
  .copy--countdown .scene-countdown-value {
    transform: translateY(calc(-40vh - 85px));
    /* SHORT-SCREEN SAFETY: on stages shorter than ~650px the -40vh lift
       carried "Faltan" up under the nav logo (27px from the top at
       375x553). The second term floors "Faltan" at ~70px from the top;
       on every taller phone the first term is larger, so nothing moves. */
    transform: translateY(max(calc(-40vh - 85px), calc(187px - 82vh)));
  }
  /* Sub moves with the group (+100px from the deployed -15px, i.e.
     translateY(85px)) but is floored at the shared cue-clear line: the
     literal +100 lands its second line ~67px above the bottom on a
     390x844 viewport, i.e. under both the raised CONTINÚA and Safari's
     toolbar. min() takes whichever is higher on screen, so on phones
     tall enough it gets the full +100, otherwise it stops exactly at
     the clear line. Plain CSS transform — textBeat() only tweens the
     parent .copy, never this child, so there's no GSAP conflict. */
  /* MICRO-PATCH: sub moved LOWER onto the light street of casas-frente.
     Two changes, both mobile-only and both keeping the forced two-line
     break: (1) line-height 1.5 -> 1.15, so the block shrinks from the
     TOP (it is the last flex child of a bottom-anchored column, so its
     bottom edge stays put) — the first line drops ~16px, off the
     arch/house bases and onto the pavement; (2) the floor is now 4px
     above the cue label instead of 12px (--cue-clear - 8px), gaining the
     last few px the cue allows. Beyond that the cue itself is in the way
     (it sits on this same street at the global baseline), so the rest of
     the legibility comes from a stronger local halo below. */
  .copy--countdown .scene-countdown-sub {
    line-height: 1.15;
    /* FINAL 3 MICRO-FIXES: sub a further 30px LOWER (was min(...) alone);
       nothing else in the countdown moves. */
    /* CROSS-BROWSER PASS: was translateY(min(85px, 18vh - cue-clear + 8px)
       + 30px) = bottom edge 92px above the stage at 390x844, colliding
       with the cue. Now locked directly to the street: bottom edge 78px
       above the stage bottom on every phone (14px lower at 844), 14px
       clear of the Arco-only cue slot (30-64px) below it. 18vh is the
       parent .copy's own bottom anchor, so this cancels it exactly. */
    transform: translateY(calc(18vh - 78px));
    text-shadow: 0 0 14px rgba(255, 251, 242, 0.95), 0 2px 18px rgba(255, 251, 242, 0.8);
  }

  /* Force "para encontrarnos / en Antigua" onto two lines on mobile —
     browser-decided wrapping read awkwardly at this width. Desktop
     keeps the single-line/natural-wrap reading via the inline default
     above. */
  .scene-countdown-sub-break { display: block; }

  /* FINAL MOBILE PASS — First Grey (Nos Vemos) moved DOWN as one
     composition. The copy block (headline + CTA) is now anchored to the
     shared cue-clear line instead of 18vh — lower on every phone taller
     than ~720px (+18px at 844, +34px at 932), and on shorter phones it
     is exactly as low as it can sit without touching CONTINÚA. px from
     the stage's own bottom, so it no longer depends on how Safari
     resolves vh vs the 100lvh stage. Internal gap unchanged (12px). */
  .copy[data-copy-world="nos-vemos"] {
    bottom: var(--cue-clear);
    gap: 12px;
  }
  /* Tray moves down with it (80px -> 14lvh, capped 84-120px: +38px at
     844) — it takes more of the shift than the copy because the copy
     is floored by the cue, which also tightens the tray->headline air
     from ~60px to ~34px (the "small internal gap" adjustment). The
     third width term is a height cap that only binds below ~800px
     tall: at 390x664 the full-size tray overlapped the headline by
     ~120px; the cap keeps its visible frame ending above the headline
     on short phones. Width/margin only — the tray's transform stays
     GSAP-owned (xPercent/y), nothing here touches transform. */
  .story-photo-object--tray {
    margin-top: 78px; /* fallback for browsers without lvh (-40px, see --tray-margin-new below) */
    /* Loosening the height cap "upward" on request: instead of letting
       the cap allow a taller frame that reaches further DOWN toward
       the headline, the tray's own top offset moves UP (margin-top
       trimmed by up to 40px — never below the existing 84px floor,
       which is what clears the fixed nav on the shortest phones, so
       that safety margin is untouched), and the cap is credited with
       exactly however much room that actually frees at a given phone
       height (old margin minus new margin) — not a flat guess. On
       tall phones that's close to the full 40px; on short phones,
       where margin-top was already pinned at the 84px floor, it's
       close to 0, so the cap stays close to its original, carefully-
       tuned value there instead of loosening into the overlap it was
       built to prevent. */
    --tray-margin-old: clamp(84px, 14lvh, 120px);
    --tray-margin-new: clamp(84px, calc(14lvh - 40px), 90px);
    margin-top: var(--tray-margin-new);
    width: min(403px, 88.4vw, calc((86lvh - var(--cue-clear) - 213px + (var(--tray-margin-old) - var(--tray-margin-new))) * 0.731));
  }

  /* FINAL MOBILE PASS: 431-720px CTA now sits on the shared cue-clear
     line too (was 9vh+65px). The <=430px override below follows the
     same rule. */
  /* MICRO-PATCH: CTA now sits at --cue-bottom (the lowest safe slot,
     just above Safari's toolbar band) instead of --cue-clear. LAYOUT
     CORRECTION: 17px lower still, with the Convento-only cue now BELOW it
     (.is-convento above). */
  .convento-copy .convento-cta { bottom: calc(var(--cue-bottom) - 17px); }

  /* MOBILE PATCH 04: Caminar's photo + badge composition, resized and
     repositioned to stop the badge being cropped by the viewport edge.
     At the previously-approved size (96vw, ~540px tall on a 375px-wide
     phone) the photo alone consumed nearly the whole space between the
     headline and the bottom of the screen — the badge's lower ~60px
     landed BELOW the viewport, and its bottom edge overlapped
     "Continúa" by ~100px. There wasn't room to fix this with
     repositioning alone (the headline can't move up, it's already only
     ~9px under the nav; "Continúa" can't move down, it's already only
     ~8px above the true bottom edge), so the frame needed to shrink —
     verified in-browser this needed ~19% (78vw, not the originally-
     suggested 5-8%) to fit both the badge and a real gap to "Continúa"
     on a 375x812 phone; confirmed safe with room to spare on taller
     phones (~930px) too. Position nudged up 10px (272px -> 262px)
     alongside it. Desktop is untouched (this whole block is mobile-only). */
  /* FINAL MOBILE PASS: photo + badge moved UP 50px as one group
     (262px -> 212px) to close the headline->photo gap. The badge stays
     a child of the group, so it moves with it and keeps overlapping the
     photo's lower edge. The third width term is a height cap that does
     NOT bind at 390x844 (304px, same as before) — it only shrinks the
     frame on phones shorter than ~820px, where the badge otherwise
     ends below the stage bottom (measured 737px bottom on a 664px
     stage = cropped). */
  /* MICRO-PATCH: photo group ~15% LARGER on mobile (78vw -> 89.7vw =
     x1.15; the badge is sized off the same --cw below, so the pair
     scales as one). Placement is derived from the frame's REAL visible
     bounds (measured from photo-alt.webp's alpha: the 560x700 image is
     letterboxed inside the 2:3 box, so the visible frame runs from
     0.146*w to 1.354*w of the box, 0.854*w wide): top is set so the
     frame's top edge is always 240px from the stage top (18px under the
     headline's last line), and the width cap keeps the badge's lower
     edge 6px above the cue: (100lvh - 409px) / 1.208 = frame top (240)
     + frame height (1.208w) + badge overhang (~0.22 * 193px) + cue
     band (~124px) solved for w. Full x1.15 on 390x844 (350px); on a
     390x664 Safari viewport the cap binds at ~211px (+7%) — that is
     the most the frame can grow there without the badge touching the
     cue or the frame touching the headline. */
  /* LAYOUT CORRECTION (Caminar): group a further x1.2 (89.7vw -> 107.6vw;
     the frame's visible art is only 0.854 of the box, so it still fits
     the phone width) and the Caminar-only cue now sits 54px lower
     (.is-caminar below), so the height cap's constant drops 409 -> 364
     (= 240 frame top + ~51 badge overhang + ~70 cue band + slack).
     Frame top stays 240px (18px under the headline). Full x1.2 wherever
     the height allows: 390x664 -> cw 248px (was 211, +18%); 390x844 is
     height-bound at cw 397px (was 350, +13%). */
  .story-photo-group {
    --cw: min(677px, 107.6vw); /* fallback for browsers without lvh */
    width: var(--cw);
    top: 190px;
  }
  @supports (height: 100lvh) {
    .story-photo-group {
      --cw: min(677px, 107.6vw, calc((100lvh - 364px) / 1.208));
      top: calc(240px - 0.146 * var(--cw));
    }
  }

  /* Badge's overhang past the photo's own bottom edge trimmed 45px ->
     12px — still clearly overlapping/attached to the frame (correction
     #21's original intent), just not extending as far past it, which
     was the other contributor to the cropping/collision above. */
  /* MICRO-PATCH: badge scales with the group (x1.15 via --cw: 43vw ->
     49.5vw, never wider than 88% of the frame box) and is re-seated on
     the frame's LOWER EDGE instead of floating inside it. cta-badge.webp
     is 420x525 with its visible art from 0.276*bw to 1.019*bw of its box,
     so `bottom` is solved to put the badge's visible lower edge 0.22*bw
     BELOW the frame's visible lower edge (the approved design's own
     overhang was ~0.245*bw; the last pass had cut it to zero, which is
     why the badge read as "too high"). Still a child of the group, so
     it overlaps the frame and moves/animates with it. */
  .floating-badge--historia {
    /* FINAL 3 MICRO-FIXES: badge x0.75 (was min(259px, 59.4vw, 0.88cw)) —
       same asset, still centred; `bottom` below keeps the same overhang
       ratio, so it stays seated on the frame's lower edge. */
    --bw: min(194px, 44.6vw, calc(var(--cw) * 0.66));
    width: var(--bw);
    bottom: calc(0.146 * var(--cw) - 0.451 * var(--bw));
  }

  /* MOBILE PATCH 07: Explore made more mobile-efficient — heading,
     row height, and number line-box all tightened so the section reads
     as one compact composition instead of a tall panel needing several
     screens of scroll to understand. Desktop keeps its original values
     (this whole block is mobile-only); no color, hover behavior, grid
     structure, or content changes anywhere below. */
  /* HIERARCHY REDESIGN (Explore, mobile): the earlier patches compressed
     the section into one small viewport (64px rows, 22px heading) and it
     read as a flat data table. This block restores hierarchy instead:
     bigger two-line heading, a generous gap under it, taller rows with
     real air around the dividers, looser title leading and eyebrow gap.
     The Explore-only low cue slot (.is-explore, 30px from the bottom)
     buys the extra height. The stage is pinned, so on short phones the
     row height is lvh-scaled (70px at 664 tall, 86px at 844, 88px cap) —
     that is the one place density still yields, because rows cannot
     scroll inside the pinned stage. Colors, hover, grid, order, numbering,
     links and arrows are untouched. */
  /* Frame top = heading's own top (14% of the stage) + its two lines
     (~2.3 x font-size) + a 32px gap, so the heading->row 01 gap stays
     generous at every phone height. */
  .explore-frame { padding: calc(14lvh + 2.3 * clamp(22px, 7.4vw, 40px) + 32px) var(--margin-h) 28px; }
  /* Heading: exactly two lines via the markup <br> + nowrap on line 1.
     Scale raised 22px -> 7.4vw (28.9px at 390; line 1 measures ~304px,
     still inside a 375px phone's 355px text box) and line 2 stays 1.13x
     line 1, so the pair reads as the section title. Same family, colour
     and centring. */
  .copy.explore-heading {
    width: 100%;
    padding: 0 10px;
    font-size: clamp(22px, 7.4vw, 40px);
    line-height: 1.08;
  }
  .explore-heading__line1 { white-space: nowrap; }
  .explore-heading__line2 { font-size: 1.13em; }
  .explore-list { margin-top: 0; }
  .explore-list__item {
    min-height: clamp(64px, calc(9lvh + 10px), 88px);
    padding: clamp(10px, 1.7lvh, 18px) 0;
  }
  .explore-list__eyebrow { font-size: clamp(13px, min(4.4vw, 2.3lvh), 23px); }
  .explore-list__title {
    font-size: clamp(20px, min(6.4vw, 3.3lvh), 36px);
    line-height: 1.14;
  }
  /* Numerals stay large/graphic; the grid's align-items:center keeps
     them (and the arrow) centred on the row. */
  .explore-list__num { font-size: clamp(56px, 13vw, 78px); line-height: 0.72; }
  /* Eyebrow -> title gap 2px -> 6px: connected, no longer compressed. */
  .explore-list__link { gap: 6px; }
  /* FINAL 3 MICRO-FIXES: the cue rose 10px, so on short phones (<=700px
     tall, i.e. the 664px Safari case) rows drop to the 64px floor and
     10px vertical padding to keep the last divider clear of it. */
  @media (max-height: 700px) {
    .explore-list__item { min-height: 64px; padding: 10px 0; }
  }

  /* ============================================================
     SHORT / NARROW PHONE SAFETY (size sweep, 320-430 x 553-932).
     Everything below only activates on phones the approved 390x844
     composition was never tuned for; 390x844, 393x852, 412x915 and
     430x932 measured clean and are unaffected.
     ============================================================ */

  /* Sky + Volcán copy share one anchor (30% of the stage). On stages
     under ~630px the 4-line Volcán block + CTA rode up under the nav
     logo (35px from the top at 375x553). Floor the anchor at 190px so
     the block's top stays clear; 30% wins on every taller phone. */
  .copy--sky,
  .copy--volcano { top: max(30%, 190px); }

  /* Explore on short stages (<=760px tall — iPhone SE/8, small
     Androids, and any phone whose browser bars eat the height). The
     five rows + heading ran 13-116px into the cue / off the stage,
     because the longer titles wrap to two lines. Same hierarchy and
     order, just denser: heading a little higher and smaller, tighter
     rows, a narrower numeral column so titles get more width (fewer
     wraps). Also narrow phones up to 800px tall (360x780/800
     Androids), where the titles wrap even with the height to spare. */
  @media (max-height: 760px), (max-width: 380px) and (max-height: 800px) {
    .copy.explore-heading {
      top: max(11lvh, 64px);
      font-size: clamp(20px, min(7.4vw, 4.2lvh), 40px);
    }
    .explore-frame {
      padding-top: calc(max(11lvh, 64px) + 2.3 * clamp(20px, min(7.4vw, 4.2lvh), 40px) + 24px);
    }
    .explore-list__item {
      /* rows grow with the stage so the list fills the space above the
         cue instead of bunching at the top (56px at 553 tall, 63px at
         640, 73px at 760) */
      min-height: clamp(52px, calc(8lvh + 12px), 88px);
      padding: clamp(6px, 1.2lvh, 12px) 0;
      grid-template-columns: clamp(52px, 15vw, 110px) 1fr clamp(22px, 6vw, 42px);
      column-gap: 10px;
    }
    .explore-list__num { font-size: clamp(44px, min(12vw, 7.5lvh), 78px); }
    .explore-list__eyebrow { font-size: clamp(11px, min(3.8vw, 2lvh), 23px); }
    .explore-list__title { font-size: clamp(17px, min(6vw, 3.2lvh), 36px); line-height: 1.08; }
    .explore-list__link { gap: 3px; }
  }

  /* Narrow phones (<=340px wide — iPhone SE 1st gen / 5s class). The
     countdown numbers wrapped to two lines, Caminar's headline to five
     (running into the photo), and CTAs to two lines. Sizes only. */
  @media (max-width: 340px) {
    .scene-countdown-value strong { font-size: 34px; }
    .scene-countdown-unit { font-size: 12px; letter-spacing: 0.1em; }
    .copy[data-copy-world="story"] .scene-headline { font-size: 23px; }
    .scene-cta { font-size: 14px; letter-spacing: 0.12em; }
    .convento-copy .convento-cta { font-size: 15px; }
  }
}

/* MOBILE PATCH 03: narrow-phone (<=430px) variant of the CTA lift above
   — placed after the <=430px block earlier in this file (which sets
   convento-cta's bottom:8vh) so this wins at equal specificity. */
@media (max-width: 430px) {
  /* FINAL MOBILE PASS — requested: title/meta ~30px UP, CTA ~70-80px
     DOWN. Title/meta take the literal -30px. The CTA's literal -75px
     (8vh+65px -> 8vh-10px) would put it ~58px above the bottom on a
     390x844 viewport: under the raised CONTINÚA (84-118px) and inside
     Safari's toolbar band. max() lets it go all the way down to the
     shared clear line and no further, so the meta->CTA breathing room
     grows by the title/meta lift plus whatever the phone allows. */
  .convento-copy .convento-title { top: calc(7.5vh + 30px); }
  /* MICRO-PATCH: meta +15px lower (was 39vh - 30px). */
  .convento-copy .convento-meta { top: calc(39vh - 15px); }
  /* MICRO-PATCH: CTA lower again — the --cue-clear floor left it on the
     altar/arch detail (busy) with the cue on top of it. It now takes the
     lowest safe slot (--cue-bottom, the same line the cue used to own —
     above Safari's toolbar band, over the calm sandy floor of the
     ruins) and the Convento-only cue state rises above it (.is-convento).
     No collision: CTA top ~106px from the bottom, cue bottom 122px. */
  /* LAYOUT CORRECTION: CTA 17px lower than before (cue-bottom - 17px =
     67px from the stage bottom, was 84px) and now ABOVE the cue, which
     sits below it (.is-convento: bottom 30px -> box top 63px, ~4px gap to
     the CTA box). Not the full 25px: that would put the cue 22px from
     the bottom, deeper into Safari's toolbar band. */
  .convento-copy .convento-cta { bottom: calc(var(--cue-bottom) - 17px); }
}

/* ----------------------------------------------------------
   REDUCED MOTION — stable, in-flow, readable; no pinning, no
   parallax, no scale. home-scenes.js renders all worlds as plain
   stacked sections instead of building the master timeline.
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #home-journey { height: auto; }
  #home-stage { position: static; height: auto; }
  .world { position: relative; opacity: 1; pointer-events: auto; min-height: 70vh; padding: 60px 0; }
  .layer { position: absolute; will-change: auto; }
  .copy { position: relative; top: auto; bottom: auto; transform: none; padding: 24px var(--margin-h); }
  /* Convento's three independently-absolute-positioned pieces (see
     the CONVENTO SANTA CLARA layout patch above) need their own
     reset here too — otherwise they'd stay position:absolute inside
     the now position:relative .convento-copy and stack on top of
     each other instead of reading as a normal stacked block. */
  .convento-title, .convento-meta, .convento-cta {
    position: static;
    left: auto; top: auto; bottom: auto;
    transform: none;
    width: auto;
    margin: 0 auto;
  }
  .story-photo-object { position: relative; left: auto; top: auto; transform: rotate(-2deg); margin: 24px auto; }
  .floating-objects { display: none; } /* spans transitions that don't exist in the static fallback */
  .explore-frame { padding: 40px var(--margin-h); }
}
.reduced-motion #home-journey { height: auto; }
.reduced-motion #home-stage { position: static; height: auto; }
.reduced-motion .world { position: relative; opacity: 1; pointer-events: auto; min-height: 70vh; padding: 60px 0; }
.reduced-motion .story-photo-object { position: relative; left: auto; top: auto; transform: rotate(-2deg); margin: 24px auto; }
.reduced-motion .floating-objects { display: none; }

/* ----------------------------------------------------------
   DEBUG MODE — set DEBUG_HOME_SCENES = true in home-scenes.js.
---------------------------------------------------------- */
[data-debug-scenes="true"] .world { outline: 1px dashed rgba(200, 40, 20, 0.55); outline-offset: -1px; }
.scene-debug-hud {
  position: fixed; left: 12px; bottom: 12px; z-index: 400;
  font: 11px/1.5 monospace;
  color: var(--white);
  background: rgba(20, 18, 12, 0.78);
  padding: 8px 12px;
  border-radius: 4px;
  pointer-events: none;
  white-space: pre;
}
/* ?debug=1 real-device overlay (home-scenes.js initDebugOverlay) —
   top-left under the nav, above the intro (z 300), never interactive. */
.scene-debug-hud--device {
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  bottom: auto;
  left: 8px;
  right: 8px;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   DESKTOP JOURNEY — landscape >= 1024px (home-scenes.js
   buildDesktopTimeline). Everything below is scoped to
   html.is-desktop-journey, which only that script sets, so none of
   it can reach the mobile layout. The vertical illustrations are
   grouped by JS into .d-frame boxes shown at full screen width (the
   whole tall artwork), and the timeline pans those frames through the
   screen like a camera, instead of swapping scenes in place.
   ============================================================ */

/* Desktop-only pieces, hidden everywhere else. */
.explore-parque,
.copy--story-bottom,
.copy--convento-mid { display: none; }

/* --frame-w / --frame-left are the per-scene "zoom / offset" knobs:
   a narrower frame shows more of the artwork (less zoomed in), and
   --frame-left slides it sideways. */
.is-desktop-journey .d-frame {
  position: absolute;
  left: var(--frame-left, 0%);
  top: 0;
  width: var(--frame-w, 100%);
  aspect-ratio: 1080 / 1920;
  will-change: transform;
}
.is-desktop-journey .d-frame .layer,
.is-desktop-journey .d-frame .villa-jardin-group {
  inset: 0;
  width: 100%;
  height: 100%;
}
.is-desktop-journey .d-frame .layer { object-fit: cover; object-position: center; }

/* The volcano group is its own frame (not a .d-frame, same box). */
/* Volcano sits bottom-right (Figma scene 3): 75% wide, pushed right so
   the peak lands ~70% across and the left sky stays open for copy. */
.is-desktop-journey .volcano-persist {
  inset: auto;
  left: 28%;
  top: 0;
  width: 75%;
  height: auto;
  aspect-ratio: 1080 / 1920;
  overflow: visible;
  will-change: transform;
}
.is-desktop-journey .volcano-persist .layer { inset: 0; width: 100%; height: 100%; }
.is-desktop-journey .volcano-persist [data-layer="volcan"] { top: 0; }
/* Smoke sits 10px lower so it reads as rising from the crater. */
.is-desktop-journey .volcano-persist [data-layer="humo"] { top: 10px; }
/* Paisaje's grey ground band starts ~74% down its canvas. It is
   widened to span the full screen (the volcano frame itself is only
   75vw, offset 28vw) and sits BEHIND the volcano (JS reorders it), its
   top edge ~46vh up from the bottom, so it reads as the plain the
   volcano stands on rather than a strip over its cut-off base. It
   stays for the whole volcano -> Arco move as the divider between the
   two sections. */
.is-desktop-journey .volcano-persist [data-layer="paisaje"] {
  left: -37.4%;
  right: auto;
  width: 137.4%;
  height: auto;
  aspect-ratio: 1080 / 1920;
  top: calc(-1.7% - 46vh);
  bottom: auto;
  object-position: center;
}

/* Villa's sky sits at the top of its frame at the asset's own ratio. */
.is-desktop-journey [data-world="villa"] .d-frame [data-layer="cielo-bokeh"] {
  inset: auto;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  /* Soft top edge too — on desktop the frame rises into view, so the
     sky's top edge would otherwise read as a hard line. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 55%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.35) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 55%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.35) 88%, transparent 100%);
}

/* Arco: 120% wide (50% bigger than the first pass) so it fills the
   screen; the camera shows the tower first, then pans to the street. */
.is-desktop-journey [data-world="arco"] { --frame-w: 120%; --frame-left: -10%; }

/* Layers the desktop story doesn't use: Arco keeps the volcano sky
   behind it (one continuous sky from scene 2 to 4), Caminar sits on
   the convento floor instead of its own grey wash, and the night beat
   is replaced by Villa's own daylight sky. */
.is-desktop-journey [data-world="arco"] > [data-layer="cielo"],
.is-desktop-journey [data-world="arco"] > .arco-grey-blend,
.is-desktop-journey [data-world="story"] [data-layer="gris-2"],
.is-desktop-journey [data-world="transition"] { display: none; }

/* 2 · CLOUDS — 2x the mobile size (the cloud asset is a tall canvas
   of small scattered clouds, so the box itself is doubled). */
.is-desktop-journey [data-layer="cloud-left"],
.is-desktop-journey [data-layer="cloud-right"] { width: 100%; height: 180%; }
.is-desktop-journey [data-layer="cloud-left"] { left: -46%; top: -38%; }
.is-desktop-journey [data-layer="cloud-right"] { right: -46%; top: -22%; }
.is-desktop-journey .handoff-cloud { width: 100%; height: 180%; }
.is-desktop-journey .handoff-cloud--left { left: -46%; top: -10%; }
.is-desktop-journey .handoff-cloud--right { right: -46%; top: -24%; }

/* Shared desktop type scale. */
.is-desktop-journey .scene-headline {
  font-size: clamp(38px, 3.9vw, 68px);
  line-height: 1.12;
  max-width: 24ch;
}

/* Opening + volcano copy. */
.is-desktop-journey .copy--sky { top: 36vh; transform: none; }
.is-desktop-journey .copy--volcano {
  top: 13vh;
  left: 7vw;
  right: auto;
  width: 52vw;
  transform: none;
  padding: 0;
  align-items: flex-start;
  text-align: left;
}
.is-desktop-journey .copy--volcano .scene-headline { max-width: 20ch; }

/* 4 · COUNTDOWN — down on the street, under the arch. */
.is-desktop-journey .copy--countdown {
  top: auto;
  bottom: calc(13vh + 120px); /* +70px up (was 13vh + 50px) — Faltan, numbers and line move together */
  left: 0;
  right: 0;
  width: auto;
  padding: 0;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.is-desktop-journey .copy--countdown .scene-eyebrow,
.is-desktop-journey .copy--countdown .scene-countdown-value,
.is-desktop-journey .copy--countdown .scene-countdown-sub { transform: none; }
.is-desktop-journey .copy--countdown .scene-countdown-value { justify-content: center; }
.is-desktop-journey .scene-countdown-value strong { font-size: clamp(56px, 5.4vw, 96px); }
.is-desktop-journey .copy--countdown .scene-countdown-sub { font-size: clamp(22px, 1.8vw, 30px); }

/* 5 · NOS VEMOS — wash rotated to landscape (JS rotates it 90deg, so
   its box is sized "sideways": 130vh wide x 130vw tall); copy left
   column, mirror frame right. */
.is-desktop-journey [data-world="nos-vemos"] [data-layer="gris"],
.is-desktop-journey [data-world="explore"] [data-layer="wash-green-yellow"] {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 130vh;
  height: 130vw;
  object-fit: cover;
}
.is-desktop-journey .story-photo-object--tray {
  left: auto;
  right: 7vw;
  top: 50%;
  margin-top: 0;
  width: auto;
  height: 84vh;
  aspect-ratio: 560 / 840;
}
.is-desktop-journey .copy[data-copy-world="nos-vemos"] {
  /* Full-height column, content centered by flex (GSAP resets the CSS
     translate property, so no translate-based centering here). */
  top: 0;
  bottom: 0;
  justify-content: center;
  left: 4vw;
  right: auto;
  width: 48vw;
  transform: none;
  padding: 0;
}

/* 6 · CONVENTO — copy set inside the ruin's open circle. */
.is-desktop-journey .convento-copy .convento-title {
  top: 21vh;
  width: min(60vw, 900px);
  font-size: clamp(44px, 4.4vw, 80px);
  line-height: 1.02;
}
.is-desktop-journey .convento-title br:nth-of-type(2) { display: none; }
.is-desktop-journey .convento-copy .convento-meta {
  top: 44vh;
  width: min(40vw, 560px);
  font-size: clamp(26px, 2.4vw, 42px);
  line-height: 1.15;
}
.is-desktop-journey .convento-copy .convento-cta {
  bottom: 24vh;
  font-size: clamp(20px, 1.6vw, 28px);
}

/* 7 · CONVENTO OVAL — its own line; the 4-line Caminar copy is
   mobile-only (desktop re-sets it along the bottom in scene 8). */
.is-desktop-journey .copy[data-copy-world="story"] { display: none; }
.is-desktop-journey .copy--convento-mid {
  display: flex;
  /* 130px above the screen's vertical midpoint (top edge of the line). */
  top: calc(50% - 180px); /* +50px up (was 50% - 130px) */
  transform: none;
}
.is-desktop-journey .copy--convento-mid .scene-headline {
  max-width: none;
  font-size: clamp(26px, 2.2vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
}

/* 8 · CONVENTO FLOOR — photo + badge right, line along the bottom. */
.is-desktop-journey .story-photo-group {
  left: auto;
  right: 8vw;
  top: 5vh;
  width: auto;
  height: 74vh;
}
.is-desktop-journey .floating-badge--historia { width: 41.4%; bottom: calc(-6% + 20px); } /* 15% bigger (was 36%), 20px up; kept level in home-scenes.js */
.is-desktop-journey .copy--story-bottom {
  display: flex;
  top: auto;
  bottom: calc(15vh + 25px);
  left: 4vw;
  right: 42vw;
  transform: none;
  padding: 0;
}
.is-desktop-journey .copy--story-bottom .scene-headline {
  max-width: none;
  font-size: clamp(34px, 3.5vw, 62px);
  text-transform: uppercase;
}

/* 9 · VILLA TOP — "Y después del sí" in script, over the daylight sky. */
.is-desktop-journey .copy[data-copy-world="transition"] {
  top: calc(7vh + 10px);
  transform: none;
}
.is-desktop-journey .copy[data-copy-world="transition"] .scene-headline {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 76px);
  line-height: 1.2;
  max-width: 30ch;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(255, 251, 242, 0.75);
}

/* 10 · VILLA POND — badge + CTA on the left. */
.is-desktop-journey .villa-copy-group {
  left: 8vw;
  right: auto;
  top: 11vh;
  margin: 0;
  width: min(40vw, 68vh);
  /* Tilted as one piece (badge + CTA). The wrapper itself is never
     animated by GSAP, so this static transform is safe. */
  transform: rotate(-10deg);
}
.is-desktop-journey .villa-copy-group__cta {
  left: auto;
  right: 12%;
  bottom: -14%;
  margin: 0;
  width: 37.4%; /* +10% */
}

/* 11 · GREEN — 60/40 split: heading + list left, parque photo right. */
.is-desktop-journey .explore-frame {
  position: absolute;
  left: 4.5vw;
  top: 0;
  width: 52vw;
  max-width: none;
  margin: 0;
  padding: 25vh 0 0;
}
.is-desktop-journey .copy.explore-heading {
  top: 9vh;
  left: 6vw;
  right: auto;
  width: 52vw;
  margin: 0;
  text-align: left;
  font-size: clamp(40px, 3.6vw, 64px);
}
.is-desktop-journey .explore-heading__line1,
.is-desktop-journey .explore-heading__line2 { white-space: nowrap; }
.is-desktop-journey .explore-list { margin-top: 0; }
.is-desktop-journey .explore-list__item {
  grid-template-columns: clamp(90px, 8vw, 140px) 1fr 48px;
  min-height: 0;
  padding: 1.4vh 0;
}
.is-desktop-journey .explore-list__num { font-size: clamp(60px, 5.6vw, 96px); }
.is-desktop-journey .explore-list__eyebrow { font-size: clamp(16px, 1.3vw, 22px); }
.is-desktop-journey .explore-list__title { font-size: clamp(26px, 2.3vw, 40px); }
.is-desktop-journey .explore-list__arrow { font-size: clamp(28px, 2.2vw, 38px); }
.is-desktop-journey .explore-parque {
  display: block;
  position: absolute;
  z-index: 6;
  top: 50%;
  right: -7vw;
  height: 104vh;
  width: auto;
  aspect-ratio: 1080 / 1350;
  filter: drop-shadow(0 18px 30px rgba(20, 18, 12, 0.22));
  will-change: transform;
}

/* RSVP — street illustration across the full width (as in the Figma:
   houses fill the frame, street along the bottom); copy sits in the sky
   above the lower right-hand houses. */
.is-desktop-journey [data-world="rsvp"] [data-layer="rsvp"] {
  object-fit: cover;
  object-position: center 44%;
}
.is-desktop-journey .copy[data-copy-world="rsvp"] {
  top: 9vh;
  left: 23vw; /* just right of the left house's tower */
  right: auto;
  width: 44vw;
  padding: 0;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}
/* Desktop: plain blue sky behind the street — no brown fade into the
   footer (mobile keeps its scrim). */
.is-desktop-journey .rsvp-brown-scrim { display: none; }
.is-desktop-journey .copy[data-copy-world="rsvp"] .scene-headline { font-size: clamp(30px, 2.8vw, 50px); }
.is-desktop-journey .copy[data-copy-world="rsvp"] .scene-rsvp-primary { margin-top: 4px; }

/* Green -> RSVP is a straight camera move, so both box edges meet as a
   seam: feather RSVP's top and the green scene's bottom so the two
   dissolve into each other (the olive/sky atmosphere shows through). */
.is-desktop-journey [data-world="rsvp"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16vh);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16vh);
}
.is-desktop-journey [data-world="explore"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16vh), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 16vh), transparent 100%);
}

/* VOLCAN2 / PAISAJE2 (desktop artwork, swapped in by home-scenes.js).
   Both are cut-out pieces, not 1080x1920 canvases like humo/mas-humo,
   so they're placed in the volcano frame's own coordinates:
   - volcan2 at 94.3% of its size, positioned so its crater lands
     exactly where the old volcan's did (smoke stays on the crater);
     unlike the old one it isn't cut off at the right/bottom.
   - paisaje2 is 116vw wide (8vw past each screen edge — the frame is
     75vw wide at 28vw, hence the % values) with its ground strip's top
     ~23vw above the screen bottom, reaching just past the bottom edge. */
.is-desktop-journey .volcano-persist [data-layer="volcan"] {
  inset: auto;
  left: -25.46%;
  top: 45.83%;
  width: 126.4%;
  height: 53.33%;
  object-fit: fill;
}
.is-desktop-journey .volcano-persist [data-layer="paisaje"] {
  inset: auto;
  left: -48%;
  top: calc(100% - 28.8vw);
  width: 154.67%;
  height: auto;
  aspect-ratio: 2640 / 785;
  object-fit: fill;
}

/* ============================================================
   MOBILE JOURNEY — simplified timeline (home-scenes.js
   buildMobileTimeline). Scoped to html.is-mobile-journey, set only by
   that script. Layout of text/photos/badges is unchanged from the
   phone-tested rules above; only what the motion needs is added here.
   ============================================================ */

/* Each world's illustration, grouped so it moves as one piece. Same
   box as the world, so every layer keeps its existing position. */
.is-mobile-journey .m-group {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* VOLCANO — now a canvas-shaped box (the 1080x1920 painting), covering
   the screen and anchored to the bottom, so the full, uncut volcan2
   and the paisaje2 ground strip can be placed in painting coordinates
   (same numbers as desktop). JS centers it (xPercent:-50). */
.is-mobile-journey .volcano-persist {
  inset: auto;
  left: 50%;
  bottom: -4vh;
  width: max(100%, calc((100lvh + 8vh) * 0.5625));
  height: auto;
  aspect-ratio: 1080 / 1920;
  overflow: visible;
  will-change: transform;
}
.is-mobile-journey .volcano-persist .layer {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
/* volcan2 at 94.3%, crater exactly where the old volcan's was, so the
   smoke still rises from it. */
.is-mobile-journey .volcano-persist [data-layer="volcan"] {
  inset: auto;
  left: -25.46%;
  top: 45.83%;
  width: 126.4%;
  height: 53.33%;
}
/* paisaje2 behind the volcano, wider than the screen on both sides,
   its ground strip running to (just past) the bottom edge. */
.is-mobile-journey .volcano-persist [data-layer="paisaje"] {
  inset: auto;
  left: -25%;
  top: 78.7%;
  bottom: auto;
  width: 150%;
  height: auto;
  aspect-ratio: 2640 / 785;
}

/* NIGHT — "Y después del sí…" in the script face (still white on
   the night sky). */
.is-mobile-journey .copy[data-copy-world="transition"] .scene-headline {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.2;
  max-width: 14ch;
}

/* Smoke sits 4px lower so it's flush with the crater. */
.is-mobile-journey .volcano-persist [data-layer="humo"] { top: 4px; }

/* Position fine-tuning from real-iPhone review (Safari + Chrome). Done
   with margins/translate on top of the tested rules, so each tweak is
   one readable number. */
/* "Para encontrarnos en Antigua" 40px higher. */
.is-mobile-journey .copy--countdown .scene-countdown-sub { translate: 0 -40px; }
/* Nos Vemos: tray, headline and CTA 35px lower (were under the nav). */
.is-mobile-journey .story-photo-object--tray { top: 35px; }
.is-mobile-journey .copy[data-copy-world="nos-vemos"] { margin-bottom: -35px; }
/* Convento: date/place 10px lower, "Ver el programa" 25px higher.
   "Convento Santa Clara / 22 de mayo de 2027" — tighter line spacing
   (1.35 -> 1.15, matching the desktop journey's own value), so it
   reads as one compact caption instead of two loosely-spaced lines.
   Font stays the inherited body font (Venetian 301, same as desktop),
   set uppercase here instead of swapping fonts. Scoped to
   .is-mobile-journey (not a max-width query) so it only ever touches
   the phone/portrait timeline — .is-desktop-journey sets its own
   font-size/line-height for this element separately and is untouched. */
.is-mobile-journey .convento-copy .convento-meta {
  margin-top: 10px;
  text-transform: uppercase;
  line-height: 1.15;
}
.is-mobile-journey .convento-copy .convento-cta { margin-bottom: 25px; }

/* Nos Vemos' copy now sits where the CONTINÚA cue lives, so the cue
   steps aside for that scene only. */
.is-mobile-journey .home-story-progress.is-visible.is-quiet { opacity: 0; pointer-events: none; }

/* Music button: the invitation intro (z 300) and story layers (310) are
   fixed full-screen, so lift the corner toggle above them on the homepage. */
.audio-toggle {
  z-index: 320;
  bottom: calc(24px + env(safe-area-inset-bottom));
}
