/* RilaTrail — cinematic trail OS */
:root {
  --bg: #0a100e;
  --bg-elevated: #0f1a15;
  --card: rgba(22, 38, 30, 0.72);
  --card-solid: #15261e;
  --accent: #8aad7a;
  --accent-dim: #6e8f62;
  --text: #e8ede8;
  --trail: #c9a978;
  --muted: #8fa08f;
  --line: rgba(138, 173, 122, 0.18);
  --line-strong: rgba(138, 173, 122, 0.4);
  --glass: rgba(12, 20, 16, 0.55);
  --glass-border: rgba(232, 237, 232, 0.12);
  --danger: #d27a6a;
  --easy: #6faf7a;
  --medium: #c9a978;
  --hard: #d27a6a;
  --nav-w: 220px;
  --header-h: 76px;
  --header-h-compact: 58px;
  --max: 1200px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.45);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(138, 173, 122, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 45% at 96% 12%, rgba(201, 169, 120, 0.09), transparent 48%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(26, 46, 36, 0.55), transparent 60%),
    linear-gradient(180deg, #0c1511 0%, var(--bg) 38%, #070c0a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Contour lines + topo feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(
      ellipse 120% 80% at 50% 60%,
      transparent 0,
      transparent 38px,
      rgba(232, 237, 232, 0.55) 39px,
      transparent 40px
    ),
    repeating-linear-gradient(
      12deg,
      transparent,
      transparent 42px,
      rgba(232, 237, 232, 0.28) 42px,
      rgba(232, 237, 232, 0.28) 43px
    );
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: var(--noise);
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--trail);
}

:focus-visible {
  outline: 2px solid var(--trail);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

.meta,
.elev,
.chip,
.nav-side a,
.site-logo .tag,
.coord,
.price,
.form-hint,
.hud-chip,
.peak-marquee,
.nav-progress,
.filter-btn {
  font-family: "IBM Plex Mono", monospace;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(0px) saturate(1);
  background: rgba(10, 16, 14, 0.35);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(8, 12, 10, 0.78);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  transition: min-height 0.3s var(--ease-out);
}

.site-header.is-scrolled .inner {
  min-height: var(--header-h-compact);
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease-out);
}

.site-header.is-scrolled .site-logo {
  transform: scale(0.92);
  transform-origin: left center;
}

.site-logo strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.site-logo .tag {
  font-size: 0.65rem;
  color: var(--trail);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.22rem;
  opacity: 0.9;
  transition: opacity 0.25s, max-height 0.25s, margin 0.25s;
}

.site-header.is-scrolled .site-logo .tag {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav-main a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
}

.nav-main a:hover::after,
.nav-main a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

/* Scroll progress under header */
.nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--trail), var(--accent));
  pointer-events: none;
  z-index: 101;
  transition: width 0.05s linear;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a100e;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(232, 237, 232, 0.04);
  color: var(--text);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--trail);
  color: var(--trail);
  background: rgba(201, 169, 120, 0.06);
}

.btn-trail {
  background: transparent;
  border-color: var(--trail);
  color: var(--trail);
}

.btn-trail:hover {
  background: var(--trail);
  color: #0a100e;
}

/* ——— Cinematic hero ——— */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.88) contrast(1.08) brightness(0.82);
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 10, 0.35) 0%, rgba(8, 12, 10, 0.15) 35%, rgba(8, 12, 10, 0.72) 72%, rgba(8, 12, 10, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 12, 10, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 70% 40%, transparent 20%, rgba(8, 12, 10, 0.4) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 8vw, 5.5rem);
  max-width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  width: 100%;
}

.hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hud-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--trail);
  box-shadow: 0 0 0 2px rgba(201, 169, 120, 0.25);
  flex-shrink: 0;
}

.hero h1,
.hero-title {
  font-size: clamp(4.2rem, 14vw, 9.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 0.86;
  max-width: 12ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 span,
.hero-title span {
  display: inline;
  color: var(--accent);
}

.hero-lead {
  max-width: 34rem;
  margin: 1.4rem 0 2rem;
  color: rgba(232, 237, 232, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero entrance (motion 1) */
.hero-content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.9s var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.08s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coord {
  color: var(--trail);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Peak marquee */
.peak-marquee {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 10, 0.65);
  overflow: hidden;
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.peak-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.peak-marquee span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.peak-marquee span::before {
  content: "◆";
  margin-right: 2.5rem;
  color: var(--trail);
  font-size: 0.45rem;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— Sections & reveal ——— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.25rem, 8vw, 6rem) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trail);
  margin-bottom: 0.45rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.route-grid [data-reveal]:nth-child(2) { --reveal-delay: 80ms; }
.route-grid [data-reveal]:nth-child(3) { --reveal-delay: 160ms; }
.route-grid [data-reveal]:nth-child(4) { --reveal-delay: 240ms; }

/* ——— Route cards ——— */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.route-card {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.35s var(--ease-out),
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.route-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.route-card.is-open {
  border-color: rgba(138, 173, 122, 0.55);
}

.route-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.route-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 12, 10, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.route-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.route-card:hover .route-media img {
  transform: scale(1.08);
}

.route-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.route-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.route-card h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

.price {
  color: var(--trail);
  font-size: 0.82rem;
  white-space: nowrap;
  padding-top: 0.25rem;
}

.chip {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.chip-easy { color: var(--easy); }
.chip-medium { color: var(--medium); }
.chip-hard { color: var(--hard); }

.elev-bar {
  margin-top: 0.15rem;
}

.elev-meta {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.elev-svg {
  width: 100%;
  height: 48px;
  display: block;
}

.elev-svg .fill {
  fill: rgba(138, 173, 122, 0.16);
}

.elev-svg .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.elev-svg .mark {
  fill: var(--trail);
}

.route-desc {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.route-toggle {
  align-self: flex-start;
  margin-top: auto;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--trail);
  color: var(--trail);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.route-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Height-animated itinerary */
.itinerary {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  margin-top: 0;
  transition:
    grid-template-rows 0.45s var(--ease-out),
    border-color 0.3s,
    margin-top 0.3s;
}

.itinerary-inner {
  overflow: hidden;
  min-height: 0;
}

.route-card.is-open .itinerary {
  grid-template-rows: 1fr;
  border-top-color: var(--line);
  margin-top: 0.5rem;
  padding-top: 0.15rem;
}

.day {
  border-bottom: 1px solid rgba(138, 173, 122, 0.12);
}

.day:last-child {
  border-bottom: none;
}

.day-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 0.75rem 0;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.day-btn:hover {
  color: var(--accent);
}

.day-btn span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
}

.day-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
  color: var(--muted);
  font-size: 0.95rem;
}

.day-panel > span,
.day-panel-inner {
  overflow: hidden;
  min-height: 0;
  display: block;
}

.day.is-open .day-panel {
  grid-template-rows: 1fr;
}

.day-panel-inner {
  padding: 0 0 0.85rem;
}

/* Features / about strips */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-deep);
  filter: saturate(0.92) contrast(1.04);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat {
  border-left: 2px solid var(--trail);
  padding-left: 0.9rem;
}

.stat strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent);
}

.stat span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.guide-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.guide-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(0.12) contrast(1.05);
}

.guide-list {
  display: grid;
  gap: 1rem;
}

.guide-item {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.guide-item:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.guide-mark {
  font-family: "IBM Plex Mono", monospace;
  color: var(--trail);
  font-size: 0.8rem;
  padding-top: 0.2rem;
}

/* Tour page layout */
.tour-layout {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.nav-side {
  position: sticky;
  top: calc(var(--header-h-compact) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
}

.nav-side .label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--trail);
  margin-bottom: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
}

.nav-side a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  transition: color 0.2s, border-color 0.2s;
}

.nav-side a:hover,
.nav-side a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.page-hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 1.5rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(138, 173, 122, 0.1), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  text-transform: uppercase;
  max-width: 14ch;
  letter-spacing: -0.01em;
  line-height: 0.92;
}

.page-hero p {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.08rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-panel {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 1.6rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.contact-panel h2 {
  text-transform: uppercase;
  font-size: 1.7rem;
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.contact-meta li {
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.contact-meta strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--trail);
  margin-bottom: 0.2rem;
  font-weight: 400;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  background: rgba(8, 12, 10, 0.75);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 173, 122, 0.15);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  min-height: 1em;
}

.form-success {
  display: none;
  border: 1px solid var(--accent);
  background: rgba(138, 173, 122, 0.12);
  padding: 1rem;
  color: var(--text);
}

.form-success.is-visible {
  display: block;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox input {
  width: auto;
  margin-top: 0.35rem;
}

/* Legal pages */
.legal {
  max-width: 720px;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.legal h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  text-transform: uppercase;
  line-height: 0.95;
}

.legal h2 {
  font-size: 1.45rem;
  text-transform: uppercase;
  margin-top: 2rem;
  color: var(--accent);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--trail);
  letter-spacing: 0.08em;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 1.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(138, 173, 122, 0.06), transparent 50%),
    rgba(6, 10, 8, 0.92);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--trail);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 560px;
  margin-left: auto;
  background: rgba(16, 28, 22, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 169, 120, 0.45);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: slideUp 0.4s var(--ease-out);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
}

/* Filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: rgba(8, 12, 10, 0.4);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(138, 173, 122, 0.08);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.route-card.is-hidden {
  display: none;
}

/* Trail strip */
.trail-strip {
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--trail);
  padding: 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.35rem;
  align-items: center;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.trail-strip .km {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.trail-strip p {
  margin: 0;
  color: var(--muted);
}

/* Topo accent line under sections */
.topo-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0 auto;
  max-width: var(--max);
  width: min(100% - 2rem, var(--max));
}

/* Responsive */
@media (max-width: 920px) {
  .split,
  .guide-grid,
  .contact-grid,
  .footer-grid,
  .tour-layout {
    grid-template-columns: 1fr;
  }

  .nav-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 0.85rem;
  }

  .nav-side a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding-left: 0;
  }

  .nav-side a:hover,
  .nav-side a.is-active {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .trail-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: end;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(3.6rem, 16vw, 6rem);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header .inner {
    position: relative;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 12, 10, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.35rem;
    gap: 0.9rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-main.is-open {
    display: flex;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 2.5rem;
  }

  .hud-chip {
    font-size: 0.62rem;
    padding: 0.36rem 0.55rem;
  }

  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }

  body::after {
    opacity: 0.03;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-content > * {
    opacity: 1;
    transform: none;
  }

  .peak-marquee-track {
    animation: none;
  }
}
