@font-face {
  font-family: "Melodrama";
  src: url("../fonts/Melodrama-Variable.woff2") format("woff2"),
    url("../fonts/Melodrama-Variable.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2"),
    url("../fonts/Satoshi-Variable.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --white: #f5f8ff;
  --blue: #58b8ff;
  --muted: rgba(200, 215, 236, 0.62);
  --ink: rgba(214, 226, 240, 0.88);
  --dim: rgba(148, 170, 196, 0.55);
  --bg: #010207;
  --page-inline: clamp(1.25rem, 3.5vw, 2.75rem);
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  min-height: 100%;
  color: var(--white);
  background: var(--bg);
  font-family: "Satoshi", sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

::selection {
  color: #f4f9ff;
  background: #1a4f86;
}

::-moz-selection {
  color: #f4f9ff;
  background: #1a4f86;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 52% 38% at 50% 14%,
      rgba(37, 75, 124, 0.2),
      rgba(37, 75, 124, 0.08) 42%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 75% 48% at 50% 88%,
      rgba(7, 37, 74, 0.22),
      rgba(7, 37, 74, 0.08) 48%,
      transparent 78%
    ),
    linear-gradient(180deg, #010206 0%, #02050a 55%, #010206 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: radial-gradient(
    circle,
    rgba(152, 193, 230, 0.32) 0 0.45px,
    transparent 0.7px
  );
  background-size: 42px 42px;
  mask-image: radial-gradient(
    ellipse 80% 66% at 50% 40%,
    #000 0%,
    rgba(0, 0, 0, 0.4) 34%,
    transparent 76%
  );
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--page-inline);
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5.75rem;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(1, 2, 7, 0.78) 0%,
    rgba(1, 2, 7, 0.42) 48%,
    rgba(1, 2, 7, 0) 100%
  );
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
}

.brand-mark {
  position: relative;
  z-index: 2;
  color: rgba(236, 245, 255, 0.92);
  font-family: "Melodrama", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(94, 190, 255, 0.28);
  pointer-events: auto;
}

.site-nav {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.site-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.65rem;
}

.site-links a {
  position: relative;
  color: rgba(199, 215, 233, 0.58);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.site-links a[aria-current="page"],
.site-links a:hover,
.site-links a:focus-visible {
  color: rgba(239, 248, 255, 0.94);
  text-shadow: 0 0 14px rgba(94, 190, 255, 0.46);
  outline: none;
}

.site-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(121, 203, 255, 0.8), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-links a:hover::after,
.site-links a:focus-visible::after,
.site-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* Keep the hero anchored while mobile browser chrome expands/collapses. */
  min-height: 100svh;
  padding: 6.5rem 1.5rem 2.5rem;
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: 0.85rem;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 14em;
  margin: 0 auto 1.5rem;
  color: rgba(244, 248, 255, 0.96);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero__title.is-reveal-pending {
  opacity: 0;
}

.word-reveal {
  --reveal-blur: 7px;
  position: relative;
}

.word-reveal__blur-fader {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
  will-change: opacity;
}

.word-reveal__blur-copy {
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  filter: blur(var(--reveal-blur));
}

.word-reveal__word {
  position: relative;
  z-index: 1;
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.3em, 0) scale(0.99);
  transform-origin: 50% 70%;
}

.word-reveal.is-word-revealing .word-reveal__word {
  animation: word-focus-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--word-delay, 0ms);
}

.word-reveal__word--title {
  isolation: isolate;
  opacity: 0.16;
  filter: blur(2px) brightness(1.5);
  transform: translate3d(0, -0.18em, 0) scaleY(1.08);
  will-change: transform, opacity, filter;
}

.word-reveal__word--title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 58%;
  width: clamp(7px, 0.45em, 13px);
  height: clamp(42px, 8vw, 76px);
  background: linear-gradient(
    to top,
    rgba(235, 248, 255, 0.62),
    rgba(81, 180, 255, 0.2) 42%,
    transparent 100%
  );
  filter: blur(5px);
  opacity: 0;
  transform: translate3d(-50%, -25%, 0) scaleY(0.15);
  transform-origin: bottom;
  will-change: transform, opacity;
}

.word-reveal--title.is-word-revealing .word-reveal__word--title {
  animation: mission-title-land 1.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(140ms + var(--word-delay, 0ms));
}

.word-reveal--title.is-word-revealing .word-reveal__word--title::before {
  animation: mission-title-beam 1.12s ease-out both;
  animation-delay: var(--word-delay, 0ms);
}

.word-reveal.is-word-revealing .word-reveal__blur-fader {
  animation: blur-fader-reveal 860ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes word-focus-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.3em, 0) scale(0.99);
  }

  48% {
    opacity: 0.86;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes blur-fader-reveal {
  0% {
    opacity: 0;
  }

  22% {
    opacity: 0.68;
  }

  100% {
    opacity: 0;
  }
}

@keyframes mission-title-land {
  0% {
    opacity: 0.16;
    filter: blur(2px) brightness(1.5);
    transform: translate3d(0, -0.18em, 0) scaleY(1.08);
  }

  58% {
    opacity: 1;
    filter: blur(0.5px) brightness(1.8);
  }

  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

@keyframes mission-title-beam {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -25%, 0) scaleY(0.15);
  }

  32% {
    opacity: 0.72;
  }

  76% {
    opacity: 0.24;
    transform: translate3d(-50%, 10%, 0) scaleY(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 18%, 0) scaleY(0.7);
  }
}

.article-reveal-block.is-reveal-pending {
  opacity: 0;
}

@keyframes word-stream-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.36em, 0) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero__globe-wrap {
  position: relative;
  width: min(520px, 82vw);
  aspect-ratio: 1;
  overflow: visible;
}

#mission-globe {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  /* No border-radius — lofted flight paths must paint outside the globe disk. */
  overflow: visible;
}

#mission-globe.is-dragging {
  cursor: grabbing;
}

.story {
  position: relative;
  display: grid;
  padding: 1rem 0 6.5rem;
}

.teaser,
.article-shell {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
}

.teaser {
  display: flex;
  justify-content: center;
  align-self: start;
  z-index: 2;
  padding: 1.5rem var(--page-inline) 3rem;
  opacity: 1;
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.teaser.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.teaser[hidden] {
  display: none !important;
}

.teaser__inner {
  max-width: 40rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
}

.teaser__inner p + p {
  margin-top: 1.25rem;
}

.more-link {
  display: inline;
  margin-left: 0.35rem;
  padding: 0;
  color: var(--blue);
  font: inherit;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.more-link[hidden] {
  display: none !important;
}

.more-link.is-dismissed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.more-link:hover,
.more-link:focus-visible {
  color: #9fd4ff;
  text-shadow: 0 0 12px rgba(88, 184, 255, 0.45);
  outline: none;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 40rem);
  gap: clamp(2.5rem, 6vw, 5rem);
  justify-content: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.5rem var(--page-inline) 7rem;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: opacity;
}

.article-shell.is-open {
  opacity: 1;
}

.article-shell[hidden] {
  display: none !important;
}

.article-nav {
  position: sticky;
  top: 6rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: calc(100vh - 8rem);
  /* Clip during stagger — translateY children would otherwise flash a scrollbar. */
  overflow: hidden;
  padding-right: 0.35rem;
}

body.article-settled .article-nav {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 170, 210, 0.25) transparent;
}

body.article-settled .article-nav::-webkit-scrollbar {
  width: 4px;
}

body.article-settled .article-nav::-webkit-scrollbar-thumb {
  background: rgba(120, 170, 210, 0.28);
  border-radius: 4px;
}

.article-nav a {
  --i: 0;
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.35;
  text-decoration: none;
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
}

.article-shell.is-open .article-nav a {
  animation: nav-stagger 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(120ms + var(--i) * 55ms);
}

.article-nav a:hover,
.article-nav a:focus-visible {
  color: rgba(230, 240, 252, 0.9);
  outline: none;
}

.article-nav a.is-active {
  color: rgba(245, 250, 255, 0.96);
}

/* Color transitions only after settle — avoids dim→bright flash post-stagger. */
body.article-settled .article-nav a {
  transition: color 180ms ease;
}

@keyframes nav-stagger {
  from {
    opacity: 0;
    transform: translate3d(-8px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.article {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article h2 {
  margin: 3.25rem 0 1.9rem;
  color: rgba(236, 244, 255, 0.94);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 6.5rem;
}

.article h2:first-of-type {
  margin-top: 2.25rem;
}

.article p + p {
  margin-top: 0.55rem;
}

.article strong {
  color: rgba(245, 250, 255, 0.96);
  font-weight: 600;
}

.article-signoff {
  margin: 3.75rem 0 0;
  padding: 0;
  max-width: 16rem;
}

.article-signoff__mark {
  display: block;
  width: min(9.25rem, 48vw);
  height: auto;
  margin: 0 0 0.15rem;
}

.article-signoff__name {
  margin: 8px 0 0;
  color: rgba(176, 198, 220, 0.58);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.belief-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  list-style: none;
}

.belief-list li {
  position: relative;
  padding-left: 0.35rem;
}

.belief-list li::before {
  content: "★";
  position: absolute;
  top: calc(0.875em + 4px);
  left: -1.2rem;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: rgba(121, 203, 255, 0.78);
  font-size: 0.78em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(88, 184, 255, 0.4);
}

@media (max-width: 900px) {
  .article-shell,
  .article-shell.is-open {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: rgba(4, 13, 24, 0.28);
    border: 1px solid rgba(132, 190, 231, 0.12);
    border-radius: 4px;
    backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 1.5px;
    background: rgba(230, 243, 252, 0.9);
    box-shadow: 0 0 7px rgba(93, 188, 255, 0.4);
    border-radius: 1px;
    transform-origin: center;
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      width 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .menu-toggle span:first-child {
    width: 20px;
  }

  .menu-toggle span:last-child {
    width: 13px;
  }

  .site-nav.is-open .menu-toggle span:first-child {
    width: 18px;
    transform: translateY(4.25px) rotate(45deg);
  }

  .site-nav.is-open .menu-toggle span:last-child {
    width: 18px;
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .site-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 156px;
    padding: 0.95rem 1rem;
    gap: 1rem;
    background: rgba(5, 16, 28, 0.92);
    border: 1px solid rgba(111, 182, 232, 0.16);
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 240ms ease,
      visibility 240ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav.is-open .site-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-links a::after {
    display: none;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero__globe-wrap {
    width: min(420px, 88vw);
  }

}

@media (max-width: 760px), (pointer: coarse) {
  .topbar {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  .topbar::before {
    background: linear-gradient(
      180deg,
      rgba(1, 2, 7, 0.96) 0%,
      rgba(1, 2, 7, 0.64) 48%,
      rgba(1, 2, 7, 0) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .article-shell {
    padding-top: 1.5rem;
  }

  .article > p:first-child + p {
    margin-top: 1.25rem;
  }

  body.article-expanded:not(.article-settled) .teaser.is-leaving {
    opacity: 1;
  }

  body.article-expanded:not(.article-settled) .article-intro-carried {
    opacity: 0;
  }

  .word-reveal {
    --reveal-blur: 5px;
  }

  .word-reveal--block .word-reveal__word {
    transform: translate3d(0, 0.36em, 0) scale(0.992);
  }

  .word-reveal--block.is-word-revealing .word-reveal__word {
    animation-name: word-stream-in;
    animation-duration: 680ms;
  }

  .word-reveal--title.is-word-revealing .word-reveal__word--title {
    animation-duration: 1.2s;
  }

  .word-reveal.is-word-revealing .word-reveal__blur-fader {
    animation-duration: 900ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title.is-reveal-pending,
  .article-reveal-block.is-reveal-pending {
    opacity: 1;
  }

  .article-shell,
  .teaser,
  .menu-toggle span,
  .site-links {
    transition-duration: 0.01ms !important;
  }

  .article-shell.is-open .article-nav a {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .word-reveal__word {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .word-reveal__word--title::before {
    display: none;
  }

  .word-reveal__blur-fader {
    display: none;
  }
}
