/* ═══════════════════════════════════════════════════════════════
   ALTIOR — The Ascent
   Design system: ink → exosphere. Fraunces (display) + Space Grotesk.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07070d;
  --ink-2: #0c0c16;
  --bone: #ece5d8;
  --bone-dim: rgba(236, 229, 216, 0.55);
  --bone-faint: rgba(236, 229, 216, 0.28);
  --ember: #ffb45c;
  --ember-hot: #ff7847;
  --glacier: #9fd8e8;
  --hairline: rgba(236, 229, 216, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --grotesk: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--grotesk);
  font-weight: 340;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ember); color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 100, "SOFT" 40, "WONK" 1;
  color: var(--ember);
}

/* ── WebGL canvas, grain, vignette ─────────────────────────── */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.grain {
  position: fixed; inset: -100px;
  z-index: 40;
  pointer-events: none;
  opacity: 0.07;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-34px, 22px); }
  50% { transform: translate(18px, -30px); }
  75% { transform: translate(-26px, -14px); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0;
  z-index: 39;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(4, 4, 9, 0.55) 100%);
}

/* ── Preloader ─────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 1.1s var(--ease-out);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader-inner { width: min(420px, 78vw); }
.preloader-word {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-weight: 560;
  font-size: clamp(56px, 11vw, 96px);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  color: var(--bone);
  margin-bottom: 28px;
}
.preloader-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(4deg);
  animation: pre-letter 0.9s var(--ease-out) forwards;
}
.preloader-word span:nth-child(1) { animation-delay: 0.05s; }
.preloader-word span:nth-child(2) { animation-delay: 0.13s; }
.preloader-word span:nth-child(3) { animation-delay: 0.21s; }
.preloader-word span:nth-child(4) { animation-delay: 0.29s; }
.preloader-word span:nth-child(5) { animation-delay: 0.37s; }
.preloader-word span:nth-child(6) { animation-delay: 0.45s; }
@keyframes pre-letter { to { opacity: 1; transform: translateY(0) rotate(0deg); } }
.preloader-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.preloader-pct { color: var(--ember); }
.preloader-bar {
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
.preloader-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--ember), var(--ember-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

/* ── HUD ───────────────────────────────────────────────────── */
.hud {
  position: fixed;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: normal;
}
.hud-top { top: 0; }
/* scrim so panel headings never collide illegibly with the fixed nav */
.hud-top::before {
  content: "";
  position: absolute;
  inset: 0 0 -34px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.92) 0%, rgba(7, 7, 13, 0.55) 52%, transparent 100%);
}
.hud-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.32em;
}
.mark-tri {
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--ember);
  stroke-width: 8;
}
.hud-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}
.hud-nav a {
  position: relative;
  color: var(--bone-dim);
  transition: color 0.35s;
  padding: 4px 0;
  line-height: 1;
}
/* keep the Guide arrow from raising that link's baseline */
.hud-guide { display: inline-flex; align-items: baseline; }
.hud-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.hud-nav a:hover { color: var(--bone); }
.hud-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hud-guide { color: var(--ember) !important; }

/* ── Altimeter ─────────────────────────────────────────────── */
.altimeter {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.alt-readout {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.alt-value {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 430;
  font-size: 26px;
  color: var(--bone);
  min-width: 84px;
  text-align: right;
}
.alt-unit {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--bone-faint);
}
.alt-rail {
  position: relative;
  height: 180px;
  width: 22px;
}
.alt-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.alt-ticks i {
  display: block;
  height: 1px;
  width: 8px;
  background: var(--bone-faint);
}
.alt-ticks i.major { width: 16px; background: var(--bone-dim); }
.alt-needle {
  position: absolute;
  right: 0;
  top: 100%;
  width: 22px;
  height: 1.5px;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(255, 180, 92, 0.8);
}
.alt-needle::before {
  content: "";
  position: absolute;
  right: -5px; top: -2.6px;
  border: 3.4px solid transparent;
  border-right-color: var(--ember);
}
.alt-layer {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ember);
  writing-mode: vertical-rl;
  min-height: 90px;
}

/* ── Panels — shared ───────────────────────────────────────── */
main { position: relative; z-index: 10; }
.panel {
  position: relative;
  min-height: 100vh;
  padding: 18vh var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 901px) {
  .panel:not(.panel-hero):not(.panel-exo) { padding-right: calc(var(--gutter) + 130px); }
}
.panel-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(36px, 6vh, 72px);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--bone-dim);
}
.panel-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ember);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
}
.eyebrow-rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--ember);
}

/* Reveal machinery */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
/* line-split reveal */
.sl-line {
  display: block;
  overflow: hidden;
  /* room for italic descenders (e.g. the "g" in "higher") so the mask
     doesn't clip them; negative margin keeps line spacing intact */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.sl-inner {
  display: block;
  transform: translateY(112%);
  transition: transform 1.25s var(--ease-out);
}
.is-in .sl-inner, .sl-line.is-in .sl-inner { transform: translateY(0); }
/* char-split reveal */
.sc-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(3deg);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.is-in .sc-char { opacity: 1; transform: translateY(0) rotate(0); }

/* ── 01 · Hero ─────────────────────────────────────────────── */
.panel-hero {
  min-height: 100vh;
  justify-content: flex-end;
  padding-bottom: 7vh;
}
.hero-inner { width: 100%; }
.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-weight: 500;
  font-size: clamp(72px, 17.5vw, 300px);
  line-height: 0.86;
  letter-spacing: 0.005em;
  color: var(--bone);
  margin: 20px 0 26px -0.04em;
  text-shadow: 0 0 90px rgba(255, 150, 70, 0.18);
}
.hero-sub {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 320;
  letter-spacing: 0.01em;
  color: var(--bone-dim);
  max-width: 560px;
}
.hero-sub em { font-size: 1.18em; }
.hero-foot {
  margin-top: clamp(32px, 6vh, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.cue-ring {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cue-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
  animation: cue-fall 1.8s var(--ease-out) infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(-9px); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}
.cue-text {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
}
.hero-coord {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
}

/* ── 02 · Manifesto ────────────────────────────────────────── */
.panel-manifesto {
  max-width: 1500px;
  /* shallower than a full viewport so the verbs belt below is visible
     while reading the note */
  min-height: 74vh;
  padding-top: 16vh;
  padding-bottom: 7vh;
}
.manifesto-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 130, "SOFT" 20, "WONK" 0;
  font-weight: 380;
  font-size: clamp(28px, 4.1vw, 66px);
  line-height: 1.16;
  letter-spacing: 0.002em;
  max-width: 24ch;
  color: var(--bone);
}
.manifesto-note {
  margin-top: clamp(24px, 4vh, 44px);
  max-width: 640px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 2;
  color: var(--bone-dim);
  border-left: 1px solid var(--ember);
  padding-left: 22px;
  margin-left: 4px;
}
.manifesto-note em { font-size: 1.06em; }

/* ── Verbs marquee divider ─────────────────────────────────── */
.verbs-band {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.verbs-track {
  display: flex;
  width: max-content;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(28px, 4vw, 56px);
  color: var(--bone-faint);
  will-change: transform;
}

/* ── 03 · The System ───────────────────────────────────────── */
.panel-system {
  min-height: 480vh;
  padding: 0 var(--gutter);
  display: block;
}
.system-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}
.system-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 130, "SOFT" 20, "WONK" 0;
  font-weight: 380;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.16;
  max-width: 22ch;
  color: var(--bone);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.system-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1020px) {
  .system-stage { grid-template-columns: 240px 1fr; gap: 48px; }
}
.svc-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 1019px) { .svc-rail { display: none; } }
.svc-rail li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--grotesk);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
  cursor: pointer;
  transition: color 0.5s, transform 0.5s var(--ease-out);
}
.svc-rail li:hover { color: var(--bone-dim); transform: translateX(4px); }
.svc-rail li:hover i { border-color: var(--ember); }
.svc-rail li i {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  box-shadow: none;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.svc-rail li.is-active {
  color: var(--bone);
}
.svc-rail li.is-active i {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 12px rgba(255, 180, 92, 0.8);
}
.svc-stack {
  position: relative;
  min-height: 340px;
}
.svc {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  pointer-events: none;
}
.svc.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.svc.is-leaving {
  opacity: 0;
  transform: translateY(-22px);
}
.svc-no {
  font-family: var(--grotesk);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ember);
  display: block;
}
.svc-head {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-weight: 460;
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 1.05;
  max-width: 14ch;
  margin-top: 14px;
}
.svc-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--bone-dim);
  max-width: 44ch;
  margin-top: 18px;
}
.svc-progress {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--hairline);
  margin-top: 40px;
}
.svc-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── 04 · Fleet constellation ──────────────────────────────── */
.fleet-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 140, "WONK" 0;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 96px);
  line-height: 1.02;
  margin-bottom: 22px;
}
.fleet-intro {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--bone-dim);
}
/* keep headline + constellation + providers belt inside one laptop viewport */
.panel-fleetline { padding-top: 12vh; padding-bottom: 6vh; }
.panel-fleetline .fleet-title { font-size: clamp(34px, 5vw, 78px); margin-bottom: 16px; }
.constellation {
  position: relative;
  height: clamp(240px, 32vh, 330px);
  margin-top: clamp(20px, 3.5vh, 40px);
}
/* team branches under the directors: a short stem, a few crew motes, a count */
.crew {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  position: relative;
  padding-left: 13px;
}
.crew::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 9px;
  height: 12px;
  border-left: 1px solid rgba(236, 229, 216, 0.22);
  border-bottom: 1px solid rgba(236, 229, 216, 0.22);
  border-bottom-left-radius: 7px;
}
.crew i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(236, 229, 216, 0.45);
  box-shadow: 0 0 5px rgba(236, 229, 216, 0.35);
}
.crew i:nth-child(2) { opacity: 0.75; }
.crew i:nth-child(3) { opacity: 0.5; }
.crew u {
  text-decoration: none;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--bone-faint);
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}
.const-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.const-lines path {
  stroke: rgba(236, 229, 216, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  animation: const-dash 60s linear infinite;
}
@keyframes const-dash {
  to { stroke-dashoffset: -1000; }
}
.star {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  padding-left: 22px;
}
.star::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px rgba(255, 180, 92, 0.9), 0 0 40px rgba(255, 180, 92, 0.35);
  animation: star-pulse 3.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--sy) * 0.04s);
}
@keyframes star-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.25); }
}
.star b {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-weight: 480;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--bone);
  display: block;
}
.star span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
}
.star em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--bone-dim);
  display: block;
  max-width: 22ch;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
}
.star:hover em {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 899px) {
  .constellation { height: auto; }
  .const-lines { display: none; }
  .const-list {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .star {
    position: static;
    left: auto; top: auto;
  }
}

/* ── 05 · Principles ───────────────────────────────────────── */
/* Compact rows: number · word · description side-by-side, so all four
   principles fit a laptop viewport */
.panel-principles { padding-top: 10vh; padding-bottom: 10vh; justify-content: center; }
.panel-principles .panel-head { margin-bottom: clamp(24px, 4vh, 48px); }
.principle-list { border-top: 1px solid var(--hairline); }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 56px auto 1fr;
  gap: 10px clamp(18px, 3.4vw, 64px);
  align-items: center;
  padding: clamp(18px, 3vh, 34px) 0;
  border-bottom: 1px solid var(--hairline);
}
.principle-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ember);
}
.principle-word {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-weight: 440;
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.5s, font-variation-settings 0.6s;
}
.principle:hover .principle-word {
  color: var(--ember);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.principle-line {
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--bone-dim);
  justify-self: start;
}

/* ── 06 · Exosphere ────────────────────────────────────────── */
.panel-exo {
  justify-content: space-between;
  padding-bottom: 0;
  min-height: 100vh;
}
.exo-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 4vh, 44px);
}
.exo-inner .eyebrow { justify-content: center; }
.exo-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 140, "WONK" 0;
  font-weight: 390;
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 1.04;
  max-width: 15ch;
}
.exo-btn {
  position: relative;
  display: inline-block;
  padding: 20px 44px;
  border: 1px solid var(--ember);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}
.exo-btn-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ember), var(--ember-hot));
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
  border-radius: inherit;
}
.exo-btn:hover .exo-btn-fill { transform: translateY(0); }
.exo-btn-text {
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--ember);
  transition: color 0.4s;
}
.exo-btn:hover .exo-btn-text { color: var(--ink); }

.site-foot { padding-bottom: 26px; }
.foot-marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  margin-bottom: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.foot-track {
  display: flex;
  width: max-content;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 26px;
  color: var(--bone-faint);
  will-change: transform;
}
/* ── Model providers marquee (Team section) ────────────────── */
.providers { margin-top: clamp(24px, 4vh, 48px); }
.providers-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  margin-bottom: 22px;
}
.providers .foot-marquee { margin-bottom: 0; }
.providers .foot-track { font-size: clamp(22px, 3vw, 40px); color: var(--bone-dim); }

.foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bone-faint);
}
.foot-row a { color: var(--bone-dim); border-bottom: 1px solid var(--hairline); transition: color 0.3s, border-color 0.3s; }
.foot-row a:hover { color: var(--ember); border-color: var(--ember); }

/* ── Cursor ────────────────────────────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
  .cursor-dot {
    position: absolute;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--ember);
  }
  .cursor-ring {
    position: absolute;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(255, 180, 92, 0.5);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
  }
  .cursor.is-link .cursor-ring {
    width: 56px; height: 56px;
    margin: -28px 0 0 -28px;
    background: rgba(255, 180, 92, 0.08);
    border-color: var(--ember);
  }
  .cursor.is-card .cursor-ring {
    width: 68px; height: 68px;
    margin: -34px 0 0 -34px;
    border-color: rgba(255, 180, 92, 0.85);
  }
  .cursor-label {
    font-size: 8px;
    letter-spacing: 0.26em;
    color: var(--ember);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .cursor.is-card .cursor-label { opacity: 1; }
}

/* ── Responsive & a11y ─────────────────────────────────────── */
@media (max-width: 900px) {
  .altimeter { display: none; }
  .hud-nav a:not(.hud-guide) { display: none; }
  .principle { grid-template-columns: 1fr; }
  .principle-line { grid-column: 1; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}
/* phones: keep any visible nav (subpages show all links) on one tidy line */
@media (max-width: 600px) {
  .hud { padding: 16px var(--gutter); }
  .hud-nav { gap: 12px; font-size: 9px; letter-spacing: 0.12em; }
  .hud-nav a { white-space: nowrap; padding: 2px 0; }
  .hud-mark { font-size: 11px; letter-spacing: 0.24em; }
  .hud-mark span { display: none; } /* keep just the mark glyph to save room */
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .sl-inner, .sc-char { transition: none !important; opacity: 1 !important; transform: none !important; }
  .grain { animation: none; }
  .cue-dot { animation: none; }
  .star::before { animation: none; }
  .const-lines path { animation: none; }
  html { scroll-behavior: auto; }
}
