@font-face {
  font-family: "Inter var";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono var";
  src: url("/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #04070d;
  --ink: #eef2f6;
  --dim: #93a0b1;
  --faint: #55627a;
  --line: rgba(238, 242, 246, 0.09);
  --aur: #7df5c9;
  --aur-dim: rgba(125, 245, 201, 0.5);
  --violet: #b493ff;
  --mono: "JetBrains Mono var", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* film grain */
#grain {
  position: fixed;
  inset: -60px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-24px, 18px); }
  66% { transform: translate(20px, -14px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { #grain { animation: none; } }

/* ---- nav ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 1.05rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(4, 7, 13, 0.75), rgba(4, 7, 13, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  font-weight: 850;
  letter-spacing: 0.34em;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
#nav .links { display: flex; gap: 1.8rem; margin-left: auto; }
#nav .links a {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.25s ease;
}
#nav .links a:hover { color: var(--aur); }
#cta-nav {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #04140d;
  background: var(--aur);
  border: none;
  border-radius: 999px;
  padding: 0.68em 1.4em;
  cursor: pointer;
  font-weight: 700;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#cta-nav:hover { box-shadow: 0 0 26px rgba(125, 245, 201, 0.45); }
@media (max-width: 760px) { #nav .links { display: none; } #cta-nav { margin-left: auto; } }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--aur-dim);
  margin-bottom: 1.6rem;
  z-index: 1;
}
h1 {
  font-size: clamp(4.5rem, 19vw, 15.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.92;
  z-index: 1;
  user-select: none;
  color: var(--ink);
  text-shadow: 0 0 110px rgba(125, 245, 201, 0.28);
}
.hero .tag {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  color: var(--dim);
  z-index: 3;
  text-shadow: 0 2px 24px rgba(4, 7, 13, 0.9);
}
/* mountains layered IN FRONT of the giant title */
.ridge {
  position: absolute;
  left: -2vw; right: -2vw; bottom: -2px;
  pointer-events: none;
}
.ridge svg { display: block; width: 100%; }
.ridge-far { z-index: 2; height: 30vh; }
.ridge-far svg { height: 100%; }
.ridge-far path { fill: #0b1626; }
.ridge-near { z-index: 3; height: 21vh; }
.ridge-near svg { height: 100%; }
.ridge-near path { fill: #050b14; }

.cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
.cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--aur), transparent);
  animation: cue-drop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue-drop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cue i { animation: none; } }

/* ---- shared section chrome ---- */
section.s {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 16vh 6vw;
}
.inner { width: min(1080px, 100%); margin: 0 auto; }
.inner.center { text-align: center; }
.sec-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aur-dim);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  font-weight: 860;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 30px rgba(4, 7, 13, 0.9);
}
.lede {
  color: var(--dim);
  max-width: 46ch;
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  margin-bottom: 3rem;
  text-shadow: 0 2px 22px rgba(4, 7, 13, 0.9);
}
.lede.center { margin-left: auto; margin-right: auto; }

/* reveals — staggered by JS-set --d */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ---- glass panels ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card, .stat {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.6rem;
  background: rgba(6, 10, 18, 0.55);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: rgba(125, 245, 201, 0.35); transform: translateY(-4px); }
.card svg { color: var(--aur); margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--dim); }
.card-stat {
  display: block;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--ink);
}
.card-stat em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-left: 0.5em;
}

/* ---- tonight stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.num {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 680;
  color: var(--ink);
  text-shadow: 0 0 26px rgba(125, 245, 201, 0.3);
  white-space: nowrap;
}
.unit {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.5rem;
}
.stat .note { margin-top: 1rem; font-size: 0.86rem; color: var(--dim); }
.stat .note a { color: var(--aur); text-decoration: none; border-bottom: 1px solid var(--aur-dim); }

/* ---- horizontal expeditions ---- */
.hwrap { position: relative; height: 340vh; z-index: 1; }
.hsticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hhead { padding: 0 6vw; margin-bottom: 3rem; }
.hhead h2 { margin-bottom: 0; }
.htrack {
  display: flex;
  gap: 1.4rem;
  padding: 0 6vw;
  will-change: transform;
  width: max-content;
}
.exp {
  position: relative;
  width: min(420px, 78vw);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 10, 18, 0.6);
  backdrop-filter: blur(9px);
  overflow: hidden;
  padding-bottom: 1.6rem;
  flex-shrink: 0;
}
.exp-art { height: 200px; margin-bottom: 1.5rem; }
.exp-glacier { background: linear-gradient(155deg, #0d2233, #1d4b63 45%, #9fd8e8 120%); }
.exp-volcano { background: linear-gradient(160deg, #160b10, #4a1414 55%, #ff7a3c 130%); }
.exp-aurora { background: linear-gradient(200deg, #04121c, #0c3b33 50%, #7df5c9 135%); }
.exp-river { background: linear-gradient(170deg, #0a1a24, #1f4a52 60%, #bfeee6 140%); }
.exp-art { position: relative; }
.exp-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 20% 100%, rgba(4, 7, 13, 0.75), transparent 60%),
    radial-gradient(80% 50% at 85% 10%, rgba(255, 255, 255, 0.14), transparent 55%);
}
.exp-no {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--aur-dim);
  padding: 0 1.6rem;
  margin-bottom: 0.5rem;
}
.exp h3 { font-size: 1.45rem; font-weight: 800; padding: 0 1.6rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.exp p { font-size: 0.92rem; color: var(--dim); padding: 0 1.6rem; }
.exp-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 1.1rem 1.6rem 0;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.exp-last {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(125, 245, 201, 0.06);
  border-color: rgba(125, 245, 201, 0.3);
}
.hprogress {
  margin: 3rem 6vw 0;
  height: 1px;
  background: var(--line);
}
#hbar { display: block; height: 100%; width: 0%; background: var(--aur); transition: width 0.15s linear; }

/* ---- statement ---- */
.statement { justify-content: center; }
.bigsay {
  font-size: clamp(2.2rem, 7vw, 6rem);
  font-weight: 880;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 34px rgba(4, 7, 13, 0.95);
}
.bigsay .w {
  display: inline-block;
  opacity: 0.12;
  filter: blur(4px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.bigsay .w.lit { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .bigsay .w { opacity: 1; filter: none; } }

/* ---- CTA ---- */
#cta-main {
  position: relative;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: 780;
  color: #04140d;
  background: linear-gradient(140deg, #a9ffe0, var(--aur) 55%, #4ed9a8);
  border: none;
  border-radius: 999px;
  padding: 1.05em 2.7em;
  cursor: pointer;
  box-shadow: 0 0 46px rgba(125, 245, 201, 0.35);
  transition: box-shadow 0.25s ease;
  will-change: transform;
}
#cta-main:hover { box-shadow: 0 0 80px rgba(125, 245, 201, 0.55); }
#cta-result {
  margin-top: 2.2rem;
  min-height: 3.4em;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--dim);
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#cta-result.show { opacity: 1; transform: none; }
#cta-result .v { display: block; font-weight: 800; font-size: 1.3em; color: var(--ink); margin-bottom: 0.3em; }

/* ---- footer ---- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10vh 6vw 6vh;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  display: grid;
  gap: 0.5rem;
}
footer strong { color: var(--dim); letter-spacing: 0.24em; }
footer a { color: var(--aur); text-decoration: none; }

::selection { background: rgba(125, 245, 201, 0.25); color: var(--ink); }

@media (max-width: 640px) {
  .hwrap { height: 300vh; }
  .exp-art { height: 150px; }
}
