/* ==========================================================================
   ON LOCATION — the route
   The navigation arrow left by the globe travels a thin route drawn by scroll
   (js/journey.js), past projects filmed on location, onto a map of Asia.

   Depth: the route and arrow sit between two layers. Anything with .j-above
   (films, some stills, the Forest City opening image, the cities stage) passes
   over the route, so the line disappears behind it and comes out the other side.
   ========================================================================== */

.journey {
  position: relative;
  z-index: 1;
  /* Starts half a screen early, over the end of the globe stage, so the route's first point
     reaches the middle of the screen exactly as the globe stage lets go. */
  margin-top: -50vh;
  margin-top: -50svh;
}

/* ---------- Route + arrow ---------- */

.journey__route {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.journey__route path {
  fill: none;
  stroke: rgba(235, 233, 228, 0.7);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.route-arrow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.route-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.route-arrow__halo  { fill: none; stroke: rgba(235, 233, 228, 0.18); stroke-width: 1; }
.route-arrow__shape { fill: var(--fg); stroke: rgba(18, 19, 21, 0.55); stroke-width: 1; }

.j-above { position: relative; z-index: 3; }

/* Waypoints the route is threaded through (invisible) */
.wp {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Scroll-linked reveal: --r goes 0 → 1 as an element rises into view (set by js/journey.js) */
.js [data-j-reveal] {
  --r: 0;
  opacity: var(--r);
  transform: translateY(calc((1 - var(--r)) * 36px));
}

/* ---------- Start ---------- */

.journey__start {
  position: relative;
  height: calc(50vh + 26vh);
  height: calc(50svh + 26svh);
}

.journey__label {
  position: absolute;
  left: var(--gutter);
  top: calc(50svh + 14svh);
  z-index: 3;
}

/* ---------- Destinations (shared) ---------- */

.dest {
  position: relative;
  padding-block: clamp(56px, 7vw, 120px);
}

.dest__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
}

.dest__heading { position: relative; z-index: 3; }

.dest__title {
  margin-top: 20px;
  font-size: clamp(2.8rem, 7vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--fg);
}

.dest__title--thin {
  font-weight: 200;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* The project's identity: what it is (the label), where and when (the name and its year),
   and its title — the work first, the place with it */
.label--work { color: var(--fg); }

.dest__year,
.stage__title-year {
  font-weight: 200;
  color: var(--fg-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dest__year { display: block; }
/* (a place's context, between its name and year: small, documentary) */
.dest__context {
  display: block;
  margin: 0.9em 0 0.35em;
  font-size: clamp(0.6875rem, 0.8vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.stage__title-year { margin-left: 0.1em; }

.dest__work {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--fg);
}

.dest__sub {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg);
}

.dest__coords {
  margin-top: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.dest__coords span { margin-inline: 0.5em; }

.dest__text {
  position: relative;
  z-index: 3;
}

.dest__text p { font-size: 0.9375rem; font-weight: 300; max-width: 38ch; }

.dest__meta {
  margin-top: 14px;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.dest__meta span { margin-inline: 0.6em; }

/* Stills and film frames */
.still,
.dest__film {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-frame);
}

.still img,
.dest__film img,
.dest__film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest__film { aspect-ratio: 16 / 9; cursor: default; }
.dest__film.has-video { cursor: pointer; }

.dest__film::after {
  content: "";
  position: absolute;
  inset: 50% 0 0 0;
  background: linear-gradient(to top, rgba(18, 19, 21, 0.6), transparent);
  pointer-events: none;
}

.dest__film .film__play { left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); }
.dest__film:not(.has-video) .film__play { display: none; }

.dest__soon {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(235, 233, 228, 0.55);
}

.dest__film.has-video .dest__soon { display: none; }
.dest__film.is-missing::before { top: clamp(14px, 1.8vw, 24px); bottom: auto; }

@media (hover: hover) {
  .dest__film.has-video:hover img { transform: scale(1.025); }
  .dest__film.has-video:hover .film__play-icon { background: var(--fg); border-color: var(--fg); }
  .dest__film.has-video:hover .film__play-icon::after { border-left-color: var(--bg); }
}

.dest__film img { transition: transform 1.2s var(--ease-out); }

/* ---------- Maps ---------- */

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

.map__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map__land   { fill: #2c2e31; }
.map__coast  { fill: none; stroke: rgba(235, 233, 228, 0.55); stroke-width: 1; stroke-dasharray: 1 1; }
.map__zone   { fill: rgba(235, 233, 228, 0.82); }
.map__region { fill: var(--fg); }
.map__region-edge { fill: none; stroke: rgba(235, 233, 228, 0.9); stroke-width: 0.8; }
.map__dot    { fill: var(--fg); }

.map__label {
  position: absolute;
  z-index: 3;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  opacity: 0;
}

/* ---------- Stills grid (Transnistria) ---------- */

.dest__stills {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: start;
}

/* ---------- 02 · Transnistria ---------- */

.map--moldova {
  grid-column: 1 / span 6;
  aspect-ratio: 0.82 / 1;
  max-height: 88vh;
  justify-self: start;
  width: 100%;
}

/* (Transnistria: a restrained red against the off-white of Moldova's outline) */
.map--moldova .map__region { fill: rgba(158, 44, 30, 0.78); }
.map--moldova .map__region-edge { stroke: rgba(222, 110, 88, 0.9); }
.map--moldova .map__label--region { left: 84%; top: 30%; color: var(--fg); }
.map--moldova .map__label--place  { left: 20%; top: 48%; color: var(--fg-dim); }

.dest__heading--right { grid-column: 8 / -1; }

.dest__stills--transnistria { margin-top: clamp(96px, 11vw, 180px); row-gap: clamp(48px, 6vw, 96px); }
.dest__stills--transnistria .dest__film       { grid-column: 1 / span 8; grid-row: 1; }
.dest__stills--transnistria .still--portrait  { grid-column: 10 / -1; grid-row: 1; aspect-ratio: 3 / 4; margin-top: clamp(80px, 12vw, 200px); }
.dest__stills--transnistria .still--wide      { grid-column: 3 / span 7; grid-row: 2; aspect-ratio: 3 / 2; }
.dest__stills--transnistria .dest__text       { grid-column: 10 / -1; grid-row: 2; align-self: end; }

/* ---------- Pinned map stages: 01 Cyprus, 03 Forest City → 04 Asia ---------- */

/* One pinned stage each (js/journey-stage.js). The route comes straight down to a stage's top
   edge, where the stage carries the same line on; after Cyprus the page's route carries on from
   the bottom edge. Scroll length (--run) in viewport heights. */
.stage {
  --run: 600;
  position: relative;
  z-index: 4;
  height: calc((100 + var(--run)) * 1vh);
  height: calc((100 + var(--run)) * 1svh);
  background: var(--bg);
}

.stage--cyprus { --run: 500; margin-top: 24vh; margin-top: 24svh; }
.stage--asia { --run: 1100.4; margin-top: 40vh; margin-top: 40svh; }   /* (on past Chongqing into the world: css/world.css; 1083 before Seoul's third photograph, grown in proportion so every other moment keeps its place) */
.stage--kyiv { --run: 420; z-index: 2; }

/* (where "Work" in the menu lands on the documentary's stage: just after the film has come in
   beside the map — a quarter of the way through; the stage's steps: KYIV_STEPS in js/journey-stage.js) */
.stage__anchor {
  position: absolute;
  top: calc(var(--run) * 0.25 * 1vh);
  top: calc(var(--run) * 0.25 * 1svh);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.stage__screen {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* One canvas for the whole map: the region, the streets and buildings, the route */
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* The chapter's title (while the map is on its place) */
.stage__title {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + 18px);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.stage__title-name {
  margin-top: 14px;
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--fg);
}

.stage__title-sub {
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stage__title .dest__coords { margin-top: 12px; }

/* (a project's name — place and year — a size up from a plain map title) */
.stage__title--project .stage__title-name { font-size: clamp(2.6rem, 5vw, 5.4rem); }

.stage__title-work {
  max-width: none;
  margin-top: 12px;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--fg);
}

/* The work, on the left: each piece takes the frame as the arrow reaches its place */
.stage-work {
  --work-top: calc(var(--header-h) + 18px + clamp(150px, 14vw, 210px));
  position: absolute;
  left: var(--gutter);
  top: var(--work-top);
  z-index: 3;
  width: min(33vw, 528px);                        /* (the work a size up: the map and the arrow stay clear) */
  list-style: none;
  pointer-events: none;
}

.stage--cyprus .stage-work { --work-top: calc(var(--header-h) + 18px + clamp(190px, 16.5vw, 250px)); }

/* Forest City's photographs: a little larger than the other chapters' (the map beside them
   makes room: js/journey-stage.js → fcRect) */
.stage--asia .stage-work { width: min(37vw, 595px); }

.stage-work__item {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  will-change: opacity, transform;
}

.stage-work__item.is-active { pointer-events: auto; }

.stage-work__frame {
  --ar: 3 / 2;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  max-height: calc(100svh - var(--work-top) - 96px);
  margin: 0;
  overflow: hidden;
  background: var(--bg-frame);
}

.stage-work__frame img,
.stage-work__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.stage-work__frame--tall { --ar: 4 / 5; width: min(100%, calc((100svh - var(--work-top) - 96px) * 0.8)); }
.stage-work__frame--film { --ar: 16 / 9; }
.stage-work__frame--pano { --ar: 2.4 / 1; }

.stage-work__caption {
  margin-top: 14px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stage-work__num { margin-right: 1.2em; color: var(--fg); }

.stage-work__text { margin-top: 16px; max-width: 34ch; font-size: 0.9375rem; font-weight: 300; color: var(--fg-muted); }

/* A piece's context (Nicosia): a line or two under its caption — secondary to the photograph */
.stage-work__context { margin-top: 12px; max-width: 44ch; }
.stage-work__context p { max-width: none; }
.stage-work__context-lede { font-size: 0.9375rem; font-weight: 400; color: var(--fg); }
.stage-work__context-lede + p { margin-top: 6px; font-size: 0.8125rem; font-weight: 300; line-height: 1.55; color: var(--fg-muted); }
.stage-work__item--context .stage-work__frame { max-height: calc(100svh - var(--work-top) - 210px); }

/* ---------- The work, integrated ----------
   Every photograph and film in the journey's frames settles into the dark page: a light fade at its
   foot (an overlay — the files themselves are untouched) and, on its own frame, a soft depth. The
   opening films and the chapter card keep their own treatment. */
.stage-work__frame::after,
.cities__panel::after,
.cities__detail::after,
.cities__aside::after,
.still::after,
.dest__film--video::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to top, rgba(28, 29, 31, 0.4), rgba(28, 29, 31, 0.12) 48%, rgba(28, 29, 31, 0));
  pointer-events: none;
}
.stage-work__frame,
.still,
.dest__film--video { box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.75); }
/* (the drone film has a caption under it: the fade is on the picture itself) */
.cities__video video {
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.62), #000 32%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.62), #000 32%);
}
.stage-work__text .dest__meta { margin-top: 10px; }

/* A place's chapter card (Famagusta): a large photograph with its name, the map and the arrow
   still beside it; it recedes as the view dives into the place */
.stage-hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.stage-hero__frame {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + 24px);
  bottom: 48px;
  width: calc(58vw - var(--gutter) - 24px);
  margin: 0;
  overflow: hidden;
  background: var(--bg-frame);
  transform-origin: 40% 70%;
  will-change: transform;
}

.stage-hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* (the name stays legible over any photograph) */
.stage-hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 19, 21, 0) 42%, rgba(18, 19, 21, 0.72) 100%);
}

.stage-hero__text {
  position: absolute;
  left: calc(var(--gutter) + clamp(24px, 3vw, 48px));
  bottom: calc(48px + clamp(24px, 3vw, 44px));
  will-change: transform;
}

.stage-hero__name {
  margin-top: 12px;
  font-size: clamp(4rem, 9vw, 10.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--fg);
}

.stage-hero__text .dest__coords { margin-top: 14px; }

.stage__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  z-index: 3;
  max-width: none;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  opacity: 0;
}

.stage__credit a { text-decoration: underline; text-underline-offset: 2px; }
.stage__credit:not(.is-lit) { pointer-events: none; }   /* (only tappable while it's shown) */

.route-arrow--stage { z-index: 4; }

/* ---------- 04 · Asia: the cities' photographs and names ---------- */

.cities__head {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + 18px);
  z-index: 3;
  opacity: 0;
}

.cities__asia-static { display: none; }

/* Main images: one frame, cities replace each other in it */
.cities__panels {
  position: absolute;
  left: var(--gutter);
  top: 31%;
  width: min(48vw, calc(54svh * 1.5));
  aspect-ratio: 3 / 2;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.cities__panel {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.cities__panel img,
.cities__panel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cities__caption { display: none; }

/* Detail images: a smaller frame overlapping the main one */
.cities__details {
  position: absolute;
  left: calc(var(--gutter) + min(48vw, calc(54svh * 1.5)) * 0.78);
  top: 58%;
  width: min(14vw, 24svh);
  aspect-ratio: 4 / 5;
  z-index: 3;
}

.cities__detail {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-frame);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  will-change: opacity, transform;
}

.cities__detail img { width: 100%; height: 100%; object-fit: cover; }

/* A smaller photograph that supports its city's: out on the map beside it — deliberately secondary (Seoul's third;
   placed at its point of the map by js/journey-stage.js: STOPS[].aside) */
.cities__asides { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cities__aside {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: min(15vw, 30svh);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  overflow: hidden;
  background: var(--bg-frame);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  will-change: opacity, transform;
}
.cities__aside img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The one 9:16 photograph (Tokyo, tokyo-03), in a tall frame of its own (every other photograph
   is in the shared 3:2 frame above): under the name, with the map of Asia in view on the right. */
.cities__portrait {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cities__panel--portrait {
  inset: auto;
  left: var(--gutter);
  top: 31%;
  height: 61svh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg-frame);
}

/* A film in the photographs' place (the drone film over Laem Phrom Thep): the shared frame's
   position and width, at the film's own 16:9 */
.cities__video {
  position: absolute;
  left: var(--gutter);
  top: 31%;
  width: min(48vw, calc(54svh * 1.5));
  margin: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.cities__video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-frame); }
.cities__video-caption {
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* A film that opens a chapter (Cyprus's, Forest City's): it fills the screen, then gives way from
   the bottom (--fade 0 → 1, set by js/journey-stage.js) so the map comes through beneath it, still
   playing. Arriving on it is a chapter stop: the scroll that got there settles on the film and its
   title (js/journey.js), pausing the page's scrolling for that moment: */
html.is-held { overflow: hidden; }

.stage-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 30%;
  will-change: opacity, transform;
  --fade: 0;
  /* (whole at --fade 0; its lower part gone at 1, with a soft edge) */
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--fade) * 62%), #000 calc(var(--fade) * 96%));
  mask-image: linear-gradient(to top, transparent calc(var(--fade) * 62%), #000 calc(var(--fade) * 96%));
}
.stage-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg-frame); }
.stage-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 19, 21, 0.55) 0%, rgba(18, 19, 21, 0) 34%, rgba(18, 19, 21, 0) 70%, rgba(18, 19, 21, 0.45) 100%);
}
.stage-video.is-active { pointer-events: auto; }
.stage-video__caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 5svh, 56px);
  z-index: 1;
  max-width: 44ch;
}
.stage-video__text { font-size: 0.9375rem; font-weight: 300; color: var(--fg-muted); }
/* (Cyprus: its sentence in off-white, held off the moving picture by a soft shadow) */
[data-stage-video="cyprus"] .stage-video__text { color: var(--fg); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.45); }
.stage-video__text .dest__meta { display: block; margin-top: 8px; }
/* (the film's play control, as on the documentary's player) */
.stage-video__watch { display: inline-flex; align-items: center; gap: 18px; color: var(--fg); }
.stage-video__watch .film__play-icon { width: clamp(52px, 4.4vw, 70px); }
.stage-video__watch .film__play-sub span { margin-inline: 0.5em; }
.stage-video__text { margin-top: 16px; }
.stage-video__text:first-child { margin-top: 0; }
@media (hover: hover) {
  .stage-video__watch:hover .film__play-icon { background: var(--fg); border-color: var(--fg); }
  .stage-video__watch:hover .film__play-icon::after { border-left-color: var(--bg); }
}

/* The documentary's stage (the film and its credits beside the map: css/documentary.css).
   The opening's title — Ukraine — makes way for the film as the screen recomposes. */
.stage__title--kyiv { opacity: 1; }
.kyiv-caption {
  margin-top: 14px;
  white-space: nowrap;
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--fg);
}
.stage__title--kyiv .dest__coords { margin-top: 16px; }

/* Beside the map, one at a time: Kyiv, then the monument (the map's context, kept quiet) */
.kyiv-place {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 18px);
  z-index: 3;
  pointer-events: none;
}
.kyiv-place__line {
  position: absolute;
  right: 0;
  top: 0;
  max-width: none;
  white-space: nowrap;
  text-align: right;
  font-size: clamp(1.3rem, 1.9vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  opacity: 0;
  will-change: opacity, transform;
}
.kyiv-place__sub {
  display: block;
  margin-top: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* City names */
.cities__names {
  position: absolute;
  left: var(--gutter);
  top: calc(31% - clamp(96px, 9vw, 150px));
  z-index: 3;
  list-style: none;
  height: clamp(86px, 8vw, 136px);
  pointer-events: none;
}

.cities__names li {
  position: absolute;
  left: 0;
  bottom: 0;
  white-space: nowrap;
  opacity: 0;
  will-change: opacity, transform;
}

.cities__name {
  display: block;
  font-size: clamp(2.4rem, 5.6vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--fg);
}

.cities__coords {
  display: block;
  margin-top: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
}

/* ==========================================================================
   Phones (and tall portrait screens)
   ========================================================================== */

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .route-arrow { width: 40px; height: 40px; margin: -20px 0 0 -20px; }

  .journey__label { top: calc(50svh + 10svh); }

  .dest__intro,
  .dest__stills { display: block; }

  .dest__title { font-size: clamp(2.6rem, 13vw, 4.6rem); }
  .dest__context { font-size: 0.625rem; letter-spacing: 0.16em; max-width: calc(100% - 44px); }   /* (clear of the route's lane) */

  .map { width: 100%; margin-top: 56px; }
  .map--moldova { width: 86%; max-height: none; }

  .dest__heading--right { margin-top: 48px; }

  .dest__stills--transnistria { margin-top: 96px; }

  .still, .dest__film, .dest__text { margin-top: 56px; }
  .dest__film { width: 90%; }                 /* leaves a lane on the right for the route */
  .dest__stills > :first-child { margin-top: 0; }

  /* Keep the right-hand gutter clear for the route */
  .dest__stills--transnistria .still--portrait { width: 78%; }
  .dest__stills--transnistria .still--wide { width: 92%; }
  .dest__stills--transnistria .still--portrait { margin-top: 56px; }

  /* ---------- Stages on phones: the map and the photographs share the screen ----------
     The map holds the top of the screen and the photographs sit below it. How much each takes
     follows the story as you scroll (js/journey-stage.js sets --photo-top / --photo-bottom on the
     screen): the map grows for Famagusta, Nicosia, Forest City and Taipei, the photographs for
     each stop. Nothing switches at a breakpoint mid-way; it all moves with the scroll. */
  .stage--cyprus { --run: 460; margin-top: 21svh; }
  .stage--asia { --run: 1034.3; }   /* (1018, grown in proportion for Seoul's third photograph) */
  .stage--kyiv { --run: 390; }

  .cities__head,
  .stage__title { top: calc(var(--header-h) + 12px); }

  .stage__title-name { font-size: clamp(2.2rem, 11vw, 3.4rem); margin-top: 10px; }
  .stage__title-sub { margin-top: 8px; }

  .stage-work,
  .stage--cyprus .stage-work,
  .stage--asia .stage-work {
    --work-top: var(--photo-top, 58svh);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }

  /* (Cyprus's title in one line, so the map above the photographs stays readable) */
  .stage--cyprus .stage__title-name { font-size: clamp(1.7rem, 8.2vw, 2.6rem); }
  .stage--cyprus .stage__title-sub,
  .stage--cyprus .stage__title .dest__coords { display: none; }
  .stage__title-work { margin-top: 6px; font-size: 1rem; }
  .stage--asia .stage__title-name { font-size: clamp(1.9rem, 9.4vw, 3rem); }
  .stage--asia .stage__title .dest__coords { display: none; }

  /* (as tall as the room below the map allows, less the caption) */
  .stage-work__frame,
  .stage-work__frame--tall {
    width: 100%;
    height: calc(var(--photo-bottom, 92svh) - var(--work-top) - 36px);
    max-height: calc((100vw - 2 * var(--gutter)) * 0.8);
    aspect-ratio: auto;
  }
  .stage-work__frame--film { height: calc(var(--photo-bottom, 92svh) - var(--work-top) - 118px); }
  .stage-work__caption { margin-top: 12px; }
  .stage-work__text { margin-top: 10px; font-size: 0.875rem; }
  /* (a piece with context: its frame gives up the room the words need) */
  .stage-work__item--context .stage-work__frame { height: calc(var(--photo-bottom, 92svh) - var(--work-top) - 36px - 92px); }
  .stage-work__context { margin-top: 8px; }
  .stage-work__context-lede { font-size: 0.8125rem; }
  .stage-work__context-lede + p { margin-top: 3px; font-size: 0.6875rem; line-height: 1.45; }

  /* A city's photograph: the full width, at most a gentle 5:4 crop of a 3:2 frame */
  .cities__panels {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: var(--photo-top, 45%);
    height: min(calc(var(--photo-bottom, 86svh) - var(--photo-top, 45svh)), calc((100vw - 2 * var(--gutter)) / 1.25));
    aspect-ratio: auto;
  }

  .cities__details { display: none; }
  .cities__aside { width: 44vw; }

  /* The chapter card takes the photographs' part of the screen (most of it, for a moment); the
     map, with the arrow nearing the place, stays above it */
  .stage-hero__frame {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: var(--photo-top, 36svh);
    bottom: auto;
    height: calc(var(--photo-bottom, 92svh) - var(--photo-top, 36svh));
  }
  .stage-hero__text {
    left: calc(var(--gutter) + 18px);
    bottom: calc(100% - var(--photo-bottom, 92svh) + 18px);
  }
  .stage-hero__name { font-size: clamp(3.2rem, 17vw, 5.4rem); margin-top: 8px; }

  /* The 9:16 photograph takes the height the moment gives it, centred */
  .cities__panel--portrait {
    top: var(--photo-top, 30svh);
    height: calc(var(--photo-bottom, 86svh) - var(--photo-top, 30svh));
    left: calc(50vw - (var(--photo-bottom, 86svh) - var(--photo-top, 30svh)) * 9 / 32);
  }

  /* The drone film: the width of the screen, below the map, as tall as the moment allows */
  .cities__video {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: var(--photo-top, 45%);
  }
  .cities__video video {
    aspect-ratio: auto;
    height: min(calc(var(--photo-bottom, 86svh) - var(--photo-top, 45svh) - 30px), calc((100vw - 2 * var(--gutter)) * 0.72));
  }

  /* Forest City's film: the whole screen on a phone too; its words tighter */
  .stage-video__caption { right: var(--gutter); bottom: max(24px, 4svh); }
  .stage-video__text { font-size: 0.875rem; margin-top: 12px; }
  .stage-video__watch { gap: 14px; }

  .kyiv-caption { font-size: clamp(2.2rem, 11vw, 3.4rem); margin-top: 10px; }
  .stage__title--kyiv .dest__coords { margin-top: 12px; }
  /* (on phones the map is below the film: its caption sits at the foot of the screen) */
  .kyiv-place { left: var(--gutter); right: auto; top: auto; bottom: 40px; }
  .kyiv-place__line { left: 0; right: auto; top: auto; bottom: 0; text-align: left; font-size: 1.25rem; }
  .kyiv-place__sub { margin-top: 8px; font-size: 0.625rem; }

  .cities__names {
    top: auto;
    bottom: max(28px, 5svh);
    height: 92px;
  }

  .cities__name { font-size: clamp(2.2rem, 11vw, 3.6rem); }
}

/* ==========================================================================
   Static version: reduced motion or no JS — complete route, everything shown
   ========================================================================== */

.journey.is-static,
html:not(.js) .journey { margin-top: 0; }

.journey.is-static .route-arrow,
html:not(.js) .route-arrow { display: none; }

.journey.is-static [data-j-reveal] { --r: 1; }
.journey.is-static .map__label,
html:not(.js) .map__label { opacity: 1; }

.stage.is-static,
html:not(.js) .stage { height: auto; margin-top: 0; }

.stage.is-static .stage__screen,
html:not(.js) .stage__screen {
  position: relative;
  height: auto;
  overflow: visible;
  display: grid;
  gap: 32px;
  padding: var(--section-y) var(--gutter);
}

.stage.is-static .cities__head,
.stage.is-static .cities__names,
.stage.is-static .cities__details,
.stage.is-static [data-stage-arrow],
html:not(.js) .cities__head,
html:not(.js) .cities__names,
html:not(.js) .cities__details,
html:not(.js) .stage__canvas,
html:not(.js) [data-stage-arrow] { display: none; }

/* Reduced motion: the map (Cyprus with the zone; the Forest City model), the work, then (Asia)
   the map of Asia and the city images */
.stage.is-static .stage__canvas { position: relative; height: 78vh; order: -3; }
.stage.is-static .stage__title { position: absolute; opacity: 1; }
.stage.is-static .stage__credit { position: absolute; top: calc(78vh + var(--section-y) - 28px); bottom: auto; opacity: 1; pointer-events: auto; }
.stage.is-static .cities__asia-static { display: block; width: 100%; height: 64vh; order: -1; }

.stage.is-static .stage-work,
html:not(.js) .stage-work {
  position: static;
  order: -2;
  width: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--grid-gap);
  margin-bottom: 48px;
  pointer-events: auto;
}

.stage.is-static .stage-work__item,
html:not(.js) .stage-work__item { position: relative; opacity: 1; transform: none; }

.stage.is-static .stage-work__frame,
html:not(.js) .stage-work__frame { width: 100%; height: auto; max-height: none; aspect-ratio: var(--ar); }

html:not(.js) .stage__title { position: static; opacity: 1; order: -3; }

/* The static maps dissolve into the page at their edges, like the pinned one does at the screen's */
.stage.is-static .stage__canvas,
.stage.is-static .cities__asia-static {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}

/* The chapter card: a large photograph with its name, at the head of the work */
.stage.is-static .stage-hero,
html:not(.js) .stage-hero { position: relative; inset: auto; order: -2; opacity: 1; margin-bottom: 8px; }
.stage.is-static .stage-hero__frame,
html:not(.js) .stage-hero__frame { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.stage.is-static .stage-hero__text,
html:not(.js) .stage-hero__text { left: clamp(20px, 3vw, 48px); bottom: clamp(20px, 3vw, 44px); }

.stage.is-static .cities__panels,
html:not(.js) .cities__panels,
.stage.is-static .cities__portrait,
html:not(.js) .cities__portrait,
.stage.is-static .cities__asides,
html:not(.js) .cities__asides {
  position: static;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  background: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: var(--grid-gap);
}

.stage.is-static .cities__panel,
html:not(.js) .cities__panel { position: relative; opacity: 1; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-frame); }
.stage.is-static .cities__aside,
html:not(.js) .cities__aside { position: relative; width: auto; max-width: 420px; translate: none; transform: none !important; opacity: 1 !important; aspect-ratio: 3 / 2; }

.stage.is-static .cities__panel--portrait,
html:not(.js) .cities__panel--portrait { aspect-ratio: 9 / 16; height: auto; max-width: 420px; }

/* The films, as plain frames with their posters / controls-free loops */
.stage.is-static .stage-video,
html:not(.js) .stage-video { position: relative; inset: auto; order: -4; opacity: 1; aspect-ratio: 16 / 9; -webkit-mask-image: none; mask-image: none; pointer-events: auto; }
.stage.is-static .cities__video,
html:not(.js) .cities__video { position: relative; inset: auto; width: 100%; max-width: 720px; opacity: 1; }
.stage--kyiv.is-static .stage__screen { min-height: 70vh; }
/* The documentary: the film and its credits first, then its place (the monument's hill in 2.5D) */
.stage--kyiv.is-static .doc,
html:not(.js) .stage--kyiv .doc { position: relative; inset: auto; order: -4; width: 100%; max-width: 880px; display: block; }
.stage--kyiv.is-static .doc > [data-doc-part],
html:not(.js) .stage--kyiv .doc > [data-doc-part] { opacity: 1; transform: none; }
.stage--kyiv.is-static .doc__player,
html:not(.js) .stage--kyiv .doc__player { pointer-events: auto; }
.stage--kyiv.is-static .stage__title--kyiv,
html:not(.js) .stage--kyiv .stage__title--kyiv { display: none; }
.stage--kyiv.is-static .kyiv-place,
html:not(.js) .stage--kyiv .kyiv-place { position: static; order: -2; }
.stage--kyiv.is-static .kyiv-place__line[data-kyiv-caption="monument"],
html:not(.js) .stage--kyiv .kyiv-place__line[data-kyiv-caption="monument"] { position: static; opacity: 1; text-align: left; }
.stage--kyiv.is-static .stage__anchor,
html:not(.js) .stage--kyiv .stage__anchor { top: 0; }

.stage.is-static .cities__caption,
html:not(.js) .cities__caption {
  display: block;
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
}
