/* Arzi's Dream: "The road" prototype, v4 (v3 plus the v4 design spec) */
/* Only the faces the page uses: Newsreader (one variable file per style) and Jost 400/500. Newsreader normal and Jost 400 are preloaded. */
/* v4 round 2: Newsreader (variable: weight 200-800, optical size 6-72), self-hosted from @fontsource-variable/newsreader 5.3.0 */
@font-face{font-family:"Newsreader";src:url(../assets/fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations"),url(../assets/fonts/newsreader-latin-opsz-normal.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url(../assets/fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations"),url(../assets/fonts/newsreader-latin-opsz-italic.woff2) format("woff2");font-weight:200 800;font-style:italic;font-display:swap}
@font-face{font-family:"Jost";src:url(../assets/fonts/jost-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Jost";src:url(../assets/fonts/jost-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}

:root{
  --cream:#efe7d6;
  --body:rgba(239,231,214,.94);   /* body copy */
  --sec:rgba(239,231,214,.84);    /* secondary and small print */
  --label:rgba(239,231,214,.9);   /* Jost caps labels */
  --cream-3:rgba(239,231,214,.38); --hair:rgba(239,231,214,.22);
  --gold:#d8b57a; --ink:#07080a;
  --bg:#0d1216;
  --bar:max(52px,6.2vh);
  --gutter:clamp(28px,6vw,96px);
  --serif:"Newsreader",Georgia,serif; --sans:"Jost","Avenir Next",Avenir,"Helvetica Neue",sans-serif;
  --shadow-txt:0 0 3px rgba(0,0,0,.55),0 1px 14px rgba(0,0,0,.8);
}
html[data-atmo=caucasus]{--bg:#0e1419}
html[data-atmo=road]{--bg:#16110b}
html[data-atmo=city]{--bg:#180f0a}
html[data-atmo=night]{--bg:#080b16}
html[data-atmo=end]{--bg:#06070d}

*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--ink);-webkit-text-size-adjust:100%;overflow-x:clip}
/* overflow-x on body stays visible: clip on <html> is enough, and a hidden body would make body its own scroller */
body{background:transparent;color:var(--body);font-family:var(--serif);font-optical-sizing:auto;font-size:19px;font-weight:400;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,video,svg{display:block;max-width:100%}
picture{display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ol,ul{list-style:none}
.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--cream);color:var(--ink);padding:12px 16px;font-family:var(--sans);font-weight:400}
.skip:focus{left:8px}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* Jost caps labels (v4 round 2): at least 13px, opacity >= .85, tracking <= .16em */
.ep-meta,.watch,.cta-watch,.cue-txt,.nav a,.rail span,.makkah-name,.field span,.foot-links,.foot-bill,.socials span,.give,.copy,.gate-go,.letters-form button{font-family:var(--sans);text-transform:uppercase;font-weight:400}
.tbc{font-family:var(--sans);font-size:.62em;letter-spacing:.04em;color:rgba(216,181,122,.92);font-style:normal;font-weight:400;text-transform:none;vertical-align:.1em}

/* ---------- atmosphere ---------- */
.atmo{position:fixed;inset:0;z-index:0;background:var(--bg);transition:background-color 1.6s ease;pointer-events:none}
/* each layer has a flat colour (the painting's average) so nothing flashes while its painting loads */
.atmo-layer{position:absolute;inset:-3%;background-size:cover;background-position:center;opacity:0;transition:opacity 1.8s ease;will-change:opacity}
.atmo-layer[data-atmo=caucasus]{background-color:#8b99a1;background-image:url(../assets/img/bg-caucasus.jpg);background-image:image-set(url(../assets/img/bg-caucasus-1920.webp) type("image/webp"),url(../assets/img/bg-caucasus.jpg) type("image/jpeg"))}
.atmo-layer[data-atmo=road]{background-color:#917a68}
.atmo-layer[data-atmo=city]{background-color:#816e69}
.atmo-layer[data-atmo=night]{background-color:#122554}
.atmo-layer.ld[data-atmo=road]{background-image:url(../assets/img/bg-road.jpg);background-image:image-set(url(../assets/img/bg-road-1920.webp) type("image/webp"),url(../assets/img/bg-road.jpg) type("image/jpeg"))}
.atmo-layer.ld[data-atmo=city]{background-image:url(../assets/img/bg-city.jpg);background-image:image-set(url(../assets/img/bg-city-1920.webp) type("image/webp"),url(../assets/img/bg-city.jpg) type("image/jpeg"))}
.atmo-layer.ld[data-atmo=night]{background-image:url(../assets/img/bg-night.jpg);background-image:image-set(url(../assets/img/bg-night-1920.webp) type("image/webp"),url(../assets/img/bg-night.jpg) type("image/jpeg"))}
.atmo-layer.on{opacity:.3}
.atmo-layer[data-atmo=night].on{opacity:.4}
/* v3: a stronger shade, so text never sits on a light painting */
.atmo-shade{position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 45%,rgba(7,8,10,0) 30%,rgba(7,8,10,.7) 100%),linear-gradient(rgba(7,8,10,.4),rgba(7,8,10,.4))}

/* v4 round 3: the radial text scrims (.tscrim) are gone. These blocks keep position:relative (the class gave it to them)
   so the paint order stays as before; nothing inside them used z-index, so isolation is not needed. */
.prologue,.ep-text,.road-head,.wp-text,.about,.stop-head,.ep3,.support-intro,.gifts,.wall-head,.letters{position:relative}

/* ---------- nav ---------- */
/* v4 round 2: header background as on theflintops.com/global-mining (public/global-mining/style.css .bar / .bar.is-solid):
   transparent over the hero, solid near-black with a 1px inset hairline once past it, no blur; .3s fade */
.nav{position:fixed;top:0;left:0;right:0;height:var(--bar);z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 3vw;pointer-events:none;background:transparent;transition:background-color .3s ease,box-shadow .3s ease}
.nav.is-solid{background:#15130f;box-shadow:inset 0 -1px 0 rgba(236,230,219,.14)}
.nav.snap{transition:none}
.nav>*{pointer-events:auto}
.nav-mark{width:150px}
.nav-mark img{width:100%;height:auto;filter:drop-shadow(0 1px 14px rgba(21,19,15,.45))}
.nav nav{display:flex;gap:2.4vw;align-items:center}
.nav a{font-size:13px;letter-spacing:.16em;color:var(--label);transition:color .3s;text-shadow:var(--shadow-txt)}
/* over the hero the header is transparent (Flint), so its links go full cream there to stay >= 4.5:1 on light footage */
.nav:not(.is-solid) a{color:var(--cream)}
.nav.is-solid a{text-shadow:none}
.nav a:hover{color:var(--cream)}
.nav-support{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid rgba(239,231,214,.4);padding:0 16px 0 13px;background:rgba(6,7,9,.42);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.nav-support svg{width:12px;height:12px;fill:none;stroke:var(--gold);stroke-width:1.4}
/* persistent Watch while locked: slides in beside the Support chip once the hero button has left the screen */
.nav-cta{display:flex;max-width:0;margin-left:-2.4vw;overflow:hidden;opacity:0;visibility:hidden;transform:translateY(-6px);transition:max-width .35s ease,margin-left .35s ease,opacity .35s ease,transform .35s ease,visibility 0s linear .35s}
html.cta-on .nav-cta{max-width:280px;margin-left:0;opacity:1;visibility:visible;transform:none;transition-delay:0s}
.nav-cta{transition-duration:.12s;transition-delay:0s,0s,0s,0s,.12s}
html.cta-on .nav-cta{transition-duration:.35s;transition-delay:0s}
.nav-watch{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 18px 0 15px;white-space:nowrap;font-size:14px;letter-spacing:.16em;color:var(--ink);background:var(--gold);transition:background-color .3s}
.nav-watch:hover{background-color:var(--cream)}
.nav-watch:focus-visible{outline:2px solid var(--cream);outline-offset:-2px}
.nav-watch svg{width:8px;height:10px;fill:currentColor}

/* v4 phone menu (hidden on desktop) */
.nav-menu,.m-menu{display:none}

/* ---------- rail ---------- */
.rail{position:fixed;right:2.1vw;top:50%;z-index:30;height:34vh;transform:translateY(-50%);display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;opacity:0;transition:opacity .6s}
html.past-hero .rail{opacity:1}
.rail-line{position:absolute;right:3px;top:4px;bottom:4px;width:1px;background:repeating-linear-gradient(to bottom,var(--cream-3) 0 2px,transparent 2px 7px)}
.rail-fill{position:absolute;left:0;top:0;width:1px;height:100%;background:var(--cream);transform-origin:top;transform:scaleY(0)}
.rail a{position:relative;display:flex;align-items:center;gap:14px;padding:4px 0}
.rail i{display:block;width:7px;height:7px;border-radius:50%;border:1px solid var(--sec);background:var(--bg);transition:background .4s,border-color .4s,transform .4s}
.rail a.reached i{background:var(--cream);border-color:var(--cream)}
.rail a.future i{border-style:dashed}
.rail a.active i{transform:scale(1.5)}
.rail a::before{content:attr(data-num);position:absolute;right:20px;font-family:var(--serif);font-size:14px;color:rgba(239,231,214,.6);transition:opacity .3s}
.rail a:hover::before{opacity:0}
.rail a.active::before{color:var(--gold)}
.rail span{order:-1;font-size:13px;letter-spacing:.16em;color:var(--label);opacity:0;transform:translateX(6px);transition:opacity .4s,transform .4s;white-space:nowrap;text-shadow:var(--shadow-txt)}
.rail a:hover span,.rail a:focus-visible span{opacity:1;transform:none}

/* ---------- hero ---------- */
/* 86% of the screen, transparent: the footage dissolves (mask) into the fixed Caucasus atmosphere, so there is no edge */
.hero{position:relative;height:100vh;height:100svh;min-height:520px;overflow:hidden;z-index:5;isolation:isolate}
.hero-media{position:absolute;inset:0;-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%)}
.hero-poster,.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* the poster is always painted (it is the LCP); the video sits on top and fades in once it actually plays */
.hero-video{opacity:0;transition:opacity 1s ease}
.hero.playing .hero-video{opacity:1}
/* slow connection or data saver: no video, the poster pans slowly so the hero is not dead */
.hero.still .hero-poster{animation:heroPan 46s ease-in-out infinite alternate;transform-origin:60% 40%}
@keyframes heroPan{from{transform:scale(1.03) translate3d(0,0,0)}to{transform:scale(1.12) translate3d(-2.2%,-1.2%,0)}}
/* streaming-style scrim: dark from the left edge to ~60%, a bottom gradient, a light overall shade; faces right and centre stay bright */
.hero-media::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:
  linear-gradient(to right,rgba(4,5,7,.86) 0%,rgba(4,5,7,.74) 18%,rgba(4,5,7,.48) 34%,rgba(4,5,7,.16) 50%,rgba(4,5,7,0) 60%),
  linear-gradient(to bottom,rgba(4,5,7,.74),rgba(4,5,7,.42) 9%,rgba(4,5,7,0) 22%),
  linear-gradient(rgba(4,5,7,.14),rgba(4,5,7,.14))}
.hero-media::after{content:"";position:absolute;left:0;right:0;bottom:0;height:60%;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(4,5,7,.82),rgba(4,5,7,.5) 34%,rgba(4,5,7,0))}
html.no-js .hero-video{display:none}
html.rm .hero-video{display:none}
.hero-bars span{position:absolute;left:0;right:0;height:50%;background:#050608;transform:scaleY(0);z-index:2}
.hero-bars span:first-child{top:0;transform-origin:top}
.hero-bars span:last-child{bottom:0;transform-origin:bottom}

/* lockup: anchored by its bottom edge, so the email step opens upwards and never runs into the cue or the next chapter */
.hero-lockup{position:absolute;z-index:3;left:var(--gutter);bottom:34vh;bottom:34svh;width:min(560px,calc(100% - 2 * var(--gutter)));text-align:left}
.hero-lockup::before{content:"";position:absolute;inset:-22% -18%;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(4,5,7,.5),rgba(4,5,7,.32) 55%,rgba(4,5,7,0))}
.hero-title img{width:clamp(280px,30vw,460px);height:auto;filter:drop-shadow(0 2px 18px rgba(0,0,0,.5)) drop-shadow(0 0 2px rgba(0,0,0,.4))}
.hero-logline{margin-top:18px;font-weight:500;font-style:normal;font-size:clamp(24px,2.4vw,34px);line-height:1.18;letter-spacing:.003em;color:var(--cream);text-wrap:balance;text-shadow:0 0 3px rgba(0,0,0,.5),0 2px 18px rgba(0,0,0,.7)}
.hero-watch{margin-top:28px}

.watch{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:56px;padding:0 34px 0 30px;font-size:14px;letter-spacing:.16em;border:1px solid rgba(239,231,214,.72);background:rgba(8,9,11,.4);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .35s,color .35s,border-color .35s}
.watch svg{width:10px;height:12px;fill:currentColor}
.watch:hover{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.watch-primary{background:var(--gold);border-color:var(--gold);color:var(--ink);-webkit-backdrop-filter:none;backdrop-filter:none}
.hero-watch .watch{min-height:64px;padding:0 44px 0 36px;font-size:17px;letter-spacing:.1em;font-weight:500}
.hero-watch .watch svg{width:12px;height:14px}

/* the labelled cue on the seam between hero and page */
.cue{position:absolute;left:50%;bottom:5vh;bottom:5svh;transform:translateX(-50%);z-index:3;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:44px;padding:4px 10px}
.cue-txt{font-size:13px;letter-spacing:.16em;color:rgba(239,231,214,.92);white-space:nowrap;text-shadow:var(--shadow-txt)}
.cue-chev{width:16px;height:10px;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;animation:cueBob 2.2s ease-in-out infinite}
@keyframes cueBob{0%,100%{transform:translateY(-2px);opacity:.75}50%{transform:translateY(4px);opacity:1}}
.hero:has(.watch-wrap.open) .cue{opacity:0;pointer-events:none;transition:opacity .3s}

/* intro, pure CSS so it never waits for a script: wordmark wipe, shutter, lockup fade. road.js removes html.intro on any
   input or when the animations end, which is also their final state. */
html.intro .hero-title img{animation:introWipe .6s cubic-bezier(.65,0,.35,1) .05s both}
html.intro .hero-bars span{animation:introBars .7s cubic-bezier(.87,0,.13,1) .2s both}
html.intro .hero-logline{animation:introFade .4s ease .3s both}
html.intro .hero-watch{animation:introFade .3s ease .4s both}
html.intro .cue,html.intro .nav{animation:introFade .4s ease .55s both}
@keyframes introWipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes introBars{from{transform:scaleY(1)}to{transform:scaleY(0)}}
@keyframes introFade{from{opacity:0}to{opacity:1}}

/* ---------- journey ---------- */
/* above the hero (z 5), so the first chapter can rise into the hero's dissolving lower third without being dimmed by it */
.journey{position:relative;z-index:6;overflow-x:clip}
.route{position:absolute;left:0;top:0;z-index:2;pointer-events:none;overflow:visible}
.route path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.route-ink{stroke:var(--cream);stroke-width:2.1}
.route-ink2{stroke:var(--cream);stroke-width:.7;opacity:.45;transform:translate(1.6px,1.1px)}
.route-bleed{stroke:var(--gold);stroke-width:9;opacity:.08}
.route-future{stroke:var(--cream);stroke-width:2.6;stroke-dasharray:.1 11;opacity:.8}
.route-nodes circle{fill:var(--bg);stroke:var(--cream);stroke-width:1.2;transition:fill .5s}
.route-nodes .reached circle.core{fill:var(--cream)}
.route-nodes circle.ring{fill:none;stroke-opacity:.45;transform-box:fill-box;transform-origin:center;transform:scale(.4);opacity:0;transition:transform 1s cubic-bezier(.2,.7,.2,1),opacity 1s}
.route-nodes .reached circle.ring{transform:scale(1);opacity:1}
.route-nodes .node-small circle.core{stroke:var(--gold)}
.route-nodes .node-small.reached circle.core{fill:var(--gold)}
.route-tip .tip-halo{fill:rgba(216,181,122,.22)}
.route-tip .tip-halo2{fill:rgba(216,181,122,.07)}
.route-tip .tip-a,.route-tip .tip-b{fill:var(--cream)}
.weather{position:absolute;inset:0;width:100%;height:100%}
.rp{display:block;height:0;width:0}
.chapter{position:relative;z-index:3}
.chapter>*:not(.mist){position:relative;z-index:3}
/* mist bands load with their chapter (road.js adds .near within ~1.5 viewports), not up front */
.mist{position:absolute;left:-5vw;right:-5vw;height:56vh;background:center/100% 100% no-repeat;opacity:.2;pointer-events:none;z-index:1}
.near>.mist{background-image:url(../assets/img/mist-a.webp)}
.mist-top{top:-30vh}
.mist-mid{top:-26vh;opacity:.2}
.near>.mist-mid{background-image:url(../assets/img/mist-b.webp)}

/* I. Caucasus: pulled up into the hero's dissolving lower third, so the stop and the first line show with no scrolling */
.ch-caucasus{padding-top:14vh}
.prologue{padding-left:14vw;padding-right:10vw}
/* the sentence under each chapter title is a lead paragraph (v4 round 2) */
.pro-head,.stop-line{margin-top:3vh;font-weight:400;font-style:normal;font-size:clamp(22px,2vw,30px);line-height:1.35;max-width:26em;color:var(--cream);text-wrap:pretty}

.episode{display:grid;align-items:center;column-gap:5vw;padding-top:24vh}
.ep-left{grid-template-columns:27vw 1fr;padding-left:14vw;padding-right:5vw}
.ep-right{grid-template-columns:1fr 27vw;padding-left:5vw;padding-right:12vw}
.episode>.rp{position:absolute}
.ep-title{font-weight:500;font-size:clamp(44px,4.7vw,94px);line-height:.95;letter-spacing:-.01em}
.ep-meta{margin-top:2.2vh;font-size:14px;letter-spacing:.12em;line-height:1.7;color:var(--label)}
.ep-meta i{font-style:normal;color:var(--gold);margin:0 .45em}
.ep-syn{margin-top:2.6vh;max-width:30em;color:var(--body)}
.ep-text .watch-wrap{margin-top:4vh}
.ep-stage{position:relative}
.ep-frame{position:relative}
.ep-frame-inner{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000;box-shadow:0 40px 90px rgba(0,0,0,.55)}
.ep-clip{width:100%;height:100%;object-fit:cover}
/* each cover's still sits behind its clip from the first paint, so the frame is never a black box while the clip's
   poster (set by road.js) and its first frame load (owner, 27 Nov 2026) */
#episode-1 .ep-frame-inner{background:#000 url(../assets/img/ep1-clip-poster-960.webp) center/cover no-repeat}
#episode-2 .ep-frame-inner{background:#000 url(../assets/img/ep2-clip-poster-960.webp) center/cover no-repeat}
.tick{position:absolute;width:20px;height:20px;border:0 solid rgba(239,231,214,.66)}
.tick.tl{left:-12px;top:-12px;border-left-width:1px;border-top-width:1px}
.tick.tr{right:-12px;top:-12px;border-right-width:1px;border-top-width:1px}
.tick.bl{left:-12px;bottom:-12px;border-left-width:1px;border-bottom-width:1px}
.tick.br{right:-12px;bottom:-12px;border-right-width:1px;border-bottom-width:1px}
.ep-still{position:absolute;width:31%;z-index:2;box-shadow:0 26px 60px rgba(0,0,0,.6);outline:1px solid rgba(0,0,0,.6)}
.ep-still img{width:100%;height:auto}
.still-a{right:-4%;bottom:-17%;transform:rotate(1.4deg)}
.still-b{left:-4%;bottom:-17%;transform:rotate(-1.4deg)}

/* The road between: two waypoints on the route, zigzag on a two-column grid */
.ch-road{padding-top:30vh}
.road{padding:0 9vw 0 14vw}
.road-head{display:flex;flex-direction:column;align-items:flex-start;gap:18px;font-weight:500;font-size:clamp(36px,3.8vw,72px);line-height:1;letter-spacing:-.005em}
.road-head .orn{display:flex;align-items:center;gap:10px}
.road-head .orn i{display:block;width:64px;height:1px;background:rgba(216,181,122,.7)}
.road-head .orn b{display:block;width:7px;height:7px;border:1px solid var(--gold);border-radius:50%}
/* v4: a threaded collage. Row 1 image left + text right, row 2 text left + image right; the route passes behind both
   pictures (the anchors sit at each picture's centre, on the static waypoint, so parallax moves the picture, not the line) */
.waypoint{position:relative;display:grid;align-items:center;column-gap:5vw;margin-top:14vh}
.waypoint>.rp{position:absolute;top:50%}
.wp-a{grid-template-columns:40vw minmax(0,24em)}
.wp-b{grid-template-columns:minmax(0,24em) 31vw;justify-content:space-between;margin-top:12vh}
.wp-img{margin:0}
.wp-img img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;box-shadow:0 30px 70px rgba(0,0,0,.55)}
.wp-a .wp-img{rotate:-1.4deg}
.wp-b .wp-img{rotate:1.2deg}
.wp-text{max-width:24em}
.wp-title{font-weight:500;font-size:clamp(24px,1.8vw,29px);line-height:1.15;color:var(--cream)}
.wp-line{margin-top:12px;color:var(--body)}

.about{padding:24vh 9vw 6vh 22vw}
.about>.about-rp{position:absolute;left:0;top:18vh}
.about-head{font-weight:500;font-size:clamp(30px,2.9vw,58px);line-height:1.12;max-width:18em}
.about-body{margin-top:5vh;max-width:60ch;color:var(--body)}
.about-body p+p{margin-top:1.1em}
.about-sign{margin-top:4vh;max-width:60ch;font-style:normal;font-size:17px;line-height:1.5;color:var(--sec)}

/* v4: v2's second collage, verbatim geometry. Three tilted cards at three parallax speeds; the route threads behind them */
.seen{position:relative;height:112vh}
.card{position:absolute;margin:0}
.card img{width:100%;height:auto;box-shadow:0 30px 70px rgba(0,0,0,.55)}
.card figcaption{margin-top:14px;font-family:var(--serif);font-size:17px;line-height:1.35;color:var(--sec);text-shadow:var(--shadow-txt)}
.c4{width:21vw;left:10vw;top:6vh;rotate:-1.4deg}
.c5{width:36vw;left:34vw;top:24vh;rotate:1.2deg}
.c6{width:22vw;left:18vw;top:82vh;rotate:-1.4deg} /* v2: top:74vh; moved 8vh lower so the Episode 2 caption never slides under it (see NOTES v4) */
/* two extra route anchors, each under a card (winter: lower right of the card; Ep 2 cover: lower middle), so the line
   leaves the winter card right of its caption and leaves the cover at its lower right; the cards hide the turns */
.seen>.seen-rp{position:absolute;left:0}
.sr-a{top:calc(6vh + 6.6vw)}
.sr-b{top:calc(24vh + 11vw)}

/* II. Constantinople */
.ch-city{padding-top:36vh}
.stop-head-right{padding:0 12vw 0 10vw;display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.stop-head-right .road-head{align-items:flex-end}

/* The road ahead */
.ch-ahead{padding-top:34vh}
.ep3{padding:0 10vw 0 calc(50vw + 46px)}
.ep3-line{margin-top:-8px;font-style:italic;font-weight:500;font-size:clamp(28px,2.9vw,58px);line-height:1.1}
.support{display:grid;grid-template-columns:1fr 1.05fr;column-gap:6vw;row-gap:7vh;padding:24vh 9vw 0 16vw}
.support-intro{align-self:start}
.support-head{font-weight:500;font-size:clamp(28px,2.6vw,54px);line-height:1.1}
.support-fact{margin-top:4.5vh;display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.stat-num{font-weight:500;font-size:clamp(58px,5.4vw,100px);line-height:.9;color:var(--gold);font-variant-numeric:lining-nums;letter-spacing:-.01em}
.stat-txt{font-size:19px;color:var(--body);max-width:12em;line-height:1.3}
.gifts{padding-top:1vh}
.gifts-title{font-family:var(--serif);font-size:28px;font-weight:500;line-height:1.2;color:var(--cream)}
.gifts-line{margin-top:1.2vh;font-size:17px;color:var(--sec)}
.gift-list{margin-top:3vh;border-top:1px solid var(--hair)}
.gift-list li{display:grid;grid-template-columns:7.5em 1fr;align-items:baseline;gap:1.2em;padding:18px 0;border-bottom:1px solid var(--hair)}
.amt{font-weight:500;font-size:clamp(26px,2vw,40px);line-height:1;color:var(--gold);font-variant-numeric:lining-nums}
.gift{color:var(--body)}
.give-row{margin-top:4vh;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.give{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:58px;padding:0 34px;background:var(--gold);color:var(--ink);font-size:14px;letter-spacing:.16em;transition:background .3s}
.give:hover{background:var(--cream)}
.give svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.give-note{font-size:17px;line-height:1.45;color:var(--body);max-width:32em}
/* v4: the share line is a panel of its own */
.cant{grid-column:1/-1;margin-top:7vh;display:flex;align-items:center;justify-content:space-between;gap:2.4vw;padding:30px 36px;border:1px solid rgba(239,231,214,.28);background:rgba(6,7,9,.46);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cant-head{font-family:var(--serif);font-size:30px;font-weight:500;line-height:1.15;color:var(--cream)}
.cant-line{margin-top:8px;color:var(--body)}
/* outlined button (Copy link, and "Show all N names" on the phone wall) */
.copy,.wall-more{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 30px;font-family:var(--sans);text-transform:uppercase;font-weight:400;font-size:14px;letter-spacing:.16em;border:1px solid var(--gold);color:var(--cream);white-space:nowrap;transition:background .3s,color .3s}
.copy:hover,.wall-more:hover{background:var(--gold);color:var(--ink)}
.wall-more{display:none}

.wall{padding-top:22vh}
.wall-head{text-align:center;max-width:44em;margin:0 auto}
.wall-title{font-weight:500;font-size:clamp(36px,3.6vw,72px);line-height:1}
.wall-line{margin-top:2vh;color:var(--body)}
.wall-note a{color:var(--cream);text-decoration:underline;text-decoration-color:rgba(216,181,122,.75);text-underline-offset:.22em;text-decoration-thickness:1px}
html.has-believers .wall-tbc{display:none}
.wall-names{position:relative;display:grid;grid-template-columns:1fr 13vw 1fr;margin-top:9vh;padding:0 7vw}
.names{font-size:17px;line-height:1.9;color:var(--sec)}
.names-l{text-align:right;grid-column:1}
.names-r{grid-column:3}
.names li{display:inline;white-space:nowrap}
.names li::after{content:"·";margin:0 .7em;color:rgba(216,181,122,.8)}
.names-l li:last-child::after,.names-r li:last-child::after{content:none}
.names li:nth-child(3n){color:var(--cream)}

.makkah{padding:26vh 0 12vh;text-align:center}
.makkah-name{margin-top:6vh;font-size:14px;letter-spacing:.16em;color:var(--gold);padding-left:.22em}
.route-nodes .node-end circle.core{fill:var(--gold);stroke:var(--gold)}
.route-nodes .node-end circle.glow{fill:url(#mkGlow);stroke:none;transform-box:fill-box;transform-origin:center;animation:mk 5s ease-in-out infinite}
@keyframes mk{50%{transform:scale(1.12);opacity:.8}}
.route-nodes .node-future circle.core{fill:none;stroke:var(--cream);stroke-dasharray:2 3.5;opacity:.85}
.route-nodes .node-future circle.ring{stroke-dasharray:1 5}

/* letters */
.ch-letters{padding:10vh 8vw 12vh;display:flex;flex-direction:column;align-items:center}
.letters{max-width:44rem;text-align:center}
.letters-head{font-weight:500;font-size:clamp(32px,3vw,58px);line-height:1.05}
.letters-line{margin:2.4vh auto 0;max-width:32em;color:var(--body)}
.letters-form{margin-top:4.5vh;display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;justify-content:center}
.letters-form .field{flex:1 1 20rem;text-align:left}
.letters-form button{min-height:52px;padding:0 28px;border:1px solid rgba(239,231,214,.75);font-size:14px;letter-spacing:.16em;transition:background .3s,color .3s}
.letters-form button:hover{background:var(--cream);color:var(--ink)}
.form-msg{flex-basis:100%;min-height:1.5em;color:var(--gold);text-align:left;font-size:17px}
.small{margin-top:1.6vh;font-size:16px;color:var(--sec)}
.small a{text-decoration:underline;text-decoration-color:rgba(239,231,214,.5);text-underline-offset:.22em}
.field{display:block}
.field span{display:block;font-size:13px;letter-spacing:.16em;color:var(--label);margin-bottom:6px}
.field input{width:100%;height:52px;background:transparent;border:0;border-bottom:1px solid rgba(239,231,214,.6);color:var(--cream);font-family:var(--serif);font-weight:400;font-size:20px;padding:0 2px;border-radius:0;outline:none;transition:border-color .3s}
.field input::placeholder{color:rgba(239,231,214,.55)}
.field input:focus{border-bottom-color:var(--gold)}
.field input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.socials{margin-top:9vh;display:flex;gap:2.6vw}
.socials a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;min-width:44px;color:var(--label);transition:color .3s}
.socials a:hover{color:var(--cream)}
.socials svg{width:20px;height:20px;fill:currentColor}
.socials span{font-size:13px;letter-spacing:.16em}

/* footer: billing line */
.foot{position:relative;z-index:6;background:#040506;text-align:center;padding:9vh 6vw 3.2vh}
.foot-mark{width:190px;height:auto;margin:0 auto;opacity:.92}
.foot-blurb{margin:3vh auto 0;max-width:34em;color:var(--body)}
.foot-links{margin-top:4.5vh;display:flex;justify-content:center;flex-wrap:wrap;gap:.4em 2em;font-size:13px;letter-spacing:.16em;color:var(--label)}
.foot-links a{display:inline-flex;align-items:center;min-height:44px}
.foot-links a:hover{color:var(--cream)}
.foot-bill{margin-top:4vh;padding-top:2.4vh;border-top:1px solid rgba(239,231,214,.12);font-size:13px;letter-spacing:.16em;color:rgba(239,231,214,.8)}

/* ---------- the step a button opens (.gate: Episode 3's Notify me, proto-hb/h-sections.js) ---------- */
.gate{display:block;position:relative;left:50%;transform:translateX(-50%);width:min(92vw,720px);margin:0 auto;text-align:center;clip-path:inset(0 0 100% 0);animation:gateIn .55s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes gateIn{to{clip-path:inset(0 0 0 0)}}
.gate-row{display:flex;gap:0;align-items:stretch;flex-wrap:nowrap}
.gate .f-name{flex:1 1 0;min-width:0}
.gate .f-mail{flex:1.55 1 0;min-width:0}
.gate .f-name span,.gate .f-mail span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gate .field input{height:58px;font-size:20px;padding:0 18px;background:rgba(6,7,9,.66);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(239,231,214,.62);border-right:0;color:var(--cream)}
.gate .field input::placeholder{color:rgba(239,231,214,.62)}
.gate .field input:focus{border-color:var(--gold)}
.gate .field input[aria-invalid=true]{border-color:#e6a27c}
.gate-go{display:inline-flex;align-items:center;justify-content:center;gap:12px;height:58px;padding:0 26px;background:var(--gold);color:var(--ink);font-size:14px;letter-spacing:.16em;white-space:nowrap;transition:background .3s}
.gate-go:hover{background:var(--cream)}
.gate-go svg{width:9px;height:11px;fill:currentColor}
.gate-msg{color:var(--gold);font-size:17px;line-height:1.35;text-shadow:var(--shadow-txt)}
.gate-msg:not(:empty){margin-top:10px}
.gate.done .gate-row{opacity:.35;pointer-events:none}

.cta-watch{white-space:nowrap}
.cta-watch svg{flex:none}

/* 44px hit areas for small text links, without changing how they look */
.nav a,.small a,.rail a{position:relative}
.nav a:not(.nav-watch)::after,.small a::after,.rail a::after,.skip::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}

/* ---------- centred hero lockup below 900px (tablet and phone) ---------- */
@media (max-width:899px),(max-aspect-ratio:3/4){
  .hero-lockup{left:50%;transform:translateX(-50%);width:min(88vw,560px);bottom:30vh;bottom:30svh;text-align:center}
  .hero-title img{width:min(74vw,420px);margin:0 auto}
  .hero-logline{font-size:clamp(24px,6.4vw,32px);margin-top:14px}
  /* phones: a strong bottom gradient instead of the left-hand scrim */
  .hero-media::before{background:linear-gradient(to bottom,rgba(4,5,7,.74),rgba(4,5,7,.4) 9%,rgba(4,5,7,0) 20%),linear-gradient(rgba(4,5,7,.16),rgba(4,5,7,.16))}
  .hero-lockup::before{inset:-14% -10%;background:radial-gradient(closest-side,rgba(4,5,7,.66),rgba(4,5,7,.45) 55%,rgba(4,5,7,0))}
  .hero-media::after{height:72%;background:linear-gradient(to top,rgba(4,5,7,.92),rgba(4,5,7,.78) 34%,rgba(4,5,7,.42) 66%,rgba(4,5,7,0))}
}

/* ---------- phone ---------- */
@media (max-width:760px){
  :root{--bar:56px}
  body{font-size:18px}
  .nav-cta{display:none}
  .nav{padding:0 5vw}
  .nav nav a:not(.nav-support):not(.nav-watch){display:none}
  .nav-support{padding:0 14px 0 12px}
  .nav-mark{width:118px}
  .nav-menu{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:44px;height:44px;margin-right:-10px}
  .nav-menu span{display:block;width:18px;height:1.5px;background:var(--cream);transition:transform .3s ease}
  .nav-menu[aria-expanded=true] span:first-child{transform:translateY(3.75px) rotate(45deg)}
  .nav-menu[aria-expanded=true] span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
  .m-menu{display:block;position:absolute;left:0;right:0;top:100%;background:rgba(6,7,9,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--hair)}
  .m-menu[hidden]{display:none}
  .nav .m-menu a{display:flex;align-items:center;height:56px;padding:0 6vw;font-size:14px;letter-spacing:.16em;color:var(--cream);text-shadow:none}
  .nav .m-menu a+a{border-top:1px solid var(--hair)}
  .nav .m-menu a::after{content:none}
  .rail{display:none}
  .watch{min-height:56px;padding:0 26px 0 22px;font-size:14px;letter-spacing:.16em}
  .hero-watch .watch{width:100%;max-width:340px;min-height:60px;font-size:16px;letter-spacing:.1em}

  .mist{height:30vh}
  .ch-caucasus{padding-top:10vh}
  .prologue{padding:0 6vw 0 15vw}
  .episode,.ep-left,.ep-right{grid-template-columns:1fr;padding:12vh 6vw 0 15vw;row-gap:7vh}
  .ep-right .ep-stage,.ep-left .ep-stage{order:-1}
  .ep-title{font-size:12vw}
  .ep-still{width:44%}
  .still-a,.still-b{right:-3%;left:auto;bottom:-16%}
  .ep-meta{font-size:14px;letter-spacing:.1em}
  .tick{width:12px;height:12px}
  .tick.tl,.tick.bl{left:-7px}.tick.tr,.tick.br{right:-7px}.tick.tl,.tick.tr{top:-7px}.tick.bl,.tick.br{bottom:-7px}

  .ch-road{padding-top:14vh}
  .road{padding:0 6vw 0 15vw}
  .road-head{font-size:40px;gap:14px}
  .waypoint,.wp-a,.wp-b{grid-template-columns:1fr;row-gap:20px;margin-top:7vh}
  .wp-b .wp-img{order:-1}
  .waypoint>.rp{top:0}
  .wp-a .wp-img{rotate:-1deg}
  .wp-b .wp-img{rotate:1deg}
  .about>.about-rp{top:0}
  .wp-title{font-size:24px}
  .about{padding:12vh 6vw 0 15vw}
  .about-head{font-size:29px}
  .about-sign{font-size:16px}
  .seen{height:auto;padding:10vh 6vw 0 15vw;display:flex;flex-direction:column;gap:28px}
  .card{position:relative;left:auto;top:auto}
  .c5{width:100%}
  .c4{width:78%;align-self:flex-end}
  .c6{width:70%;align-self:flex-start}
  .card figcaption{font-size:16px}
  .ch-city{padding-top:16vh}
  .stop-head-right{align-items:flex-start;text-align:left;padding:0 6vw 0 15vw}
  .stop-head-right .road-head{align-items:flex-start}
  .ch-ahead{padding-top:16vh}
  .ep3{padding:0 6vw 0 15vw}
  .ep3-line{font-size:29px}
  .support{grid-template-columns:1fr;padding:12vh 6vw 0 15vw;row-gap:6vh}
  .support-head{font-size:27px}
  .stat-num{font-size:58px}
  .gifts-line{font-size:16px}
  .gifts-title{font-size:24px}
  .gift-list li{grid-template-columns:4.6em 1fr;gap:.9em;padding:14px 0}
  .amt{font-size:24px}
  .give{width:100%;padding:10px 18px;font-size:14px;letter-spacing:.12em;line-height:1.4;text-align:center;text-wrap:balance}
  .cant{flex-direction:column;align-items:stretch;gap:20px;padding:24px 22px}
  .cant-head{font-size:26px}
  .copy{width:100%}
  .wall-collapsed .names li.more{display:none}
  .wall-collapsed .names li.last-vis::after{content:none}
  .wall-more{display:flex;margin:28px auto 0}
  .wall{padding-top:12vh}
  .wall-head{text-align:left;padding:0 6vw 0 15vw}
  .wall-title{font-size:40px}
  .wall-names{grid-template-columns:1fr;padding:0 6vw 0 15vw;margin-top:4vh}
  .names-l,.names-r{grid-column:1;text-align:left}
  /* v4 round 2: on phones the two lists read as one flowing list (no lone name where the left list ends) */
  .wall-names{display:block}
  .names{display:inline}
  .names-l li:last-child::after{content:"·"}
  .wall-collapsed .names li.last-vis::after,.names-r li:last-child::after{content:none}
  .names li::after{margin:0 .45em}
  .atmo-layer[data-atmo=night]{background-position:4% 50%}
  .atmo-layer.on{opacity:.26}
  .atmo-layer[data-atmo=night].on{opacity:.36}
  .makkah{padding:14vh 0 6vh}
  .ch-letters{padding:6vh 6vw 8vh}
  .letters-head{font-size:32px}
  .letters-form button{width:100%}
  .socials{flex-wrap:wrap;justify-content:center;gap:4px 24px;margin-top:6vh}
  .foot-links{gap:0 1.4em}
  .foot-blurb{font-size:18px}
}
/* phone-sized atmosphere files */
@media (max-width:760px){
  .atmo-layer[data-atmo=caucasus]{background-image:url(../assets/img/bg-caucasus.jpg);background-image:image-set(url(../assets/img/bg-caucasus-960.webp) type("image/webp"),url(../assets/img/bg-caucasus.jpg) type("image/jpeg"))}
  .atmo-layer.ld[data-atmo=road]{background-image:image-set(url(../assets/img/bg-road-960.webp) type("image/webp"),url(../assets/img/bg-road.jpg) type("image/jpeg"))}
  .atmo-layer.ld[data-atmo=city]{background-image:image-set(url(../assets/img/bg-city-960.webp) type("image/webp"),url(../assets/img/bg-city.jpg) type("image/jpeg"))}
  .atmo-layer.ld[data-atmo=night]{background-image:image-set(url(../assets/img/bg-night-960.webp) type("image/webp"),url(../assets/img/bg-night.jpg) type("image/jpeg"))}
}
/* phones and portrait: the step stacks */
@media (max-width:760px),(max-aspect-ratio:3/4){
  .gate{width:100%;left:0;transform:none}
  .gate-row{flex-direction:column;gap:8px}
  .gate .f-name,.gate .f-mail{flex:none}
  .gate .field input{height:52px;border-right:1px solid rgba(239,231,214,.62);text-align:center}
  .gate-go{width:100%;height:56px}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
  .nav-cta,html.cta-on .nav-cta{transition:none!important;transform:none!important}
  .hero.still .hero-poster{animation:none}
}

/* the spam trap in every form: a text field only a bot fills; hidden from sight, tab and screen readers */
.hp-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0;border:0}
