:root {
  --page: #070B12;
  --navy: #0B1F3A;
  --silver: #C5CDD6;
  --paper: #F4F1EA;
  --teal: #3DDFC7;
  --line: rgba(255, 255, 255, 0.12);
  --muted: rgba(197, 205, 214, 0.64);
  --display: "Syne", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --nav-h: 4.75rem;
  --gutter: clamp(1.25rem, 4.2vw, 4.75rem);
  --max: 72rem;
  --wide: 90rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--page);
  color: var(--silver);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
canvas,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: var(--teal);
  color: var(--page);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--page);
}

.skip:focus {
  top: 1rem;
}

.kicker {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker span {
  color: var(--teal);
  margin-right: 0.75rem;
}

.u-teal {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 0.9rem 1.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--page);
}

.btn-solid {
  border-color: var(--paper);
}

.btn-nav {
  display: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-nav.is-scrolled,
.site-nav.is-open {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  z-index: 2;
}

.brand img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
}

.brand span {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
}

.nav-links a:hover {
  color: var(--paper);
}

.menu-toggle {
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: var(--paper);
  transition: transform 0.3s ease;
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 5rem;
  overflow: hidden;
  background: var(--page);
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-stage canvas,
.hero-fallback,
.hero-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
}

.hero.is-fallback .hero-fallback {
  display: block;
}

.hero.is-fallback .hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.42) 0%, rgba(7, 11, 18, 0.78) 70%, var(--page) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 22ch;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2.7rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.038em;
  color: var(--paper);
  margin: 1.1rem 0 1.4rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--silver);
  max-width: 34ch;
}

.tagline {
  margin: 1.15rem 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue::before {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(180deg, transparent, var(--silver));
}

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.stats article {
  padding: 1.6rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.stats article:last-child {
  border-bottom: 0;
}

.stat-n {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1;
}

.stat-n.teal {
  color: var(--teal);
}

.stat-l {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 22ch;
}

.section {
  padding: clamp(4.5rem, 12vw, 9rem) var(--gutter);
}

.section-head {
  max-width: 16ch;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section h2,
.intel-copy h2,
.contact-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-top: 0.85rem;
}

.section p + p {
  margin-top: 1.1rem;
}

.media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
}

.media img {
  width: 100%;
  height: auto;
  transform: scale(1.001);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.media:hover img {
  transform: scale(1.045);
}

.media figcaption,
.nucleus-frame figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.media-wide {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.platform-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.platform-grid li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.platform-grid .idx {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.platform-grid h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--paper);
  margin: 0.45rem 0 0.8rem;
}

.platform-grid p {
  max-width: 42ch;
  color: var(--silver);
}

.intel-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.intel-copy p,
.about-copy p,
.contact-copy p {
  max-width: 46ch;
}

.nucleus-frame {
  position: relative;
  border: 1px solid var(--line);
  background: #05080e;
  min-height: 22rem;
  aspect-ratio: 1;
}

.nucleus-frame canvas {
  width: 100%;
  height: calc(100% - 2.7rem);
  pointer-events: none;
}

.nucleus-fallback {
  display: none;
  position: absolute;
  inset: 0 0 2.7rem;
}

.nucleus-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nucleus-frame.is-fallback .nucleus-fallback {
  display: block;
}

.nucleus-frame.is-fallback canvas {
  display: none;
}

.about-copy {
  max-width: 40rem;
}

.fine {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.fine span {
  color: var(--silver);
}

.briefing {
  display: grid;
  gap: 1.15rem;
  max-width: 32rem;
}

.briefing label {
  display: grid;
  gap: 0.45rem;
}

.briefing label span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.briefing input,
.briefing textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0 0.75rem;
  border-radius: 0;
  outline: none;
}

.briefing input:focus,
.briefing textarea:focus {
  border-bottom-color: var(--teal);
}

.briefing textarea {
  resize: vertical;
  min-height: 7rem;
}

.briefing .btn {
  justify-self: start;
  margin-top: 0.6rem;
}

.transmit-ack {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--paper);
  max-width: 16ch;
}

.site-foot {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.brand-foot {
  font-family: var(--display);
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.site-foot p {
  font-size: 0.82rem;
  color: var(--muted);
}

.holding {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .site-nav.is-open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--gutter);
    background: rgba(7, 11, 18, 0.96);
    gap: 1.4rem;
  }

  .site-nav.is-open .nav-links a {
    font-family: var(--display);
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--paper);
  }

  .site-nav.is-open .btn-nav {
    display: none;
  }
}

@media (min-width: 720px) {
  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats article {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 2.2rem 1.4rem;
  }

  .stats article:nth-child(3) {
    border-right: 0;
  }

  .stats article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .stats article:nth-child(4) {
    padding-left: var(--gutter);
  }

  .stats article:last-child {
    border-right: 0;
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .btn-nav {
    display: inline-flex;
  }

  .hero {
    align-items: center;
    padding-bottom: 6rem;
  }

  .hero-copy {
    max-width: 18ch;
  }

  .stats-inner {
    grid-template-columns: repeat(5, 1fr);
  }

  .stats article,
  .stats article:nth-child(3),
  .stats article:nth-child(n + 4) {
    border-top: 0;
    border-right: 1px solid var(--line);
    padding: 2.4rem 1.5rem;
  }

  .stats article:first-child {
    padding-left: var(--gutter);
  }

  .stats article:last-child {
    border-right: 0;
    padding-right: var(--gutter);
  }

  .section-head {
    max-width: 18ch;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .platform-grid li {
    padding: 2.2rem 1.6rem 2.2rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .platform-grid li:last-child {
    border-right: 0;
    padding-right: 0;
    padding-left: 1.6rem;
  }

  .platform-grid li:nth-child(2) {
    padding-left: 1.6rem;
  }

  .intel-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 4rem;
    margin-bottom: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }

  .about-copy {
    grid-column: 1 / -1;
    max-width: 46rem;
    margin-bottom: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .hero-copy {
    max-width: 16ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .media img {
    transform: none;
  }
}

body.is-locked {
  overflow: hidden;
}

.hero-stage canvas {
  position: absolute;
  inset: 0;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.12) 0%, rgba(7, 11, 18, 0.28) 55%, var(--page) 100%);
}

.hero.is-fallback .hero-stage::after {
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.42) 0%, rgba(7, 11, 18, 0.78) 70%, var(--page) 100%);
}
