:root {
  --ink: #050a12;
  --ink-soft: #091524;
  --panel: rgba(12, 28, 47, 0.78);
  --paper: #eef4f6;
  --muted: #96a8b7;
  --gold: #f6c928;
  --gold-soft: #ffdf62;
  --blue: #79ccf2;
  --line: rgba(162, 208, 232, 0.2);
  --max-width: 1220px;
  --display: 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --body: Inter, Avenir, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(
      circle at 76% 12%,
      rgba(48, 101, 142, 0.22),
      transparent 28rem
    ),
    radial-gradient(
      circle at 20% 62%,
      rgba(35, 92, 128, 0.12),
      transparent 34rem
    ),
    var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: '';
  pointer-events: none;
  opacity: 0.52;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 8%, #d7efff 0 1px, transparent 1.5px),
    radial-gradient(circle at 87% 31%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 32% 45%, #8dcbea 0 1px, transparent 1.5px),
    radial-gradient(circle at 59% 72%, #fff 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 9% 81%, #fff 0 1px, transparent 1.5px);
  background-size:
    24rem 24rem,
    31rem 31rem,
    19rem 19rem,
    27rem 27rem,
    22rem 22rem,
    35rem 35rem;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  content: '';
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 5px;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.starfield::before,
.starfield::after {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  content: '';
  background: white;
  box-shadow:
    12vw 9vh #fff,
    27vw 24vh #7bc7ee,
    41vw 7vh #fff,
    59vw 29vh #fff,
    78vw 17vh #8ecceb,
    91vw 43vh #fff,
    5vw 61vh #fff,
    34vw 76vh #fff,
    53vw 58vh #79c7ed,
    71vw 87vh #fff,
    86vw 68vh #fff,
    98vw 92vh #fff;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.starfield::after {
  left: 3vw;
  top: 14vh;
  opacity: 0.45;
  transform: scale(0.65);
  animation-delay: -2.5s;
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 3rem), var(--max-width));
  min-height: 7.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

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

.brand-mark {
  position: relative;
  display: inline-block;
  width: 1.9rem;
  height: 2.35rem;
  border: 2px solid var(--gold);
  border-radius: 75% 20% 58% 40%;
  transform: rotate(35deg) skewY(-9deg);
}

.brand-mark::after {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  content: '';
  background: var(--gold);
  box-shadow: 0 0 12px rgba(246, 201, 40, 0.75);
}

.brand-copy {
  display: grid;
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.77rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy span:first-child {
  color: var(--gold);
  letter-spacing: 0.1em;
}

.brand-copy span:last-child {
  color: var(--gold);
  font-size: 1.28rem;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  align-items: center;
}

.site-nav a {
  position: relative;
  color: #ced9e0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 100%;
  height: 2px;
  content: '';
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 3rem), var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: 10rem 0 5.75rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.68fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.hero::before {
  position: absolute;
  left: -12vw;
  bottom: 7%;
  z-index: -1;
  width: 55vw;
  height: 1px;
  content: '';
  background: linear-gradient(
    90deg,
    transparent,
    rgba(121, 204, 242, 0.62),
    transparent
  );
  box-shadow: 0 0 22px rgba(121, 204, 242, 0.55);
  transform: rotate(-9deg);
}

.hero-orbit {
  position: absolute;
  top: 18%;
  left: -18%;
  z-index: -1;
  width: clamp(20rem, 48vw, 43rem);
  aspect-ratio: 1;
  border: 1px solid rgba(121, 204, 242, 0.1);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(121, 204, 242, 0.08);
  border-radius: inherit;
  content: '';
}

.hero-orbit::after {
  inset: 27%;
}

.hero-orbit span {
  position: absolute;
  top: 25%;
  right: 2.5%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

.eyebrow {
  display: flex;
  margin: 0 0 1.4rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 2.6rem;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(246, 201, 40, 0.5);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4.7rem, 9vw, 8.25rem);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

h1 > span {
  display: block;
}

h1 .title-the {
  margin-bottom: 0.08em;
  color: var(--gold);
  font-size: 0.34em;
  line-height: 1;
  letter-spacing: 0.08em;
}

h1 .title-sixty-year {
  margin-bottom: 0.08em;
  color: var(--paper);
  font-size: 0.54em;
  line-height: 1;
  letter-spacing: 0.08em;
}

h1 > span:last-child {
  color: var(--gold);
}

.hero-tagline {
  max-width: 31rem;
  margin: 2.1rem 0 0;
  color: #dbe8ee;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 37rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.hero-actions {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(238, 244, 246, 0.28);
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--paper);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.button-primary:hover {
  background: var(--gold-soft);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 0.33rem solid transparent;
  border-bottom: 0.33rem solid transparent;
  border-left: 0.52rem solid currentColor;
}

.mission-readout {
  display: flex;
  margin: 2.4rem 0 0;
  gap: 3rem;
}

.mission-readout div {
  display: grid;
  gap: 0.12rem;
}

.mission-readout dt {
  color: #718a9d;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mission-readout dd {
  margin: 0;
  color: #c6d5de;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-light {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: signal 1.8s ease-in-out infinite;
}

.poster-wrap {
  position: relative;
  width: min(100%, 27rem);
  margin: 0 auto;
}

.poster-wrap::before {
  position: absolute;
  inset: 8% -12% -5% 14%;
  z-index: -1;
  content: '';
  opacity: 0.62;
  background: rgba(39, 100, 139, 0.42);
  filter: blur(55px);
}

.poster-frame {
  position: relative;
  padding: 0.55rem;
  border: 1px solid rgba(191, 224, 240, 0.28);
  background: rgba(231, 240, 243, 0.06);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
}

.poster-frame img {
  width: 100%;
  height: auto;
  filter: saturate(0.95) contrast(1.02);
}

.frame-corner {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  z-index: 2;
  width: 3.5rem;
  height: 3.5rem;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.poster-scanline {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: calc(100% - 1.1rem);
  height: 2px;
  opacity: 0.35;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: scan 5.5s linear infinite;
}

.poster-wrap figcaption {
  display: flex;
  padding: 0.9rem 0.15rem 0;
  justify-content: space-between;
  color: #718a9d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 3.4rem;
  height: 1px;
  background: var(--gold);
}

.scroll-cue i::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.69rem;
  height: 0.69rem;
  border-right: 1px solid var(--gold);
  content: '';
  transform: rotate(45deg);
  transform-origin: right bottom;
}

.section {
  position: relative;
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.section-number {
  position: absolute;
  top: clamp(6rem, 11vw, 10rem);
  right: 0;
  color: rgba(121, 204, 242, 0.12);
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.8;
}

.section-heading {
  position: relative;
  z-index: 1;
}

h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 6.1rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.story-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(25rem, 1.12fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.story-intro .section-heading h2 {
  max-width: 8.2ch;
}

.story-carousel {
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  overflow: hidden;
  padding-top: clamp(2.75rem, 6vw, 5rem);
  justify-self: end;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  width: 100%;
  max-width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-slide img,
.carousel-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(121, 204, 242, 0.28);
}

.carousel-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--ink-soft);
}

.carousel-placeholder {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.8rem);
  align-content: space-between;
  color: rgba(238, 244, 246, 0.88);
  background:
    linear-gradient(135deg, rgba(121, 204, 242, 0.2), transparent 55%),
    #0a1929;
}

.carousel-placeholder::before,
.carousel-placeholder::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.carousel-placeholder::before {
  inset: 12% -8% -45% 38%;
  border: 1px solid rgba(121, 204, 242, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.8rem rgba(121, 204, 242, 0.035),
    0 0 0 5.6rem rgba(121, 204, 242, 0.022);
}

.carousel-placeholder::after {
  left: 0;
  right: 0;
  top: 38%;
  height: 1px;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 18px rgba(121, 204, 242, 0.6);
  transform: rotate(-7deg);
}

.carousel-placeholder span,
.carousel-placeholder strong {
  position: relative;
  z-index: 1;
}

.carousel-placeholder span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.carousel-placeholder strong {
  justify-self: end;
  color: rgba(238, 244, 246, 0.12);
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.72;
}

.carousel-placeholder-two {
  background:
    linear-gradient(145deg, rgba(246, 201, 40, 0.18), transparent 52%),
    #121a29;
}

.carousel-placeholder-three {
  background:
    linear-gradient(145deg, rgba(78, 119, 181, 0.3), transparent 55%),
    #081522;
}

.carousel-placeholder-four {
  background:
    linear-gradient(145deg, rgba(175, 91, 69, 0.26), transparent 54%),
    #131721;
}

.carousel-placeholder-five {
  background:
    linear-gradient(145deg, rgba(116, 174, 147, 0.24), transparent 54%),
    #091923;
}

.carousel-placeholder-six {
  background:
    linear-gradient(145deg, rgba(131, 102, 175, 0.28), transparent 54%),
    #101522;
}

.carousel-slide figcaption {
  display: flex;
  padding: 0.8rem 0 0;
  justify-content: space-between;
  color: #718999;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.53rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.carousel-controls {
  display: none;
  margin-top: 1.2rem;
  grid-template-columns: auto minmax(8rem, 1fr);
  gap: 1.4rem;
  align-items: center;
}

.js .carousel-controls {
  display: grid;
}

.carousel-buttons {
  display: flex;
  gap: 0.55rem;
}

.carousel-button {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(121, 204, 242, 0.28);
  place-items: center;
  color: var(--paper);
  background: rgba(9, 21, 36, 0.78);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.carousel-button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.carousel-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-status {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr);
  gap: 1rem;
  align-items: center;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.carousel-progress {
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.carousel-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.story-grid {
  display: grid;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 10vw, 8rem);
}

.story-copy {
  color: var(--muted);
}

.story-copy p {
  margin: 0 0 1.3rem;
}

.story-copy .lead {
  color: #d9e4ea;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.45;
}

.story-copy em {
  color: var(--gold-soft);
  font-style: normal;
}

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

.coordinates article {
  display: grid;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
}

.coordinate-number {
  padding-top: 0.2rem;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.coordinates h3 {
  margin: 0 0 0.35rem;
  color: var(--paper);
  font-size: 1.02rem;
  letter-spacing: 0.07em;
}

.coordinates p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trailer-intro {
  display: grid;
  margin-bottom: 3.2rem;
  grid-template-columns: 1fr 0.6fr;
  gap: 2rem;
  align-items: end;
}

.trailer-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.2rem;
}

.trailer-intro p:last-child {
  max-width: 25rem;
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.trailer-screen {
  position: relative;
  min-height: min(58vw, 42rem);
  overflow: hidden;
  border: 1px solid rgba(121, 204, 242, 0.3);
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.12), rgba(5, 10, 18, 0.8)),
    radial-gradient(
      circle at 50% 56%,
      rgba(109, 194, 235, 0.32),
      transparent 18%
    ),
    url('assets/sixty-year-mission-poster.jpg') 50% 33% / cover;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
}

.trailer-screen::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(
    90deg,
    rgba(5, 10, 18, 0.38),
    transparent 42%,
    rgba(5, 10, 18, 0.38)
  );
}

.screen-header,
.screen-footer {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #d3e7f1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.screen-header {
  top: 1.2rem;
}

.screen-footer {
  bottom: 1.2rem;
}

.screen-status::before {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  content: '';
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  border: 0;
  place-items: center;
  gap: 1rem;
  color: var(--paper);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.trailer-play-ring {
  display: grid;
  width: clamp(5rem, 9vw, 7.5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  place-items: center;
  background: rgba(5, 10, 18, 0.44);
  backdrop-filter: blur(6px);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.trailer-play:hover .trailer-play-ring {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.06);
}

.trailer-play-ring .play-icon {
  margin-left: 0.35rem;
  transform: scale(1.35);
}

.horizon {
  position: absolute;
  left: 15%;
  bottom: 7%;
  z-index: 1;
  width: 70%;
  height: 18%;
  border-top: 1px solid rgba(121, 204, 242, 0.28);
  border-radius: 50%;
  filter: drop-shadow(0 -4px 12px rgba(121, 204, 242, 0.24));
}

.crew-grid {
  display: grid;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.crew-profile {
  position: relative;
  display: grid;
  min-height: 28rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  grid-template-rows: auto 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(145deg, rgba(121, 204, 242, 0.07), transparent 45%),
    rgba(9, 21, 36, 0.94);
}

.crew-profile::after {
  position: absolute;
  right: -4.5rem;
  bottom: -4.5rem;
  width: 12rem;
  aspect-ratio: 1;
  border: 1px solid rgba(121, 204, 242, 0.1);
  border-radius: 50%;
  content: '';
  box-shadow:
    0 0 0 2rem rgba(121, 204, 242, 0.025),
    0 0 0 4rem rgba(121, 204, 242, 0.015);
}

.profile-id {
  position: relative;
  z-index: 1;
  display: grid;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  color: #6f8b9d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-id strong {
  display: grid;
  width: 3.1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 201, 40, 0.55);
  place-items: center;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.profile-id span:last-child {
  justify-self: end;
}

.profile-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.profile-role {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.profile-copy h3 {
  margin: 0 0 1.4rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.profile-copy > p:last-child {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-copy em {
  color: #dbe8ed;
  font-style: normal;
}

.connect {
  padding-bottom: clamp(7rem, 12vw, 11rem);
}

.connect-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgba(246, 201, 40, 0.34);
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 9vw, 8rem);
  background:
    linear-gradient(120deg, rgba(246, 201, 40, 0.08), transparent 38%),
    rgba(10, 24, 41, 0.78);
}

.connect-panel::after {
  position: absolute;
  top: -50%;
  right: -12%;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(121, 204, 242, 0.11);
  border-radius: 50%;
  content: '';
  box-shadow:
    0 0 0 4rem rgba(121, 204, 242, 0.035),
    0 0 0 8rem rgba(121, 204, 242, 0.025);
}

.connect-panel > * {
  position: relative;
  z-index: 1;
}

.connect-panel h2 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.connect-panel > div > p:last-child {
  max-width: 35rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
}

.social-links {
  border-top: 1px solid var(--line);
}

.social-links a {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  color: #d7e2e7;
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    padding 180ms ease,
    color 180ms ease;
}

.social-links a:hover {
  padding-left: 0.65rem;
  color: var(--gold);
}

.site-footer {
  display: grid;
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 2.25rem 0 3rem;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  color: #637d90;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.brand-footer {
  justify-self: start;
  transform: scale(0.86);
  transform-origin: left center;
}

.site-footer > p:nth-child(2) {
  color: var(--gold);
}

.copyright {
  justify-self: end;
}

.trailer-dialog {
  width: min(90vw, 64rem);
  padding: 0;
  border: 1px solid rgba(121, 204, 242, 0.4);
  color: var(--paper);
  background: #07111e;
  box-shadow: 0 2rem 8rem #000;
}

.trailer-dialog::backdrop {
  background: rgba(1, 4, 9, 0.88);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  position: relative;
  min-height: min(56vw, 36rem);
  padding: 1.3rem;
  background:
    linear-gradient(rgba(4, 11, 19, 0.35), rgba(4, 11, 19, 0.9)),
    url('assets/sixty-year-mission-poster.jpg') 50% 35% / cover;
}

.dialog-shell::before {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: '';
  pointer-events: none;
}

.dialog-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(3, 8, 14, 0.68);
  cursor: pointer;
}

.dialog-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-readout {
  position: relative;
  z-index: 1;
  display: flex;
  padding-right: 4rem;
  justify-content: space-between;
  color: #c3d7e2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dialog-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: calc(100% - 3rem);
  text-align: center;
  transform: translate(-50%, -45%);
}

.dialog-placeholder .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
}

.dialog-placeholder h2 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 6rem);
}

.dialog-placeholder > p:last-child {
  margin: 0.8rem 0 0;
  color: #b0c0ca;
}

.dialog-pulse {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(246, 201, 40, 0.5);
  animation: pulse 1.8s infinite;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes twinkle {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.85;
  }
}

@keyframes signal {
  50% {
    opacity: 0.32;
  }
}

@keyframes scan {
  from {
    top: 0.55rem;
  }
  to {
    top: calc(100% - 0.7rem);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 1.2rem rgba(246, 201, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 201, 40, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 6rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 32;
    display: block;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid var(--line);
    color: var(--paper);
    background: rgba(5, 10, 18, 0.8);
  }

  .menu-toggle > span:not(.sr-only) {
    position: absolute;
    top: calc(50% - 3px);
    left: 50%;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition:
      transform 180ms ease,
      top 180ms ease;
  }

  .menu-toggle > span:nth-child(2) {
    top: calc(50% + 4px);
  }

  .menu-toggle[aria-expanded='true'] > span:first-child {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] > span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 31;
    display: grid;
    padding: 8rem 2rem 4rem;
    align-content: center;
    justify-items: center;
    gap: 1.6rem;
    visibility: hidden;
    opacity: 0;
    background: rgba(5, 10, 18, 0.97);
    transition:
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .site-nav a {
    font-size: 1rem;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 9rem;
    grid-template-columns: 1fr 0.72fr;
    gap: 2rem;
  }

  h1 {
    font-size: clamp(4rem, 11vw, 6.2rem);
  }

  .scroll-cue {
    display: none;
  }

  .story-grid,
  .story-intro,
  .crew-grid,
  .connect-panel {
    grid-template-columns: 1fr;
  }

  .story-intro {
    gap: 0;
  }

  .story-intro .section-heading h2 {
    max-width: 11ch;
  }

  .story-carousel {
    width: 100%;
    padding-top: 3.5rem;
    justify-self: start;
  }

  .crew-profile {
    min-height: 24rem;
  }

  .story-grid {
    gap: 2.5rem;
  }

  .trailer-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .hero {
    padding-top: 8.7rem;
    padding-bottom: 5rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  h1 {
    font-size: clamp(4.1rem, 22vw, 6.1rem);
  }

  .hero-intro {
    max-width: 34rem;
  }

  .mission-readout {
    gap: 1.8rem;
  }

  .poster-wrap {
    width: min(84vw, 25rem);
    margin-top: 2rem;
  }

  .section-number {
    top: 3.5rem;
  }

  .section {
    padding: 6rem 0;
  }

  .coordinates article {
    grid-template-columns: 2.5rem 1fr;
  }

  .crew-profile {
    min-height: 0;
    padding: 1.6rem 1.4rem 2rem;
    gap: 3.5rem;
  }

  .profile-id {
    grid-template-columns: 1fr auto;
  }

  .profile-id strong {
    display: none;
  }

  .trailer-screen {
    min-height: 68vw;
  }

  .screen-footer span:last-child,
  .screen-header span:first-child {
    display: none;
  }

  .screen-header,
  .screen-footer {
    justify-content: flex-end;
  }

  .connect-panel {
    padding: 2rem 1.4rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .copyright {
    justify-self: start;
  }

  .dialog-shell {
    min-height: 72vw;
  }
}

@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;
  }
}
