/* ============================================================
   North Face Investments — landing page
   ============================================================ */

:root {
  --bg: #07090d;
  --bg-raise: #0c1016;
  --ink: #e9edf2;
  --ink-dim: #9aa6b2;
  --ink-faint: #5c6773;
  --accent: #7ce2ff;
  --accent-deep: #2ea8d4;
  --line: rgba(233, 237, 242, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 6rem);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: var(--bg); }

em { font-style: italic; }

h1, h2, h3 { font-family: var(--serif); font-weight: 380; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  text-wrap: balance;
}

h2 em, h1 em { color: var(--accent); font-style: italic; }

section { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--pad); }

/* film grain */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -2%); }
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.tick {
  width: 2rem; height: 1px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 0.6rem 1.2rem; font-size: 0.7rem; }
.btn--large { padding: 1.2rem 2.6rem; font-size: 1rem; text-transform: none; letter-spacing: 0.02em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.15rem;
}
.nav__logo svg { color: var(--accent); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  color: var(--ink-dim); text-decoration: none;
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 7rem;
  overflow: hidden;
}
#terrain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 30% 40%, transparent 30%, var(--bg) 100%);
  z-index: 1; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 60rem; }
.hero__eyebrow { margin-bottom: 2.2rem; }
.hero__title {
  font-size: clamp(3rem, 9.5vw, 7.8rem);
  line-height: 0.98;
  margin-bottom: 2rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__sub {
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 2.5rem;
}
.hero__sub strong { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta {
  position: relative; z-index: 2;
  display: flex; gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
}
.hero__stat-label {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__scroll {
  position: absolute; bottom: 2rem; right: var(--pad);
  z-index: 2;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 0.8rem;
}
.hero__scroll span {
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--accent));
  display: block;
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { max-width: 64rem; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.3;
  font-weight: 340;
}
.manifesto__text .w { opacity: 0.12; transition: opacity 0.4s ease; }
.manifesto__text .w.on { opacity: 1; }

/* ============================================================
   PILLARS
   ============================================================ */
.section-head { margin-bottom: clamp(3rem, 6vh, 5rem); max-width: 50rem; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: clamp(1.8rem, 3vw, 3rem);
  transition: background 0.35s ease;
}
.pillar:hover { background: var(--bg-raise); }
.pillar__num {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.2em;
  display: block; margin-bottom: 2.5rem;
}
.pillar h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.pillar p { color: var(--ink-dim); font-size: 0.95rem; }

/* ============================================================
   AGENTIC OS
   ============================================================ */
.os {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.os__viz { display: flex; justify-content: center; }
.os__rings {
  --ring-size: min(420px, 80vw);
  position: relative;
  width: var(--ring-size);
  aspect-ratio: 1;
}
.os__ring {
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.os__ring--2 { inset: 16%; }
.os__ring--3 { inset: 32%; }
.os__core {
  position: absolute; inset: 41%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500;
  color: var(--bg); font-size: 0.95rem; letter-spacing: 0.1em;
  box-shadow: 0 0 60px rgba(124, 226, 255, 0.35);
}
.os__agent {
  --r: calc(var(--ring-size) * (0.46 - (var(--orbit) - 1) * 0.08));
  position: absolute;
  top: 50%; left: 50%;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--r)) rotate(calc(-1 * var(--angle)));
}
.os__copy .eyebrow { margin-bottom: 1.5rem; }
.os__copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1.5rem; }
.os__lede { color: var(--ink-dim); margin-bottom: 2.2rem; max-width: 36rem; }
.os__list { list-style: none; display: flex; flex-direction: column; }
.os__list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.os__list li strong { color: var(--accent); font-weight: 500; }

/* ============================================================
   ASCENT
   ============================================================ */
.ascent__route { margin: 0 auto clamp(2rem, 5vh, 4rem); max-width: 64rem; }
.ascent__route svg { width: 100%; height: auto; display: block; }
#route-path {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
}
.camp circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.camp text {
  fill: var(--ink-dim);
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.1em;
}
.camp--summit circle { fill: var(--accent); }
.ascent__stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: stage;
}
.stage { background: var(--bg); padding: 1.8rem 1.4rem; }
.stage__num {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  display: block; margin-bottom: 1.2rem;
}
.stage h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.stage p { color: var(--ink-dim); font-size: 0.86rem; }

/* ============================================================
   CRITERIA
   ============================================================ */
.criteria { background: var(--bg-raise); border-top: 1px solid var(--line); }
.criteria__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.crit {
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--bg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.crit:hover { border-color: var(--accent-deep); transform: translateY(-4px); }
.crit__icon { color: var(--accent); font-size: 0.8rem; display: block; margin-bottom: 1.4rem; }
.crit h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.crit p { color: var(--ink-dim); font-size: 0.93rem; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  text-align: center;
  padding-top: clamp(6rem, 16vh, 11rem);
  padding-bottom: clamp(6rem, 16vh, 11rem);
}
.contact .eyebrow { justify-content: center; }
.contact__title {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 1;
  margin-bottom: 1.8rem;
}
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line > span { display: inline-block; }
.contact__sub {
  color: var(--ink-dim);
  max-width: 32rem;
  margin: 0 auto 2.8rem;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.footer__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1rem;
}
.footer__brand svg { color: var(--accent); }
.footer__note { color: var(--ink-faint); font-size: 0.8rem; max-width: 24rem; }
.footer__legal { color: var(--ink-faint); font-size: 0.8rem; font-family: var(--mono); }

/* ============================================================
   REVEAL DEFAULTS (pre-GSAP state set in JS)
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .os { grid-template-columns: 1fr; }
  .os__viz { order: -1; }
  .ascent__stages { grid-template-columns: 1fr 1fr; }
  .stage:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav .btn--small { display: none; }
  .hero { padding-top: 6rem; }
  .hero__eyebrow { margin-bottom: 1.6rem; }
  .hero__title { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero__meta { flex-wrap: wrap; gap: 1.5rem 2.5rem; }
  .hero__scroll { display: none; }
  .ascent__stages { grid-template-columns: 1fr; }
  .stage:last-child { grid-column: auto; }
  .criteria__grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__scroll span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
