@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #020304;
  --cream: #e8e2d6;
  --muted: rgba(222, 218, 207, 0.48);
  --faint: rgba(222, 218, 207, 0.14);
  --line: rgba(222, 218, 207, 0.18);
  --rust: #d87047;
  --rust-bright: #f69a68;
  --glass: rgba(7, 10, 11, 0.56);
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
}

button,
a,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.experience,
#space-canvas,
.intro,
.interface {
  position: fixed;
  inset: 0;
}

#space-canvas {
  width: 100%;
  height: 100%;
  background: #020304;
  touch-action: none;
}

.intro {
  z-index: 20;
  overflow: hidden;
  background: #000;
  transition: opacity 1.5s ease, visibility 1.5s;
}

.intro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(112vw, 112vh);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(216, 112, 71, 0.11) 66%, rgba(216, 112, 71, 0.05) 73%, transparent 80%);
  box-shadow:
    0 0 80px rgba(216, 112, 71, 0.08),
    inset -70px -45px 130px rgba(216, 112, 71, 0.052),
    inset 80px 65px 160px rgba(216, 112, 71, 0.027);
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.intro.is-exiting {
  opacity: 0;
  visibility: hidden;
}

.intro__grain {
  display: none;
}

.intro-rocket {
  position: absolute;
  left: -80px;
  bottom: 12%;
  z-index: 0;
  width: 70px;
  height: 35px;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-32deg);
  animation: introRocketFly 6.6s cubic-bezier(0.42, 0, 0.16, 1) 10.8s both;
}

@keyframes introRocketFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-32deg) scale(0.82);
  }
  12% {
    opacity: 0.36;
  }
  72% {
    opacity: 0.36;
  }
  100% {
    opacity: 0;
    transform: translate(calc(100vw + 180px), -78vh) rotate(-32deg) scale(1.04);
  }
}

.intro-rocket__ship {
  position: absolute;
  inset: 0;
}

.intro-rocket__ship::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 47px;
  height: 19px;
  border-radius: 70% 45% 45% 70%;
  background: #f1eadc;
  box-shadow: 0 0 14px rgba(241, 234, 220, 0.45);
}

.intro-rocket__ship::after {
  content: "";
  position: absolute;
  right: 41px;
  top: 10px;
  width: 28px;
  height: 15px;
  border-radius: 50% 0 0 50%;
  background: linear-gradient(90deg, rgba(246, 154, 104, 0), rgba(246, 154, 104, 0.92));
  box-shadow: -10px 0 18px rgba(246, 154, 104, 0.4);
}

.intro-rocket__spark {
  position: absolute;
  left: -20px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 238, 197, 0.9);
  box-shadow: 0 0 12px rgba(246, 154, 104, 0.8);
  animation: introSpark 0.75s ease-out infinite;
}

.intro-rocket__spark--two {
  left: -40px;
  top: 5px;
  width: 5px;
  height: 5px;
  animation-delay: 0.14s;
}

.intro-rocket__spark--three {
  left: -52px;
  top: 27px;
  width: 4px;
  height: 4px;
  animation-delay: 0.26s;
}

.intro-rocket__spark--four {
  left: -72px;
  top: 17px;
  width: 5px;
  height: 5px;
  animation-delay: 0.38s;
}

@keyframes introSpark {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-28px, 10px) scale(0.1);
  }
}

.intro__skip {
  position: absolute;
  top: 34px;
  right: 38px;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(232, 226, 214, 0.58);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.intro__skip span {
  margin-left: 6px;
  color: var(--rust);
}

.intro__skip:hover {
  color: var(--cream);
}

.intro__sequence,
.intro__line,
.intro__final {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.intro__line {
  margin: 0;
  color: rgba(239, 233, 221, 0.92);
  font-size: clamp(31px, 4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0;
}

.intro__line--one { animation: lineReveal 3s ease 0.8s both; }
.intro__line--two { animation: lineReveal 3s ease 3.65s both; }
.intro__line--three { animation: lineReveal 3s ease 6.5s both; }

@keyframes lineReveal {
  0%, 100% { opacity: 0; filter: blur(9px); transform: translateY(12px); }
  22%, 76% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.intro__final {
  align-content: center;
  justify-items: center;
  gap: 20px;
  opacity: 0;
  animation: finalReveal 1.8s ease 9.2s forwards;
}

@keyframes finalReveal {
  from { opacity: 0; transform: scale(1.04); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.eyebrow,
.panel__index {
  color: var(--muted);
  font: 500 12px/1.55 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel__index b {
  color: var(--rust);
  font-weight: 500;
}

.intro h1 {
  margin: 0;
  color: #f0eadf;
  font-size: clamp(86px, 14vw, 206px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.82;
  text-align: center;
  text-transform: lowercase;
}

.intro h1 i,
.brand i {
  color: var(--rust);
  font-family: Georgia, serif;
  font-weight: 400;
}

.intro__enter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  border: 1px solid rgba(232, 226, 214, 0.28);
  border-radius: 100px;
  padding: 14px 20px 14px 24px;
  background: rgba(3, 4, 5, 0.34);
  color: var(--cream);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
}

.intro__enter:hover {
  border-color: var(--rust);
  background: rgba(216, 112, 71, 0.11);
}

.intro__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(232, 226, 214, 0.1);
}

.intro__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--rust);
  transform-origin: left;
  animation: introProgress 10s linear both;
}

@keyframes introProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.interface {
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.8s ease 0.4s, visibility 1.8s;
  pointer-events: none;
}

.interface.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(232, 226, 214, 0.1);
  padding: 0 38px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
}

.brand,
.topbar__actions,
.timeline,
.planet-card,
.tour,
.about-page,
.about-button {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--cream);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.brand__mark {
  width: 10px;
  height: 10px;
  border: 1px solid var(--rust);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--rust);
}

.topbar__center {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.signal {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ab598;
  box-shadow: 0 0 9px #9ab598;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

.topbar__actions {
  display: flex;
  align-items: center;
}

.topbar__actions {
  gap: 12px;
}

.about-button {
  border: 1px solid rgba(232, 226, 214, 0.22);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(232, 226, 214, 0.04);
  color: rgba(232, 226, 214, 0.78);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.about-button:hover {
  border-color: rgba(246, 154, 104, 0.55);
  background: rgba(216, 112, 71, 0.1);
  color: var(--rust-bright);
}

.panel {
  position: absolute;
  top: 116px;
  width: 250px;
}

.panel--left { left: 38px; }
.panel--right {
  display: flex;
  min-height: calc(100vh - 190px);
  flex-direction: column;
  right: 38px;
  width: 285px;
}

.mission-panel__title {
  margin-top: 44px;
}

.mission-panel h2 {
  margin: 10px 0 25px;
  color: #eee7dc;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1.02;
  white-space: nowrap;
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.countdown strong {
  color: var(--rust-bright);
  font: 400 76px/0.9 var(--mono);
  letter-spacing: -0.14em;
}

.countdown span {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-dates {
  padding: 13px 0 0;
}

.launch-date {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  color: var(--muted);
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launch-date b {
  color: var(--cream);
  font-weight: 500;
}

.telemetry__header {
  margin-top: 44px;
}

.telemetry__header b {
  display: block;
  margin-top: 12px;
  color: var(--cream);
  font: 500 24px/1 var(--mono);
  letter-spacing: -0.05em;
}

.telemetry dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.telemetry dl div {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  padding: 15px 4px 12px 0;
}

.telemetry dl div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.telemetry dl div:nth-child(even) {
  padding-left: 13px;
}

.telemetry dt {
  color: var(--muted);
  font: 500 12px/1.1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telemetry dd {
  margin: 12px 0 0;
}

.telemetry dd b {
  display: block;
  color: var(--cream);
  font: 400 25px/1 var(--mono);
  letter-spacing: -0.1em;
}

.telemetry dd span {
  color: var(--muted);
  font: 500 12px/1.1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telemetry__note {
  margin-top: 18px;
  color: rgba(232, 226, 214, 0.42);
  font: 400 12px/1.7 var(--mono);
  letter-spacing: 0.06em;
}

.timeline {
  position: absolute;
  right: 310px;
  bottom: 28px;
  left: 310px;
}

.launch-marker {
  position: absolute;
  top: 26px;
  left: var(--launch-left, 48.9%);
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(246, 154, 104, 0.05), rgba(246, 154, 104, 0.86), rgba(246, 154, 104, 0.05));
  transform: translateX(-50%);
  pointer-events: none;
}

.launch-marker span {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(246, 154, 104, 0.9);
  border-radius: 50%;
  background: #0b0604;
  box-shadow: 0 0 18px rgba(246, 154, 104, 0.8);
  transform: translateX(-50%);
}

.launch-marker b {
  position: absolute;
  top: -26px;
  left: 50%;
  width: max-content;
  color: var(--rust-bright);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.launch-marker--secondary {
  opacity: 0.72;
}

.timeline__top,
.timeline__actions,
.timeline__ticks {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline__actions {
  gap: 20px;
}

.timeline__actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(232, 226, 214, 0.66);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#play-toggle {
  color: var(--rust-bright);
}

#timeline-range {
  width: 100%;
  height: 20px;
  margin: 13px 0 0;
  appearance: none;
  background: transparent;
}

#timeline-range::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(232, 226, 214, 0.27);
}

#timeline-range::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -5px;
  appearance: none;
  border: 2px solid #111;
  border-radius: 50%;
  background: var(--rust-bright);
  box-shadow: 0 0 0 1px rgba(246, 154, 104, 0.7), 0 0 16px var(--rust);
}

.timeline__ticks {
  color: rgba(232, 226, 214, 0.38);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
}

.canvas-hint {
  position: absolute;
  bottom: 92px;
  left: 38px;
  display: grid;
  gap: 9px;
  margin: 0;
  color: rgba(232, 226, 214, 0.5);
  font: 500 12px/1.45 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.canvas-hint span {
  color: var(--rust);
  font: 500 12px/1 var(--mono);
}

.canvas-hint p {
  margin: 0;
}

.scene-caption {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 86px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.scene-caption p {
  width: 100%;
  margin: 0;
  color: rgba(232, 226, 214, 0.42);
  font: 400 12px/1.7 var(--mono);
  letter-spacing: 0.06em;
}

.planet-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.planet-label > span {
  width: 24px;
  height: 1px;
  background: rgba(232, 226, 214, 0.36);
}

.planet-label b,
.planet-label small {
  display: block;
  color: rgba(232, 226, 214, 0.82);
  font: 500 12px/1.45 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planet-label small {
  color: rgba(232, 226, 214, 0.36);
  font-size: 12px;
}

.planet-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 290px;
  border: 1px solid rgba(232, 226, 214, 0.2);
  padding: 20px;
  background: rgba(4, 7, 8, 0.86);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%);
  transition: opacity 0.35s, transform 0.35s;
  backdrop-filter: blur(16px);
}

.planet-card.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.planet-card__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
  font-weight: 300;
}

.planet-card h2 {
  margin: 12px 0 7px;
  color: var(--cream);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.11em;
}

.planet-card p {
  margin: 0;
  color: rgba(232, 226, 214, 0.54);
  font-size: 12px;
  line-height: 1.65;
}

.planet-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
}

.planet-card__stats div {
  padding: 10px;
  background: rgba(4, 7, 8, 0.96);
}

.planet-card__stats span,
.planet-card__stats b {
  display: block;
  color: var(--muted);
  font: 500 12px/1.35 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.planet-card__stats b {
  margin-top: 4px;
  color: var(--cream);
  font-size: 12px;
}

.tour {
  position: absolute;
  left: 50%;
  bottom: 112px;
  z-index: 8;
  width: min(390px, calc(100vw - 40px));
  border: 1px solid rgba(232, 226, 214, 0.18);
  border-radius: 22px;
  padding: 20px;
  overflow: hidden;
  background: rgba(5, 8, 10, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  backdrop-filter: blur(22px);
}

.tour::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 154, 104, 0.7), rgba(246, 154, 104, 0));
}

.tour[data-placement="planets"] {
  left: 50%;
  top: 27%;
  bottom: auto;
}

.tour[data-placement="planets"]::after {
  left: 50%;
  bottom: -18px;
  transform: rotate(90deg);
}

.tour[data-placement="timeline"] {
  left: 50%;
  top: auto;
  bottom: 112px;
}

.tour[data-placement="timeline"]::after {
  left: 50%;
  bottom: -18px;
  transform: rotate(90deg);
}

.tour[data-placement="telemetry"] {
  left: auto;
  right: 342px;
  top: 188px;
  bottom: auto;
  transform: translate(18px, 0);
}

.tour[data-placement="telemetry"].is-open {
  transform: translate(0, 0);
}

.tour[data-placement="telemetry"]::after {
  right: -52px;
  top: 34px;
}

.tour.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tour__glow {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 112, 71, 0.28), rgba(216, 112, 71, 0));
  pointer-events: none;
}

.tour__step {
  color: var(--rust-bright);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour h2 {
  margin: 12px 0 8px;
  color: var(--cream);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
}

.tour p {
  margin: 0;
  color: rgba(232, 226, 214, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.tour__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.tour__actions button {
  border: 0;
  background: transparent;
  color: rgba(232, 226, 214, 0.58);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#tour-next {
  border: 1px solid rgba(246, 154, 104, 0.42);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(216, 112, 71, 0.1);
  color: var(--rust-bright);
}

.about-page {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 38px;
  overflow: hidden;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  backdrop-filter: none;
}

.about-page::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(112vw, 112vh);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(216, 112, 71, 0.11) 66%, rgba(216, 112, 71, 0.05) 73%, transparent 80%);
  box-shadow:
    0 0 80px rgba(216, 112, 71, 0.08),
    inset -70px -45px 130px rgba(216, 112, 71, 0.052),
    inset 80px 65px 160px rgba(216, 112, 71, 0.027);
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.about-page.is-open {
  opacity: 1;
  visibility: visible;
}

.about-page__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.about-page__close {
  position: absolute;
  top: -56px;
  right: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 226, 214, 0.5);
  font-size: 28px;
  font-weight: 300;
}

.about-page article {
  margin-top: 34px;
}

.about-page h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.about-page p {
  max-width: 680px;
  margin: 0;
  color: rgba(245, 241, 232, 0.76);
  font-size: 15px;
  line-height: 1.8;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .panel--right,
  .canvas-hint,
  .topbar__center {
    display: none;
  }

  .topbar {
    height: 67px;
    padding: 0 20px;
  }

  .panel {
    top: 90px;
    left: 20px;
    width: 190px;
  }

  .mission-panel__title {
    margin-top: 24px;
  }

  .mission-panel h2 {
    font-size: 20px;
  }

  .countdown strong {
    font-size: 58px;
  }

  .timeline {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .tour {
    bottom: 92px;
  }

  .about-page {
    padding: 20px;
  }

  .about-page__panel {
    padding: 0;
  }

  .timeline__ticks span:nth-child(2) {
    display: none;
  }

  .intro h1 {
    font-size: clamp(80px, 24vw, 150px);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .intro::before {
    top: 52%;
    width: min(142vw, 94vh);
    background:
      radial-gradient(circle at 50% 50%, transparent 50%, rgba(216, 112, 71, 0.16) 64%, rgba(216, 112, 71, 0.07) 73%, transparent 82%);
    box-shadow:
      0 0 95px rgba(216, 112, 71, 0.11),
      inset -62px -42px 120px rgba(216, 112, 71, 0.075),
      inset 72px 58px 145px rgba(216, 112, 71, 0.038);
    opacity: 0.92;
  }

  .intro__sequence,
  .intro__line,
  .intro__final {
    place-items: center;
    text-align: center;
  }

  .intro__line {
    left: 50%;
    width: min(88vw, 390px);
    transform: translateX(-50%);
  }

  @keyframes lineReveal {
    0%, 100% { opacity: 0; filter: blur(9px); transform: translate(-50%, 12px); }
    22%, 76% { opacity: 1; filter: blur(0); transform: translate(-50%, 0); }
  }
}

@media (max-width: 900px) {
  .intro::before {
    width: 128vh;
    opacity: 0.58;
  }

  .intro__skip {
    top: 20px;
    right: 18px;
    font-size: 10px;
  }

  .intro__line {
    width: min(86vw, 360px);
    font-size: clamp(29px, 9vw, 44px);
    line-height: 1.12;
    text-align: center;
  }

  .intro__final {
    gap: 14px;
    padding: 0 18px;
  }

  .intro h1 {
    font-size: clamp(72px, 24vw, 108px);
    letter-spacing: -0.015em;
  }

  .intro__enter {
    max-width: calc(100vw - 36px);
    justify-content: center;
    margin-top: 22px;
    padding: 13px 16px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
  }

  .topbar {
    height: 54px;
    padding: 0 12px;
  }

  .brand {
    gap: 9px;
    font-size: 22px;
    letter-spacing: -0.07em;
  }

  .brand__mark {
    width: 8px;
    height: 8px;
  }

  .about-button {
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .panel {
    top: 62px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .mission-panel {
    border: 1px solid rgba(232, 226, 214, 0.12);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(3, 5, 6, 0.74);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
  }

  .eyebrow,
  .panel__index {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.12em;
  }

  .mission-panel__title {
    margin-top: 8px;
  }

  .mission-panel h2 {
    margin: 4px 0 8px;
    font-size: 17px;
    letter-spacing: -0.06em;
  }

  .countdown {
    gap: 7px;
    padding-bottom: 7px;
  }

  .countdown strong {
    font-size: 40px;
    letter-spacing: -0.12em;
  }

  .countdown span {
    font-size: 10px;
  }

  .launch-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 8px;
  }

  .launch-date {
    display: block;
    padding: 0;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .launch-date b {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .planet-label {
    display: none;
  }

  .planet-card {
    top: auto;
    right: 14px;
    bottom: 92px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 250px);
    overflow: auto;
    padding: 16px;
    transform: translateY(14px);
  }

  .planet-card.is-open {
    transform: translateY(0);
  }

  .planet-card h2 {
    margin-top: 8px;
    font-size: 31px;
  }

  .planet-card__stats div {
    padding: 8px;
  }

  .planet-card__stats span,
  .planet-card__stats b {
    font-size: 10px;
  }

  .timeline {
    right: 12px;
    bottom: 12px;
    left: 12px;
    border: 1px solid rgba(232, 226, 214, 0.12);
    border-radius: 14px;
    padding: 9px 10px 8px;
    background: rgba(3, 5, 6, 0.76);
    backdrop-filter: blur(16px);
  }

  .timeline__top,
  .timeline__actions,
  .timeline__ticks {
    font-size: 9px;
  }

  .timeline__top {
    gap: 10px;
  }

  .timeline__top > .eyebrow,
  #return-today {
    display: none;
  }

  .timeline__actions {
    gap: 8px;
    margin-left: auto;
  }

  .timeline__actions button {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  #timeline-range {
    margin-top: 10px;
  }

  .launch-marker {
    top: 38px;
    height: 22px;
  }

  .launch-marker span {
    height: 22px;
  }

  .launch-marker b {
    display: none;
  }

  .timeline__ticks {
    margin-top: 7px;
  }

  .tour,
  .tour[data-placement="planets"],
  .tour[data-placement="timeline"],
  .tour[data-placement="telemetry"] {
    top: auto;
    right: 14px;
    bottom: 92px;
    left: 14px;
    width: auto;
    padding: 16px;
    transform: translateY(14px);
  }

  .tour.is-open,
  .tour[data-placement="telemetry"].is-open {
    transform: translateY(0);
  }

  .tour::after {
    display: none;
  }

  .tour h2 {
    font-size: 24px;
  }

  .tour p {
    font-size: 11px;
  }

  .about-page {
    align-items: start;
    overflow: auto;
    padding: 86px 20px 28px;
  }

  .about-page::before {
    width: 132vh;
  }

  .about-page__close {
    top: -48px;
    right: 0;
  }

  .about-page h2 {
    font-size: clamp(28px, 11vw, 42px);
    letter-spacing: -0.02em;
  }

  .about-page p {
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .intro::before {
    top: 52%;
    width: min(142vw, 94vh);
    background:
      radial-gradient(circle at 50% 50%, transparent 50%, rgba(216, 112, 71, 0.16) 64%, rgba(216, 112, 71, 0.07) 73%, transparent 82%);
    box-shadow:
      0 0 95px rgba(216, 112, 71, 0.11),
      inset -62px -42px 120px rgba(216, 112, 71, 0.075),
      inset 72px 58px 145px rgba(216, 112, 71, 0.038);
    opacity: 0.92;
  }

  .intro__sequence,
  .intro__line,
  .intro__final {
    place-items: center;
    text-align: center;
  }

  .intro__line {
    left: 50%;
    width: min(88vw, 390px);
    transform: translateX(-50%);
  }

  .topbar {
    height: 52px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), transparent);
  }

  .brand {
    font-size: 20px;
  }

  .panel {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .mission-panel {
    top: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: end;
    padding: 9px 10px;
  }

  .mission-panel > .panel__index {
    grid-column: 1 / -1;
  }

  .mission-panel__title {
    margin: 0;
  }

  .mission-panel__title .eyebrow {
    display: none;
  }

  .mission-panel h2 {
    margin: 0;
    font-size: 16px;
    white-space: normal;
  }

  .countdown {
    justify-self: end;
    gap: 5px;
    border-bottom: 0;
    padding: 0;
  }

  .countdown strong {
    font-size: 34px;
  }

  .countdown span {
    font-size: 8px;
  }

  .launch-dates {
    grid-column: 1 / -1;
    gap: 8px;
    padding-top: 2px;
  }

  .launch-date {
    overflow: hidden;
    font-size: 8px;
    white-space: nowrap;
  }

  .launch-date b {
    font-size: 9px;
  }

  .panel--right {
    top: 184px;
    display: block;
    min-height: 0;
    border: 1px solid rgba(232, 226, 214, 0.12);
    border-radius: 16px;
    padding: 9px 10px;
    background: rgba(3, 5, 6, 0.64);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
  }

  .telemetry__header {
    display: none;
  }

  .telemetry dl {
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    border-top: 0;
  }

  .telemetry dl div {
    min-height: 46px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 0 7px 0 0;
  }

  .telemetry dl div:nth-child(even) {
    padding-left: 0;
  }

  .telemetry dl div:last-child {
    border-right: 0;
  }

  .telemetry dt,
  .telemetry dd span {
    font-size: 7px;
    line-height: 1.2;
    letter-spacing: 0.08em;
  }

  .telemetry dd {
    margin-top: 7px;
  }

  .telemetry dd b {
    font-size: 16px;
    letter-spacing: -0.08em;
  }

  .telemetry__note {
    display: none;
  }

  .scene-caption {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: baseline;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    padding-top: 7px;
  }

  .scene-caption .panel__index {
    font-size: 8px;
    white-space: nowrap;
  }

  .scene-caption p {
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  .timeline {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 8px 9px 7px;
  }

  .timeline__top {
    min-height: 0;
  }

  #play-toggle {
    padding: 0;
    font-size: 12px;
  }

  #timeline-range {
    margin-top: 8px;
  }

  .launch-marker {
    top: 35px;
    height: 18px;
  }

  .launch-marker span {
    height: 18px;
  }

  .timeline__ticks {
    font-size: 8px;
  }

  .planet-card {
    bottom: 88px;
    max-height: calc(100vh - 330px);
  }

  .tour,
  .tour[data-placement="planets"],
  .tour[data-placement="timeline"],
  .tour[data-placement="telemetry"] {
    bottom: 88px;
  }
}

@media (max-width: 1100px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  .canvas-hint {
    display: none;
  }

  .topbar {
    height: 46px;
    padding: 0 12px;
  }

  .brand {
    font-size: 20px;
  }

  .about-button {
    padding: 7px 10px;
  }

  .panel {
    top: 58px;
    width: 178px;
  }

  .mission-panel {
    right: auto;
    left: max(76px, calc(env(safe-area-inset-left) + 28px));
    border: 1px solid rgba(232, 226, 214, 0.12);
    border-radius: 16px;
    padding: 9px 10px;
    background: rgba(3, 5, 6, 0.74);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
  }

  .mission-panel__title {
    margin-top: 8px;
  }

  .mission-panel h2 {
    margin: 4px 0 8px;
    font-size: 16px;
    white-space: normal;
  }

  .countdown {
    padding-bottom: 7px;
  }

  .countdown strong {
    font-size: 34px;
  }

  .countdown span {
    font-size: 8px;
  }

  .launch-dates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 7px;
  }

  .launch-date {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 0;
    font-size: 8px;
    white-space: nowrap;
  }

  .launch-date b {
    margin-top: 0;
    font-size: 8px;
  }

  .panel--right {
    top: 58px;
    right: 10px;
    left: auto;
    display: block;
    width: 198px;
    min-height: 0;
    border: 1px solid rgba(232, 226, 214, 0.12);
    border-radius: 16px;
    padding: 9px 10px;
    background: rgba(3, 5, 6, 0.64);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
  }

  .telemetry__header {
    display: none;
  }

  .telemetry dl {
    grid-template-columns: 1fr 1fr;
    margin: 0;
    border-top: 0;
  }

  .telemetry dl div {
    min-height: 42px;
    padding: 0 4px 7px 0;
  }

  .telemetry dt,
  .telemetry dd span {
    font-size: 7px;
    line-height: 1.15;
    letter-spacing: 0.08em;
  }

  .telemetry dd {
    margin-top: 5px;
  }

  .telemetry dd b {
    font-size: 15px;
  }

  .telemetry__note {
    display: none;
  }

  .scene-caption {
    margin-top: 8px;
    padding-top: 7px;
  }

  .scene-caption p {
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  .timeline {
    right: 150px;
    bottom: 8px;
    left: 150px;
    padding: 7px 9px 6px;
  }

  .timeline__top > .eyebrow,
  #return-today,
  .timeline__ticks {
    display: none;
  }

  .timeline__actions {
    margin-left: auto;
  }

  #timeline-range {
    margin-top: 7px;
  }

  .launch-marker {
    top: 30px;
    height: 16px;
  }

  .launch-marker span {
    height: 16px;
  }

  .planet-card {
    top: 52%;
    bottom: auto;
    left: 50%;
    width: min(300px, calc(100vw - 420px));
    max-height: calc(100vh - 98px);
    transform: translate(-50%, -42%);
  }

  .planet-card.is-open {
    transform: translate(-50%, -50%);
  }

  .tour,
  .tour[data-placement="planets"],
  .tour[data-placement="timeline"],
  .tour[data-placement="telemetry"] {
    right: auto;
    bottom: 72px;
    left: 50%;
    width: min(340px, calc(100vw - 420px));
    transform: translate(-50%, 14px);
  }

  .tour.is-open,
  .tour[data-placement="telemetry"].is-open {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 19px;
  }

  .mission-panel h2 {
    font-size: 16px;
  }

  .countdown strong {
    font-size: 36px;
  }

  .timeline__actions button {
    font-size: 8px;
  }
}
