:root {
  --ink: #161410;
  --ink-soft: #5c574e;
  --paper: #f3eee4;
  --paper-2: #e8e1d4;
  --line: rgba(22, 20, 16, 0.12);
  --accent: #4d5c45;
  --accent-soft: #c5ccb8;
  --wash: #ece7db;
  --deep: #1c1a16;
  --danger: #8a3d32;
  --radius: 18px;
  --nav-h: 72px;
  --player-h: 88px;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(22, 20, 16, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent-soft);
}

#app {
  transition: opacity 0.35s var(--ease);
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

body.page-home #app {
  padding-top: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

body.theme-elton {
  --accent: #c45c48;
  --accent-soft: #e8b9a4;
  --wash: #f3e6d8;
  --deep: #3a241c;
}

body.theme-donskoy {
  --accent: #3d6b66;
  --accent-soft: #b7cfc9;
  --wash: #e7eee8;
  --deep: #1e2a28;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover {
  color: #f6f1ea !important;
}

a.btn-ghost,
a.btn-ghost:visited {
  color: var(--ink) !important;
}

a.card,
a.card:visited {
  color: #f7efe7 !important;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transform: translateY(0);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease,
    color 0.35s ease;
  color: var(--ink);
}

.nav.is-scrolled {
  background: rgba(243, 238, 228, 0.72);
  border-bottom-color: rgba(22, 20, 16, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 7px;
  border: 1px solid color-mix(in srgb, currentColor 72%, transparent);
  border-radius: 2px;
  transition:
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-lockup {
  border-color: currentColor;
  transform: scale(1.02);
  box-shadow: 0 8px 22px color-mix(in srgb, currentColor 12%, transparent);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  overflow: visible;
}

.brand-ring,
.brand-path {
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.brand-peak {
  transform-origin: 14px 11.2px;
  transform: scale(0);
  opacity: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    letter-spacing 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand.is-ready .brand-ring,
.brand.is-ready .brand-path {
  stroke-dashoffset: 0;
}

.brand.is-ready .brand-peak {
  opacity: 1;
  transform: scale(1);
}

.brand.is-ready .brand-name {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.55s;
}

.brand.is-ready:hover .brand-name {
  letter-spacing: 0.07em;
  transition-delay: 0s;
}

.brand.is-booting .brand-ring {
  stroke-dashoffset: 100;
  animation: brandDrawRing 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.brand.is-booting .brand-path {
  stroke-dashoffset: 100;
  animation: brandDrawPath 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.brand.is-booting .brand-peak {
  opacity: 0;
  transform: scale(0);
  animation: brandPeakIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.78s forwards;
}

.brand.is-drawing .brand-ring {
  stroke-dashoffset: 100;
  animation: brandDrawRing 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand.is-drawing .brand-path {
  stroke-dashoffset: 100;
  animation: brandDrawPath 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand.is-drawing .brand-peak {
  opacity: 0;
  transform: scale(0);
  animation: brandPeakIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.38s forwards;
}

@keyframes brandDrawRing {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes brandDrawPath {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes brandPeakIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(22, 20, 16, 0.14);
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: inherit;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
  opacity: 0.72;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  opacity: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

body.page-home .nav:not(.is-scrolled) {
  color: #f6f1ea;
}

body.page-home .nav:not(.is-scrolled) .nav-toggle {
  border-color: rgba(246, 241, 234, 0.35);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

body.page-home .hero {
  min-height: 100vh;
}

@media (max-width: 860px) {
  body.page-home .hero {
    min-height: 100svh;
  }
}

.hero-scene {
  position: absolute;
  inset: -8% 0;
  background: #1a1612 center/cover no-repeat;
  will-change: transform;
}

.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.12);
  filter: saturate(1.1) contrast(1.06);
  animation: heroFadeScale 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  will-change: transform, opacity;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.22) 46%, rgba(12, 10, 8, 0.08) 70%, transparent 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.18) 0%, transparent 30%, rgba(12, 10, 8, 0.42) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(580px, calc(100% - 56px));
  margin: 0 0 48px 28px;
  padding: 30px 32px 28px;
  border-radius: 28px;
  color: #f6f1ea;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.18)),
    rgba(22, 18, 14, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  opacity: 0;
  transform: translateY(18px);
  animation: glassIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-copy .kicker,
.hero-copy .lede {
  color: rgba(246, 241, 234, 0.86);
}

.hero-copy h1 {
  color: #f6f1ea;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero h1 .word,
.hero h1 .char {
  display: inline-block;
  max-width: 100%;
  opacity: 0;
  transform: translateY(1.1em);
  will-change: transform, opacity;
}

.hero h1 .word.is-on,
.hero h1 .char.is-on {
  animation: springUp 0.85s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.hero h1 .line-break {
  display: block;
  height: 0;
}

.hero h1 em {
  font-style: italic;
  color: #f0c2ae;
  font-weight: 500;
}

.hero-copy .kicker {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-copy .lede {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

.hero a.btn-primary,
.hero a.btn-primary:link,
.hero a.btn-primary:visited,
.hero a.btn-primary:active {
  position: relative;
  overflow: hidden;
  background: #f6f1ea !important;
  color: #161410 !important;
  border: 1px solid rgba(246, 241, 234, 0.95);
  font-weight: 500;
  min-width: 168px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.hero a.btn-primary:hover {
  background: #ffffff !important;
  transform: scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 28px rgba(246, 241, 234, 0.45),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.hero a.btn-ghost,
.hero a.btn-ghost:link,
.hero a.btn-ghost:visited,
.hero a.btn-ghost:active {
  background: rgba(12, 10, 8, 0.55) !important;
  color: #f6f1ea !important;
  border: 1px solid rgba(246, 241, 234, 0.35);
  min-width: 148px;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.4s ease;
}

.hero a.btn-ghost span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero a.btn-ghost:hover {
  background: rgba(55, 48, 42, 0.82) !important;
  border-color: rgba(246, 241, 234, 0.55);
  transform: translateY(-1px);
}

.hero a.btn-ghost:hover span {
  transform: translateX(3px);
}

.kicker {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede {
  max-width: 42ch;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #161410;
  color: #f6f1ea !important;
}

.btn-ghost {
  border: 1px solid rgba(22, 20, 16, 0.2);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--ink) !important;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 0 48px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 28px;
  border-radius: 28px;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow);
  color: #f7efe7 !important;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(18px);
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.card:nth-child(2) {
  animation-delay: 0.12s;
}

.card.is-ready {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
  animation: none;
}

.card:hover {
  box-shadow: 0 28px 60px rgba(22, 20, 16, 0.18);
}

.card:hover .card-bg {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.05);
}

.card:hover .card-cta-arrow {
  transform: translateX(4px);
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #3a2a22 center/cover no-repeat;
  transform: scale(1);
  filter: brightness(1) saturate(1);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.18) 0%, rgba(16, 14, 12, 0.35) 42%, rgba(16, 14, 12, 0.82) 100%);
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover::after {
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.12) 0%, rgba(16, 14, 12, 0.28) 42%, rgba(16, 14, 12, 0.78) 100%);
}

.card-elton .card-bg {
  background-image: url("../photos/card-elton.jpg");
}

.card-don .card-bg {
  background-image: url("../photos/card-don.jpg");
}

.card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #f7efe7;
}

.card p {
  max-width: 34ch;
  margin: 10px 0 0;
  color: rgba(247, 239, 231, 0.86);
}

.card .kicker {
  color: rgba(247, 239, 231, 0.72);
}

.card-meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(247, 239, 231, 0.92);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(246, 241, 234, 0.16);
  border: 1px solid rgba(246, 241, 234, 0.28);
  font-size: 13px;
}

.card-cta-arrow {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.section {
  padding: 12px 0 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 40px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 1px;
  background: var(--line);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps.is-in::before {
  width: 100%;
}

.step {
  padding: 18px 0 0;
  border-top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps.is-in .step {
  opacity: 1;
  transform: translateY(0);
}

.steps.is-in .step:nth-child(1) {
  transition-delay: 0.1s;
}

.steps.is-in .step:nth-child(2) {
  transition-delay: 0.25s;
}

.steps.is-in .step:nth-child(3) {
  transition-delay: 0.4s;
}

.step b {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
  transition:
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover b {
  color: var(--accent);
  transform: translateY(-3px);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

@keyframes heroFadeScale {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glassIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes springUp {
  0% {
    opacity: 0;
    transform: translateY(1.05em);
  }
  60% {
    opacity: 1;
    transform: translateY(-0.08em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.fact {
  padding: 22px;
  background: var(--paper);
}

.fact b {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fact span {
  color: var(--ink-soft);
  font-size: 13px;
}

.trail-hero {
  position: relative;
  padding: 48px 0 36px;
}

.trail-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 70vw;
  height: 280px;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
  z-index: -1;
}

.trail-hero h1 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.trail-hero h1 span {
  display: block;
  font-size: 0.38em;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.map-shell {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  overflow: hidden;
  height: min(70vh, 640px);
  border-radius: 28px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

#map {
  height: 100%;
}

.leaflet-container {
  font-family: var(--font-sans);
  background: #ddd6c8;
}

.pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

.leaflet-div-icon.pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

.pin {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #161410;
  color: #f6f1ea;
  font-size: 13px;
  font-weight: 600;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent),
    0 6px 16px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.pin.is-active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 22px color-mix(in srgb, var(--accent) 65%, transparent);
  animation: pinPulse 1.8s ease-in-out infinite;
}

.pin.is-blink {
  animation: pinBlink 0.45s ease-in-out 3;
}

.spine {
  position: relative;
  display: grid;
  gap: 14px;
}

.spine::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}

.stop {
  position: relative;
  padding: 18px 18px 18px 56px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--wash) 55%, var(--paper));
  scroll-margin-top: calc(var(--nav-h) + 16px);
  scroll-margin-bottom: calc(var(--player-h) + 32px);
  opacity: 0.4;
  transform: translateX(0);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s ease;
}

.stop.is-active {
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(22, 20, 16, 0.06);
  background: color-mix(in srgb, var(--wash) 70%, var(--paper));
}

.stop:hover {
  opacity: 0.85;
}

.stop.is-active:hover {
  opacity: 1;
}

.stop-n {
  position: absolute;
  left: 12px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  z-index: 1;
}

.stop h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
}

.stop-kind {
  margin: 4px 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stop p {
  margin: 0;
  color: var(--ink-soft);
}

.stop-text[hidden] {
  display: none;
}

.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.chip-play {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.photo {
  margin-top: 14px;
  overflow: hidden;
  height: 200px;
  border-radius: 16px;
  background: var(--paper-2);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo[hidden] {
  display: none !important;
}

.drop {
  display: none;
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
  margin-bottom: 24px;
}

.note {
  padding: 22px;
  border-radius: 22px;
  background: var(--wash);
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes.is-in .note {
  opacity: 1;
  transform: translateY(0);
}

.notes.is-in .note:nth-child(2) {
  transition-delay: 0.12s;
}

.note h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.note li {
  margin: 0 0 8px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes.is-in .note li {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pinPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent),
      0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent),
      0 0 28px color-mix(in srgb, var(--accent) 70%, transparent);
  }
}

@keyframes pinBlink {
  0%,
  100% {
    transform: scale(1.3);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.55);
    filter: brightness(1.35);
  }
}

.player {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--deep) 94%, black);
  color: #f6f1ea;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.player.is-on {
  display: grid;
  animation: rise 0.5s var(--ease);
}

.player-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 234, 0.22);
  color: #f6f1ea;
  font-size: 20px;
  line-height: 1;
}

.player-close:hover {
  background: rgba(246, 241, 234, 0.1);
}

.player .chip {
  color: #f6f1ea;
  border-color: rgba(246, 241, 234, 0.25);
}

body.has-player {
  padding-bottom: calc(var(--player-h) + 24px);
}

.player-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f6f1ea;
  color: var(--deep);
}

.player-title {
  font-family: var(--font-serif);
  font-size: 18px;
}

.player-sub {
  font-size: 12px;
  opacity: 0.7;
}

.progress {
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-soft);
}

.exc {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  background: color-mix(in srgb, var(--deep) 94%, black);
  color: #f6f1ea;
}

.exc.is-on {
  display: grid;
  animation: fade 0.45s var(--ease);
}

.exc-top,
.exc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.exc h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
}

.exc p {
  max-width: 54ch;
  font-size: 18px;
  color: rgba(246, 241, 234, 0.78);
}

.about {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 88px;
  isolation: isolate;
}

.about::before {
  content: "";
  position: absolute;
  inset: -8% -12% auto;
  height: min(72vh, 640px);
  background:
    radial-gradient(ellipse 70% 55% at 18% 30%, rgba(138, 61, 50, 0.07), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(77, 92, 69, 0.08), transparent 58%);
  pointer-events: none;
  z-index: -1;
}

.about-kicker {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.about.is-ready .about-kicker {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.about-title {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  margin: 0 0 36px;
  font-family: var(--font-serif);
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.about-line {
  display: block;
  overflow: hidden;
}

.about-phrase,
.about-dot {
  display: inline-block;
}

.about-phrase {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 0.2s);
}

.about.is-ready .about-phrase {
  opacity: 1;
  transform: translateY(0);
}

.about-dot {
  color: var(--ink);
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 0.2s + 0.5s);
}

.about.is-ready .about-dot {
  color: #7a3f36;
}

.about-body {
  max-width: 38rem;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.about.is-ready .about-body {
  opacity: 1;
  transform: translateY(0);
}

.about-body p {
  margin: 0 0 1.1em;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about a.btn-primary,
.about a.btn-primary:link,
.about a.btn-primary:visited,
.about a.btn-primary:active {
  position: relative;
  overflow: hidden;
  background: #161410 !important;
  color: #f6f1ea !important;
  border: 1px solid #161410;
  font-weight: 500;
  min-width: 168px;
  box-shadow: 0 8px 22px rgba(22, 20, 16, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    border-color 0.35s ease;
}

.about a.btn-primary:hover {
  background: #2a2620 !important;
  border-color: #2a2620;
  transform: scale(1.03);
  box-shadow:
    0 0 0 1px rgba(22, 20, 16, 0.06),
    0 14px 34px rgba(22, 20, 16, 0.16);
}

.about a.btn-ghost,
.about a.btn-ghost:link,
.about a.btn-ghost:visited,
.about a.btn-ghost:active {
  background: color-mix(in srgb, var(--paper) 55%, transparent) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(22, 20, 16, 0.18);
  min-width: 148px;
  box-shadow: 0 4px 14px rgba(22, 20, 16, 0.04);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    border-color 0.4s ease;
}

.about a.btn-ghost:hover {
  background: #ffffff !important;
  border-color: rgba(22, 20, 16, 0.28);
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(22, 20, 16, 0.1);
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.hidden-file {
  display: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .nav {
    padding: 0 16px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 16px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 14px;
  }

  .nav.is-open .nav-links {
    display: flex;
    color: var(--ink);
  }

  .nav.is-open {
    background: rgba(243, 238, 228, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ink);
  }

  .choice,
  .split,
  .facts,
  .notes,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-copy {
    width: calc(100% - 40px);
    margin: 0 0 24px 20px;
    padding: 22px 20px 20px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero a.btn-primary,
  .hero a.btn-ghost {
    width: 100%;
  }

  .map-shell {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: auto;
    min-width: 0;
    height: 220px;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(22, 20, 16, 0.24);
    transition: bottom 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }

  body.has-player .map-shell {
    bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.map-shell) {
    padding-bottom: calc(220px + 28px + env(safe-area-inset-bottom, 0px));
  }

  body.has-player:has(.map-shell) {
    padding-bottom: calc(var(--player-h) + 220px + 40px + env(safe-area-inset-bottom, 0px));
  }

  .map-shell.is-called {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 7px var(--accent),
      0 14px 36px rgba(22, 20, 16, 0.24);
  }

  .stop {
    scroll-margin-bottom: calc(220px + 40px + env(safe-area-inset-bottom, 0px));
  }

  body.has-player .stop {
    scroll-margin-bottom: calc(var(--player-h) + 220px + 52px + env(safe-area-inset-bottom, 0px));
  }

  .map-shell .leaflet-control-zoom a {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  .split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .hero {
    min-height: 86vh;
  }

  .player {
    grid-template-columns: auto 1fr auto;
  }

  .player-close {
    grid-column: 3;
    grid-row: 1;
  }

  .player .chip[data-next] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-scene img,
  .hero-copy,
  .hero-copy .kicker,
  .hero-copy .lede,
  .hero-actions,
  .hero h1 .word,
  .hero h1 .char,
  .step,
  .steps::before,
  .note,
  .note li,
  .stop,
  .about-kicker,
  .about-phrase,
  .about-body {
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
  }

  .about-dot {
    color: #7a3f36 !important;
  }

  .brand-ring,
  .brand-path {
    stroke-dashoffset: 0 !important;
  }

  .brand-peak {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .brand-name {
    opacity: 1 !important;
    transform: none !important;
  }

  .steps::before {
    width: 100% !important;
  }

  .pin.is-active {
    animation: none !important;
  }
}
