/* ============================================================
   The Great Year
   Forest / pounamu palette evoking NZ bush, mountains, lakes.
   Companion to The Wonder Years (warm gold/terracotta).
   ============================================================ */

:root {
  --bg: #0b110d;
  --bg-soft: #121913;
  --bg-card: #161e18;
  --ink: #eef0e8;
  --ink-soft: #bdc4b5;
  --ink-mute: #818876;
  --pounamu: #6db588;
  --pounamu-bright: #9fd9b4;
  --bronze: #c89b5b;
  --line: #232b25;
  --line-soft: #1a201c;

  --serif: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1584px;
}

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

/* No italics anywhere on this site. */
em, i, cite, address, var, dfn { font-style: normal; }
* { font-style: normal !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 300;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--pounamu); color: var(--bg); }

.accent { color: var(--pounamu); }

.link-accent {
  color: var(--pounamu);
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 181, 136, 0.4);
  transition: color 0.3s, border-color 0.3s;
}
.link-accent:hover { color: var(--pounamu-bright); border-color: var(--pounamu-bright); }
.link-accent em, .link-accent strong { color: inherit; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--pounamu), var(--bronze));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 60px);
  z-index: 10;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.nav__mark {
  color: var(--pounamu);
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__mark svg { width: 100%; height: 100%; }

.nav__links { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; opacity: 0.85; transition: opacity 0.3s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--pounamu); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero__slideshow { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__slideshow .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 8s var(--ease-out);
  filter: brightness(0.5) saturate(0.95);
}
.hero__slideshow .slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }

.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(109, 181, 136, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(200, 155, 91, 0.15), transparent 55%),
    linear-gradient(180deg, rgba(11, 17, 13, 0.55) 0%, rgba(11, 17, 13, 0.7) 50%, var(--bg) 100%);
  pointer-events: none;
}
.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  mask: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.2s forwards;
}
.dot {
  width: 6px; height: 6px; background: var(--pounamu); border-radius: 50%;
  box-shadow: 0 0 12px var(--pounamu);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25em;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(80%);
  animation: wordRise 1.1s var(--ease-out) forwards;
}
.hero__title .word:nth-child(1) { animation-delay: 0.3s; }
.hero__title .word:nth-child(2) { animation-delay: 0.45s; }
.hero__title .word--accent {
  animation-delay: 0.6s;
  color: var(--pounamu);
}
@keyframes wordRise { to { opacity: 1; transform: translateY(0); } }

.hero__sub {
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.1s forwards;
}
.meta { display: flex; flex-direction: column; gap: 4px; }
.meta__num {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--pounamu);
  line-height: 1;
}
.meta__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  border: 1px solid var(--pounamu);
  color: var(--pounamu);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.3s forwards;
}
.hero__cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--pounamu);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.hero__cta:hover { color: var(--bg); }
.hero__cta:hover::before { transform: translateY(0); }
.hero__cta svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.hero__cta:hover svg { transform: translateY(3px); }

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  display: block; width: 100%; height: 30%;
  background: var(--pounamu);
  animation: scrollDown 2.4s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(333%); }
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section-head__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pounamu);
  margin-bottom: 20px;
  position: relative;
  padding-left: 36px;
}
.section-head__kicker::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 24px; height: 1px; background: var(--pounamu);
}
.section-head__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 20px;
}
.section-head__lede {
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Walks Grid ---------- */
.walks {
  padding: 140px 0 120px;
  background: var(--bg);
  position: relative;
}
.walks__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1180px) { .walks__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .walks__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .walks__grid { grid-template-columns: 1fr; } }

/* ---------- Walk Card ---------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease), opacity 0.3s;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
}
.card.in-view { opacity: 1; transform: translateY(0); }
.card:hover {
  transform: translateY(-8px);
  border-color: var(--pounamu);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(109, 181, 136, 0.22);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.card__slideshow { position: absolute; inset: 0; }
.card__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  transition: transform 1.2s var(--ease);
  filter: brightness(0.85) saturate(1.05);
}
.card__slide.was-active { z-index: 1; }
.card__slide.is-active { z-index: 2; animation: slideFadeIn 1.2s var(--ease); }
.card:hover .card__slide.is-active { transform: scale(1.08); }

.card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 17, 13, 0.95) 100%);
  pointer-events: none;
}
.card__media::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(109, 181, 136, 0.12), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.card__index {
  position: absolute; top: 12px; left: 12px;
  z-index: 3;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(11, 17, 13, 0.6);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card__badge {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 10px 6px 8px;
  border-radius: 100px;
  background: var(--pounamu);
  color: var(--bg);
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 0 24px rgba(109, 181, 136, 0.4);
  animation: shimmer 3s ease-in-out infinite;
}
.card__badge svg { width: 11px; height: 11px; }
@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 24px rgba(109, 181, 136, 0.4); }
  50% { box-shadow: 0 0 40px rgba(109, 181, 136, 0.7); }
}

/* Hiatus card — bronze accent instead of pounamu */
.card--hiatus { border-color: rgba(200, 155, 91, 0.25); }
.card--hiatus:hover {
  border-color: var(--bronze);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(200, 155, 91, 0.25);
}
.card--hiatus .card__media::before {
  background: linear-gradient(135deg, rgba(200, 155, 91, 0.14), transparent 50%);
}
.card__index--hiatus {
  background: rgba(11, 17, 13, 0.6);
  color: var(--bronze);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
}
.card__badge--hiatus {
  background: rgba(200, 155, 91, 0.14);
  color: var(--bronze);
  border: 1px solid rgba(200, 155, 91, 0.5);
  box-shadow: 0 0 18px rgba(200, 155, 91, 0.18);
  animation: none;
}
.card--hiatus .card__date { color: var(--bronze); }
.card--hiatus .card__more { color: var(--ink-soft); }
.card--hiatus:hover .card__more { color: var(--bronze); }

.card__body {
  padding: 24px 24px 28px;
  position: relative;
  display: flex; flex-direction: column;
  flex: 1;
}
.card__date {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--pounamu);
  margin-bottom: 10px;
}
.card__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.card__where {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}
.card__region {
  font-family: var(--serif);
  color: var(--ink-soft);
}

.card__bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.card__more {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.3s, gap 0.3s;
}
.card__more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.card:hover .card__more { color: var(--pounamu); gap: 14px; }
.card:hover .card__more svg { transform: translateX(4px); }

.card__distance {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

@keyframes slideFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- NZ Map ---------- */
.map-section {
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.map-section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr minmax(420px, 600px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.map-section__text { max-width: 560px; }
.map-section__text .section-head__title { margin-top: 20px; }
.nz { width: 100%; justify-self: end; }
.nz__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 847.3;
  background:
    radial-gradient(ellipse at 35% 60%, rgba(109, 181, 136, 0.08), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  /* visible so pin tooltips can extend past the framed area when a pin
     sits near the edge — SVG and pins are sized to 100% so they
     naturally stay inside. */
  overflow: visible;
}
.nz__svg { border-radius: 12px; }
@media (max-width: 1000px) {
  .map-section { padding: 100px 0; }
  .map-section__inner { grid-template-columns: 1fr; gap: 56px; }
  .nz { justify-self: center; max-width: 520px; }
}
.nz__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(109, 181, 136, 0.08));
}
.nz__pins { position: absolute; inset: 0; z-index: 2; }

/* ---------- Pins ---------- */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  animation: pinIn 0.6s var(--ease-out) forwards;
}
@keyframes pinIn {
  from { opacity: 0; transform: translate(-50%, -30%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.pin__pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--pounamu);
  opacity: 0.4;
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  80% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pin__dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pounamu);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--pounamu), 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.pin__num {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
  background: rgba(11, 17, 13, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.pin:hover .pin__dot, .pin:focus .pin__dot {
  transform: scale(1.4);
  background: var(--pounamu-bright);
}
.pin:hover .pin__num, .pin:focus .pin__num {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}
.pin--done .pin__dot {
  background: var(--pounamu-bright);
  box-shadow: 0 0 0 1px var(--pounamu-bright), 0 0 14px rgba(159, 217, 180, 0.65);
}
.pin--done .pin__pulse { background: var(--pounamu-bright); }

/* ---------- NZ tooltip ---------- */
.nz__tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 24px));
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(109, 181, 136, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease-out);
}
.nz__tooltip[aria-hidden="false"] {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 30px));
}
.nz__tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--bg-card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tip__index {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--pounamu);
  margin-bottom: 6px;
}
.tip__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.tip__region {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.tip__meta {
  display: flex; gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tip__sep { color: var(--ink-mute); }
.tip__date, .tip__distance { color: var(--ink-soft); }

@media (max-width: 720px) {
  .nz__tooltip { min-width: 180px; padding: 10px 14px; }
  .tip__name { font-size: 15px; }
  .pin { width: 22px; height: 22px; }
  .pin__dot { width: 11px; height: 11px; }
}

/* ---------- Timeline (year) ---------- */
.timeline-section {
  padding: 80px 0 200px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.timeline {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(40px, 6vw, 80px);
}
.timeline__months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}
.timeline__track { position: relative; height: 220px; }
.timeline__line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--line) 4%,
    var(--pounamu) 50%,
    var(--line) 96%,
    transparent 100%);
}
.timeline__pins { position: absolute; inset: 0; }

/* Hiatus block */
.thiatus {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(200, 155, 91, 0.10) 0,
    rgba(200, 155, 91, 0.10) 6px,
    transparent 6px,
    transparent 12px
  );
  border-top: 1px dashed rgba(200, 155, 91, 0.45);
  border-bottom: 1px dashed rgba(200, 155, 91, 0.45);
  border-left: 0; border-right: 0;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.4s forwards;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.thiatus:hover, .thiatus:focus {
  background: repeating-linear-gradient(
    45deg,
    rgba(200, 155, 91, 0.20) 0,
    rgba(200, 155, 91, 0.20) 6px,
    transparent 6px,
    transparent 12px
  );
  border-top-color: rgba(200, 155, 91, 0.8);
  border-bottom-color: rgba(200, 155, 91, 0.8);
  outline: none;
}
.thiatus__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
  pointer-events: none;
}

.tpin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  opacity: 0;
  animation: pinIn 0.55s var(--ease-out) forwards;
  z-index: 3;
}
.tpin__pulse {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pounamu);
  opacity: 0.35;
  animation: pinPulse 2.6s ease-out infinite;
}
.tpin__dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pounamu-bright);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--pounamu-bright), 0 0 12px rgba(159, 217, 180, 0.6);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.tpin__label {
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.tpin:hover .tpin__dot, .tpin:focus .tpin__dot {
  transform: scale(1.4);
}
.tpin:hover .tpin__label, .tpin:focus .tpin__label {
  color: var(--pounamu);
  transform: translateX(-50%) translateY(2px);
}


.timeline__tooltip {
  position: absolute;
  top: 50%;
  transform: translate(-50%, calc(-100% - 38px));
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(109, 181, 136, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease-out);
  z-index: 5;
}
.timeline__tooltip[aria-hidden="false"] {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 44px));
}
.timeline__tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--bg-card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline__tooltip.tlTip--hiatus { box-shadow: 0 24px 60px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(200, 155, 91, 0.3); }

.ttip__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}
.ttip__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.9) saturate(1.05); }
.ttip__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 17, 13, 0.4) 100%);
}

.ttip__body { padding: 14px 16px 16px; }
.ttip__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.ttip__date {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.ttip__distance {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .timeline { padding: 0 24px; }
  .timeline__track { height: 260px; }
  .tpin__label { font-size: 9px; top: 22px; }
  .timeline__tooltip { width: 200px; }
  .ttip__name { font-size: 14px; }
  .timeline__months { font-size: 9px; letter-spacing: 0.08em; }
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 140px 0 160px;
  border-top: 1px solid var(--line);
}
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.about__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 60px;
}
.about__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  font-size: 18px;
  color: var(--ink-soft);
}
.about__cols p { margin-bottom: 20px; }
.about__cols p:last-child { margin-bottom: 0; }
.about__cols strong { color: var(--ink); font-weight: 600; }
.about__cols em { font-family: var(--serif); font-style: normal; color: var(--pounamu); }

@media (max-width: 720px) {
  .about__cols { grid-template-columns: 1fr; gap: 24px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- About Me / Bio (embedded inside The Challenge / About) ---------- */
.about__bio {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.bio__avatar {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(109, 181, 136, 0.18);
  justify-self: start;
}
.bio__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.96) saturate(1.05);
}
.bio__text { max-width: none; }
.bio__text .section-head__kicker { margin-bottom: 16px; }
.bio__heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.bio__text p {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.bio__text p:last-child { margin-bottom: 0; }
.bio__text p strong { color: var(--ink); font-weight: 600; }

@media (max-width: 820px) {
  .about__bio {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 32px;
  }
  .bio__avatar { max-width: 200px; justify-self: center; }
  .bio__text { max-width: none; }
  .bio__text p { font-size: 17px; }
}

/* ---------- Thank You (embedded inside The Challenge / About) ---------- */
.about__thanks {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.about__thanks .section-head__kicker { margin-bottom: 16px; }
.about__thanks-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 900px;
}
.thanks__text {
  margin: 0 0 56px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}
.thanks__text p { margin-bottom: 20px; }
.thanks__text p:last-child { margin-bottom: 0; }

.thanks__gifts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 720px;
}
.gift {
  display: flex;
  flex-direction: column;
}
.gift__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gift__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.05);
}
.gift__caption {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .thanks__gifts { grid-template-columns: 1fr; gap: 32px; max-width: 420px; }
  .thanks__text { font-size: 19px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer__built { text-align: center; flex: 1; }
.footer__built .link-accent { letter-spacing: 0.16em; }
.footer__mark { color: var(--pounamu); width: 18px; height: 18px; display: inline-flex; }
.footer__mark svg { width: 100%; height: 100%; }
@media (max-width: 600px) {
  .footer__inner { justify-content: center; text-align: center; }
  .footer__built { flex: 0 0 100%; order: 3; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 10, 7, 0.85);
  backdrop-filter: blur(12px);
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.5s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--pounamu) transparent;
}
.modal[aria-hidden="false"] .modal__card { transform: translateY(0) scale(1); }
.modal__card::-webkit-scrollbar { width: 6px; }
.modal__card::-webkit-scrollbar-thumb { background: var(--pounamu); border-radius: 3px; }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 17, 13, 0.6);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.modal__close:hover { border-color: var(--pounamu); color: var(--pounamu); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

.modal__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.modal__hero-slideshow { position: absolute; inset: 0; }
.modal__hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  transform: scale(1);
}
.modal__hero-slide.was-active { z-index: 1; }
.modal__hero-slide.is-active {
  z-index: 2;
  animation: slideFadeIn 1.4s var(--ease), slideZoom 8s var(--ease-out);
}
.modal__hero-slide--video { animation: slideFadeIn 1.4s var(--ease); }
.modal__hero-slide--video.is-active { animation: slideFadeIn 1.4s var(--ease); }
@keyframes slideZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

.modal__hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 17, 13, 0.55);
  backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.modal__hero-nav svg { width: 20px; height: 20px; }
.modal__hero-nav--prev { left: 16px; }
.modal__hero-nav--next { right: 16px; }
.modal__hero-nav:hover {
  opacity: 1;
  background: rgba(11, 17, 13, 0.8);
  border-color: var(--pounamu);
  color: var(--pounamu);
}
.modal__hero-nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.modal__hero-nav--next:hover { transform: translateY(-50%) translateX(2px); }

.modal__hero-counter {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: rgba(11, 17, 13, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 100px;
}
/* Modal title bar — discrete row between hero photo and body content.
   No gradient fade, no absolute positioning over the photo. Just three
   stacked rows separated by 1px lines. */
.modal__title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.modal__title-text { min-width: 0; }
.modal__index {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pounamu);
  margin-bottom: 6px;
  display: block;
}
.modal__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.modal__where {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
}

.modal__body { padding: 32px; }

.modal__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .modal__title-bar { padding: 18px 20px; }
}
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
}
.tag--completed {
  background: rgba(109, 181, 136, 0.14);
  border: 1px solid rgba(109, 181, 136, 0.5);
  color: var(--pounamu-bright);
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
}
.tag--completed svg { width: 12px; height: 12px; }

/* Hiatus modal tag — bronze, replaces the green "Completed" look.
   The checkmark SVG is hidden for hiatus (no completion to celebrate here). */
.tag--hiatus {
  background: rgba(200, 155, 91, 0.14) !important;
  border-color: rgba(200, 155, 91, 0.5) !important;
  color: var(--bronze) !important;
}
.tag--hiatus svg { display: none; }

.modal__section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.modal__section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.modal__section h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pounamu);
  margin-bottom: 16px;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.stats li {
  background: var(--bg-card);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.stats__k {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stats__v {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Run Poem */
.modal__section--poem { padding: 12px 0 0; }
.poem {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.poem p {
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
}
.poem p:last-child { margin-bottom: 0; }
.poem p:first-child::first-letter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6em;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--pounamu);
}
.poem__note {
  max-width: 600px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
  text-align: center;
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .modal__body { padding: 24px; }
  .walks__grid { gap: 20px; }
}
