/* ==========================================================================
   ReedStew — The Ascent
   Base styles render a complete, readable static page.
   html.is-motion (set by script.js) enables the cinematic layer.
   ========================================================================== */

:root {
  --night-900: #060B16;
  --night-800: #08101F;
  --night-700: #0C1A2E;
  --night-500: #1B3352;
  --dusk-300: #4C6A8C;
  --pine-800: #16271F;
  --pine-600: #2C4A38;
  --moss-400: #5E7A55;
  --earth-700: #3A2C20;
  --earth-500: #6B5138;
  --stone-300: #B9BEC4;
  --stone-100: #E6E8EB;
  --alpenglow: #E3A36F;

  --f-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: 24px;
  --max: 1440px;
  --section-y: clamp(96px, 14vh, 200px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --cut: 18px;
  --sky-planes:
    linear-gradient(163deg, rgba(27,51,82,0) 0 16%, rgba(27,51,82,.20) 16% 31%, rgba(27,51,82,0) 31% 44%, rgba(76,106,140,.10) 44% 58%, rgba(27,51,82,.16) 58% 100%),
    linear-gradient(17deg, rgba(12,26,46,0) 0 38%, rgba(12,26,46,.35) 38% 55%, rgba(76,106,140,.07) 55% 69%, rgba(12,26,46,0) 69% 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--night-900);
  color: var(--stone-100);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--alpenglow); color: var(--night-900); }
:focus-visible { outline: 2px solid var(--alpenglow); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--stone-100); color: var(--night-900); text-decoration: none; }
.skip-link:focus { top: 16px; }

.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--stone-300); margin-bottom: 20px; }
.h2 { font: 700 clamp(36px, 5vw, 80px)/1.02 var(--f-display); letter-spacing: -.03em; }
.section-head { max-width: var(--max); margin: 0 auto clamp(48px, 7vw, 96px); }

/* ---------- Fixed layers ---------- */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(8) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-5%, -8%); } 25% { transform: translate(-12%, 4%); }
  37% { transform: translate(6%, -14%); } 50% { transform: translate(-4%, 12%); } 62% { transform: translate(-14%, 2%); }
  75% { transform: translate(10%, 6%); } 87% { transform: translate(3%, -3%); } 100% { transform: translate(0, 0); }
}

.cursor { display: none; }

/* ---------- Loader ---------- */
.loader { display: none; }
.is-motion .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90;
  background: var(--night-900);
}
.loader__inner { display: grid; justify-items: center; gap: 20px; }
.loader__mark { width: 120px; height: 100px; overflow: visible; }
.loader__readout { color: var(--stone-300); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 3vw, 40px);
  transition: transform .5s var(--ease), background-color .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
html:not(.is-motion) .nav { background: rgba(6, 11, 22, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-solid { background: rgba(6, 11, 22, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--f-display); letter-spacing: -.02em; }
.nav__mark { width: 26px; height: 26px; color: var(--stone-100); }
.nav__links { display: flex; gap: 32px; align-items: center; font-size: 15px; }
.nav__links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { padding: 9px 16px; border: 1px solid var(--night-500); opacity: 1 !important; transition: border-color .2s, color .2s !important; }
.nav__cta:hover { border-color: var(--alpenglow); color: var(--alpenglow); }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--stone-100); transition: transform .4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; } .nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--night-900);
  display: grid; place-items: center; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: 12px; text-align: center; }
.menu a { font: 700 44px/1.1 var(--f-display); text-decoration: none; letter-spacing: -.02em; }

/* ---------- Altimeter ---------- */
.altimeter {
  position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; z-index: 40; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
}
.is-motion .altimeter { display: flex; }
.altimeter__readout { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--stone-300); font-size: 11px; }
.altimeter__readout small { margin-top: 4px; font-size: 10px; }
.altimeter__track { position: relative; width: 1px; height: 38vh; background: rgba(185, 190, 196, .18); }
.altimeter__fill { position: absolute; left: 0; bottom: 0; width: 1px; height: 100%; background: var(--stone-100); transform-origin: bottom; transform: scaleY(0); }
.altimeter__ticks { position: absolute; inset: 0; }
.altimeter__tick {
  position: absolute; left: -8px; width: 17px; height: 13px; pointer-events: auto; transform: translateY(50%);
  display: grid; place-items: center;
}
.altimeter__tick::before { content: ""; width: 7px; height: 1px; background: var(--stone-300); transition: width .3s, background .3s; }
.altimeter__tick.is-peak::before { width: 5px; height: 5px; background: none; border: 1px solid var(--stone-300); transform: rotate(45deg); }
.altimeter__tick:hover::before { background: var(--alpenglow); border-color: var(--alpenglow); width: 12px; }
.altimeter__tick.is-peak:hover::before { width: 5px; }
.altimeter__tick span {
  position: absolute; right: 22px; white-space: nowrap; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone-300); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.altimeter__tick:hover span { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; min-height: 52px;
  font: 500 16px/1 var(--f-body); text-decoration: none; clip-path: var(--clip);
  transition: background-color .3s, color .3s;
}
.btn--primary { background: var(--stone-100); color: var(--night-900); }
.btn--primary:hover { background: var(--alpenglow); }
.btn--ghost { background: rgba(230, 232, 235, .08); color: var(--stone-100); box-shadow: inset 0 0 0 1px rgba(230, 232, 235, .28); }
.btn--ghost:hover { background: rgba(230, 232, 235, .16); }
.btn--xl { padding: 22px 34px; font-size: 19px; }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__sky {
  position: absolute; inset: 0;
  background: var(--sky-planes), radial-gradient(120% 70% at 50% 100%, #15294A 0%, var(--night-700) 45%, rgba(6, 11, 22, 0) 100%);
}
.hero__layers { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; overflow: visible; }
.hero__layers--back { z-index: 1; }
.hero__layers--front { z-index: 3; pointer-events: none; }
.hero__title-wrap { position: absolute; z-index: 2; left: 0; right: 0; top: 22vh; text-align: center; padding: 0 16px; }
.hero__eyebrow { margin-bottom: 8px; }
.hero__title {
  font: 800 clamp(30px, 9.6vw, 190px)/.86 var(--f-display); letter-spacing: -.045em; text-transform: uppercase;
  color: var(--stone-100); white-space: nowrap;
}
.hero__copy {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px);
  display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 16px;
}
.hero__sub { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; max-width: 30ch; font-weight: 500; }
.hero__micro { color: var(--stone-300); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ==========================================================================
   2. Stats
   ========================================================================== */
.stats { padding: clamp(56px, 8vw, 96px) 0; border-block: 1px solid rgba(27, 51, 82, .7); background: rgba(6, 11, 22, .6); }
.stats__label { display: flex; justify-content: space-between; max-width: var(--max); margin: 0 auto 28px; padding: 0 var(--gutter); color: var(--stone-300); }
.marquee { overflow: hidden; }
.marquee__track { display: flex; flex-wrap: wrap; gap: 0; padding: 0 var(--gutter); }
.stat {
  flex: 0 0 auto; width: min(340px, 80vw); padding: 12px 36px 12px 20px; border-left: 1px solid var(--night-500);
  display: grid; gap: 8px; position: relative;
}
.stat::before { content: ""; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; background: var(--night-900); border: 1px solid var(--stone-300); transform: rotate(45deg); }
.stat strong { font: 700 clamp(44px, 5vw, 72px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .stat__pre { font-family: var(--f-body); font-weight: 500; color: var(--stone-300); margin-right: .04em; }
.stat > span { color: var(--stone-300); font-size: 15px; line-height: 1.4; max-width: 24ch; }
.is-motion .marquee__track { flex-wrap: nowrap; width: max-content; animation: marquee 60s linear infinite; }
.is-motion .marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   3. Mission
   ========================================================================== */
.mission { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.mission__statement { font: 700 clamp(40px, 6.4vw, 108px)/1 var(--f-display); letter-spacing: -.035em; max-width: 16ch; }
.mission__body { margin-top: clamp(32px, 4vw, 56px); margin-left: auto; max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); color: var(--stone-300); }

/* ==========================================================================
   4. Routes
   ========================================================================== */
.routes { padding: var(--section-y) var(--gutter); }
.routes__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route {
  position: relative; min-height: 560px; overflow: hidden; background: var(--night-700);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.route__art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease), filter .6s; }
.route:hover .route__art { transform: scale(1.06) translateY(-2%); filter: brightness(1.15); }
.route__line { position: absolute; left: 10%; top: 6%; width: 80%; height: 50%; overflow: visible; }
.route__line path { fill: none; stroke: var(--alpenglow); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; transition: stroke-dashoffset 1.4s var(--ease); }
.route:hover .route__line path, .route:focus-within .route__line path { stroke-dashoffset: 0; }
.route__body { position: relative; padding: 28px; background: linear-gradient(to top, var(--night-900) 48%, rgba(6, 11, 22, 0)); padding-top: 100px; }
.route__num { color: var(--stone-300); }
.route h3 { font: 700 clamp(28px, 2.4vw, 38px)/1.05 var(--f-display); letter-spacing: -.02em; margin: 10px 0 6px; }
.route__tag { color: var(--alpenglow); font-weight: 500; margin-bottom: 12px; }
.route p:last-child { color: var(--stone-300); font-size: 16px; }

/* ==========================================================================
   5. Story
   ========================================================================== */
.story { padding: var(--section-y) var(--gutter); }
.story__head { max-width: 1100px; display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: 48px; align-items: end; }
.portrait { position: relative; margin: 0; }
.portrait__art { position: relative; }
.portrait__art::before {
  content: ""; position: absolute; inset: 0; transform: translate(14px, 14px);
  background: linear-gradient(135deg, var(--night-500), var(--earth-700));
  clip-path: polygon(6% 0, 100% 5%, 95% 100%, 0 94%);
}
.portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-700); clip-path: polygon(6% 0, 100% 5%, 95% 100%, 0 94%); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { filter: none; transform: scale(1.03); }
.portrait figcaption { margin-top: 24px; color: var(--stone-300); font-size: 11px; }
.story__trail { position: relative; max-width: 1100px; margin: 0 auto; }
.story__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.story__path path { fill: none; }
.story__path-bg { stroke: rgba(185, 190, 196, .22); stroke-width: 1; stroke-dasharray: 4 7 !important; }
.story__path-fg { stroke: var(--stone-100); stroke-width: 1.5; }
html:not(.is-motion) .story__path { display: none; }
.story__list { position: relative; display: grid; gap: clamp(40px, 7vw, 110px); padding: 40px 0; }
.chapter { width: min(420px, 44%); background: rgba(6, 11, 22, .82); padding: 20px 0; }
.chapter:nth-child(odd) { justify-self: start; text-align: right; padding-right: 8px; }
.chapter:nth-child(even) { justify-self: end; padding-left: 8px; }
.chapter__num { display: block; color: var(--alpenglow); margin-bottom: 10px; }
.chapter p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.chapter em { color: var(--stone-100); font-style: italic; }
.story__summits { max-width: 1100px; margin: 64px auto 0; text-align: center; color: var(--stone-300); }

/* ==========================================================================
   6. The Ascent — static base (reduced motion / no JS)
   ========================================================================== */
.ascent { position: relative; padding: var(--section-y) var(--gutter); }
.ascent__sky, .ascent__svg, .ascent__leader, .ascent__progress, .ascent__hint { display: none; }
.ascent__head { max-width: var(--max); margin: 0 auto 56px; }
.peaks { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.peak-card {
  position: relative; padding: 24px; background: rgba(12, 26, 46, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--night-500);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  display: flex; flex-direction: column; gap: 14px;
}
.peak-card__meta { display: flex; justify-content: space-between; color: var(--stone-300); font-size: 11.5px; }
.peak-card h3 { font: 700 clamp(26px, 2.3vw, 36px)/1.05 var(--f-display); letter-spacing: -.02em; }
.peak-card h3 small { font: 400 15px var(--f-body); color: var(--stone-300); letter-spacing: 0; }
.peak-card__line { color: var(--stone-300); font-size: 16px; line-height: 1.5; }
.peak-card__metrics { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--stone-300); }
.peak-card__metrics b { color: var(--stone-100); font: 700 17px var(--f-display); }
.peak-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-900); border: 1px solid var(--night-500); }
.peak-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.peak-card:hover .peak-card__media img { transform: scale(1.03); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--night-500); color: var(--stone-300); }
.peak-card__link { align-self: flex-start; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--stone-300); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.peak-card__link:hover { color: var(--alpenglow); border-color: var(--alpenglow); }
.tag-progress { color: var(--alpenglow); }
.peak-card--progress { border-color: rgba(227, 163, 111, .45); }

/* ---------- The Ascent — cinematic ---------- */
.is-motion .ascent { padding: 0; }
.is-motion .ascent__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.is-motion .ascent__sky {
  display: block; position: absolute; inset: 0;
  background: var(--sky-planes), linear-gradient(to bottom, rgba(6, 11, 22, 0) 0%, var(--night-700) 55%, #13274A 70%, var(--night-800) 100%);
}
.is-motion .ascent__svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.is-motion .ascent__leader { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ascent__leader line { stroke: var(--stone-300); stroke-width: 1; stroke-dasharray: 3 5; }
.ascent__leader circle { fill: var(--night-900); stroke: var(--alpenglow); stroke-width: 1.5; }
.is-motion .ascent__head { position: absolute; z-index: 4; top: clamp(84px, 13vh, 130px); left: clamp(16px, 4vw, 64px); margin: 0; max-width: 520px; pointer-events: none; }
.is-motion .ascent__head .h2 { font-size: clamp(32px, 3.6vw, 56px); }
.is-motion .ascent__hint { display: block; margin-top: 18px; color: var(--stone-300); }
.is-motion .peaks { display: block; max-width: none; margin: 0; }
.is-motion .peak-card {
  position: absolute; z-index: 5; top: 50%; width: min(440px, 34vw); padding: 22px; gap: 11px;
  opacity: 0; visibility: hidden; transform: translateY(-50%);
}
.is-motion .peak-card[data-side="left"] { right: clamp(56px, 7vw, 120px); }
.is-motion .peak-card[data-side="right"] { left: clamp(16px, 5vw, 80px); }
.is-motion .ascent__progress {
  display: flex; gap: 14px; position: absolute; z-index: 5; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--dusk-300);
}
.ascent__progress span { transition: color .3s; }
.ascent__progress span.is-active { color: var(--stone-100); }

/* hiker & clouds inside the SVG */
.cloud { animation: drift 14s ease-in-out infinite alternate; }
.cloud:nth-child(2n) { animation-duration: 19s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-26px); } to { transform: translateX(26px); } }

/* ==========================================================================
   7. Services
   ========================================================================== */
.services { padding: var(--section-y) var(--gutter); }
.services__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sign {
  position: relative; padding: 36px 30px 30px; background: linear-gradient(160deg, #1D1812, #120F0B);
  box-shadow: inset 0 0 0 1px rgba(107, 81, 56, .55);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  padding-right: 56px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--ease);
}
.sign:hover { transform: translateX(8px); }
.sign__post { position: absolute; left: 22px; top: 0; width: 2px; height: 22px; background: var(--earth-500); }
.sign__for { color: #A38A6D; font-size: 11px; }
.sign h3 { font: 700 clamp(30px, 2.6vw, 42px)/1 var(--f-display); letter-spacing: -.02em; }
.sign__kind { color: var(--alpenglow); font-weight: 500; }
.sign p:not(.sign__for):not(.sign__kind) { color: #CBBFB0; font-size: 16px; flex: 1; }
.sign__link { margin-top: 10px; align-self: flex-start; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.sign__link:hover { color: var(--alpenglow); }

/* ==========================================================================
   8. Summit
   ========================================================================== */
.summit { position: relative; min-height: max(640px, calc(100vh - 150px)); overflow: hidden; display: grid; align-items: start; }
.summit__sky {
  position: absolute; inset: 0;
  background: var(--sky-planes), linear-gradient(to bottom, rgba(6, 11, 22, 0) 0%, var(--night-700) 40%, #1C3558 62%, #3B4C66 70%, #6A5A58 73.5%, var(--night-700) 74%);
}
.summit__layers { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.summit__content { position: relative; z-index: 2; padding: clamp(72px, 10vh, 120px) var(--gutter) 0; text-align: center; display: grid; justify-items: center; gap: 22px; }
.summit__title { font: 800 clamp(40px, 6.4vw, 112px)/.92 var(--f-display); letter-spacing: -.045em; max-width: 12ch; }
.summit__sub { max-width: 46ch; color: var(--stone-300); font-size: clamp(18px, 1.5vw, 21px); }
.summit__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.summit__email { color: var(--stone-300); text-decoration: none; }
.summit__email:hover { color: var(--alpenglow); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer { background: var(--night-900); border-top: 1px solid var(--night-500); padding: 40px clamp(16px, 3vw, 40px) 28px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--max); margin: 0 auto; }
.footer__row--meta { margin-top: 32px; color: var(--dusk-300); font-size: 11px; }
.footer__brand { font: 700 28px/1 var(--f-display); text-decoration: none; letter-spacing: -.02em; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { text-decoration: none; opacity: .8; } .footer__links a:hover { opacity: 1; color: var(--alpenglow); }
.footer__top { color: var(--stone-300); } .footer__top:hover { color: var(--alpenglow); }

/* ==========================================================================
   Cursor (fine pointers only)
   ========================================================================== */
@media (pointer: fine) {
  .is-motion .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
  }
  .cursor::before {
    content: ""; position: absolute; inset: 0; border: 1px solid var(--stone-100); transform: rotate(45deg);
    transition: transform .4s var(--ease), border-radius .4s, background-color .3s;
  }
  .cursor__label { position: relative; font: 500 9px/1 var(--f-mono); letter-spacing: .12em; color: var(--night-900); opacity: 0; transition: opacity .2s; }
  .cursor.is-label::before { transform: rotate(45deg) scale(5.2); background: var(--stone-100); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-link::before { transform: rotate(45deg) scale(2.2); background: rgba(230, 232, 235, .12); }
}

/* ==========================================================================
   Split text helpers
   ========================================================================== */
.is-motion .split-line { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .routes__grid, .services__grid { grid-template-columns: 1fr; }
  .route { min-height: 420px; }
  .is-motion .peak-card { width: min(400px, 40vw); }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --cut: 14px; }
  body { font-size: 17px; }
  .nav { padding: 14px 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .altimeter { display: none !important; }
  .hero__title-wrap { top: 20vh; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; max-width: 360px; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .is-motion .marquee__track { animation: none; width: max-content; }
  .stat { scroll-snap-align: start; width: 72vw; }
  .story__path { display: none; }
  .story__head { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 280px; }
  .story__trail { padding-left: 22px; border-left: 1px solid rgba(185, 190, 196, .2); }
  .story__trail::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: var(--story-progress, 0%); background: var(--stone-100); }
  .chapter, .chapter:nth-child(odd), .chapter:nth-child(even) { width: 100%; justify-self: stretch; text-align: left; padding: 0; background: none; }
  .sign { padding-right: 48px; }

  .is-motion .ascent__head { top: 76px; left: 16px; right: 16px; }
  .is-motion .ascent__head .h2 { font-size: 28px; }
  .is-motion .ascent__hint { display: none; }
  .is-motion .peak-card,
  .is-motion .peak-card[data-side="left"],
  .is-motion .peak-card[data-side="right"] {
    left: 16px; right: 16px; width: auto; top: auto; bottom: 64px; transform: none; padding: 16px; gap: 8px;
  }
  .is-motion .peak-card .peak-card__media, .is-motion .peak-card .chips { display: none; }
  .is-motion .peak-card h3 { font-size: 24px; }
  .is-motion .ascent__progress { bottom: 22px; }
  .summit { min-height: calc(100svh - 120px); }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .cloud { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (min-width: 768px) and (max-height: 820px) {
  .is-motion .peak-card .chips { display: none; }
  .is-motion .peak-card__media { max-height: 34vh; }
  .is-motion .peak-card { width: min(400px, 32vw); }
}

/* ==========================================================================
   Sun / Moon
   ========================================================================== */
.celestial { position: absolute; width: clamp(84px, 9vw, 140px); aspect-ratio: 1; pointer-events: none; }
.celestial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.celestial .sun { display: none; }
.sun__rays { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.celestial--hero { right: 11%; top: 10vh; }
.celestial--ascent { left: 50%; top: 9%; transform-origin: center; margin-left: calc(clamp(84px, 9vw, 140px) / -2); }
.celestial--summit { left: 8%; top: 46%; }
.celestial--project { right: 9%; top: 16%; }

/* ==========================================================================
   Theme toggle
   ========================================================================== */
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; margin-left: 20px;
  border: 1px solid var(--night-500); color: var(--stone-100); transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--alpenglow); color: var(--alpenglow); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.theme-toggle__moon { display: none; }
.nav { gap: 0; }
.nav__links { margin-left: auto; }
@media (max-width: 767px) { .theme-toggle { margin-left: auto; margin-right: 6px; width: 40px; height: 40px; } }

/* ==========================================================================
   Light theme — daytime sky, sun
   ========================================================================== */
[data-theme="light"] {
  --night-900: #EEF5FB;
  --night-800: #E2EDF6;
  --night-700: #D6E7F4;
  --night-500: #A9C0D4;
  --dusk-300: #5C7892;
  --stone-300: #445669;
  --stone-100: #0E1C2C;
  --alpenglow: #B45F2B;
  --sky-planes:
    linear-gradient(163deg, rgba(255,255,255,0) 0 16%, rgba(255,255,255,.16) 16% 31%, rgba(255,255,255,0) 31% 44%, rgba(40,96,150,.07) 44% 58%, rgba(255,255,255,.10) 58% 100%),
    linear-gradient(17deg, rgba(40,96,150,0) 0 38%, rgba(40,96,150,.08) 38% 55%, rgba(255,255,255,.12) 55% 69%, rgba(40,96,150,0) 69% 100%);
  color-scheme: light;
}
[data-theme="light"] body { background: var(--night-900); }
[data-theme="light"] .stars { display: none; }
[data-theme="light"] .celestial .sun { display: block; }
[data-theme="light"] .celestial .moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
[data-theme="light"] .grain { opacity: .05; }

[data-theme="light"] .hero__sky,
[data-theme="light"] .ascent__sky { background: var(--sky-planes), linear-gradient(to bottom, #5E9ED2 0%, #86BCE5 38%, #B9DAF1 70%, #DDEEF9 100%); }
[data-theme="light"] .is-motion .ascent__sky { background: var(--sky-planes), linear-gradient(to bottom, #5E9ED2 0%, #86BCE5 38%, #B9DAF1 70%, #DDEEF9 100%); }
[data-theme="light"] .summit__sky { background: var(--sky-planes), linear-gradient(to bottom, rgba(238,245,251,0) 0%, #8EC1E7 30%, #B6D8F0 58%, #F3D6AE 71%, #F6E3C6 73.5%, #CFE3F2 74%); }
[data-theme="light"] .hero__copy::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(760px, 110%); height: 150%;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(238,245,251,.82), rgba(238,245,251,0));
}
[data-theme="light"] .nav.is-solid,
html[data-theme="light"]:not(.is-motion) .nav { background: rgba(238, 245, 251, .82); }
[data-theme="light"] .btn--ghost { background: rgba(14, 28, 44, .05); box-shadow: inset 0 0 0 1px rgba(14, 28, 44, .3); }
[data-theme="light"] .btn--ghost:hover { background: rgba(14, 28, 44, .1); }
[data-theme="light"] .altimeter__track { background: rgba(14, 28, 44, .15); }
[data-theme="light"] .stats { background: rgba(255, 255, 255, .55); border-color: rgba(14, 28, 44, .12); }
[data-theme="light"] .route__body { background: linear-gradient(to top, var(--night-900) 48%, rgba(238, 245, 251, 0)); }
[data-theme="light"] .story__path-bg { stroke: rgba(14, 28, 44, .25); }
[data-theme="light"] .chapter { background: rgba(238, 245, 251, .9); }
[data-theme="light"] .peak-card { background: rgba(246, 250, 253, .9); }
[data-theme="light"] .sign { background: linear-gradient(160deg, #F4E8D6, #E7D5BC); box-shadow: inset 0 0 0 1px rgba(107, 81, 56, .35); }
[data-theme="light"] .sign__for { color: #8A6744; }
[data-theme="light"] .sign p:not(.sign__for):not(.sign__kind) { color: #5A4835; }
[data-theme="light"] .cursor.is-link::before { background: rgba(14, 28, 44, .1); }
@media (max-width: 767px) { [data-theme="light"] .story__trail { border-left-color: rgba(14, 28, 44, .2); } }

/* Theme switch crossfade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }
