/* SKYLEAR — site styles. Tokens live in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--void); color: var(--paper);
  font-family: var(--f-sans); font-size: var(--t-base); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ion); color: var(--void); }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: var(--z-modal); padding: 10px 16px; background: var(--paper); color: var(--void); transform: translateY(-150%); transition: transform var(--d-fast); }
.skip:focus { transform: none; }

.micro { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); line-height: 1.4; }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s5); }
.label span { color: var(--paper); }
.label::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-strong); order: 1; }
.label span + * { order: 2; }
.h-lg { font-size: var(--t-lg); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }

/* type scale */
h1, h2 { font-weight: 400; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--t-xl); }
h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }

/* crosshair grid (ICOMAT) */
.gridmarks {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image:
    linear-gradient(var(--line-strong), var(--line-strong)), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 9px 1px, 1px 9px;
  background-position: calc(var(--gutter) - 4px) 50%, var(--gutter) calc(50% - 4px);
  background-repeat: no-repeat;
  mask-image: linear-gradient(#000, #000);
}
.gridmarks::before, .gridmarks::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-strong), var(--line-strong)), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 9px 1px, 1px 9px; background-repeat: no-repeat;
}
.gridmarks::before { background-position: calc(100% - var(--gutter) + 4px) 50%, calc(100% - var(--gutter)) calc(50% - 4px); }
.gridmarks::after { background-position: 50% calc(100% - 28px), calc(50% + 4px) calc(100% - 32px); }

/* buttons */
.btn {
  --h: 48px; display: inline-flex; align-items: center; gap: 10px; min-height: var(--h); padding: 0 22px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast), transform var(--d-fast);
  white-space: nowrap; touch-action: manipulation;
}
.btn:hover { border-color: var(--paper); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--paper); color: var(--void); border-color: var(--paper); }
.btn--solid:hover { background: var(--ion); border-color: var(--ion); }
.btn--ghost { background: rgba(3, 5, 10, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost[aria-pressed="true"] { background: var(--paper); color: var(--void); }
.btn--lg { --h: 60px; padding: 0 30px; font-size: 13px; }

/* loader */
.loader { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--void); display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity .7s var(--ease-out), visibility .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); transition: transform .3s linear; }
.loader img { animation: pulse 1.6s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--s5); padding: 18px var(--gutter);
  transition: background var(--d-med), backdrop-filter var(--d-med), transform var(--d-med) var(--ease-out), border-color var(--d-med);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand img { height: 18px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); position: relative; padding: 6px 0; transition: color var(--d-fast); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--d-med) var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--paper); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__atlas { color: var(--ion) !important; }
.nav__cta { --h: 40px; }
.nav__menu { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__menu i { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--paper); transition: transform var(--d-med) var(--ease-out); }
.nav__menu i:first-of-type { top: 18px; } .nav__menu i:last-of-type { top: 26px; }
.nav__menu[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1); background: rgba(3, 5, 10, 0.96); backdrop-filter: blur(20px); padding: 100px var(--gutter) 40px; }
.menu nav { display: grid; gap: 4px; }
.menu a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(28px, 8vw, 44px); letter-spacing: -0.03em; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; background: var(--void) url("../assets/video/hero-poster.jpg") center / cover; transform-origin: 60% 45%; will-change: transform; }
/* wide screens: extend the frame to the right so the launch sits beside the headline, not behind it */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .hero__video { inset: 0 auto 0 0; width: 150%; object-position: 50% 50%; } }
/* portrait / narrow: frame higher so the launch rises above the headline */
@media (max-aspect-ratio: 5/4) {
  .hero__video { top: -40%; height: 140%; object-position: 52% 50%; }
}
.hero__vidctl { position: absolute; right: var(--gutter); top: 88px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(3,5,10,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--haze); transition: color var(--d-fast), border-color var(--d-fast); }
.hero__vidctl:hover { color: var(--paper); border-color: var(--paper); }
.hero__vidctl [data-vidicon] { font-size: 9px; letter-spacing: 1px; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,5,10,.62) 0%, rgba(3,5,10,.25) 38%, rgba(3,5,10,0) 60%), linear-gradient(180deg, rgba(3,5,10,.55) 0%, rgba(3,5,10,0) 28%, rgba(3,5,10,0) 55%, rgba(3,5,10,.85) 100%); }
.hero__inner { padding-top: 140px; padding-bottom: clamp(120px, 16vh, 180px); position: relative; }
.hero__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s4); color: var(--haze); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ignition); box-shadow: 0 0 0 4px rgba(255,106,43,.18); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero__title { font-size: var(--t-xxl); font-weight: 300; max-width: 12ch; text-wrap: balance; }
.hero__lede { max-width: 46ch; margin-top: var(--s5); color: var(--haze); text-shadow: 0 1px 14px rgba(3,5,10,.9), 0 0 2px rgba(3,5,10,.6); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
.hud { position: absolute; z-index: 2; display: flex; gap: 22px; }
.hud--bl { left: var(--gutter); bottom: 32px; }
.hud--br { right: var(--gutter); bottom: 32px; gap: 28px; }
.hud--br div { display: flex; align-items: baseline; gap: 8px; }
.hud--br b { color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 12px; }
.hud--br em { font-style: normal; }
.scrollcue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; z-index: 2; }
.scrollcue i { width: 1px; height: 42px; background: linear-gradient(var(--paper), transparent); animation: drip 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* split text reveal */
[data-split] .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
[data-split].is-in .ln > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.js-off [data-reveal], .js-off [data-split] .ln > span { opacity: 1; transform: none; }

/* manifesto */
.manifesto { padding-block: clamp(120px, 18vw, 240px) var(--s8); position: relative; z-index: 2; }
.manifesto__text { font-size: clamp(1.9rem, 1rem + 3.3vw, 4.1rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; font-weight: 300; }
.manifesto__text .w { opacity: .16; transition: opacity .5s; }
.manifesto__text .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.stats > div { padding: var(--s5) var(--s4) var(--s5) 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: var(--s4); }
.stats > div:last-child { border-right: 0; }
.stats dd { display: flex; align-items: baseline; gap: 10px; margin: var(--s4) 0 var(--s3); }
.stats b { font-family: var(--f-wide); font-style: italic; font-weight: 300; font-stretch: 112.5%; font-size: clamp(3rem, 2rem + 3.5vw, 5.5rem); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.stats p { color: var(--mist); font-size: var(--t-sm); max-width: 26ch; }

/* section heads */
section { position: relative; }
.section-head { padding-top: clamp(100px, 14vw, 200px); padding-bottom: var(--s7); position: relative; z-index: 2; }
.section-head h2 { max-width: 16ch; text-wrap: balance; }
.section-head__lede { max-width: 54ch; margin-top: var(--s5); color: var(--haze); font-size: 1.06rem; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); }

/* shared viewer frame */
.corner { position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* fleet */
.fleet__stage { display: grid; grid-template-columns: 1fr 380px; gap: var(--s5); align-items: stretch; }
.fleet__viewer { position: relative; min-height: min(72vh, 720px); background: radial-gradient(ellipse at 50% 60%, #131f36 0%, var(--void) 75%); overflow: hidden; border: 1px solid var(--line); }
.fleet.is-blueprint .fleet__viewer { background: radial-gradient(ellipse at 50% 60%, #0c2552 0%, #030916 75%); }
.fleet__viewer canvas, .engine__viewer canvas, .globe__viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.fleet__viewer canvas:active { cursor: grabbing; }
.fleet__viewer canvas:focus-visible { outline: 1px solid var(--ion); outline-offset: -1px; }
.hotspots, .fleet__dims { position: absolute; inset: 0; pointer-events: none; }
.hs-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-lines line { stroke: rgba(156,200,255,.75); stroke-width: 1; transition: opacity var(--d-fast); }
.hs-dot { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 0 3px rgba(156,200,255,.18), 0 0 10px rgba(156,200,255,.9); transition: opacity var(--d-fast); }
.hs { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; pointer-events: auto; display: grid; place-items: center; background: rgba(3,5,10,.72); border: 1px solid rgba(156,200,255,.7); color: var(--paper); font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; transition: opacity var(--d-fast), background var(--d-fast), color var(--d-fast), border-color var(--d-fast); backdrop-filter: blur(6px); }
.hs::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(156,200,255,.35); animation: ring 2.4s var(--ease-out) infinite; }
.hs[aria-pressed="true"], .hs:hover { background: var(--ion); border-color: var(--ion); color: var(--void); }
.hs.is-back, .hs-dot.is-back, .hs-lines line.is-back { opacity: 0; }
.hs.is-back { pointer-events: none; }
.hs.is-back:focus-visible { opacity: 1; pointer-events: auto; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hs-note { position: absolute; left: 20px; top: 20px; max-width: 320px; padding: 18px 20px; background: rgba(7,11,20,.82); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); z-index: 2; }
.hs-note h4 { font-size: 1.05rem; font-weight: 500; margin: 6px 0 8px; }
.hs-note p:last-child { color: var(--haze); font-size: var(--t-sm); }
.dim { position: absolute; left: 0; top: 0; padding: 3px 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ion); background: rgba(3,5,10,.66); border: 1px solid rgba(156,200,255,.28); white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity var(--d-med); }
.dim i { font-style: normal; color: var(--mist); text-transform: uppercase; margin-right: 6px; letter-spacing: .14em; font-size: 9.5px; }
.dim.is-hidden { opacity: 0; }
.fleet__hud { position: absolute; right: 20px; top: 20px; display: grid; gap: 8px; padding: 12px 14px; min-width: 150px; border-left: 1px solid rgba(156,200,255,.35); background: linear-gradient(90deg, rgba(3,5,10,.55), rgba(3,5,10,0)); pointer-events: none; transition: opacity var(--d-fast); }
.fleet__hud div { display: flex; justify-content: space-between; gap: 18px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.fleet__hud span { color: var(--mist); }
.fleet__hud b { font-weight: 500; color: var(--ion); font-variant-numeric: tabular-nums; }
.fleet__tools { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(3,5,10,.6); backdrop-filter: blur(10px); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.fleet__tools::-webkit-scrollbar { display: none; }
.fleet__tools button { min-width: 44px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--haze); white-space: nowrap; }
.fleet__tools button:hover { color: var(--paper); background: var(--stratos); }
.fleet__tools button svg { display: block; margin: auto; }
.fleet__tools button[aria-pressed="true"] { background: var(--ion); color: var(--void); }
.fleet__spec { border: 1px solid var(--line); padding: var(--s5); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(11,19,34,.6), rgba(3,5,10,0)); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; margin-bottom: var(--s4); }
.tabs button { min-height: 40px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); transition: background var(--d-fast), color var(--d-fast); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--void); }
.spec__name { font-family: var(--f-wide); font-style: italic; font-weight: 300; font-stretch: 112.5%; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); letter-spacing: 0.01em; line-height: 1; margin-top: 6px; }
.spec__tag { color: var(--ion); font-size: var(--t-sm); }
.spec__blurb { color: var(--haze); font-size: .96rem; margin: 8px 0 12px; }
.spec__rows { margin-top: auto; border-top: 1px solid var(--line); }
.spec__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec__rows dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.spec__rows dd { font-variant-numeric: tabular-nums; text-align: right; }

/* propulsion */
.propulsion { overflow: hidden; }
.propulsion__bg { position: absolute; inset: 0 0 auto; height: 110vh; background: url("https://images-assets.nasa.gov/image/09-27-2023-HF-12%20_062/09-27-2023-HF-12%20_062~large.jpg") center / cover; opacity: .22; filter: grayscale(.35) contrast(1.15); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 45%, transparent 90%); }
.engine { display: grid; grid-template-columns: 1fr 360px; gap: var(--s5); position: relative; z-index: 2; }
.engine__viewer { position: relative; min-height: min(64vh, 620px); }
.engine__viewer { background: radial-gradient(ellipse at 50% 60%, #131f36 0%, var(--void) 75%); border: 1px solid var(--line); overflow: hidden; }
.engine__tags { position: absolute; inset: 0; pointer-events: none; }
.engine__tags .eng-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.engine__tags line { stroke: rgba(156,200,255,.7); stroke-width: 1; transition: opacity var(--d-fast); }
.eng-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 0 3px rgba(156,200,255,.16), 0 0 8px rgba(156,200,255,.9); transition: opacity var(--d-fast); }
.eng-tag { position: absolute; left: 0; top: 0; padding: 4px 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); white-space: nowrap; background: rgba(3,5,10,.66); border: 1px solid rgba(156,200,255,.3); backdrop-filter: blur(6px); transition: opacity var(--d-fast); }
.eng-tag.is-hidden, .eng-dot.is-hidden, .engine__tags line.is-hidden { opacity: 0; }
.engine__panel { display: flex; flex-direction: column; gap: var(--s4); }
.engine__readout { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.engine__readout div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.engine__readout div:nth-child(1), .engine__readout div:nth-child(2) { grid-column: span 1; }
.engine__readout div:nth-child(2) { grid-column: 1 / -1; order: -1; }
.engine__readout b { font-weight: 500; font-variant-numeric: tabular-nums; }
.engine__readout [data-eng-mach] { font-family: var(--f-wide); font-style: italic; font-weight: 300; font-stretch: 112.5%; font-size: 3.2rem; line-height: 1; }
.engine__readout [data-eng-mode] { font-size: 1.35rem; color: var(--ion); }
.slider { display: grid; gap: 10px; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #ff8a3d 0 12%, #ff5d6c 12% 22%, #7f8cff 22% 48%, #cfe3ff 48%); }
.slider input::-moz-range-track { height: 2px; background: linear-gradient(90deg, #ff8a3d 0 12%, #ff5d6c 12% 22%, #7f8cff 22% 48%, #cfe3ff 48%); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--paper); border: 5px solid var(--void); box-shadow: 0 0 0 1px var(--paper), 0 0 22px rgba(156,200,255,.6); }
.slider input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 5px solid var(--void); box-shadow: 0 0 0 1px var(--paper); }
.slider__scale { position: relative; height: 14px; }
.slider__scale i { position: absolute; font-style: normal; transform: translateX(-50%); }
.slider__scale i:nth-child(1) { left: 0; transform: none; } .slider__scale i:nth-child(2) { left: 12%; } .slider__scale i:nth-child(3) { left: 22%; } .slider__scale i:nth-child(4) { left: 48%; } .slider__scale i:nth-child(5) { right: 0; left: auto; transform: none; }
.modes { display: grid; border-top: 1px solid var(--line); }
.modes button { width: 100%; display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--mist); transition: color var(--d-fast), padding var(--d-med) var(--ease-out); min-height: 48px; }
.modes .micro { width: 76px; flex: none; }
.modes li.is-active button { color: var(--paper); padding-left: 12px; }
.modes li.is-active .micro { color: var(--ion); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--s8); border-top: 1px solid var(--line); position: relative; z-index: 2; }
.tech-grid article { padding: var(--s5) var(--s4) var(--s6) 0; border-right: 1px solid var(--line); }
.tech-grid article + article { padding-left: var(--s4); }
.tech-grid article:last-child { border-right: 0; }
.tech-grid h3 { font-size: 1.2rem; margin: var(--s4) 0 10px; max-width: 16ch; }
.tech-grid p:last-child { color: var(--mist); font-size: var(--t-sm); }

.bleed { position: relative; margin-top: var(--s8); height: min(86vh, 860px); overflow: hidden; }
.bleed img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(.25) contrast(1.08) brightness(.85); will-change: transform; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--void), transparent 22%, transparent 70%, var(--void)); }
.bleed figcaption { position: absolute; left: var(--gutter); bottom: 32px; z-index: 2; }

/* foundry — horizontal rail */
.foundry__track { position: relative; }
.foundry__rail { display: flex; gap: var(--s4); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.step { width: clamp(300px, 30vw, 440px); flex: none; display: flex; flex-direction: column; gap: 10px; }
.step figure { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: var(--s3); position: relative; background: var(--deep); }
.step figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(3,5,10,.6)); }
.step img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); transition: transform 1.2s var(--ease-out), filter var(--d-med); }
.step:hover img { transform: scale(1.05); filter: none; }
.step h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.step > p:not(.micro) { color: var(--mist); font-size: .95rem; max-width: 38ch; }
.step__metric { font-family: var(--f-wide); font-style: italic; font-weight: 300; font-stretch: 112.5%; font-size: 2rem; margin-top: 8px; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.facility { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--s8); border-top: 1px solid var(--line); }
.facility div { padding: var(--s5) var(--s4) 0 0; display: grid; gap: 8px; }
.facility b { font-size: var(--t-lg); font-weight: 400; letter-spacing: -0.02em; }
.facility span { color: var(--mist); font-size: var(--t-sm); }

/* missions */
.mission-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.mcard { border: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.mcard figure { aspect-ratio: 16 / 11; overflow: hidden; }
.mcard img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform 1.2s var(--ease-out), filter var(--d-med); }
.mcard:hover img { transform: scale(1.04); filter: none; }
.mcard__body { padding: var(--s4); display: grid; gap: 12px; }
.mcard h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; }
.mcard li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--haze); font-size: var(--t-sm); display: flex; gap: 10px; }
.mcard li::before { content: "+"; color: var(--ion); font-family: var(--f-mono); }

.globe { display: grid; grid-template-columns: 420px 1fr; gap: var(--s6); align-items: center; margin-top: clamp(100px, 12vw, 180px); }
.globe__copy > p:not(.micro):not(.label) { color: var(--haze); margin: var(--s4) 0; }
.globe__form { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; margin: var(--s4) 0; }
.globe__form label { display: grid; gap: 6px; }
.globe__form select { appearance: none; width: 100%; min-height: 48px; padding: 0 36px 0 14px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b8c4d6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 15px; }
.swap { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 18px; }
.swap:hover { border-color: var(--paper); }
.globe__out { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; border-top: 1px solid var(--line); }
.globe__out div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.globe__out dd { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.globe__out .is-sky dd { color: var(--ion); }
.globe__bar { --p: .1; height: 4px; background: var(--stratos); margin-top: var(--s4); position: relative; }
.globe__bar span { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--ion); transition: width .8s var(--ease-out); }
.globe__x { margin-top: 10px; } .globe__x b { color: var(--paper); font-size: 14px; }
.globe__viewer { position: relative; aspect-ratio: 1; max-height: 640px; max-width: 640px; width: 100%; justify-self: center; }

/* atlas teaser */
.atlas { margin-top: clamp(120px, 14vw, 220px); min-height: 110vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.atlas__bg { position: absolute; inset: -10% 0; z-index: -1; background: url("https://images-assets.nasa.gov/image/iss066e146457/iss066e146457~large.jpg") center / cover; filter: saturate(.9) brightness(.7); }
.atlas::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(3,5,10,.2), rgba(3,5,10,.85) 70%), linear-gradient(180deg, var(--void), transparent 20%, transparent 80%, var(--void)); }
.atlas__title { font-size: var(--t-xxl); font-weight: 300; }
.atlas__lede { max-width: 50ch; color: var(--haze); margin: var(--s5) 0; font-size: 1.08rem; }
.atlas__scales { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s6); }
.atlas__scales li { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--haze); background: rgba(3,5,10,.4); backdrop-filter: blur(6px); }
.atlas__scales li::before { content: counter(s, decimal-leading-zero) " "; counter-increment: s; color: var(--ion); }
.atlas__scales { counter-reset: s; }

/* ecosystem */
.eco__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.eco__col { padding: var(--s5) var(--s4) var(--s5) 0; border-right: 1px solid var(--line); }
.eco__col + .eco__col { padding-left: var(--s4); }
.eco__col:last-child { border-right: 0; }
.eco__col ul { margin-top: var(--s4); display: grid; }
.eco__col li { font-size: clamp(1.05rem, .9rem + .5vw, 1.4rem); letter-spacing: -0.015em; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--haze); transition: color var(--d-fast), padding var(--d-med) var(--ease-out); }
.eco__col li:hover { color: var(--paper); padding-left: 8px; }
.eco__note { margin-top: var(--s4); max-width: 70ch; }
.marquee { overflow: hidden; margin-top: var(--s8); border-block: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--f-wide); font-style: italic; font-weight: 300; font-stretch: 112.5%; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); white-space: nowrap; color: var(--paper); }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--mist); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* journal */
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.post { display: grid; gap: 12px; }
.post figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post:hover img { transform: scale(1.04); }
.post h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; max-width: 30ch; }

/* careers */
.careers { margin-top: clamp(120px, 14vw, 220px); padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; isolation: isolate; }
.careers__bg { position: absolute; inset: -10% 0; z-index: -1; background: url("https://images-assets.nasa.gov/image/KSC-20260616-PH-FMX01_0034/KSC-20260616-PH-FMX01_0034~large.jpg") center / cover; filter: grayscale(.4) brightness(.45); }
.careers::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--void), rgba(3,5,10,.5) 30%, rgba(3,5,10,.7) 70%, var(--void)); }
.careers__title { font-size: var(--t-xxl); font-weight: 300; margin-bottom: var(--s7); }
.roles { border-top: 1px solid var(--line-strong); }
.roles a { display: grid; grid-template-columns: 1fr auto 40px; gap: var(--s4); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-strong); font-size: clamp(1.1rem, .9rem + .7vw, 1.6rem); letter-spacing: -0.015em; transition: padding var(--d-med) var(--ease-out), background var(--d-med); min-height: 64px; }
.roles a:hover { padding-inline: 16px; background: rgba(238,241,245,.05); }
.roles i { font-style: normal; justify-self: end; transition: transform var(--d-med) var(--ease-out); }
.roles a:hover i { transform: translateX(6px); }

.contact { padding-block: clamp(100px, 12vw, 180px); display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s6); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.contact__grid a { display: grid; gap: 8px; padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; transition: color var(--d-fast); min-height: 44px; overflow-wrap: anywhere; }
.contact__grid a:hover { color: var(--ion); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: var(--s7); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s5); flex-wrap: wrap; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(160px, auto)); gap: var(--s6); }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols a, .footer__cols span { color: var(--haze); font-size: var(--t-sm); }
.footer__cols a:hover { color: var(--paper); }
.footer__mark { margin-top: var(--s8); }
.footer__mark img { width: 100%; height: auto; opacity: .95; }
.footer__legal { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s5); border-top: 1px solid var(--line); margin-top: var(--s5); }

/* responsive */
@media (max-width: 1180px) {
  .nav__links { gap: 18px; }
  .fleet__stage, .engine { grid-template-columns: 1fr; }
  .globe { grid-template-columns: 1fr; }
  .globe__viewer { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .stats, .tech-grid, .facility, .eco__grid { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2n), .tech-grid article:nth-child(2n), .eco__col:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(n+3), .tech-grid article:nth-child(n+3), .eco__col:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats > div:nth-child(3), .tech-grid article:nth-child(3), .eco__col:nth-child(3) { padding-left: 0; }
  .mission-cards, .journal__grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .hud--bl { display: none; }
}
@media (max-width: 767px) {
  .stats, .tech-grid, .facility, .eco__grid, .mission-cards, .journal__grid, .contact__grid, .footer__cols { grid-template-columns: 1fr; }
  .stats > div, .tech-grid article, .eco__col { border-right: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .stats > div:first-child, .tech-grid article:first-child, .eco__col:first-child { border-top: 0; }
  .hud--br { left: var(--gutter); right: auto; gap: 16px; bottom: 84px; }
  .scrollcue { display: none; }
  .hero__inner { padding-bottom: 140px; }
  .fleet__viewer { min-height: min(62vh, 128vw); }
  .engine__viewer { min-height: 48vh; }
  .engine__tags { display: none; }
  .hs-note { left: 12px; right: 12px; top: 12px; max-width: none; }
  .fleet__hud { right: 12px; top: 12px; min-width: 0; padding: 8px 10px; gap: 4px; }
  .fleet__hud div:last-child { display: none; }
  .fleet.has-note .fleet__hud { opacity: 0; }
  .dim { font-size: 9.5px; padding: 2px 6px; }
  .fleet__tools { flex-wrap: wrap; justify-content: center; width: calc(100% - 24px); border-radius: 22px; bottom: 12px; }
  .fleet__tools button { min-width: 40px; min-height: 38px; padding: 0 10px; font-size: 10.5px; }
  .roles a { grid-template-columns: 1fr 24px; }
  .roles a .micro { grid-column: 1; }
  .roles i { grid-row: 1 / span 2; grid-column: 2; }
  .globe__form { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); }
  .foundry__rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .step { width: 82vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], [data-split] .ln > span { opacity: 1 !important; transform: none !important; }
  .manifesto__text .w { opacity: 1; }
  .marquee__track { animation: none; }
}

/* portrait hero: deeper veil behind the text (placed last so it wins over the base veil) */
@media (max-aspect-ratio: 5/4) {
  .hero__veil { background: linear-gradient(180deg, rgba(3,5,10,.45) 0%, rgba(3,5,10,0) 18%, rgba(3,5,10,.15) 32%, rgba(3,5,10,.62) 50%, rgba(3,5,10,.72) 72%, rgba(3,5,10,.9) 100%); }
}
