/* The Ride to Rio
   One long sheet of map paper. Sections have no backgrounds of their own: a fixed
   "atmosphere" behind everything shifts colour as you scroll (see js/modules/atmosphere.js). */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #F4EAD0;
  --paper-2: #FBF4DF;
  --ink: #1E1B16;
  --ink-soft: #4A4337;
  --olive: #8C9A4A;
  --forest: #2F4A2C;
  --mustard: #D9A93B;
  --teal: #2F8F8B;
  --red: #C8452C;
  --sky: #A9D3DE;
  --dusk: #F2A27C;
  --night: #16233A;

  --sky-top: var(--paper);
  --sky-bot: var(--paper);
  --stars: 0;

  --font-body: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-stamp: "Alfa Slab One", "Rockwell", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --measure: 34rem;
  --radius: 26px;
  --shadow: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
  font-size: clamp(1.06rem, 0.98rem + 0.34vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mustard); color: var(--ink); }
q { quotes: "“" "”"; }
cite { font-style: italic; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ atmosphere */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.atmos__sky { position: absolute; inset: 0; background: linear-gradient(var(--sky-top), var(--sky-bot)); }
.atmos__stars {
  position: absolute; inset: 0; opacity: var(--stars);
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 41% 31%, #ffe9c2 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 66% 47%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 24%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 68%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 77%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 35% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 9%, #fff 50%, transparent 51%);
  background-size: 620px 520px, 540px 610px, 700px 480px, 480px 560px, 660px 640px, 520px 500px, 740px 580px, 600px 660px, 560px 540px, 680px 600px;
}
.atmos__grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .26  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Film grain over everything: the same moving grain as smithrobinson.org
   (same 256px tile, same opacity and stepped drift; still and fainter on phones). */
body::after {
  content: ""; position: fixed; top: 0; left: 0; width: 300%; height: 300%; z-index: 99999; pointer-events: none;
  background-image: url("../assets/img/ui/grain.png"); opacity: .08;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-5%, -10%); }
  20%, 40%, 60%, 80% { transform: translate(-15%, -20%); }
}
@media (max-width: 48rem) { body::after { animation: none; opacity: .04; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ------------------------------------------------------------------ type helpers */
.stamp { font-family: var(--font-stamp); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; line-height: 1.2; }
.stamp--light { color: var(--paper); }
.eyebrow { color: var(--red); margin-bottom: .9rem; }
.eyebrow.stamp--light { color: var(--mustard); }
.display {
  font-weight: 620; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em;
  font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance;
}
.lede { font-size: 1.22em; line-height: 1.42; text-wrap: pretty; }
.note { font-family: var(--font-hand); font-size: 1.5em; color: var(--red); transform: rotate(-3deg); }
.bleep { display: inline-block; width: 2.1em; height: .6em; overflow: hidden; vertical-align: -.04em; line-height: 1; color: transparent; background: var(--ink); border-radius: 30% 44% 38% 46% / 60% 48% 62% 44%; margin: 0 .07em; transform: rotate(-1.5deg); user-select: none; }
.link-arrow { font: inherit; font-weight: 560; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; cursor: pointer; }
.link-arrow::after { content: " →"; text-decoration: none; display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(.25em); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .72em 1.25em .68em; border-radius: 999px;
  font-weight: 640; font-size: .98rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--red); color: #FFF6E4; }
.btn--ghost { background: rgba(30, 27, 22, .35); color: #FFF6E4; border-color: #FFF6E4; box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { box-shadow: none; background: rgba(30, 27, 22, .55); }
.btn--small { font-size: .82rem; padding: .5em .95em .46em; box-shadow: 2px 2px 0 var(--ink); }
.btn__icon { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn__aside { font-weight: 400; opacity: .8; font-size: .86em; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; z-index: 40; top: max(.7rem, env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: .3rem; padding: .3rem .4rem;
  background: color-mix(in srgb, var(--paper-2) 92%, transparent); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); transition: translate .45s var(--ease), opacity .3s;
}
.nav--hidden { translate: -50% -180%; }
.nav__mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); }
.nav__mark svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: #FFF6E4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav__links { display: flex; }
.nav__links a { font-family: var(--font-stamp); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; padding: .55rem .7rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 30rem) {
  .nav__mark { display: none; }
  .nav__links a { padding: .5rem .5rem; font-size: .6rem; letter-spacing: .08em; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #FFF6E4; isolation: isolate; --ridge-h: clamp(64px, 12vw, 190px); }
.hero__media {
  position: absolute; inset: 0; z-index: -1; background: #2a2118 center / cover no-repeat;
  background-image: url("../assets/video/posters/hero.jpg");
  background-image: image-set(url("../assets/video/posters/hero.avif") type("image/avif"), url("../assets/video/posters/hero.jpg") type("image/jpeg"));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--ridge-h) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 220' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L0 150 L70 118 L118 132 L190 74 L238 104 L300 88 L362 128 L430 60 L498 112 L560 96 L622 130 L700 42 L760 96 L820 82 L880 120 L948 70 L1010 108 L1080 92 L1140 128 L1210 58 L1276 104 L1340 90 L1404 124 L1470 80 L1530 112 L1600 98 L1600 0 Z'/%3E%3C/svg%3E") bottom / 100% var(--ridge-h) no-repeat;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--ridge-h) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 220' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L0 150 L70 118 L118 132 L190 74 L238 104 L300 88 L362 128 L430 60 L498 112 L560 96 L622 130 L700 42 L760 96 L820 82 L880 120 L948 70 L1010 108 L1080 92 L1140 128 L1210 58 L1276 104 L1340 90 L1404 124 L1470 80 L1530 112 L1600 98 L1600 0 Z'/%3E%3C/svg%3E") bottom / 100% var(--ridge-h) no-repeat;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(24, 18, 10, .82) 0%, rgba(24, 18, 10, .38) 42%, rgba(24, 18, 10, .12) 68%, rgba(24, 18, 10, .42) 100%); }
.hero__content { padding: 7rem var(--gutter) calc(var(--ridge-h) + clamp(1.2rem, 3vw, 3rem)); max-width: 78rem; width: 100%; margin: 0 auto; }
.hero__eyebrow { color: var(--mustard); margin-bottom: 1rem; font-size: clamp(.68rem, .6rem + .3vw, .9rem); }
.hero__title {
  display: grid; grid-template-columns: max-content max-content; justify-content: start; align-items: center; column-gap: .09em; row-gap: 0;
  font-family: var(--font-stamp); font-weight: 400; text-transform: uppercase; line-height: .86; letter-spacing: -.01em;
  font-size: min(clamp(4.4rem, 3rem + 13.5vw, 16.5rem), 27svh);
  text-shadow: .028em .028em 0 var(--red), .058em .058em 0 var(--ink);
}
.hero__the, .hero__to { justify-self: end; font-family: var(--font-body); font-style: italic; font-weight: 500; text-transform: none; font-size: .2em; letter-spacing: 0; color: var(--mustard); text-shadow: .06em .06em 0 var(--ink); transform: rotate(-8deg); padding-right: .25em; }
.hero__kicker { max-width: 33rem; margin-top: clamp(1rem, 2.4vw, 2rem); font-size: 1.12em; line-height: 1.4; text-wrap: pretty; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; height: var(--ridge-h); pointer-events: none; }
.hero__ridge svg { width: 100%; height: 100%; overflow: visible; }
.hero__ridge-fill { fill: none; }
.hero__ridge-ink { fill: none; stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* ------------------------------------------------------------------ reel */
.reel { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(3rem, 8vw, 7rem); }
.reel__title { text-align: center; color: var(--red); margin-bottom: 1.4rem; }
.reel__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(19.5rem, 78vw); gap: 1.3rem; justify-content: safe center;
  padding: .8rem var(--gutter) 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel__list::-webkit-scrollbar { display: none; }
.reel__list > li { scroll-snap-align: center; }
.reel__list > li:nth-child(odd) { --tilt: -1.4deg; }
.reel__list > li:nth-child(even) { --tilt: 1.2deg; }
.ticket {
  display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; text-align: left; background: var(--paper-2); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ticket:hover, .ticket:focus-visible { transform: rotate(0deg) translateY(-6px); box-shadow: 7px 9px 0 var(--ink); }
.ticket__poster { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px dashed var(--ink); }
.ticket__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ticket:hover .ticket__poster img { transform: scale(1.05); }
.ticket__play {
  position: absolute; right: .7rem; bottom: .7rem; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.ticket__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: .78rem solid #FFF6E4; border-top: .5rem solid transparent; border-bottom: .5rem solid transparent; translate: .1rem 0; }
.ticket__stub { display: grid; align-content: start; gap: .25rem; padding: .95rem 1.1rem 1.1rem; }
.ticket__year { font-family: var(--font-stamp); font-size: .7rem; letter-spacing: .14em; color: var(--red); }
.ticket__name { font-weight: 680; font-size: 1.22rem; line-height: 1.1; font-variation-settings: "SOFT" 100, "WONK" 1; }
.ticket__blurb { font-size: .9rem; line-height: 1.35; color: var(--ink-soft); }
.ticket__len { font-family: var(--font-stamp); font-size: .66rem; letter-spacing: .12em; margin-top: .3rem; }
.ticket__len em { font-family: var(--font-hand); font-style: normal; font-size: 1.6em; letter-spacing: 0; color: var(--red); text-transform: none; }

/* ------------------------------------------------------------------ story */
.story { position: relative; padding: 0 var(--gutter) clamp(4rem, 10vw, 9rem); max-width: 80rem; margin: 0 auto; }
.story__head { max-width: 60rem; margin: 0 auto; text-align: center; }
.story__lede { position: relative; max-width: 44rem; margin: clamp(1.5rem, 4vw, 3rem) auto 0; text-align: center; }
.story__lede .note { margin-top: .6rem; }

.odometers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 3.4vw, 3rem) clamp(1rem, 3vw, 2.6rem); margin: clamp(2.5rem, 6vw, 5rem) auto; max-width: 54rem; }
.odo { display: grid; justify-items: center; align-content: start; gap: .65rem; text-align: center; min-width: 0; }
.odo__n {
  font-family: var(--font-stamp); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.3rem); line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--paper-2); padding: .22em .34em .16em; border-radius: .22em; box-shadow: inset 0 .12em 0 rgba(255, 255, 255, .12), 3px 3px 0 var(--red);
}
.odo__l { font-size: .86rem; line-height: 1.25; max-width: 10.5rem; color: var(--ink-soft); }
@media (max-width: 36rem) { .odometers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chapter { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(3.5rem, 9vw, 8rem); }
.chapter--flip > .chapter__text { order: 2; }
.chapter__text { max-width: var(--measure); justify-self: center; }
.chapter__text--wide { max-width: 46rem; grid-column: 1 / -1; text-align: center; }
.chapter__text--center { max-width: 44rem; grid-column: 1 / -1; text-align: center; }
.chapter__text p + p { margin-top: 1em; }
.chapter__stamp { display: inline-flex; align-items: center; gap: .6em; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); letter-spacing: .06em; margin-bottom: .7rem; }
.chapter__stamp::before { content: ""; width: 0; height: 0; border-left: .62em solid var(--red); border-top: .4em solid transparent; border-bottom: .4em solid transparent; filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }
.chapter__more { margin-top: 1.2em; }
.chapter--who, .chapter--now { display: block; }

.vignette { position: relative; justify-self: center; width: min(100%, 27rem); }
.vignette picture, .vignette img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.vignette picture { border: 3px solid var(--ink); box-shadow: 6px 7px 0 var(--ink); overflow: hidden; position: relative; z-index: 1; }
.vignette::before { /* the wedge pointer from the inspiration map */
  content: ""; position: absolute; top: 38%; width: 34%; height: 24%; background: var(--ink); z-index: 0;
}
.vignette--right::before { left: -22%; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.vignette--left::before { right: -22%; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.vignette figcaption { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; text-align: center; margin-top: .9rem; transform: rotate(-2deg); color: var(--ink-soft); }

.pull { position: relative; padding-left: 1.6rem; max-width: 30rem; justify-self: center; }
.pull::before { content: "“"; position: absolute; left: -.5rem; top: -.38em; font-size: 5.5em; line-height: 1; color: var(--red); font-family: var(--font-body); }
.pull p { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.22; font-style: italic; font-weight: 480; font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; }
.pull footer { margin-top: .9rem; font-size: .88rem; color: var(--ink-soft); }
.pull footer::before { content: "— "; }
.pull--center { margin: 2rem auto 0; padding-left: 0; }
.pull--center::before { position: static; display: block; height: .5em; }

.day { justify-self: center; width: min(100%, 26rem); list-style: none; border-left: 3px dotted var(--ink); padding: .3rem 0 .3rem 1.4rem; display: grid; gap: .7rem; }
.day li { position: relative; font-size: .98rem; line-height: 1.3; }
.day li::before { content: ""; position: absolute; left: calc(-1.4rem - 8px); top: .42em; width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); }
.day__t { display: inline-block; min-width: 3.4em; font-family: var(--font-stamp); font-size: .78rem; letter-spacing: .08em; }

/* passports */
.passports { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(1.5rem, 4vw, 3rem); }
.passport {
  flex: 1 1 19rem; max-width: 25rem;
  position: relative; display: grid; grid-template-columns: 6.6rem 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem 1.3rem;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.passport:nth-child(odd) { rotate: -.7deg; }
.passport:nth-child(even) { rotate: .8deg; }
.passport__photo { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; rotate: -2deg; background: var(--sky); }
.passport__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.passport__type { font-family: var(--font-stamp); font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: .25rem; }
.passport__name { font-size: 1.32rem; line-height: 1.08; font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: .55rem; }
.passport__fields { display: grid; gap: .42rem; font-size: .86rem; line-height: 1.3; }
.passport__fields dt { font-family: var(--font-stamp); font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.visa {
  position: absolute; right: -.6rem; bottom: .55rem; rotate: -9deg; padding: .32rem .7rem .26rem; max-width: 12rem; text-align: center;
  font-family: var(--font-stamp); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.25;
  color: var(--red); border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 8px; opacity: .58; mix-blend-mode: multiply; pointer-events: none;
}
.visa--blue { color: #2B4C8C; rotate: 6deg; }
.visa--green { color: var(--forest); rotate: -5deg; }
.visa--big { font-size: .66rem; opacity: .82; right: .3rem; bottom: .7rem; rotate: -7deg; border-radius: 999px; padding: .45rem 1rem .38rem; }
.passport--late { rotate: 2.2deg; border-style: dashed; }
.passport .passport__body { padding-bottom: 2rem; }

/* ------------------------------------------------------------------ journey */
.journey { position: relative; }
.journey__intro { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(1rem, 3vw, 2.5rem); text-align: center; }
.journey__how { margin-top: 1.2rem; }
.journey__skip { margin-top: 1rem; font-size: .9rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }

.cloudbank { height: clamp(7rem, 20vw, 15rem); pointer-events: none; background-repeat: no-repeat;
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110'%3E%3Cpath d='M38 96c-18 0-30-11-30-25 0-13 10-23 23-24 2-21 19-37 40-37 15 0 28 8 35 20 5-3 11-5 18-5 18 0 33 13 36 30 2 0 3-1 5-1 15 0 27 10 27 22s-12 20-27 20z' fill='%23FFFDF6' stroke='%231E1B16' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-image: var(--cloud), var(--cloud), var(--cloud), var(--cloud), var(--cloud), var(--cloud);
  background-size: 19rem, 11rem, 15rem, 9rem, 22rem, 12rem;
  background-position: 4% 70%, 24% 18%, 46% 82%, 63% 26%, 84% 64%, 99% 14%;
}
.cloudbank--out { transform: scaleX(-1); }

.journey__track { position: relative; height: 1300vh; }
.journey__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: clip; }
.journey__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.journey__pins { position: absolute; inset: 0; pointer-events: none; height: 100svh; z-index: 1; isolation: isolate; }
.journey__hud { position: absolute; inset: 0; height: 100svh; z-index: 2; pointer-events: none; padding: max(4.4rem, env(safe-area-inset-top)) max(.9rem, env(safe-area-inset-right)) max(.9rem, env(safe-area-inset-bottom)) max(.9rem, env(safe-area-inset-left)); }
.journey__hud > * { pointer-events: auto; }
.journey__hud[hidden] { display: none; }

/* loading note until the map is ready */
.journey__stage::before { content: "Unfolding the map…"; position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-hand); font-size: 1.8rem; color: var(--ink-soft); transition: opacity .6s; }
.journey--ready .journey__stage::before { opacity: 0; }

/* clouds and birds drifting over the map */
.sky { position: absolute; inset: 0; height: 100svh; overflow: clip; pointer-events: none; z-index: 0; }
.sky__cloud {
  position: absolute; left: 0; top: var(--y); width: var(--w); aspect-ratio: 240 / 110; opacity: .94;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110'%3E%3Cpath d='M38 96c-18 0-30-11-30-25 0-13 10-23 23-24 2-21 19-37 40-37 15 0 28 8 35 20 5-3 11-5 18-5 18 0 33 13 36 30 2 0 3-1 5-1 15 0 27 10 27 22s-12 20-27 20z' fill='%23FFFDF6' stroke='%231E1B16' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M52 78c10 5 24 5 34 0M118 70c12 6 30 6 44-1' fill='none' stroke='%231E1B16' stroke-width='2.5' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(14px 26px 0 rgba(40, 34, 60, .13));
  animation: drift var(--t) linear infinite; animation-delay: var(--d);
}
@keyframes drift { from { transform: translateX(-32vw); } to { transform: translateX(118vw); } }
.sky__flock { position: absolute; left: 0; top: var(--y); animation: fly var(--t) linear infinite; animation-delay: var(--d); }
@keyframes fly { from { transform: translate(112vw, 8vh); } to { transform: translate(-22vw, -26vh); } }
.sky__bird {
  position: absolute; left: var(--bx); top: var(--by); width: 1.5rem; height: .75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M2 11Q8 1 14 9Q20 1 26 11' fill='none' stroke='%231E1B16' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: flap .52s ease-in-out infinite alternate; animation-delay: var(--fd);
  filter: drop-shadow(10px 22px 0 rgba(40, 34, 60, .16));
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.28); } }
@media (prefers-reduced-motion: reduce) { .sky__cloud, .sky__flock, .sky__bird { animation: none; } .sky__flock { display: none; } .sky__cloud { transform: translateX(var(--x0)); } }

/* pins */
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; justify-items: center; transform-origin: 50% 100%; will-change: transform; --s: 2.6rem; }
.pin[hidden] { display: none; }
.pin__disc { width: var(--s); height: var(--s); border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper-2) center / cover no-repeat; box-shadow: 2px 3px 0 var(--ink); transition: width .35s var(--ease), height .35s var(--ease), filter .3s; }
.pin__tip { width: 0; height: 0; border-top: .62rem solid var(--ink); border-left: .36rem solid transparent; border-right: .36rem solid transparent; margin-top: -1px; }
.pin--future .pin__disc { filter: grayscale(1) opacity(.55); width: 1.1rem; height: 1.1rem; background-image: none !important; }
.pin--future .pin__tip { opacity: .5; transform: scale(.6); }
.pin:hover .pin__disc, .pin:focus-visible .pin__disc { width: calc(var(--s) * 1.25); height: calc(var(--s) * 1.25); filter: none; }
.pin--near .pin__disc, .pin--active .pin__disc { width: calc(var(--s) * 1.7); height: calc(var(--s) * 1.7); border-width: 3px; }
.pin--active .pin__disc { box-shadow: 0 0 0 4px var(--red), 3px 4px 0 4px var(--ink); }
.pin__card {
  position: absolute; left: calc(100% + .5rem); top: 8%; width: max-content; max-width: min(17rem, 56vw); padding: .55rem .8rem .6rem; text-align: left;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; translate: -8px 0; transition: opacity .3s, translate .3s var(--ease); pointer-events: none;
}
.pin--flip .pin__card { left: auto; right: calc(100% + .5rem); translate: 8px 0; }
.pin--near .pin__card { opacity: 1; translate: 0 0; }
.pin--active .pin__card { opacity: 0; }
.pin__day { display: block; font-family: var(--font-stamp); font-size: .56rem; letter-spacing: .13em; color: var(--red); text-transform: uppercase; }
.pin__title { display: block; font-weight: 700; font-size: .98rem; line-height: 1.12; font-variation-settings: "SOFT" 100, "WONK" 1; }
.pin__teaser { display: block; font-size: .78rem; line-height: 1.25; color: var(--ink-soft); margin-top: .15rem; }

/* riders marker */
.riders { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.riders__dot { width: 1.05rem; height: 1.05rem; margin: -.52rem 0 0 -.52rem; border-radius: 50%; background: var(--red); border: 2.5px solid var(--ink); box-shadow: 0 0 0 3px var(--paper-2); }

/* HUD */
.rail { position: absolute; left: max(.9rem, env(safe-area-inset-left)); top: 50%; translate: 0 -50%; list-style: none; display: grid; gap: .1rem; margin: 0; padding: 0; }
.rail button { display: flex; align-items: center; gap: .5rem; font-family: var(--font-stamp); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; padding: .28rem .2rem; color: var(--ink); opacity: .5; transition: opacity .3s; text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.rail button::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper-2); transition: background .3s, scale .3s; }
.rail button:hover { opacity: 1; }
.rail [aria-current="true"] { opacity: 1; }
.rail [aria-current="true"]::before { background: var(--red); scale: 1.35; }
.odo-mini { position: absolute; right: max(.9rem, env(safe-area-inset-right)); top: max(4.4rem, env(safe-area-inset-top)); display: flex; gap: .35rem; font-family: var(--font-stamp); font-size: .68rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.odo-mini span { background: var(--ink); color: var(--paper-2); padding: .38rem .6rem .3rem; border-radius: 8px; box-shadow: 2px 2px 0 var(--red); white-space: nowrap; }
.profile { position: absolute; left: max(.9rem, env(safe-area-inset-left)); right: max(.9rem, env(safe-area-inset-right)); bottom: max(.8rem, env(safe-area-inset-bottom)); height: 3.4rem; cursor: ew-resize; touch-action: none; }
.profile svg { width: 100%; height: 100%; overflow: visible; }
.profile [data-profile-fill] { fill: color-mix(in srgb, var(--ink) 16%, transparent); }
.profile [data-profile-line] { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profile [data-profile-now] { stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; }
.locator { position: absolute; left: max(.9rem, env(safe-area-inset-left)); bottom: calc(max(.8rem, env(safe-area-inset-bottom)) + 4.2rem); width: 7.5rem; height: 6.25rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper-2); box-shadow: 2px 2px 0 var(--ink); }
.journey__hud [data-explore] { position: absolute; right: max(.9rem, env(safe-area-inset-right)); bottom: calc(max(.8rem, env(safe-area-inset-bottom)) + 4.2rem); }
.compass { position: absolute; right: max(.9rem, env(safe-area-inset-right)); top: calc(max(4.4rem, env(safe-area-inset-top)) + 2.6rem); width: 3.1rem; height: 3.1rem; border-radius: 50%; }
.compass svg { width: 100%; height: 100%; transition: transform .2s linear; overflow: visible; }
.compass circle { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2.5; }
.compass__n { fill: var(--red); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.compass__s { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.compass text { font: 9px var(--font-stamp); fill: #FFF6E4; }
.compass--north circle { stroke: var(--red); }
.journey--exploring .journey__canvas { touch-action: none; cursor: grab; }
.journey--exploring .journey__canvas:active { cursor: grabbing; }

/* side panel / bottom sheet */
.panel {
  position: absolute; z-index: 5; top: max(4.6rem, env(safe-area-inset-top)); right: max(.9rem, env(safe-area-inset-right)); width: min(25rem, 40vw);
  max-height: calc(100svh - 5.6rem - 5.2rem); display: grid; grid-template-rows: 1fr auto;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 30px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
  transition: translate .5s var(--ease), opacity .35s;
}
.panel[hidden] { display: grid; visibility: hidden; opacity: 0; translate: 110% 0; transition: translate .4s var(--ease), opacity .3s, visibility 0s .4s; }
.panel__close { position: absolute; z-index: 2; right: .7rem; top: .7rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink); font-size: 1.4rem; line-height: 1; box-shadow: 2px 2px 0 var(--ink); }
.panel__scroll { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 1rem; }
.panel__nav { display: flex; justify-content: space-between; gap: .6rem; padding: .7rem 1rem .9rem; border-top: 2px dashed var(--ink); }
.panel .stop__media { margin: 0; }
.panel .stop__media img { width: 100%; max-height: 15rem; object-fit: cover; border-bottom: 2px solid var(--ink); }
.panel .stop__meta, .panel .stop__title, .panel .stop__body, .panel .stop__quote, .panel .stop__watch { margin-left: 1.3rem; margin-right: 1.3rem; }
.panel .stop__meta { margin-top: 1.1rem; }
.panel .stop__teaser { display: none; }

/* with the panel open on wide screens, the counters, compass and Explore button step aside */
@media (min-width: 52.01rem) {
  .odo-mini, .compass, .journey__hud [data-explore] { transition: translate .5s var(--ease); }
  .journey--panel .odo-mini, .journey--panel .compass, .journey--panel .journey__hud [data-explore] { translate: calc(-1 * min(25rem, 40vw) - 1.2rem) 0; }
}

/* on phones the "you are here" caption sits at the bottom instead of beside the pin */
.nowcard { display: none; }
@media (max-width: 52rem) {
  .pin__card { display: none; }
  .nowcard {
    display: block; position: absolute; left: max(.7rem, env(safe-area-inset-left)); right: max(.7rem, env(safe-area-inset-right)); bottom: calc(max(.8rem, env(safe-area-inset-bottom)) + 4rem);
    text-align: left; padding: .6rem .9rem .65rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink);
    transition: opacity .3s, translate .3s var(--ease);
  }
  .nowcard[hidden] { display: block; opacity: 0; translate: 0 10px; pointer-events: none; }
  .nowcard .pin__title::after { content: " →"; color: var(--red); }
  .journey__hud [data-explore] { bottom: auto; top: calc(max(4.4rem, env(safe-area-inset-top)) + 6.2rem); }
}
@media (max-width: 52rem) {
  .panel { top: auto; right: .5rem; left: .5rem; bottom: max(.5rem, env(safe-area-inset-bottom)); width: auto; max-height: min(54svh, calc(100svh - 11.5rem)); border-radius: 26px; }
  .panel[hidden] { translate: 0 110%; }
  .panel .stop__media img { max-height: 10.5rem; }
  .rail { display: none; }
  .locator { display: none; }
  .odo-mini { font-size: .58rem; }
}

/* the logbook (also the no-JS and reduced-motion version of the journey) */
.stop__meta { font-family: var(--font-stamp); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
.stop__place { color: var(--ink-soft); }
.stop__title { font-size: 1.5rem; line-height: 1.08; font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; margin-top: .3rem; text-wrap: balance; }
.stop__teaser { font-style: italic; color: var(--ink-soft); margin-top: .3rem; }
.stop__body { margin-top: .8rem; font-size: .98rem; line-height: 1.5; }
.stop__body p + p { margin-top: .8em; }
.stop__quote { margin-top: 1rem; padding-left: .9rem; border-left: 4px solid var(--red); }
.stop__quote p { font-style: italic; font-size: 1.04rem; line-height: 1.35; }
.stop__quote footer { font-size: .78rem; color: var(--ink-soft); margin-top: .3rem; }
.stop__quote footer::before { content: "— "; }
.stop__watch { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.stop__watch .btn { text-align: left; }

.log { max-width: 76rem; margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.js .log { display: none; }
.js .journey--log .log { display: block; }
.js .journey--log .journey__track { display: none; }
.log__title { text-align: center; color: var(--red); font-size: 1rem; margin-bottom: 2rem; }
.log__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.6rem; }
.log .stop { display: flex; flex-direction: column; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding-bottom: 1.3rem; content-visibility: auto; contain-intrinsic-size: auto 34rem; }
.log .stop > * { margin-left: 1.2rem; margin-right: 1.2rem; }
.log .stop__media { order: -1; margin: 0 0 1rem; }
.log .stop__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--ink); }

/* ------------------------------------------------------------------ film */
.film { color: var(--paper); padding: clamp(6rem, 22vh, 14rem) var(--gutter) clamp(4rem, 9vw, 8rem); text-align: center; }
.film__head { max-width: 44rem; margin: 0 auto; }
.film__sub { margin-top: 1.1rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.screen { max-width: 68rem; margin: clamp(2rem, 5vw, 4rem) auto 0; position: relative; }
.screen__sheet {
  position: relative; aspect-ratio: 16 / 9; background: #0b0f1a; overflow: hidden; border-radius: 26px;
  border: 2px solid rgba(251, 244, 223, .55); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: box-shadow 1.2s var(--ease);
}
.screen__picture, .screen__picture picture, .screen__picture img { width: 100%; height: 100%; object-fit: cover; }
.screen__picture { filter: brightness(.42) saturate(.6); transition: filter 1.4s var(--ease); }
.screen__player { position: absolute; inset: 0; }
.screen__player[hidden] { display: none; }
.screen__player iframe, .screen__player video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.film--open .screen__sheet { box-shadow: 0 0 140px rgba(255, 232, 180, .34), 0 30px 80px rgba(0, 0, 0, .5); }
.film--open .screen__picture { filter: none; }

.lock { width: min(100%, 17.5rem); margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; display: grid; justify-items: center; color: var(--ink); }
.lock__shackle { width: 62%; margin-bottom: -1.5rem; overflow: visible; transform-origin: 20% 100%; transition: transform .8s var(--ease); }
.lock__shackle path { fill: none; stroke-linecap: butt; }
.lock__shackle-edge { stroke: var(--ink); stroke-width: 40; }
.lock__shackle-metal { stroke: #AEB6BD; stroke-width: 32; }
.lock__shackle-shine { stroke: #E9EEF2; stroke-width: 6; stroke-linecap: round; }
.lock__case {
  position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; gap: .75rem; padding: 1.5rem 1.4rem 1.3rem; text-align: center;
  background: linear-gradient(#E9BC4E, #D2A034 55%, #BF8D28); border: 3px solid var(--ink); border-radius: 1.4rem 1.4rem 2.2rem 2.2rem;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .38), inset 0 -10px 0 rgba(0, 0, 0, .13), 5px 7px 0 #0A0F1A;
}
.lock__case::before, .lock__case::after { content: ""; position: absolute; top: .7rem; width: .55rem; height: .55rem; border-radius: 50%; background: #8C6A1C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 rgba(0, 0, 0, .35); }
.lock__case::before { left: .8rem; }
.lock__case::after { right: .8rem; }
.lock__label { font-family: var(--font-stamp); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.lock__input {
  width: 100%; max-width: 12rem; font-family: var(--font-stamp); font-size: 2rem; line-height: 1; text-transform: uppercase; text-align: center;
  letter-spacing: .5em; padding: .42em 0 .34em .5em; color: var(--paper-2); caret-color: var(--mustard); border: 3px solid var(--ink); border-radius: 14px;
  background: #1E1B16 repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .2) calc(25% - 1px) 25%);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, .6);
}
.lock__input::placeholder { color: rgba(251, 244, 223, .3); }
.lock__go { justify-content: center; min-width: 9rem; }
.lock__hint { font-size: .86rem; }
.lock__msg { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.1; }
.lock__msg:empty { display: none; }
.lock--wrong { animation: shake .45s; }
.lock--open .lock__shackle { transform: translateY(-1.3rem) rotate(-26deg); }
.lock--open .lock__input, .lock--open .lock__go, .lock--open .lock__hint, .lock--open .lock__label { display: none; }
@keyframes shake { 20% { translate: -9px 0; } 40% { translate: 8px 0; } 60% { translate: -6px 0; } 80% { translate: 4px 0; } }

/* ------------------------------------------------------------------ more */
.more { color: var(--paper); padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(2rem, 5vw, 4rem); max-width: 80rem; margin: 0 auto; }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.feature__poster, .extra__poster { position: relative; display: block; width: 100%; border-radius: 30px; overflow: hidden; border: 2px solid rgba(251, 244, 223, .85); rotate: -1.2deg; transition: rotate .4s var(--ease), scale .4s var(--ease); }
.feature__poster:hover, .extra__poster:hover { rotate: 0deg; scale: 1.015; }
.feature__poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1; font-weight: 640; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: 1rem; }
.feature__text p { margin-bottom: 1.4rem; color: color-mix(in srgb, var(--paper) 86%, transparent); }
.shelf { max-width: 44rem; margin: clamp(3rem, 8vw, 7rem) auto 0; text-align: center; }
.shelf__quote p { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); line-height: 1.25; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; }
.shelf__quote p::before { content: "“"; display: block; font-size: 3em; line-height: .6; color: var(--mustard); font-style: normal; }
.shelf__quote footer { margin-top: 1rem; font-size: .86rem; opacity: .75; }

.makers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: clamp(4rem, 10vw, 8rem); }
.makers__lead { grid-column: 1 / -1; text-align: center; color: var(--mustard); }
.maker { display: grid; grid-template-columns: 5rem 1fr; gap: 1.2rem; align-items: start; padding: 1.5rem; border-radius: 30px; background: rgba(251, 244, 223, .07); border: 2px solid rgba(251, 244, 223, .3); }
.maker__logo img { width: 5rem; height: 5rem; border-radius: 22%; }
.maker__name { font-size: 1.6rem; line-height: 1; font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: .5rem; }
.maker__name a { text-decoration: none; }
.maker__name a:hover { text-decoration: underline; }
.maker p { font-size: .95rem; color: color-mix(in srgb, var(--paper) 84%, transparent); }
.maker__links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .9rem; font-size: .9rem; }
.maker__links a { color: var(--mustard); }

/* ------------------------------------------------------------------ finish */
.finish { position: relative; color: var(--paper); text-align: center; margin-top: clamp(2rem, 6vw, 5rem); }
.finish__horizon { -webkit-mask-image: linear-gradient(transparent, #000 38%); mask-image: linear-gradient(transparent, #000 38%); }
.finish__horizon img { width: 100%; height: clamp(34rem, 62vw, 110vh); object-fit: cover; object-position: center 62%; }
.finish__inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem var(--gutter) max(1.6rem, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(12, 9, 5, .72) 45%); }
.finish__flag { display: inline-block; font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); letter-spacing: .1em; color: var(--ink); background: var(--mustard); border: 3px solid var(--ink); padding: .3em .8em .22em; border-radius: 12px; rotate: -3deg; box-shadow: var(--shadow); }
.finish__line { max-width: 32rem; margin: 1.2rem auto 0; font-size: 1.1em; text-wrap: balance; }
.finish__nav { margin-top: 1.1rem; display: flex; gap: 1.3rem; justify-content: center; flex-wrap: wrap; font-family: var(--font-stamp); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; }
.finish__small { max-width: 44rem; margin: 1.4rem auto 0; font-size: .72rem; line-height: 1.45; opacity: .78; }

/* ------------------------------------------------------------------ theatre */
.theatre { width: min(74rem, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: none; color: var(--paper); overflow: visible; }
.theatre::backdrop { background: rgba(14, 11, 7, .9); backdrop-filter: blur(8px); }
.theatre__frame { aspect-ratio: 16 / 9; max-height: 78svh; margin: 0 auto; background: #000; border-radius: 22px; overflow: hidden; border: 2px solid rgba(251, 244, 223, .7); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.theatre__frame iframe, .theatre__frame video { width: 100%; height: 100%; border: 0; display: block; }
.theatre__soon { height: 100%; display: grid; place-content: center; gap: .6rem; text-align: center; padding: 2rem; background: var(--ink) center / cover no-repeat; }
.theatre__soon p { font-size: 1.3rem; text-wrap: balance; text-shadow: 0 2px 16px #000; }
.theatre__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; }
.theatre__title { font-weight: 640; font-size: 1.05rem; }

/* ------------------------------------------------------------------ reveal on scroll */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 52rem) {
  .makers { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 1fr; gap: .8rem; }
  .maker__logo img { width: 3.6rem; height: 3.6rem; }
  .chapter { grid-template-columns: 1fr; }
  .chapter--flip > .chapter__text { order: 0; }
  .vignette { width: min(78%, 21rem); }
  .vignette::before { display: none; }
  .feature { grid-template-columns: 1fr; }
  .reel__list { justify-content: start; }
  .hero__title { font-size: clamp(4rem, 23vw, 9rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
