/* =========================================================
   WHITE RIDGE — scroll-driven landing
   Style reference: design_style.md
   ========================================================= */

:root {
  --ink: #0b0d10;
  --ink-80: rgba(11, 13, 16, 0.82);
  --snow: #ffffff;
  --snow-70: rgba(255, 255, 255, 0.72);
  --snow-50: rgba(255, 255, 255, 0.5);
  --snow-30: rgba(255, 255, 255, 0.3);
  --snow-15: rgba(255, 255, 255, 0.15);
  --ember: #e08a3c;

  --f-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --f-util: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --f-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;

  --gutter: clamp(20px, 3vw, 48px);
  --header-h: 72px;
  --bar-h: 38px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--snow);
  font-family: var(--f-util);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---------- shared type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 8.4vw, 148px);
  line-height: 0.88;
  letter-spacing: 0.002em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.25;
  color: var(--snow);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow .num { color: var(--snow-70); font-weight: 500; }
.eyebrow .rule { width: 46px; height: 1px; background: var(--snow-70); }
.eyebrow--center { justify-content: center; }

.arrow { display: inline-block; transition: transform 0.35s var(--ease); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 30px; height: 30px; color: var(--snow); }
.logo__text, .logo--lg { display: flex; flex-direction: column; line-height: 1; }
.logo__main {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.logo__sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  margin-top: 4px;
  color: var(--snow-70);
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(320px, 80vw); }
.logo--lg { align-items: flex-start; margin-bottom: 34px; }
.logo--lg .logo__main { font-size: 44px; }
.logo--lg .logo__sub { font-size: 11px; }
.loader__bar { height: 1px; background: var(--snow-15); overflow: hidden; }
.loader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--snow);
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.3s linear;
}
.loader__meta {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-size: 11px; letter-spacing: 0.24em; color: var(--snow-70);
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px);
}
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--snow);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--snow-70);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pill:hover { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.pill:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }
.burger { display: none; width: 32px; height: 32px; position: relative; }
.burger span { position: absolute; left: 5px; right: 5px; height: 1px; background: var(--snow); }
.burger span:first-child { top: 12px; }
.burger span:last-child { top: 19px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--snow);
  padding: 13px 24px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--snow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); }
.btn--solid { background: var(--snow); color: var(--ink); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: var(--snow); }

/* =========================================================
   SCROLL VIDEO
   ========================================================= */
.ride { position: relative; height: 760vh; }
.ride__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.frames, .snow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.snow { pointer-events: none; }

.scrim { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.scrim.is-on { opacity: 1; }
.scrim--right { background: linear-gradient(270deg, rgba(5, 10, 18, 0.5) 0%, rgba(5, 10, 18, 0.15) 45%, transparent 70%); }
.scrim--split {
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.55) 0%, rgba(5, 10, 18, 0.12) 42%, rgba(5, 10, 18, 0.12) 58%, rgba(5, 10, 18, 0.5) 100%),
    rgba(5, 10, 18, 0.12);
}
.scrim--top   { background: linear-gradient(180deg, rgba(5, 12, 24, 0.55) 0%, rgba(5, 12, 24, 0.12) 50%, transparent 72%); }
.scrim--bottom {
  opacity: 1;
  background:
    linear-gradient(0deg, rgba(5, 8, 14, 0.55) 0%, transparent 32%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.4) 0%, transparent 18%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); }
}

/* viewfinder corner brackets */
.viewfinder {
  position: absolute;
  inset: calc(var(--header-h) + 18px) calc(var(--gutter) + 56px) calc(var(--bar-h) + 70px) var(--gutter);
  pointer-events: none;
  opacity: 0; transform: scale(1.03);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.viewfinder.is-on { opacity: 1; transform: none; }
.viewfinder i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--snow-70); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* live readout */
.readout {
  position: absolute; z-index: 5;
  top: calc(var(--header-h) + 34px); left: calc(var(--gutter) + 22px);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--snow-70);
}
.readout__row { display: flex; align-items: center; gap: 10px; color: var(--snow); font-weight: 600; }
.readout .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: blink 1.6s infinite; }
.readout .sep { width: 20px; height: 1px; background: var(--snow-50); }
.readout__grid {
  display: grid; grid-template-columns: auto auto; gap: 6px 18px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--snow-30);
}
.readout__grid b { color: var(--snow); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- chapters ---------- */
.chapter {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none;
  --lp: 0; /* local progress 0..1, set from JS */
}
.chapter.is-active { pointer-events: auto; }
.chapter.is-active a, .chapter.is-active button { pointer-events: auto; }
.chapter:not(.is-active) * { pointer-events: none; }

/* line mask reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.04em; white-space: nowrap; }
.line > span {
  display: block;
  transform: translateY(108%);
  transition: transform 0.7s var(--ease);
}
.is-active .line > span {
  transform: none;
  transition: transform 1.15s var(--ease) calc(var(--i) * 0.09s + 0.05s);
}
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.is-active .reveal {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}

/* gentle drift with scroll inside each chapter */
.ch2__head .serif { margin-top: 14px; }
.ch1__head, .ch2__head, .ch3__head { transform: translateY(calc((0.5 - var(--lp)) * 46px)); }

/* chapter 01 — headline in sky, right */
.ch1__head {
  position: absolute;
  left: 60%; right: var(--gutter);
  top: 29%;
  padding-right: 48px;
}
.display--ch1 { font-size: clamp(52px, 6.2vw, 112px); }
.ch1__head .serif { margin-top: 16px; max-width: 420px; }
.product {
  position: absolute;
  left: var(--gutter); bottom: calc(var(--bar-h) + 54px);
}
.dash-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em;
  color: var(--snow-70);
}
.dash-eyebrow::before, .dash-eyebrow::after { content: ""; width: 18px; height: 1px; background: var(--snow-70); }
.product__name {
  font-size: clamp(26px, 2.3vw, 34px); font-weight: 600;
  letter-spacing: 0.2em; margin: 10px 0 4px;
}
.product__sub { font-size: clamp(16px, 1.25vw, 20px); margin-bottom: 20px; }

.features {
  position: absolute;
  right: calc(var(--gutter) + 40px); bottom: calc(var(--bar-h) + 58px);
  display: flex;
}
.features li {
  display: flex; align-items: center; gap: 12px;
  padding: 2px 20px;
  border-left: 1px solid var(--snow-30);
}
.features li:first-child { border-left: 0; padding-left: 0; }
.features svg {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: var(--snow); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.features span {
  display: flex; flex-direction: column;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.45;
  color: var(--snow-70);
}
.features b { color: var(--snow); font-weight: 600; }

/* chapter 02 — headline left, stats right */
.ch2__head {
  position: absolute;
  left: calc(var(--gutter) + 22px); top: 34%;
  max-width: 46vw;
}
.stats {
  position: absolute;
  right: calc(var(--gutter) + 80px); top: 50%;
  translate: 0 -50%;
  width: min(330px, 30vw);
}
.stat {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--snow-30);
  position: relative;
}
.stat:last-child { border-bottom: 1px solid var(--snow-30); }
.stat::before {
  /* animated white line drawing over the hairline */
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: var(--snow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.is-active .stat::before { transform: scaleX(0.28); transition: transform 1.4s var(--ease) calc(var(--d) + 0.2s); }
.stat dt {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--snow);
  padding-bottom: 6px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.stat dd {
  font-family: var(--f-display);
  font-size: clamp(34px, 3vw, 48px); line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-family: var(--f-util); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; margin-left: 6px; color: var(--snow-70);
}

/* chapter 03 — centered in the sky */
.ch3__head {
  position: absolute;
  left: 50%; top: calc(var(--header-h) + 6vh);
  width: min(1100px, 92vw);
  margin-left: max(-550px, -46vw);
  text-align: center;
}
.display--center { font-size: clamp(60px, 9.4vw, 170px); }
.ch3__head .serif { margin: 18px auto 0; max-width: 640px; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.coords {
  position: absolute; left: 50%; bottom: calc(var(--bar-h) + 30px);
  translate: -50% 0;
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.3em; color: var(--snow-70); white-space: nowrap;
}
.coords .rule { width: 34px; height: 1px; background: var(--snow-30); }

/* ---------- progress rail ---------- */
.rail {
  position: absolute; z-index: 8;
  right: var(--gutter); top: 50%;
  translate: 0 -50%;
  height: 42vh;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
}
.rail__track {
  position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
  background: var(--snow-30);
}
.rail__fill {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--snow);
  transform-origin: top; transform: scaleY(0);
}
.rail__item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding-right: 16px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--snow-50);
  transition: color 0.4s;
}
.rail__item::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border: 1px solid var(--snow-50); border-radius: 50%;
  background: var(--ink);
  transition: background 0.4s, border-color 0.4s;
}
.rail__item em {
  font-style: normal; max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; transition: max-width 0.6s var(--ease), opacity 0.4s;
}
.rail__item.is-current, .rail__item:hover { color: var(--snow); }
.rail__item.is-current::after { background: var(--snow); border-color: var(--snow); }
.rail__item:hover em { max-width: 120px; opacity: 1; }

/* ---------- scroll cue + counter ---------- */
.cue {
  position: absolute; z-index: 7;
  left: 50%; bottom: calc(var(--bar-h) + 26px);
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--snow-70);
  transition: opacity 0.6s;
}
.cue.is-hidden { opacity: 0; }
.cue__line { width: 1px; height: 44px; background: var(--snow-30); position: relative; overflow: hidden; order: -1; }
.cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--snow);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.counter {
  position: absolute; z-index: 7;
  right: var(--gutter); bottom: calc(var(--bar-h) + 18px);
  font-size: 10.5px; letter-spacing: 0.26em; color: var(--snow-50);
  font-variant-numeric: tabular-nums;
}
.counter b { color: var(--snow); font-weight: 600; }

/* ---------- info bar ---------- */
.infobar {
  position: absolute; z-index: 9; left: 0; right: 0; bottom: 0;
  height: var(--bar-h);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--snow-70);
}
.infobar__group { display: flex; align-items: center; gap: 18px; }
.infobar .bar { width: 1px; height: 12px; background: var(--snow-30); }


/* =========================================================
   HEADER on light sections
   ========================================================= */
.header {
  transition: color 0.5s var(--ease), background-color 0.5s, transform 0.6s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background-color: rgba(11, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.header.is-solid.is-light { background-color: rgba(255, 255, 255, 0.78); border-bottom-color: rgba(11, 13, 16, 0.08); }
.header.is-hidden { transform: translateY(-100%); }
.header .pill, .header .logo__sub, .header .burger span { transition: border-color 0.5s, color 0.5s, background 0.5s; }
.header.is-light { color: var(--ink); }
.header.is-light .logo__mark { color: var(--ink); }
.header.is-light .logo__sub { color: rgba(11, 13, 16, 0.6); }
.header.is-light .nav a::after { background: var(--ink); }
.header.is-light .pill { border-color: rgba(11, 13, 16, 0.5); }
.header.is-light .pill:hover { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.header.is-light .burger span { background: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* generic scroll reveal (IntersectionObserver adds .is-in) */
.js-reveal:not(.line):not(.card) {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js-reveal.is-in:not(.line):not(.card) { opacity: 1; transform: none; }
.line.js-reveal.is-in > span { transform: none; transition: transform 1.15s var(--ease) calc(var(--i) * 0.1s); }

:root { --ink-60: rgba(11, 13, 16, 0.6); --ink-20: rgba(11, 13, 16, 0.16); --blue-ink: #1d3557; }
.display--ink { color: var(--ink); text-shadow: none; }
.serif--ink { color: var(--ink); text-shadow: none; }
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink .num { color: var(--ink-60); }
.eyebrow--ink .rule { background: var(--ink-60); }

/* =========================================================
   04 · PEAK
   ========================================================= */
.peak {
  position: relative;
  height: 230vh;
  background: #fff;
  color: var(--ink);
}
.peak__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, #d7e3ef 0%, rgba(215, 227, 239, 0) 70%),
    linear-gradient(180deg, #e3ebf3 0%, #f2f6fa 48%, #ffffff 78%);
  --p: 0;  /* section progress 0..1 (JS) */
  --t: 0;  /* eased title rise 0..1 (JS) */
}
.peak__meta {
  position: absolute; z-index: 5;
  top: calc(var(--header-h) + 34px);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--blue-ink);
}
.peak__meta .num { color: rgba(29, 53, 87, 0.55); font-weight: 500; }
.peak__meta .rule { width: 40px; height: 1px; background: rgba(29, 53, 87, 0.45); }
.peak__meta--left { left: var(--gutter); }
.peak__meta--right { right: var(--gutter); }

/* stage = mountain + the title that rises from behind it */
.peak__stage {
  position: absolute;
  left: -9vw; width: 118vw;
  bottom: -3vh;
  aspect-ratio: 2200 / 877;
  transform: translateY(calc((1 - var(--p)) * 9vh)) scale(calc(1.12 - var(--p) * 0.12));
  transform-origin: 50% 100%;
  will-change: transform;
}
.peak__clip {
  /* text only exists above this line, so it emerges from inside the range */
  position: absolute;
  left: 9vw; width: 100vw;
  bottom: 50%;
  height: 120vh;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.peak__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19.5vw;
  line-height: 0.82;
  letter-spacing: -0.005em;
  white-space: nowrap;
  padding-top: 0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #eaf1f8 30%, #b9cde3 70%, #8eaacb 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 40px rgba(46, 84, 130, 0.18));
  transform: translateY(calc(100% - var(--t) * (100% + 8.5vw)));
  will-change: transform;
}
.peak__mountain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, 0.6) 78%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, 0.6) 78%, transparent 97%);
  user-select: none; pointer-events: none;
}
/* progressive blur + whiteout at the base so the range dissolves into the page */
.peak__blur {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(0deg, #000 35%, transparent 100%);
          mask-image: linear-gradient(0deg, #000 35%, transparent 100%);
  pointer-events: none;
}
.peak__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(0deg, #fff 18%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.peak__caption {
  position: absolute; z-index: 5; left: 0; right: 0;
  bottom: clamp(28px, 6vh, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.peak__caption .serif { color: var(--blue-ink); text-shadow: none; font-size: clamp(20px, 2vw, 30px); }
.peak__caption-line { width: 1px; height: 36px; background: rgba(29, 53, 87, 0.35); }
.peak__caption-meta {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(29, 53, 87, 0.65);
}
.js-peak-fade {
  opacity: calc((var(--t) - 0.55) * 2.3);
  transform: translateY(calc((1 - var(--t)) * 16px));
}

/* =========================================================
   05 · TERRAIN
   ========================================================= */
.terrain {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(50px, 8vh, 90px);
}
.terrain__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.terrain__head .display { font-size: clamp(56px, 7.6vw, 136px); }
.terrain__aside { max-width: 360px; padding-bottom: 10px; }
.terrain__aside .serif { margin-bottom: 20px; }
.link-line {
  position: relative;
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 8px;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: left; transition: transform 0.5s var(--ease);
}
.link-line:hover::after { transform: scaleX(0.35); }
.link-line:hover .arrow { transform: translateX(4px); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  position: relative; display: block;
  height: min(76vh, calc((100vw - 2 * var(--gutter) - 24px) / 3 * 1.3));
  overflow: hidden;
  color: var(--snow);
  background: #dfe7ef;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease) var(--d, 0s);
}
.card.is-in { clip-path: inset(0 0 0 0); }
.card__media { position: absolute; inset: -8% 0; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: translateY(var(--py, 0px)) scale(1.06);
  transition: scale 1.2s var(--ease);
  will-change: transform;
}
.card:hover .card__media img { scale: 1.06; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5, 10, 20, 0.62) 0%, rgba(5, 10, 20, 0.12) 42%, transparent 60%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.28) 0%, transparent 22%);
}
.card__top {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 22px 24px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
}
.card__top span:first-child { padding-bottom: 6px; border-bottom: 1px solid var(--snow-70); }
.card__body {
  position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px;
}
.card__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(34px, 3.4vw, 58px); line-height: 0.9;
  letter-spacing: 0.01em;
}
.card__rule {
  display: block; height: 1px; width: 100%;
  background: var(--snow-30);
  margin: 16px 0 12px;
  position: relative;
}
.card__rule::after {
  content: ""; position: absolute; inset: 0; background: var(--snow);
  transform: scaleX(0.18); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__rule::after { transform: scaleX(1); }
.card__text { font-size: clamp(17px, 1.35vw, 22px); }
.card__cta {
  position: absolute; right: 0; bottom: 4px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.card:hover .card__cta { opacity: 1; transform: none; }

.terrain__strip {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: clamp(30px, 5vh, 50px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-60);
}
.terrain__strip .bar { width: 1px; height: 14px; background: var(--ink-20); }

/* =========================================================
   06 · FOOTER
   ========================================================= */
.footer {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--snow);
  padding: clamp(80px, 13vh, 150px) var(--gutter) 0;
}
.footer::before {
  /* faint cold glow so the black isn't flat */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 85% 0%, rgba(80, 120, 170, 0.16), transparent 70%);
}
.footer__cta {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
  padding-bottom: clamp(50px, 8vh, 90px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__cta .display { font-size: clamp(56px, 8vw, 140px); text-shadow: none; }
.footer__signup { width: min(400px, 100%); padding-bottom: 8px; }
.footer__signup .serif { margin-bottom: 22px; text-shadow: none; }
.signup {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--snow-50);
  margin-bottom: 26px;
  transition: border-color 0.3s;
}
.signup:focus-within { border-color: var(--snow); }
.signup input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--snow);
  font: 600 13px var(--f-util); letter-spacing: 0.22em;
  padding: 14px 0;
}
.signup input::placeholder { color: var(--snow-50); }
.signup button { font-size: 18px; padding: 8px 4px 8px 16px; transition: transform 0.35s var(--ease); }
.signup button:hover { transform: translateX(4px); }

.footer__cols {
  position: relative;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: clamp(44px, 7vh, 70px) 0;
}
.footer__brand .serif { margin-top: 18px; max-width: 280px; font-size: 20px; text-shadow: none; color: var(--snow-70); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--snow-50);
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__col a, .footer__col span {
  font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--snow);
  width: fit-content;
}
.footer__col span { color: var(--snow-70); }
.footer__col a { position: relative; }
.footer__col a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--snow);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__mark {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  line-height: 0;
  --fp: 0;
}
.footer__mark span {
  display: block;
  font-family: var(--f-display);
  font-size: 20.2vw; line-height: 0.8;
  text-align: center; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text;
  transform: translateY(calc((1 - var(--fp)) * 45%));
  padding-top: 0.04em;
}
.footer__bar {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  height: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--snow-70);
}
.footer__links { display: flex; align-items: center; gap: 16px; }
.footer__bar .bar { width: 1px; height: 12px; background: var(--snow-30); }
.footer__bar a:hover { color: var(--snow); }
.totop:hover .arrow { transform: translateY(-3px); }

/* new sections — responsive */
@media (max-width: 900px) {
  .terrain__head, .footer__cta { flex-direction: column; align-items: flex-start; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { height: auto; aspect-ratio: 4 / 4.4; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .peak__stage { left: -70vw; width: 240vw; bottom: 16vh; }
  .peak__clip { left: 70vw; width: 100vw; }
  .peak__title { font-size: 19.5vw; transform: translateY(calc(100% - var(--t) * (100% + 30vw))); }
  .peak__caption { bottom: 7vh; }
  .peak__meta--right { display: none; }
  .peak__caption-meta { font-size: 10px; letter-spacing: 0.18em; }
  .terrain__strip { flex-direction: column; gap: 10px; }
  .terrain__strip .bar { display: none; }
  .footer__bar { flex-wrap: wrap; height: auto; padding: 18px 0; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .card { clip-path: none; transition: none; }
  .js-reveal:not(.line):not(.card) { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .features { display: none; }
}
@media (max-width: 1100px) {
  .ch1__head { left: 54%; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .nav, .pill { display: none; }
  .burger { display: block; }
  .readout, .viewfinder, .counter { display: none; }

  .display { font-size: clamp(48px, 14vw, 80px); }
  .display--center { font-size: clamp(52px, 15vw, 90px); }

  .ch1__head, .ch2__head {
    left: var(--gutter); right: var(--gutter); max-width: none;
    top: auto; bottom: calc(var(--bar-h) + 210px);
    padding-right: 30px;
  }
  .ch2__head { top: calc(var(--header-h) + 30px); bottom: auto; }
  .stats { left: var(--gutter); right: calc(var(--gutter) + 30px); width: auto; top: auto; bottom: calc(var(--bar-h) + 30px); translate: none; }
  .stat { padding: 10px 0 8px; }
  .product { bottom: calc(var(--bar-h) + 30px); }
  .product__sub { margin-bottom: 14px; }

  .rail { height: 30vh; }
  .rail__item em { display: none; }
  .rail__item { padding-right: 12px; }

  .coords { gap: 10px; letter-spacing: 0.2em; font-size: 10px; }
  .coords .rule { width: 16px; }
  .cue { display: none; }

  .infobar { justify-content: center; font-size: 9.5px; letter-spacing: 0.16em; }
  .infobar__group:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .cue__line::after, .readout .dot { animation: none; }
  .line > span, .reveal { transition-duration: 0.01s !important; transition-delay: 0s !important; }
}
