/* =========================================================
   C.R.E.W — pixel-art editorial landing
   ========================================================= */
:root {
  --ink: #07081a;
  --ink-2: #0d1030;
  --ink-3: #151a45;
  --cream: #efe9da;
  --cream-ink: #12142b;
  --muted: #8a90c0;
  --line: rgba(239, 233, 218, .14);
  --amber: #ffb43d;
  --amber-dark: #b8601c;
  --blue: #2f4bd6;
  --cyan: #3de0ff;
  --green: #5cff8a;
  --red: #ff5470;

  --display: "Silkscreen", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;

  /* Type roles: --display = headings, buttons, numbers · --mono = small labels · --sans = all paragraphs */
  --fs-hero: clamp(3.6rem, 19vw, 23rem);
  --fs-h2: clamp(2.6rem, 8vw, 7.5rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.4rem);
  --fs-lead: clamp(1.9rem, 4.8vw, 4.6rem);
  --fs-body-lg: 20px;
  --fs-body: 18px;
  --fs-label: 12px;

  --gutter: clamp(16px, 4vw, 56px);
  --px: 4px;
  --notch: polygon(var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)), 0 var(--px), var(--px) var(--px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; }
img, canvas, svg { image-rendering: pixelated; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); }
.amber { color: var(--amber); }
.sprite { display: inline-block; line-height: 0; }
.sprite svg { display: block; shape-rendering: crispEdges; }

.label { display: flex; gap: .75em; align-items: center; margin-bottom: 2.5rem; color: var(--muted); }
.label span { color: var(--amber); }
.big {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

/* ---------- Buttons: pixel-art game buttons ----------
   Stepped corners come from four edge shadows (no clip-path, so no corner gaps),
   inner highlight/shade rows give the bevel, and a hard drop "base" gives depth. */
.btn {
  --b: 4px;                 /* pixel size */
  --face: transparent; --fg: var(--cream); --edge: var(--cream);
  --hi: transparent; --lo: transparent; --drop: transparent; --depth: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0; white-space: nowrap;
  padding: 16px 24px; margin: var(--b);
  color: var(--fg); background: var(--face); text-decoration: none;
  box-shadow:
    0 calc(var(--b) * -1) 0 0 var(--edge),
    0 var(--b) 0 0 var(--edge),
    calc(var(--b) * -1) 0 0 0 var(--edge),
    var(--b) 0 0 0 var(--edge),
    inset 0 var(--b) 0 0 var(--hi),
    inset 0 calc(var(--b) * -1) 0 0 var(--lo),
    0 calc(var(--b) + var(--depth)) 0 0 var(--drop);
  transition: translate .1s steps(2), background-color .12s steps(2), color .12s steps(2);
}
.btn:hover { --face: var(--cream); --fg: var(--ink); }
.btn:focus-visible { outline: 3px dashed var(--amber); outline-offset: 10px; }

.btn--amber { --face: var(--amber); --edge: var(--amber); --fg: var(--ink); --hi: #ffd68a; --lo: #e8952a; --drop: var(--amber-dark); --depth: 6px; }
.btn--amber:hover { --face: #ffc35c; --edge: #ffc35c; --fg: var(--ink); --depth: 9px; translate: 0 -3px; }
.btn--amber:active { --depth: 2px; translate: 0 4px; }

.btn--sm { --b: 3px; font-size: 11px; padding: 10px 14px; }
.btn--sm.btn--amber { --depth: 3px; }
.btn--sm.btn--amber:hover { --depth: 5px; translate: 0 -2px; }

/* Primary CTA */
.btn--xl { --b: 6px; font-size: clamp(16px, 1.5vw, 20px); padding: clamp(20px, 1.8vw, 24px) clamp(28px, 2.8vw, 40px); gap: 16px; }
.btn--xl.btn--amber { --depth: 8px; }
.btn--xl.btn--amber:hover { --depth: 12px; translate: 0 -4px; }
.btn--xl.btn--amber:active { --depth: 2px; translate: 0 6px; }
.btn__icon { display: inline-block; }
.btn:hover .btn__icon { animation: nudge .5s steps(2) infinite; }

/* ---------- Loader + transition ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--ink); display: none; place-items: center; }
html.js.is-loading .loader { display: grid; }
html.js.is-loading body { overflow: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 20px; padding: 16px; }
.loader__sat { animation: hover 1.2s steps(2) infinite; margin-bottom: 12px; }
.loader__label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.loader__bar { display: flex; gap: 4px; }
.loader__bar i { width: clamp(8px, 2.6vw, 14px); height: 22px; background: var(--ink-3); }
.loader__bar i.on { background: var(--amber); }
.loader__pct { font-family: var(--display); font-size: 40px; color: var(--cream); }

.pixel-wipe { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; display: none; }
html.js.is-loading .pixel-wipe { display: block; width: 100vw; height: 100vh; background: var(--ink); }

.scanlines {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .07) 2px 3px);
  mix-blend-mode: multiply;
}

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor__box {
  position: absolute; left: 0; top: 0;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--ink);
  display: grid; place-items: center;
  transition: width .24s steps(4), height .24s steps(4), background .15s steps(2), border-color .15s;
}
.cursor.is-link .cursor__box { width: 34px; height: 34px; border-color: var(--amber); }
.cursor.is-active .cursor__box { width: 92px; height: 92px; background: var(--amber); border-color: var(--ink); }
.cursor__label { font-family: var(--display); font-size: 13px; color: var(--ink); opacity: 0; white-space: nowrap; }
.cursor.is-active .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 8, 26, .92), rgba(7, 8, 26, .6));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--cream); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.nav__clock { color: var(--muted); }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__clock { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 92px var(--gutter) 64px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(ellipse at 50% 40%, #182064 0%, var(--ink) 65%);
  background-blend-mode: soft-light, soft-light, normal;
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__meta {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted);
}
.hero__status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.dot { width: 8px; height: 8px; background: currentColor; display: inline-block; animation: blink 1s steps(1) infinite; }

.hero__art {
  position: absolute; z-index: 1; left: 50%; top: 46%;
  width: min(72vh, 90vw); aspect-ratio: 1;
  translate: -50% -50%;
}
.hero__art-in, .hero__art-mouse { position: absolute; inset: 0; }
.planet { position: absolute; inset: 14%; width: 72%; height: 72%; filter: drop-shadow(0 0 40px rgba(61, 224, 255, .25)); }
.planet__tag { position: absolute; z-index: 2; pointer-events: none; }
.planet__tag-line { position: absolute; left: 4px; bottom: 4px; width: clamp(40px, 7vw, 90px); height: 2px; background: var(--amber); transform-origin: left; rotate: -145deg; }
.planet__tag-box {
  position: absolute; right: clamp(28px, 5.4vw, 70px); bottom: clamp(26px, 4.4vw, 54px); white-space: nowrap;
  padding: 6px 10px; background: var(--ink); color: var(--muted);
  box-shadow: 0 -2px 0 0 var(--amber), 0 2px 0 0 var(--amber), -2px 0 0 0 var(--amber), 2px 0 0 0 var(--amber);
}
.planet__tag-box b { color: var(--amber); font-weight: 700; margin-right: 6px; }
@media (max-width: 760px) {
  .planet__tag-line { width: 30px; rotate: -90deg; left: 0; }
  .planet__tag-box { right: auto; left: -24px; bottom: 34px; padding: 4px 8px; }
}
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 2px dotted rgba(239, 233, 218, .18); animation: spin 18s linear infinite; }
.orbit--b { inset: -14%; border-style: dashed; border-color: rgba(255, 180, 61, .14); animation-duration: 40s; animation-direction: reverse; }
.orbit__sat { position: absolute; top: 0; left: 50%; translate: -50% -50%; animation: spin 18s linear infinite reverse; }
.orbit__dot { position: absolute; bottom: 14%; left: 4%; width: 8px; height: 8px; background: var(--amber); }

.hero__title {
  position: relative; z-index: 2;
  margin-top: auto;
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-hero);
  line-height: .82;
  letter-spacing: -.03em;
  text-align: center;
  color: var(--cream);
  text-shadow: .045em .045em 0 var(--blue);
  white-space: nowrap;
}
.hero__title .m { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .05em .08em 0; margin-right: -.05em; }
.hero__title .c { display: inline-block; }
.hero__title .c--dot { color: var(--amber); text-shadow: .045em .045em 0 var(--amber-dark); }

.hero__bottom {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line);
}
.hero__sub { display: grid; font-family: var(--sans); font-size: var(--fs-body-lg); line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.hero__scroll { justify-self: end; text-decoration: none; color: var(--muted); display: inline-flex; gap: 8px; }
.hero__scroll span { display: inline-block; animation: hover 1s steps(2) infinite; }
@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__scroll { justify-self: center; }
  .hero__art { top: 42%; }
}

/* ---------- Briefing (cream) ---------- */
.briefing {
  position: relative;
  background: var(--cream); color: var(--cream-ink);
  padding: clamp(96px, 14vw, 180px) 0;
}
.briefing::before, .briefing::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px;
  background: repeating-conic-gradient(var(--cream) 0 25%, transparent 0 50%) 0 0 / 24px 24px;
}
.briefing::before { top: -12px; }
.briefing::after { bottom: -12px; rotate: 180deg; }
.briefing .label { color: #6a6a80; }
.briefing .label span { color: var(--amber-dark); }
.statement {
  font-family: var(--sans); font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.06; letter-spacing: -.025em;
  max-width: 1200px;
}
.hl { font-style: normal; padding: 0 .12em; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--amber { background: var(--amber); }
.hl--green { background: var(--green); }
.briefing__grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 9vw, 120px);
}
.briefing__body { font-size: var(--fs-body-lg); max-width: 46ch; }
.note { display: block; margin-top: 16px; color: #7a7a8c; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 4px solid var(--cream-ink); }
.stats li { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 26px; border-bottom: 2px dashed rgba(18, 20, 43, .25); }
.stats li:nth-child(odd) { padding-right: 16px; }
.stats b { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; }
.stats span { color: #5a5a70; }
@media (max-width: 860px) { .briefing__grid { grid-template-columns: 1fr; } }

/* ---------- Trailer ---------- */
.trailer { padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); background: var(--ink); }
.trailer__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.trailer__head .label { margin-bottom: 0; }
.trailer__head .big { text-align: right; }
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh;
  background: var(--ink-2); overflow: hidden;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.video__noise {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .04) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at center, #1a2266 0%, var(--ink) 75%);
  animation: roll 6s steps(30) infinite;
}
.video__play {
  position: relative; display: grid; place-items: center;
  width: clamp(96px, 12vw, 160px); aspect-ratio: 1;
  box-shadow: 0 -4px 0 0 var(--amber), 0 4px 0 0 var(--amber), -4px 0 0 0 var(--amber), 4px 0 0 0 var(--amber);
  transition: background .2s steps(3);
  padding-left: 10px;
}
.video__poster:hover .video__play { background: rgba(255, 180, 61, .15); }
.video__msg { position: absolute; left: var(--gutter); bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--cream); }
.rec { width: 10px; height: 10px; background: var(--red); animation: blink 1s steps(1) infinite; }
.video__corner { position: absolute; width: 36px; height: 36px; border: 4px solid var(--cream); opacity: .6; }
.video__corner--tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.video__corner--tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.video__corner--bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; opacity: 0; }
.video__corner--br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

/* ---------- Mission (horizontal) ---------- */
.mission {
  position: relative; background: var(--ink-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.mission__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 104px; }
.mission__head .label { margin-bottom: 0; }
.altimeter { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.altimeter b { color: var(--amber); font-weight: 700; }
.altimeter__bar { position: relative; width: clamp(140px, 22vw, 320px); height: 14px; box-shadow: inset 0 0 0 2px var(--line); }
.altimeter__fill { position: absolute; inset: 3px auto 3px 3px; width: calc((100% - 6px) * var(--p, 0)); background: var(--amber); }
.altimeter__sat { position: absolute; top: -16px; left: calc(var(--p, 0) * 100%); translate: -50% 0; }
.altimeter__sat svg { width: 33px !important; height: 12px !important; }

.mission__viewport { flex: 1; display: flex; align-items: center; padding: 40px 0 56px; }
.mission__track {
  list-style: none; display: flex; gap: clamp(24px, 4vw, 64px);
  padding-inline: var(--gutter); width: max-content; align-items: stretch;
}
.stage {
  position: relative; width: clamp(300px, 30vw, 500px); flex: none;
  display: flex; flex-direction: column; gap: 16px;
}
.stage--intro { width: clamp(300px, 34vw, 560px); justify-content: center; gap: 28px; }
.stage__num {
  font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--cream); opacity: .5;
}
.stage__shot {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--ink-3);
  clip-path: var(--notch);
}
.stage__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-label { position: absolute; left: 14px; bottom: 12px; color: var(--muted); }
.stage h3 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); text-transform: uppercase; line-height: 1; }
.stage p { color: var(--muted); max-width: 36ch; font-size: var(--fs-body); }

@media (max-width: 899px) {
  .mission__track { flex-direction: column; width: 100%; }
  .stage, .stage--intro { width: 100%; }
}

/* ---------- Launch ---------- */
.launch {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 160px;
  background: radial-gradient(ellipse at 50% 110%, #3a1d62 0%, var(--ink) 60%);
}
.launch__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.launch .label { margin-bottom: 1rem; }
.launch__count {
  font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 12vw, 11rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--amber);
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.launch__title { margin-bottom: 24px; }
.launch__sub { font-size: var(--fs-body-lg); color: var(--muted); margin-bottom: 36px; }
.share-status { margin-top: 18px; min-height: 1.5em; color: var(--green); }
.launch__rocket { position: absolute; z-index: 1; right: 9vw; bottom: 56px; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.launch__flame { transform-origin: top center; animation: flame .18s steps(2) infinite; }
.launch.is-ignited .launch__rocket { animation: shake .1s steps(2) infinite; }
.launch__pad {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 24px, var(--ink) 24px 48px) top / 100% 12px no-repeat, var(--ink-3);
}
@media (max-width: 760px) {
  .launch { padding-bottom: 240px; }
  .launch__rocket { right: auto; left: calc(50% - 48px); scale: .7; transform-origin: bottom center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 28px 0 24px; overflow: hidden; }
.footer__top, .footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer__top a { text-decoration: none; color: var(--cream); }
.footer__big {
  font-family: var(--display); font-weight: 700; font-size: 19.5vw; line-height: .8; letter-spacing: -.04em;
  text-align: center; white-space: nowrap; margin: 4vw 0 3vw;
  color: transparent; -webkit-text-stroke: 2px var(--cream);
  transition: color .3s steps(4);
}
.footer__big:hover { color: var(--amber); -webkit-text-stroke-color: var(--amber); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes hover { 50% { translate: 0 6px; } }
@keyframes nudge { 50% { translate: 4px 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes roll { to { background-position: 0 120px, 0 0; } }
@keyframes flame { 50% { transform: scaleY(.7); } }
@keyframes shake { 0% { translate: -2px 0; } 100% { translate: 2px 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens: keep everything inside the viewport ---------- */
html, body { overflow-x: clip; }
@media (max-width: 760px) {
  .statement, .briefing__body, .big, h1, h2, h3, p { overflow-wrap: anywhere; }
  .hero__title { max-width: 100%; }
  .hero__ctas .btn--xl { width: 100%; max-width: 100%; }
}
