/* Poveste mode: an album as a scroll story */

@property --tint {
    syntax: '<color>';
    inherits: true;
    initial-value: #0b0d0c;
}

:root {
    --bg: #0b0d0c;
    --bg-2: #101311;
    --text: #e9ede9;
    --muted: #97a299;
    --faint: #808a83; /* ≥ 4.5:1 on the dark background (WCAG AA for small text) */
    --accent: #9be07a;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --serif: 'Instrument Serif', ui-serif, Georgia, serif;
    --gutter: clamp(16px, 3vw, 40px);
    --header-h: 64px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background-color: color-mix(in oklab, var(--tint) 17%, var(--bg));
    color: var(--text);
    font: 400 16px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: --tint 1.6s var(--ease);
}

html.lb-lock { overflow: hidden; }

a { color: inherit; }

img { max-width: 100%; }

.mono {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

::selection { background: var(--accent); color: #0b130a; }

/* ---------- Header ---------- */

.top {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    z-index: 50;
}

.top::before {
    content: "";
    position: absolute;
    inset: 0 0 -28px;
    background: linear-gradient(to bottom, rgba(8, 10, 9, .72), transparent);
    z-index: -1;
    pointer-events: none;
}



.progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--border);
}

.progress i {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
    box-shadow: 0 0 10px var(--accent);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: #0e1210;
    clip-path: inset(31% 36% 31% 36% round 28px);
}

.hero-par { position: absolute; inset: 0; }

.hero-par img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.4);
    opacity: 0;
}

.ready .hero-media { animation: heroMask 2.6s var(--ease) .15s forwards; }
.ready .hero-par img { animation: heroZoom 3.4s var(--ease) .15s forwards, fadeIn .8s ease .15s forwards; }

/* A clip hero: its poster (the clip's first frame, preloaded) shows at once, full bleed, without the photo's mask, zoom
   or fade; the video lies over it with the same framing and crossfades in once a real frame is playing */
.hero.has-clip .hero-media { clip-path: none; animation: none; }
.hero.has-clip .hero-par img { opacity: 1; transform: none; animation: none; }
.hero-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    opacity: 0;
    transition: opacity .3s ease;
}
.hero-media.shown .hero-vid { opacity: 1; }

@keyframes heroMask { to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes heroZoom { to { transform: scale(1.06); } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 10, 9, .92) 0%, rgba(8, 10, 9, .45) 34%, transparent 62%),
        linear-gradient(to bottom, rgba(8, 10, 9, .45), transparent 22%);
    opacity: 0;
    transition: opacity 2s var(--ease) .9s;
}

.ready .hero-shade { opacity: 1; }

.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 var(--gutter) clamp(24px, 5vh, 56px);
}

.kicker {
    color: var(--muted);
    margin: 0 0 clamp(8px, 2vh, 20px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s var(--ease) 1.3s, transform 1s var(--ease) 1.3s;
}

.hero h1 {
    margin: 0;
    font: 400 clamp(84px, 15.5vw, 290px)/.8 var(--serif);
    letter-spacing: -.035em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .2em;
}

.hero h1 em { font-style: italic; color: var(--accent); margin-left: auto; letter-spacing: -.02em; }

.split-w { display: inline-flex; overflow: hidden; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }

.split-c {
    display: inline-block;
    transform: translateY(108%) rotate(4deg);
    transform-origin: 0 100%;
    transition: transform 1.5s var(--ease);
    transition-delay: calc(.55s + var(--i) * 55ms);
}

.ready .split-c { transform: none; }

.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: clamp(14px, 3vh, 28px);
    padding-top: 16px;
    border-top: 1px solid var(--border-strong);
    opacity: 0;
    transition: opacity 1.2s var(--ease) 1.5s;
}

.ready .kicker { opacity: 1; transform: none; }
.ready .hero-foot { opacity: 1; }

.route { margin: 0; color: var(--text); opacity: .82; line-height: 1.7; }
.route b { color: var(--accent); font-weight: 500; }

.cue {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap;
}

.cue i {
    position: relative;
    width: 1px;
    height: 44px;
    background: var(--border-strong);
    overflow: hidden;
}

.cue i::after {
    content: "";
    position: absolute;
    left: 0;
    top: -50%;
    width: 1px;
    height: 50%;
    background: var(--accent);
    animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue { to { top: 100%; } }

/* ---------- Intro ---------- */

.intro {
    padding: clamp(110px, 22vh, 240px) var(--gutter) clamp(90px, 16vh, 180px);
    max-width: 1280px;
    margin: 0 auto;
}

.lead {
    margin: 0;
    font: 400 clamp(32px, 4.6vw, 72px)/1.04 var(--serif);
    letter-spacing: -.018em;
    text-wrap: balance;
}

.lead .wd { opacity: .13; transition: opacity .5s ease; }
.lead .wd.on { opacity: 1; }

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 6vw, 96px);
    margin-top: clamp(48px, 9vh, 96px);
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.stat b {
    display: block;
    font: 400 clamp(48px, 5vw, 80px)/1 var(--serif);
    letter-spacing: -.02em;
}

.stat span { color: var(--muted); }

/* ---------- Story text (stories/<album>.json) ---------- */

/* A story opens with its short description: a readable lead, and the photos start soon after */
.intro-story { padding-top: clamp(64px, 12vh, 130px); padding-bottom: clamp(24px, 5vh, 56px); }
.intro-story .lead { max-width: 34ch; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; }
.intro-story .stats { margin-top: clamp(28px, 5vh, 48px); }

/* Intro paragraphs among the chapters, after their photos */
.story-par { max-width: 60ch; margin: 0 0 clamp(8px, 2vh, 24px); padding-left: 18px; border-left: 1px solid var(--border-strong); }
.story-par p { margin: 0 0 1em; font: 400 16.5px/1.62 var(--sans); color: var(--muted); }
.story-par p:last-child { margin-bottom: 0; }
.story-par .sp-k { margin-bottom: .9em; color: var(--accent); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Journey ---------- */

.journey {
    display: grid;
    grid-template-columns: minmax(340px, 36vw) minmax(0, 1fr);
    position: relative;
}

.atlas {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100svh;
    padding: calc(var(--header-h) + 10px) 0 22px var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
}

.atlas-card {
    position: relative;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 55% 45%, color-mix(in oklab, var(--tint) 30%, transparent), transparent 72%),
        rgba(255, 255, 255, .018);
}

.atlas-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, .55);
    pointer-events: none;
}

.map { position: absolute; inset: 0; }
.map svg { display: block; width: 100%; height: 100%; }

.atlas-head {
    position: absolute;
    top: 16px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    z-index: 2;
    pointer-events: none;
}

.atlas-head .count { color: var(--text); }

.atlas-now {
    position: absolute;
    left: 18px;
    bottom: 16px;
    right: 18px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.now-region { color: var(--accent); }

.now-title {
    font: 400 clamp(34px, 3.4vw, 54px)/1 var(--serif);
    letter-spacing: -.02em;
}

.now-region, .now-title { transition: opacity .35s ease, transform .5s var(--ease); }
.atlas-now.swap .now-region, .atlas-now.swap .now-title { opacity: 0; transform: translateY(8px); }

/* The map's zoomed layer (02-expeditie.js zoomMap): --k is its scale; widths and label sizes are divided by it */
.map-view { transform-origin: 0 0; transition: transform .9s var(--ease); }
.stop { transition: transform .9s var(--ease); }
.grat { fill: none; stroke: rgba(255, 255, 255, .035); stroke-width: calc(.6px / var(--k, 1)); }
.land .c { fill: rgba(255, 255, 255, .022); stroke: rgba(255, 255, 255, .14); stroke-width: calc(.6px / var(--k, 1)); stroke-linejoin: round; }
.land .c.on { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .22); }

.lbl-country {
    font: 500 8.5px var(--mono);
    letter-spacing: .32em;
    fill: rgba(255, 255, 255, .2);
    text-anchor: middle;
}

.lbl-country { font-size: calc(8.5px / var(--k, 1)); }
.lbl-sea {
    font: italic 400 15px var(--serif);
    font-size: calc(15px / var(--k, 1));
    fill: rgba(150, 196, 210, .32);
    text-anchor: middle;
    letter-spacing: .02em;
}

.route-base { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: calc(1px / var(--k, 1)); stroke-dasharray: calc(1.5px / var(--k, 1)) calc(5px / var(--k, 1)); stroke-linecap: round; }
.route { fill: none; stroke: var(--accent); stroke-width: calc(2.2px / var(--k, 1)); stroke-linecap: round; }

.stop { cursor: pointer; }
.stop .hit { fill: transparent; }
.stop .dot { fill: var(--bg); stroke: rgba(255, 255, 255, .4); stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.stop.visited .dot { fill: var(--accent); stroke: var(--accent); }
.stop .ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stop.current .ring { animation: pulse 2s var(--ease) infinite; }
.stop.current .ring + .ring { animation-delay: 1s; }

@keyframes pulse {
    0% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(5); }
}

.stop text {
    font: 500 9.5px var(--mono);
    letter-spacing: .14em;
    fill: var(--faint);
    transition: fill .4s;
    paint-order: stroke;
    stroke: rgba(8, 10, 9, .85);
    stroke-width: 3px;
}

.stop.visited text { fill: var(--muted); }
.stop.current text { fill: var(--text); }
.stop text { transition: opacity .3s; }
.stop text.lbl-off { opacity: 0; }
.stop:hover text.lbl-off { opacity: 1; }

.marker .halo { fill: var(--accent); opacity: .16; }
.marker .core { fill: #fff; }

.stops {
    list-style: none;
    margin: 0;
    padding: 0 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
}

.stops button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 5px 0;
    cursor: pointer;
    color: var(--faint);
    border-bottom: 1px solid var(--border);
    transition: color .4s;
}

.stops button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.stops button:hover { color: var(--text); }
.stops .i { opacity: .6; }
.stops li.visited button { color: var(--muted); }
.stops li.current button { color: var(--text); border-bottom-color: var(--accent); }
.stops li.current .i { color: var(--accent); opacity: 1; }

/* ---------- Chapters ---------- */

.chapters {
    --pr: var(--gutter);
    padding-left: clamp(28px, 4.5vw, 80px);
    min-width: 0;
}

.chapter {
    position: relative;
    padding: clamp(64px, 12vh, 140px) var(--pr) clamp(24px, 5vh, 60px) 0;
}

.ch-head { margin-bottom: clamp(36px, 7vh, 84px); max-width: 820px; }

.ch-num {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--accent);
}

.ch-num span { color: var(--faint); }
.ch-num::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .45; }

.ch-title {
    margin: .14em 0 .1em;
    font: 400 clamp(68px, 9vw, 160px)/.86 var(--serif);
    letter-spacing: -.035em;
}

.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

.mask > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.4s var(--ease);
}

.ch-region { margin: 0; color: var(--muted); }

.ch-text {
    margin: 26px 0 0;
    max-width: 60ch;
    padding-left: 18px;
    border-left: 1px solid var(--border-strong);
    font: 400 16.5px/1.62 var(--sans);
    color: var(--muted);
}


.ch-num, .ch-region, .ch-text {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.ch-head.in .ch-num { opacity: 1; transform: none; }
.ch-head.in .mask > span { transform: none; transition-delay: .08s; }
.ch-head.in .ch-region { opacity: 1; transform: none; transition-delay: .35s; }
.ch-head.in .ch-text { opacity: 1; transform: none; transition-delay: .5s; }

.blk { margin-bottom: clamp(56px, 13vh, 150px); }

.blk-full .ph { margin-right: calc(-1 * var(--pr)); }
.blk-full .ph-frame { aspect-ratio: 16 / 9.4; border-radius: 6px 0 0 6px; }
.blk-full figcaption { padding-right: var(--pr); }

.blk-pair {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(16px, 2.6vw, 44px);
    align-items: start;
}

.blk-pair .ph:first-child .ph-frame { aspect-ratio: 4 / 5; }
.blk-pair .ph:last-child { margin-top: clamp(90px, 24vh, 260px); }
.blk-pair .ph:last-child .ph-frame { aspect-ratio: 4 / 3; }

.blk-tall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.blk-tall .ph { grid-column: 5 / span 8; }
.blk-tall.flip .ph { grid-column: 1 / span 8; }
.blk-tall .ph-frame { aspect-ratio: 5 / 6; }

.ph { margin: 0; position: relative; }

/* The photo you arrived with (from another mode or a link): outlined, with a hint that it opens large */
.ph.is-target .ph-frame { box-shadow: 0 0 0 2px var(--accent), 0 0 40px -8px var(--accent); transition: box-shadow .6s var(--ease); }
.target-hint {
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(11, 13, 12, .78);
    border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 11px;
    letter-spacing: .06em;
    white-space: nowrap;
    pointer-events: none;
    animation: target-hint 7s var(--ease) forwards;
}
@keyframes target-hint {
    0% { opacity: 0; transform: translate(-50%, -6px); }
    8%, 85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .target-hint { animation: none; } }

.ph-btn {
    all: unset;
    display: block;
    width: 100%;
    cursor: zoom-in;
    border-radius: 6px;
}

.ph-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.ph-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #141816; /* the skeleton's base: no coloured block while the photo loads */
    clip-path: inset(12% 9% 12% 9% round 6px);
    transition: clip-path 1.7s var(--ease);
}

.ph.in .ph-frame { clip-path: inset(0 0 0 0 round 0); }

.ph-par { position: absolute; inset: -8% 0; display: block; }

.ph-par img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.32);
    transition: transform 2.2s var(--ease), opacity .9s ease;
}

.ph.in .ph-par img.loaded { opacity: 1; transform: scale(1.02); }
.ph.in .ph-btn:hover .ph-par img.loaded { transform: scale(1.06); transition-duration: 1.2s; }

.ph figcaption {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    opacity: 0;
    transition: opacity 1s ease .6s;
}

.ph.in figcaption { opacity: 1; }
.ph figcaption .mono { color: var(--faint); font-size: 10px; }
.ph figcaption .pl { color: var(--faint); }

/* ---------- Clips: framed like the photos, with a small video mark ---------- */

.ph.clip .ph-btn { cursor: pointer; }
.ph.clip figcaption { flex-wrap: wrap; row-gap: 4px; }
.blk .ph.clip .ph-frame { aspect-ratio: 16 / 9; }
.ph-par video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
/* A clip: its first frame as an image (shimmering until it loads), the video over it, revealed on its first real frame */
.ph.clip .ph-par {   /* shimmer until the first frame arrives (stops once it has loaded) */
    background: #141816 linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .085) 50%, rgba(255, 255, 255, 0) 70%) no-repeat;
    background-size: 200% 100%;
    animation: skel-shimmer 1.5s linear infinite;
}
.ph.clip .ph-par:has(.clip-poster.is-loaded) { animation: none; background: none; }
.ph.clip .clip-poster { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.ph.clip .ph-par video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease); }
.ph.clip.shown .ph-par video { opacity: 1; }
.blk-clip.blk-pair .ph:last-child { margin-top: clamp(48px, 12vh, 140px); }

.clip-mark, .clip-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(11, 13, 12, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
}
.clip-mark svg, .clip-tag svg { width: 11px; height: 11px; fill: var(--accent); flex: none; }
.clip-mark .i-pause, .clip-tag .i-pause, .playing .i-play { display: none; }
.playing .i-pause { display: block; }

.clip-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 7px;
    opacity: .85;
    transition: opacity .4s var(--ease);
}
.ph.clip.playing .clip-tag { opacity: .45; }
.ph.clip .ph-btn:hover .clip-tag, .ph.clip .ph-btn:focus-visible .clip-tag { opacity: 1; }

.hero-clip {
    position: absolute;
    top: 0;
    right: var(--gutter);
    padding: 6px 12px 6px 10px;
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s var(--ease) 1.3s, border-color .3s;
}
.ready .hero-clip { opacity: 1; }
.hero-clip:hover { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.hero-clip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- No map (albums without places): full-width editorial ---------- */

.journey.no-map { display: block; }
.journey.no-map .chapters { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); }

/* ---------- Next gallery ---------- */

.next-album {
    padding: clamp(90px, 18vh, 200px) var(--gutter) clamp(60px, 12vh, 140px);
    display: grid;
    justify-items: center;
    gap: 22px;
}
.na-card {
    position: relative;
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
    padding: 14px clamp(20px, 3vw, 40px) 14px 14px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--c) 10%, rgba(255, 255, 255, .02));
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.na-card::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%;
    height: 160%;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 45%, transparent), transparent);
    filter: blur(30px);
    opacity: .5;
    pointer-events: none;
}
.na-card:hover { border-color: var(--border-strong); background: color-mix(in oklab, var(--c) 16%, rgba(255, 255, 255, .03)); }
.na-media { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--c); }
.na-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.na-card:hover .na-media img { transform: scale(1.05); }
.na-copy { display: grid; gap: 14px; position: relative; }
.na-k { color: var(--accent); }
.na-t { font: 400 clamp(46px, 6.4vw, 96px)/.92 var(--serif); letter-spacing: -.02em; }
.na-t em { color: var(--muted); }
.na-m { color: var(--muted); line-height: 1.6; }
.na-go {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 24px;
    transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.na-card:hover .na-go { background: var(--accent); color: #0b130a; transform: translateX(6px); }
.na-card:focus-visible, .na-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.na-all { color: var(--muted); text-decoration: none; }
.na-all:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 56px var(--gutter) 40px;
    border-top: 1px solid var(--border);
}

.foot p { margin: 10px 0 0; color: var(--faint); }
.foot .up { color: var(--muted); text-decoration: none; }
.foot .up:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */

.lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr auto;
    place-items: center;
    padding: 18px var(--gutter) 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
    touch-action: pan-y pinch-zoom;
}

.lb.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.lb:focus { outline: none; }

.lb-lock .top { opacity: 0; pointer-events: none; }
.top { transition: opacity .4s ease; }

.lb-bg {
    position: absolute;
    inset: 0;
    background: color-mix(in oklab, var(--lbc, #000) 20%, rgba(5, 6, 6, .975));
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    transition: background-color .8s ease;
}

.lb-bar, .lb-meta, .lb-fig { position: relative; z-index: 1; }

.lb-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}

.lb-fig {
    margin: 16px 0;
    width: min(100%, calc((100vh - 220px) * var(--ar, 1.6)));
    width: min(100%, calc((100svh - 220px) * var(--ar, 1.6)));
    aspect-ratio: var(--ar, 1.6);
    transform: scale(.94) translateY(12px);
    transition: transform .7s var(--ease);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8);
}

.lb.open .lb-fig { transform: none; }

.lb-fig img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-low { filter: blur(18px); transform: scale(1.06); }
.lb-img { opacity: 0; transition: opacity .5s ease; }
.lb-img.loaded { opacity: 1; }

.lb-meta { text-align: center; }
.lb-title { margin: 0; font: 400 clamp(30px, 3.4vw, 48px)/1 var(--serif); letter-spacing: -.02em; }
.lb-meta p { margin: 8px 0 0; color: var(--muted); }

.lb-btn {
    all: unset;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 2;
    transition: background .3s, border-color .3s;
}

.lb-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }

/* ---------- Scroll-driven extras ---------- */

@supports (animation-timeline: view()) {
    .ph-par {
        animation: par linear both;
        animation-timeline: view();
        animation-range: cover 0% cover 100%;
    }

    @keyframes par {
        from { transform: translateY(-6%); }
        to { transform: translateY(6%); }
    }

    .hero-par {
        animation: heroOut linear both;
        animation-timeline: scroll(root);
        animation-range: 0 100vh;
    }

    @keyframes heroOut { to { transform: translateY(16%) scale(1.06); filter: brightness(.5) saturate(.8); } }

    .hero-copy {
        animation: copyOut linear both;
        animation-timeline: scroll(root);
        animation-range: 0 85vh;
    }

    @keyframes copyOut { to { transform: translateY(-18vh); opacity: 0; } }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
    :root { --header-h: 56px; }

    .top { position: absolute; }
    .progress { display: none; }

    .hero h1 em { margin-left: 0; }
    .hero-foot { align-items: flex-end; }
    .route { font-size: 10px; }
    .cue span { display: none; }
    .story-par p, .ch-text { font-size: 15.5px; }
    .hero-clip { position: static; margin-bottom: 14px; }

    .journey { display: block; }

    .atlas {
        position: sticky;
        top: calc(56px + env(safe-area-inset-top));
        height: auto;
        padding: 8px 10px 0;
        z-index: 20;
    }

    .atlas-card {
        flex: none;
        height: 132px;
        border-radius: 16px;
        background-color: rgba(11, 13, 12, .86);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    }

    .atlas-head { top: 10px; left: 12px; right: auto; gap: 10px; font-size: 9.5px; }
    .atlas-now { left: auto; right: 12px; bottom: 9px; align-items: flex-end; text-align: right; }
    .now-region { font-size: 9px; }
    .now-title { font-size: 26px; }
    .stops { display: none; }
    .stop text { display: none; }

    .chapters { --pr: 16px; padding-left: 16px; }
    .journey.no-map .chapters { padding-left: 16px; }
    .na-card { grid-template-columns: 1fr; padding: 10px 10px 22px; gap: 18px; }
    .na-copy { padding: 0 10px; }
    .na-go { display: none; }
    .chapter { padding-top: 56px; }
    .ch-head { margin-bottom: 30px; }

    .blk { margin-bottom: 56px; }
    .blk-full .ph { margin-left: -16px; margin-right: -16px; }
    .blk-full .ph-frame { border-radius: 0; aspect-ratio: 4 / 3.2; }
    .blk-full figcaption { padding: 0 16px; }
    .blk-pair { grid-template-columns: 1fr 1fr; gap: 12px; }
    .blk-pair .ph:last-child { margin-top: 72px; }
    .blk-tall .ph { grid-column: 2 / -1; }
    .blk-tall.flip .ph { grid-column: 1 / span 11; }
    .blk-clip.blk-pair { grid-template-columns: 1fr; gap: 56px; }
    .blk-clip.blk-pair .ph:last-child { margin-top: 0; }
    .blk-clip.blk-full .ph-frame { aspect-ratio: 16 / 9; }
    .ph figcaption { font-size: 13px; gap: 10px; flex-wrap: wrap; }
    .ph figcaption .pl { display: none; }


    .lb { padding: 12px 12px 18px; }
    .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; width: 44px; height: 44px; }
    .lb-prev { left: 12px; }
    .lb-next { right: 12px; }
    .lb-meta { padding: 0 56px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-media, .ph-frame { clip-path: none; }
    .hero-par img, .ph-par img { opacity: 1; transform: none; }
    .ph-par video, .ph.clip .clip-poster { transform: none; }
    .ph.clip .ph-par { animation: none; }
    .hero-clip { opacity: 1; }
    .split-c, .mask > span, .kicker, .ch-num, .ch-region, .ch-text { transform: none; opacity: 1; }
    .hero-shade, .hero-foot, .ph figcaption { opacity: 1; }
    .lead .wd { opacity: 1; }
    .ph-par { inset: 0; }
}
