/* ==========================================================================
   WILDTRACE EXPEDITIONS — route-card design system
   Deep night-navy ground · glacier-pale type · signal orange data
   ========================================================================== */

:root {
  --night: #101B24;
  --ridge: #1A2A36;
  --glacier: #DCE6E4;
  --signal: #F26B2D;
  --signal-hover: #FF7E42;
  --signal-deep: #D9551B;
  --moss: #6E8577;
  --ice: #9FD8E8;
  --ice-dim: #8FB6C4;
  --glow-signal: 0 0 28px rgba(242, 107, 45, 0.38);
  --glow-signal-strong: 0 10px 34px rgba(242, 107, 45, 0.45);

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --max-w: 1320px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --line: rgba(220, 230, 228, 0.12);
  --line-soft: rgba(220, 230, 228, 0.07);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--night);
  color: var(--glacier);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

address {
  font-style: normal;
}

.contour-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--glacier);
}

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

::selection {
  background: var(--signal);
  color: var(--night);
}

/* ---------- Type ---------- */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--glacier);
}

h1 {
  font-size: clamp(2.4rem, 6vw + 1rem, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 3.4rem);
}

h3 {
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mono strong,
.mono b {
  font-weight: 700;
}

.kicker {
  color: var(--signal);
  margin-bottom: 1rem;
}

.muted {
  color: var(--moss);
}

.lede {
  font-size: 1.2rem;
  max-width: 46ch;
  color: rgba(220, 230, 228, 0.88);
}

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 60ch;
}

.section-head h2 {
  margin: 0.35rem 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--signal);
  color: var(--night);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Contour texture layer (inline SVG, moss @ ~10%) */

.has-contours {
  position: relative;
  overflow: hidden;
}

.contour-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contour-bg svg {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  color: var(--moss);
  opacity: 0.1;
}

.has-contours > .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.7rem;
  background: linear-gradient(160deg, var(--signal-hover), var(--signal) 55%, var(--signal-deep));
  color: var(--night);
  border: 1px solid var(--signal);
  cursor: pointer;
  box-shadow: 0 0 0 rgba(242, 107, 45, 0);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: linear-gradient(160deg, #FF9059, var(--signal-hover) 55%, var(--signal));
  border-color: var(--signal-hover);
  color: var(--night);
  transform: translateY(-2px);
  box-shadow: var(--glow-signal-strong);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--glacier);
  border: 1px solid rgba(220, 230, 228, 0.35);
}

.btn-ghost:hover {
  background: rgba(242, 107, 45, 0.08);
  color: var(--signal-hover);
  border-color: var(--signal-hover);
  box-shadow: var(--glow-signal);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.72rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 27, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--glacier);
}

.brand svg {
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-name span {
  color: var(--signal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
}

.site-nav a:not(.btn) {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--glacier);
  padding: 0.35rem 0;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(242, 107, 45, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-nav a:not(.btn):hover {
  color: var(--signal-hover);
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--signal);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
}

/* ---------- Hero (4-layer parallax: photo .35x / haze .5x / canvas .7x / headline 1x) ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 60rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5vw));
  padding-bottom: 3.5vw;
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-haze {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(95% 70% at 72% 18%, rgba(159, 216, 232, 0.16), transparent 65%),
    linear-gradient(to top, rgba(16, 27, 36, 0.55) 0%, rgba(16, 27, 36, 0.15) 55%, rgba(16, 27, 36, 0.3) 100%);
}

.hero .contour-canvas {
  z-index: 2;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(16, 27, 36, 0.92) 0%, rgba(16, 27, 36, 0.35) 40%, rgba(16, 27, 36, 0) 70%);
}

.hero .wrap {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  max-width: 12ch;
  margin: 0.75rem 0 1.25rem;
  text-shadow: 0 4px 40px rgba(16, 27, 36, 0.6);
}

.wipe {
  clip-path: inset(0 0 0 0);
}

/* Page-load choreography: staggered hero entrance (~1.8s total) */

.js .hero .kicker {
  animation: hero-rise 0.8s cubic-bezier(0.25, 0.6, 0.3, 1) 0.15s both;
}

.js .wipe {
  animation: wipe-in 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.4s both;
}

.js .hero .lede {
  animation: hero-rise 0.9s cubic-bezier(0.25, 0.6, 0.3, 1) 0.95s both;
}

.js .hero .hero-cta {
  animation: hero-rise 0.9s cubic-bezier(0.25, 0.6, 0.3, 1) 1.25s both;
}

.js .ticker {
  animation: hero-fade 0.9s ease 1.55s both;
}

@keyframes wipe-in {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero--short {
  min-height: min(62vh, 42rem);
}

.hero--trip {
  min-height: min(70vh, 44rem);
}

@media (min-width: 1100px) {
  .hero--trip {
    aspect-ratio: 21 / 9;
    min-height: 0;
    max-height: 44rem;
  }
}

/* ---------- Ambient canvases ---------- */

.contour-canvas,
.spindrift-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-intro .contour-canvas {
  z-index: 0;
  opacity: 0.9;
}

.page-intro.has-canvas .contour-bg {
  display: none;
}

[data-spindrift] {
  position: relative;
  overflow: hidden;
}

[data-spindrift] > :not(.spindrift-canvas) {
  position: relative;
  z-index: 1;
}

.journal-entry[data-spindrift] > img {
  position: sticky;
}

.spindrift-canvas {
  z-index: 0;
}

/* ---------- Ticker strip ---------- */

.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--night);
  overflow: hidden;
  padding-block: 0.85rem;
}

.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

.ticker-track > span {
  white-space: nowrap;
  color: var(--moss);
}

.ticker-track > span b {
  color: var(--glacier);
  font-weight: 700;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Route cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1020px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Route cards as ticket slips: rotated, overlapping, punched + perforated */

.route-card {
  position: relative;
  background: var(--ridge);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 34px rgba(6, 12, 17, 0.45);
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.3, 0.9, 0.4, 1),
    box-shadow 0.3s ease;
}

.card-grid .route-card:hover,
.card-grid .route-card:focus-within {
  transform: translateY(-8px);
  z-index: 6;
  border-color: rgba(242, 107, 45, 0.7);
  box-shadow: 0 22px 50px rgba(6, 12, 17, 0.6), var(--glow-signal);
}

.route-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.route-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(159, 216, 232, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.route-card:hover .route-card__photo::after {
  opacity: 1;
}

.route-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.route-card:hover .route-card__photo img {
  transform: scale(1.05);
}

.route-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(16, 27, 36, 0.85);
  color: var(--glacier);
  padding: 0.35rem 0.6rem;
  font-size: 0.68rem;
}

.route-card__body {
  position: relative;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  border-top: 2px dashed rgba(220, 230, 228, 0.2);
}

/* Ticket punch holes at the perforation line */

.route-card__body::before,
.route-card__body::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--night);
}

.route-card__body::before {
  left: -10px;
}

.route-card__body::after {
  right: -10px;
}

.route-card__loc {
  color: var(--moss);
  font-size: 0.7rem;
}

.route-card__name a {
  color: var(--glacier);
  text-decoration: none;
}

.route-card__name a:hover {
  color: var(--signal-hover);
}

.route-card__stats {
  color: var(--ice);
  font-size: 0.74rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 0.6rem;
}

.route-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
}

.price {
  color: var(--glacier);
  font-weight: 700;
  font-size: 0.95rem;
}

.price small {
  display: block;
  color: var(--moss);
  font-size: 0.62rem;
  font-weight: 400;
}

/* ---------- Elevation profiles ---------- */

.profile {
  display: block;
  width: 100%;
  height: auto;
}

.profile-area {
  fill: rgba(242, 107, 45, 0.14);
}

.profile-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.profile-tick {
  stroke: var(--moss);
  stroke-width: 1;
  opacity: 0.8;
}

.profile-base {
  stroke: var(--line);
  stroke-width: 1;
}

.profile-grid {
  stroke: rgba(220, 230, 228, 0.08);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.profile-label,
.profile-axis {
  font-family: var(--font-mono);
  fill: var(--moss);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-label--camp {
  fill: var(--glacier);
}

.profile-label--alt {
  fill: var(--ice);
}

.profile-camp {
  fill: var(--night);
  stroke: var(--signal);
  stroke-width: 2;
}

.profile-leader {
  stroke: rgba(220, 230, 228, 0.3);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.profile-big {
  background: var(--night);
  border: 1px solid var(--line-soft);
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

/* Line draw-on-scroll (JS sets dasharray/offset; class releases it) */

.js .profile-line[data-draw] {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .profile-area[data-draw] {
  opacity: 0;
  transition: opacity 0.9s ease 1s;
}

.js .is-drawn .profile-area[data-draw] {
  opacity: 1;
}

/* ---------- Filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: 1.25rem 0 2.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-group > .mono:first-child {
  color: var(--moss);
  margin-right: 0.5rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--glacier);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: var(--signal-hover);
  color: var(--signal-hover);
}

.chip[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--night);
  font-weight: 700;
}

.filter-empty {
  display: none;
  border: 1px dashed var(--line);
  padding: 2.5rem;
  text-align: center;
  color: var(--moss);
}

.filter-empty.is-visible {
  display: block;
}

.filter-count {
  color: var(--moss);
}

/* ---------- Stats / numbers band ---------- */

.stats-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: left;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1;
  color: var(--signal);
  letter-spacing: 0.02em;
}

.stat-label {
  color: var(--moss);
  margin-top: 0.5rem;
}

/* ---------- Feature bands ---------- */

.band-ridge {
  background: var(--ridge);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .three-up {
    grid-template-columns: 1fr;
  }
}

.point h3 {
  margin: 0.75rem 0 0.6rem;
}

.point .idx {
  color: var(--signal);
  font-weight: 700;
}

.point p {
  color: rgba(220, 230, 228, 0.82);
}

/* Split (photo + text) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split img {
  width: 100%;
  border: 1px solid var(--line-soft);
}

/* ---------- Guides ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
}

.guide-card {
  background: var(--ridge);
  border: 1px solid var(--line-soft);
}

.guide-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.guide-card__body {
  padding: 1.3rem 1.3rem 1.5rem;
}

.guide-card__body h3 {
  margin-bottom: 0.35rem;
}

.guide-card__qual {
  color: var(--signal);
  display: block;
  margin-bottom: 0.75rem;
}

.guide-card__body p {
  color: rgba(220, 230, 228, 0.82);
  font-size: 0.97rem;
}

.guide-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.monogram {
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(110, 133, 119, 0.18), transparent 60%),
    var(--night);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  color: var(--moss);
}

@media (max-width: 640px) {
  .guide-duo {
    grid-template-columns: 1fr;
  }
}

/* ---------- Accordion ---------- */

.accordion {
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  background: none;
  border: 0;
  color: var(--glacier);
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.acc-trigger:hover {
  color: var(--signal-hover);
}

.acc-trigger .mono {
  color: var(--moss);
  flex: none;
}

.acc-trigger .acc-icon {
  flex: none;
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 700;
  transition: transform 0.25s ease;
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(45deg);
}

.acc-title {
  flex: 1;
}

.acc-title .mono {
  display: block;
  margin-bottom: 0.2rem;
}

.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.acc-panel > div {
  padding: 0 0.25rem 1.4rem;
  color: rgba(220, 230, 228, 0.85);
  max-width: 70ch;
}

.acc-panel .mono {
  color: var(--ice);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
}

/* ---------- Journal ---------- */

.journal-entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  align-items: start;
}

.journal-entry:last-of-type {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .journal-entry {
    grid-template-columns: 1fr;
  }
}

.journal-entry img {
  width: 100%;
  border: 1px solid var(--line-soft);
  position: sticky;
  top: 6rem;
}

.byline {
  color: var(--moss);
  margin-bottom: 0.85rem;
}

.byline b {
  color: var(--ice);
}

.journal-entry h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.8rem);
  margin-bottom: 1rem;
}

.journal-entry .body p + p {
  margin-top: 1rem;
}

.journal-entry .body {
  color: rgba(220, 230, 228, 0.88);
  max-width: 62ch;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

.teaser {
  background: var(--ridge);
  border: 1px solid var(--line-soft);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.teaser h3 a {
  color: var(--glacier);
  text-decoration: none;
}

.teaser h3 a:hover {
  color: var(--signal-hover);
}

.teaser p {
  color: rgba(220, 230, 228, 0.8);
  font-size: 0.98rem;
}

/* ---------- Expanded trek sections ---------- */

.trek-full {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.trek-full__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.trek-full__stats {
  color: var(--ice);
  border-block: 1px solid var(--line-soft);
  padding-block: 0.7rem;
  margin-block: 1.25rem;
}

.trek-full__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .trek-full__grid {
    grid-template-columns: 1fr;
  }
}

.trek-full__grid img {
  width: 100%;
  border: 1px solid var(--line-soft);
}

.trek-full h3 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--ice);
}

.trek-full p {
  max-width: 66ch;
  color: rgba(220, 230, 228, 0.86);
}

.day-list {
  list-style: none;
  margin-top: 0.5rem;
}

.day-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
  color: rgba(220, 230, 228, 0.86);
}

.day-list .mono {
  color: var(--signal);
  font-size: 0.7rem;
  padding-top: 0.2rem;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 1.5rem;
}

.fact-row .mono {
  color: var(--moss);
}

.fact-row .mono b {
  color: var(--glacier);
}

/* ---------- Detail page (Markha) ---------- */

.trip-header {
  border-bottom: 1px solid var(--line);
  padding-block: 2.25rem;
}

.trip-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}

.trip-meta .mono {
  color: var(--moss);
}

.trip-meta .mono b {
  color: var(--glacier);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  background: var(--signal);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}

.breadcrumb {
  color: var(--moss);
  padding-block: 1.1rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--moss);
}

.breadcrumb a {
  color: var(--moss);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--signal-hover);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.check-list,
.cross-list,
.plain-list {
  list-style: none;
}

.check-list li,
.cross-list li,
.plain-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(220, 230, 228, 0.86);
}

.check-list li::before {
  content: "+";
  position: absolute;
  left: 0.25rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 700;
}

.cross-list li::before {
  content: "–";
  position: absolute;
  left: 0.25rem;
  color: var(--moss);
  font-family: var(--font-mono);
  font-weight: 700;
}

.plain-list li::before {
  content: "·";
  position: absolute;
  left: 0.35rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 700;
}

.honesty {
  border-left: 3px solid var(--signal);
  background: var(--ridge);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.honesty h2,
.honesty h3 {
  margin-bottom: 1rem;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .kit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kit-item {
  border: 1px solid var(--line-soft);
  background: var(--ridge);
  padding: 1rem;
}

.kit-item .mono {
  color: var(--signal);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
}

.kit-item p {
  font-size: 0.9rem;
  color: rgba(220, 230, 228, 0.82);
}

/* ---------- Forms ---------- */

.form-panel {
  background: var(--ridge);
  border: 1px solid var(--line-soft);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 44rem;
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--night);
  border: 1px solid var(--line);
  color: var(--glacier);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F26B2D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: 0;
  border-color: var(--signal);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--signal);
}

.field-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-hover);
  margin-top: 0.4rem;
}

.field.has-error .field-error {
  display: block;
}

.form-success {
  display: none;
  border: 1px solid var(--signal);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.form-success.is-visible {
  display: block;
}

.form-success .mono {
  color: var(--signal);
  display: block;
  margin-bottom: 0.4rem;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.form-note {
  color: var(--moss);
  margin-top: 1rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.office-card {
  border: 1px solid var(--line-soft);
  background: var(--ridge);
  padding: 1.75rem;
}

.office-card + .office-card {
  margin-top: 1.5rem;
}

.office-card h2,
.office-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.office-card address {
  font-style: normal;
  color: rgba(220, 230, 228, 0.85);
}

.office-card .mono {
  color: var(--ice);
}

.office-lines {
  list-style: none;
  margin-top: 1rem;
}

.office-lines li {
  padding-block: 0.45rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h2 {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--moss);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.55rem;
}

.footer-grid a {
  color: rgba(220, 230, 228, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--signal-hover);
}

.footer-brand p {
  color: var(--moss);
  font-size: 0.95rem;
  max-width: 34ch;
  margin-top: 1rem;
}

.footer-brand .mono {
  color: var(--ice);
  margin-top: 1rem;
}

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--moss);
  font-size: 0.72rem;
}

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3rem);
}

.page-intro h1 {
  margin: 0.6rem 0 1.1rem;
}

/* ---------- Reveal on scroll ---------- */

/* Reveals use the separate `translate` property so they compose with
   the ticket-slip rotate/offset transforms instead of clobbering them. */

.js [data-reveal] {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.8s cubic-bezier(0.25, 0.6, 0.3, 1), translate 0.8s cubic-bezier(0.25, 0.6, 0.3, 1);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
}

/* ---------- 404 ---------- */

.err-page {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.25rem;
  padding: var(--pad);
}

.err-page .stat-num {
  font-size: clamp(6rem, 18vw, 12rem);
}

/* ==========================================================================
   MOTION REWORK — diagonal seams, orange fields, offsets, bleed, glows
   ========================================================================== */

/* Diagonal section seams (kill straight horizontal seams) */

.band-ridge,
.band-signal {
  clip-path: polygon(0 0, 100% 2.5vw, 100% 100%, 0 calc(100% - 2.5vw));
  padding-block: calc(clamp(4rem, 8vw, 7rem) + 2.5vw);
  border: none;
}

/* Big signal-orange field */

.band-signal {
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(255, 158, 106, 0.55), transparent 55%),
    linear-gradient(135deg, var(--signal-hover), var(--signal) 45%, var(--signal-deep));
  color: var(--night);
}

.band-signal h2 {
  color: var(--night);
  font-size: clamp(2.6rem, 4vw + 1rem, 4.6rem);
}

.band-signal .lede {
  color: rgba(16, 27, 36, 0.85);
}

.band-signal .kicker {
  color: var(--night);
  opacity: 0.7;
}

.band-signal .btn {
  background: var(--night);
  color: var(--glacier);
  border-color: var(--night);
  box-shadow: 0 10px 28px rgba(16, 27, 36, 0.35);
}

.band-signal .btn:hover {
  background: #060c11;
  color: #ffffff;
  border-color: #060c11;
  box-shadow: 0 16px 38px rgba(16, 27, 36, 0.5);
}

.band-signal .btn-ghost {
  background: transparent;
  color: var(--night);
  border-color: rgba(16, 27, 36, 0.6);
  box-shadow: none;
}

.band-signal .btn-ghost:hover {
  background: rgba(16, 27, 36, 0.12);
  color: var(--night);
  border-color: var(--night);
}

/* Signal dash before section heads */

.section-head::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, var(--signal), var(--signal-hover));
  box-shadow: 0 0 14px rgba(242, 107, 45, 0.65);
}

.guide-card,
.teaser {
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.4, 1), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.guide-card:hover,
.teaser:hover {
  transform: translateY(-6px);
  border-color: rgba(159, 216, 232, 0.4);
  box-shadow: 0 18px 40px rgba(6, 12, 17, 0.55);
}

/* Diagonal cuts on editorial photos */

.journal-entry img,
.split img,
.trek-full__grid img {
  clip-path: polygon(0 0, 100% 1.5%, 100% 100%, 0 98.5%);
}

/* Elevation profile bleeding across section boundaries */

.profile-big {
  position: relative;
  z-index: 5;
  margin-bottom: calc(-1 * clamp(6rem, 12vw, 10rem));
  background: linear-gradient(180deg, #0c141b, var(--night));
  border-color: rgba(159, 216, 232, 0.18);
  box-shadow: 0 30px 70px rgba(6, 12, 17, 0.65), 0 0 40px rgba(242, 107, 45, 0.08);
}

.section-pull {
  padding-top: calc(clamp(4rem, 8vw, 7rem) + clamp(6rem, 12vw, 10rem));
}

/* Sections whose children bleed across the seam */

.allow-bleed,
.has-contours.allow-bleed {
  overflow: visible;
  z-index: 6;
}

/* Decorative elevation line crossing a section seam (index) */

.seam-profile {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -58px;
  width: 100%;
  height: 120px;
  z-index: 4;
  pointer-events: none;
}

.seam-profile path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(242, 107, 45, 0.7));
}

/* Bolder data accents */

.stat-num {
  text-shadow: 0 0 36px rgba(242, 107, 45, 0.5);
}

.badge {
  box-shadow: var(--glow-signal);
}

.chip:hover {
  background: rgba(242, 107, 45, 0.1);
}

.chip[aria-pressed="true"] {
  box-shadow: var(--glow-signal);
}

.footer-grid a {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-grid a:hover {
  transform: translateX(4px);
}

.acc-trigger .acc-icon {
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.acc-trigger:hover .acc-icon {
  text-shadow: 0 0 12px rgba(242, 107, 45, 0.8);
}

.route-card__stats {
  color: var(--ice);
}

.trip-meta .mono b {
  color: var(--ice);
}

/* ==========================================================================
   EXPEDITION CATALOGUE — toolbar, compare tray, phase blocks, highlights
   ========================================================================== */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  padding: 1.25rem 0 1.75rem;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 9rem;
  flex: 1 1 9rem;
  max-width: 14rem;
}

.tool-field--search {
  flex: 2 1 16rem;
  max-width: 24rem;
}

.tool-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}

.tool-field input,
.tool-field select {
  background: var(--ridge);
  border: 1px solid var(--line);
  color: var(--glacier);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0;
  width: 100%;
}

.tool-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F26B2D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.tool-field input:focus,
.tool-field select:focus {
  outline: 2px solid var(--signal);
  outline-offset: 0;
  border-color: var(--signal);
}

.toolbar .btn-ghost {
  flex: none;
}

.compare-toggle {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px dashed rgba(220, 230, 228, 0.3);
  color: var(--moss);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.compare-toggle:hover {
  border-color: var(--ice);
  color: var(--ice);
}

.compare-toggle[aria-pressed="true"] {
  background: var(--ice);
  border: 1px solid var(--ice);
  color: var(--night);
  font-weight: 700;
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 160%);
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: min(92vw, 46rem);
  background: rgba(16, 27, 36, 0.96);
  border: 1px solid rgba(159, 216, 232, 0.4);
  box-shadow: 0 18px 50px rgba(6, 12, 17, 0.7), 0 0 24px rgba(159, 216, 232, 0.12);
  padding: 0.85rem 1.25rem;
  transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.4, 1);
}

.compare-tray.is-visible {
  transform: translate(-50%, 0);
}

.compare-tray .mono {
  color: var(--ice);
  font-size: 0.7rem;
}

.compare-tray ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.compare-tray li {
  color: var(--glacier);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compare-tray li button {
  background: none;
  border: none;
  color: var(--moss);
  font-family: var(--font-mono);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 0.2rem;
}

.compare-tray li button:hover {
  color: var(--signal-hover);
}

/* Phase-block itineraries (standard tier) */

.phase-list {
  display: grid;
  gap: 1rem;
}

.phase-item {
  background: var(--ridge);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--signal);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}

.phase-item .mono {
  color: var(--signal);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
}

.phase-item h3 {
  margin-bottom: 0.6rem;
}

.phase-item p {
  color: rgba(220, 230, 228, 0.86);
  max-width: 75ch;
}

/* Highlights */

.highlight-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2.5rem;
}

@media (max-width: 768px) {
  .highlight-list {
    grid-template-columns: 1fr;
  }
}

.highlight-list li {
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(220, 230, 228, 0.88);
}

.highlight-list li::before {
  content: "\25B2";
  position: absolute;
  left: 0.1rem;
  top: 0.65rem;
  font-size: 0.6rem;
  color: var(--signal);
}

/* Infinite scroll (expeditions index) */

.scroll-sentinel {
  display: none;
  padding: 2rem 0 1rem;
  text-align: center;
  color: var(--moss);
}

.scroll-sentinel.is-active {
  display: block;
}

.js .card-enter {
  animation: card-enter 0.45s ease both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ticker {
    overflow-x: auto;
  }

  .ticker-track {
    animation: none;
  }

  .js .wipe,
  .js .hero .kicker,
  .js .hero .lede,
  .js .hero .hero-cta,
  .js .ticker {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }

  .js .profile-area[data-draw] {
    opacity: 1;
  }

  .hero-layer {
    transform: none !important;
  }
}

