:root {
  color-scheme: dark;
  --page: #0b1018;
  --panel: #111a26;
  --ink: #f0f5fc;
  --muted: #aab9cc;
  --accent: #b6e6ff;
  --line: #ffffff21;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus { position: absolute; z-index: 4; left: 18px; top: 16px; padding: 8px 12px; background: var(--page); }
.shell { max-width: 1264px; width: calc(100% - 2 * clamp(16px, 5vw, 72px)); margin-inline: auto; }

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { position: absolute; z-index: 3; inset: 0 0 auto; min-height: 76px; }
.site-header a, .site-footer a { text-decoration: none; }
.wordmark { font-weight: 650; letter-spacing: -.025em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 38px); }
.site-header nav a, .site-footer { color: #d3deec; font-size: .9rem; }
.site-header nav a:hover, .site-footer a:hover { color: var(--ink); }

.snap-section {
  min-height: 100svh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero {
  isolation: isolate;
  display: grid;
  position: relative;
  overflow: hidden;
  background: #101a2a;
}
.hero-layout {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 25px;
  padding-block: clamp(84px, 12svh, 125px) clamp(20px, 4svh, 44px);
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: 54% 50%; }
.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #080d17f0, #0b1421bf 27%, #0b142131 57%, transparent 75%),
    linear-gradient(0deg, #080e17c7, transparent 37%),
    linear-gradient(180deg, #080e1780, transparent 19%);
}
.hero-content { max-width: 620px; }
.eyebrow {
  color: var(--accent);
  font-size: .84rem;
  line-height: 1.4;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .105em;
}
.eyebrow span { margin-inline: 5px; }
h1 { margin-top: 16px; font-size: clamp(3.55rem, 8.6vw, 8.1rem); line-height: .89; letter-spacing: -.078em; font-weight: 620; }
.hero-objective { max-width: 40ch; margin-top: clamp(16px, 3svh, 28px); color: var(--ink); font-size: clamp(1.05rem, 1.65vw, 1.28rem); font-weight: 600; line-height: 1.48; }
.hero-summary { max-width: 43ch; margin-top: 10px; color: #cdd9e7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 3svh, 28px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.button.primary { color: #0a1623; background: #dcf2ff; }
.button.primary:hover { background: white; }
.button.secondary { border-color: #e0edff57; background: #0d1626ba; }
.button.secondary:hover { border-color: #e0edffc2; background: #1a2a40; }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; color: #e0eaf4; font-size: .84rem; }
.hero-partners { font-weight: 600; }
.hero-credit { color: #d3deec; font-size: .78rem; }

.case-section { display: grid; align-content: center; padding-block: clamp(24px, 5svh, 55px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 16px 32px; margin-bottom: 23px; }
.section-heading p, .validation-copy p { color: var(--muted); max-width: 46ch; }
h2 { font-size: clamp(2.15rem, 5.1vw, 4.1rem); line-height: 1.01; letter-spacing: -.06em; font-weight: 620; }
h3 { font-size: clamp(1.28rem, 2vw, 1.65rem); line-height: 1.18; letter-spacing: -.03em; font-weight: 650; }

.payload-viewport {
  --payload-info-position: left;
  position: relative;
  height: clamp(410px, 65svh, 620px);
  overflow: clip;
  background: radial-gradient(ellipse 52% 50% at center, #1a2a3ea6, transparent);
}
.payload-viewport canvas, .payload-leaders, .payload-hotspots { position: absolute; inset: 0; width: 100%; height: 100%; }
.payload-viewport canvas { display: block; touch-action: pan-y; cursor: grab; }
.payload-viewport canvas:active { cursor: grabbing; }
.payload-leaders, .payload-hotspots { pointer-events: none; }
.payload-leaders :is(line, path) { stroke: #b6e6ffc4; stroke-width: 1; fill: none; }
.payload-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
}
.payload-hotspot::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #132235;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #b6e6ffa6, 0 2px 6px #050912c4;
}
.payload-hotspot:is(:hover, :focus-visible, [aria-pressed="true"]) { z-index: 1; }
.payload-hotspot:focus-visible { outline: none; }
.payload-hotspot:focus-visible::before { outline: 2px solid var(--ink); outline-offset: 3px; }
.payload-hotspot[aria-pressed="true"]::before {
  box-shadow: 0 0 0 2px #132235, 0 0 0 4px var(--accent), 0 0 13px #b6e6ff66;
}
.hotspot-label {
  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(50% + 15px);
  width: max-content;
  max-width: 188px;
  padding: 5px 8px;
  transform: translateX(-50%);
  border: 1px solid #8bc3e46b;
  border-radius: 6px;
  background: #101f30f5;
  color: #eef7ff;
  font-size: .81rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  visibility: hidden;
  pointer-events: none;
}
.payload-hotspot[data-label-edge="left"] .hotspot-label { inset-inline-start: 0; transform: none; }
.payload-hotspot[data-label-edge="right"] .hotspot-label { inset-inline: auto 0; transform: none; }
.payload-hotspot[data-label-below] .hotspot-label { top: calc(50% + 15px); bottom: auto; }
.payload-hotspot:not([aria-pressed="true"]):focus-visible .hotspot-label { visibility: visible; }
@media (hover: hover) {
  .payload-hotspot:hover::before { background: #ecf8ff; }
  .payload-hotspot:not([aria-pressed="true"]):hover .hotspot-label { visibility: visible; }
}

.payload-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.stage-hint { color: var(--muted); font-size: .84rem; }
.stage-toolbar, .stage-zoom { display: flex; align-items: center; gap: 10px; }
.stage-toolbar .button { padding-inline: 12px; }
.payload-text-control {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: .91rem;
  text-underline-offset: .22em;
}
.payload-text-control:hover { text-decoration: underline; }
.stage-zoom { justify-self: end; gap: 4px; }
.stage-zoom button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 5px;
  border: 1px solid #e0edff4c;
  border-radius: 6px;
  background: #0e1828de;
  font-size: 1.2rem;
  line-height: 1;
}
.stage-zoom button:hover { background: #243951; }
.is-loading .stage-zoom { opacity: .6; }
.payload-details {
  position: absolute;
  z-index: 2;
  inset-inline-start: clamp(8px, 2vw, 26px);
  top: 50%;
  width: clamp(260px, 28vw, 310px);
  max-height: calc(100% - 16px);
  overflow: auto;
  padding: 16px 18px 10px;
  transform: translateY(-50%);
  border-radius: 12px;
  background: #142131f5;
  box-shadow: 0 12px 30px #040a1659;
}
.payload-details .eyebrow { font-size: .75rem; }
.payload-details h3 { margin-top: 5px; }
.payload-details [data-payload-detail-description] { margin-top: 8px; color: #bfccdc; font-size: .94rem; line-height: 1.48; }
.payload-back { min-height: 40px; margin-top: 4px; white-space: nowrap; }
.model-credit { margin-top: 16px; color: var(--muted); font-size: .84rem; }

.payload-fallback, .fallback-components { display: none; }
.payload-fallback img { width: min(100%, 604px); height: auto; }
.is-fallback .payload-viewport { height: auto; background: none; }
.is-fallback .payload-fallback { display: grid; justify-items: center; }
.is-fallback .payload-details { position: relative; inset: auto; width: min(100%, 604px); max-height: none; margin: 16px auto 0; transform: none; }
.is-fallback .fallback-components { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 7px; margin-top: 16px; }
.is-fallback :is(canvas, .payload-leaders, .payload-hotspots, .payload-controls) { display: none; }
.fallback-components button, .film-selector button {
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #172433;
  color: #cbd9e9;
  font-size: .89rem;
  line-height: 1.32;
  text-align: left;
}
.fallback-components button:hover, .film-selector button:hover { background: #203449; }
.fallback-components button[aria-pressed="true"], .film-selector button[aria-pressed="true"] { color: #edf8ff; background: #244565; border-color: #7abce7; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 35px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; padding-top: 17px; border-top: 1px solid #7796b04f; }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.timeline-card figure { aspect-ratio: 1.85; overflow: hidden; background: #152335; }
.timeline-card img { width: 100%; height: 100%; object-fit: cover; }
.timeline-card .launch-image { background: linear-gradient(110deg, #16283d, #375880 51%, #16283d); }
.timeline-card .launch-image img { object-fit: contain; }
.timeline-card .engineering-image { background: #e7eef4; }
.timeline-card .engineering-image img { object-fit: contain; }
.timeline-copy { padding: clamp(16px, 2.35vw, 26px); }
.timeline-copy h3 { margin: 9px 0 10px; }
.timeline-copy p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-block; margin-top: 16px; font-size: .91rem; font-weight: 650; color: var(--accent); text-underline-offset: .24em; }
.text-link:hover { color: white; }

.validation { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); align-items: center; gap: clamp(26px, 5.5vw, 80px); }
.validation figure img { width: 100%; height: auto; border-radius: 13px; }
.validation figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.validation-copy p { margin-top: 15px; }
.references { margin-top: 54px; border-block: 1px solid var(--line); }
.references summary { cursor: pointer; padding: 17px 0; font-weight: 620; }
.reference-copy { max-width: 78ch; padding: 0 0 17px; color: var(--muted); }
.reference-copy p + p { margin-top: 12px; }
.reference-copy a, .film-credit a { color: var(--accent); text-underline-offset: .18em; }
.site-footer { min-height: 68px; }

.film-dialog {
  width: min(880px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: clamp(12px, 2.5vw, 25px);
  border: 1px solid #ffffff3b;
  border-radius: 15px;
  background: #101924;
  color: var(--ink);
  box-shadow: 0 24px 100px #000b;
}
.film-dialog::backdrop { background: #050910df; }
:root:has(.film-dialog[open]) { overflow: hidden; scroll-snap-type: none; }
.film-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.film-header h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.film-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 7px; background: #172433; font-size: 1.45rem; line-height: 1; }
.film-selector { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.film-selector button { min-height: 36px; }
.film-dialog video { width: 100%; aspect-ratio: 16 / 9; max-height: 65dvh; border-radius: 9px; background: #04070b; }
.film-credit, .film-error { margin-top: 10px; color: var(--muted); font-size: .9rem; }

@media (max-width: 840px) {
  .timeline { gap: 11px; }
  .timeline-copy { padding: 15px; }
}

@media (max-width: 760px) {
  .payload-viewport { --payload-info-position: top; }
  .payload-details {
    inset-inline: 5px;
    top: 5px;
    width: auto;
    padding: 12px 14px;
    transform: none;
  }
  .payload-details .eyebrow { min-height: 21px; padding-inline-end: 105px; }
  .payload-details h3 { margin-top: 3px; }
  .payload-details [data-payload-detail-description] { margin-top: 5px; }
  .payload-back { position: absolute; top: 2px; inset-inline-end: 14px; margin-top: 0; font-size: .84rem; }
}

@media (max-width: 680px) {
  .site-header { min-height: 62px; }
  .site-header .wordmark { font-size: .92rem; line-height: 1.2; }
  .site-header nav { justify-content: flex-end; gap: 5px clamp(8px, 3vw, 16px); }
  .site-header nav a { font-size: .82rem; white-space: nowrap; }
  .hero-layout { align-items: end; gap: 16px; padding-block-start: 72px; }
  .hero-image { object-position: 48% 40%; }
  .hero::after { background: linear-gradient(0deg, #080f1af7 6%, #0b1421e8 34%, #0b14216b 66%, #080e1759 100%); }
  h1 { font-size: clamp(2.35rem, 12vw, 5.2rem); }
  .hero-objective { max-width: 36ch; }
  .hero-summary { font-size: .94rem; }
  .hero-footer { font-size: .78rem; }
  .hero-credit { font-size: .74rem; }
  .section-heading, .validation { grid-template-columns: minmax(0, 1fr); }
  .payload-viewport { height: clamp(340px, 100vw, 445px); }
  .payload-controls { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .stage-toolbar { flex-wrap: wrap; }
  .stage-hint { grid-column: 1 / -1; grid-row: 2; }
  .section-heading { gap: 10px; margin-bottom: 12px; }
  #timeline { padding-block: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 9px; margin-top: 4px; }
  .timeline li { padding: 0 0 0 12px; border-left: 1px solid #7796b04f; border-top: 0; }
  .timeline li::before { top: 16px; left: -4px; }
  .timeline-card { display: grid; grid-template-columns: clamp(64px, 20vw, 135px) minmax(0, 1fr); border-radius: 10px; }
  .timeline-card figure { position: relative; aspect-ratio: auto; }
  .timeline-card img { position: absolute; inset: 0; }
  .timeline-copy { padding: 9px 10px; }
  .timeline-copy .eyebrow { font-size: .72rem; }
  .timeline-copy h3 { margin: 4px 0; font-size: 1.08rem; }
  .timeline-copy p:not(.eyebrow) { font-size: .86rem; line-height: 1.42; }
  .timeline-copy .text-link { margin-top: 5px; font-size: .81rem; }
  .validation-copy { grid-row: 1; }
  .references { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
