/* Flight 14 — spacex.com feel.
   Tokens measured from spacex.com (D-DIN, white-100, 100vh theatres, outlined CTA). */

@font-face {
  font-family: "D-DIN";
  src: url("D-DIN.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN-Bold";
  src: url("D-DIN-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Righteous";
  src: url("Righteous-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --white-100: rgba(240, 240, 250, 1);
  --white-90: rgba(240, 240, 250, 0.9);
  --white-80: rgba(240, 240, 250, 0.8);
  --white-70: rgba(240, 240, 250, 0.7);
  --white-60: rgba(240, 240, 250, 0.6);
  --white-50: rgba(240, 240, 250, 0.5);
  --white-35: rgba(240, 240, 250, 0.35);
  --white-15: rgba(240, 240, 250, 0.15);
  --white-10: rgba(240, 240, 250, 0.1);
  --black: #000;
  --black-80: rgba(0, 0, 0, 0.8);
  --black-50: rgba(0, 0, 0, 0.5);
  --nav-h: 80px;
  --gutter: 100px;
  --copy: 520px;
  --wrap: 960px;
  --sans: "D-DIN", Arial, Verdana, sans-serif;
  --display: "D-DIN-Bold", "D-DIN", Arial, sans-serif;
  --word: "Righteous", "D-DIN", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html.reduced-motion {
  scroll-behavior: auto;
}

html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white-100);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--white-100);
  text-decoration: none;
}

a:hover {
  color: #ccc;
}

h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote {
  margin: 0;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white-100);
  line-height: 95%;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3rem;
  line-height: 48px;
}

h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

/* ----- Nav: transparent over hero, black on scroll ----- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s ease;
}

.nav.is-scrolled {
  background: #000;
}

.nav-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--word);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--white-100);
  visibility: hidden;
  white-space: nowrap;
}

.fonts-ready .wordmark {
  visibility: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white-100);
}

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

.nav-watch {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border: 2px solid var(--white-100);
  padding: 8px 22px;
  color: var(--white-100);
  transition: background 0.35s ease, color 0.35s ease;
}

.nav-watch:hover {
  background: var(--white-100);
  color: #000;
}

/* ----- Full-bleed theatres ----- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: max(100vh, 941px);
  color: var(--white-100);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.stage-media {
  position: absolute;
  inset: 0;
  background: #000;
}

.stage-media picture,
.stage-media img,
.stage-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  z-index: 1;
}

.reduced-motion .hero-video,
html.reduced-motion .hero-video {
  display: none;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.scrim--hero {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.scrim--left {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 42%,
    transparent 70%
  );
}

.scrim--right {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 42%,
    transparent 70%
  );
}

.scrim--bottom {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.22) 46%,
    transparent 72%
  );
}

.stage-inner {
  position: relative;
  z-index: 3;
  max-width: var(--copy);
}

.inner-left-bottom {
  position: absolute;
  left: var(--gutter);
  bottom: 15%;
  width: 50%;
  text-align: left;
}

.inner-right-top {
  position: absolute;
  right: var(--gutter);
  top: 13%;
  width: 50%;
  max-width: 450px;
  text-align: left;
}

.inner-right-top h2 {
  line-height: 60px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-80);
  margin-bottom: 12px;
}

.lede {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--white-100);
  max-width: 34em;
}

.cite {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white-60);
}

.hero-time {
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  color: var(--white-80);
}

.live-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--white-60);
  max-width: 36em;
}

.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0 28px;
  height: 50px;
  border: 2px solid var(--white-100);
  color: var(--white-100);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.4s ease, color 0.4s ease;
}

.btn:hover {
  background: var(--white-100);
  color: #000;
}

.btn--ghost {
  min-width: 0;
}

/* ----- Countdown ----- */

.clock {
  margin-top: 28px;
}

.clock-caption,
.clock-open {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 10px;
}

.clock-open {
  font-family: var(--display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--white-100);
  line-height: 1;
}

.clock-track {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.2rem;
}

.clock-num {
  font-family: var(--display);
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.clock-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-50);
}

.clock-sep {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--white-70);
  padding-top: 0.15em;
}

.clock.is-open .clock-track,
.clock.is-open .clock-caption {
  display: none;
}

/* ----- Black content bands ----- */

.band {
  position: relative;
  background: #000;
  padding: 120px 0 110px;
  scroll-margin-top: var(--nav-h);
}

.band--tight {
  padding-top: 96px;
}

.band--coda {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--white-10);
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.wrap--wide {
  width: min(1200px, calc(100% - 48px));
}

.wrap--narrow {
  width: min(640px, calc(100% - 48px));
}

.band-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.band-head h2 {
  margin-top: 8px;
}

.intro {
  margin-top: 20px;
  color: var(--white-80);
  max-width: 42em;
}

.fine {
  margin-top: 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--white-50);
}

.fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--white-15);
}

.specs > div {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--white-15);
}

.specs dt {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 8px;
}

.specs dd {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  margin: 0 0 56px;
  border-top: 1px solid var(--white-15);
  border-bottom: 1px solid var(--white-15);
  padding: 36px 0;
}

.stat-num {
  display: block;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat-unit {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--white-50);
}

.prose {
  max-width: 42em;
}

.prose p + p {
  margin-top: 1.35em;
}

.prose p {
  color: var(--white-90);
}

.diagram {
  margin: 8px 0 64px;
  background: #000;
}

.diagram img {
  width: 100%;
  height: auto;
}

.times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 48px;
}

.tl {
  list-style: none;
  padding: 18px 0 0;
}

.tl li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--white-10);
  font-size: 15px;
  line-height: 1.45;
}

.tl time {
  font-family: var(--display);
  letter-spacing: 0.04em;
  color: var(--white-70);
  font-size: 14px;
}

.x-frame {
  margin-top: 8px;
  min-height: 280px;
  border: 1px solid var(--white-10);
  background: #050505;
}

.x-frame iframe {
  width: 100% !important;
}

/* ----- Footer ----- */

.foot {
  background: #000;
  border-top: 1px solid var(--white-10);
  padding: 56px 0 48px;
  color: var(--white-50);
  font-size: 13px;
  line-height: 20px;
}

.foot-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.disclaimer {
  max-width: 46em;
}

.foot-notes p + p {
  margin-top: 8px;
}

.foot a {
  color: var(--white-70);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot a:hover {
  color: var(--white-100);
}

.foot .wordmark {
  color: var(--white-100);
  text-decoration: none;
}

.foot-credit {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--white-10);
  color: var(--white-35);
}

.foot .credit-grok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-50);
  text-decoration: none;
}

.foot .credit-grok:hover {
  color: var(--white-80);
}

.credit-mark {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
}

/* ----- Breakpoints (spacex.com uses 961) ----- */

@media (max-width: 961px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 2.25rem;
    line-height: 2.25rem;
  }

  .nav-inner {
    padding: 0 20px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .stage {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-video {
    display: none;
  }

  .inner-left-bottom,
  .inner-right-top {
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
    bottom: 5%;
    top: auto;
  }

  .inner-right-top {
    bottom: 8%;
  }

  .inner-right-top h2,
  .inner-left-bottom h2 {
    line-height: 2.25rem;
  }

  .clock-num {
    font-size: 2.1rem;
  }

  .clock-sep {
    font-size: 1.6rem;
  }

  .clock-unit {
    min-width: 3.1rem;
  }

  .band {
    padding: 72px 0 64px;
  }

  .specs {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 28px 12px;
    padding: 28px 0;
  }

  .stat-num {
    font-size: 2.1rem;
  }

  .times {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tl li {
    grid-template-columns: 6.4rem 1fr;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .btn {
    min-width: 140px;
    height: 46px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 42px;
  }

  .clock-track {
    gap: 2px;
  }

  .clock-num {
    font-size: 1.7rem;
  }

  .specs {
    grid-template-columns: 1fr;
  }
}

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

  .hero-video {
    display: none;
  }

  .nav,
  .btn,
  .nav-watch {
    transition: none;
  }
}
