/* ============================================================================
   HOMEPAGE — "Living Fiesta Editorial" sections
   ----------------------------------------------------------------------------
   Ported from the client-approved mockup (Docs/mockups/living-fiesta-homepage.html,
   2026-10-03) with the mockup-only parts removed (notes panel, bindings, link
   toast). Loads only on the Bootstrap-free homepage (ViewData["Chrome"] =
   "editorial"), after css/public/tokens.css + shell.css, which own the header,
   dock, footer and the .pub-* primitives. Everything here reads tokens.css only.

   Three tiers:  phone < 640  ·  tablet 640–899  ·  desktop >= 900.
   The three cinematic sequences (MAHAL TANA, Puerto Galera, the festival
   procession) run only under (min-width: 900px) and (prefers-reduced-motion:
   no-preference); everywhere else they are the stacked "static-wide" layouts.
   Performance rules carried over: no full-screen blend modes, transform-based
   drifts, parallax desktop-only, ambient animations paused off-screen (.amb /
   .live), videos preload="none" and only >= 900px.
   ============================================================================ */

/* ---------- 1. BASE (page only) ---------- */
main > section { overflow-x: clip; } /* elements may enter from beyond the edge; clip (not hidden) keeps position: sticky working */
/* visually hidden, still read by assistive tech (the shell's twin is .pub-sr) */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* film grain: one fixed, composited layer; no blend mode, so it costs a single texture */
body::after {
  content: ""; position: fixed; inset: -60px; z-index: var(--z-grain); pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  body::after { opacity: .055; will-change: transform; animation: grain 1.4s steps(4) infinite; }
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-22px, 14px); } 50% { transform: translate(16px, -20px); } 75% { transform: translate(-10px, -8px); } 100% { transform: translate(0, 0); } }

/* type primitives */
.label { font-family: var(--f-sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; margin: 0; }
.display {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  line-height: .86; letter-spacing: -.035em; margin: 0; text-wrap: balance;
}
.display em { font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.02em; }
.display .lc { text-transform: none; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: var(--w-text); }
.serif-it { font-family: var(--f-display); font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- 2. COMPONENTS ---------- */
/* photo frame — square corners by default; radius is the exception, not the rule */
.ph { margin: 0; position: relative; overflow: hidden; background: var(--paper-3); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e-out), scale 1.4s var(--e-out); }
a:hover .ph img, a:focus-visible .ph img { transform: scale(1.045) translate(-1%, -1%); }
.cap { font-size: .78rem; letter-spacing: .02em; color: var(--ink-3); margin-top: 10px; }
.cap b { font-weight: 600; color: var(--ink); }

/* buttons: the arrow slides out and a twin slides in */
.btn {
  display: inline-flex; align-items: center; gap: 16px; padding: 17px 24px 16px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--r1); transition: background var(--d-ui), color var(--d-ui), box-shadow var(--d-ui);
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: #B81616; }
.btn-ghost { box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.arw { position: relative; width: 22px; height: 12px; overflow: hidden; flex: none; }
.arw svg { position: absolute; inset: 0; width: 22px; height: 12px; transition: transform var(--d-ui) var(--e-out); }
.arw svg + svg { transform: translateX(-130%); }
a:hover > .arw svg:first-child, a:focus-visible > .arw svg:first-child, button:hover > .arw svg:first-child { transform: translateX(130%); }
a:hover > .arw svg + svg, a:focus-visible > .arw svg + svg, button:hover > .arw svg + svg { transform: translateX(0); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 34px; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform var(--d-ui) var(--e-out); }
.link-arrow:hover::after { transform: scaleX(.3); }

/* scroll reveals (transition tier) — only when scripts can run, so nothing stays hidden without JS */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--e-out), transform 1.2s var(--e-out); }
  .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--e-out); }
  .js [data-reveal="right"] { transform: translateX(14vw); }
  .js [data-reveal="left"] { transform: translateX(-14vw); }
  [data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
  [data-reveal][data-delay="1"] { transition-delay: .12s; }
  [data-reveal][data-delay="2"] { transition-delay: .24s; }
  [data-reveal][data-delay="3"] { transition-delay: .36s; }
}

/* ambient tier: paused unless the section is on screen */
.amb { animation-play-state: paused !important; }
.live .amb { animation-play-state: running !important; }


/* ---------- PRELOADER ---------- */
.loader { position: fixed; inset: 0; z-index: var(--z-loader); display: none; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); cursor: pointer; transition: opacity .9s var(--e-io) .1s, visibility 0s 1s; }
@media (scripting: enabled) { .loader { display: flex; } }
html.skip-loader .loader { display: none; }
.loader-logo { position: relative; width: min(64vw, 440px); aspect-ratio: 670 / 406; }
/* official artwork sits on white; multiply drops that white onto the paper */
.loader-logo img { width: 100%; height: 100%; mix-blend-mode: multiply; clip-path: inset(0 100% 0 0); }
.loader.run .loader-logo img { animation: wipe 1.3s var(--e-io) .15s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.loader-light {
  position: absolute; left: 0; top: 62%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 14px 5px rgba(36, 161, 236, .95), 0 0 60px 22px rgba(36, 161, 236, .4);
}
.loader.run .loader-light { animation: travel 1.3s var(--e-io) .15s forwards; }
@keyframes travel { 0% { opacity: 0; left: 0; top: 62%; } 10% { opacity: 1; } 50% { top: 28%; } 100% { opacity: 1; left: 100%; top: 52%; } }
.loader.bloom { opacity: 0; visibility: hidden; pointer-events: none; }
/* failsafe: the curtain is lifted by js/home/scenes.js; if that script never arrives (blocked, offline, error)
   it lifts itself after 5 s instead of covering the page for good */
.loader:not(.run):not(.bloom) { animation: loader-failsafe 0s linear 5s forwards; }
@keyframes loader-failsafe { to { visibility: hidden; pointer-events: none; } }
.loader.bloom .loader-light { left: 100%; top: 52%; opacity: 1; animation: bloom 1.1s var(--e-out) forwards; }
@keyframes bloom { from { transform: scale(1); } to { transform: scale(120); } }
.loader-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); opacity: .55; }


/* ---------- HERO (morning) ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; color: var(--paper); overflow: hidden; background: var(--night); isolation: isolate; }
.hero-scenes { position: absolute; inset: -28px; z-index: 0; translate: var(--hx, 0) var(--hy, 0); transition: translate 1.4s var(--e-out); }
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity var(--d-scene) var(--e-io), visibility 0s var(--d-scene); }
.scene.on { opacity: 1; visibility: visible; transition: opacity var(--d-scene) var(--e-io); }
.scene img, .scene video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 0s linear var(--d-scene); }
.scene.on img, .scene.on video { transform: scale(1); transition: transform 11s cubic-bezier(.2, .4, .3, 1); }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 9, 6, .55) 0%, rgba(12, 9, 6, 0) 24%),
    linear-gradient(270deg, rgba(12, 9, 6, .6) 0%, rgba(12, 9, 6, 0) 34%),
    linear-gradient(14deg, rgba(12, 9, 6, .86) 6%, rgba(12, 9, 6, .38) 46%, rgba(12, 9, 6, 0) 74%);
}
.hero .lights { z-index: 2; }
.hero { --bt: 84px; }
@media (max-width: 899px) { .hero { --bt: 70px; } }
.hero .pub-bunting { position: absolute; left: 0; right: 0; top: var(--bt); z-index: 2; color: var(--paper); transition: top var(--d-ui) var(--e-out); }
.hero-inner { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock) + 92px); }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s5); transition: opacity 1s .2s, transform 1s var(--e-out) .2s; }
.hero-kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.hero-heading { margin: 0; font: inherit; }
.hero-title { display: block; font-size: var(--fs-mega); }
.hero-title .ln { display: block; overflow: hidden; padding: 0 .04em .03em 0; }
.hero-title .ln > span { display: inline-block; transition: transform 1.4s var(--e-out); }
.hero-title .ln:nth-child(2) { padding-left: .62em; }
.hero-title .ln:nth-child(4) { padding-left: 1.3em; }
.hero-title .ln:nth-child(2) > span { transition-delay: .09s; }
.hero-title .ln:nth-child(3) > span { transition-delay: .18s; }
.hero-title .ln:nth-child(4) > span { transition-delay: .27s; }
.hero-title em { color: var(--sky-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s6); transition: opacity 1s .55s, transform 1.2s var(--e-out) .55s; }
/* the entrance states exist only where scripts can lift them (no inline no-js script on the live site) */
@media (scripting: enabled) {
  html:not(.is-ready) .hero-kicker { opacity: 0; transform: translateY(10px); }
  html:not(.is-ready) .hero-title .ln > span { transform: translateY(108%); }
  html:not(.is-ready) .hero-ctas { opacity: 0; transform: translateY(14px); }
}
.is-ready .hero-title .ln > span, .no-js .hero-title .ln > span { transform: none; }
.is-ready .hero-kicker, .is-ready .hero-ctas, .no-js .hero-kicker, .no-js .hero-ctas { opacity: 1; transform: none; }
.hero-brand { display: none; }
.hero-index {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock) + 26px);
  display: flex; justify-content: space-between; gap: 8px;
}
.hero-index button { display: grid; gap: 6px; text-align: left; opacity: .62; transition: opacity var(--d-ui); }
.hero-index .num { display: none; font-size: .66rem; letter-spacing: .14em; }
.hero-index .word { font-family: var(--f-display); font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: .92rem; line-height: 1; }
.hero-index .bar { height: 1px; background: rgba(255, 255, 255, .28); position: relative; overflow: hidden; }
.hero-index .bar::after { content: ""; position: absolute; inset: 0; background: var(--sky-2); transform: scaleX(0); transform-origin: left; }
.hero-index [aria-pressed="true"] { opacity: 1; }
.hero-index [aria-pressed="true"] .bar::after { transform: scaleX(1); }
.hero-index.auto [aria-pressed="true"] .bar::after { animation: fillbar var(--scene-ms, 7000ms) linear forwards; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-index .hero-pause { display: none; }
.hero-caption { display: none; }
.scroll-cue { display: none; }
@media (min-width: 900px) {
  .hero-inner { right: auto; bottom: clamp(70px, 10vh, 120px); max-width: 70vw; }
  .hero-brand { display: block; position: absolute; z-index: 3; left: calc(var(--gutter) * .38); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); opacity: .7; }
  .hero-index { left: auto; right: var(--gutter); bottom: auto; top: 50%; transform: translateY(-46%); flex-direction: column; align-items: stretch; gap: 10px; min-width: 210px; }
  .hero-index button { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; row-gap: 8px; padding: 2px 0; }
  .hero-index .num { display: block; }
  .hero-index .word { font-size: clamp(1.4rem, 2.1vw, 2.15rem); text-align: right; }
  .hero-index .bar { grid-column: 1 / -1; }
  .hero-index button:hover { opacity: .9; }
  .hero-index .hero-pause { display: inline-flex; align-self: flex-end; align-items: center; gap: 8px; margin-top: 10px; opacity: .65; }
  .hero-pause:hover { opacity: 1; }
  .hero-pause svg { width: 12px; height: 12px; }
  .hero-caption { display: block; position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(30px, 5vh, 48px); text-align: right; max-width: 30vw; }
  .hero-caption a { display: block; margin-top: 6px; font-family: var(--f-display); font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
  .scroll-cue { display: grid; justify-items: center; gap: 10px; position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); text-decoration: none; }
  .scroll-cue i { display: block; width: 1px; height: 46px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
  .scroll-cue i::after { content: ""; position: absolute; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--sky-2); box-shadow: 0 0 10px 3px rgba(36, 161, 236, .7); animation: drip 2.4s var(--e-io) infinite; }
}
@keyframes drip { 0% { top: -6px; opacity: 0; } 20% { opacity: 1; } 100% { top: 48px; opacity: 0; } }

/* ---------- 03 · ALIVE (morning, paper) ---------- */
.alive { position: relative; padding: 16vh var(--gutter) 12vh; }
.alive-title { font-size: var(--fs-xl); color: var(--ink); }
.alive-title .kline { display: block; translate: var(--kx, 0) 0; }
.alive-title .kline:nth-child(2) { padding-left: 1.1em; }
.alive-title .kline:nth-child(3) { padding-left: .35em; }
.alive-title .kline:nth-child(4) { padding-left: 1.9em; color: var(--red-ink); }
.alive-copy .lead { margin-top: var(--s7); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s5) clamp(20px, 5vw, 64px); margin: var(--s7) 0 0; }
.stats dd { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-variation-settings: "SOFT" 50, "opsz" 144; }
.stats dt { font-size: .78rem; letter-spacing: .08em; color: var(--ink-3); margin-top: 6px; }
.stats div { display: flex; flex-direction: column-reverse; }
.alive-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--s8); }
.alive-photos .ph-a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.alive-photos .ph-b { aspect-ratio: 4 / 5; rotate: 1.6deg; }
.alive-photos .ph-c { aspect-ratio: 4 / 5; }
.alive-photos .ph-d { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.alive-photos figcaption, .float-cap { position: absolute; left: 10px; bottom: 8px; font-size: .7rem; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
@media (min-width: 900px) {
  .alive { min-height: 138vh; padding-top: 20vh; }
  .alive-copy { position: relative; z-index: 2; max-width: 54vw; }
  .alive-copy .lead { max-width: min(36rem, 44vw); }
  .alive-photos { display: block; margin: 0; }
  .alive-photos .ph { position: absolute; }
  .alive-photos .ph-a { right: var(--gutter); top: 10vh; width: 34vw; z-index: 1; }
  .alive-photos .ph-b { right: calc(var(--gutter) + 25vw); top: 42vh; width: 14vw; z-index: 3; box-shadow: 0 30px 60px -30px rgba(23, 20, 15, .55); }
  .alive-photos .ph-c { right: var(--gutter); top: 68vh; width: 19vw; z-index: 2; }
  .alive-photos .ph-d { left: 29vw; top: 104vh; width: 30vw; z-index: 1; }
}

/* ---------- 04 · MAHAL TANA (land & people) ---------- */
.mt { position: relative; }
.mt-stage { position: relative; padding: 14vh var(--gutter); background: var(--paper-2); color: var(--ink); }
.mt-bg { display: none; }
.mt-title { font-size: var(--fs-xl); }
.mt-title em { color: var(--red-ink); }
.mt-intro { font-size: var(--fs-lead); max-width: 30rem; margin-top: var(--s6); }
.mt-intro b { font-family: var(--f-display); font-weight: 800; font-size: 1.15em; }
.mt-tracker, .mt-progress { display: none; }
.mt-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--s7); }
.mt-mosaic .ph { aspect-ratio: 1; }
.mt-mosaic span { position: absolute; left: 12px; bottom: 6px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 4.6rem); color: #fff; line-height: 1; letter-spacing: -.04em; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.mt-ch { margin-top: var(--s9); }
.mt-ch-title { font-size: var(--fs-l); margin-bottom: var(--s5); }
.mt-ch-title b { font-weight: 800; }
.mt-ch-title span { font-style: italic; font-weight: 400; text-transform: none; font-size: .5em; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.mt-vis { position: relative; aspect-ratio: 4 / 5; margin-bottom: var(--s5); }
.mt-vis .ph { position: absolute; }
.mt-vis .v-main { inset: 0 0 18% 0; }
.mt-vis .v-sub { width: 48%; aspect-ratio: 1; left: 4%; bottom: 0; rotate: -2deg; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.mt-vis .v-sub2, .mt-vis .v-reflect, .mt-vis .mist, .mt-vis .species-word { display: none; }
.mt-text p { max-width: 34rem; }
.mt-text .cap { margin-top: 0; }
.species { margin: var(--s5) 0 0; padding: var(--s4) 0 0; border-top: 1px solid currentColor; display: grid; gap: 2px; max-width: 22rem; font-size: .82rem; }
.species i { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; }
.mt-outro { margin-top: var(--s9); }
.mt-outro p { font-size: var(--fs-l); }
.mt-outro em { color: var(--red-ink); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .mt { height: 560vh; }
  .mt-stage { position: sticky; top: 0; height: 100vh; padding: 0; overflow: hidden; background: none; transition: color 1s var(--e-io); }
  .mt-bg { display: block; position: absolute; inset: 0; background: var(--paper-2); transition: background 1.2s var(--e-io); }
  .mt-stage[data-ch="1"] .mt-bg { background: #E7D6BC; }
  .mt-stage[data-ch="2"] .mt-bg { background: #D8E0D6; }
  .mt-stage[data-ch="3"] .mt-bg { background: var(--green-ink); }
  .mt-stage[data-ch="4"] .mt-bg { background: #D4E3E4; }
  .mt-stage[data-ch="3"] { color: var(--paper); }
  .mt-stage[data-ch="3"] .cap { color: rgba(244, 238, 227, .72); }
  .mt-stage[data-ch="3"] .cap b { color: var(--paper); }

  .mt-head { position: absolute; left: var(--gutter); top: 18vh; width: 36vw; z-index: 3; transition: opacity .8s, transform 1s var(--e-out); }
  .mt-stage:not([data-ch="0"]) .mt-head { opacity: 0; transform: translateY(-40px); pointer-events: none; }

  .mt-mosaic { position: absolute; z-index: 2; right: var(--gutter); top: 14vh; bottom: 14vh; width: 48vw; margin: 0; grid-template-rows: 1fr 1fr; gap: 10px; transition: opacity .9s, transform 1.2s var(--e-out); }
  .mt-mosaic .ph { aspect-ratio: auto; }
  .mt-stage:not([data-ch="0"]) .mt-mosaic { opacity: 0; transform: scale(.96); pointer-events: none; }

  .mt-tracker { display: block; position: absolute; z-index: 3; left: var(--gutter); top: 13vh; margin: 0; padding: 0; list-style: none; font-size: clamp(2.6rem, 9.2vh, 7.4rem); transition: opacity .8s; }
  .mt-stage[data-ch="0"] .mt-tracker { opacity: 0; }
  .mt-tracker li { display: flex; align-items: baseline; line-height: .9; white-space: nowrap; }
  .mt-tracker b { font-weight: 800; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.4px currentColor; transition: -webkit-text-fill-color .8s; }
  .mt-tracker i { font-weight: 400; font-size: .42em; letter-spacing: -.01em; text-transform: none; font-variation-settings: "SOFT" 100, "WONK" 1; padding-left: .08em; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--e-out); }
  .mt-stage[data-ch="1"] .mt-tracker li:nth-child(1) b,
  .mt-stage[data-ch="2"] .mt-tracker li:nth-child(2) b,
  .mt-stage[data-ch="3"] .mt-tracker li:nth-child(3) b,
  .mt-stage[data-ch="4"] .mt-tracker li:nth-child(4) b,
  .mt-stage[data-ch="5"] .mt-tracker b { -webkit-text-fill-color: currentColor; }
  .mt-stage[data-ch="1"] .mt-tracker li:nth-child(1) i,
  .mt-stage[data-ch="2"] .mt-tracker li:nth-child(2) i,
  .mt-stage[data-ch="3"] .mt-tracker li:nth-child(3) i,
  .mt-stage[data-ch="4"] .mt-tracker li:nth-child(4) i { clip-path: inset(0 0 0 0); transition-delay: .25s; }

  .mt-chapters { position: absolute; inset: 0; z-index: 2; }
  .mt-ch { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .mt-ch-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mt-text { position: absolute; left: var(--gutter); bottom: 10vh; width: 31vw; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .9s var(--e-out); }
  .mt-vis { position: absolute; left: 41vw; right: 0; top: 0; bottom: 0; aspect-ratio: auto; margin: 0; background: none !important; }
  .mt-vis .ph { transition: clip-path 1.5s var(--e-out), opacity .9s, transform 1.3s var(--e-out), translate .2s linear; }
  .mt-ch.on { pointer-events: auto; }
  .mt-ch.on .mt-text { opacity: 1; transform: none; transition-delay: .3s; }

  /* MA — masked photographic reveal */
  .mt-ch[data-k="1"] .v-main { inset: 10vh 8vw 16vh 6vw; clip-path: circle(0% at 32% 58%); }
  .mt-ch[data-k="1"].on .v-main { clip-path: circle(80% at 32% 58%); }
  .mt-ch[data-k="1"] .v-sub { left: 1vw; bottom: 7vh; width: 17vw; aspect-ratio: 1; opacity: 0; transform: translateY(60px); }
  .mt-ch[data-k="1"] .v-sub2 { display: block; right: 3vw; top: 6vh; width: 14vw; aspect-ratio: 4 / 5; opacity: 0; transform: translateY(-50px); rotate: 1.5deg; }
  .mt-ch[data-k="1"].on .v-sub, .mt-ch[data-k="1"].on .v-sub2 { opacity: 1; transform: none; transition-delay: .35s; }

  /* HAL — mountains rise in layered depth, mist drifts */
  .mt-ch[data-k="2"] .v-main { inset: 0; opacity: 0; transform: scale(calc(1.18 - var(--cp, 0) * .12)); }
  .mt-ch[data-k="2"].on .v-main { opacity: 1; }
  .mt-ch[data-k="2"] .v-sub { left: 5vw; bottom: 9vh; width: 30vw; aspect-ratio: 16 / 10; rotate: 0deg; opacity: 0; transform: translateY(calc(34vh - var(--cp, 0) * 30vh)); }
  .mt-ch[data-k="2"] .v-sub2 { display: block; right: 4vw; bottom: 4vh; width: 19vw; aspect-ratio: 4 / 5; opacity: 0; transform: translateY(calc(64vh - var(--cp, 0) * 62vh)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
  .mt-ch[data-k="2"].on .v-sub, .mt-ch[data-k="2"].on .v-sub2 { opacity: 1; }
  .mt-ch[data-k="2"] .mist { display: block; position: absolute; inset: -20% -30%; pointer-events: none; opacity: 0; transition: opacity 1.4s;
    background: radial-gradient(40% 22% at 30% 40%, rgba(255, 255, 255, .55), transparent 70%), radial-gradient(36% 18% at 70% 62%, rgba(255, 255, 255, .45), transparent 70%);
    filter: blur(8px); animation: mist 46s linear infinite alternate; }
  .mt-ch[data-k="2"].on .mist { opacity: 1; }
  @keyframes mist { from { transform: translateX(-6%); } to { transform: translateX(8%); } }

  /* TA — nature enters; the species name becomes graphic */
  .mt-ch[data-k="3"] .v-main { right: 6vw; top: 9vh; width: 34vw; height: 74vh; opacity: 0; transform: translateX(16%) scale(1.06); }
  .mt-ch[data-k="3"].on .v-main { opacity: 1; transform: none; }
  .mt-ch[data-k="3"] .v-sub { left: 2vw; bottom: 9vh; width: 17vw; aspect-ratio: 4 / 5; rotate: -1.5deg; opacity: 0; transform: translateY(40px); }
  .mt-ch[data-k="3"].on .v-sub { opacity: 1; transform: none; transition-delay: .4s; }
  .mt-ch[data-k="3"] .species-word { display: block; position: absolute; left: -2vw; top: 6vh; z-index: 2; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 8.2vw; line-height: .8; letter-spacing: -.04em; color: var(--lime-2); font-variation-settings: "SOFT" 100, "WONK" 1; mix-blend-mode: screen; opacity: 0; transform: translateX(-6vw); transition: opacity 1.2s, transform 1.6s var(--e-out); pointer-events: none; }
  .mt-ch[data-k="3"].on .species-word { opacity: .85; transform: translateX(calc(var(--cp, 0) * 4vw)); }

  /* NA — the lake opens and reflects */
  .mt-ch[data-k="4"] .v-main { inset: 8vh 5vw 48vh 4vw; clip-path: inset(0 50% 0 50%); }
  .mt-ch[data-k="4"].on .v-main { clip-path: inset(0 0 0 0); }
  .mt-ch[data-k="4"] .v-reflect { display: block; inset: 52vh 5vw 4vh 4vw; transform: scaleY(-1); opacity: 0; filter: blur(2px) saturate(1.1); -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 85%); mask-image: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 85%); }
  .mt-ch[data-k="4"].on .v-reflect { opacity: .55; transition-delay: .5s; }
  .mt-ch[data-k="4"] .v-reflect img { animation: ripple 7s var(--e-sway) infinite alternate; }
  @keyframes ripple { from { transform: scale(1.02, 1) translateX(-4px); } to { transform: scale(1.02, 1.04) translateX(4px); } }
  .mt-ch[data-k="4"] .v-sub { left: 0; bottom: 6vh; width: 19vw; aspect-ratio: 16 / 10; rotate: 1.2deg; opacity: 0; transform: translateY(40px); z-index: 2; }
  .mt-ch[data-k="4"].on .v-sub { opacity: 1; transform: none; transition-delay: .7s; }

  .mt-outro { position: absolute; z-index: 3; right: var(--gutter); top: 50%; width: 50vw; margin: 0; text-align: right; opacity: 0; transform: translateY(-40%); transition: opacity .9s, transform 1.2s var(--e-out); }
  .mt-stage[data-ch="5"] .mt-outro { opacity: 1; transform: translateY(-50%); }
  .mt-outro p { font-size: clamp(2.4rem, 5vw, 5.4rem); }

  .mt-progress { display: block; position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 4vh; height: 1px; background: rgba(127, 127, 127, .3); }
  .mt-progress span { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
}

/* ---------- 05 · MOODS ---------- */
.moods { padding: 15vh var(--gutter) 12vh; }
.moods h2 { font-size: var(--fs-l); }
.moods h2 em { color: var(--green); }
.moods-body { margin-top: 7vh; }
.moods-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(23, 20, 15, .18); }
.moods-list a {
  display: grid; grid-template-columns: 2.6rem 1fr 64px; align-items: center; gap: 4px 12px;
  padding: 16px 0; border-bottom: 1px solid rgba(23, 20, 15, .18); text-decoration: none;
}
.moods-list .mn { font-size: .7rem; letter-spacing: .14em; color: var(--ink-3); }
.moods-list .mtt { font-family: var(--f-display); font-weight: 750; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; font-size: clamp(1.6rem, 3.7vw, 3.7rem); font-variation-settings: "SOFT" 100, "opsz" 144; transition: transform .7s var(--e-out), color .5s; }
.moods-list .ms { grid-column: 2 / 3; font-size: .86rem; color: var(--ink-3); }
.moods-list .mthumb { grid-row: 1 / 3; grid-column: 3; width: 64px; height: 64px; object-fit: cover; }
@media (min-width: 900px) {
  .moods-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5vw; align-items: start; }
  .moods-list a { grid-template-columns: 3.4rem 1fr; padding: 2.1vh 0; }
  .moods-list .mthumb { display: none; }
  .moods-list .ms { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--e-out), opacity .5s, margin .6s var(--e-out); }
  .moods-list a.on .ms { max-height: 2.4em; opacity: 1; margin-top: 6px; }
  .moods-list a.on .mtt, .moods-list a:hover .mtt { transform: translateX(1.1rem); color: var(--mood); }
}
.moods-list [data-key="lose-yourself"] { --mood: var(--green); }
.moods-list [data-key="dive-deeper"] { --mood: var(--navy); }
.moods-list [data-key="find-your-island"] { --mood: var(--teal); }
.moods-list [data-key="taste-the-province"] { --mood: var(--red-ink); }
.moods-list [data-key="meet-the-culture"] { --mood: var(--green-deep); }
.moods-list [data-key="chase-the-light"] { --mood: var(--navy); }
.moods-stage { display: none; }
@media (min-width: 900px) {
  .moods-stage { display: block; position: sticky; top: 13vh; height: 74vh; overflow: hidden; background: var(--paper-3); }
  .moods-stage figure { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--e-out); }
  .moods-stage figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2s var(--e-out); }
  .moods-stage figure.on { clip-path: inset(0); z-index: 2; }
  .moods-stage figure.on img { transform: scale(1); }
  .moods-stage figure.was { clip-path: inset(0); z-index: 1; }
  .moods-stage figcaption { position: absolute; left: 18px; bottom: 14px; color: #fff; font-size: .78rem; letter-spacing: .04em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
  .moods-count { position: absolute; z-index: 3; right: 18px; top: 14px; margin: 0; color: #fff; text-align: right; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
  .moods-count b { display: block; font-family: var(--f-display); font-weight: 300; font-size: 4.2rem; line-height: 1; letter-spacing: -.04em; }
}

/* ---------- 06 · FEATURED DESTINATIONS ---------- */
.dest { padding: 12vh var(--gutter) 14vh; }
.dest-head { display: grid; gap: var(--s5); }
.dest-head h2 { font-size: var(--fs-l); }
.dest-head h2 em { color: var(--red-ink); }
.dest-head p { max-width: 26rem; color: var(--ink-2); }
.dest-grid { display: grid; gap: 12px; margin-top: 6vh; grid-template-columns: 1fr 1fr; }
.dtile { position: relative; display: block; text-decoration: none; color: #fff; }
.dtile .ph { height: 100%; }
.dtile .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 6, 4, .66), rgba(8, 6, 4, 0) 48%); pointer-events: none; }
.dtile .dt-txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.dtile h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 2.6rem); line-height: .95; letter-spacing: -.025em; margin: 6px 0 0; font-variation-settings: "SOFT" 100; }
.dtile .label { opacity: .92; }
.d-big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.d-s1, .d-s2 { aspect-ratio: 1; }
.d-v { aspect-ratio: 3 / 4; }
.d-all { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: var(--green-ink); color: var(--paper); text-decoration: none; aspect-ratio: 3 / 4; }
.d-all b { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 7vw, 7.6rem); line-height: .9; letter-spacing: -.05em; }
.d-all span { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 2rem); line-height: 1.05; margin-top: 8px; font-variation-settings: "SOFT" 100; }
.d-all .arw { margin-top: 18px; width: 40px; height: 14px; }
.d-all .arw svg { width: 40px; height: 14px; }
@media (min-width: 900px) {
  .dest-head { grid-template-columns: 1fr auto; align-items: end; }
  .dest-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 37vh 39vh 25vh; gap: 14px; }
  .d-big { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: auto; }
  .d-s1 { grid-column: 8 / 13; grid-row: 1; aspect-ratio: auto; }
  .d-s2 { grid-column: 8 / 11; grid-row: 2; aspect-ratio: auto; }
  .d-v { grid-column: 11 / 13; grid-row: 2 / 4; aspect-ratio: auto; }
  .d-all { grid-column: 1 / 11; grid-row: 3; aspect-ratio: auto; flex-direction: row; align-items: flex-end; gap: 24px; padding: 22px 28px; transition: background var(--d-ui); }
  .d-all:hover { background: var(--green-deep); }
  .d-all span { margin: 0 0 .55em; max-width: 20rem; }
  .d-all .arw { margin: 0 0 1.2em auto; }
}
.more { margin-top: 12vh; }
.more h3 { margin-bottom: var(--s4); color: var(--ink-3); }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(23, 20, 15, .18); }
.more-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(23, 20, 15, .18); text-decoration: none; }
.more-list .nm { font-family: var(--f-display); font-size: clamp(1.35rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-variation-settings: "SOFT" 100; transition: transform .6s var(--e-out), color .4s; }
.more-list .tw { font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }
.more-list .ct { grid-column: 1; font-size: .78rem; color: var(--ink-3); }
.more-list a:hover .nm { transform: translateX(14px); color: var(--red-ink); }
@media (min-width: 900px) { .more-list a { grid-template-columns: 1fr 14rem 11rem; } .more-list .ct { grid-column: auto; } }
.cursor-preview { position: fixed; left: 0; top: 0; z-index: var(--z-overlay); width: 270px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; scale: .86; transition: opacity .35s, scale .5s var(--e-out); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.cursor-preview.on { opacity: 1; scale: 1; }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 07 · PUERTO GALERA → THE OTHER FOURTEEN ---------- */
.pg { position: relative; }
.pg-stage { padding: 12vh var(--gutter); }
.pg-copy h2, .pg-b { font-size: var(--fs-l); }
.pg-b { margin-top: var(--s8); }
.pg-b em { color: var(--navy); }
.pg-stat { margin-top: var(--s5); max-width: 26rem; font-size: var(--fs-lead); }
.pg-stat b { font-family: var(--f-display); font-weight: 600; }
.pg-hero { display: block; position: relative; margin-top: var(--s6); aspect-ratio: 16 / 11; color: #fff; text-decoration: none; }
.pg-hero .ph { position: absolute; inset: 0; }
.pg-hero .lbl { position: absolute; left: 14px; bottom: 12px; z-index: 2; }
.pg-hero .lbl b { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.pg-strip { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-strip a { position: relative; display: block; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; }
.pg-strip .ph { position: absolute; inset: 0; }
.pg-strip .ph::after, .pg-hero .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 18, 24, .7), transparent 55%); }
.pg-strip .nm { position: absolute; z-index: 2; left: 12px; bottom: 30px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.pg-strip .ct { position: absolute; z-index: 2; left: 12px; bottom: 10px; font-size: .72rem; opacity: .9; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .pg { height: 260vh; }
  .pg-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; padding: 0; --sw: calc((100vw - 2 * var(--gutter) - 64px) / 9); }
  .pg-copy { position: absolute; left: var(--gutter); top: 15vh; width: 40vw; z-index: 3; }
  .pg-copy h2, .pg-stat { transition: opacity .7s, transform 1s var(--e-out); }
  .pg-b { position: absolute; left: var(--gutter); top: 15vh; margin: 0; z-index: 3; opacity: 0; transform: translateY(46px); transition: opacity .8s .2s, transform 1.1s var(--e-out) .2s; }
  .pg-stage[data-stage="1"] .pg-copy h2, .pg-stage[data-stage="1"] .pg-stat { opacity: 0; transform: translateY(-40px); }
  .pg-stage[data-stage="1"] .pg-b { opacity: 1; transform: none; }
  .pg-hero { position: absolute; z-index: 2; margin: 0; aspect-ratio: auto; left: 45vw; top: 11vh; width: calc(55vw - var(--gutter)); height: 78vh; transition: left 1.3s var(--e-out), top 1.3s var(--e-out), width 1.3s var(--e-out), height 1.3s var(--e-out); }
  .pg-stage[data-stage="1"] .pg-hero { left: var(--gutter); top: 48vh; width: var(--sw); height: 44vh; }
  .pg-hero .lbl b { font-size: clamp(1.6rem, 2.6vw, 2.6rem); transition: font-size .9s var(--e-out); }
  .pg-stage[data-stage="1"] .pg-hero .lbl b { font-size: 1.15rem; }
  .pg-strip { position: absolute; margin: 0; left: calc(var(--gutter) + var(--sw) + 8px); right: var(--gutter); top: 48vh; height: 44vh; display: flex; gap: 8px; }
  .pg-strip li { flex: 1 1 0; min-width: 0; opacity: 0; transform: translateX(60vw); transition: transform 1.2s var(--e-out) calc(var(--i) * 70ms), opacity .7s calc(var(--i) * 70ms), flex-grow .8s var(--e-out); }
  .pg-strip li:nth-child(1) { --i: 0; }
  .pg-strip li:nth-child(2) { --i: 1; }
  .pg-strip li:nth-child(3) { --i: 2; }
  .pg-strip li:nth-child(4) { --i: 3; }
  .pg-strip li:nth-child(5) { --i: 4; }
  .pg-strip li:nth-child(6) { --i: 5; }
  .pg-strip li:nth-child(7) { --i: 6; }
  .pg-strip li:nth-child(8) { --i: 7; }
  .pg-stage[data-stage="1"] .pg-strip li { opacity: 1; transform: none; }
  .pg-strip li:hover, .pg-strip li:focus-within { flex-grow: 2.8; }
  .pg-strip a { height: 100%; aspect-ratio: auto; }
  .pg-strip .nm { bottom: 14px; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font-size: 1.15rem; transition: all .6s var(--e-out); }
  .pg-strip .ct { opacity: 0; transition: opacity .4s; }
  .pg-strip li:hover .nm, .pg-strip li:focus-within .nm { left: 14px; bottom: 34px; writing-mode: horizontal-tb; transform: none; font-size: 1.6rem; }
  .pg-strip li:hover .ct, .pg-strip li:focus-within .ct { opacity: .9; transition-delay: .25s; }
}

/* ---------- 08 · BELOW THE SURFACE ---------- */
.deep { position: relative; color: var(--paper); background: linear-gradient(180deg, var(--sky) 0%, var(--teal) 18%, var(--navy) 46%, var(--navy-ink) 80%, var(--navy-ink) 100%); isolation: isolate; }
.waterline { position: absolute; left: 0; width: 100%; height: 70px; overflow: hidden; pointer-events: none; z-index: 3; }
.waterline.top { top: -69px; }
.waterline.bot { bottom: -1px; height: 90px; }
.waterline svg { width: 200%; max-width: none; height: 100%; animation: tide 18s linear infinite; }
.waterline.bot svg { animation-duration: 26s; animation-direction: reverse; }
.waterline .water { fill: var(--sky); }
.waterline .shore { fill: #E7EBDD; } /* the towns section's sky, so the shore meets it seamlessly */
.deep-media .deep-wide { aspect-ratio: 16 / 10; }
@keyframes tide { to { transform: translateX(-50%); } }
.deep-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.deep-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.deep-bg video, .deep-bg .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); }
.caustics { --tile: 520px; position: absolute; left: -10%; top: -10%; width: calc(120% + var(--tile)); height: calc(120% + var(--tile)); opacity: .24; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='.011 .018' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .75  0 0 0 0 .95  0 0 0 0 1  0 0 0 -2.2 1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: var(--tile) var(--tile);
  animation: drift 38s linear infinite; }
.caustics.b { --tile: 680px; opacity: .15; animation-duration: 52s; animation-direction: reverse; }
.caustics-fade { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); overflow: hidden; }
@keyframes drift { to { transform: translate3d(calc(-1 * var(--tile)), calc(-1 * var(--tile)), 0); } }
.bubbles span { position: absolute; bottom: -12px; width: var(--b, 5px); height: var(--b, 5px); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); animation: bubble var(--t, 16s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(14px, -55vh); } 100% { transform: translate(-8px, -110vh); opacity: 0; } }
.deep-inner { position: relative; z-index: 2; padding: 26vh var(--gutter) 22vh; }
.deep-inner h2 { font-size: var(--fs-xl); }
.deep-inner h2 em { color: var(--sky-2); }
.deep-inner .lead { margin-top: var(--s6); }
.deep-media { display: grid; gap: 12px; margin-top: 9vh; }
.porthole { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.porthole video, .porthole img { width: 100%; height: 100%; object-fit: cover; }
.deep-turtle { aspect-ratio: 341 / 230; }
.deep-turtle img { object-position: 50% 92%; }
.deep-stats { display: flex; gap: var(--s8); margin: var(--s7) 0 var(--s6); }
.deep-stats dd { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; }
.deep-stats dt { font-size: .78rem; opacity: .8; }
.deep-stats div { display: flex; flex-direction: column-reverse; }
.btn-turq { background: var(--sky); color: var(--ink); }
.btn-turq:hover { background: #fff; }
.depth { display: none; }
@media (min-width: 900px) {
  .deep-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5vw; padding-top: 30vh; padding-bottom: 30vh; }
  .deep-copy { position: sticky; top: 22vh; align-self: start; }
  .deep-media { margin-top: 0; gap: 18px; }
  .deep-turtle { width: 62%; margin-left: auto; margin-top: -8vh; }
  .depth { display: grid; position: absolute; left: var(--gutter); bottom: 6vh; z-index: 2; grid-auto-flow: column; align-items: end; gap: 10px; }
  .depth b { font-family: var(--f-display); font-weight: 300; font-size: 3.4rem; line-height: .8; font-variant-numeric: tabular-nums; }
  .depth-scale { width: 1px; height: 18vh; background: rgba(255, 255, 255, .25); position: relative; }
  .depth-scale::after { content: ""; position: absolute; left: -3px; top: calc(var(--dp, 0) * 100%); width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); }
}

/* ---------- 09 · 15 LOCALITIES ---------- */
.towns { padding: 13vh var(--gutter) 12vh; }
.towns h2 { font-size: var(--fs-l); }
.towns h2 em { color: var(--green); }
.towns-grid { display: grid; gap: var(--s7); margin-top: 6vh; }
.map { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 520 / 820; }
.map svg { width: 100%; height: 100%; overflow: visible; }
.map .sea-lines line { stroke: rgba(15, 59, 46, .12); stroke-width: 1; }
.map .occ { fill: rgba(23, 20, 15, .05); }
.map .border { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 5; }
.map .isle-shadow { fill: var(--green-ink); opacity: .16; }
.map .isle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.map .lake { fill: #BFE1F6; stroke: var(--ink); stroke-width: .8; }
.map .contour { fill: none; stroke: var(--green); stroke-width: .7; opacity: .55; }
.map text { font-family: var(--f-sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-3); }
.map text.sea { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; fill: var(--teal); opacity: .8; }
.map text.small { font-size: 11px; }
.map text.tiny { font-size: 9px; }
.map .peak { fill: var(--green-ink); }
.map .compass { fill: var(--ink); }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; text-decoration: none; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); display: flex; align-items: center; gap: 6px; transform: translate(-5px, -50%); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.pin[data-side="l"] { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); }
.pin[data-side="b"] { flex-direction: column; transform: translate(-50%, -5px); }
.pin i { width: 10px; height: 10px; border-radius: 50%; background: var(--green-ink); box-shadow: 0 0 0 3px var(--paper); flex: none; position: relative; transition: background .3s, transform .4s var(--e-out); }
.pin i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--sky-2); opacity: 0; transform: scale(.4); }
.pin.on, .pin:hover { color: var(--ink); }
.pin.on i, .pin:hover i { background: var(--red); transform: scale(1.35); }
.pin.on i::after { animation: ping 1.8s var(--e-out) infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }
.pin span { display: none; padding: 2px 4px; background: rgba(244, 238, 227, .82); }
.town-panel .ph { aspect-ratio: 4 / 3; }
.town-panel .ph img { transition: opacity .5s, transform 1.4s var(--e-out); }
.town-panel .ph.swap img { opacity: 0; transform: scale(1.06); }
.town-panel h3 { font-size: var(--fs-m); margin: var(--s5) 0 var(--s2); }
.town-panel .meta { display: flex; gap: 16px; align-items: baseline; color: var(--ink-3); font-size: .85rem; }
.town-panel .meta b { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.town-panel .desc { margin-top: var(--s4); max-width: 28rem; }
.town-index input { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); }
.town-index input:focus { outline: none; border-bottom-color: var(--red); }
.town-index ul { list-style: none; margin: 8px 0 0; padding: 0; }
.town-index a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(23, 20, 15, .14); text-decoration: none; font-family: var(--f-display); font-size: 1.2rem; font-variation-settings: "SOFT" 100; transition: color .3s, padding .5s var(--e-out); }
.town-index a small { font-family: var(--f-sans); font-size: .78rem; color: var(--ink-3); }
.town-index a:hover, .town-index a.on { color: var(--red-ink); padding-left: 8px; }
.town-index .none { padding: 12px 0; color: var(--ink-3); }
@media (max-width: 899px) { .map { width: min(78%, 320px); } .town-panel { display: none; } }
@media (min-width: 900px) {
  .towns-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, .72fr); gap: 4vw; align-items: start; }
  .pin span { display: inline; }
  .town-panel { position: sticky; top: 14vh; }
  .town-index input { display: none; }
  .town-index ul { margin: 0; }
  .town-index a { font-size: 1.02rem; padding: 7px 0; }
}

/* ---------- 10 · A FESTIVAL FOR EVERY TOWN (late afternoon) ---------- */
.fests { padding: 15vh 0 12vh; overflow: clip; }
.fests-head { padding: 0 var(--gutter); }
.fests-head h2 { font-size: var(--fs-l); }
.fests-head h2 em { color: var(--red-ink); }
.fests-head .lead { margin-top: var(--s5); }
.ribbons { position: relative; height: 210px; margin: 7vh 0 5vh; }
.ribbon { position: absolute; left: -6vw; right: -6vw; padding: 14px 0 12px; white-space: nowrap; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(23, 20, 15, .55); }
.ribbon.r1 { top: 30px; background: var(--red); color: #fff; rotate: -3.2deg; }
.ribbon.r2 { top: 110px; background: var(--navy); color: var(--lime-2); rotate: 2.4deg; }
.ribbon .track { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; animation: marquee 80s linear infinite; }
.ribbon.r2 .track { animation-duration: 96s; animation-direction: reverse; }
.ribbon:hover .track { animation-play-state: paused !important; }
.ribbon .track span { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-variation-settings: "SOFT" 100, "WONK" 1; cursor: pointer; }
.ribbon .track span:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.ribbon .track svg { width: 14px; height: 14px; flex: none; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }
.fests-body { padding: 0 var(--gutter); display: grid; gap: var(--s7); }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid rgba(23, 20, 15, .2); }
.cal > li { padding: 14px 14px 18px 0; border-bottom: 1px solid rgba(23, 20, 15, .2); min-height: 112px; }
.cal .mo { display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.2rem; margin-bottom: 8px; }
.cal .mo small { font-family: var(--f-sans); font-weight: 600; font-size: .62rem; letter-spacing: .14em; color: var(--red-ink); align-self: center; }
.cal li.now .mo { color: var(--red-ink); }
.cal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal a { display: block; width: fit-content; max-width: 100%; text-decoration: none; text-align: left; line-height: 1.2; font-size: .95rem; font-weight: 600; padding: 2px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.cal a small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-3); }
.cal a:hover, .cal a[aria-current="true"] { border-bottom-color: var(--red); color: var(--red-ink); }
.cal .quiet { color: rgba(23, 20, 15, .35); font-size: .9rem; }
.fest-spot { background: var(--paper); padding: 12px 12px 22px; box-shadow: 0 30px 60px -36px rgba(23, 20, 15, .45); }
.fest-spot .ph { aspect-ratio: 3 / 2; }
.fest-spot .ph img { transition: opacity .45s, transform 1.4s var(--e-out); }
.fest-spot .ph.swap img { opacity: 0; transform: scale(1.05); }
.fest-spot .when { margin: 18px 6px 6px; color: var(--red-ink); }
.fest-spot h3 { font-size: var(--fs-m); margin: 0 6px; }
.fest-spot .town { margin: 6px 6px 0; font-family: var(--f-display); font-style: italic; font-size: 1.1rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.fest-spot .desc { margin: 14px 6px 18px; max-width: 30rem; font-size: .95rem; color: var(--ink-2); }
.fest-spot .link-arrow { margin-left: 6px; }
.cal-hint { display: none; }
/* phone: the year becomes one swipeable strip, so the spotlight stays in view while you browse */
@media (max-width: 639px) {
  .fests-body { gap: 26px; }
  .cal-hint { display: block; color: var(--ink-3); margin-bottom: -16px; }
  .cal { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 0; scrollbar-width: none; }
  .cal::-webkit-scrollbar { display: none; }
  .cal > li { order: var(--o, 0); flex: 0 0 150px; scroll-snap-align: start; min-height: 0; border-top: 1px solid rgba(23, 20, 15, .2); border-bottom: 0; padding-bottom: 6px; }
  .cal > li.empty { display: none; }
  .cal a { padding: 6px 0; }
}
@media (min-width: 900px) {
  .fests-body { grid-template-columns: 1.35fr 1fr; gap: 4vw; align-items: start; }
  .cal { grid-template-columns: repeat(4, 1fr); }
  .fest-spot { position: sticky; top: 12vh; rotate: .8deg; }
  .ribbons { height: 240px; }
}

/* ---------- 11 · FESTIVAL HEARTBEAT (afternoon → dusk → light → night) ---------- */
.beat { position: relative; }
.beat-stage { position: relative; }
.beat-track { display: flex; flex-direction: column; }
.panel { position: relative; padding: 14vh var(--gutter); overflow: clip; }
.panel h2, .panel h3 { font-size: var(--fs-xl); }
.panel .meta { margin: var(--s5) 0 var(--s3); }
.panel .desc { max-width: 27rem; }
.p-intro { background: linear-gradient(180deg, #F3E6E0, var(--red)); color: var(--ink); }
.p-intro .hint { display: none; }
.p-intro .pub-bunting { color: var(--ink); margin-bottom: var(--s6); }
.p-mahal { background: var(--red); color: #fff; }
.p-mahal .meta { color: rgba(255, 255, 255, .85); }
.p-mahal .ghost { display: none; }
.p-dusk { background: linear-gradient(180deg, var(--red) 0%, #A31919 30%, var(--red-deep) 62%, var(--navy-deep) 100%); color: var(--paper); }
.p-gitab { background: var(--navy-deep); color: var(--paper); }
.p-gitab h3 { color: var(--sky-2); }
.p-salong { background: linear-gradient(180deg, var(--navy-deep), var(--night) 30%); color: var(--paper); }
.p-salong h3 { color: var(--lime-2); }
.p-end { background: var(--night); color: var(--paper); }
.p-end h3 em { color: var(--sky-2); }
.panel .sub { display: block; font-family: var(--f-display); font-style: italic; font-weight: 400; text-transform: none; font-size: .34em; letter-spacing: 0; margin-top: .4em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s7); }
.collage .ph { aspect-ratio: 4 / 5; }
.collage .ph.wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (max-width: 639px) { .collage .ph.m5, .collage .ph.d2, .collage .ph.g2 { grid-column: 1 / -1; aspect-ratio: 16 / 10; } .panel { padding-block: 11vh; } }
.p-gitab .ph, .p-salong .ph { box-shadow: 0 0 70px -10px rgba(36, 161, 236, .35); background: #000; }
.lights { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.panel > .txt, .panel > .wrap, .panel > .collage { position: relative; z-index: 1; }
.trail { display: none; }
.flicker { animation: flicker 5.3s steps(1) infinite; }
@keyframes flicker { 0%, 100% { filter: brightness(1); } 41% { filter: brightness(1.18); } 43% { filter: brightness(.94); } 47% { filter: brightness(1.12); } 71% { filter: brightness(1.04); } 74% { filter: brightness(.97); } }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .beat-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; --u: min(1.6vh, 1.15vw); }
  .beat-track { flex-direction: row; height: 100%; will-change: transform; }
  .panel { flex: none; height: 100%; padding: 0; overflow: visible; }
  .panel > .ph, .panel .collage .ph { position: absolute; }
  .collage { display: block; margin: 0; }
  .p-intro { width: 100vw; background: linear-gradient(90deg, #F3E6E0 0%, #F3E6E0 55%, var(--red) 100%); }
  .p-intro .wrap { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); }
  .p-intro h2 { font-size: clamp(3rem, 8.4vw, 9.4rem); }
  .p-intro .hint { display: flex; align-items: center; gap: 14px; margin-top: var(--s7); }
  .p-intro .hint i { display: block; width: 90px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
  .p-intro .hint i::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: slide 2.2s var(--e-io) infinite; }
  @keyframes slide { from { left: -6px; } to { left: 92px; } }
  .p-intro .pub-bunting { position: absolute; left: 0; right: 0; top: 70px; }

  /* --u is about 1vw on a 16:10 screen but capped by height, so nothing leaves the stage on short or ultra-wide windows */
  .p-mahal { width: calc(142 * var(--u)); background: linear-gradient(90deg, var(--red) 0%, var(--red) 82%, #B81616 100%); }
  .p-mahal .ghost { display: block; position: absolute; left: calc(4 * var(--u)); top: 50%; transform: translateY(-50%); z-index: 0; font-family: var(--f-display); font-weight: 900; font-size: 30vh; line-height: .8; letter-spacing: -.04em; white-space: nowrap; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35); text-transform: uppercase; pointer-events: none; }
  .p-mahal .txt { position: absolute; left: calc(4 * var(--u)); bottom: 9vh; width: calc(25 * var(--u)); z-index: 4; }
  .p-mahal h3 { font-size: clamp(2.2rem, calc(5.4 * var(--u)), 5.8rem); }
  .p-mahal .m1 { left: calc(31 * var(--u)); top: 9vh; width: calc(33 * var(--u)); aspect-ratio: 479 / 320; z-index: 2; }
  .p-mahal .m2 { left: calc(60 * var(--u)); top: 50vh; width: calc(21 * var(--u)); aspect-ratio: 4 / 5; rotate: 1.8deg; z-index: 3; }
  .p-mahal .m3 { left: calc(84 * var(--u)); top: 7vh; width: calc(21 * var(--u)); aspect-ratio: 4 / 5; z-index: 2; }
  .p-mahal .m4 { left: calc(108 * var(--u)); top: 37vh; width: calc(28 * var(--u)); aspect-ratio: 479 / 320; z-index: 3; rotate: -1.2deg; }
  .p-mahal .m5 { left: calc(-14 * var(--u)); top: 62vh; width: calc(16 * var(--u)); aspect-ratio: 479 / 320; z-index: 5; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }

  .p-dusk { width: calc(90 * var(--u)); background: linear-gradient(90deg, #B81616 0%, #8E1616 25%, #4A1030 60%, var(--navy-deep) 100%); }
  .p-dusk .d1 { left: calc(10 * var(--u)); top: 12vh; width: calc(44 * var(--u)); aspect-ratio: 16 / 9; z-index: 2; }
  .p-dusk .d2 { left: calc(54 * var(--u)); top: 60vh; width: calc(22 * var(--u)); aspect-ratio: 16 / 10; z-index: 3; rotate: 1.4deg; }
  .p-dusk .txt { position: absolute; left: calc(6 * var(--u)); bottom: 9vh; z-index: 4; }
  .p-dusk h3 { font-size: clamp(2.2rem, calc(5.6 * var(--u)), 6.4rem); text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }

  .p-gitab { width: calc(132 * var(--u)); background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 70%, #07122E 100%); }
  .p-gitab .txt { position: absolute; left: calc(5 * var(--u)); top: 15vh; width: calc(28 * var(--u)); z-index: 4; }
  .p-gitab h3 { font-size: clamp(2.3rem, calc(6.2 * var(--u)), 7rem); }
  .p-gitab .g1 { left: calc(38 * var(--u)); top: 10vh; width: calc(33 * var(--u)); aspect-ratio: 568 / 320; z-index: 2; }
  .p-gitab .g2 { left: calc(64 * var(--u)); top: 52vh; width: calc(28 * var(--u)); aspect-ratio: 568 / 320; z-index: 3; }
  .p-gitab .g3 { left: calc(95 * var(--u)); top: 12vh; width: calc(25 * var(--u)); aspect-ratio: 4 / 5; z-index: 2; }
  .p-gitab .g4 { left: calc(36 * var(--u)); top: 50vh; width: calc(19 * var(--u)); aspect-ratio: 4 / 5; z-index: 3; rotate: -1.6deg; }
  .trail { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
  .trail path { fill: none; stroke: var(--sky-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 140 1400; filter: drop-shadow(0 0 6px rgba(36, 161, 236, .95)); animation: comet 7s linear infinite; }
  .trail path + path { stroke-width: 1.2; animation-duration: 9.5s; animation-delay: -3s; opacity: .7; }
  @keyframes comet { from { stroke-dashoffset: 1540; } to { stroke-dashoffset: 0; } }

  .p-salong { width: calc(128 * var(--u)); background: linear-gradient(90deg, #07122E 0%, var(--night) 22%, var(--night) 100%); }
  .p-salong .txt { position: absolute; left: calc(5 * var(--u)); bottom: 11vh; width: calc(28 * var(--u)); z-index: 4; }
  .p-salong h3 { font-size: clamp(2.3rem, calc(6.2 * var(--u)), 7rem); }
  .p-salong .s1 { left: calc(36 * var(--u)); top: 9vh; width: calc(36 * var(--u)); aspect-ratio: 568 / 309; z-index: 2; }
  .p-salong .s2 { left: calc(76 * var(--u)); top: 47vh; width: calc(30 * var(--u)); aspect-ratio: 568 / 297; z-index: 3; }
  .p-salong .s3 { left: calc(63 * var(--u)); top: 55vh; width: calc(12 * var(--u)); aspect-ratio: 3 / 4; z-index: 4; rotate: 1.8deg; }
  .p-salong .s4 { left: calc(101 * var(--u)); top: 10vh; width: calc(22 * var(--u)); aspect-ratio: 568 / 305; z-index: 2; }

  .p-end { width: calc(88 * var(--u)); }
  .p-end .txt { position: absolute; left: calc(6 * var(--u)); top: 50%; transform: translateY(-50%); }
  .p-end h3 { font-size: clamp(2.3rem, calc(6.4 * var(--u)), 7.2rem); }
  .beat-progress { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 4vh; height: 1px; background: rgba(127, 127, 127, .35); mix-blend-mode: difference; }
  .beat-progress span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
}
.beat-progress { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .beat-progress { display: block; } }

/* ---------- 12 · TURISMOTV (night) ---------- */
.tv { padding: 16vh var(--gutter) 12vh; color: var(--paper); }
.tv h2 { font-size: var(--fs-l); }
.tv h2 em { color: var(--sky-2); }
.tv-grid { display: grid; gap: var(--s6); margin-top: 6vh; }
.tv-feature { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: #fff; text-align: left; }
.tv-feature video, .tv-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 2s var(--e-out), opacity .6s; }
.tv-feature:hover video, .tv-feature:hover img { transform: scale(1.04); opacity: 1; }
.tv-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 55%), linear-gradient(to right, rgba(0, 0, 0, .35), transparent 50%); }
.tv-meta { position: absolute; z-index: 2; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); right: 30%; }
.tv-title { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 3rem); line-height: 1; letter-spacing: -.02em; margin: 10px 0 8px; font-variation-settings: "SOFT" 100; }
.tv-sub { display: block; font-size: .85rem; opacity: .8; }
.play { position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); width: clamp(64px, 7vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); transition: transform .6s var(--e-out), background .4s, box-shadow .4s; }
.play svg { width: 26%; height: 26%; margin-left: 6%; }
.tv-feature:hover .play, .tv-feature:focus-visible .play { transform: scale(1.12); background: var(--red); box-shadow: 0 0 60px 10px rgba(215, 27, 27, .35); color: #fff; }
.tv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tv-list a { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: start; text-decoration: none; }
.tv-list .ph { aspect-ratio: 16 / 9; background: #111; }
.tv-list h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; line-height: 1.15; margin: 0 0 6px; font-variation-settings: "SOFT" 100; }
.tv-list p { font-size: .78rem; opacity: .7; margin: 0; }
.tv-list a:hover h3 { color: var(--sky); }
.tv .link-arrow { margin-top: var(--s6); }
@media (min-width: 900px) { .tv-grid { grid-template-columns: 2.1fr 1fr; gap: 3vw; align-items: start; } .tv-list a { grid-template-columns: 1fr; } }
.tv-modal { width: min(1100px, 94vw); padding: 0; border: 0; background: #000; color: #fff; }
.tv-modal::backdrop { background: rgba(5, 4, 9, .88); }
.tv-modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.tv-modal .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; font-size: .85rem; }
.tv-modal button { padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }

/* ---------- 13 · PLAN YOUR JOURNEY (night, lamp-lit) ---------- */
.plan { padding: 14vh var(--gutter) 14vh; color: var(--paper); }
.plan h2 { font-size: var(--fs-l); }
.plan h2 em { color: var(--sky-2); }
.plan-grid { display: grid; gap: var(--s8); margin-top: 7vh; }
.route { position: relative; padding-left: 28px; }
.route::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 30px; width: 1px; background: repeating-linear-gradient(to bottom, rgba(36, 161, 236, .7) 0 6px, transparent 6px 12px); }
.route .boat { position: absolute; left: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px 3px rgba(36, 161, 236, .7); animation: sail 7s var(--e-io) infinite; }
@keyframes sail { 0% { top: 8px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 34px); opacity: 0; } }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.route li { position: relative; }
.route li::before { content: ""; position: absolute; left: -26px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 1.5px var(--sky); }
.route b { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; font-variation-settings: "SOFT" 100; }
.route span { font-size: .85rem; opacity: .75; }
.route .note { margin-top: 26px; font-size: .78rem; opacity: .6; max-width: 22rem; }
.plan-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); position: relative; }
.plan-list a { position: relative; display: grid; grid-template-columns: 2.4rem 30px 1fr auto; align-items: center; gap: 14px; padding: 18px 8px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; isolation: isolate; }
.plan-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px 120px at var(--mx, 50%) 50%, rgba(36, 161, 236, .22), transparent 70%); opacity: 0; transition: opacity .5s; }
.plan-list a:hover::before, .plan-list a:focus-visible::before { opacity: 1; }
.plan-list .n { font-size: .7rem; letter-spacing: .14em; opacity: .55; }
.plan-list svg.ic { width: 26px; height: 26px; stroke: var(--sky); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-list .t { font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.05; font-variation-settings: "SOFT" 100; transition: transform .6s var(--e-out); }
.plan-list .t small { display: block; font-family: var(--f-sans); font-size: .8rem; opacity: .65; margin-top: 4px; font-weight: 400; }
.plan-list a:hover .t { transform: translateX(10px); }
@media (min-width: 900px) { .plan-grid { grid-template-columns: .85fr 1.4fr; gap: 6vw; } }

/* ---------- 14 · NIGHT CLOSE + FOOTER ---------- */
.night { position: relative; min-height: 100vh; display: grid; align-items: center; padding: 16vh var(--gutter); color: var(--paper); overflow: hidden; isolation: isolate; }
.night-photo { position: absolute; inset: 0; z-index: -2; }
.night-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.night-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 30% 60%, transparent, var(--night) 85%), linear-gradient(to bottom, var(--night), transparent 30%, transparent 70%, var(--night-2)); }
.night .lights { z-index: -1; }
.night h2 { font-size: var(--fs-xl); }
.night h2 .ln { display: block; }
.night h2 .ln:nth-child(2) { padding-left: .9em; }
.night h2 .ln:nth-child(3) { margin-top: .32em; }
.night h2 .ln:nth-child(4) { padding-left: 1.4em; color: var(--sky-2); }
.night .tag { margin-top: var(--s7); font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: var(--fs-m); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--sky); }

/* ---------- STATIC-WIDE · tablet, and desktop with reduced motion ----------
   The three cinematic sequences (MAHAL TANA, Puerto Galera, the procession) become stacked editorial layouts. */
@media (min-width: 640px) and (max-width: 899px), (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .mt-head, .mt-mosaic, .mt-chapters, .mt-outro, .pg-stage > *, .panel > .txt, .panel > .wrap, .panel > .collage { max-width: 1080px; margin-inline: auto; }
  .mt-mosaic { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .mt-mosaic .ph { aspect-ratio: 3 / 4; }
  .mt-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); align-items: center; }
  .mt-ch-title { grid-column: 1 / -1; }
  .mt-vis { margin-bottom: 0; }
  .mt-ch:nth-child(even) .mt-vis { order: 2; }
  .pg-hero { aspect-ratio: 16 / 9; }
  .pg-strip { grid-template-columns: repeat(4, 1fr); }
  .collage { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(200px, 36vw, 400px); gap: 12px; }
  .collage .ph, .collage .ph.wide { aspect-ratio: auto; grid-column: span 6; }
  .collage .ph.m1, .collage .ph.s1, .collage .ph.g4 { grid-column: span 7; }
  .collage .ph.m2, .collage .ph.s2, .collage .ph.g3 { grid-column: span 5; }
  .collage .ph.m3, .collage .ph.d2, .collage .ph.g2, .collage .ph.s3 { grid-column: span 4; }
  .collage .ph.m4, .collage .ph.d1, .collage .ph.g1, .collage .ph.s4 { grid-column: span 8; }
  .collage .ph.m5 { grid-column: 1 / -1; }
  .p-intro { padding-top: 6vh; }
}


/* ---------- TABLET · 640–899 ---------- */
@media (min-width: 640px) and (max-width: 899px) {
  .hero-inner { bottom: calc(var(--dock) + 112px); }
  .hero-index .word { font-size: 1.2rem; }
  .alive-photos { grid-template-columns: repeat(12, 1fr); gap: 14px; align-items: end; }
  .alive-photos .ph-a { grid-column: 1 / 9; }
  .alive-photos .ph-b { grid-column: 9 / 13; }
  .alive-photos .ph-c { grid-column: 1 / 6; }
  .alive-photos .ph-d { grid-column: 6 / 13; aspect-ratio: 4 / 3; }
  .moods-list a { grid-template-columns: 3rem 1fr 132px; padding: 18px 0; }
  .moods-list .mthumb { width: 132px; height: 88px; }
  .dest-grid { gap: 14px; }
  .d-big { aspect-ratio: 16 / 10; }
  .deep-media { grid-template-columns: 1fr 1fr; }
  .deep-media .porthole { grid-column: 1 / -1; }
  .deep-media .ph { aspect-ratio: 4 / 3 !important; }
  .towns-grid { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s6); align-items: start; }
  .towns-grid > :first-child { grid-column: 1 / -1; }
  .map { width: calc(100% - 28px); margin-left: 28px; }
  .pin span { display: inline; }
  .fest-spot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 24px; align-items: center; padding: 14px; }
  .fest-spot .when { margin-top: 0; }
  .tv-list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tv-list a { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: .8fr 1.25fr; gap: var(--s7); }
}

/* ---------- POPULAR SEARCHES · crawlable links to the busiest landing pages (kept from the previous homepage) ---------- */
.popular-slot { display: block; grid-column: 1 / -1; padding-top: var(--s6); border-top: 1px solid rgba(255, 255, 255, .14); }
.popular-slot h3 { color: var(--sky); margin: 0 0 var(--s3); }
.popular-slot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s6); }
.popular-slot li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; font-size: .95rem; }
.popular-slot small { font-size: .78rem; opacity: .6; font-variant-numeric: tabular-nums; }
.popular-slot li a:hover span { color: var(--sky); }
@media (min-width: 640px) { .popular-slot ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .popular-slot ul { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CONDITIONAL SLOT · latest news (rendered only when the CMS has announcements) ---------- */
.news-slot { display: block; grid-column: 1 / -1; padding-top: var(--s6); border-top: 1px solid rgba(255, 255, 255, .14); }
.news-slot h3 { color: var(--sky); margin: 0 0 var(--s3); }
.news-slot ul { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: 0 var(--s6); }
.news-slot li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; }
.news-slot .when { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.news-slot b { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.2; font-variation-settings: "SOFT" 100; }
.news-slot li a:hover b { color: var(--sky); }
@media (min-width: 640px) { .news-slot ul { grid-template-columns: repeat(3, 1fr); } }


@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ribbon .track { animation: none !important; }
  .hero-title .ln > span, .hero-kicker, .hero-ctas { transform: none !important; opacity: 1 !important; }
}
