/* ═══════════════════════════════════════════════════════════════
   THE JOURNEY — jonbrough.com parallel design
   A hand-inked expedition map of a 40-year working life.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --parchment: #f3ead9;
  --parchment-deep: #e9dcc3;
  --parchment-card: #f8f1e3;
  --ink: #22241f;
  --ink-soft: #4a4c42;
  --ink-faint: #8b8a7c;
  --pounamu: #1f6f5c;
  --pounamu-deep: #14493d;
  --gold: #b98a2e;
  --gold-ink: #7d5c18;
  --gold-bright: #d9a83e;
  --ember: #9c3d22;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --wrap: min(72rem, 90vw);
  --narrow: min(44rem, 90vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--parchment-deep);
  /* keep content box symmetric so .wrap centering matches 100vw-based padding */
  scrollbar-gutter: stable both-edges;
}

body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  overflow-x: clip;
  font-optical-sizing: auto;
}

::selection { background: var(--gold); color: var(--parchment); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--parchment-deep); border-left: 1px solid rgba(34,36,31,0.15); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), #96701f);
  border: 2px solid var(--parchment-deep); border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--pounamu); }

img { max-width: 100%; display: block; }
a { color: var(--pounamu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── paper grain + contour canvas ─────────────────────────── */
.grain {
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0.14'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#map-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}

/* ── sticky CV tab ────────────────────────────────────────── */
.cv-tab {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.55rem 1.6rem 0.65rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%);
  background: var(--pounamu); color: var(--parchment);
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s var(--ease);
}
.cv-tab:hover, .cv-tab:focus-visible { background: var(--gold); color: var(--ink); }
@media (max-width: 64rem) { .cv-tab { padding: 0.5rem 1.1rem 0.6rem; font-size: 0.62rem; } }

/* ── compass chapter nav ──────────────────────────────────── */
.compass-nav {
  position: fixed; right: 1.6rem; top: 50%;
  transform: translateY(-50%);
  z-index: 55; display: flex; flex-direction: column; gap: 1.05rem;
}
.cn-dot { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }
.cn-dot span {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
  background: transparent; transition: all 0.35s var(--ease);
  display: block;
}
.cn-dot::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid transparent; transition: border-color 0.35s;
}
.cn-dot:hover span, .cn-dot:focus-visible span { background: var(--gold); border-color: var(--gold); }
.cn-dot.active span {
  background: var(--pounamu); border-color: var(--pounamu);
  box-shadow: 0 0 0 3px rgba(31,111,92,0.18);
}
.cn-dot.active::before { border-color: var(--pounamu); }
.cn-dot::after {
  content: attr(data-chapter-label);
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
}
.cn-dot:hover::after, .cn-dot:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 64rem) { .compass-nav { right: 0.7rem; } .cn-dot::after { display: none; } }

/* ── shared chapter apparatus ─────────────────────────────── */
main { position: relative; z-index: 1; }
.hero { position: relative; z-index: 1; }

section.chapter { scroll-margin-top: 1.5rem; }
.chapter {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) 0;
}
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap.narrow { width: var(--narrow); }

.eyebrow {
  font-family: var(--sans); font-weight: 700;
  font-size: 0.75rem;   letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.1rem;
}
.ch-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 1.2rem; text-wrap: balance;
}
.deck {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft); max-width: 46rem; margin-bottom: 3.2rem;
  text-wrap: pretty;
}
.chapter .eyebrow,
.chapter .ch-title,
.chapter .deck { text-align: center; }
.chapter .deck { margin-inline: auto; }
.on-dark { color: var(--parchment) !important; }
.eyebrow.on-dark { color: var(--gold-bright) !important; }
.deck.on-dark { color: rgba(243,234,217,0.82) !important; }

.rule { color: var(--gold); margin: 0 0 2.6rem; max-width: 46rem; }
.rule svg { width: 100%; height: 12px; }

/* hand-drawn frame: wobbly ink border on any .frame */
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: 0;
  border: 1.6px solid var(--ink);
  border-radius: 6px;
  filter: url(#rough);
  pointer-events: none;
  opacity: 0.85;
}

/* ── reveal choreography ──────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ══════════ I · HERO — TITLE CARTOUCHE ══════════ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
}
.hero-rose {
  position: absolute; top: 50%; left: 50%;
  width: min(78vmin, 46rem); aspect-ratio: 1;
  transform: translate(-50%, -56%);
  color: var(--pounamu); opacity: 0.07;
  animation: rose-spin 240s linear infinite;
  pointer-events: none;
}
@keyframes rose-spin { to { transform: translate(-50%, -56%) rotate(360deg); } }
.hero-rose svg { width: 100%; height: 100%; }

.hero-ranges {
  position: absolute; bottom: 0; left: 0; width: 100%; height: clamp(10rem, 32vh, 20rem);
  pointer-events: none;
}
.range { transition: transform 0.1s linear; }
.r3 { fill: rgba(31,111,92,0.10); }
.r2 { fill: rgba(20,73,61,0.16); }
.r1 { fill: var(--parchment-deep); }

.hero-inner { position: relative; z-index: 3; padding-top: 2.2rem; }

.hero-over {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--serif); font-weight: 650;
  line-height: 0.92; letter-spacing: 0.01em;
  display: flex; flex-direction: column; align-items: center; gap: 0.02em;
  margin-bottom: 1rem;
}
.hn-line { display: flex; gap: 0.06em; }
.hn-line span {
  display: inline-block;
  font-size: clamp(4rem, 2rem + 14vw, 11rem);
  transform: translateY(110%); opacity: 0;
  animation: letter-rise 1.1s var(--ease) forwards;
}
.hn-line span:nth-child(1) { animation-delay: 0.15s; }
.hn-line span:nth-child(2) { animation-delay: 0.26s; }
.hn-line span:nth-child(3) { animation-delay: 0.37s; }
.hn-line span:nth-child(4) { animation-delay: 0.48s; }
.hn-line span:nth-child(5) { animation-delay: 0.59s; }
.hn-line span:nth-child(6) { animation-delay: 0.70s; }
.hn-b { font-weight: 300; font-style: italic; letter-spacing: 0.06em; font-optical-sizing: manual; font-variation-settings: "opsz" 36, "wght" 300; }
.hn-b span { font-size: clamp(2.4rem, 1.2rem + 8.4vw, 6.6rem); }
.hn-b span:nth-child(1) { animation-delay: 0.42s; }
.hn-b span:nth-child(2) { animation-delay: 0.52s; }
.hn-b span:nth-child(3) { animation-delay: 0.62s; }
.hn-b span:nth-child(4) { animation-delay: 0.72s; }
.hn-b span:nth-child(5) { animation-delay: 0.82s; }
.hn-b span:nth-child(6) { animation-delay: 0.92s; }
@keyframes letter-rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-orn {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--gold); margin-bottom: 1.2rem;
}
.hero-orn svg { width: 70px; height: 25px; }
.hero-orn svg:first-child { transform: scaleX(-1); }

.hero-role {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1.05rem);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.7rem;
}

.hero-portrait { position: relative; width: 240px; margin: 0 auto 1.5rem; }
.hp-frame {
  position: absolute; inset: -28px -20px;
  color: var(--ink); z-index: 2; pointer-events: none;
}
.hp-frame svg { width: 100%; height: 100%; }
.hero-portrait img {
  width: 210px; height: 210px; margin: 0 auto;
  object-fit: cover; border-radius: 50%;
  border: 3px double var(--ink);
  filter: grayscale(0.35) contrast(1.04) sepia(0.12);
  background: var(--parchment-deep);
}

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--pounamu); text-decoration: none;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue svg { width: 20px; height: 50px; animation: cue-bob 2.4s var(--ease) infinite; }
@keyframes cue-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.hero-bay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: clamp(5.5rem, 14vh, 9rem); overflow: hidden; z-index: 1;
}
.hero-bay::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ink); filter: url(#rougher); opacity: 0.7; z-index: 2;
}
.hero-bay img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: grayscale(1) sepia(0.55) contrast(1.05) brightness(0.92);
}
.hero-bay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(243,234,217,0.96) 0%, rgba(243,234,217,0.25) 45%, rgba(20,73,61,0.28) 100%);
}

/* ══════════ II · PROLOGUE ══════════ */
.prologue .prose p { max-width: none; margin-bottom: 1.6rem; color: var(--ink-soft); }
.prologue .prose em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--ember); }

.prologue blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2rem);
  line-height: 1.35; color: var(--pounamu-deep);
  max-width: none; margin: 2.4rem 0 2.8rem;
  padding-left: clamp(1rem, 4vw, 3.4rem);
  position: relative; text-wrap: pretty;
}
.prologue blockquote::before {
  content: "❧"; position: absolute; left: 0; top: 0.1em;
  font-size: 1.3em; color: var(--gold); font-style: normal;
}

.waymarkers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem); margin-top: clamp(3rem, 7vw, 5rem);
}
.wm { text-align: center; position: relative; padding-top: 1rem; }
.wm::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -1.6rem;
  height: 1px; background: repeating-linear-gradient(90deg, var(--ink-faint) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}
.wm-peak { width: 44px; height: 33px; color: var(--pounamu); margin: 0 auto 0.6rem; }
.wm-num {
  display: block; font-family: var(--serif); font-weight: 650;
  font-size: clamp(3.2rem, 2rem + 5vw, 5.6rem); line-height: 1;
  color: var(--ink); font-variant-numeric: oldstyle-nums;
}
.wm-label {
  display: block; margin-top: 0.5rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 40rem) { .waymarkers { grid-template-columns: 1fr; gap: 2.6rem; } .wm::after { display: none; } }

/* ══════════ III · HOME CAMP ══════════ */
.camp-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  gap: clamp(1.8rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 56rem) { .camp-grid { grid-template-columns: minmax(0,1fr); } }

.camp-card {
  background: var(--parchment-card);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 10px 12px 0 rgba(34,36,31,0.07);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.camp-card:hover { transform: translate(-3px, -4px); box-shadow: 16px 20px 0 rgba(34,36,31,0.09); }

.cc-head {
  display: block;
  font-family: var(--serif); font-weight: 650; font-size: 1.35rem;
  padding-bottom: 1rem; margin-bottom: 1.4rem;
  border-bottom: 1.5px solid var(--ink); position: relative;
  text-wrap: balance;
}
.cc-head svg { width: 30px; height: 30px; color: var(--pounamu); display: inline-block; vertical-align: -7px; margin-right: 0.7rem; }
.cc-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4.5px;
  height: 1px; background: var(--gold);
}

.cc-dl div {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.62rem 0;
  border-bottom: 1px dotted var(--ink-faint);
}
.cc-dl div:last-child { border-bottom: none; }
.cc-dl dt {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #66655a; padding-top: 0.25em; white-space: nowrap;
}
.cc-dl dd { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; text-align: right; text-wrap: pretty; }
@media (max-width: 40rem) {
  .cc-dl div { flex-direction: column; gap: 0.2rem; }
  .cc-dl dd { text-align: left; }
}
.cc-dl .mono { letter-spacing: 0.06em; font-variant-numeric: tabular-nums lining-nums; }

.stamps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.stamps li { transform: rotate(var(--tilt, -1.5deg)); }
.stamps li:nth-child(2n) { --tilt: 1.8deg; }
.stamps li:nth-child(3n) { --tilt: -2.6deg; }
.stamps a, .stamp-static {
  display: flex; align-items: center; gap: 0.72rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em;
  position: relative; border-radius: 4px;
  transition: all 0.35s var(--ease);
}
.stamp-static svg { width: 34px; height: 34px; color: var(--gold); flex: none; opacity: 0.65; }
.stamps a:hover { color: var(--ember); transform: translateY(-3px) rotate(0.5deg); }
.stamps a svg { width: 34px; height: 34px; color: var(--pounamu); flex: none; opacity: 0.75; transition: transform 0.5s var(--ease); }
.stamps a:hover svg { transform: rotate(40deg); }

/* ══════════ IV · THE ROAD ══════════ */
.trail { position: relative; padding: 2rem 0; }
.trail-path {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 120px; height: 100%;
  color: var(--pounamu);
  clip-path: inset(0 0 calc(100% - var(--trail-progress, 0%)) 0);
}
.trail-path path { opacity: 0.8; }

.waypoint {
  position: relative; width: 50%;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.waypoint:nth-of-type(odd) { padding-right: clamp(2.4rem, 6vw, 5.5rem); }
.waypoint:nth-of-type(even) { margin-left: 50%; padding-left: clamp(2.4rem, 6vw, 5.5rem); }

.wp-node {
  position: absolute; top: 0; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--parchment); border: 2px solid var(--pounamu);
  display: grid; place-items: center;
  color: var(--ink-faint);
  transition: all 0.7s var(--ease); transition-delay: 0.35s;
}
.waypoint:nth-of-type(odd) .wp-node { right: -26px; }
.waypoint:nth-of-type(even) .wp-node { left: -26px; }
.wp-node svg { width: 26px; height: 26px; }
.waypoint.in .wp-node {
  color: var(--ember); border-color: var(--ember);
  box-shadow: 0 0 0 6px rgba(156,61,34,0.12), 0 0 26px rgba(156,61,34,0.35);
}
.waypoint.in .wp-node svg { animation: fire-flicker 2.2s ease-in-out infinite; }
@keyframes fire-flicker {
  0%,100% { transform: scale(1); }
  30% { transform: scale(1.12) rotate(-3deg); }
  60% { transform: scale(0.96) rotate(2deg); }
}

.wp-card {
  background: var(--parchment-card);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 8px 10px 0 rgba(34,36,31,0.07);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.wp-card:hover { transform: translate(-2px, -3px); box-shadow: 13px 16px 0 rgba(34,36,31,0.09); }
.wp-year {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 0.55rem;
}
.wp-card h3 {
  font-family: var(--serif); font-weight: 650;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.15; margin-bottom: 0.7rem;
  text-wrap: balance;
}
.wp-card p:last-child { color: var(--ink-soft); text-wrap: pretty; }

@media (max-width: 56rem) {
  .trail-path { left: -4px; transform: none; width: 60px; }
  .waypoint, .waypoint:nth-of-type(odd), .waypoint:nth-of-type(even) { width: 100%; margin-left: 0; padding: 0 0 3rem 4.4rem; }
  .waypoint:nth-of-type(odd) .wp-node, .waypoint:nth-of-type(even) .wp-node { left: 0; right: auto; }
}

/* ══════════ V · SUMMITS ══════════ */
.summits { background: linear-gradient(var(--parchment) 0%, var(--parchment-deep) 55%, var(--parchment) 100%); }
.summits-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); margin-top: 2rem;
}
@media (max-width: 48rem) { .summits-row { grid-template-columns: 1fr; } }
.summit { text-align: center; }
.su-svg { width: min(280px, 80%); margin: 0 auto 1rem; color: var(--ink); }
.su-elev {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 2.2rem; color: var(--pounamu); margin-bottom: 0.4rem;
}
.summit h3 { font-family: var(--serif); font-weight: 650; font-size: 1.35rem; margin-bottom: 0.35rem; }
.summit p:last-child { color: var(--ink-soft); }

/* ══════════ VI · PROVISIONS ══════════ */
.provisions { position: relative; margin-top: 2rem; }
.pv-rose {
  position: absolute; top: 50%; left: 50%;
  width: min(52vmin, 34rem); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--gold); opacity: 0.09; pointer-events: none;
  animation: rose-spin2 180s linear infinite;
}
@keyframes rose-spin2 { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pv-rose svg { width: 100%; height: 100%; }
.provisions-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem clamp(2rem, 6vw, 4.5rem);
}
@media (min-width: 72rem) { .provisions-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 40rem) { .provisions-grid { grid-template-columns: 1fr; } }
.pv {
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
  font-weight: 700; font-size: 0.94rem; letter-spacing: 0.03em;
  line-height: 1.4; color: var(--ink);
  background: rgba(248,241,227,0.7);
  position: relative;
  text-wrap: balance;
}
.pv::before {
  content: ""; position: absolute; inset: 0;
  border: 1.4px solid var(--pounamu); border-radius: 4px;
  filter: url(#rough); opacity: 0.55;
}
.pv-n {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--gold); margin-bottom: 0.4rem;
}

/* ══════════ VII · GUIDES ══════════ */
.guides { overflow: hidden; }
.guides-bg { position: absolute; inset: 0; z-index: -1; }
.guides-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(1) brightness(0.5) contrast(1.15);
}
.guides-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,40,44,0.93), rgba(20,40,44,0.88) 60%, rgba(20,40,44,0.95));
  mix-blend-mode: multiply;
}
.guide-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
@media (max-width: 64rem) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .guide-grid { grid-template-columns: 1fr; } }
.guide {
  background: rgba(243,234,217,0.94);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform 0.5s var(--ease);
}
.guide:hover { transform: translateY(-6px); }
.guide svg { width: 40px; height: 34px; color: var(--pounamu); margin-bottom: 0.9rem; }
.guide p { color: var(--ink-soft); line-height: 1.55; }

/* ══════════ VIII · THE CHRONICLE ══════════ */
.chronicle { padding: 0; overflow: clip; }
.chron-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.16; }
.chron-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(0.4);
}
.deck-src {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  color: var(--ember);
}

/* standard-width carousel: one testimonial at a time, fixed height = tallest card */
.chron-stage {
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.chronicle .ch-title { text-wrap: balance; }
.chronicle .deck { margin-bottom: 0; }

.chron-carousel {
  position: relative; width: var(--wrap); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.4rem, 3vw, 2rem);
}
.chron-track { list-style: none; display: grid; width: 100%; }
.chron-slide {
  grid-area: 1 / 1; align-self: center; width: 100%;
  background: var(--parchment-card);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 8px 10px 0 rgba(34,36,31,0.08);
  opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.7s;
}
.chron-slide.is-active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.chron-slide blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem); line-height: 1.6;
  color: var(--ink); text-align: left; text-wrap: pretty;
}
.chron-slide blockquote p::before { content: "“"; color: var(--gold); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; margin-right: 0.05em; }
.chron-slide cite {
  display: block; margin-top: 1.4rem; font-style: normal; text-align: left;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pounamu);
}
.chron-slide cite::before {
  content: ""; display: block; width: 34px; height: 1.5px;
  background: var(--gold); margin-bottom: 0.6rem;
}

.chron-count {
  margin: 0; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.chron-nav { display: flex; gap: 1.4rem; }
.chron-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; cursor: pointer; border-radius: 50%;
  background: var(--parchment); color: var(--pounamu);
  border: 1.5px solid var(--pounamu);
  box-shadow: 0 2px 8px rgba(34,36,31,0.18);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.chron-btn:hover { background: var(--pounamu); color: var(--parchment); }
.chron-btn svg { width: 1.2rem; height: 1.2rem; }
.chron-prev svg { transform: rotate(180deg); }

/* wide screens: mount chevrons on the left/right edges of the card */
@media (min-width: 52rem) {
  .chron-nav { position: absolute; top: 0; bottom: 3rem; left: 0; right: 0; display: block; pointer-events: none; }
  .chron-btn { position: absolute; top: 50%; pointer-events: auto; }
  .chron-prev { left: 0; transform: translate(-50%, -50%); }
  .chron-next { right: 0; transform: translate(50%, -50%); }
}

/* ══════════ IX · SEND WORD ══════════ */
.send-word { text-align: center; }
.send-word .eyebrow, .send-word .ch-title, .send-word .deck { margin-inline: auto; }
.send-word .deck { margin-bottom: 3.5rem; }
/* keep route columns at old measure now that --narrow hugs the prose width */
#contact .wrap.narrow { width: min(52rem, 90vw); }
.contact-routes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 52rem; margin-inline: auto;
}
@media (max-width: 44rem) { .contact-routes { grid-template-columns: 1fr; } }
.route {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: clamp(1.8rem, 4vw, 2.6rem) 1.6rem;
  background: var(--parchment-card); text-decoration: none;
  box-shadow: 9px 11px 0 rgba(34,36,31,0.07);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.route:hover { transform: translate(-3px, -4px) rotate(-0.4deg); box-shadow: 15px 18px 0 rgba(31,111,92,0.14); }
.route svg { width: 52px; height: 44px; color: var(--pounamu); }
.route-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-ink);
}
.route-value {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.4rem);
  color: var(--ink); white-space: nowrap;
}
@media (max-width: 21rem) { .route-value { white-space: normal; word-break: break-all; } }
.route:hover .route-value { color: var(--ember); }

/* ══════════ FOOTER — MAP EDGE ══════════ */
.map-edge {
  position: relative; z-index: 1;
  border-top: 2px solid var(--ink);
  background: var(--parchment-deep);
  padding: 2.6rem 0;
}
.map-edge::before {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px;
  background: var(--ink); filter: url(#rougher);
}
.foot-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.9rem clamp(1.5rem, 4vw, 3rem);
  font-size: 0.82rem; color: var(--ink-soft); text-align: center;
}
.foot-rose { color: var(--pounamu); }
.foot-rose svg { width: 34px; height: 34px; }
.foot-credit { width: 100%; font-size: 0.72rem; color: var(--ink-soft); }
.foot-grid a { color: var(--pounamu); }
.foot-dev { display: inline-flex; align-items: center; gap: 0.75rem; }
.foot-dev svg { width: 40px; height: auto; display: block; }

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hn-line span { transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .trail-path { clip-path: none; }
  .chron-slide { transition-delay: 0s !important; transform: none; }
}

/* ══════════ LARGE SCREENS (≥1760px, e.g. 1080p displays) ══════════
   Containers and type scale together so the design fills big viewports
   without line lengths exceeding comfortable reading measures. */
@media (min-width: 110rem) {
  :root {
    --wrap: min(80rem, 88vw);
    --narrow: min(54rem, 88vw);
  }
  body { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem); }
  .ch-title { font-size: clamp(2.3rem, 1.4rem + 4vw, 5.4rem); }
  .deck { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.45rem); max-width: 52rem; }
  .rule { max-width: none; }
  #contact .wrap.narrow { width: min(56rem, 88vw); }
}

