/* Missguided Hikes - design system
   Primary reference: Abetterlou "Midnight desert oasis" (warm abyss canvas, linen text, one amber accent, pill
   controls, hairline borders, no shadows). Borrowed: Aker's giant display type over full-bleed cinematic
   photography; Koto's light condensed display (Oswald 300) at display sizes only + mono labels.
   Role rules: amber = tracks, active/selected state, focus, small marks and links. Primary buttons are
   linen-filled (high-contrast neutral), never amber-filled. Condensed face never below 28px. */
:root {
  --abyss: #0b0600; --onyx: #140b00; --char: #1c140a; --fossil: #43392d; --stone: #4f4538; --ash: #9a8d7e;
  --linen: #fff1e0; --linen-2: #e9dccb; --amber: #ffb442; --amber-dim: rgba(255, 180, 66, .16);
  --hair: rgba(255, 241, 224, .10); --hair-2: rgba(255, 241, 224, .18);
  --f-display: "Oswald", "Arial Narrow", sans-serif; --f-body: "Geist", system-ui, sans-serif; --f-mono: "Geist Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 64px); --max: 1360px; --r: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }   /* nothing may widen the page on phones (large system text sizes included) */
html { background: var(--abyss); color: var(--linen); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--f-body); background: var(--abyss); color: var(--linen); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--abyss); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { font: 400 11.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.label b { color: var(--linen); font-weight: 400; }
.display { font: 300 clamp(44px, 8vw, 128px)/.9 var(--f-display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h2 { font: 300 clamp(34px, 4.6vw, 64px)/.98 var(--f-display); letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.h3 { font: 500 19px/1.3 var(--f-body); letter-spacing: -.01em; margin: 0; }
.lede { font: 400 clamp(18px, 1.6vw, 21px)/1.55 var(--f-body); color: var(--linen-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--ash); }
.amber { color: var(--amber); }

/* ---------- buttons (3 tiers: linen pill / outline pill / text) */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--f-body);
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-primary { background: var(--linen); color: var(--abyss); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(11, 6, 0, .25); color: var(--linen); border-color: var(--hair-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--linen); }
.btn-text { color: var(--linen); padding: 0; height: auto; border-radius: 0; border-bottom: 1px solid var(--hair-2); }
.btn-text:hover { border-color: var(--amber); }
.btn svg { width: 16px; height: 16px; }

/* ---------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 6, 0, .82); backdrop-filter: blur(14px); border-color: var(--hair); }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b { font: 400 26px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.brand span { font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav li a { display: block; padding: 10px 14px; border-radius: 999px; font: 500 14.5px/1 var(--f-body); color: var(--linen-2); }
.nav li a:hover { color: var(--linen); background: rgba(255, 241, 224, .07); }
.nav li a[aria-current] { color: var(--linen); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

/* ---------- home hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: center; animation: drift 38s var(--ease) infinite alternate; z-index: -2; }
@keyframes drift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.12) translate3d(1.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } html { scroll-behavior: auto; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 6, 0, .55) 0%, rgba(11, 6, 0, 0) 22%, rgba(11, 6, 0, 0) 45%, rgba(11, 6, 0, .72) 78%, var(--abyss) 100%); }
.hero-inner { position: absolute; inset: auto 0 0 0; padding: 0 var(--pad) clamp(28px, 5vh, 56px); }
.wordmark { font: 300 clamp(64px, 18vw, 360px)/.78 var(--f-display); letter-spacing: -.015em; text-transform: uppercase; margin: 0 0 0 -.04em;
  color: var(--linen); white-space: nowrap; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(18px, 3vh, 30px); flex-wrap: wrap; }
.hero-row .lede { margin: 0; max-width: 46ch; }
.hero-meta { position: absolute; top: 96px; right: var(--pad); text-align: right; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- stats band */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) !important; }
.stat:first-child { padding-left: 0; }
.stat { padding: 28px 24px 26px; border-right: 1px solid var(--hair); }
.stat:last-child { border-right: 0; }
.stat .n { font: 300 clamp(40px, 4.4vw, 68px)/1 var(--f-display); letter-spacing: -.01em; }
.stat .n small { font-size: .42em; color: var(--ash); margin-left: 4px; letter-spacing: 0; }
.stat .label { margin-top: 10px; display: block; }

/* ---------- sections */
.sec { padding: clamp(72px, 11vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-head .label { display: block; margin-bottom: 14px; }

/* ---------- hike cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 380px); gap: 16px; overflow-x: auto; padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 12px; scroll-padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--fossil) transparent; }
.rail > * { scroll-snap-align: start; }
.card { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--onyx); isolation: isolate; }
.card .ph { aspect-ratio: 3/4; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.card:hover .ph img { transform: scale(1.05); }
.card .cap { position: absolute; inset: auto 0 0 0; padding: 64px 18px 18px; background: linear-gradient(180deg, rgba(11, 6, 0, 0), rgba(11, 6, 0, .9) 70%); }
.card .cap h3 { font: 300 clamp(26px, 2.2vw, 34px)/1 var(--f-display); margin: 6px 0 10px; letter-spacing: -.005em; text-wrap: balance; }
.card .facts { display: flex; gap: 14px; font: 400 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--linen-2); text-transform: uppercase; }
.card .facts span + span::before { content: "·"; margin-right: 14px; color: var(--fossil); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid .card .ph { aspect-ratio: 4/5; }

/* ---------- emirate tiles */
.tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: clamp(560px, 70vw, 860px); }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--onyx); }
.tile:first-child { grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile .label, .card .label { color: var(--linen-2); text-shadow: 0 1px 2px rgba(11,6,0,.9); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 80px 22px 22px; background: linear-gradient(180deg, rgba(11, 6, 0, 0), rgba(11, 6, 0, .88)); }
.tile .cap h3 { font: 300 clamp(34px, 3.4vw, 56px)/.95 var(--f-display); margin: 8px 0 0; }

/* ---------- posters */
.posters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.poster { display: block; border-radius: 4px; overflow: hidden; background: var(--onyx); transition: transform .6s var(--ease); }
.poster:nth-child(even) { transform: translateY(40px); }
.poster:hover { transform: translateY(-6px); }
.poster:nth-child(even):hover { transform: translateY(34px); }
.poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
@media (max-width: 980px) { .posters { grid-template-columns: repeat(3, 1fr); } }

/* ---------- big map */
.mapwrap { position: relative; height: min(86vh, 900px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.mapwrap .map { position: absolute; inset: 0; }
.map-card { position: absolute; z-index: 5; left: var(--pad); bottom: 28px; width: min(380px, calc(100% - 2 * var(--pad))); background: rgba(20, 11, 0, .9);
  backdrop-filter: blur(12px); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; display: none; }
.map-card.show { display: block; }
.map-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.map-card .in { padding: 16px 18px 18px; }
.map-card h3 { font: 300 32px/1 var(--f-display); margin: 8px 0 12px; }
.map-over { position: absolute; z-index: 4; top: 24px; left: var(--pad); pointer-events: none; }
.maplibregl-ctrl-attrib { font: 10px/1.4 var(--f-mono) !important; background: rgba(11, 6, 0, .6) !important; color: var(--ash) !important; }
.maplibregl-ctrl-attrib a { color: var(--ash) !important; }
.maplibregl-ctrl-group { background: rgba(20, 11, 0, .85) !important; border: 1px solid var(--hair) !important; box-shadow: none !important; border-radius: 999px !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 38px !important; height: 38px !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--hair) !important; }
.maplibregl-ctrl-icon { filter: invert(.92) sepia(.25); }
.maplibregl-popup-content { background: var(--onyx); color: var(--linen); border: 1px solid var(--hair); border-radius: var(--r); padding: 10px 12px; font: 400 13px/1.3 var(--f-body); box-shadow: none; }
.maplibregl-popup-tip { display: none; }

/* ---------- journal */
.year { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(20px, 4vw, 64px); padding: 56px 0; border-top: 1px solid var(--hair); }
.year .yr { font: 300 clamp(72px, 10vw, 150px)/.8 var(--f-display); letter-spacing: -.02em; position: sticky; top: 96px; align-self: start; }
.year .yr + .label { display: block; margin-top: 14px; }
.month { margin-bottom: 26px; }
.month > .label { display: block; padding-bottom: 10px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.row img { width: 88px; height: 64px; object-fit: cover; border-radius: 4px; }
.row h3 { font: 500 17px/1.25 var(--f-body); margin: 0 0 4px; }
.row:hover h3 { color: var(--amber); }
.row-tl { margin: 0 0 6px; font-size: 14.5px; line-height: 1.4; color: var(--linen-2); }
.row .num { font: 400 13px/1 var(--f-mono); color: var(--linen-2); text-align: right; white-space: nowrap; }

/* ---------- index filters */
.filters { position: sticky; top: 68px; z-index: 20; background: rgba(11, 6, 0, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.filters .wrap { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; color: var(--linen-2); font: 500 13.5px/1 var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--linen); color: var(--linen); }
.chip[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.search { height: 34px; width: 220px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; color: var(--linen); padding: 0 16px; font: 400 14px/1 var(--f-body); }
.search::placeholder { color: var(--ash); }
.count { margin-left: auto; }
.empty { padding: 80px 0; text-align: center; color: var(--ash); }

/* ---------- hike page */
.hk-hero { position: relative; height: 92svh; min-height: 600px; overflow: hidden; isolation: isolate; }
.hk-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 40s var(--ease) infinite alternate; }
.hk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 6, 0, .5) 0%, rgba(11, 6, 0, 0) 18%, rgba(11, 6, 0, .1) 38%, rgba(11, 6, 0, .62) 62%, rgba(11, 6, 0, .9) 85%, var(--abyss) 100%); }
.hk-hero .in { position: absolute; inset: auto 0 0 0; padding: 0 var(--pad) 40px; }
.hk-hero .label, .hero .label, .hero .lede { text-shadow: 0 1px 2px rgba(11,6,0,.9), 0 0 18px rgba(11,6,0,.6); }
.hk-hero .label, .hero .label { color: var(--linen-2); }
.hk-hero .label b, .hero .label b { color: var(--linen); }
.hk-title { font: 300 clamp(56px, 10vw, 168px)/.84 var(--f-display); letter-spacing: -.015em; margin: 14px 0 0; text-wrap: balance; max-width: 14ch; }
.facts-bar { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--hair-2); margin-top: 32px; }
.facts-bar div { padding: 16px 16px 0 0; }
.facts-bar .v { font: 300 clamp(26px, 2.6vw, 40px)/1 var(--f-display); }
.facts-bar .v small { font-size: .5em; color: var(--ash); margin-left: 3px; }
.facts-bar .label { display: block; margin-top: 8px; }
.intro { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: clamp(28px, 6vw, 96px); align-items: start; }
.along { list-style: none; margin: 0; padding: 0; }
.along li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.along li .label { padding-top: 3px; }
.along li em { font-style: normal; color: var(--ash); font-size: 13px; display: block; }

.terrain { position: relative; height: min(78vh, 820px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); }
.terrain .map { position: absolute; inset: 0; }
.tbar { position: absolute; z-index: 4; top: 16px; right: 16px; display: flex; gap: 8px; }
.profile { position: relative; margin-top: 20px; height: 200px; }
.profile svg { width: 100%; height: 100%; display: block; overflow: visible; }
.profile .hov { position: absolute; top: 0; bottom: 22px; width: 1px; background: var(--linen); pointer-events: none; opacity: 0; }
.profile .tip { position: absolute; top: -6px; transform: translateX(-50%); font: 400 11.5px/1 var(--f-mono); background: var(--linen); color: var(--abyss); padding: 5px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none; opacity: 0; }

/* story: sticky map + photo sequence */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.story .stick { position: sticky; top: 68px; height: calc(100svh - 68px); }
.story .stick .map { position: absolute; inset: 0; }
.story .stick .pos { position: absolute; z-index: 3; left: 20px; bottom: 20px; background: rgba(11, 6, 0, .75); backdrop-filter: blur(10px);
  border: 1px solid var(--hair); border-radius: 999px; padding: 10px 16px; }
.story .steps { padding: 12vh clamp(20px, 4vw, 64px) 30vh; }
.step { margin: 0 0 18vh; opacity: .35; transition: opacity .5s; }
.step.on { opacity: 1; }
.step figure { margin: 0; }
.step img { width: 100%; height: auto; border-radius: var(--r); cursor: zoom-in; background: var(--onyx); }
.step figcaption { margin-top: 14px; }
.step figcaption .cap { font: 400 clamp(17px, 1.35vw, 19px)/1.45 var(--f-body); color: var(--linen); margin: 0 0 8px; text-wrap: pretty; }
.story-intro { padding: 0 0 14vh; }

.topo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--abyss); border: 1px solid var(--hair); }
.topo img { width: 100%; }
.topo-all .over { position: absolute; left: clamp(24px, 5vw, 72px); top: clamp(24px, 6vw, 88px); }
@media (max-width: 980px) { .topo-all .over { position: static; padding: 24px; } }
.gallery { columns: 4 260px; column-gap: 12px; }
.gallery button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--onyx); border-radius: var(--r); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .4s; }
.gallery button:hover img { transform: scale(1.03); }
.pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.pn a { padding: 40px var(--pad); display: block; }
.pn a + a { border-left: 1px solid var(--hair); text-align: right; }
.pn a h3 { font: 300 clamp(30px, 3.2vw, 48px)/1 var(--f-display); margin: 10px 0 0; }
.pn a:hover h3 { color: var(--amber); }

/* ---------- trail guide blocks (hike page) */
.tagline { font: 400 clamp(19px, 1.9vw, 27px)/1.35 var(--f-body); color: var(--linen-2); margin: 20px 0 0; max-width: 42ch; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(11,6,0,.9), 0 0 18px rgba(11,6,0,.6); }
.hk-intro-sec { padding-bottom: clamp(48px, 7vw, 88px); }
.verdict { font: 500 clamp(20px, 1.75vw, 25px)/1.35 var(--f-body); color: var(--linen); margin: 18px 0 0; max-width: 46ch; letter-spacing: -.01em; text-wrap: pretty; }
.overview { margin-top: 16px; }
.tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { height: 30px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--hair-2); border-radius: 999px;
  font: 400 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--linen-2); }
.cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.glance { border-top: 1px solid var(--hair-2); padding-top: 18px; }
.meters { margin: 10px 0 0; }
.meters > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.meters dt { margin: 0; }
.meters dd { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meters dd b { font: 500 15px/1.2 var(--f-body); }
.meters dd .muted { font-size: 13px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 16px; height: 6px; border-radius: 2px; background: var(--fossil); }
.pips i.on { background: var(--linen); }

.hl-sec { padding-top: 0; }
.hls { list-style: none; margin: 0; padding: 0; }
.hl { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--hair); }
.hl:nth-child(even) .hl-ph { order: 2; }
.hl-ph { display: block; padding: 0; border: 0; background: var(--onyx); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.hl-ph img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; transition: transform 1.1s var(--ease); }
.hl-ph:hover img { transform: scale(1.03); }
.hl-n { display: block; font: 300 clamp(72px, 8vw, 132px)/.8 var(--f-display); color: var(--linen); margin-bottom: 18px; }
.hl-tx h3 { font: 300 clamp(32px, 3.2vw, 52px)/.98 var(--f-display); margin: 12px 0 14px; text-wrap: balance; }
.hl-tx p { font: 400 clamp(16px, 1.3vw, 18px)/1.6 var(--f-body); color: var(--linen-2); margin: 0; max-width: 40ch; text-wrap: pretty; }
.hl-marker { width: 30px; height: 30px; border-radius: 50%; background: var(--linen); color: var(--abyss); border: 2px solid var(--abyss);
  font: 500 14px/26px var(--f-body); text-align: center; cursor: zoom-in; }
.hl-marker:hover, .hl-marker.on { background: var(--amber); }

.terrain-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); margin-top: 44px; }
.terrain-facts > div > .label { display: block; margin-bottom: 14px; }
.surf { display: flex; gap: 3px; height: 14px; }
.surf i { border-radius: 2px; min-width: 4px; }
.s1 { background: var(--linen); } .s2 { background: #cbbba5; } .s3 { background: #9a8d7e; } .s4 { background: #6f6353; } .s5 { background: #4f4538; } .s6 { background: #3a3026; }
.surf-key { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.surf-key li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--linen-2); }
.surf-key li i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.surf-key li span { margin-left: auto; font: 400 12.5px/1 var(--f-mono); color: var(--ash); }
.climbs { width: 100%; border-collapse: collapse; font: 400 13.5px/1 var(--f-mono); }
.climbs th { font: 400 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--hair-2); }
.climbs td { padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--linen-2); }
.climbs td:first-child { color: var(--linen); }

.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(28px, 6vw, 96px); align-items: start; }
.route-tx { margin-top: 32px; }
.route-tx p { font: 400 clamp(17px, 1.35vw, 19px)/1.7 var(--f-body); color: var(--linen-2); margin: 0 0 1.15em; max-width: 64ch; text-wrap: pretty; }
.km { font: 400 .78em/1 var(--f-mono); letter-spacing: .04em; color: var(--amber); white-space: nowrap; }
.gtk { border: 1px solid var(--hair); border-radius: var(--r); padding: 24px 26px 10px; position: sticky; top: 96px; }
.gtk ul { list-style: none; margin: 12px 0 0; padding: 0; }
.gtk li { padding: 14px 0; border-top: 1px solid var(--hair); font: 400 15.5px/1.55 var(--f-body); color: var(--linen-2); }
.gtk li:first-child { border-top: 0; }

/* ---------- collections + season (home) */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(360px, 34vw, 520px); gap: 16px; }
.cols .col { aspect-ratio: auto; }
.cols .col:first-child { grid-column: span 2; }
.col { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--onyx); isolation: isolate; aspect-ratio: 4/5; }
.col img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transition: transform 1.1s var(--ease); }
.col:hover img { transform: scale(1.05); }
.col .cap { position: absolute; inset: auto 0 0 0; padding: 90px 22px 22px; background: linear-gradient(180deg, rgba(11, 6, 0, 0), rgba(11, 6, 0, .92) 62%); }
.col .cap .label { color: var(--linen-2); }
.col h3 { font: 300 clamp(32px, 2.8vw, 44px)/.95 var(--f-display); margin: 8px 0 10px; text-wrap: balance; }
.col p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--linen-2); max-width: 34ch; }
.season { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; margin-top: 12px; }
.season div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 10px; text-align: center; }
.season i { display: block; border-radius: 3px 3px 0 0; background: var(--linen); min-height: 2px; }
.season div.off i { background: var(--fossil); }
.season b { font: 400 12px/1 var(--f-mono); color: var(--linen-2); }
.season-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.card .tl { display: block; font: 400 14px/1.4 var(--f-body); color: var(--linen-2); margin: -2px 0 12px; max-width: 34ch; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 4, 0, .96); display: none; align-items: center; justify-content: center; }
.lb.show { display: flex; }
.lb img { max-width: calc(100vw - 180px); max-height: calc(100svh - 140px); border-radius: 4px; }
.lb .cap { position: fixed; left: 0; right: 0; bottom: 24px; text-align: center; }
.lb button { position: fixed; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hair-2); background: rgba(20, 11, 0, .7); color: var(--linen); font-size: 26px; cursor: pointer; }
.lb .x { top: 20px; right: 20px; } .lb .p { left: 24px; top: 50%; } .lb .n { right: 24px; top: 50%; }

/* footer */
.foot { border-top: 1px solid var(--hair); padding: 56px 0 72px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
.foot .big { font: 300 clamp(48px, 7vw, 110px)/.85 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-bottom: 1px solid var(--hair); }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; } .tile { aspect-ratio: 4/5; } .tile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; } .tile:nth-child(4) { grid-column: span 2; aspect-ratio: 16/10; }
  .intro, .route, .terrain-facts, .season-row { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr 1fr; grid-auto-rows: 64vw; }
  .hl { grid-template-columns: 1fr; } .hl:nth-child(even) .hl-ph { order: 0; } .hl-n { font-size: 64px; margin-bottom: 8px; }
  .gtk { position: static; }
  .facts-bar { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 1fr; } .story .stick { top: 68px; height: 42svh; z-index: 2; } .story .steps { padding-top: 6vh; } .step { margin-bottom: 10vh; }
  .year { grid-template-columns: 1fr; } .year .yr { position: static; }
  .nav ul li:not(.keep) { display: none; }
  .hero-meta { display: none; }
}
@media (max-width: 700px) {
  .topo-all { display: none; }
  .foot .note { text-align: left !important; }
  /* collection cards: one per row and as tall as their text needs */
  .cols { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .cols .col, .cols .col:first-child { grid-column: auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; aspect-ratio: auto; }
  .cols .col img { position: absolute; inset: 0; z-index: -1; }
  .cols .col .cap { position: relative; padding-top: 110px; }
  .tiles .tile, .tiles .tile:first-child, .tiles .tile:nth-child(4) { display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; aspect-ratio: auto; }
  .tile img { position: absolute; inset: 0; z-index: -1; }
  .tile { isolation: isolate; } .tile .cap { position: relative; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 72px 1fr; } .row .num { grid-column: 2; text-align: left; }
  .row img { width: 72px; height: 54px; }
  .lb img { max-width: 100vw; } .lb .p, .lb .n { top: auto; bottom: 70px; }
  .pn { grid-template-columns: 1fr; } .pn a + a { border-left: 0; border-top: 1px solid var(--hair); text-align: left; }
}

/* ---------- full map page */
.fullmap { position: fixed; inset: 68px 0 0 0; }
.fullmap .map { position: absolute; inset: 0; }
.fm-top { position: absolute; z-index: 6; top: 14px; left: var(--pad); right: var(--pad); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.fm-top > * { pointer-events: auto; }
.fm-search { position: relative; z-index: 3; width: min(440px, 100%); }
.fm-layers { position: relative; z-index: 1; }
.fm-search input { width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--hair-2); background: rgba(20, 11, 0, .92); backdrop-filter: blur(12px);
  color: var(--linen); padding: 0 20px; font: 400 16px/1 var(--f-body); }
.fm-search input::placeholder { color: var(--ash); }
.fm-res { list-style: none; margin: 8px 0 0; padding: 6px 0; position: absolute; left: 0; right: 0; background: var(--onyx); border: 1px solid var(--hair-2); border-radius: var(--r);
  max-height: min(56vh, 460px); overflow-y: auto; }
.fm-res button { display: grid; grid-template-columns: 54px 1fr; column-gap: 10px; width: 100%; text-align: left; padding: 10px 16px; background: none; border: 0; color: var(--linen); cursor: pointer; font: inherit; }
.fm-res button:hover, .fm-res button:focus-visible { background: rgba(255, 241, 224, .06); }
.fm-res .label { grid-row: span 2; padding-top: 3px; }
.fm-res b { font: 500 15px/1.3 var(--f-body); }
.fm-res em { font-style: normal; font-size: 13px; color: var(--ash); grid-column: 2; }
.fm-layers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fm-layers::-webkit-scrollbar { display: none; }
.fm-layers .chip { flex: none; background: rgba(20, 11, 0, .88); backdrop-filter: blur(10px); height: 38px; }
.fm-layers .chip[aria-pressed="true"] { background: rgba(60, 40, 10, .92); }
.page-map .maplibregl-ctrl-top-left { top: 124px; }
.fm-card { top: auto; bottom: 24px; max-height: calc(100% - 170px); overflow-y: auto; }
.fm-card .in { padding: 16px 18px 18px; }
.fm-card h3 { font: 300 30px/1 var(--f-display); margin: 8px 40px 10px 0; }
.fm-card .facts { display: flex; gap: 14px; font: 400 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--linen-2); }
.fm-tl { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--linen-2); }
.fm-x { position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair-2); background: rgba(11, 6, 0, .75);
  color: var(--linen); font-size: 22px; line-height: 1; cursor: pointer; }
.fm-hikes { list-style: none; margin: 0; padding: 0; }
.fm-hikes a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hair); }
.fm-hikes img { width: 64px; height: 46px; object-fit: cover; border-radius: 4px; aspect-ratio: auto; }
.fm-hikes b { display: block; font: 500 14.5px/1.3 var(--f-body); }
.fm-hikes em { font-style: normal; font: 400 11.5px/1.3 var(--f-mono); color: var(--ash); text-transform: uppercase; letter-spacing: .06em; }
.fm-hikes a:hover b { color: var(--amber); }

/* ---------- hike page: section links */
.hk-tabs { position: sticky; top: 68px; z-index: 30; background: rgba(11, 6, 0, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.hk-tabs ul { list-style: none; margin: 0 auto; max-width: var(--max); padding: 0 var(--pad); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hk-tabs ul::-webkit-scrollbar { display: none; }
.hk-tabs a { display: block; padding: 14px 12px; font: 400 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--linen-2); white-space: nowrap; }
.hk-tabs a:hover { color: var(--linen); }
.hk-tabs a.on { color: var(--linen); box-shadow: inset 0 -2px 0 var(--amber); }
#walk, #highlights, #terrain, #route, #story, #gallery { scroll-margin-top: 116px; }

.map-teaser { display: none; }
h1, h2, h3, .hk-title, .tagline, .lede { overflow-wrap: break-word; }
@media (max-width: 420px) { .brand span { display: none; } }
/* ---------- phones */
@media (max-width: 700px) {
  /* heroes grow with their text instead of spilling up behind the nav (large system text sizes) */
  .hero, .hk-hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 110px; }
  .hk-hero { min-height: 88svh; }
  .hero-inner, .hk-hero .in { position: relative; inset: auto; }
  .nav ul { gap: 0; } .nav li a { padding: 10px 10px; }
  .hero-img { animation: none; inset: 0; width: 100%; height: 100%; }
  .mapwrap { display: none; }
  .map-teaser { display: block; position: relative; }
  .map-teaser img { width: 100%; border-radius: var(--r); border: 1px solid var(--hair); }
  .map-teaser .btn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); }
  .season { gap: 3px; height: 180px; }
  .tile .cap { padding: 60px 16px 16px; } .tile .cap h3 { font-size: 30px; } .tile .label { font-size: 10px; }
  .season b { font-size: 10px; } .season .label { font-size: 9px; letter-spacing: 0; }
  .season div { min-width: 0; }
  .stats .stat { padding: 20px 14px 18px; } .stats .stat .label { font-size: 10px; }
  .hero-row .btn { height: 44px; padding: 0 18px; }
  :root { --pad: 18px; }
  .nav { height: 60px; } .brand b { font-size: 23px; }
  .filters { position: static; }
  .filters .wrap { gap: 8px; padding-left: 0; padding-right: 0; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding: 0 var(--pad); }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; height: 38px; }
  .filters .search { width: calc(100% - 2 * var(--pad)); margin: 4px var(--pad) 0; height: 42px; font-size: 16px; }
  .filters .count { margin: 0 var(--pad); }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .card .ph { aspect-ratio: 3/4; }
  .grid .card .cap { padding: 48px 11px 11px; }
  .grid .card .cap h3 { font-size: 21px; margin: 4px 0 6px; }
  .grid .card .tl, .grid .card .facts span:nth-child(3) { display: none; }
  .grid .card .facts { font-size: 10.5px; gap: 8px; } .grid .card .facts span + span::before { margin-right: 8px; }
  .grid .card .label { font-size: 9.5px; letter-spacing: .06em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hk-tabs { top: 60px; }
  #walk, #highlights, #terrain, #route, #story, #gallery { scroll-margin-top: 104px; }
  .story .stick { top: 103px; height: 38svh; }
  .terrain { height: 64svh; }
  .tbar { top: auto; bottom: 12px; right: 12px; } .tbar .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .facts-bar { gap: 0; } .facts-bar .v { font-size: 24px; white-space: nowrap; } .facts-bar div { padding-right: 8px; } .facts-bar .label { font-size: 10px; }
  .hk-title { font-size: clamp(48px, 15vw, 72px); }
  .surf-key { grid-template-columns: 1fr; }
  .climbs { font-size: 12px; } .climbs th:nth-child(3), .climbs td:nth-child(3) { display: none; }
  .fullmap { top: 60px; }
  .fm-top { top: 10px; left: 10px; right: 10px; }
  .page-map .maplibregl-ctrl-top-left { display: none; }
  .fm-card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 58%; }
  .fm-card > a > img { aspect-ratio: 16/6; } .fm-card { max-height: 52%; } .fm-card h3 { font-size: 26px; margin-top: 4px; }
  .map-over { display: none; }
  .gallery { columns: 2 140px; column-gap: 8px; } .gallery button { margin-bottom: 8px; }
  .lb img { max-height: calc(100svh - 160px); }
}

.hero-row > div, .cta { flex-wrap: wrap; }
