/* Rivulet — Paddy Keelan author site
   Direction: "River at Night". Tokens follow the Claude Design handoff. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0D1014;
  --bg-raised: #10141A;
  --surface-hatch: #141A21;
  --line: #1E242B;
  --line-strong: #2A323B;
  --line-input: #4A525B;
  --line-button: #6A727B;
  --ink: #EDEAE2;
  --ink-2: #DAD6CC;
  --ink-body: #C9C6BE;
  --ink-excerpt: #D6D2C9;
  --ink-nav: #B4BAC0;
  --ink-muted: #9AA1A8;
  --ink-faint: #8E959C;
  --gold: #E2B33C;
  --gold-hover: #F0CD6E;
  --on-gold: #15171A;
  --star: #F4EBD0;
  --river-a: #1F4257;
  --river-b: #3E6E8C;

  --gutter: max(32px, calc(50% - 584px));
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Type pairing. Default = 3 Hangar Stencil.
     To switch pairing: set data-pairing on <html> and load that pairing's
     fonts in index.html (see the link tag comment there). */
  --sans: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --sans-w: 800;
  --sans-stretch: 100%;
  --serif: 'Literata', Georgia, serif;
  --serif-fvs: normal;
  --label: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --label-size: 15px;
  --label-track: .16em;
  --title-size: 250px;
  --h2-size: 80px;
  --body-size: 18px;
  /* Caps title style (pairings 1–3) */
  --title-track: .06em;
  --title-tf: uppercase;
  --h2-track: .03em;
}

/* Title-case title style (pairings 4–6 default) */
[data-title="case"] { --title-track: -.035em; --title-tf: none; --h2-track: -.02em; }

[data-pairing="1"] { --sans: 'Barlow Condensed', sans-serif; --sans-w: 800; --serif: 'Source Serif 4', serif; --label: 'Barlow Condensed', sans-serif; --label-size: 15px; --label-track: .14em; --title-size: 230px; --h2-size: 76px; --body-size: 19px; }
[data-pairing="2"] { --sans: 'Archivo', sans-serif; --sans-w: 900; --sans-stretch: 125%; --serif: 'Newsreader', serif; --label: var(--mono); --label-size: 12px; --label-track: .14em; --title-size: 150px; --h2-size: 56px; --body-size: 20px; }
[data-pairing="4"] { --sans: 'IBM Plex Sans Condensed', sans-serif; --sans-w: 700; --serif: 'IBM Plex Serif', serif; --label: var(--mono); --label-size: 12px; --label-track: .12em; --title-size: 190px; --h2-size: 64px; --body-size: 18px; }
[data-pairing="5"] { --sans: 'Bricolage Grotesque', sans-serif; --sans-w: 800; --serif: 'Fraunces', serif; --serif-fvs: 'SOFT' 100, 'WONK' 0; --label: var(--mono); --label-size: 12px; --label-track: .12em; --title-size: 180px; --h2-size: 64px; --body-size: 19px; }
[data-pairing="6"] { --sans: 'Inter Tight', sans-serif; --sans-w: 800; --serif: 'EB Garamond', serif; --label: 'Inter Tight', sans-serif; --label-size: 12px; --label-track: .16em; --title-size: 180px; --h2-size: 64px; --body-size: 21px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-variation-settings: var(--serif-fvs);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; font-family: var(--sans); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.section { padding: 120px var(--gutter); }
.raised { background: var(--bg-raised); }

/* ---------- Text styles ---------- */
.display { font-family: var(--sans); font-weight: var(--sans-w); font-stretch: var(--sans-stretch); }
.h2 {
  margin: 0;
  font-family: var(--sans); font-weight: var(--sans-w); font-stretch: var(--sans-stretch);
  font-size: min(var(--h2-size), 13vw);
  letter-spacing: var(--h2-track); text-transform: var(--title-tf); line-height: 1;
}
.h2--70 { font-size: min(calc(var(--h2-size) * .7), 11vw); }
.h2--75 { font-size: min(calc(var(--h2-size) * .75), 11vw); line-height: 1.05; }
.h2--80 { font-size: min(calc(var(--h2-size) * .8), 12vw); }
.eyebrow {
  font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-track);
  text-transform: uppercase; font-weight: 600; color: var(--ink-muted);
}
.eyebrow--gold { color: var(--gold); }
.label-sm { font-family: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.body { font-size: var(--body-size); line-height: 1.7; color: var(--ink-body); }
.lede { font-style: italic; color: var(--ink-muted); font-size: 19px; }
.mono { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-faint);
  border: 1px dashed var(--line-input); padding: 4px 8px; align-self: flex-start; white-space: normal;
}
/* Add class="hide-placeholders" to <body> to hide all "TBC" tags at once */
.hide-placeholders .tag { display: none; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.head-row--baseline { align-items: baseline; }
.stack { display: flex; flex-direction: column; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; white-space: nowrap; text-decoration: none;
  padding: 16px 26px; font-family: var(--sans); font-stretch: var(--sans-stretch);
  font-size: 17px; letter-spacing: .04em; line-height: 1.2;
}
.btn--primary { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.btn--primary:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn--secondary { border: 1px solid var(--line-button); color: var(--ink); font-weight: 600; }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 14px 24px; font-size: 16px; }
.btn--glow { box-shadow: 0 0 40px rgba(226,179,60,.3); }

.chip {
  padding: 8px 14px; font-family: var(--sans); font-weight: 600; font-stretch: var(--sans-stretch);
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink-nav);
}
.chip:hover { color: var(--ink); }
.chip[aria-selected="true"], .chip[aria-pressed="true"], input:checked + .chip { border-color: var(--gold); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Email field ---------- */
.email-form { display: flex; flex-direction: column; gap: 10px; }
.email-row { display: flex; flex-wrap: wrap; border: 1px solid var(--line-input); background: var(--bg); }
.email-row input {
  flex: 1; min-width: 200px; background: transparent; border: 0; color: var(--ink);
  padding: 16px 18px; font-family: var(--serif); font-size: 18px; outline: none;
}
.email-row:focus-within { border-color: var(--ink-faint); }
.email-row .btn { border: 0; font-size: 16px; padding: 16px 24px; }
.email-form--lg .email-row input { padding: 18px 20px; }
.email-form--lg .email-row .btn { font-size: 17px; padding: 18px 26px; }
.form-msg { font-size: 16px; font-style: italic; color: var(--ink-muted); min-height: 1.4em; }
.form-msg.is-ok { color: var(--gold); }
.form-msg.is-err { color: #E88B6A; }
.is-done .email-row { display: none; }

/* ---------- Image slots (placeholder until Paddy's photos arrive) ---------- */
.slot {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface-hatch) 0 8px, var(--bg-raised) 8px 16px);
  display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint); padding: 12px;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stars ---------- */
.starfield { position: absolute; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: var(--star); }
@media (prefers-reduced-motion: no-preference) {
  .star.tw { animation: twinkle 5s ease-in-out infinite alternate; }
  @keyframes twinkle { to { opacity: .15; } }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px var(--gutter);
  background: rgba(13,16,20,.95); border-bottom: 1px solid var(--line);
  /* no backdrop blur: at this opacity it was invisible but forced a full redraw under the bar every frame */
}
.nav__brand {
  display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
/* Logo lockup: the title in the hero's serif, the byline in the bold condensed sans. */
.nav__brand-title { font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
.nav__brand-by {
  font-family: var(--sans); font-weight: var(--sans-w); font-stretch: var(--sans-stretch);
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.nav__brand:hover { color: var(--ink); }
.nav__links {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); white-space: nowrap; min-width: 0;
  font-family: var(--sans); font-weight: 600; font-stretch: var(--sans-stretch);
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.nav__links a { color: var(--ink-nav); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__substack { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav__links .nav__substack:hover { color: var(--gold-hover); border-bottom-color: var(--gold-hover); }
.nav__links .nav__notify { color: var(--gold); }
.nav__links .nav__notify:hover { color: var(--gold-hover); }
/* Journey submenu. Panel drops in, then each place slides down in turn (--i). */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__parent { display: inline-flex; align-items: center; gap: 7px; }
.nav__parent::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; transition: transform .3s cubic-bezier(.2,.8,.2,1), margin .3s; }
.nav__sub {
  position: absolute; top: 100%; left: 50%; z-index: 30; padding-top: 26px; /* bridges the gap to the bar so the menu doesn't close on the way down */
  transform: translateX(-50%); visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .25s;
}
.nav__sub ul {
  list-style: none; margin: 0; padding: 10px 0; min-width: 270px;
  background: rgba(13,16,20,.97); border: 1px solid var(--line-strong); border-top: 2px solid var(--gold);
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-10px) scaleY(.92); transform-origin: 50% 0;
  transition: opacity .2s ease, transform .25s ease;
}
.nav__sub li { opacity: 0; transform: translateY(-14px); transition: opacity .15s ease, transform .15s ease; }
.nav__sub a {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: baseline; gap: 14px;
  padding: 11px 22px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__sub-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .55; align-self: center; transition: opacity .2s, box-shadow .2s, transform .2s; }
.nav__sub-name { font-size: 15px; letter-spacing: .08em; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.nav__sub-years { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--ink-faint); }
.nav__sub a:hover, .nav__sub a:focus-visible { background: rgba(226,179,60,.07); color: var(--gold); outline: none; }
.nav__sub a:hover .nav__sub-dot, .nav__sub a:focus-visible .nav__sub-dot { opacity: 1; transform: scale(1.3); box-shadow: 0 0 10px 2px rgba(226,179,60,.55); }
.nav__sub a:hover .nav__sub-name, .nav__sub a:focus-visible .nav__sub-name { transform: translateX(3px); }
.nav__sub a[aria-current="page"] { color: var(--gold); }
.nav__sub a[aria-current="page"] .nav__sub-dot { opacity: 1; }
@media (min-width: 1101px) {
  .nav__item:is(:hover, :focus-within, .is-open):not(.is-shut) .nav__parent { color: var(--ink); }
  .nav__item:is(:hover, :focus-within, .is-open):not(.is-shut) .nav__parent::after { transform: rotate(225deg); margin-top: 3px; }
  .nav__item:is(:hover, :focus-within, .is-open):not(.is-shut) .nav__sub { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav__item:is(:hover, :focus-within, .is-open):not(.is-shut) .nav__sub ul { opacity: 1; transform: none; transition: opacity .25s ease, transform .45s cubic-bezier(.2,.9,.25,1); }
  .nav__item:is(:hover, :focus-within, .is-open):not(.is-shut) .nav__sub li {
    opacity: 1; transform: none;
    transition: opacity .35s ease, transform .5s cubic-bezier(.2,1.25,.35,1);
    transition-delay: calc(80ms + var(--i) * 55ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__sub ul, .nav__sub li { transform: none !important; }
}
.nav__toggle { display: none; color: var(--ink); width: 44px; height: 44px; margin-right: -10px; padding: 0; place-items: center; background: none; border: 0; cursor: pointer; }
.nav__burger { position: relative; display: block; width: 24px; height: 16px; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s, top .35s cubic-bezier(.2,.8,.2,1); }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 7px; }
.nav__burger span:nth-child(3) { top: 14px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(860px, calc(100svh - 64px)); min-height: 620px; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,16,20,.55) 0%, rgba(13,16,20,.12) 22%, rgba(13,16,20,0) 42%, rgba(13,16,20,.15) 56%, rgba(13,16,20,.6) 74%, rgba(13,16,20,.9) 90%, #0D1014 100%);
}
.hero .starfield { inset: 0 0 62% 0; }
.hero__heading { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero__title {
  margin: 0;
  font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300;
  font-size: min(170px, 22vw); letter-spacing: -0.01em;
  line-height: .95;
}
.hero__sub { margin: 0; font-size: 30px; font-style: italic; font-weight: 300; color: var(--ink-2); max-width: 760px; line-height: 1.3; }
.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px;
}
.hero__byline { margin: 0; font-size: 20px; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn--secondary { background: rgba(13,16,20,.5); }

/* ---------- About the Book ---------- */
.book { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 72px; }
.pull { margin: 0; font-size: 46px; line-height: 1.2; font-weight: 300; font-style: italic; text-wrap: pretty; }
.pull em { font-style: italic; color: var(--gold); }

/* ---------- Excerpt ---------- */
.excerpt { padding: 120px 32px; display: flex; justify-content: center; }
.excerpt__col { max-width: 680px; width: 100%; display: flex; flex-direction: column; gap: 28px; }
.excerpt__text { position: relative; display: flex; flex-direction: column; gap: 22px; font-size: calc(var(--body-size) + 2px); line-height: 1.8; color: var(--ink-excerpt); }
/* Header and passage share one scroll fade: lines fade in rising from the bottom of the screen and
   fade out nearing the top. main.js sets the three positions, in px from the top of this block. */
.excerpt__read { display: flex; flex-direction: column; gap: 32px; }
.excerpt__read.is-fading {
  --fade-mask: linear-gradient(180deg, transparent var(--fade-top), #000 calc(var(--fade-top) + var(--fade-band)), #000 calc(var(--fade-bottom) - var(--fade-band)), transparent var(--fade-bottom));
  -webkit-mask-image: var(--fade-mask); mask-image: var(--fade-mask);
}
.dropcap { float: left; font-family: var(--sans); font-weight: var(--sans-w); font-size: 84px; line-height: .8; padding: 8px 12px 0 0; color: var(--gold); }
.excerpt .excerpt__title { margin: 0; font-family: 'Noto Serif Display', Georgia, serif; font-style: normal; font-weight: 300; font-stretch: normal; font-size: min(52px, calc((100vw - 48px) / 13)); line-height: 1.1; letter-spacing: -0.005em; text-transform: none; color: var(--ink); }
.sky__ly { display: inline-block; margin-top: 6px; font-family: var(--label); font-weight: 600; font-size: .92em; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.excerpt__cta { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 28px; }
.excerpt__cta p { font-size: 22px; font-style: italic; }

/* ---------- Journey: full-bleed constellation map ---------- */
.journey {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(640px, 54vw, 900px);
  /* Rise up under the Book section's bottom padding so the map surfaces from the dark
     beneath the text instead of starting at a hard edge. */
  margin-top: -110px;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #121A23, rgba(13,16,20,0) 75%);
}
/* Soft edges: the map, its route and the stars fade to transparent (a mask, not a dark overlay),
   so the page background is the only colour where the map meets the sections above and below.
   A painted overlay can render a shade off from the page once the map gets its own GPU layer. */
@media (min-width: 761px) {
  .journey {
    --journey-fade:
      linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 9%, rgba(0,0,0,.35) 17%, rgba(0,0,0,.75) 26%, #000 34%, #000 76%, rgba(0,0,0,.4) 90%, transparent 100%),
      linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 9%, #000 91%, rgba(0,0,0,.25) 100%);
  }
  .journey .map__svg, .journey .starfield {
    -webkit-mask-image: var(--journey-fade); mask-image: var(--journey-fade);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
.journey__viewport { position: absolute; inset: 0; overflow: hidden; }
.journey__stage { position: absolute; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; } /* decorative: skip hit-testing the coastlines on every mouse move */
.map__land { opacity: 1; }
.journey .map__land path { fill: #1C2631; stroke: #34424F; }
.map__glow { display: none; position: absolute; left: 0; top: 0; width: 400px; height: 400px; border-radius: 50%; pointer-events: none;
  transform: translate(-999px, -999px) scale(0); will-change: transform; opacity: .8; transition: opacity .3s;
  background: radial-gradient(circle, rgba(140,170,200,.22) 0%, rgba(140,170,200,.12) 35%, rgba(140,170,200,0) 70%); }
.journey.is-hovering .map__glow { display: block; }
.journey.in-area-glow .map__glow { opacity: 1; background: radial-gradient(circle, rgba(170,190,215,.26) 0%, rgba(226,179,60,.07) 40%, rgba(140,170,200,0) 70%); }
.journey.in-area { cursor: pointer; }
.map__grid { fill: none; stroke: #1E2731; stroke-width: 1; opacity: .7; }
/* stroke-width and dash spacing are set per screen size in JS */
.map__link { stroke: var(--gold); stroke-linecap: round; opacity: .8; transition: opacity .3s; }
/* Once drawn, the dots drift slowly along the route, place to place (--dash set in main.js). */
@media (prefers-reduced-motion: no-preference) {
  .journey.is-drawn .map__link { animation: linkDrift 2.4s linear infinite; }
  @keyframes linkDrift { to { stroke-dashoffset: calc(var(--dash, 10px) * -1); } }
}
.journey.has-active .map__link { opacity: .2; }
.journey.has-active .map__link.is-on { opacity: 1; }
.journey .starfield { inset: 0; z-index: 2; opacity: .8; }
.journey__head {
  position: absolute; z-index: 3; bottom: 72px; left: var(--gutter);
  display: flex; flex-direction: column; gap: 14px; pointer-events: none;
}
.journey__head .h2 { margin: 0; }
.journey__list { display: none; }

/* Pins: glowing stars with a pulsing ring so they read as clickable */
.pin { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 0; transform: translate(-17px, -50%); transform-origin: 17px 50%; cursor: pointer; text-align: left; }
.pin__dot { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.pin__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 3px rgba(226,179,60,.65), 0 0 28px 8px rgba(226,179,60,.18); transition: transform .25s; }
.pin__dot::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold); border-radius: 50%; opacity: 0; }
.pin__text { display: flex; flex-direction: column; white-space: nowrap; line-height: 1.25; }
.pin__name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-stretch: var(--sans-stretch); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: color .2s; }
.pin__years { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-muted); }
.pin:hover .pin__name, .pin[aria-expanded="true"] .pin__name { color: var(--gold); }
.pin:hover .pin__dot::before, .pin[aria-expanded="true"] .pin__dot::before { transform: scale(1.3); }
.pin[aria-expanded="true"] .pin__dot::after { opacity: 1; animation: none; inset: 2px; }
.journey.has-active .pin[aria-expanded="false"] { opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  /* Pins pop in one by one as the section scrolls into view, each with a single pulse. */
  .journey:not(.is-seen) .pin, .journey:not(.is-seen) .map__link { opacity: 0; }
  .journey.is-seen .pin { animation: pinIn .65s cubic-bezier(.2, 1.7, .45, 1) both; animation-delay: var(--d, 0s); }
  @keyframes pinIn { from { opacity: 0; transform: translate(-17px, -50%) scale(.2); } }
  .journey.is-seen .pin__dot::after { animation: ping 1.6s ease-out 1 both; animation-delay: calc(var(--d, 0s) + .3s); }
  @keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
  .journey.is-settled .pin, .journey.is-settled .pin__dot::after { animation: none; }
  .place.is-in { animation: cardIn .22s ease-out; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(6px); } }
}

/* Place card (opens next to the pin) */
.place {
  position: absolute; z-index: 5; width: 340px; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 26px 26px; background: rgba(13,16,20,.9); border: 1px solid var(--line-strong); border-top: 2px solid var(--gold);
  box-shadow: 0 24px 60px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.place[hidden] { display: none; }
.place__close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; font-size: 22px; line-height: 1; color: var(--ink-muted); }
.place__close:hover { color: var(--ink); }
.place__coord { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.place__name { margin: 0; font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300; font-size: 40px; line-height: 1.05; }
.place__years { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-muted); }
.place__line { margin: 2px 0 0; font-size: 19px; line-height: 1.5; font-style: italic; color: var(--ink-body); }
.place__towns { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-strong); list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.4; }
.place__towns li::before { content: "· "; color: var(--gold); }
.place__links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.place__go { align-self: flex-start; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--on-gold); background: var(--gold); padding: 10px 16px; }
.place__go:hover { background: var(--gold-hover); color: var(--on-gold); }
.place__go span { display: inline-block; transition: transform .2s; }
.place__go:hover span { transform: translateX(3px); }
.place__map { font-size: 15px; }

/* ---------- The Colorado (river strip) ---------- */
.river { display: flex; flex-direction: column; gap: 20px; padding-top: 72px; }
.river__links { display: flex; gap: 24px; font-size: 16px; white-space: nowrap; }
.river__title strong { font-weight: 700; color: var(--ink); }
.river-scroll { position: relative; display: flex; flex-direction: column; gap: 56px; padding-top: 24px; }
.strip { position: relative; height: 290px; margin: 0 22px; } /* height and every position are set in main.js */
.strip__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.strip__glow { fill: none; stroke: rgba(62,110,140,.22); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.strip__river { fill: none; stroke: url(#river-grad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.strip__leads line { stroke: rgba(226,179,60,.4); stroke-width: 1; }
.strip__bracket { position: absolute; border-radius: 18px 18px 0 0; background: rgba(27,36,46,.5); } /* reads as #141A21, the close-up colour, but lets the river show through */
.river-zoom { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.zoom__fill { fill: #141A21; }
.strip__gorge { position: absolute; transform: translateX(-50%); font-family: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; text-align: center; line-height: 1.4; }
.rapid__name { position: absolute; display: flex; align-items: flex-end; transform: translateX(-50%); }
.rapid__name.is-below { align-items: flex-start; }
.rapid__name span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--sans); font-weight: 600; font-stretch: var(--sans-stretch); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-body); white-space: nowrap; }
.rapid__name.is-below span { transform: none; }
.rapid__mi { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 10px; letter-spacing: .02em; color: var(--ink-faint); margin-block-end: 7px; }
.rapid__dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(226,179,60,.45); transform: translate(-50%, -50%); }
/* A gorge rapid in flight from the strip to the close-up. */
.rapid__fly { position: absolute; left: -3px; top: -3px; z-index: 3; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(226,179,60,.6); pointer-events: none; opacity: 0; will-change: transform; }
/* The close-up. Its frame (fill + border) grows out of the bracket as it scrolls into view. */
.inset { --grow: 1; --reveal: 1; position: relative; height: 144px; }
.inset__frame { position: absolute; inset: 0; background: #141A21; border-radius: 48px 48px 22px 22px; transform-origin: 0 0; will-change: transform; }
.inset__label { position: absolute; left: 16px; top: 12px; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); opacity: var(--reveal); }
.inset__track { position: absolute; left: 24px; right: 24px; top: 0; bottom: 0; }
/* Close-up line centre is y = 103px. */
.inset__line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; transform: scaleX(var(--grow)); transform-origin: 0 0; opacity: var(--grow); }
.inset__line path { fill: none; stroke: var(--river-b); stroke-width: 2; stroke-linecap: round; }
.irapid { position: absolute; top: 103px; width: 0; height: 0; }
.irapid__name, .irapid__mile { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; opacity: var(--reveal); }
.irapid__name { font-family: var(--sans); font-weight: 600; font-stretch: var(--sans-stretch); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.irapid__mile { top: 10px; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
.irapid__stem { position: absolute; left: -.5px; bottom: 6px; width: 1px; background: var(--line-input); opacity: var(--reveal); }
.irapid__dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0; }
.inset.is-built .irapid__dot { opacity: 1; }

/* ---------- River Log ---------- */
.log { padding: 120px 0; display: flex; flex-direction: column; gap: 32px; }
.log__head { padding: 0 var(--gutter); }
.log__row { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 12px; margin: 0; list-style: none; }
.day { flex: none; width: 230px; display: flex; flex-direction: column; gap: 12px; }
.day__photo { height: 160px; }
.day__top { display: flex; justify-content: space-between; align-items: baseline; }
.day__n { font-family: var(--sans); font-weight: var(--sans-w); font-stretch: var(--sans-stretch); font-size: 30px; line-height: 1; }
.day__mile { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.day__camp { font-family: var(--sans); font-weight: 600; font-stretch: var(--sans-stretch); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.day__line { font-size: 16px; line-height: 1.45; font-style: italic; color: var(--ink-muted); }
.log__row::-webkit-scrollbar { height: 6px; }
.log__row::-webkit-scrollbar-thumb { background: var(--line-strong); }

/* ---------- Star chart ---------- */
.sky { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 72px; align-items: center; }
.chart { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 50%, #121925, #080B0F 75%); border: 1px solid var(--line); justify-self: center; }
.chart__band { position: absolute; left: -20%; top: 38%; width: 140%; height: 26%; transform: rotate(-38deg); background: radial-gradient(ellipse at center, rgba(220,214,196,.16), rgba(220,214,196,0) 70%); }
.chart__label { position: absolute; display: flex; align-items: center; gap: 6px; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.chart__label { transform: translate(calc(var(--s, 6px) / -2), -50%); gap: 8px; font-size: 12px; }
.chart__label::before { content: ""; flex: none; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%; background: #FFF6DC; box-shadow: 0 0 6px 2px rgba(255,240,200,.7), 0 0 18px 4px rgba(226,179,60,.35); }
.chart__dir { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.spec { display: flex; flex-direction: column; font-family: var(--label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid var(--line); margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-muted); }
.spec dd { margin: 0; text-align: right; }
.sky__quote { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sky__quote blockquote { margin: 0; font-size: 26px; line-height: 1.45; font-style: italic; color: var(--ink-body); text-wrap: pretty; }
.sky__quote figcaption { font-family: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.footnote { font-size: 15px; font-style: italic; color: var(--ink-faint); }

/* ---------- About Paddy ---------- */
.about { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 80px; }
.about__portrait { height: 540px; overflow: hidden; }
.about__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 47% 40%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px 16px; border-top: 1px solid var(--line); padding-top: 28px; margin: 8px 0 0; }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats dd { margin: 0; font-family: var(--sans); font-weight: var(--sans-w); font-stretch: var(--sans-stretch); font-size: 44px; line-height: 1; order: -1; }
.stats dt { font-family: var(--label); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; line-height: 1.35; }
.creds { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q { margin: 0; }
.faq__q button { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 22px 0; font-family: var(--sans); font-weight: 700; font-stretch: var(--sans-stretch); font-size: 21px; line-height: 1.25; }
.faq__q button::after { content: "+"; color: var(--gold); }
.faq__q button[aria-expanded="true"]::after { content: "−"; }
.faq__q button:hover { color: var(--gold-hover); }
.faq__a { padding: 0 0 24px; font-size: 19px; line-height: 1.65; color: var(--ink-body); }

/* ---------- Where to help ---------- */
.help { display: flex; flex-direction: column; gap: 32px; }
.help__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; margin: 0; list-style: none; padding-left: 0; }
.help__grid li { display: flex; flex-direction: column; gap: 8px; }
.help__org { font-size: 19px; }
.help__logo { display: flex; align-items: center; justify-content: flex-start; width: 200px; height: 84px; margin-bottom: 10px; }
.help__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* ---------- Get notified ---------- */
.notify { position: relative; padding: 140px 32px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; overflow: hidden; }
.notify .starfield { inset: 0; }
.notify > :not(.starfield) { position: relative; }
.notify .h2 { line-height: 1.05; max-width: 1000px; }
.notify__sub { font-size: 20px; color: var(--ink-muted); font-style: italic; }
.notify .email-form { margin-top: 12px; width: min(560px, 100%); }

/* ---------- Contact ---------- */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.line-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-input); color: var(--ink); padding: 14px 0; font-family: var(--serif); font-size: 18px; outline: none; border-radius: 0; }
.line-input:focus { border-bottom-color: var(--gold); }
textarea.line-input { resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; border: 0; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 32px var(--gutter); border-top: 1px solid var(--line); font-family: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.footer a { color: var(--ink-faint); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__brand { font-family: var(--sans); font-weight: var(--sans-w); font-stretch: var(--sans-stretch); font-size: 18px; color: var(--ink); }
.footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer nav a + a::before { content: "· "; color: var(--ink-faint); }

/* ---------- Location pages (places/*.html) ---------- */
.lp-hero { position: relative; overflow: hidden; height: min(760px, calc(100svh - 64px)); min-height: 560px; background: var(--bg); }
.lp-hero__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,16,20,.35) 0%, rgba(13,16,20,0) 30%, rgba(13,16,20,.15) 55%, rgba(13,16,20,.85) 85%, var(--bg) 100%), linear-gradient(90deg, rgba(13,16,20,.7) 0%, rgba(13,16,20,0) 45%); }
.lp-hero .starfield { inset: 0; z-index: 1; opacity: .8; }
.lp-hero__body { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 64px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.lp-back { align-self: flex-start; margin-bottom: 32px; font-family: var(--label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 8px 14px; background: rgba(13,16,20,.5); }
.lp-back:hover { color: var(--gold); border-color: var(--gold); }
.lp-title { margin: 0; font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300; font-size: clamp(64px, 11vw, 150px); line-height: .95; letter-spacing: -.01em; }
.lp-years { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--ink-muted); }
.lp-line { margin: 6px 0 0; font-size: 26px; line-height: 1.4; font-style: italic; font-weight: 300; color: var(--ink-2); }
.lp-link { fill: none; stroke: var(--gold); stroke-linecap: round; opacity: .35; }
.lp-link.is-on { opacity: .9; }
.lp-other { fill: var(--gold); opacity: .5; }
.lp-halo { fill: none; stroke: var(--gold); opacity: 0; }
.lp-glow { fill: var(--gold); opacity: .18; }
.lp-core { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .lp-halo { transform-box: fill-box; transform-origin: center; animation: lpPing 1.8s ease-out .3s 1 both; }
  @keyframes lpPing { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
}
.lp-story { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 80px; align-items: start; }
.lp-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.lp-towns { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lp-towns li::before { content: "· "; color: var(--gold); }
.lp-towns .lp-towns__tbc { color: var(--ink-faint); }
.lp-maplink { font-size: 16px; }
.lp-story__text { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.lp-story__body { display: flex; flex-direction: column; gap: 22px; font-size: calc(var(--body-size) + 2px); line-height: 1.8; color: var(--ink-excerpt); }
.lp-story__body p { margin: 0; }
.lp-pending { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border: 1px dashed var(--line-input); color: var(--ink-muted); font-style: italic; }
.lp-gallery { display: flex; flex-direction: column; gap: 28px; }
.lp-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 260px 260px; gap: 12px; }
.lp-photos > :first-child { grid-row: span 2; }
.lp-photos > :last-child { grid-column: span 2; }
.lp-pager { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-top: 4px solid #22262C; }
/* Stars from the section below drift over both photos; text sits above them. */
.lp-pager .starfield { inset: 0; z-index: 2; opacity: .6; }
.lp-pager__link { position: relative; display: flex; align-items: center; min-height: 112px; padding: 20px var(--gutter); text-decoration: none; color: #F4F0E8; overflow: hidden; }
.lp-pager__link--next { justify-content: flex-end; text-align: right; border-left: 1px solid rgba(255,255,255,.1); }
.lp-pager__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.lp-pager__link::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,16,20,.86) 0%, rgba(13,16,20,.52) 55%, rgba(13,16,20,.32) 100%); transition: opacity .4s ease; }
.lp-pager__link--next::after { background: linear-gradient(270deg, rgba(13,16,20,.86) 0%, rgba(13,16,20,.52) 55%, rgba(13,16,20,.32) 100%); }
.lp-pager__text { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.lp-pager__link--next .lp-pager__text { align-items: flex-end; }
.lp-pager__dir { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,240,232,.75); transition: transform .3s ease, color .3s ease; }
.lp-pager__name { font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.05; color: #fff; }
.lp-pager__years { font-family: var(--mono); font-size: 11px; color: rgba(244,240,232,.6); }
.lp-pager__link:hover .lp-pager__img { transform: scale(1.04); }
.lp-pager__link:hover::after { opacity: .8; }
.lp-pager__link:hover .lp-pager__dir { color: var(--gold); transform: translateX(-4px); }
.lp-pager__link--next:hover .lp-pager__dir { transform: translateX(4px); }
.lp-pager__link:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.nav__links a[aria-current="true"] { color: var(--ink); }
.footer a.footer__brand { color: var(--ink); }
.footer a.footer__substack { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.footer a.footer__substack:hover { color: var(--gold-hover); }
.footer__by a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Location pages, "Day side" layout (Chad first) ----------
   The one daylight surface on the site: night frames the top (nav, hero fade)
   and the bottom (sign-up, prev/next); the body is warm sand. */
.dp {
  --sand: #EAE2D2; --sand-line: #CBBFA8; --sand-dash: #A89C84;
  --ink-dark: #1A1712; --ink-dark-body: #2E2A22; --ink-dark-muted: #5E5546; --gold-dark: #8A6210;
  background: var(--sand); color: var(--ink-dark);
}
.dp a { color: var(--gold-dark); }
.dp-hero { position: relative; height: 560px; overflow: hidden; }
.dp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,20,.6) 0%, rgba(13,16,20,0) 28%, rgba(234,226,210,0) 70%, var(--sand) 100%); }
.dp-title { position: relative; z-index: 1; margin: -.567em 0 0; padding: 0 var(--gutter); font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: clamp(96px, 23vw, 300px); line-height: .82; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-dark); }
.dp-story { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; padding: 40px var(--gutter) 96px; border-bottom: 1px solid var(--sand-line); }
.dp-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-dark-muted); }
.dp-coord { color: var(--gold-dark); }
.dp .dp-back { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-dark-muted); }
.dp .dp-back:hover { color: var(--gold-dark); }
.dp-text { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.dp-headline { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 38px; line-height: 1.25; color: var(--ink-dark); }
.dp-story__body { font-size: 21px; line-height: 1.75; color: var(--ink-dark-body); }
.dp-story__body p { margin: 0 0 1em; columns: 2; column-gap: 40px; }
.dp-story__body p:last-child { margin-bottom: 0; }
.dp-tag { display: inline-block; margin-bottom: 24px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-dark-muted); border: 1px dashed var(--sand-dash); padding: 4px 8px; }
.dp-label { margin: 0; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dark-muted); }
.dp-frames { display: flex; flex-direction: column; gap: 20px; padding: 72px 0 24px; }
.dp-frames__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding: 0 var(--gutter); }
.dp-note { font-family: var(--mono); font-size: 11px; color: var(--ink-dark-muted); }
.dp-strip { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 16px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-color: var(--sand-dash) transparent; }
.dp-strip:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -2px; }
.dp-strip::-webkit-scrollbar { height: 8px; }
.dp-strip::-webkit-scrollbar-thumb { background: var(--sand-dash); }
.dp-frame { flex: none; margin: 0; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.dp-frame img { display: block; height: 420px; width: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand-line); }
.dp-frame.is-portrait img { aspect-ratio: 3 / 4; }
.dp-frame figcaption { display: flex; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-dark-muted); }
.dp-frame__n { color: var(--gold-dark); }
.dp-where { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; padding: 72px var(--gutter); }
.dp-towns { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: 44px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-dark); }
.dp-towns .is-base { color: var(--gold-dark); }
.is-day .notify { padding: 96px 32px; gap: 24px; }
.is-day .notify .h2 { font-size: min(64px, 11vw); }

/* ---------- Place page, direction 2a "Flight legs" (sand tokens from .dp) ---------- */
.fl {
  --fl-nav: 76px; --sand-2: #E2D8C4; --sand-clear: rgba(234,226,210,0);
  --map-grat: #D6CBB5; --map-land: #EFE8DA; --map-edge: #8C8170; --map-nb: #B9AB90; --map-label: #A89C84;
  --map-muted: #9C9080; --map-glow: rgba(138,98,16,.14);
}
/* DR Congo: rainforest green on pale clay, with laterite-red airstrip earth as the accent. */
.fl--forest {
  --sand: #E8E5D7; --sand-2: #D4D3BE; --sand-clear: rgba(232,229,215,0); --sand-line: #BEBDA5; --sand-dash: #8E9480;
  --ink-dark: #132019; --ink-dark-body: #28372E; --ink-dark-muted: #56655A; --gold-dark: #B1502A;
  --map-grat: #CFCDB7; --map-land: #F1EFE4; --map-edge: #7D8873; --map-nb: #A8AD95; --map-label: #78846D;
  --map-muted: #8E957F; --map-glow: rgba(177,80,42,.14);
}
.fl--forest .fl-hero__img { object-position: 50% 42%; }
/* Afghanistan: cool mountain stone, with lapis lazuli blue as the accent. */
.fl--lapis {
  --sand: #E4E2DD; --sand-2: #CFCCC4; --sand-clear: rgba(228,226,221,0); --sand-line: #BBB7AE; --sand-dash: #8F8B82;
  --ink-dark: #15181F; --ink-dark-body: #2B2F38; --ink-dark-muted: #5B5F68; --gold-dark: #2E4C9E;
  --map-grat: #CBC8C0; --map-land: #F0EEEA; --map-edge: #7F7D78; --map-nb: #AAA69D; --map-label: #7C7A74;
  --map-muted: #8E8B84; --map-glow: rgba(46,76,158,.14);
}
.fl--lapis .fl-hero__img { object-position: 50% 42%; }
/* France: default sand palette; crop the hero so the aircraft clears the page title. */
.fl--france .fl-hero__img { object-position: 50% 42%; }
/* Grand Canyon: red-rock sandstone, with the river's green-blue as the accent. */
.fl--canyon {
  --sand: #EBE0D3; --sand-2: #DCC8B4; --sand-clear: rgba(235,224,211,0); --sand-line: #C9B39E; --sand-dash: #9C8470;
  --ink-dark: #2A1712; --ink-dark-body: #3F2A22; --ink-dark-muted: #6E5649; --gold-dark: #2D7A8C;
  --map-grat: #DCCAB8; --map-land: #F3EBE1; --map-edge: #A3876F; --map-nb: #C2AB95; --map-label: #9A7F69;
  --map-muted: #A08B78; --map-glow: rgba(45,122,140,.16);
}
.fl--canyon .fl-map { background: var(--map-land); }
/* River map: the canyon as terraced rock bands, rim to inner gorge, then the river. */
.fl-stratum { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fl-stratum--1 { stroke: #EBD9C4; }
.fl-stratum--2 { stroke: #E0BE9E; }
.fl-stratum--3 { stroke: #D3A07D; }
.fl-stratum--4 { stroke: #BC7B5C; }
.fl-stratum--5 { stroke: #8F533F; }
.fl-river { fill: none; stroke: #74B3C4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fl-done { fill: none; stroke: var(--gold-dark); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.fl--canyon .fl-grat { opacity: .45; }
.fl-ctry--big { font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: 15px; letter-spacing: .3em; fill: #8F533F; opacity: .8; }
.fl-ctry--land { font-size: 9px; letter-spacing: .26em; fill: #A68A72; }
/* The raft: cream with a dark outline so it shows on the dark inner gorge. */
.fl--canyon .fl-plane circle { fill: rgba(255,248,238,.55); }
.fl--canyon .fl-plane path { fill: #FFF8EE; stroke: #2A1712; stroke-width: .9; }
.fl-ctry--rim { font-size: 9px; font-style: italic; letter-spacing: .2em; fill: #8F533F; }
/* Soft hero: for low-resolution stills, blur slightly so it reads as mist rather than grain. */
.fl--soft .fl-hero__img { filter: blur(3px) saturate(.85); transform: scale(1.04); }
.fl--soft .fl-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(214,226,233,.28); mix-blend-mode: screen; }
.fl--soft .fl-hero::after { z-index: 2; }
/* Alaska: cold sky and tundra, with the red of the bush plane's wing strut as the accent. */
.fl--ice {
  --sand: #E6EBEE; --sand-2: #CAD7DF; --sand-clear: rgba(230,235,238,0); --sand-line: #B7C4CC; --sand-dash: #8D9DA7;
  --ink-dark: #111A21; --ink-dark-body: #26323B; --ink-dark-muted: #51616C; --gold-dark: #A7352B;
  --map-grat: #B7C7D1; --map-land: #F1F4F3; --map-edge: #7C8F9A; --map-nb: #9FB0BA; --map-label: #6F8794;
  --map-muted: #8797A1; --map-glow: rgba(167,53,43,.14);
}
.fl-hero { position: relative; height: clamp(300px, 40vw, 440px); overflow: hidden; }
.fl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.fl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,20,.45) 0%, rgba(13,16,20,0) 30%, var(--sand-clear) 55%, var(--sand) 100%); }
.fl-wrap { padding: 0 var(--gutter); }
.fl-head { position: relative; z-index: 2; margin-top: clamp(-150px, -11vw, -80px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--sand-line); }
.fl-headl { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.fl .fl-back { position: relative; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-dark); }
.fl .fl-back:hover { color: var(--gold-dark); }
.fl-title { margin: 0; font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: clamp(110px, 16vw, 210px); line-height: .8; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-dark); }
/* Long names (Afghanistan, Grand Canyon) step down so they fit beside the dek. */
.fl-title--long { font-size: clamp(58px, 10.5vw, 148px); }
.fl-side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.fl-dek { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: var(--ink-dark); }
.fl-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-dark-muted); }
.fl-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); }
.fl-mapcol { position: sticky; top: calc(var(--fl-nav) + 12px); height: calc(100vh - var(--fl-nav) - 34px); max-height: 680px; display: flex; flex-direction: column; gap: 12px; padding: 28px 0; }
.fl-mapbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fl-legn { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-dark-muted); }
.fl-leg { min-height: 1em; font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: 22px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dark); }
.fl-map { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--sand-line); background: var(--sand-2); }
.fl-map svg { display: block; }
.fl-map.is-failed::after { content: "Map unavailable"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-dark-muted); }
.fl-grat { fill: none; stroke: var(--map-grat); stroke-width: .5; }
.fl-home { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 1.2; }
.fl-nb { fill: none; stroke: var(--map-nb); stroke-width: .8; stroke-dasharray: 3 3; }
.fl-ctry { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; fill: var(--map-label); }
.fl-ctry--sea { font-style: italic; letter-spacing: .3em; }
.fl-legline { fill: none; stroke: var(--map-muted); stroke-width: 1.3; stroke-dasharray: 5 4; transition: opacity .4s; }
.fl-legplane { fill: var(--map-muted); transition: opacity .4s; }
.fl-route { fill: none; stroke: var(--gold-dark); stroke-width: 2; stroke-dasharray: 6 5; animation: fl-march 1.1s linear infinite; }
@keyframes fl-march { to { stroke-dashoffset: -11; } }
.fl-plane circle { fill: var(--map-glow); }
.fl-plane path { fill: var(--gold-dark); }
.fl-town { cursor: pointer; }
.fl-town__hit { fill: transparent; }
.fl-town__ring { fill: var(--map-land); stroke: var(--map-muted); stroke-width: 2; transition: stroke .3s; }
.fl-town__dot { fill: var(--map-muted); transition: fill .3s; }
.fl-town text { font-family: var(--sans); font-weight: 600; font-stretch: var(--sans-stretch); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; fill: var(--map-edge); transition: fill .3s; }
.fl-town:hover text { fill: var(--ink-dark); }
.fl-town text.is-crowded { display: none; }
.fl-town text.fl-town__note { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; fill: var(--ink-dark-muted); }
.fl-town.is-on .fl-town__ring { stroke: var(--gold-dark); }
.fl-town.is-on .fl-town__dot { fill: var(--gold-dark); }
.fl-town.is-on text { fill: var(--ink-dark); font-weight: 800; }
.fl-town__halo { fill: none; stroke: var(--gold-dark); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: fl-halo 2.4s ease-out infinite; }
@keyframes fl-halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

.fl-flight { display: flex; flex-direction: column; gap: 22px; padding: 72px 0; border-bottom: 1px solid var(--sand-line); opacity: .38; transition: opacity .5s; }
.fl-flight.is-on { opacity: 1; }
.fl-flight:last-child { border-bottom: 0; }
.fl-flight__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.fl-flight__label, .fl-flight__ch { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.fl-flight__title { margin: 0; font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: clamp(40px, 4.4vw, 58px); line-height: .92; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-dark); }
.fl-excerpt { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.62; color: var(--ink-dark-body); text-wrap: pretty; }
.fl-excerpt::first-letter { float: left; font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: 3.4em; line-height: .82; padding: .06em .1em 0 0; color: var(--ink-dark); }
.fl-photos { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
.fl-photos.is-single { grid-template-columns: minmax(0, 1fr); }
.fl-main { all: unset; position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.fl-main:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.fl-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .22s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.fl-main:hover img { transform: scale(1.03); }
.fl-thumbs { display: flex; flex-direction: column; gap: 10px; }
.fl-thumbs button { all: unset; display: block; aspect-ratio: 1; overflow: hidden; cursor: pointer; outline: 1px solid transparent; outline-offset: 2px; opacity: .6; transition: opacity .3s, outline-color .3s; }
.fl-thumbs button.is-on, .fl-thumbs button:hover, .fl-thumbs button:focus-visible { opacity: 1; outline-color: var(--gold-dark); }
.fl-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fl-cap { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-dark-muted); }
.fl-credit { margin: 32px 0 56px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-dark-muted); }

.fl-lb { position: fixed; inset: 0; z-index: 9990; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 40px; background: rgba(13,16,20,.985); opacity: 0; transition: opacity .35s; }
.fl-lb.is-open { opacity: 1; }
.fl-lb[hidden] { display: none; }
.fl-lb__x { all: unset; position: absolute; top: 20px; right: 24px; z-index: 1; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.fl-lb__x:focus-visible, .fl-lb__arrows button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fl-lb__img { position: relative; min-height: 0; }
.fl-lb__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fl-lb__side { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; color: var(--ink); }
.fl-lb__flight, .fl-lb__n { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.fl-lb__cap { font-family: var(--sans); font-weight: 800; font-stretch: var(--sans-stretch); font-size: 34px; line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.fl-lb__ex { margin: 0; font-size: 19px; line-height: 1.6; font-style: italic; color: var(--ink-2); }
.fl-lb__nav { display: flex; justify-content: space-between; align-items: center; }
.fl-lb__arrows { display: flex; gap: 8px; }
.fl-lb__arrows button { all: unset; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border: 1px solid #4A525B; color: var(--ink); font-family: var(--mono); font-size: 16px; transition: background .25s, color .25s; }
.fl-lb__arrows button:hover { background: var(--ink); color: var(--bg); }
html.fl-locked { overflow: hidden; }

/* Teaser layout (Nov 2026): a short blurb beside all of the place's photos. */
.fl-body { display: block; }
.fl-flight { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; opacity: 1; }
.fl-flight__text { position: sticky; top: calc(var(--fl-nav) + 24px); display: flex; flex-direction: column; gap: 18px; }
.fl-excerpt::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.fl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fl-grid.is-odd:not(.fl-grid--3) .fl-main:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.fl-grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.fl-main.fl-main--wide { grid-column: span 2; aspect-ratio: auto; }
.fl-credit { margin: 0; padding: 18px 0 56px; }

@media (max-width: 860px) {
  .fl-flight { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fl-flight__text { position: static; }
  .fl-grid--3, .fl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-main.fl-main--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .fl-grid--3.is-odd .fl-main:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .fl { --fl-nav: 68px; }
  .fl-head { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .fl-body { grid-template-columns: 1fr; gap: 0; }
  /* The map becomes a strip pinned under the nav, so it stays in view as the flights scroll past. */
  .fl-mapcol { position: sticky; top: var(--fl-nav); z-index: 5; height: 300px; max-height: none; gap: 8px; padding: 12px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); background: var(--sand); border-bottom: 1px solid var(--sand-line);
    transition: height .3s ease, margin-bottom .3s ease, padding .3s ease, background-color .3s ease, box-shadow .3s ease; }
  /* Once pinned under the nav the strip condenses and darkens, with a shadow, so it reads as
     docked. margin-bottom gives back the height it loses, so the page doesn't jump. */
  .fl-mapcol.is-pinned { height: 196px; margin-bottom: 104px; padding-top: 10px; padding-bottom: 10px; gap: 6px; background: var(--sand-2); border-bottom-color: var(--sand-dash); box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
  .fl-mapcol .fl-mapbar { transition: opacity .2s ease; }
  .fl-mapcol.is-pinned .fl-mapbar { position: absolute; right: var(--gutter); top: 12px; }
  .fl-mapcol.is-pinned .fl-mapbar .dp-label { display: none; }
  .fl-mapcol.is-pinned .fl-leg { font-size: 15px; padding-right: 64px; }
  /* Titles stay on one line on phones; flights.js shrinks long names to fit. */
  .fl-headl { min-width: 0; width: 100%; }
  .fl-title, .fl-title--long { max-width: 100%; font-size: 88px; white-space: nowrap; }
  /* The pinned map strip is small: name only the towns on the current flight. */
  .fl-ctry--sea, .fl--forest .fl-ctry, .fl--canyon .fl-ctry:not(.fl-ctry--big) { display: none; }
  .fl-town text { font-size: 12px; }
  .fl-leg { font-size: 18px; }
  .fl-flight { padding: 48px 0; gap: 18px; }
  .fl-photos { grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; }
  .fl-thumbs { gap: 8px; }
  .fl-lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 20px; padding: 56px 20px 20px; }
  .fl-lb__cap { font-size: 26px; }
  .fl-lb__ex { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-route, .fl-town__halo { animation: none; }
  .fl-flight, .fl-main img, .fl-lb { transition: none; }
}

/* ---------- Responsive (mobile not yet designed: sensible stacking) ---------- */
@media (max-width: 1100px) {
  .nav__toggle { display: grid; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gutter) 20px; background: rgba(13,16,20,.98); border-bottom: 1px solid var(--line);
  }
  .nav__links a { padding: 12px 0; font-size: 16px; }
  .nav.is-open .nav__links { display: flex; }
  /* Phone menu: the places sit indented under The Journey, always open. */
  .nav__item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav__parent::after { display: none; }
  .nav__sub { position: static; transform: none; padding: 0 0 6px 14px; visibility: visible; pointer-events: auto; border-left: 1px solid var(--line-strong); margin-left: 2px; }
  .nav__sub ul { min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; transform: none; }
  .nav__sub li { opacity: 1; transform: none; }
  .nav__links .nav__sub a { padding: 8px 0; grid-template-columns: 8px 104px auto; font-size: 14px; }
  .nav__sub a:hover { background: none; }
  .nav__sub-name { font-size: 14px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .lp-story { grid-template-columns: 1fr; gap: 48px; }
  .lp-aside { position: static; }
  .dp-story, .dp-where { grid-template-columns: 1fr; gap: 32px; }
  .dp-meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
  .about__portrait { height: auto; aspect-ratio: 4 / 5; max-width: 420px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 64px; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  /* 3-5, 9. Section spacing on phones, about half what it was. */
  .section, .log { padding-top: 40px; padding-bottom: 40px; }
  .excerpt { padding: 44px 20px; }
  .notify { padding: 56px 20px; }
  /* 7. The river strip is a desktop piece; phones skip it. */
  .river { display: none; }
  /* 8. About eyebrow: two balanced lines with room to breathe above the heading. */
  .about__roles { line-height: 1.75; text-wrap: balance; margin-bottom: 6px; }
  .book, .sky, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .hero { height: min(860px, 92svh); min-height: 620px; }
  /* 2. The photo sits in the top part of the hero so the title and buttons
     land on the dark fade below it, clear of Paddy. */
  .hero__photo { height: 60%; object-position: 50% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(13,16,20,.5) 0%, rgba(13,16,20,0) 18%, rgba(13,16,20,0) 38%, rgba(13,16,20,.55) 50%, #0D1014 60%, #0D1014 100%); }
  .hero__sub { font-size: 22px; }
  .hero__bottom { bottom: 20px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; text-align: center; }
  .pull { font-size: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .lp-hero__body { bottom: 40px; }
  .lp-line { font-size: 21px; }
  .lp-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .lp-photos > :first-child { grid-row: auto; grid-column: span 2; }
  .lp-pager__link { min-height: 92px; padding: 16px 18px; }
  .lp-pager__name { font-size: 22px; }
  .dp-hero { height: 380px; }
  .dp-story { padding: 28px var(--gutter) 64px; }
  .dp-headline { font-size: 28px; }
  .dp-story__body { font-size: 19px; }
  .dp-story__body p { columns: 1; }
  .dp-frames { padding-top: 56px; }
  .dp-frame img { height: 300px; }
  .dp-where { padding: 56px var(--gutter); }
  .dp-towns { font-size: 32px; gap: 8px 20px; }
  .is-day .notify { padding: 80px 20px; }
  .journey { height: auto; margin-top: 0; display: flex; flex-direction: column; padding: 44px 0 36px; }
  .journey::after { display: none; }
  .journey__head { position: relative; order: -1; top: auto; bottom: auto; left: auto; padding: 0 var(--gutter); }
  .journey__viewport { position: relative; inset: auto; width: 100%; aspect-ratio: 7 / 3.4; margin-top: 20px; overflow: hidden; }
  .journey__viewport::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(13,16,20,0) 14%, rgba(13,16,20,0) 86%, var(--bg) 100%); }
  .journey .pin { padding: 0; }
  .journey .pin__text { display: none; }
  .journey .pin__dot { width: 30px; height: 30px; }
  .journey .pin__dot::before { content: attr(data-n); width: 18px; height: 18px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 500; line-height: 1; color: var(--on-gold); box-shadow: 0 0 8px 2px rgba(226,179,60,.55), 0 0 20px 6px rgba(226,179,60,.15); }
  .journey .pin { transform: translate(-15px, -50%); transform-origin: 15px 50%; }
  .journey__list-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--mono); font-size: 10px; color: var(--gold); align-self: center; }
  .journey__list { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0 var(--gutter); list-style: none; position: relative; z-index: 3; }
  .journey__list a { display: grid; grid-template-columns: 20px 1fr auto 20px; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .journey__list a > span:last-child { color: var(--gold); text-align: right; }
  .journey__list-name { font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300; font-size: 26px; line-height: 1.1; }
  .place { position: fixed; left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; z-index: 30; background: var(--bg-raised); }
  .place__name { font-size: 32px; }
  .stats dd { font-size: 36px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .btn { white-space: normal; }
}

/* ---------- Page transitions ----------
   Browsers that support cross-document view transitions crossfade between pages, with the nav
   held still. Journey pages then build in softly: photo first, then title, dek and map. */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: rv-page-out .32s ease both; }
::view-transition-new(root) { animation: rv-page-in .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rv-page-out { to { opacity: 0; } }
@keyframes rv-page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  .fl-hero { animation: rv-fade 1.1s ease backwards; }
  .fl-headl { animation: rv-rise .8s cubic-bezier(.2,.7,.2,1) .15s backwards; }
  .fl-side { animation: rv-rise .8s cubic-bezier(.2,.7,.2,1) .28s backwards; }
  .fl-body { animation: rv-rise .9s cubic-bezier(.2,.7,.2,1) .42s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
