:root {
  --bg: #02040a;
  --ink: #f1f1ef;
  --muted: #8d9096;
  --faint: rgba(241, 241, 239, 0.14);
  --accent: #8fb3ff; /* same light blue as the hero */
  --blue: #3a78ff;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* night valley photo under a navy-to-black grade; JS drifts it slightly with scroll */
.backdrop {
  position: fixed;
  inset: -6% 0;
  background:
    radial-gradient(55% 50% at 64% 50%, rgba(46, 82, 168, 0.22) 0%, rgba(46, 82, 168, 0) 72%),
    #02040a;
  z-index: 0;
  will-change: transform;
}
@media (max-width: 760px) {
  .backdrop {
    background:
      radial-gradient(70% 40% at 50% 34%, rgba(46, 82, 168, 0.22) 0%, rgba(46, 82, 168, 0) 72%),
      #02040a;
  }
}

/* drifting fog: soft navy haze around the drone, plus a low mist in front */
.fog {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  will-change: transform;
}
.fog--back {
  z-index: 0;
  background:
    radial-gradient(40% 24% at 28% 64%, rgba(130, 160, 225, 0.2) 0%, rgba(130, 160, 225, 0) 70%),
    radial-gradient(36% 22% at 80% 38%, rgba(120, 150, 220, 0.18) 0%, rgba(120, 150, 220, 0) 70%),
    radial-gradient(52% 28% at 62% 62%, rgba(105, 140, 215, 0.24) 0%, rgba(105, 140, 215, 0) 72%),
    radial-gradient(30% 16% at 50% 28%, rgba(120, 150, 220, 0.1) 0%, rgba(120, 150, 220, 0) 70%);
  animation: fog-a 34s ease-in-out infinite alternate;
}
.fog--front {
  z-index: 2;
  background:
    radial-gradient(62% 20% at 40% 98%, rgba(150, 175, 230, 0.2) 0%, rgba(150, 175, 230, 0) 70%),
    radial-gradient(48% 18% at 86% 90%, rgba(135, 165, 225, 0.16) 0%, rgba(135, 165, 225, 0) 70%),
    radial-gradient(26% 12% at 96% 60%, rgba(135, 165, 225, 0.1) 0%, rgba(135, 165, 225, 0) 70%);
  animation: fog-b 42s ease-in-out infinite alternate;
}
@keyframes fog-a { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, -2%, 0); } }
@keyframes fog-b { from { transform: translate3d(3%, 0, 0); } to { transform: translate3d(-5%, 1%, 0); } }

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.is-ready #gl { opacity: 1; }

.track { height: 560vh; }

/* ---------------------------------------------------------------- hero background */
/* black-to-blue sweep; the background for the whole page */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 62% at 74% 44%, rgba(70, 128, 255, 0.42) 0%, rgba(70, 128, 255, 0) 70%),
    linear-gradient(90deg, #010207 0%, #030817 26%, #081a46 58%, #12358a 84%, #1a47ad 100%);
}
/* the member's storm-valley photo, faded into the blue gradient */
.hero-bg__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url('./storm.jpg') center 58% / cover no-repeat;
  opacity: var(--photo-opacity, 0.34);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(1, 3, 10, 0.45) 0%, rgba(1, 3, 10, 0) 22%, rgba(1, 3, 10, 0) 66%, rgba(1, 3, 10, 0.7) 100%);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px var(--pad);
}
.nav__pill {
  justify-self: start;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__pill a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(241, 241, 239, 0.78);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav__pill a:hover { color: var(--ink); }
.nav__pill a.is-current { background: rgba(255, 255, 255, 0.12); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.nav__logo { justify-self: center; display: block; width: 34px; height: 34px; color: var(--ink); }
.nav__logo svg { width: 100%; height: 100%; display: block; }
.nav__social { justify-self: end; display: flex; gap: 10px; }
.nav__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
.nav__icon svg { width: 18px; height: 18px; }
.nav a:focus-visible, .btn:focus-visible, .card__btn:focus-visible { outline: 2px solid #8fb3ff; outline-offset: 3px; }

/* ---------------------------------------------------------------- copy */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* kicker: same light-blue, sentence-case label as the hero's secondary text */
.step__kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.hero-copy, .step, .final {
  position: absolute;
  left: var(--pad);
  max-width: 440px;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-copy a, .final a { pointer-events: auto; }
.hero-copy:not(.is-active) a, .final:not(.is-active) a { pointer-events: none; }
.hero-copy.is-active, .step.is-active, .final.is-active {
  opacity: 1;
  transform: none;
  transition-delay: 0.04s;
}

/* hero: big title, short lede, CTA row, two glass cards; the 3D drone sits on the right */
.hero-copy {
  top: clamp(104px, 16vh, 168px);
  bottom: clamp(26px, 5vh, 56px);
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__head { position: relative; }
.hero__kicker {
  position: absolute;
  right: 6%;
  top: -0.2em;
  margin: 0;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.hero__arc {
  position: absolute;
  width: 2.9em;
  height: 2.9em;
  left: 1.6em;
  top: -1.9em;
  color: rgba(241, 241, 239, 0.8);
  transform: rotate(-20deg);
}
.hero__title {
  margin: 0;
  padding-top: 0.32em;
  font-size: clamp(72px, 11.2vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 600;
  white-space: nowrap;
}
.hero__fade {
  background: linear-gradient(90deg, #f1f1ef 0%, rgba(241, 241, 239, 0.92) 30%, rgba(170, 196, 255, 0.18) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero__lede {
  margin: clamp(28px, 5vh, 56px) 0 0;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(241, 241, 239, 0.86);
}
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: clamp(24px, 4vh, 40px); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a78ff 0%, #2357e0 100%);
  box-shadow: 0 10px 30px rgba(35, 87, 224, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(35, 87, 224, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #1f4fd1;
}
.btn__icon svg { width: 20px; height: 20px; }
.hero__proof { display: flex; align-items: center; gap: 16px; }
.hero__chips { display: flex; }
.hero__chips span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -9px;
  border-radius: 50%;
  background: linear-gradient(160deg, #1b2a4f, #0b1328);
  box-shadow: 0 0 0 2px #050b1c;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
}
.hero__chips span:first-child { margin-left: 0; }
.hero__proof p { margin: 0; font-size: 13px; line-height: 1.35; color: #8fb3ff; }

.hero__cards { display: flex; gap: 16px; margin-top: auto; padding-top: 28px; }
.card {
  position: relative;
  width: clamp(150px, 13.5vw, 196px);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.card--feed {
  background: linear-gradient(180deg, rgba(40, 90, 210, 0.22), rgba(2, 4, 12, 0.5)), url('./bg-sm.jpg') 50% 66% / 160% auto no-repeat, #050b1c;
}
.card--feed figcaption {
  position: absolute;
  left: 22px;
  bottom: 21px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 241, 239, 0.85);
}
.feed__hud { position: absolute; inset: 12px; }
/* FPV viewfinder corners */
.feed__hud {
  --c: rgba(241, 241, 239, 0.75);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1.5px 16px no-repeat;
}
.feed__rec, .feed__res {
  position: absolute;
  top: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.feed__rec { left: 10px; padding-left: 12px; }
.feed__rec::before { content: ''; position: absolute; left: 0; top: 2.5px; width: 7px; height: 7px; border-radius: 50%; background: #ff4b3a; box-shadow: 0 0 8px rgba(255, 75, 58, 0.8); animation: rec 1.6s steps(1) infinite; }
.feed__res { right: 10px; }
@keyframes rec { 50% { opacity: 0.25; } }
.feed__cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.feed__cross::before, .feed__cross::after { content: ''; position: absolute; background: rgba(241, 241, 239, 0.7); }
.feed__cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.feed__cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.card--stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 500;
}
.card__chip svg { width: 17px; height: 17px; }
.card--stat strong { margin-top: 18px; font-size: clamp(28px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.card__note { margin-top: 6px; font-size: 13px; color: rgba(241, 241, 239, 0.7); }
.card__btn {
  margin-top: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #0b1328;
  transition: transform 0.25s ease;
}
.card__btn:hover { transform: translateX(2px); }
.card__btn svg { width: 19px; height: 19px; }
/* short laptop screens: drop the cards so the title keeps its size */
@media (max-height: 760px) and (min-width: 761px) { .hero__cards { display: none; } }

/* assembly steps: one glass card per step, same glass and type as the hero cards */
.step {
  top: 50%;
  transform: translate3d(0, calc(-50% + 22px), 0);
  max-width: 460px;
  padding: 26px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.step.is-active { transform: translate3d(0, -50%, 0); }
.step__num, .final__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.step__num span { color: rgba(241, 241, 239, 0.6); }
.final__chip svg { width: 15px; height: 15px; color: var(--accent); }
.step h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.step p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(241, 241, 239, 0.82);
}

/* specs: big title like the hero, specs as small glass cards, replay button like the hero CTA */
.final { bottom: clamp(32px, 6vh, 64px); max-width: none; }
.final h2 {
  margin: 0;
  font-size: clamp(52px, 6.6vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.final h2 .hero__fade { padding-right: 0.08em; }
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, auto));
  gap: 12px;
  margin: clamp(22px, 3.6vh, 34px) 0 0;
}
.specs div {
  margin: 0;
  padding: 14px 16px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.specs dt { margin-bottom: 8px; font-size: 12px; font-weight: 500; color: rgba(241, 241, 239, 0.62); white-space: nowrap; }
.specs dd { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.final .btn { margin-top: clamp(20px, 3.4vh, 30px); }

/* ---------------------------------------------------------------- rail */
.rail {
  position: fixed;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 30, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 500;
}
.rail__track { position: relative; width: 1px; background: var(--faint); }
.rail__fill {
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(0);
}
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.rail li { color: rgba(241, 241, 239, 0.4); transition: color 0.4s ease; white-space: nowrap; }
.rail li { font-size: 0; }
.rail li span { display: inline-block; font-size: 12px; font-variant-numeric: tabular-nums; }
.rail li.is-done { color: rgba(241, 241, 239, 0.7); }
.rail li.is-active { color: var(--ink); }
.rail li.is-active span { color: var(--accent); }

/* ---------------------------------------------------------------- labels */
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.label {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.label__dot {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(241, 241, 239, 0.14);
}
.label__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 1px;
  background: rgba(241, 241, 239, 0.5);
  transform-origin: left;
  transform: rotate(-32deg);
}
.label__text {
  position: absolute;
  left: 46px;
  top: -50px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.label__text b { font-weight: 500; color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
.label.is-flip .label__line { transform: rotate(-148deg); }
.label.is-flip .label__text { left: auto; right: 46px; }

.noscript { position: fixed; inset: auto 0 40px; text-align: center; color: var(--muted); z-index: 9; }

/* ---------------------------------------------------------------- responsive */


@media (max-width: 760px) {
  .nav { padding: 16px 20px; grid-template-columns: auto 1fr; }
  .nav__pill { display: none; }
  .nav__logo { justify-self: start; width: 30px; height: 30px; }
  .nav__icon { width: 34px; height: 34px; }
  .nav__icon svg { width: 16px; height: 16px; }
  .rail { display: none; }
  .hero-copy, .step, .final {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  .hero-copy { top: auto; bottom: 40px; }
  .hero__kicker { font-size: 18px; right: 4%; }
  .hero__title { font-size: 76px; }
  .hero__lede { margin-top: 18px; font-size: 22px; }
  .hero__actions { margin-top: 22px; }
  .hero__proof, .hero__cards { display: none; }
  .step { top: auto; bottom: 24px; padding: 18px 20px 20px; border-radius: 20px; transform: translate3d(0, 22px, 0); }
  .step.is-active { transform: none; }
  .step__num, .final__chip { margin-bottom: 12px; padding: 6px 11px; font-size: 11px; }
  .step h2 { font-size: 28px; margin-bottom: 8px; }
  .step p:last-child { font-size: 15px; line-height: 1.4; }
  .final { bottom: 28px; }
  .final h2 { font-size: 48px; }
  .specs { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
  .specs div { padding: 10px 13px 11px; border-radius: 15px; }
  .specs dt { font-size: 11px; margin-bottom: 4px; }
  .specs dd { font-size: 19px; }
  .final .btn { margin-top: 16px; }
  .label__text { font-size: 10.5px; left: 38px; top: -42px; padding: 5px 10px; }
  .label.is-flip .label__text { left: auto; right: 38px; }
  .label__line { width: 46px; }
  .overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46vh;
    background: linear-gradient(to top, rgba(2, 4, 10, 0.92), rgba(2, 4, 10, 0));
    z-index: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .step, .final { transition: opacity 0.2s linear; transform: none; }
  .feed__rec::before { animation: none; }
  .fog { animation: none; }
}
