/*
 * The expedition plate, ported from V1.
 *
 * THE SCENE PALETTE IS V1'S, VERBATIM. It was briefly re-voiced warm to sit
 * inside this site's brown-black, and that was wrong: it turned a moonlit
 * alpine night into an orange one and lost the thing the plate is actually
 * for. The greens and blues are the illustration, not a theme accent, so they
 * are copied across unchanged from anuragbains.com.
 *
 * Light is V1's daylight scene (blue sky, warm sun, alpine green), dark is
 * V1's moonlit night (navy sky, pale cool moon, deep green). Only the four
 * TYPOGRAPHIC tokens at the end map onto this site, so the labels stay in this
 * page's fonts and ink rather than V1's.
 *
 * Scoped to #journey so none of it leaks into the rest of the sheet.
 */

/* V1 :root[data-theme="dark"] — living-mountain scene, moonlit NIGHT */
#journey {
  --sky-1:#16233A; --sky-2:#101A2A; --sky-3:#080B12;
  --sun:#EAEFF7; --sun-glow:rgba(198,216,238,.30);   /* full moon: pale + cool halo */
  --cloud:#8392A2; --cloud-op:.12;
  --mtn-far:#18242F; --mtn-mid:#1C302B; --mtn-near:#234636; --snow:#AEC4D0;
  --river:#2A6890; --river-hi:#56A0C6;
  --tree:#1E3D2C; --tree-2:#15301E; --grass:#2A4830;
  --bird:#B4BCBE; --star:#EAF1FA;
  --contour:#2A2A2A;

  /* This site's type and ink, so the labels belong to this page. */
  --edit:    var(--signal);
  --ink:     var(--text);
  --ink-soft:var(--text-mid);
  --paper:   var(--ground);
  --panel:   var(--card);
  --hairline:var(--hair-2);
  --gray-4:  var(--text-low);
  --gray-5:  var(--text-low);
  --ff-display: var(--f-display);
  --ff-label:   var(--f-mono);
}

/* V1 :root[data-theme="light"] — living-mountain scene, vivid alpine day */
:root[data-theme="light"] #journey {
  --sky-1:#A6D1EC; --sky-2:#D4EBF7; --sky-3:#F6FBFD;
  --sun:#FFC53A; --sun-glow:rgba(255,189,66,.60);
  --cloud:#FFFFFF; --cloud-op:.94;
  --mtn-far:#A6C2D6; --mtn-mid:#86AEA4; --mtn-near:#5A8A6F; --snow:#FFFFFF;
  --river:#46A4D8; --river-hi:#C4E9F8;
  --tree:#3C7254; --tree-2:#2C5840; --grass:#7CAA5C;
  --bird:#363B3C;
  --contour:#DADADA;
}


.plate-headline {
  font-family: var(--ff-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--gray-5);
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.plate {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: clamp(16px, 2.4vw, 30px);
}
.plate__caption {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--gray-5);
  margin-bottom: 8px;
}
.plate__legend {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: var(--ff-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--gray-5);
  margin-bottom: 14px;
}
.plate__legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.lg svg { width: 26px; height: 10px; overflow: visible; color: var(--ink); }

/* canvas + dossier layout */
.plate__stage { position: relative; }
.plate__svg-wrap { position: relative; }
.expe-svg { width: 100%; height: auto; display: block; }

/* SVG element styling */
.contour-line { fill: none; stroke: var(--contour); stroke-width: .6; }
.tick { stroke: var(--gray-4); stroke-width: .6; }
.compass, .scalebar { stroke: var(--gray-4); stroke-width: .8; fill: none; }
.compass-fill { fill: var(--gray-5); }
.axis-label { font-family: var(--ff-label); font-weight: 600; font-size: 11px; letter-spacing: .14em; fill: var(--gray-4); text-transform: uppercase; }

.marker { cursor: pointer; }
.marker__ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.marker__code { font-family: var(--ff-label); font-weight: 700; font-size: 11px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; letter-spacing: .04em; }
.marker__leader { stroke: var(--gray-4); stroke-width: .7; }
.marker__tag { font-family: var(--ff-label); font-weight: 600; font-size: 11px; letter-spacing: .1em; fill: var(--gray-5); text-transform: uppercase; }
.marker.dim .marker__ring { stroke: var(--ink); }
.marker.dim .marker__code { fill: var(--ink-soft); }
.marker.active .marker__ring { stroke: var(--ink); stroke-width: 2.2; }
.marker.active .marker__code { fill: var(--ink); }
.marker.active .marker-grp { transform: scale(1.12); }
.marker:focus-visible { outline: none; }
/* A tap focuses the marker too, and Chrome then paints its orange ring round the
   whole group. Keyboard users keep the custom ring below via :focus-visible. */
.marker:focus { outline: none; }
.marker__focusring { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; }
.marker:focus-visible .marker__focusring { opacity: 1; stroke-dasharray: 3 3; }

/* summit flag + accent pin (ACCENT USE 3 of 3) */
.summit-flag { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.summit-flag-fill { fill: var(--ink); }
.summit-pin { fill: var(--edit); }
.summit-pulse { fill: var(--edit); transform-origin: center; transform-box: fill-box; }
.expe-stage.drawn .summit-pulse { animation: summitPulse 2.4s var(--ease) infinite; }
@keyframes summitPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .expe-stage .summit-pulse { animation: none !important; opacity: 0; } }

/* route legs */
.route-leg { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; transition: stroke 220ms var(--ease), stroke-width 220ms var(--ease); }
.route-walked { stroke-width: 2.9; }
.route-ahead { stroke-width: 2; stroke-dasharray: 6 5.5; }
.route-leg.dim { stroke: var(--ink); opacity: .82; }
/* paper casing so the trail + stations read clearly over the vivid terrain */
#route-group, #marker-group { filter: drop-shadow(0 0 2.6px var(--paper)) drop-shadow(0 0 1.5px var(--paper)); }
.route-leg.boost { stroke: var(--ink); stroke-width: 3.6; stroke-dasharray: none; }
.marker.dim .marker__ring { stroke-width: 1.7; }
/* legible labels over the scene: paper halo behind the text */
.marker__tag { fill: var(--ink-soft); paint-order: stroke; stroke: var(--paper); stroke-width: 2.4px; stroke-linejoin: round; }
.axis-label, .scalebar ~ text { paint-order: stroke; stroke: var(--paper); stroke-width: 2px; stroke-linejoin: round; }

/* draw-on animation */
.route-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.expe-stage.drawn .route-draw { animation: drawRoute 1.3s var(--ease) forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
.marker-grp { transform: scale(0); transform-origin: center; transform-box: fill-box; transition: transform 220ms var(--ease); }
.expe-stage.drawn .marker-grp { animation: popIn 360ms var(--ease) forwards; }
@keyframes popIn { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .route-draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .marker-grp { transform: scale(1) !important; animation: none !important; }
}

/* =====================================================================
   LIVING MOUNTAIN SCENE behind the expedition plate
===================================================================== */
.expe-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }.plate__svg-wrap .expe-svg { position: relative; z-index: 1; }
.plate__svg-wrap { isolation: isolate; }
.expe-scene .sky { position: absolute; inset: 0; background: linear-gradient(168deg, var(--sky-1) 0%, var(--sky-2) 50%, var(--sky-3) 100%); }
/* paper veil softens the scene so the survey map stays legible; kept clear near the sun */
.expe-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 105% at 12% 8%, transparent 0 30%, var(--paper) 92%); opacity: .16; }
/* sun, top-right, soft glow + slow rays + gentle pulse */
.expe-scene .sun { position: absolute; top: 7%; left: 7%; width: 7.5%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--sun) 0 34%, var(--sun-glow) 40%, transparent 72%); }
.expe-scene .sun::before { content: ''; position: absolute; inset: -120%;
  background: repeating-conic-gradient(from 0deg, var(--sun-glow) 0deg .6deg, transparent .6deg 11deg);
  -webkit-mask: radial-gradient(transparent 40%, #000 42% 70%, transparent 74%);
          mask: radial-gradient(transparent 40%, #000 42% 70%, transparent 74%);
  animation: sceneSpin 120s linear infinite; }
.expe-scene .sun::after { content: ''; position: absolute; inset: -90%; border-radius: 50%;
  background: radial-gradient(circle, var(--sun-glow) 0 16%, transparent 62%); animation: sunPulse 6.5s ease-in-out infinite; }
@keyframes sunPulse { 0%,100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.16); opacity: 1; } }
@keyframes sceneSpin { to { transform: rotate(360deg); } }
/* ---- NIGHT MODE: full moon (no rays + craters), stars, shooting star ---- */
.expe-scene .sun i { display: none; }
[data-theme="dark"] .expe-scene .sun::before { opacity: 0; }
[data-theme="dark"] .expe-scene .sun { box-shadow: inset -7px -5px 12px rgba(18,28,44,.20); }
[data-theme="dark"] .expe-scene .sun i { display: block; position: absolute; border-radius: 50%; background: rgba(120,142,172,.32); }
[data-theme="dark"] .expe-scene .sun i:nth-child(1) { width: 24%; height: 24%; top: 24%; left: 28%; }
[data-theme="dark"] .expe-scene .sun i:nth-child(2) { width: 14%; height: 14%; top: 54%; left: 56%; }
[data-theme="dark"] .expe-scene .sun i:nth-child(3) { width: 10%; height: 10%; top: 34%; left: 62%; }
.expe-scene .stars { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
[data-theme="dark"] .expe-scene .stars { opacity: 1; }
.expe-scene .star { position: absolute; border-radius: 50%; background: var(--star, #fff); animation: twinkle 4s ease-in-out infinite; }
[data-theme="dark"] .expe-scene .star { animation: twinkle 4s ease-in-out infinite; }
:root:not([data-theme="dark"]) .expe-scene .star { animation: none; }
@keyframes twinkle { 0%,100% { opacity: .22; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.expe-scene .shooting-star { position: absolute; top: 15%; left: 64%; width: 92px; height: 1.6px; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--star, #fff)); transform: rotate(20deg); pointer-events: none; }
[data-theme="dark"] .expe-scene .shooting-star { animation: shoot 11s ease-in infinite; }
@keyframes shoot { 0%,80% { opacity: 0; transform: translate(0,0) rotate(20deg) scaleX(.2); } 82% { opacity: 1; } 90% { opacity: .85; } 95%,100% { opacity: 0; transform: translate(-360px,128px) rotate(20deg) scaleX(1); } }
/* birds by day, bats by night */
.expe-scene .bird .bat, .expe-scene .soarer .bat { display: none; fill: var(--bird); }
[data-theme="dark"] .expe-scene .bird .gull, [data-theme="dark"] .expe-scene .soarer .gull { display: none; }
[data-theme="dark"] .expe-scene .bird .bat, [data-theme="dark"] .expe-scene .soarer .bat { display: block; }
/* mountain ridges (kept atmospheric so the map stays the hero) */
.expe-scene .mountains { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .74; }
.expe-scene .mountains .mtn-far  { fill: var(--mtn-far); }
.expe-scene .mountains .mtn-mid  { fill: var(--mtn-mid); }
.expe-scene .mountains .mtn-near { fill: var(--mtn-near); }
.expe-scene .mountains .mtn-snow { fill: var(--snow); opacity: .92; }
/* terrain life: trees, river, grass, animals */
.expe-scene .trees .tree   { fill: var(--tree); }
.expe-scene .trees .tree-2 { fill: var(--tree-2); }
.expe-scene .river-water { fill: var(--river); opacity: .9; }
.expe-scene .rsh { fill: none; stroke: var(--river-hi); stroke-width: 2.6; stroke-linecap: round; opacity: .25; will-change: transform, opacity; }
.expe-scene .river-shimmer .s1 { animation: rivShimmer 5.5s ease-in-out infinite; }
.expe-scene .river-shimmer .s2 { animation: rivShimmer 7s ease-in-out infinite .9s; }
.expe-scene .river-shimmer .s3 { animation: rivShimmer 6.2s ease-in-out infinite 1.7s; }
@keyframes rivShimmer { 0%,100% { opacity: .12; transform: translateX(0); } 50% { opacity: .8; transform: translateX(12px); } }
.expe-scene .grass path { fill: none; stroke: var(--grass); stroke-width: 1.5; stroke-linecap: round; }
.expe-scene .animal { fill: var(--ink-soft); }
.expe-scene .duck { fill: var(--ink-soft); animation: duckGlide 20s ease-in-out infinite; will-change: transform; }
@keyframes duckGlide { 0% { transform: translateX(0); } 50% { transform: translateX(140px); } 100% { transform: translateX(0); } }
/* clouds */
.expe-scene .cloud { position: absolute; height: 9%; aspect-ratio: 3.1/1; opacity: var(--cloud-op);
  background:
    radial-gradient(48% 70% at 28% 64%, var(--cloud) 0 60%, transparent 63%),
    radial-gradient(42% 96% at 52% 44%, var(--cloud) 0 60%, transparent 63%),
    radial-gradient(40% 72% at 73% 62%, var(--cloud) 0 60%, transparent 63%),
    radial-gradient(70% 30% at 50% 82%, var(--cloud) 0 60%, transparent 63%);
  filter: blur(.4px); will-change: transform; }
.expe-scene .c1 { top: 14%; left: -22%; width: 24%; animation: drift1 64s linear infinite; }
.expe-scene .c2 { top: 27%; left: -28%; width: 18%; opacity: calc(var(--cloud-op) * .7); animation: drift2 92s linear infinite; }
.expe-scene .c3 { top: 9%;  left: -20%; width: 14%; opacity: calc(var(--cloud-op) * .55); animation: drift1 110s linear infinite; animation-delay: -40s; }
@keyframes drift1 { to { transform: translateX(640%); } }
@keyframes drift2 { to { transform: translateX(820%); } }
/* birds (HTML translate across; SVG wings rotate to flap) */
.expe-scene .flock { position: absolute; inset: 0; }
.expe-scene .bird { position: absolute; width: 2.1%; color: var(--bird); will-change: transform; }
.expe-scene .bird svg { width: 100%; height: auto; display: block; overflow: visible; }
.expe-scene .bird .wg { transform-box: fill-box; transform-origin: 100% 60%; animation: flap .9s ease-in-out infinite; }
.expe-scene .bird .wg.r { transform-origin: 0% 60%; }
@keyframes flap { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-26deg); } }
.expe-scene .bird .wg.r { animation-name: flapR; }
@keyframes flapR { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(26deg); } }
.expe-scene .b1 { top: 20%; animation: fly1 38s linear infinite; }
.expe-scene .b2 { top: 23%; animation: fly1 38s linear infinite; animation-delay: -2.4s; transform: scale(.8); }
.expe-scene .b3 { top: 17%; animation: fly1 38s linear infinite; animation-delay: -1.1s; transform: scale(.7); }
.expe-scene .b4 { top: 34%; animation: fly2 52s linear infinite; animation-delay: -18s; transform: scale(.85); }
@keyframes fly1 { 0% { left: -6%; } 100% { left: 106%; } }
@keyframes fly2 { 0% { left: 110%; } 100% { left: -8%; } }
/* a lone raptor soaring in a slow circle near the summit */
.expe-scene .soarer { position: absolute; top: 12%; right: 16%; width: 3.4%; color: var(--bird);
  offset-path: path('M0,0 C60,-30 120,-20 120,30 C120,80 40,90 -10,60 C-50,36 -40,24 0,0 Z');
  animation: soar 30s linear infinite; }
.expe-scene .soarer svg { width: 100%; height: auto; display: block; overflow: visible; }
.expe-scene .soarer .wg { transform-box: fill-box; transform-origin: 100% 60%; animation: flap 2.4s ease-in-out infinite; }
.expe-scene .soarer .wg.r { transform-origin: 0% 60%; animation-name: flapR; animation-duration: 2.4s; }
@keyframes soar { to { offset-distance: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .expe-scene .sun::before, .expe-scene .sun::after,
  .expe-scene .cloud, .expe-scene .bird, .expe-scene .soarer,
  .expe-scene .bird .wg, .expe-scene .soarer .wg,
  .expe-scene .rsh, .expe-scene .duck,
  .expe-scene .star, .expe-scene .shooting-star { animation: none !important; }
  .expe-scene .star { opacity: .8; }
  .expe-scene .b4 { left: 60%; } .expe-scene .c2 { left: 40%; } .expe-scene .c3 { left: 70%; }
}

/* =====================================================================
   PORTRAIT MOUNTAIN: the scene behind the vertical chart. journey.js adds
   .is-vertical at 768px and below and draws .mtn-portrait in chart units.
===================================================================== */
/* Scene and chart share one grid cell, so the scene is as tall as the whole
   chart instead of only the first screen of the scrolling pane. */
.plate__svg-wrap.is-vertical { display: grid; grid-template-columns: minmax(0, 1fr); }
.plate__svg-wrap.is-vertical > .expe-scene,
.plate__svg-wrap.is-vertical > .expe-stage { grid-area: 1 / 1; }
.expe-scene.is-vertical { position: relative; inset: auto; }
/* The landscape ridges, clouds and birds are drawn for 1200 x 680. */
.expe-scene.is-vertical > .mountains:not(.mtn-portrait),
.expe-scene.is-vertical .bird,
.expe-scene.is-vertical .soarer,
.expe-scene.is-vertical .cloud { display: none; }
.expe-scene.is-vertical .sun { top: 3.5%; left: 4%; width: 11%; }
.expe-scene.is-vertical .shooting-star { top: 2%; left: 62%; }
/* Shade planes on the portrait massif. --tree-2 is darker than --mtn-near in
   both themes; night needs more of it for the planes to separate at all. */
.expe-scene .mountains .mtn-shade { fill: var(--tree-2); opacity: .3; }
:root[data-theme="light"] .expe-scene .mountains .mtn-shade { opacity: .18; }

/* dossier card */
.dossier {
  margin-top: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--ink);
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--panel);
  opacity: 0; transform: translateY(14px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.dossier.show { opacity: 1; transform: none; }
/*
 * Reserve the box before JS fills it. The dossier is empty in the markup and
 * gains roughly 350px of content when the plate first draws, which pushed the
 * five sections below the journey down the page: on its own that was a 0.21
 * Cumulative Layout Shift, most of the page's total.
 *
 * The floor is the TALLEST checkpoint at each width, measured across all
 * eight. Reserving only the shortest still let the box grow as the plate drew
 * itself, which is a shift with no interaction anywhere near it and therefore
 * counts in full. The cost is some whitespace under the shorter checkpoints,
 * inside a bordered plate where it reads as padding.
 */
.dossier { min-height: 435px; }
@media (max-width: 768px) { .dossier { min-height: 425px; } }
@media (max-width: 520px) { .dossier { min-height: 690px; } }
@media (prefers-reduced-motion: reduce) { .dossier { transition: none; } }
.dossier__top {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px; margin-bottom: 16px;
}
.dossier__role {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.dossier__meta {
  font-family: var(--ff-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--gray-5);
}
.dossier__badge {
  font-family: var(--ff-label);
  font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--gray-4); color: var(--gray-5);
  padding: 3px 8px; align-self: center;
}
.dossier__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  font-family: var(--ff-label);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 5px 9px;
}
.dossier__bullets { list-style: none; margin: 0; padding: 0; }
.dossier__bullets li {
  position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.5;
}
.dossier__bullets li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 1px; background: var(--ink);
}

.plate__nav {
  display: flex; align-items: center; gap: 16px; margin-top: 18px;
  justify-content: space-between; flex-wrap: wrap;
}
.plate__counter {
  font-family: var(--ff-label); font-weight: 700; letter-spacing: 0.16em; font-size: 12px;
}
.plate__counter .of { color: var(--gray-4); }
.plate__dots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pdot {
  /* 24px minimum target, WCAG 2.5.8: the drawn dot stays small, the hit area does not. */
  min-width: 24px; min-height: 24px; display: inline-grid; place-items: center; background: none; border: 0;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--gray-4); background: transparent; padding: 0;
}
.pdot.on { background: var(--ink); border-color: var(--ink); }
.plate__steps { display: flex; gap: 10px; }
.plate__step {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 11px;
  background: transparent; border: 1px solid var(--hairline); color: var(--ink);
  padding: 9px 14px;
}
.plate__step:hover { border-color: var(--ink); }

/* ---------- vertical ledger (mobile reflow) ---------- */
.ledger { display: none; }
@media (max-width: 768px) {
  /*
   * The map is SHOWN on a phone, laid out portrait by journey.js and scrolled
   * vertically inside its own pane. It used to be hidden outright, which left
   * the ledger as the only journey a phone ever saw.
   */
  .plate__svg-wrap {
    display: block;
    max-height: 68svh;
    overflow-y: auto;
    /* auto, not contain: once the pane reaches its top or bottom, the same
       swipe carries on scrolling the page instead of trapping the reader. */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--hairline);
    border-radius: 3px;
  }
  .plate__svg-wrap .expe-svg { width: 100%; height: auto; display: block; }
  .plate__nav { display: none; }
  /*
   * The ledger is GONE on a phone. It existed because the map was hidden here;
   * now that the map is shown, laid out portrait and tappable, the ledger is
   * the same eight roles a second time - and it was the one that cycled on its
   * own, so the page had two things claiming to be the current checkpoint.
   */
  .ledger { display: none; }
  .ledger__spine {
    position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px;
    background: var(--ink); transform-origin: top; transform: scaleY(0);
  }
  .ledger.drawn .ledger__spine { transition: transform 1100ms var(--ease); transform: scaleY(1); }
  .ledger.faintbg::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      repeating-radial-gradient(circle at 82% 8%, transparent 0 16px, color-mix(in srgb, var(--contour) 40%, transparent) 16px 17px);
    opacity: .5;
  }
  .lrow {
    position: relative; padding: 0 0 8px 40px; margin-bottom: 20px;
  }
  .lrow__node {
    position: absolute; left: 4px; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--paper); border: 1.6px solid var(--ink);
    display: grid; place-items: center;
    font-family: var(--ff-label); font-weight: 700; font-size: 11px;
  }
  .lrow__summit-pin {
    position: absolute; left: 11px; top: -8px; width: 7px; height: 7px;
    border-radius: 50%; background: var(--edit); z-index: 2;
  }
  .lrow__btn {
    width: 100%; text-align: left; background: transparent;
    border: 1px solid var(--hairline); padding: 14px 16px; color: var(--ink);
  }
  .lrow__btn[aria-expanded="true"] { border-color: var(--ink); }
  .lrow__role { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.1; }
  .lrow__meta { display: block; font-family: var(--ff-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--gray-5); margin-top: 5px; }
  /*
   * The summit row starts expanded, so with an unconditional transition its
   * panel animated from 0 to 640px on first paint and pushed every row below
   * it down the page. The ledger only exists at this breakpoint, which is why
   * the narrow widths carried almost all of the page's layout shift and the
   * wide ones carried none.
   *
   * The transition is therefore opt-in: journey.js adds .anim on the frame
   * after the rows are built, so the first paint is already in its final
   * state and only a real click animates.
   */
  .lrow__panel { overflow: hidden; max-height: 0; }
  .ledger.anim .lrow__panel { transition: max-height 320ms var(--ease); }
  .lrow__btn[aria-expanded="true"] + .lrow__panel { max-height: 640px; }
  .lrow__panelinner { padding: 14px 0 4px; }
  @media (prefers-reduced-motion: reduce) {
    .ledger .ledger__spine { transform: scaleY(1); transition: none; }
    .lrow__panel { transition: none; }
  }
}
