/* ==========================================================================
   THE ICE — Intrinsic Climbers & Explorers, Pithoragarh
   Theme: High-Altitude Expedition Editorial
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: oklch(17% 0.03 250);
  --ink-2: oklch(23% 0.04 255);
  --ink-3: oklch(30% 0.045 255);
  --snow: oklch(97.5% 0.005 240);
  --paper: oklch(94% 0.01 240);
  --ice: oklch(80% 0.07 220);
  --ice-deep: oklch(50% 0.11 235);
  --signal: oklch(66% 0.19 45);
  --signal-hot: oklch(60% 0.2 42);
  --pine: oklch(44% 0.09 155);
  --rock: oklch(48% 0.02 250);
  --line: oklch(88% 0.01 240);
  --line-dark: oklch(35% 0.03 250);
  --rock-banner: oklch(82.798% 0.06561 248.664);

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-hero: clamp(2.5rem, 1rem + 6vw, 5.6rem);
  --text-h2: clamp(1.8rem, 1.2rem + 2.4vw, 3.1rem);
  --text-h3: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  --text-sm: 0.875rem;
  --text-xs: 0.78rem;

  --space-section: clamp(4.5rem, 3rem + 5vw, 8.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --duration-fast: 160ms;
  --duration: 320ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-1: 0 1px 2px oklch(20% 0.03 250 / 0.08), 0 4px 14px oklch(20% 0.03 250 / 0.07);
  --shadow-2: 0 2px 6px oklch(20% 0.03 250 / 0.1), 0 18px 40px -12px oklch(20% 0.03 250 / 0.28);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ice-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, .hero-slide-copy__heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1, .hero-slide-copy__heading { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout utilities ---------- */
.container { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.55); }
.section--dark { background: var(--ink); color: var(--snow); }
.section--paper { background: var(--paper); }
.section--dark a { color: var(--ice); }
.section--dark a:hover { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ice-deep); margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--ice); }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

.lede { font-size: 1.14rem; color: var(--rock); max-width: 58ch; }
.lede-header { font-size: 1.14rem; color: var(--rock-banner); max-width: 58ch; }
.section--dark .lede { color: oklch(78% 0.02 240); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Altitude tick divider — route-card motif */
.alt-rule {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display); font-size: var(--text-xs);
  letter-spacing: 0.18em; color: var(--rock); text-transform: uppercase;
  margin-bottom: 2.2rem;
}
.alt-rule::before, .alt-rule::after {
  content: ""; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 14px);
  opacity: 0.45;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              background-color var(--duration-fast) linear;
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-hot); color: var(--ink); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-dark); color: var(--snow); }
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); transform: translateY(-2px); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--snow); transform: translateY(-2px); }
.btn .arr { transition: transform var(--duration-fast) var(--ease-out-expo); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background-color var(--duration) linear, box-shadow var(--duration) linear;
}
.site-head.is-elevated { background: oklch(17% 0.03 250 / 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 oklch(100% 0 0 / 0.08); }
.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.8rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.02em; color: var(--snow); text-decoration: none;
}
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.28em; color: var(--ice); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.92rem; font-weight: 500; color: oklch(88% 0.01 240);
  text-decoration: none; padding-block: 0.3rem; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--snow);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 26px; height: 26px; margin-inline: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; inset: 0; z-index: 90; flex-direction: column;
    justify-content: center; gap: 1.4rem; background: oklch(15% 0.03 252 / 0.97);
    backdrop-filter: blur(8px);
    /* Explicit height, not just inset:0 — on mobile Safari/Chrome the address bar
       collapses on scroll, and a fixed element sized only by inset can end up
       shorter than the now-taller visible viewport, leaving page content exposed
       at the bottom. 100dvh tracks the real visible viewport; 100vh is the fallback. */
    width: 100%; height: 100vh; height: 100dvh;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transition: opacity var(--duration) linear, visibility var(--duration);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 1.35rem; font-family: var(--font-display); }
}

/* ---------- Hero scene (3D layered ridges) ---------- */
.hero {
  position: relative; min-height: min(94svh, 900px);
  display: grid; align-items: end;
  background: linear-gradient(180deg,
    oklch(15% 0.035 255) 0%, oklch(23% 0.05 250) 42%,
    oklch(46% 0.07 235) 78%, oklch(72% 0.06 225) 100%);
  color: var(--snow); overflow: clip;
}
.hero--sub { min-height: min(62svh, 620px); }
.hero-scene {
  position: absolute; inset: 0; perspective: 900px; pointer-events: none;
}

/* Home hero — real-photo Ken Burns crossfade, sits behind the illustrated ridges */
.hero-photo-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; filter: saturate(0.85) contrast(1.08) brightness(0.72);
  animation: heroKenBurns 45s infinite;
}
.hero-photo--1 { animation-delay: 0s; }
.hero-photo--2 { animation-delay: 9s; }
.hero-photo--3 { animation-delay: 18s; }
.hero-photo--4 { animation-delay: 27s; }
.hero-photo--5 { animation-delay: 36s; }
@keyframes heroKenBurns {
  0%   { opacity: 0;   transform: scale(1.02) translate(0, 0); }
  2%   { opacity: 1; }
  17%  { opacity: 1;   transform: scale(1.13) translate(-1.5%, -1%); }
  20%  { opacity: 0;   transform: scale(1.15) translate(-2%, -1.5%); }
  100% { opacity: 0; }
}

/* Rotating hero copy — one line of text per photo, swapped in step with the
   crossfade above (see main.js "Hero slide copy rotation"). */
.hero-slide-copy { display: grid; }
.hero-slide-copy__item {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 700ms var(--ease-out-expo), visibility 700ms;
}
.hero-slide-copy__item.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide-copy__line {
  margin-top: 0.9rem; font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 600; letter-spacing: 0.02em; color: var(--ice);
}
@media (prefers-reduced-motion: reduce) { .hero-slide-copy__item { transition: none; } }

/* Small floating Om Parvat feature badge, overlapping the home hero */
.hero-feature {
  position: absolute; right: clamp(1rem, 3vw, 3rem); bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 3; width: 172px; text-decoration: none; color: var(--snow);
  background: oklch(20% 0.03 255 / 0.55); backdrop-filter: blur(6px);
  border: 1px solid oklch(90% 0.02 240 / 0.25); border-radius: var(--radius);
  padding: 0.6rem; display: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast);
}
.hero-feature img { width: 100%; height: 96px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.hero-feature strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); margin-top: 0.5rem; }
.hero-feature span { display: block; font-size: var(--text-xs); color: oklch(85% 0.02 235); margin-top: 0.1rem; }
.hero-feature:hover { transform: translateY(-3px); border-color: var(--signal); }
@media (min-width: 760px) { .hero-feature { display: block; } }
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(15% 0.035 255 / 0.6) 0%, oklch(30% 0.06 240 / 0.28) 45%, oklch(15% 0.035 255 / 0.72) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; opacity: 0; }
  .hero-photo--1 { opacity: 1; }
}

.hero-scene__stage { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.ridge { position: absolute; inset-inline: -6%; bottom: -2px; width: 112%; will-change: transform; }
.ridge svg { width: 100%; height: auto; }
.ridge--1 { color: oklch(58% 0.055 235); opacity: 0.85; }
.ridge--2 { color: oklch(42% 0.06 245); opacity: 0.92; }
.ridge--3 { color: oklch(28% 0.05 250); }
.ridge--4 { color: oklch(18% 0.035 252); }
.hero-fog {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, oklch(80% 0.04 225 / 0.14) 62%, transparent 88%);
}
.hero-sun {
  position: absolute; top: 16%; right: 14%; width: clamp(60px, 9vw, 120px); aspect-ratio: 1;
  border-radius: 50%; background: oklch(92% 0.06 80);
  box-shadow: 0 0 90px 30px oklch(90% 0.08 75 / 0.35); will-change: transform;
}
@media (max-width: 640px) { .hero-sun { top: 6%; right: 6%; width: 52px; } }
.hero__in { position: relative; z-index: 2; padding-block: 9rem 4.5rem; }
@media (max-width: 640px) { .hero__in { padding-block: 6.5rem 3rem; } }
.hero__kicker {
  display: inline-flex; gap: 0.6rem; align-items: center;
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--ice);
  margin-bottom: 1.2rem;
}
.hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.hero p.lede { color: oklch(85% 0.02 235); margin-top: 1.3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 3rem;
  font-family: var(--font-display); font-size: var(--text-sm);
}
.hero__meta span strong { display: block; font-size: 1.35rem; letter-spacing: -0.01em; }
.hero__meta span { color: oklch(80% 0.03 230); }
.hero__meta span strong { color: #fff; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink); color: oklch(82% 0.02 235);
  border-top: 1px solid oklch(32% 0.03 250);
}
.trust__in {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.4rem;
  padding-block: 1.05rem; font-family: var(--font-display);
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
}
.trust__in span { display: inline-flex; align-items: center; gap: 0.55rem; }
.trust__in span::before { content: "▲"; font-size: 0.55rem; color: var(--signal); }

/* ---------- Cards ---------- */
.card-row { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .card-row { grid-template-columns: repeat(3, 1fr); } }

.trek-card {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  text-decoration: none; color: var(--ink);
  transition: box-shadow var(--duration) var(--ease-out-expo);
  transform-style: preserve-3d; will-change: transform;
}
.trek-card:hover { box-shadow: var(--shadow-2); color: var(--ink); }
.trek-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.trek-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 600ms var(--ease-out-expo);
}
.trek-card:hover .trek-card__media img { transform: scale(1.045); }
.trek-card__alt {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: oklch(17% 0.03 250 / 0.82); color: var(--ice);
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; padding: 0.3rem 0.7rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.trek-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.trek-card__body h3 { font-size: 1.28rem; }
.trek-card__body p { color: var(--rock); font-size: 0.95rem; flex: 1; }
.trek-card__facts {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  font-size: var(--text-xs); font-weight: 600; font-family: var(--font-display);
}
.trek-card__facts span {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.18rem 0.62rem;
  color: var(--ink-3); background: var(--snow);
}
.trek-card__go {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ice-deep);
}
.trek-card:hover .trek-card__go { color: var(--signal-hot); }

/* Stretched link — makes the whole card clickable while letting the
   quote chip remain an independently clickable nested link */
.trek-card__stretched { color: inherit; text-decoration: none; }
.trek-card__stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.trek-card__quote {
  position: relative; z-index: 2;
  border: 1px solid var(--signal); border-radius: 999px; padding: 0.18rem 0.7rem;
  color: var(--signal-hot); background: oklch(97% 0.03 45);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  text-decoration: none; transition: background-color var(--duration-fast) linear, color var(--duration-fast) linear;
}
.trek-card__quote:hover { background: var(--signal); color: var(--ink); }

.grade { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.65rem; border-radius: 4px; }
.grade--easy { background: oklch(90% 0.05 155); color: var(--pine); }
.grade--moderate { background: oklch(92% 0.06 85); color: oklch(48% 0.11 70); }
.grade--hard { background: oklch(92% 0.05 40); color: oklch(48% 0.15 35); }
.grade--yatra { background: oklch(92% 0.04 235); color: var(--ice-deep); }

/* ---------- Feature split ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  filter: saturate(0.92) contrast(1.05); width: 100%; object-fit: cover;
}
.split__media--stamp::after {
  content: attr(data-stamp); position: absolute; right: -0.6rem; bottom: -1.1rem;
  background: var(--signal); color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem; padding: 0.55rem 1rem; border-radius: 8px;
  box-shadow: var(--shadow-1); letter-spacing: 0.04em;
}
.checklist { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: baseline; }
.checklist li::before { content: "✓"; font-weight: 700; color: var(--pine); flex: none; }
.section--dark .checklist li::before { color: var(--ice); }

/* ---------- Stats bento ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
}
.stat--wide { grid-column: span 2; background: linear-gradient(135deg, var(--ink-2), oklch(30% 0.07 240)); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--ice);
  letter-spacing: -0.02em;
}
.stat--wide b { color: var(--signal); }
.stat span { font-size: var(--text-sm); color: oklch(76% 0.02 240); display: block; margin-top: 0.5rem; }

/* ---------- Gems horizontal scroller ---------- */
.gems { display: flex; gap: 1.1rem; overflow-x: auto; padding: 0.4rem 0.2rem 1.2rem; scroll-snap-type: x mandatory; }
.gems::-webkit-scrollbar { height: 8px; }
.gems::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gem {
  flex: 0 0 min(240px, 68vw); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem; box-shadow: var(--shadow-1);
}
.gem b { font-family: var(--font-display); font-size: 1.02rem; display: block; }
.gem i { font-style: normal; color: var(--ice-deep); font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.gem p { font-size: 0.88rem; color: var(--rock); margin-top: 0.5rem; }

/* ---------- Activity band ---------- */
.acts { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .acts { grid-template-columns: repeat(4, 1fr); } }
.act {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; background: oklch(20% 0.035 252);
  transition: transform var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast) linear;
}
.act:hover { transform: translateY(-4px); border-color: var(--ice); }
.act b { font-family: var(--font-display); display: block; margin-top: 0.7rem; }
.act span { font-size: var(--text-xs); color: oklch(72% 0.03 235); letter-spacing: 0.06em; }
.act .ico { font-size: 1.5rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.55rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: repeating-linear-gradient(180deg, var(--line-dark) 0 8px, transparent 8px 16px); }
.section:not(.section--dark) .timeline::before { background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 16px); }
.timeline li { position: relative; padding: 0 0 1.8rem 2.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.42rem; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: var(--signal); border: 3px solid var(--snow); box-shadow: 0 0 0 2px var(--signal);
}
.section--dark .timeline li::before { border-color: var(--ink); }
.timeline b { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.timeline time { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; color: var(--ice-deep); text-transform: uppercase; }
.section--dark .timeline time { color: var(--ice); }
.timeline p { font-size: 0.94rem; color: var(--rock); margin-top: 0.25rem; }
.section--dark .timeline p { color: oklch(76% 0.02 240); }

/* ---------- Itinerary route card (details/summary) ---------- */
.route { display: grid; gap: 0.7rem; }
.route details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.route summary {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600;
}
.route summary::-webkit-details-marker { display: none; }
.route summary .day {
  flex: none; width: 3.2rem; height: 3.2rem; display: grid; place-items: center;
  background: var(--ink); color: var(--ice); border-radius: var(--radius-sm);
  font-size: 0.72rem; letter-spacing: 0.05em; text-align: center; line-height: 1.15;
}
.route summary .day b { font-size: 1.05rem; display: block; color: #fff; }
.route summary .alt-tag { margin-left: auto; font-size: var(--text-xs); color: var(--ice-deep); white-space: nowrap; }
.route summary::after { content: "+"; font-size: 1.3rem; color: var(--rock); margin-left: 0.6rem; transition: transform var(--duration-fast) var(--ease-out-expo); }
.route details[open] summary::after { transform: rotate(45deg); }
.route details > div { padding: 0 1.2rem 1.2rem 5.4rem; color: var(--rock); font-size: 0.95rem; }
@media (max-width: 600px) { .route details > div { padding-left: 1.2rem; } }

/* ---------- Fact table / specs ---------- */
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .specs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.specs div { background: #fff; padding: 1.1rem 1.2rem; }
.specs dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rock); }
.specs dd { margin: 0.3rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.specs dd a { color: var(--signal-hot); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.specs dd a:hover { color: var(--ink); text-decoration: underline; }
.specs dd a::after { content: "→"; font-size: 0.9em; }

.inout { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .inout { grid-template-columns: 1fr 1fr; } }
.inout ul { list-style: none; padding: 1.4rem 1.5rem; margin: 0; border-radius: var(--radius); display: grid; gap: 0.6rem; font-size: 0.95rem; }
.inout ul.in { background: oklch(94% 0.03 155); }
.inout ul.out { background: oklch(94% 0.02 40); }
.inout ul li { display: flex; gap: 0.7rem; }
.inout ul.in li::before { content: "✓"; color: var(--pine); font-weight: 700; }
.inout ul.out li::before { content: "✕"; color: oklch(52% 0.14 35); font-weight: 700; }
.inout h3 { margin-bottom: 0.8rem; }

/* ---------- Notice / permit box ---------- */
.notice {
  border-left: 4px solid var(--signal); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-1); font-size: 0.95rem;
}
.notice b { font-family: var(--font-display); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.45rem 1.05rem; font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-sm); color: var(--ink-3);
  transition: all var(--duration-fast) linear;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ice); border-color: var(--ink); }
.is-filtered-out { display: none !important; }

/* ---------- Stories ---------- */
.story-grid { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .story-grid { grid-template-columns: 1fr 1fr; } }
.story {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column;
}
.story__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.story__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.05); }
.story__body { padding: 1.4rem 1.5rem 1.6rem; }
.story__body time { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-deep); }
.story__body h3 { margin: 0.4rem 0 0.6rem; }
.story__body p { color: var(--rock); font-size: 0.96rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.4rem; }
.field label .req { color: var(--signal-hot); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink);
  transition: border-color var(--duration-fast) linear;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ice-deep); outline: none; box-shadow: 0 0 0 3px oklch(80% 0.07 220 / 0.4); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: var(--text-sm); color: var(--rock); }

/* Honeypot anti-spam field — invisible to sighted users, present in the DOM for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-field input { max-width: 140px; }
.captcha-field .form-note { margin-top: 0.4rem; }

.contact-cards { display: grid; gap: 1rem; }
@media (min-width: 700px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-1); }
.ccard b { font-family: var(--font-display); display: block; margin-bottom: 0.5rem; }
.ccard a { display: block; font-size: 0.95rem; margin-top: 0.2rem; }

.steps { display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.step::before {
  content: "0" counter(step); font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: var(--signal); display: block; line-height: 1;
}
.step b { font-family: var(--font-display); display: block; margin: 0.7rem 0 0.35rem; color: #fff; }
.step p { font-size: 0.92rem; color: oklch(76% 0.02 240); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--text-sm); color: oklch(80% 0.03 230); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ice); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: clip;
  background: linear-gradient(160deg, var(--ink) 30%, oklch(30% 0.08 245));
  color: var(--snow); border-radius: var(--radius);
  padding: clamp(2.4rem, 2rem + 3vw, 4.5rem);
  display: grid; gap: 1.5rem; justify-items: start;
}
.cta-band h2 { max-width: 18ch; }
.cta-band .ridgelet { position: absolute; right: -4%; bottom: -8px; width: 46%; color: oklch(30% 0.05 245); opacity: 0.9; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: oklch(80% 0.02 240); font-size: 0.94rem; }
.site-foot a { color: oklch(86% 0.03 230); }
.site-foot a:hover { color: #fff; }
.site-foot__grid { display: grid; gap: 2.5rem; padding-block: 3.6rem 2.4rem; }
@media (min-width: 860px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-foot h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.site-foot__legal {
  border-top: 1px solid var(--line-dark); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  font-size: var(--text-xs); letter-spacing: 0.05em; color: oklch(62% 0.02 245);
}

/* ---------- Mobile quick bar ---------- */
.quickbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem; font-family: var(--font-display); font-weight: 700;
  text-decoration: none; font-size: 0.95rem;
}
.quickbar a.call { background: var(--ink); color: var(--ice); }
.quickbar a.wa { background: var(--signal); color: var(--ink); }
@media (max-width: 700px) { .quickbar { display: grid; } body { padding-bottom: 56px; } }

/* ---------- Contact-method icons (phone / email / WhatsApp) ---------- */
.icon-contact::before {
  content: "";
  display: inline-block;
  vertical-align: -0.15em;
  width: 1em; height: 1em;
  margin-right: 0.45em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.icon-contact--phone::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.icon-contact--mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}
.icon-contact--wa::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.417.475.152.904.129 1.246.08.38-.058 1.171-.48 1.336-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.417.475.152.904.129 1.246.08.38-.058 1.171-.48 1.336-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232'/%3E%3C/svg%3E");
}
.quickbar a.icon-contact::before, .ccard b.icon-contact::before { margin-right: 0.4em; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 550ms var(--ease-out-expo), transform 550ms var(--ease-out-expo); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 70svh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding-block: 8rem 4rem; }
.lost b { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 8rem); line-height: 1; color: var(--ice-deep); }

/* ---------- Photo banner hero (Adventure, Tours & Treks, Plan Now, Social Initiative, About, Stories, Media) ---------- */
/* The image keeps its own natural aspect ratio at full width — never cropped, never
   letterboxed. Text sits in a dark band below it (not overlaid), so a wide/short
   banner image can never push the heading off-screen on small viewports. */
.hero-banner { position: relative; overflow: clip; color: var(--snow); background: var(--ink); }
.hero-banner__img {
  display: block; width: 100%; height: auto;
  animation: heroBannerZoom 18s ease-out forwards;
}
@keyframes heroBannerZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-banner__scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent 0%, var(--ink) 100%);
  pointer-events: none;
}
.hero-banner .hero__in { position: relative; padding-block: 2.6rem 3.2rem; }
@media (prefers-reduced-motion: reduce) { .hero-banner__img { animation: none; } }

/* ---------- Media / press-clippings gallery ---------- */
.clip-wall { columns: 4 220px; column-gap: 1.2rem; }
.clip-wall__item {
  break-inside: avoid; margin-bottom: 1.2rem; position: relative;
  background: #fff; padding: 0.6rem 0.6rem 0.9rem; border-radius: 4px;
  box-shadow: var(--shadow-1); cursor: pointer; border: 1px solid var(--line);
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo);
}
.clip-wall__item:nth-child(3n+1) { transform: rotate(-1.1deg); }
.clip-wall__item:nth-child(3n+2) { transform: rotate(0.8deg); }
.clip-wall__item:nth-child(3n)   { transform: rotate(-0.4deg); }
.clip-wall__item:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: var(--shadow-2); z-index: 2; }
.clip-wall__item img { width: 100%; display: block; border-radius: 2px; }
.clip-wall__item::after {
  content: "🔍"; position: absolute; top: 0.9rem; right: 0.9rem;
  width: 28px; height: 28px; border-radius: 50%; background: oklch(15% 0.03 255 / 0.65); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem; opacity: 0; transition: opacity var(--duration-fast);
}
.clip-wall__item:hover::after { opacity: 1; }
.clip-wall__caption { display: block; margin-top: 0.55rem; font-size: var(--text-xs); color: var(--rock); text-align: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: oklch(10% 0.02 255 / 0.92); padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  background: oklch(20% 0.03 255 / 0.7); color: #fff; border: 1px solid oklch(90% 0.02 240 / 0.3);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox__close:hover { background: var(--signal); color: var(--ink); }

/* ---------- Fullscreen click-to-play video modal ---------- */
.video-trigger { position: relative; cursor: pointer; display: block; border-radius: var(--radius); overflow: hidden; }
.video-trigger img, .video-trigger video { display: block; width: 100%; height: auto; object-fit: cover; transition: transform var(--duration) var(--ease-out-expo); }
.video-trigger:hover img { transform: scale(1.04); }
.video-trigger__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, oklch(15% 0.03 255 / 0.15), oklch(10% 0.02 255 / 0.45));
}
.video-trigger__play span {
  width: 68px; height: 68px; border-radius: 50%; background: oklch(97% 0.01 240 / 0.92);
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  transition: transform var(--duration-fast) var(--ease-out-expo), background var(--duration-fast);
}
.video-trigger__play span::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--signal-hot);
}
.video-trigger:hover .video-trigger__play span { transform: scale(1.1); background: #fff; }
.video-trigger__label {
  position: absolute; left: 0.9rem; bottom: 0.9rem; color: #fff; font-family: var(--font-display);
  font-size: var(--text-sm); background: oklch(15% 0.03 255 / 0.55); padding: 0.3rem 0.7rem; border-radius: 999px;
}

.video-modal {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: oklch(6% 0.01 255 / 0.96);
}
.video-modal.is-open { display: grid; }
.video-modal video { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; object-fit: contain; }
.video-modal__close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  background: oklch(20% 0.03 255 / 0.7); color: #fff; border: 1px solid oklch(90% 0.02 240 / 0.3);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 1;
}
.video-modal__close:hover { background: var(--signal); color: var(--ink); }

/* ---------- Recognition logo strip (About) ---------- */
.recognition-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 1.6rem; }
.recognition-strip img { height: 46px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(0.15); opacity: 0.92; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ridge, .hero-scene__stage, .hero-sun { transform: none !important; }
}
