/* J7L. Tokens mirror design/build-brief.md and theme.json. */
:root {
  --accent: #4C9AFF;
  --ground: #08090B;
  --surface: #0D1014;
  --line: #23262D;
  --line-strong: #353B46;
  --text: #F2F3F5;
  --soft: #C9CED6;
  --muted: #9AA1AC;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: Archivo, sans-serif;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.wp-site-blocks { overflow: clip; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #FFFFFF; text-decoration: underline; }
img { max-width: 100%; }

/* Home hero: let drags reach the globe through the copy. */
.hero-copy { pointer-events: none; }
.hero-copy a { pointer-events: auto; }

/* ---------- Scroll-flown route ---------- */
.fly { position: relative; height: 340vh; }
.fly-controls { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.fly-controls button { appearance: none; background: none; border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; min-height: 40px; padding: 0 14px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.fly-controls button:hover, .fly-controls button:focus-visible { border-color: var(--accent); }
.fly-controls button.is-quiet { border-color: transparent; color: var(--soft); padding: 0 4px; }
.fly-controls button.is-quiet:hover { color: var(--text); }
.fly-sticky {
  position: sticky; top: 0; box-sizing: border-box;
  height: 100vh; height: 100svh;
  padding: 28px clamp(20px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 20px;
}
.fly-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.fly-note { margin: 0; max-width: 460px; color: var(--muted); font-size: 15px; }
.fly-approx { color: #6B7380; }
.fly-body { flex: 1; min-height: 0; display: flex; gap: 32px; }
.fly-stops { flex: 0 0 260px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.fly-stop {
  padding: 18px 0; border-top: 2px solid var(--line); display: flex; gap: 20px;
  color: #6B7380; transition: color .3s, border-color .3s;
}
.fly-stop-n { font-family: var(--mono); font-size: 13px; padding-top: 4px; }
.fly-stop-name { font-weight: 600; font-size: 18px; }
.fly-stop-sub { font-size: 14px; }
.fly-stop.is-done { color: var(--muted); }
.fly-stop.is-active { color: var(--text); border-top-color: var(--accent); }
.fly-stop.is-active .fly-stop-n { color: var(--accent); }
.fly-stop.is-active .fly-stop-sub { color: var(--muted); }

.fly-stage { flex: 1; min-width: 0; position: relative; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.fly-stage .map { position: absolute; inset: 0; }
.fly-badge, .fly-readout {
  position: absolute; top: 20px; background: rgba(8, 9, 11, 0.82); border: 1px solid var(--line);
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.fly-badge { right: 20px; padding: 8px 12px; font-size: 12px; }
.fly-readout { left: 20px; margin: 0; padding: 12px 18px; display: flex; gap: 28px; }
.fly-readout dt { font-size: 11px; color: var(--muted); }
.fly-readout dd {
  margin: 2px 0 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 28px;
  line-height: 1.1; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fly-photo {
  position: absolute; left: 20px; bottom: 132px; width: min(32%, 360px); margin: 0;
  background: var(--ground); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; pointer-events: none;
}
.fly-photo.is-on { opacity: 1; transform: none; }
.fly-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fly-photo figcaption { padding: 8px 12px; font-size: 13px; color: var(--soft); }
.fly-elev {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0) 0%, rgba(8, 9, 11, 0.88) 45%);
}
.fly-elev-label {
  display: flex; justify-content: space-between; padding-bottom: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.fly-elev svg { display: block; width: 100%; height: 84px; }

@media (max-width: 860px) {
  .fly-stops, .fly-badge { display: none; }
  .fly-sticky { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .fly-note { font-size: 14px; }
  .fly-readout { left: 12px; top: 12px; right: 12px; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; }
  .fly-readout dd { font-size: 17px; }
  .fly-photo { left: 12px; width: 44%; bottom: 100px; }
  .fly-elev svg { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-fly="play"] { display: none; }
  .fly { height: auto; }
  .fly-sticky { position: static; height: auto; }
  .fly-body { height: 72vh; }
  .fly-photo { display: none; }
}

/* ---------- Map furniture ---------- */
.map { background: var(--surface); }
.map.is-failed::after {
  content: 'The live map could not start in this browser.'; position: absolute; inset: 0;
  display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 13px;
}
/* No position here: the map library positions each marker absolutely, and that must win. */
.pin { width: 16px; height: 16px; }
.pin::before, .pin::after { content: ''; position: absolute; border-radius: 50%; }
.pin::before { inset: 2px; background: var(--ground); border: 2.5px solid var(--text); box-sizing: border-box; }
.pin.is-accent::before { inset: 0; background: var(--accent); border: 0; }
.pin.is-accent::after { inset: -14px; background: var(--accent); opacity: .25; animation: pin-pulse 2.4s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(.4); opacity: .45; } to { transform: scale(1.25); opacity: 0; } }
.pin-label {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
  text-shadow: 0 0 6px var(--ground), 0 0 2px var(--ground);
}
a.pin-label { color: var(--text); padding: 6px 10px; background: rgba(8, 9, 11, 0.82); border: 1px solid var(--line-strong); text-shadow: none; }
a.pin-label:hover { border-color: var(--accent); text-decoration: none; }
.rider { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--ground), 0 0 0 12px color-mix(in srgb, var(--accent) 28%, transparent); }
.photo-dot { width: 10px; height: 10px; background: var(--text); border: 2px solid var(--ground); }
@media (prefers-reduced-motion: reduce) { .pin.is-accent::after { animation: none; } }

.maplibregl-ctrl-group { background: var(--surface) !important; border: 1px solid var(--line); border-radius: 0 !important; box-shadow: none !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }
.maplibregl-ctrl-attrib { background: rgba(8, 9, 11, 0.7) !important; color: #6B7380; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: #6B7380 !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); opacity: .5; }
.maplibregl-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Data matched from connected sources ---------- */
.src-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
}
.src-tag::before { content: ''; width: 7px; height: 7px; background: var(--accent); }
.also { display: flex; flex-direction: column; gap: 16px; }
.also ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.also li { flex: 1 1 320px; min-width: 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.also li span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.also li strong { font-size: 18px; font-weight: 600; }

/* ---------- Page furniture ---------- */
:root { --gutter: clamp(20px, 4vw, 56px); }
.j7l-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); }
.j7l-logo { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 22px; letter-spacing: 0.02em; min-height: 44px; display: flex; align-items: center; color: var(--text); }
.j7l-logo--sm { display: inline; font-size: inherit; min-height: 0; }
.j7l-nav-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.j7l-nav-links a { padding: 12px 16px; min-height: 20px; border-bottom: 2px solid transparent; }
.is-trips .nav-trips, .is-garage .nav-garage, .is-map .nav-map { border-bottom-color: var(--accent); }
.j7l-footer { padding: 32px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.j7l-footer a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.j7l-footer .j7l-logo { color: var(--text); }
.j7l-main > * { margin-block: 0; max-width: none; }

/* ---------- Type ---------- */
.j7l-h1, .j7l-h2, .j7l-card-title, .j7l-figure-value, .j7l-dl dd { font-family: var(--display); font-stretch: 125%; text-transform: uppercase; margin: 0; }
.j7l-h1 { font-weight: 900; --size: clamp(60px, 10.4vw, 152px); font-size: var(--size); line-height: 0.84; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.j7l-h2 { font-weight: 900; font-size: clamp(40px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.02em; }
.j7l-h2--sm { font-size: clamp(36px, 5vw, 72px); }
.j7l-lede { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.4; color: #E4E6EA; }
.j7l-mono, .j7l-meta, .j7l-label, .j7l-num { font-family: var(--mono); text-transform: uppercase; }
.j7l-mono, .j7l-meta { font-size: 13px; letter-spacing: 0.06em; }
.j7l-label { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.j7l-label--light { color: var(--text); }
.j7l-num { font-size: 13px; color: var(--accent); }
.j7l-soft { color: var(--soft); }
.j7l-muted { color: var(--muted); font-size: 15px; }
.j7l-tag { padding: 5px 10px; border: 1px solid var(--text); }
.j7l-tag--solid { padding: 6px 10px; border: 0; background: var(--accent); color: var(--ground); font-weight: 500; }
.j7l-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.j7l-hero { display: flex; flex-wrap: wrap; align-items: stretch; }
.j7l-hero-copy { flex: 1 1 520px; min-width: 0; padding: 40px var(--gutter) 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.j7l-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.j7l-hero-photo { flex: 1 1 420px; min-width: 0; min-height: 720px; position: relative; overflow: hidden; }
.j7l-hero-photo img, .j7l-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Figures ---------- */
.j7l-figures { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.j7l-figure { flex: 1 1 220px; padding: 32px var(--gutter); border-right: 1px solid var(--line); }
.j7l-figure:last-child { border-right: 0; }
.j7l-figure-value { font-weight: 800; font-size: 56px; line-height: 1.1; text-transform: none; }

/* ---------- Sections ---------- */
.j7l-section { padding: 120px var(--gutter) 0; display: flex; flex-direction: column; gap: 32px; }
.j7l-section--last { padding-bottom: 120px; gap: 40px; }
.j7l-section-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.j7l-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.j7l-section-title { display: flex; align-items: baseline; gap: 20px; }
.j7l-legend { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--soft); }
.j7l-legend span { display: inline-flex; align-items: center; gap: 10px; }
.j7l-legend i { width: 28px; height: 4px; }
.j7l-legend .is-accent { background: var(--accent); }
.j7l-legend .is-white { background: var(--text); }
.j7l-legend .is-thin { height: 2px; background: var(--soft); }
.j7l-legend .is-dashed { height: 0; border-top: 2px dashed var(--muted); }
.j7l-mapframe { position: relative; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 1000 / 520; min-height: 420px; width: 100%; overflow: hidden; }
.j7l-mapframe .map, .j7l-activity-map .map { position: absolute; inset: 0; }
.j7l-maphint { position: absolute; left: 20px; top: 20px; padding: 8px 12px; background: rgba(8, 9, 11, 0.8); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }

/* ---------- Cards and photo rows ---------- */
.j7l-row { display: flex; flex-wrap: wrap; gap: 16px; --h: 480px; }
.j7l-card { flex: 1 1 420px; min-width: 0; position: relative; display: block; height: 480px; overflow: hidden; background: var(--surface); color: var(--text); }
.j7l-card--tall { height: 600px; }
a.j7l-card:hover { text-decoration: none; }
a.j7l-card:hover > img { transform: scale(1.02); }
.j7l-card > img { transition: transform .5s; }
.j7l-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, 0.5) 0%, rgba(8, 9, 11, 0) 30%, rgba(8, 9, 11, 0.92) 100%); }
.j7l-card-shade--low { background: linear-gradient(180deg, rgba(8, 9, 11, 0) 40%, rgba(8, 9, 11, 0.9) 100%); }
.j7l-card-tags { position: absolute; left: 28px; top: 28px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.j7l-card-tags .j7l-tag { padding: 5px 9px; }
.j7l-card-tags .j7l-tag--solid { font-weight: 600; }
.j7l-card-foot { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.j7l-card-title { font-weight: 900; font-size: clamp(36px, 4.4vw, 64px); line-height: 0.9; }
.j7l-photo { flex: 1 1 280px; min-width: 0; margin: 0; position: relative; }
.j7l-photo img { display: block; width: 100%; height: var(--h); object-fit: cover; }
.j7l-photo figcaption { position: absolute; left: 0; bottom: 0; padding: 12px 16px; background: rgba(8, 9, 11, 0.82); font-size: 14px; }

/* A row of trip photos: every photo keeps its shape, the row fills the width, and the gap between rows
   is the gap between photos. A photo with a row to itself would be huge, so it stops at a sensible
   height and sits centred, trimmed a little at most. */
.j7l-row--photos { --maxh: min(80vh, 780px); flex-wrap: nowrap; width: 100%; max-width: calc(var(--sum) * var(--maxh) * 1.3 + (var(--n) - 1) * 16px); margin-inline: auto; }
.j7l-row--photos + .j7l-row--photos { margin-top: -16px; }
.j7l-row--photos .j7l-photo { flex: calc(var(--ar) * 10) 1 0; aspect-ratio: var(--ar); max-height: var(--maxh); }
.j7l-row--photos .j7l-photo img { height: 100%; }

/* ---------- Matched activity ---------- */
.j7l-activity { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); }
.j7l-activity-facts { flex: 1 1 320px; min-width: 0; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.j7l-activity-name { font-weight: 600; font-size: 22px; }
.j7l-activity-map { flex: 2 1 480px; min-width: 0; position: relative; min-height: 380px; }
.j7l-dl { margin: 0; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.j7l-dl dd { font-weight: 800; font-size: 36px; line-height: 1.1; text-transform: none; }

@media (max-width: 700px) {
  .j7l-section { padding-top: 80px; }
  .j7l-hero-photo { min-height: 420px; }
  .j7l-figure-value { font-size: 40px; }
  .j7l-photo img { height: min(var(--h), 420px); }
  .j7l-card, .j7l-card--tall { height: 440px; }
}

/* ---------- Ride hero ---------- */
.j7l-ridehero { position: relative; min-height: 820px; display: flex; flex-direction: column; justify-content: flex-end; }
.j7l-ridehero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j7l-ridehero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0) 22%, rgba(8, 9, 11, 0) 40%, rgba(8, 9, 11, 0.92) 86%, #08090B 100%); }
.j7l-ridehero-copy { position: relative; padding: 0 var(--gutter) 56px; display: flex; flex-direction: column; gap: 20px; }
.j7l-ridehero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.j7l-ridehero .j7l-lede { max-width: 560px; }
.j7l-h1--xl { --size: clamp(64px, 13.4vw, 196px); }
/* A title is never split inside a word: it shrinks until its longest word fits the column. */
.j7l-hero-copy, .j7l-ridehero-copy { container-type: inline-size; }
.j7l-h1--fit { font-size: min(var(--size), calc(100cqi / (var(--chars) * 0.95))); overflow-wrap: normal; }
.j7l-underline { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.j7l-cue { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.fly-photo img { height: auto; }
.single-j7l_ride .j7l-nav { position: absolute; left: 0; right: 0; z-index: 2; }

/* ---------- Home ---------- */
.j7l-globehero { position: relative; min-height: 900px; display: flex; flex-direction: column; justify-content: flex-end; background: #07080A; }
.j7l-globehero > .map { position: absolute; inset: 0; background: transparent; }
.j7l-globehero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0) 20%, rgba(8, 9, 11, 0) 50%, rgba(8, 9, 11, 0.9) 88%, #08090B 100%); }
.j7l-globehero-copy { position: relative; padding: 0 var(--gutter) 56px; display: flex; flex-direction: column; gap: 28px; }
.j7l-dl--lg { gap: 40px; }
.j7l-dl--lg dd { font-size: 44px; }
.home .j7l-nav { position: absolute; left: 0; right: 0; z-index: 2; }
.j7l-row--grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .j7l-row--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .j7l-row--grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1640px) { .j7l-row--grid { grid-template-columns: repeat(4, 1fr); } }
/* Home: after the lead card, show whole rows only, so the grid never ends ragged. */
.j7l-row--rows > :nth-child(n+6) { display: none; }
@media (min-width: 720px) { .j7l-row--rows > :nth-child(-n+7) { display: block; } }
@media (min-width: 1640px) { .j7l-row--rows > :nth-child(-n+9) { display: block; } }
/* Eight cards with no lead: two full rows of three in between, so no row is left short. */
@media (min-width: 1100px) and (max-width: 1639px) { .j7l-row--eight > :nth-child(n+7) { display: none; } }
.j7l-button--wide { align-self: flex-start; }
.j7l-row--grid .j7l-card--lead { grid-column: 1 / -1; height: 640px; }
/* Card titles size themselves to the card, so a long single word (Haweswater) fits on one line
   and nothing ever breaks mid-word. */
.j7l-card { container-type: inline-size; }
.j7l-card-title { text-wrap: balance; }
.j7l-row--grid .j7l-card:not(.j7l-card--lead) .j7l-card-title { font-size: clamp(20px, 9cqi, 46px); overflow-wrap: normal; }
.j7l-card-foot .j7l-mono { text-wrap: balance; }

/* ---------- Page heads ---------- */
.j7l-pagehead { padding: 56px var(--gutter) 40px; }
.j7l-h1--xxl { --size: clamp(56px, 15.5vw, 232px); line-height: 0.82; overflow-wrap: normal; }
.j7l-spacer { height: 120px; }
.j7l-prose { padding: 56px var(--gutter) 120px; }

/* ---------- Motion and depth ----------
   Quiet by design: one easing curve, short distances, each thing moves once.
   Everything here is an enhancement. With reduced motion set, or in a browser
   without scroll-driven animations, the page is simply still. */
:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
.j7l-photo, .j7l-hero-photo, .j7l-ridehero { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* Arrive once. */
  .j7l-reveal { opacity: 0; translate: 0 18px; transition: opacity 0.8s var(--ease), translate 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .j7l-reveal.is-in { opacity: 1; translate: 0 0; }

  /* Section rules draw themselves from the left. */
  .j7l-motion .j7l-section-head { border-top-color: transparent; position: relative; }
  .j7l-motion .j7l-section-head::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
  .j7l-motion .j7l-section-head.is-in::before { transform: scaleX(1); }

  /* Hero copy settles in on load. */
  .j7l-hero-copy > *, .j7l-ridehero-copy > *, .j7l-globehero-copy > * { animation: j7l-settle 1s var(--ease) both; }
  .j7l-hero-copy > :nth-child(2), .j7l-ridehero-copy > :nth-child(2), .j7l-globehero-copy > :nth-child(2) { animation-delay: 90ms; }
  .j7l-hero-copy > :nth-child(3), .j7l-ridehero-copy > :nth-child(3), .j7l-globehero-copy > :nth-child(3) { animation-delay: 180ms; }
  .j7l-hero-photo img, .j7l-ridehero > img { animation: j7l-open 1.6s var(--ease) both; }
  @keyframes j7l-settle { from { opacity: 0; translate: 0 22px; } }
  @keyframes j7l-open { from { opacity: 0; scale: 1.06; } }

  /* Cards answer the pointer: the photo eases closer, the shade lifts. */
  .j7l-card > img { transition: scale 0.9s var(--ease); }
  a.j7l-card:hover > img { transform: none; scale: 1.035; }
  .j7l-card-shade { transition: opacity 0.6s var(--ease); }
  a.j7l-card:hover .j7l-card-shade { opacity: 0.82; }
  .j7l-card-title { transition: translate 0.6s var(--ease); }
  a.j7l-card:hover .j7l-card-title { translate: 0 -3px; }

  /* The same depth, driven by motion.js where scroll-driven animations are missing. */
  .j7l-parallax .j7l-card > img { inset: -5% 0; height: 110%; translate: 0 calc(var(--p, 0) * -3.5%); }
  .j7l-parallax .j7l-photo img, .j7l-parallax .j7l-panel-photo img { scale: 1.09; translate: 0 calc(var(--p, 0) * -3.5%); }
  .j7l-parallax .j7l-card > img, .j7l-parallax .j7l-photo img, .j7l-parallax .j7l-panel-photo img { will-change: translate; }

  /* A card gives slightly under a thumb. */
  @media (hover: none) {
    a.j7l-card { transition: scale 0.35s var(--ease); }
    a.j7l-card:active { scale: 0.985; }
    a.j7l-card:active .j7l-card-shade { opacity: 0.82; }
  }

  /* Depth: photos sit slightly behind their frames and drift as the page moves. */
  @supports (animation-timeline: view()) {
    .j7l-card > img, .j7l-photo img { animation: j7l-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes j7l-drift { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }
    .j7l-card > img { inset: -5% 0; height: 110%; }
    .j7l-photo img { scale: 1.09; }

    /* Heroes fall away more slowly than the page, so the copy seems to float over them. */
    .j7l-hero-photo img, .j7l-ridehero > img {
      animation: j7l-open 1.6s var(--ease) both, j7l-sink linear both;
      animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%;
    }
    @keyframes j7l-sink { to { translate: 0 9%; } }
    .j7l-globehero-copy { animation: j7l-float linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
    .j7l-globehero-copy > * { animation: none; }
    @keyframes j7l-float { to { translate: 0 -48px; opacity: 0.25; } }
  }
}

/* Globe: only the latest trip is labelled; the rest name themselves on hover or focus. */
.pin.is-quiet { cursor: pointer; }
.pin.is-quiet::after { inset: -10px; }
.pin.is-quiet .pin-label { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.pin.is-quiet:hover .pin-label, .pin.is-quiet .pin-label:focus-visible { opacity: 1; pointer-events: auto; }
.maplibregl-marker:has(.pin.is-quiet:hover) { z-index: 3; }
.maplibregl-marker:has(.pin.is-accent), .maplibregl-marker:has(.pin.is-base) { z-index: 2; }
/* A place on a trip map: its name appears once the map knows it. */
.j7l-mapframe .pin .pin-label { opacity: 0; transition: opacity 0.6s; color: var(--text); font-size: 13px; padding: 5px 9px; background: rgba(8, 9, 11, 0.82); border: 1px solid var(--line-strong); text-shadow: none; }
.j7l-mapframe .pin.is-named .pin-label, .j7l-mapframe a.pin-label { opacity: 1; }
/* Places near home: small solid dots that sit under the base pin rather than crowd it. */
.pin.is-near::before { inset: 5px; border: 0; background: var(--soft); }
.pin.is-base::before { background: var(--text); }
.j7l-lastseen { color: var(--soft); align-self: flex-start; }
.j7l-lastseen:hover { color: var(--text); text-decoration: none; }
.j7l-lastseen span { color: var(--accent); }

@media (max-width: 700px) {
  .j7l-maphint { display: none; }
  .j7l-mapframe { aspect-ratio: 4 / 5; }
  /* The globe keeps to the top of the hero so the name reads clear of it. */
  .j7l-globehero { min-height: 0; padding-top: 62vh; }
  .j7l-globehero > .map { bottom: auto; height: 68vh; }
  .j7l-globehero-shade { background: linear-gradient(180deg, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0) 16%, rgba(8, 9, 11, 0) 44%, #08090B 66%); }
  /* A quieter globe on a phone: finer pins, and the credit tucked up out of the copy. */
  .j7l-globehero .pin { width: 12px; height: 12px; }
  .j7l-globehero .pin::before { inset: 1.5px; border-width: 1.5px; }
  .j7l-globehero .pin.is-accent::before { inset: 0; }
  .j7l-globehero .pin.is-accent::after { inset: -9px; }
  .j7l-globehero .pin.is-near::before { inset: 4px; }
  .j7l-globehero .pin.is-base .pin-label { font-size: 10px; bottom: calc(100% + 6px); }
  .j7l-globehero .maplibregl-ctrl-bottom-right { bottom: 9vh; transform: scale(0.8); transform-origin: right bottom; opacity: 0.7; }
}

/* ---------- Collections and vehicle pages ---------- */
.j7l-pagehead { display: flex; flex-direction: column; gap: 24px; }
.j7l-section--flush { padding-top: 24px; }
.j7l-section--last + .j7l-section--last { padding-top: 0; }
.j7l-section--last + .j7l-section:not(.j7l-section--last) { padding-top: 0; }
.single-j7l_vehicle .j7l-nav { position: absolute; left: 0; right: 0; z-index: 2; }
.single-j7l_vehicle .j7l-ridehero .j7l-meta a { color: var(--ground); }

/* ---------- Panel: a vehicle, with its photo ---------- */
.j7l-panel { display: flex; flex-wrap: wrap; margin-top: 120px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.j7l-panel-copy { flex: 1 1 420px; min-width: 0; padding: 72px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.j7l-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.j7l-panel-photo { flex: 1 1 420px; min-width: 0; min-height: 520px; position: relative; overflow: hidden; }
.j7l-panel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j7l-card-tags--flow { position: static; }
.j7l-tag--quiet { border-color: var(--line-strong); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.j7l-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px; background: var(--accent); color: var(--ground); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.j7l-button:hover { color: var(--ground); text-decoration: none; filter: brightness(1.08); }
.j7l-panel + .j7l-section { padding-top: 120px; }

.j7l-footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Plain pages ---------- */
.j7l-prose { padding: 96px var(--gutter) 140px; }
.j7l-prose > * { max-width: 760px; margin-left: 0 !important; margin-right: auto !important; }
.j7l-prose .wp-block-post-title { max-width: none; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(48px, 8vw, 120px); line-height: 0.88; letter-spacing: -0.02em; text-transform: uppercase; margin: 0 0 56px; text-wrap: balance; }
.j7l-prose p { font-size: 19px; line-height: 1.6; color: var(--soft); margin: 0 0 28px; }
.j7l-prose p.j7l-lede { font-size: 26px; line-height: 1.35; color: var(--text); max-width: 760px; margin-bottom: 48px; }
.j7l-prose strong { color: var(--text); font-weight: 600; }

.j7l-prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.page .nav-about { border-bottom-color: transparent; }
.page-about .nav-about, body.is-about .nav-about { border-bottom-color: var(--accent); }


/* ---------- Phone ----------
   Not the desktop page squeezed: its own spacing scale, two-up cards, and photo rows that
   run edge to edge with one hairline gap, the way a photo library does. */
@media (max-width: 719px) {
  :root { --gutter: 20px; --gap: 4px; }
  .j7l-nav { padding: 18px var(--gutter); }

  /* One rhythm: 64 between sections, 20 inside them. */
  .j7l-section { padding-top: 64px; gap: 20px; }
  .j7l-section--last { padding-bottom: 72px; gap: 20px; }
  .j7l-section-top { gap: 4px 24px; margin-bottom: 0; }
  .j7l-section-head { gap: 6px 20px; padding-top: 18px; }
  .j7l-panel { margin-top: 64px; }
  .j7l-panel-copy { padding: 40px var(--gutter); gap: 28px; }
  .j7l-panel-photo { min-height: 300px; }
  .j7l-panel + .j7l-section { padding-top: 64px; }
  .j7l-prose { padding: 40px var(--gutter) 72px; }
  .j7l-pagehead { padding: 32px var(--gutter) 24px; }
  .j7l-hero-copy { padding: 28px var(--gutter) 36px; gap: 18px; }
  .j7l-ridehero-copy, .j7l-globehero-copy { padding-bottom: 36px; gap: 18px; }
  .j7l-footer { padding: 28px var(--gutter) 36px; }

  /* Figures sit two to a line instead of one tall column. */
  .j7l-figures { border-bottom: 0; }
  .j7l-figure { flex: 1 1 34%; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
  .j7l-figure:nth-child(even) { border-right: 0; }
  .j7l-meta > [aria-hidden] { display: none; }
  .j7l-meta { row-gap: 8px; }
  .j7l-figure-value { font-size: 34px; }
  .j7l-dl { gap: 16px 28px; }
  .j7l-dl dd { font-size: 28px; }
  .j7l-dl--lg { gap: 28px; }
  .j7l-dl--lg dd { font-size: 36px; }

  /* Photo rows: edge to edge, the same hairline between photos and between rows. */
  .j7l-row:not(.j7l-row--grid) { gap: var(--gap); margin-inline: calc(-1 * var(--gutter)); }
  .j7l-row:not(.j7l-row--grid) + .j7l-row:not(.j7l-row--grid) { margin-top: calc(var(--gap) - 20px); }
  .j7l-photo { flex: 1 1 40%; }
  .j7l-photo img { height: 58vw; }
  .j7l-photo:only-child img { height: 78vw; }
  /* Trip rows keep each photo's shape here too. A row wraps into lines of two or three; photos on a
     line share its height, and one left on its own fills the width. */
  .j7l-row--photos { --maxh: 128vw; max-width: none; flex-wrap: wrap; margin-inline: calc(-1 * var(--gutter)); width: auto; }
  /* No height cap here: a cap narrows a tall photo and leaves a gap beside it. A very tall one is trimmed instead. */
  /* Growth is scaled up because a lone photo whose share is under 1 would take only that fraction of the line. */
  .j7l-row--photos .j7l-photo { flex: calc(var(--ar) * 10) 1 calc(var(--ar) * 29vw); aspect-ratio: max(var(--ar), 0.78); max-height: none; }
  .j7l-row--photos .j7l-photo img { height: 100%; }
  .j7l-photo figcaption { padding: 8px 12px; font-size: 13px; }

  /* Cards: a tall lead, then two to a line. */
  .j7l-row--grid { grid-template-columns: 1fr 1fr; gap: var(--gap); margin-inline: calc(-1 * var(--gutter)); }
  .j7l-row--grid .j7l-card, .j7l-row--grid .j7l-card--tall { height: 62vw; }
  .j7l-row--grid .j7l-card--lead { height: 112vw; }
  .j7l-row--grid:not(:has(.j7l-card--lead)) > :last-child:nth-child(odd) { grid-column: 1 / -1; height: 78vw; }
  .j7l-row--grid:has(.j7l-card--lead):not(.j7l-row--rows) > :last-child:nth-child(even) { grid-column: 1 / -1; height: 78vw; }
  .j7l-row--grid .j7l-card:not(.j7l-card--lead) .j7l-card-tags { display: none; }
  .j7l-row--grid .j7l-card:not(.j7l-card--lead) .j7l-card-foot { left: 14px; right: 14px; bottom: 14px; gap: 6px; }
  .j7l-row--grid .j7l-card:not(.j7l-card--lead) .j7l-card-title { font-size: clamp(15px, 10cqi, 30px); }
  .j7l-row--grid .j7l-card:not(.j7l-card--lead) .j7l-card-foot .j7l-mono { font-size: 10px; letter-spacing: 0.04em; }
  .j7l-card--lead .j7l-card-tags { left: 20px; top: 20px; }
  .j7l-card--lead .j7l-card-foot { left: 20px; right: 20px; bottom: 22px; }
  .j7l-button--wide { align-self: stretch; justify-content: space-between; }

  /* A matched activity: facts first, a shorter map. */
  .j7l-activity-facts { padding: 20px; gap: 20px; }
  .j7l-activity-map { min-height: 260px; }
  .j7l-mapframe { min-height: 0; }
}

/* ---------- Lightbox: the whole photo ---------- */
.j7l-photo[role="button"] { cursor: zoom-in; }
.j7l-photo[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.j7l-locked { overflow: hidden; }
.j7l-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; background: rgba(5, 6, 8, 0.96); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s 0.3s; }
.j7l-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
.j7l-lightbox figure { grid-column: 2; margin: 0; height: 100dvh; padding: 56px 0 20px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.j7l-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; opacity: 0; scale: 0.985; }
.j7l-lightbox img.is-in { opacity: 1; scale: 1; transition: opacity 0.45s var(--ease), scale 0.6s var(--ease); }
.j7l-lightbox figcaption { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; width: 100%; max-width: 900px; font-size: 14px; color: var(--soft); }
.j7l-lightbox-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.j7l-lightbox button { appearance: none; background: none; border: 0; color: var(--text); font: inherit; font-size: 22px; width: 48px; height: 48px; cursor: pointer; justify-self: center; opacity: 0.7; transition: opacity 0.2s; }
.j7l-lightbox button:hover, .j7l-lightbox button:focus-visible { opacity: 1; }
.j7l-lightbox button:focus-visible { outline: 2px solid var(--accent); }
.j7l-lightbox-close { position: absolute; top: 12px; right: 16px; font-size: 30px !important; }
.j7l-lightbox-prev { grid-column: 1; grid-row: 1; }
.j7l-lightbox-next { grid-column: 3; grid-row: 1; }
@media (max-width: 719px) {
  .j7l-lightbox { grid-template-columns: 1fr; }
  .j7l-lightbox figure { grid-column: 1; padding: 56px 0 16px; }
  .j7l-lightbox figcaption { padding: 0 var(--gutter); box-sizing: border-box; }
  .j7l-lightbox-prev, .j7l-lightbox-next { display: none; } /* Swipe instead. */
}
@media (prefers-reduced-motion: reduce) { .j7l-lightbox, .j7l-lightbox img { transition: none !important; } }

/* ---------- Rides page: smaller cards than a trip gets ---------- */
.j7l-row--small .j7l-card { height: 340px; }
@media (min-width: 1100px) { .j7l-row--small { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1640px) { .j7l-row--small { grid-template-columns: repeat(5, 1fr); } }
.j7l-row--small .j7l-card .j7l-card-title { font-size: clamp(18px, 8cqi, 34px) !important; }

/* ---------- Atlas: the map of everything ---------- */
.j7l-atlas { position: relative; height: calc(100svh - 96px - 170px); min-height: 460px; background: #07080A; border-top: 1px solid var(--line); }
.j7l-atlas > .map { position: absolute; inset: 0; }
.j7l-atlas .pin { cursor: pointer; }
.j7l-atlas-key { position: absolute; left: var(--gutter); top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px; background: rgba(8, 9, 11, 0.82); border: 1px solid var(--line); font-size: 12px; pointer-events: none; }
.j7l-atlas-card { position: absolute; left: var(--gutter); bottom: 28px; width: min(360px, calc(100% - 2 * var(--gutter))); display: flex; background: rgba(8, 9, 11, 0.92); border: 1px solid var(--line-strong); color: var(--text); overflow: hidden; animation: j7l-settle 0.5s var(--ease) both; container-type: inline-size; }
.j7l-atlas-card[hidden] { display: none; }
.j7l-atlas-card:hover { text-decoration: none; border-color: var(--accent); }
.j7l-atlas-card img { width: 38%; aspect-ratio: 1; object-fit: cover; flex: none; }
.j7l-atlas-card-copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 16px; min-width: 0; }
.j7l-atlas-card .j7l-card-title { font-size: 22px; line-height: 0.95; }
.j7l-atlas-card .j7l-mono { font-size: 11px; }
@media (max-width: 719px) {
  .j7l-atlas { height: calc(100svh - 70px - 150px); min-height: 380px; }
  .j7l-atlas-stats .j7l-figure-value { font-size: 30px; }
  .j7l-atlas-stats .j7l-mono { font-size: 10px; }
  .j7l-atlas-key { top: 12px; font-size: 11px; padding: 8px 10px; }
  .j7l-nav-links { gap: 0; font-size: 13px; }
  .j7l-nav-links a { padding: 12px 10px; }
  .j7l-row--small .j7l-card { height: 62vw; }
}
.j7l-cues { display: flex; flex-wrap: wrap; gap: 0 28px; }
.j7l-atlas-stats .j7l-figure { padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.j7l-atlas-stats .j7l-figure-value { font-size: clamp(34px, 3.6vw, 52px); }
.j7l-atlas-stats .j7l-mono { font-size: 11px; }
.j7l-atlas-note { margin: 0; padding: 20px var(--gutter) 40px; font-size: 11px; line-height: 1.8; max-width: 1100px; }

/* ---------- A short list of facts: label, then the fact ---------- */
.j7l-prose ul.j7l-facts { list-style: none; padding: 0; margin: 0 0 48px; border-bottom: 1px solid var(--line); }
.j7l-facts li { display: grid; grid-template-columns: 170px 1fr; gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px; line-height: 1.5; color: var(--soft); }
.j7l-facts li strong { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); padding-top: 5px; }
@media (max-width: 719px) { .j7l-facts li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; font-size: 17px; } .j7l-facts li strong { padding-top: 0; color: var(--muted); } }
/* A unit after a big number is small and never drops to its own line. */
.j7l-figure-value { white-space: nowrap; }
.j7l-unit { font-size: 0.42em; letter-spacing: 0.02em; margin-left: 0.2em; }
