/* Baby Panda Treks — colours from the panda-hiker logo (shared with Thadam) */
:root {
  --ground: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #efebe3;
  --ink: #1f1b16;
  --ink-2: #554d43;
  --ink-3: #72695e;
  --line: #e2dccf;
  --leaf: #4d7419;
  --leaf-strong: #3a5812;
  --leaf-soft: #e8efd9;
  --hat: #e8cca2;
  --boot: #604c38;
  --forest: #1f2e0c;
  --btn: #3a5812;
  --on-forest: #f2f6ea;
  --nav-bg: rgba(245, 243, 238, 0.72);
  --nav-line: rgba(31, 27, 22, 0.08);
  --shadow: 0 1px 2px rgba(31, 27, 22, .06), 0 8px 24px rgba(31, 27, 22, .08);
  --shadow-lift: 0 2px 4px rgba(31, 27, 22, .08), 0 18px 40px rgba(31, 27, 22, .14);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1); /* close to a critically damped spring */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #14120f; --surface: #1e1b17; --surface-2: #26221d;
    --ink: #f2ede4; --ink-2: #c9c0b3; --ink-3: #a39a8d; --line: #332e27;
    --leaf: #9fbb6c; --leaf-strong: #b8d08a; --leaf-soft: #26301a;
    --forest: #10170a; --on-forest: #eef3e4; --btn: #4d7419;
    --nav-bg: rgba(20, 18, 15, 0.7); --nav-line: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #14120f; --surface: #1e1b17; --surface-2: #26221d;
  --ink: #f2ede4; --ink-2: #c9c0b3; --ink-3: #a39a8d; --line: #332e27;
  --leaf: #9fbb6c; --leaf-strong: #b8d08a; --leaf-soft: #26301a;
  --forest: #10170a; --on-forest: #eef3e4; --btn: #4d7419;
  --nav-bg: rgba(20, 18, 15, 0.7); --nav-line: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ground); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.h-section {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 800;
  text-wrap: balance;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--leaf); margin: 0 0 .8rem;
}
.eyebrow.light { color: var(--hat); }

/* ---------- buttons: feedback on press, not release ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 0;
  background: var(--btn); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .2s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn-light { background: #fff; color: #1f1b16 !important; }
.btn-glass {
  background: rgba(255,255,255,.16); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-quiet { background: var(--surface-2); color: var(--ink) !important; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }

/* ---------- nav: translucent material, content scrolls under ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--nav-line); }
.home .nav { position: fixed; inset: 0 0 auto; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; width: min(1160px, 100% - 2rem); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 50%; background: #fff; }
.brand b { font-weight: 800; }
.nav nav { display: flex; align-items: center; gap: .25rem; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: 999px; transition: background-color .2s, transform .3s var(--ease); }
.nav nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav nav a:active { transform: scale(.95); transition-duration: .08s; }
.nav nav a[aria-current="page"] { background: var(--leaf-soft); color: var(--leaf-strong); }
.nav .nav-cta { background: var(--btn); color: #fff !important; }
.nav .nav-cta:hover { background: var(--leaf); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav nav a { padding: .5rem .65rem; font-size: .9rem; }
}

/* ---------- hero: a living ridge scene ---------- */
.hero { position: relative; background: #0b1206; color: #fff; }
.hero-stage { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.scene .mist { animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
[data-trail-halo] { animation: halo 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-copy { padding-block: 7rem 9rem; }
.hero h1 { color: #fff; max-width: 9ch; text-wrap: balance; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; max-width: 30em; color: rgba(255,255,255,.86); margin: 1.2rem 0 0; }
.hero .eyebrow.light { color: var(--hat); }

/* entrance: words rise out of a mask, one after another */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; }
.motion .w > span, .motion .rise { animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
.motion .rise { animation-name: fadeUp; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2.2s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* nav sits over the dark hero as clear glass, then becomes the light material */
.home .nav { position: fixed; inset: 0 0 auto; }
.nav.on-dark { background: rgba(11, 18, 6, .28); border-bottom-color: transparent; }
.nav.on-dark .brand, .nav.on-dark nav a:not(.nav-cta) { color: #fff; }
.nav.on-dark nav a:not(.nav-cta):hover { background: rgba(255,255,255,.12); }

/* ---------- crew: summit at sunrise; a giant word slides behind the team ---------- */
.crew { --p: 0; position: relative; height: 240vh; background: #0b0f08; color: #fff; }
.crew-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; }
.crew-photo { position: absolute; inset: 0; margin: 0; isolation: isolate; overflow: hidden; background: #e9c79a; }
.crew-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 38%;
  /* lift the grey sky to bright, keep the silhouettes near-black */
  filter: brightness(1.95) contrast(1.25) saturate(.5);
  transform: scale(calc(1.14 - var(--p) * .14)); transform-origin: 50% 60%; will-change: transform;
}
/* warm the sky to a sunrise peach; multiply leaves the dark silhouettes dark */
.crew-warm { position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none;
  background: radial-gradient(70% 60% at 55% 18%, #fff4df, #f6cf9c 45%, #d99c66 100%); }
/* darken blend: the word shows on the bright sky but the darker silhouettes win where they overlap,
   so the letters read as standing behind the team */
.crew-word {
  position: absolute; left: 0; top: 17%; white-space: nowrap; pointer-events: none; mix-blend-mode: darken;
  font-size: clamp(7rem, 24vw, 26rem); line-height: .8; font-weight: 900; letter-spacing: -.055em; color: #3a5812;
  transform: translate3d(calc(18vw - var(--p) * 120vw), 0, 0); will-change: transform;
}
.crew-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 11, 5, .55) 78%, rgba(8, 11, 5, .92)); }
.crew-copy { position: relative; z-index: 1; align-self: end; padding-bottom: clamp(2.5rem, 9vh, 5.5rem); }
.crew-h { color: #fff; max-width: 14ch; font-size: clamp(2.2rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; margin-bottom: .9rem; }
.crew-p { max-width: 32em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: rgba(255,255,255,.85); margin: 0; }
.crew-copy .actions { margin-top: 1.4rem; }
.motion [data-crew-in] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease calc(var(--d) * 90ms), transform 1s cubic-bezier(.16, 1, .3, 1) calc(var(--d) * 90ms); }
.motion .crew.shown [data-crew-in] { opacity: 1; transform: none; }

@media (max-width: 760px) {
  /* phones: the team on top (cropped so all eight fit), words below on the dark ground */
  .crew { height: 200vh; }
  .crew-stick { grid-template-rows: auto 1fr; }
  .crew-photo { position: relative; inset: auto; height: 84vw; margin-top: 64px; }
  .crew-photo::after { background: linear-gradient(180deg, transparent 60%, #0b0f08); }
  .crew-img { object-position: 47% 40%; }
  .crew-word { top: 22%; font-size: 34vw; }
  .crew-copy { align-self: start; padding-top: 1.2rem; padding-bottom: 2rem; }
  .crew-h { font-size: clamp(2rem, 9vw, 2.6rem); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; width: min(1160px, 100% - 2rem); position: relative; z-index: 2; box-shadow: var(--shadow); }
.stats div { background: var(--surface); padding: 1.3rem 1.4rem; display: grid; gap: .1rem; }
.stats b { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-3); font-size: .92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.pad-top { padding-top: 64px; }
.section-head { margin-bottom: 2.2rem; display: grid; gap: .9rem; }

/* segmented control with a sliding pill */
.seg { position: relative; display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 1.8rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; flex: none;
  border: 0; background: none; color: var(--ink-2); cursor: pointer;
  font: inherit; font-weight: 650; font-size: .95rem;
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px;
  transition: color .25s, transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.seg button span { color: var(--ink-3); font-weight: 600; margin-left: .2rem; font-variant-numeric: tabular-nums; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg button:active { transform: scale(.95); transition-duration: .08s; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: transform .45s var(--ease), width .45s var(--ease); }

/* trek cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.4rem; }
.card { transition: opacity .3s, transform .45s var(--ease); }
.card[hidden] { display: none; }
.card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  color: inherit; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card a:active { transform: scale(.985); transition-duration: .1s; }
.card-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-art .art { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.card a:hover .art { transform: scale(1.04); }
.chip {
  position: absolute; left: .9rem; top: .9rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.72); color: #1f1b16;
  -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%);
}
.card-body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.spec { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; font-size: .82rem; font-weight: 650; color: var(--ink-3); letter-spacing: .01em; }
.spec .dot { color: var(--hat); }
.card-sum { color: var(--ink-2); margin: 0; flex: 1; }
.more { margin-top: .6rem; font-weight: 700; font-size: .92rem; color: var(--leaf); }
.more span { display: inline-block; transition: transform .35s var(--ease); }
.card a:hover .more span { transform: translateX(4px); }

/* map */
.map-sec { padding-top: 0; }
.map-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 1.4rem; align-items: stretch; }
.map { min-height: 460px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.map-list { background: var(--surface); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow); max-height: 460px; overflow: auto; }
.map-list li { display: grid; padding: .55rem .7rem; border-radius: 12px; }
.map-list li:hover { background: var(--surface-2); }
.map-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.map-list a:hover { text-decoration: underline; }
.map-list span { font-size: .84rem; color: var(--ink-3); }
.maplibregl-popup-content { font: 600 .95rem/1.3 system-ui, sans-serif; border-radius: 12px !important; padding: .6rem .8rem !important; }
.maplibregl-popup-content a { color: #3a5812; }
.map-fallback { display: grid; place-items: center; height: 100%; min-height: 460px; color: var(--ink-3); padding: 2rem; text-align: center; }
@media (max-width: 860px) {
  .map-wrap { grid-template-columns: 1fr; } .map { min-height: 360px; }
  /* phones: a short scrolling list with a soft fade hinting there's more below */
  .map-list { max-height: 300px; overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
  .map-list.at-end { -webkit-mask-image: none; mask-image: none; }
}

/* Thadam */
.thadam { background: var(--forest); color: var(--on-forest); padding-block: clamp(4.5rem, 9vw, 7.5rem); overflow: hidden; }
.thadam h2, .thadam h3 { color: #fff; }
.thadam .lead { color: rgba(242,246,234,.82); }
.thadam-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.thadam-copy .h-section { margin-bottom: 1.1rem; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.8rem; margin-top: 2rem; }
.feats h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.feats p { color: rgba(242,246,234,.72); font-size: .95rem; margin: 0; }
.note { font-size: .85rem; color: rgba(242,246,234,.6); max-width: 24em; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; margin: 0; width: 230px; border-radius: 34px; padding: 8px; background: #0b0f06; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone img { border-radius: 27px; width: 100%; height: auto; }
.phone.p1 { left: 0; top: 60px; transform: rotate(-6deg); }
.phone.p2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone.p3 { right: 0; top: 70px; transform: rotate(6deg); }
@media (max-width: 960px) {
  .thadam-grid { grid-template-columns: 1fr; }
  .phones { height: 470px; max-width: 520px; width: 100%; margin-inline: auto; }
  .phone { width: 190px; }
}
@media (max-width: 560px) {
  .feats { grid-template-columns: 1fr; }
  .phones { height: 400px; }
  .phone { width: 150px; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
}

/* join + steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.steps .n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf-strong); font-weight: 800; margin-bottom: 1rem; }
.steps h3 { font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: .4rem; }
.steps p { color: var(--ink-2); margin: 0; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.contact p { margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 3rem; align-items: start; }
.faq-list { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:active { background: var(--surface-2); }
.chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease); }
.faq details[open] .chev { transform: rotate(225deg) translateY(-1px); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- trek post ---------- */
.post-hero { position: relative; min-height: 520px; display: grid; align-items: end; padding-top: 64px; overflow: hidden; }
.post-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); }
.post-title { position: relative; z-index: 1; padding-block: 3rem 3rem; color: #fff; }
.post-title h1 { color: #fff; }
.post-title .eyebrow { display: block; color: #fff; opacity: .9; line-height: 1.6; }
.post-place { font-size: 1.25rem; margin: .6rem 0 0; color: rgba(255,255,255,.9); }
.back {
  display: inline-flex; margin-bottom: 1.4rem; color: #fff; text-decoration: none; font-weight: 650;
  padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .3s var(--ease);
}
.back:active { transform: scale(.95); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-block: 3.5rem 2rem; align-items: start; }
.prose { font-size: 1.12rem; line-height: 1.7; max-width: 40em; }
.prose .lead { font-size: 1.35rem; line-height: 1.45; color: var(--ink); font-weight: 600; letter-spacing: -.01em; margin-bottom: 1.4em; }
.prose p { color: var(--ink-2); }
.facts { position: sticky; top: 88px; background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.facts h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); margin-bottom: .6rem; }
.facts dl { margin: 0; }
.facts dl div { padding: .75rem 0; border-top: 1px solid var(--line); }
.facts dl div:first-child { border-top: 0; }
.facts dt { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: .1rem 0 0; font-weight: 700; letter-spacing: -.005em; }
.byg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-bottom: 3rem; align-items: start; }
.byg { background: var(--leaf-soft); border-radius: var(--radius); padding: 1.5rem 1.7rem; max-width: 40em; }
.byg h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .8rem; color: var(--leaf-strong); }
.byg li { position: relative; padding-left: 1.6rem; margin: .5rem 0; color: var(--ink-2); }
.byg li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .55rem; height: .3rem; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.plug { display: flex; gap: 1rem; align-items: flex-start; background: var(--forest); color: var(--on-forest); border-radius: var(--radius); padding: 1.4rem; }
.plug img { border-radius: 12px; flex: none; }
.plug h2 { color: #fff; font-size: 1.05rem; margin-bottom: .3rem; }
.plug p { color: rgba(242,246,234,.75); font-size: .95rem; margin-bottom: .6rem; }
.plug a { color: var(--hat); font-weight: 700; text-decoration: none; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 4rem; }
.pn a { display: grid; gap: .2rem; background: var(--surface); border-radius: 18px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.015em; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pn a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pn a:active { transform: scale(.98); }
.pn span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pn-next { text-align: right; }
@media (max-width: 900px) {
  .post-grid, .byg-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .facts { position: static; }
  .post-hero { min-height: 420px; }
}

/* 404 */
.nf-main { min-height: 70svh; display: grid; align-content: center; padding-block: 8rem 4rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid p { margin-top: 1rem; max-width: 26em; }
.foot-h { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.foot li { margin: .35rem 0; }
.foot li a { color: var(--ink-2); text-decoration: none; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 2rem; font-size: .88rem; border-top: 1px solid var(--line); margin-top: 2.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* entrance: things rise in as they scroll into view, staggered along a row */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease var(--stagger, 0ms), transform 1s cubic-bezier(.16, 1, .3, 1) var(--stagger, 0ms); }
.card.pop { animation: pop .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--stagger, 0ms); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.card a.tilt { transition: none; transform-style: preserve-3d; will-change: transform; }
.card a.tilt:hover { transform: none; }

/* stats count up: keep digits from jittering */
.stats b { display: inline-block; min-width: 1.2ch; }

/* phones fan out with scroll (--fan from 0 to 1) */
.phones { --fan: 1; }
.phone.p1 { transform: translateX(calc((1 - var(--fan)) * 62%)) rotate(calc(var(--fan) * -6deg)); }
.phone.p3 { transform: translateX(calc((1 - var(--fan)) * -62%)) rotate(calc(var(--fan) * 6deg)); }
.phone.p2 { transform: translateX(-50%) translateY(calc((1 - var(--fan)) * 40px)) scale(calc(.96 + var(--fan) * .04)); }

/* elevation profile motion graphic */
.profile { margin: clamp(3rem, 7vw, 5rem) 0 0; background: rgba(255,255,255,.04); border: 1px solid rgba(242,246,234,.1); border-radius: calc(var(--radius) + 4px); padding: clamp(1.2rem, 3vw, 2rem); }
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.profile-head .eyebrow { margin-bottom: .35rem; }
.profile-title { display: block; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -.02em; color: #fff; }
.readout { font-variant-numeric: tabular-nums; color: rgba(242,246,234,.7); font-size: 1rem; }
.readout b { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.03em; font-weight: 800; }
.readout .sep { margin: 0 .4rem; color: var(--hat); }
.profile-plot { position: relative; height: clamp(160px, 26vw, 260px); }
.profile-plot svg { width: 100%; height: 100%; overflow: visible; }
.p-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(196,217,154,.3), 0 4px 14px rgba(0,0,0,.4); will-change: transform; }
.p-cursor { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(242,246,234,.35); will-change: transform; }
.profile-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; font-size: .88rem; color: rgba(242,246,234,.6); }

/* reading progress on trek posts */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--hat)); transform: scaleX(0); transform-origin: 0 50%; }
.post-title { will-change: transform, opacity; }

/* map pins drop in one by one */
.map-pin { padding: 0; width: 22px; height: 22px; background: none; border: 0; box-shadow: none; }
.map-pin span { display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #4d7419; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); animation: drop .9s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: var(--d, 0ms); transition: transform .4s var(--ease); }
.map-pin:hover span, .map-pin.hot span { transform: scale(1.45); }
@keyframes drop { from { transform: translateY(-28px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .crew { height: auto; }
  .crew-stick { position: relative; height: auto; min-height: 100svh; }
  .crew-img { transform: none; }
  .crew-word { transform: translate3d(-8vw, 0, 0); }
  .phone.p1 { transform: rotate(-6deg); } .phone.p3 { transform: rotate(6deg); } .phone.p2 { transform: translateX(-50%); }
  .card a:hover, .pn a:hover { transform: none; }
  .card a:hover .art { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .home .nav.scrolled { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chip { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-glass, .back { background: rgba(0,0,0,.55); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: var(--ink); --ink-3: var(--ink-2); --line: currentColor; }
  .card a, .steps li, .faq details, .facts { outline: 1px solid var(--ink); }
}

/* narrow screens: keep the sun and summit in frame, keep nav on one line */
.nav nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .scene { width: auto; height: 100%; aspect-ratio: 1440 / 900; left: 50%; transform: translateX(-60.5%); }
  .hero-copy { padding-block: 6rem 7rem; align-self: start; padding-top: 22svh; }
}
@media (max-width: 360px) { .nav-inner { gap: .4rem; } .nav nav a { padding: .45rem .5rem; font-size: .85rem; } }
@media (max-width: 760px) {
  .scene { right: auto; width: 160vh; width: 160svh; min-width: 100%; max-width: none; }
}

.num { position: absolute; right: .9rem; top: .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: .35rem .6rem; border-radius: 999px; background: rgba(20,18,15,.55); color: #fff; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (prefers-reduced-transparency: reduce) { .num { background: #1f1b16; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- hero v2: sunrise, place rotator, trek ticker ---------- */
.hero-copy { padding-block: 7rem 11rem; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9fbb6c; box-shadow: 0 0 0 0 rgba(159,187,108,.6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(159,187,108,.6); } 100% { box-shadow: 0 0 0 10px rgba(159,187,108,0); } }
.hero-rot { margin: 1.1rem 0 0; font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; color: rgba(255,255,255,.75); }
.rot { position: relative; display: inline-block; vertical-align: bottom; height: 1.25em; overflow: hidden; color: var(--hat); white-space: nowrap; }
.rot-word { display: inline-block; white-space: nowrap; transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .5s ease; }
.rot-word.in { transform: translateY(100%); opacity: 0; }
.rot-word.out { position: absolute; left: 0; top: 0; transform: translateY(-100%); opacity: 0; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: .8rem; color: rgba(255,255,255,.72); }
[data-trail-walker] { filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; overflow: hidden; padding-block: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(8, 12, 5, .35); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; flex: none; gap: .6rem; padding-right: .6rem; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }
.ticker a { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; color: #fff; text-decoration: none; font-weight: 650; font-size: .95rem; padding: .45rem .9rem .45rem .5rem; border-radius: 999px; background: rgba(255,255,255,.08); transition: background-color .25s, transform .35s var(--ease); }
.ticker a span { font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: .2rem .45rem; border-radius: 999px; background: rgba(232,204,162,.2); color: var(--hat); font-variant-numeric: tabular-nums; }
.ticker a:hover { background: rgba(255,255,255,.18); }
.ticker a:active { transform: scale(.95); transition-duration: .08s; }
@media (max-width: 760px) {
  .hero-copy { padding-top: 18svh; padding-bottom: 9rem; }
  .ticker { padding-block: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track[aria-hidden="true"] { display: none; }
  .dot-live { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .ticker { background: #0b1206; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.hero-sub, .hero-rot { text-shadow: 0 1px 18px rgba(8, 12, 5, .55); }
@media (max-width: 520px) {
  .hero-rot .rot { display: block; width: auto !important; }
  .hero-sub { display: none; }
}

/* rotator: share one line box with "We've walked to" so the baselines match */
.hero-rot { line-height: 1.3; }
.rot { height: 1.3em; line-height: 1.3; vertical-align: top; }
.rot-word { line-height: 1.3; vertical-align: top; }

/* home journal: first six, then "View more" per filter */
.more-row { display: flex; justify-content: center; margin-top: 2rem; }
.more-row[hidden] { display: none; }
.more-btn { gap: .6rem; }
.more-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .45s var(--ease); }
.more-btn[aria-expanded="true"] .more-chev { transform: translateY(2px) rotate(225deg); }
