/* León 2026 · hero: header + cinematic stage. Owner: hero agent. Tokens live in base.css. */

/* ---------- Header ---------- */
.site-header{position:fixed;inset:0 0 auto;z-index:100;height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 var(--pad);color:#eef5e4;transition:background-color .35s,color .35s,box-shadow .35s}
.site-header:before{content:'';position:absolute;inset:0 0 -40px;z-index:-1;background:linear-gradient(180deg,rgba(6,38,31,.55),rgba(6,38,31,0));pointer-events:none;transition:opacity .35s}
.site-header.is-solid{background:rgba(244,245,238,.94);color:var(--ink);box-shadow:inset 0 -1px 0 var(--line);-webkit-backdrop-filter:saturate(1.2) blur(10px);backdrop-filter:saturate(1.2) blur(10px)}
.site-header.is-solid:before{opacity:0}
html:not(.hero-ready) .site-header{background:var(--stage)}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;flex-shrink:0;position:relative;z-index:2}
.brand img{width:56px;height:56px;object-fit:contain;border-radius:50%;box-shadow:0 0 0 2px #ffffffd9,0 4px 14px #00000033}
.brand>span{display:flex;flex-direction:column;line-height:1.1}
.brand strong{font-size:20px;letter-spacing:-.04em;font-weight:600}
.brand small{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;opacity:.75;margin-top:4px}
#site-nav{display:flex;align-items:center;gap:30px}
#site-nav a{position:relative;font-size:14.5px;text-decoration:none;padding:6px 0}
#site-nav a:not(.nav-register):after{content:'';position:absolute;left:0;right:0;bottom:1px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .35s var(--ease-out)}
#site-nav a:not(.nav-register):hover:after,#site-nav a:not(.nav-register):focus-visible:after{transform:scaleX(1);transform-origin:left}
#site-nav .nav-register{background:var(--lime);color:var(--ink);border-radius:999px;padding:10px 20px;font-weight:500;transition:background .25s,color .25s,translate .25s var(--ease-out)}
#site-nav .nav-register:hover{background:var(--lime-glow);translate:0 -1px}
.site-header.is-solid #site-nav .nav-register{background:var(--ink);color:#f4f8ec}
/* language switch (EN on the Spanish page, ES on the English one): mono, right after the Registro pill */
#site-nav .lang-switch{font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.12em;margin-left:-12px;padding:6px 2px}
.menu-toggle{display:none;position:relative;z-index:2;align-items:center;gap:8px;border:1px solid currentColor;border-radius:999px;background:transparent;padding:9px 16px;font-size:14px;line-height:1}
.menu-toggle span{display:inline-block;font-size:18px;line-height:.8;transition:transform .35s var(--ease-out)}
.menu-toggle[aria-expanded=true] span{transform:rotate(45deg)}

@media(max-width:1000px){
  .menu-toggle{display:inline-flex}
  .site-header{gap:12px}
  /* Without the menu script the links stay reachable in a simple row. */
  html:not(.menu-ready) .site-header{height:auto;min-height:var(--header-h);flex-wrap:wrap;padding-top:10px;padding-bottom:10px;background:var(--stage)}
  html:not(.menu-ready) .menu-toggle{display:none}
  html:not(.menu-ready) #site-nav{width:100%;flex-wrap:wrap;gap:6px 20px}
  .menu-ready #site-nav{position:fixed;inset:0 0 auto;z-index:1;flex-direction:column;align-items:stretch;gap:0;padding:calc(var(--header-h) + 8px) var(--pad) 28px;background:var(--paper);color:var(--ink);box-shadow:0 24px 60px rgba(6,38,31,.28);border-radius:0 0 var(--radius) var(--radius);transform:translateY(-104%);visibility:hidden;transition:transform .45s var(--ease-out),visibility 0s .45s}
  .menu-ready #site-nav.is-open{transform:none;visibility:visible;transition:transform .45s var(--ease-out),visibility 0s}
  .menu-ready #site-nav a{font-size:26px;letter-spacing:-.03em;padding:14px 0;border-bottom:1px solid var(--line)}
  .menu-ready #site-nav a:not(.nav-register):after{display:none}
  .menu-ready #site-nav .nav-register{margin-top:20px;align-self:flex-start;border:0;font-size:17px;padding:14px 24px;background:var(--ink);color:#f4f8ec}
  #site-nav .lang-switch{margin-left:0}
  .menu-ready #site-nav .lang-switch{margin-top:14px;align-self:flex-start;font-size:13px;letter-spacing:.12em;padding:10px 16px;border:1px solid var(--line);border-radius:999px}
  body.nav-open .site-header{color:var(--ink)}
  body.nav-open .site-header:before{opacity:0}
}
@media(max-width:760px){.brand img{width:46px;height:46px}.brand strong{font-size:18px}.brand small{font-size:9.5px}}

/* ---------- Stage geometry ---------- */
.stage-wrap{
  --city-w:clamp(1100px,100vw,1900px);
  --city-h:calc(var(--city-w) * .246559);   /* 412 / 1671 */
  --city-bottom:0px;
  --word-size:min(clamp(7rem,24vw,26rem),38svh);
  --word-base:.40;                          /* LEÓN baseline, as a share of the city height from its top */
  position:relative;z-index:1;background:var(--stage-deep);color:#eef5e4
}
.stage{position:relative;overflow:hidden;isolation:isolate;min-height:100svh;background:linear-gradient(180deg,var(--stage) 0%,#093328 55%,var(--stage-deep) 100%)}
.stage-sky{position:absolute;inset:0;z-index:0;background:radial-gradient(42% 46% at 50% calc(100% - var(--city-bottom) - var(--city-h) * .55),rgba(215,245,144,.17),rgba(215,245,144,.05) 55%,transparent 75%)}
.light{position:absolute;inset:0;z-index:0;pointer-events:none}
.light-morning{background:radial-gradient(70% 50% at 82% 0%,rgba(198,232,222,.10),transparent 70%),linear-gradient(180deg,transparent 40%,rgba(211,237,157,.06) 70%,transparent 90%)}
.light-golden{opacity:0;background:radial-gradient(60% 42% at 50% calc(100% - var(--city-bottom) - var(--city-h) * .45),rgba(240,214,128,.30),rgba(215,245,144,.10) 50%,transparent 78%),linear-gradient(180deg,rgba(6,38,31,0) 30%,rgba(236,210,140,.10) 80%)}
.light-dusk{opacity:0;background:
  radial-gradient(55% 22% at 50% calc(100% - var(--city-bottom) - var(--city-h) * .42),rgba(242,194,122,.55),rgba(242,194,122,0) 70%),
  linear-gradient(180deg,#0d2434 0%,#163646 38%,#1f4450 calc(100% - var(--city-bottom) - var(--city-h) * .9),#4b5a4c calc(100% - var(--city-bottom) - var(--city-h) * .5),#203c44 calc(100% - var(--city-bottom) - var(--city-h) * .2),#081f22 100%)}
.cloud{position:absolute;z-index:0;left:0;width:56vw;height:20vw;border-radius:50%;background:radial-gradient(closest-side,rgba(231,243,214,1),rgba(231,243,214,0));opacity:.08;pointer-events:none}
.cloud-a{top:14%}
.cloud-b{top:31%;width:40vw;height:14vw;opacity:.06}

/* LEÓN: an outlined graphic object standing behind the city */
.big-word{position:absolute;z-index:1;left:0;right:0;bottom:calc(var(--city-bottom) + var(--city-h) * (1 - var(--word-base)));display:flex;justify-content:center;align-items:flex-end;pointer-events:none;transform-origin:50% 100%;will-change:transform}
.big-word .bw{display:block;position:relative;opacity:.55;transform-origin:50% 100%}
.big-word svg{display:block;height:calc(var(--word-size) * .995);width:auto;overflow:visible;margin-bottom:calc(var(--word-size) * -.012)}
.big-word path{fill:none;stroke:#c8e4a5;stroke-width:2px;stroke-linejoin:round;vector-effect:non-scaling-stroke}

/* The city canvas: 1671 x 412 poster units, pieces placed in percentages */
.city{position:absolute;z-index:2;left:50%;bottom:var(--city-bottom);width:var(--city-w);margin-left:calc(var(--city-w) / -2);aspect-ratio:1671/412}
.city:before{content:'';position:absolute;left:-60%;right:-60%;top:83%;bottom:-40%;background:linear-gradient(180deg,#1f8a2f,#2f9c3d 40%,#46ad4a)}
.layer{position:absolute;inset:0;transform-origin:50% 86%;will-change:transform}
.idle{position:absolute}
.idle img{position:absolute;inset:0;width:100%;height:100%;max-width:none}
.layer-landscape .idle{left:0;top:57.04%;width:100%;height:28.88%}
.layer-landscape .ls-left{left:0;width:50.03%}
.layer-landscape .ls-right{left:48.77%;width:51.23%}
.layer-landscape .idle:before,.layer-landscape .idle:after{content:'';position:absolute;top:0;height:100%;background-size:100% 100%;transform:scaleX(-1)}
.layer-landscape .idle:before{right:100%;width:51.23%;background-image:url('assets/leon-scene-landscape-right.webp')}
.layer-landscape .idle:after{left:100%;width:50.03%;background-image:url('assets/leon-scene-landscape-left.webp')}
.layer-ground .idle{left:0;top:80.83%;width:100%;height:19.17%}
.layer-ground .idle:before,.layer-ground .idle:after{content:'';position:absolute;top:0;width:100%;height:100%;background:url('assets/leon-scene-ground.webp') 0 0/100% 100%;transform:scaleX(-1)}
.layer-ground .idle:before{right:100%}
.layer-ground .idle:after{left:100%}
.layer-stadium .idle{left:7.12%;top:57.04%;width:17.89%;height:33.5%}
.layer-cathedral .idle{left:21.42%;top:28.4%;width:13.11%;height:52.67%}
.layer-arch .idle{left:39.26%;top:0;width:21.48%;height:90.53%}
.layer-building .idle{left:64.27%;top:42.72%;width:16.7%;height:38.35%}
.layer-fountain .idle{left:76.78%;top:60.19%;width:16.7%;height:28.64%}
.layer-arch .idle img{transform-origin:50% 100%}

/* lion glow (pre-blurred radial), lime by day and amber at dusk */
.glows{position:absolute;left:40%;top:-33%;width:20%;aspect-ratio:1;pointer-events:none}
.lion-glow,.lion-glow i{position:absolute;inset:0;display:block}
.lion-glow i{border-radius:50%;background:radial-gradient(closest-side,rgba(215,245,144,.55),rgba(215,245,144,.18) 45%,rgba(215,245,144,0))}
.lion-glow-dusk{opacity:0}
.lion-glow-dusk i{background:radial-gradient(closest-side,rgba(242,194,122,.7),rgba(242,194,122,.22) 45%,rgba(242,194,122,0))}

/* dusk window lights */
.lights{position:absolute;inset:0;pointer-events:none;opacity:0}
.lights i{position:absolute;left:var(--x);top:var(--y);width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#ffe2a8;box-shadow:0 0 6px 2px rgba(242,194,122,.85),0 0 18px 6px rgba(242,194,122,.35)}
.lights i.rose{width:12px;height:12px;margin:-6px 0 0 -6px}

/* connections */
.connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform-origin:50% 86%;pointer-events:none;visibility:hidden}
.connections .cx-lines path{fill:none;stroke:var(--lime-glow);stroke-width:2;stroke-dasharray:7 9;stroke-linecap:round;vector-effect:non-scaling-stroke}
.connections .cx-draw{fill:none;stroke:#fff;stroke-width:14;stroke-dasharray:1 1;stroke-dashoffset:1}
.connections .node{fill:var(--lime-glow)}
.connections .ring{fill:none;stroke:var(--lime-glow);stroke-width:1.5;opacity:0;vector-effect:non-scaling-stroke}

.shade-dusk{position:absolute;left:0;right:0;bottom:0;height:calc(var(--city-bottom) + var(--city-h) * 1.1);z-index:3;opacity:0;pointer-events:none;mix-blend-mode:multiply;background:linear-gradient(180deg,rgba(150,175,190,0) 0%,#9fb7c4 35%,#7f9cac 70%,#6b8a9b 100%)}
.stage-vignette{position:absolute;left:0;right:0;bottom:0;z-index:3;height:calc(var(--city-bottom) + var(--city-h) * .42);pointer-events:none;background:linear-gradient(180deg,rgba(6,38,31,0),rgba(6,38,31,.55) 55%,rgba(6,38,31,.86))}
.stage-dim{position:absolute;inset:0;z-index:20;background:#04201a;opacity:0;pointer-events:none}
.stage-curtain{display:none}

/* ---------- Copy ---------- */
.stage-copy{position:relative;z-index:6}
.chapter{color:#eef5e4}
.chapter .eyebrow{color:var(--lime)}
.chapter h1,.chapter h2{color:#f4f8ec}
.chapter em{color:var(--lime)}
.chapter p{color:#cfe0c4}
.chapter-lead{font-size:20px;line-height:1.45}
.chapter-lead,.chapter-body>p{color:#dbe8d1}
.event-date{display:flex;flex-direction:column;gap:2px;margin:0 0 26px;padding:14px 0 0;border-top:1px solid rgba(211,237,157,.22)}
.event-date strong{font-size:22px;font-weight:500;letter-spacing:-.02em;color:#f4f8ec;font-variant-numeric:tabular-nums}
.event-date>span{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-dark)}
.chapter .subtle-link{color:#f4f8ec}
.chapter-hint{font-family:var(--mono);font-size:11.5px!important;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-dark)!important;margin:26px 0 0}
.topic-selector{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px}
html:not(.topics-ready) .topic-selector{display:none}
html:not(.topics-ready) .topic-previews article+article{margin-top:18px}
.topic-selector button{border:1px solid rgba(211,237,157,.38);background:rgba(6,38,31,.35);color:#e5f2cf;border-radius:999px;padding:9px 15px;font-size:14px;line-height:1.2;transition:background .25s,color .25s,border-color .25s}
.topic-selector button:hover{border-color:var(--lime)}
.topic-selector button[aria-pressed=true]{background:var(--lime);color:var(--ink);border-color:var(--lime)}
.topic-previews{border-top:1px solid rgba(211,237,157,.22);padding-top:16px;min-height:9.5em}
.topic-previews span{display:block;font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-dark);margin-bottom:8px}
.topic-previews h3{font-size:clamp(1.3rem,1.8vw,1.6rem);line-height:1.15;color:#f4f8ec;margin:0 0 10px}
.topic-previews p{font-size:14.5px;margin:0 0 10px}
.topic-previews a{font-size:14px;color:var(--lime)}
.visit-summary{margin:4px 0 24px;border-top:1px solid rgba(211,237,157,.22)}
.visit-summary>div{display:grid;grid-template-columns:8.5em 1fr;gap:4px 16px;padding:13px 0;border-bottom:1px solid rgba(211,237,157,.22)}
.visit-summary dt{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--lime);padding-top:4px}
.visit-summary dd{margin:0;display:flex;flex-direction:column;gap:2px}
.visit-summary dd strong{font-size:20px;font-weight:500;color:#f4f8ec;font-variant-numeric:tabular-nums}
.visit-summary dd span{font-size:14.5px;color:#cfe0c4;line-height:1.4}

/* scene notes + chapter index */
.scene-notes{position:relative;z-index:6}
.scene-note{margin:0;font-family:var(--mono);font-size:11.5px;line-height:1.6;letter-spacing:.04em;color:var(--muted-dark);padding-left:14px;border-left:1px solid var(--lime)}
.scene-note strong{font-weight:500;color:#e5f2cf}
.chapter-index{position:relative;z-index:6;display:none}
.intro-skip{display:none}

/* ---------- No-JS / short-viewport layout: everything in flow ---------- */
.stage-wrap:not(.is-staged) .stage{padding:calc(var(--header-h) + 48px) var(--pad) calc(var(--city-h) + var(--word-size) * .55)}
.stage-wrap:not(.is-staged) .chapter{max-width:1100px;margin:0 0 72px}
.stage-wrap:not(.is-staged) .chapter-hint{display:none}
.stage-wrap:not(.is-staged) .scene-notes{display:flex;flex-wrap:wrap;gap:16px 40px;margin-bottom:24px}
html.js:not(.hero-ready) .stage-curtain{display:block;position:absolute;inset:0;z-index:40;background:var(--stage);animation:hero-failsafe .4s 3s forwards}
@keyframes hero-failsafe{to{opacity:0;visibility:hidden}}

/* ---------- Staged (scroll scene) layout ---------- */
/* stage 100 + scene 200 + hold 20 (svh) + the next panel's height, which slides over the held stage */
.stage-wrap.is-staged{height:calc(320svh + var(--overlap,0px));margin-bottom:calc(var(--overlap,0px) * -1)}
.stage-wrap.is-staged .stage{position:sticky;top:0;height:100svh;min-height:0;transform-origin:50% 0}
.is-staged .stage-copy{position:absolute;z-index:6;left:var(--pad);right:var(--pad);top:calc(var(--header-h) + clamp(16px,5svh,64px));display:grid}
.is-staged .chapter{grid-area:1/1;align-self:start}
.is-staged .stage-curtain{display:block;position:absolute;inset:0;z-index:40;background:var(--stage);pointer-events:none}
.is-staged .scene-notes{position:absolute;right:var(--pad);bottom:calc(var(--city-bottom) + 22px);width:min(300px,30vw);display:grid}
.is-staged .scene-note{grid-area:1/1;align-self:end}
.is-staged .chapter-index{display:flex;position:absolute;left:var(--pad);bottom:calc(var(--city-bottom) + 18px);gap:6px 26px}
.chapter-index button{display:flex;align-items:center;gap:10px;border:0;background:none;padding:8px 0;color:var(--muted-dark);font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;transition:color .3s}
.chapter-index .ci-num{display:inline-flex;align-items:center;gap:10px}
.chapter-index .ci-num:after{content:'';width:0;height:1px;background:var(--lime);transition:width .45s var(--ease-out)}
.chapter-index button:hover{color:#eef5e4}
.chapter-index button[aria-current=step]{color:var(--lime)}
.chapter-index button[aria-current=step] .ci-num:after{width:24px}
.is-intro .intro-skip{display:block;position:absolute;z-index:45;top:calc(var(--header-h) + 14px);right:var(--pad);font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--lime);text-decoration:none;padding:8px 14px;border:1px solid rgba(211,237,157,.4);border-radius:999px}
.is-intro .intro-skip:hover{background:rgba(211,237,157,.12)}

/* desktop: headline left, details right, a clear centre column for the arch */
@media(min-width:1001px){
  .is-staged .chapter{display:grid;grid-template-columns:minmax(0,600px) minmax(0,400px);justify-content:space-between;align-items:end;column-gap:48px}
  .is-staged .chapter-head .eyebrow{margin-bottom:18px}
  .is-staged .chapter-head h1,.is-staged .chapter-head h2{margin:0}
  .is-staged .hero-title{font-size:min(clamp(2.9rem,6.2vw,6.4rem),11.2svh)}
  .is-staged .chapter h2{font-size:min(clamp(2.3rem,4.4vw,4.2rem),8.4svh)}
  .is-staged .chapter-body{padding-bottom:6px}
  .is-staged .chapter-body>p:not(.chapter-hint){font-size:17px;margin-bottom:16px}
  .is-staged .chapter-ideas,.is-staged .chapter-encuentro{align-items:start}
  .is-staged .chapter-ideas .chapter-head,.is-staged .chapter-encuentro .chapter-head{padding-top:0}
  .is-staged .chapter-ideas .chapter-body,.is-staged .chapter-encuentro .chapter-body{padding-top:34px}
  .is-staged .chapter-hint{margin-top:18px}
}
@media(min-width:1001px) and (max-height:800px){
  .is-staged .chapter-lead{font-size:18px}
  .is-staged .event-date{margin-bottom:18px}
  .is-staged .topic-previews{min-height:0}
  .is-staged .visit-summary>div{padding:9px 0}
}

/* tablet + phone: the city leads. Chapter 01 is a title on top and the CTA at the bottom;
   02 and 03 are scene captions in a bottom strip. Their long copy lives in #las-ideas and #informacion. */
.scroll-cue,.caption-link{display:none}
@media(max-width:1000px){
  /* no-JS / short screens: everything in flow (unchanged) */
  .stage-wrap{--city-w:130vw;--word-size:clamp(7rem,26vw,15rem);--word-base:.22}
  /* staged: arch centred, ground line (80.83% of the city) at 66% of the screen */
  .stage-wrap.is-staged{--city-w:min(150vw,115svh);--word-size:min(30vw,var(--city-h) * .8,20rem);--word-base:.30;
    --city-bottom:calc(34svh - var(--city-h) * .1917);height:calc(225svh + var(--overlap,0px))}
  .is-staged .stage-copy{inset:0;display:block;pointer-events:none}
  .is-staged .chapter{position:absolute;left:var(--pad);right:var(--pad);align-self:normal}
  .is-staged .chapter a,.is-staged .chapter button{pointer-events:auto}
  .is-staged .chapter-head .eyebrow{margin-bottom:10px}
  /* 01 · the headline under the header and the chapter index, the CTA pinned to the bottom */
  .is-staged .chapter-ciudad{top:calc(var(--header-h) + 34px);bottom:calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:space-between}
  .is-staged .hero-title{font-size:clamp(2rem,9.5vw,2.8rem);margin:0}
  .is-staged .chapter-ciudad .chapter-lead,.is-staged .chapter-ciudad .event-date,.is-staged .chapter-hint{display:none}
  .is-staged .chapter-ciudad .chapter-body{display:flex;flex-direction:column;align-items:center}
  .is-staged .chapter-ciudad .chapter-actions{flex-direction:column;gap:10px;margin:0}
  .is-staged .chapter-actions .button{padding:14px 26px;font-size:16px}
  .is-staged .chapter-actions .subtle-link{padding:4px 0}
  .is-staged .scroll-cue{display:block;position:relative;width:24px;height:26px;margin-top:4px}
  .scroll-cue:before{content:'';position:absolute;left:50%;top:5px;width:9px;height:9px;margin-left:-5.5px;border-right:2px solid var(--lime);border-bottom:2px solid var(--lime);rotate:45deg;animation:cue-drop 2.6s var(--ease-out) infinite}
  /* 02 + 03 · scene captions: a short scrim only behind the lines */
  .is-staged .chapter-ideas,.is-staged .chapter-encuentro{bottom:0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .is-staged .chapter-ideas:before,.is-staged .chapter-encuentro:before{content:'';position:absolute;z-index:-1;left:calc(var(--pad) * -1);right:calc(var(--pad) * -1);top:-56px;bottom:0;background:linear-gradient(180deg,rgba(6,38,31,0),rgba(6,38,31,.7) 56px,rgba(6,38,31,.88));pointer-events:none}
  .is-staged .chapter-ideas .chapter-body,.is-staged .chapter-encuentro .chapter-body{display:none}
  .is-staged .chapter h2{font-size:clamp(1.7rem,7.5vw,2.3rem);line-height:1.04;margin:0}
  .is-staged .caption-link{display:inline-block;margin-top:12px;padding:4px 0;font-size:14px;color:var(--lime);text-decoration-color:rgba(211,237,157,.5)}
  .is-staged .scene-notes{display:none}
  /* the city stays lit down to the ground; only the floor under it fades for the CTA */
  .is-staged .city:before{background:linear-gradient(180deg,#1f8a2f,#1b6d2e 18%,#0c3d27 55%,rgba(9,51,40,0) 100%)}
  .is-staged .stage-vignette{height:calc(var(--city-bottom) + var(--city-h) * .1);background:linear-gradient(180deg,rgba(6,38,31,0),rgba(6,38,31,.6) calc(var(--city-h) * .3),rgba(6,38,31,.92) 75%)}
  /* chapter index: top-right under the header, its own row above the headline */
  .is-staged .chapter-index{left:auto;right:var(--pad);bottom:auto;top:calc(var(--header-h) + 4px);gap:14px}
  .is-staged .chapter-index button{font-size:10.5px;padding:6px 0;gap:6px}
  .is-staged .chapter-index button:not([aria-current]) .ci-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .is-staged .chapter-index .ci-num{gap:6px}
  .is-staged .chapter-index button[aria-current=step] .ci-num:after{width:14px}
  /* Omitir takes the chapter index's place during the intro */
  .is-intro .intro-skip{top:calc(var(--header-h) + 4px);padding:5px 12px;font-size:11px}
  .big-word path{stroke-width:1.5px}
}
@media(min-width:761px) and (max-width:1000px){
  .is-staged .chapter-head{max-width:640px}
}
@media(max-width:760px){
  .stage-wrap{--city-w:180vw;--word-size:clamp(6rem,33vw,9rem);--word-base:.12}
  /* phones: the city at ~220vw, LEÓN as large as the space between the headline and the arch allows */
  .stage-wrap.is-staged{--city-w:min(220vw,110svh);--word-size:clamp(6rem,min(38vw,66svh - 55vw - 150px),15rem)}
  .is-staged .chapter-ciudad .eyebrow{font-size:11px;letter-spacing:.12em}
}
@media(max-width:380px){
  .is-staged .chapter-actions .button{padding:13px 22px}
}
@keyframes cue-drop{0%{translate:0 -5px;opacity:0}30%{opacity:1}70%{translate:0 5px;opacity:1}100%{translate:0 8px;opacity:0}}
@media(prefers-reduced-motion:reduce){.scroll-cue:before{animation:none}}

@media print{.stage-wrap{height:auto!important;margin:0!important}.stage{position:static!important;height:auto!important}.city,.big-word,.light,.cloud,.stage-curtain,.stage-dim,.shade-dusk,.stage-vignette{display:none}}
