@charset "UTF-8";
:root {
  color-scheme: dark;
  --ink: #020914;
  --white: #f6f8fa;
  --muted: #bac9d5;
  --accent: #b1f1f5;
  --edge: clamp(24px, 2.4vw, 48px);
  --progress: 0;
  --copy-shadow: 0 1px 3px rgba(0,0,0,.48), 0 2px 8px rgba(0,0,0,.2);
  font-family: Arial, "Helvetica Neue", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: auto; }
html.is-loading { overflow: hidden; overscroll-behavior: none; }
.loading-screen { --loaded: 0; position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #02060b; color: #f6f8fa; opacity: 1; transition: opacity .6s cubic-bezier(.4,0,.2,1); touch-action: none; }
.loading-screen[hidden] { display: none; }
.loading-screen.is-leaving { opacity: 0; }
.loading-content { width: min(280px,calc(100vw - 64px)); text-align: center; }
.loading-wordmark { font-size: 40px; font-weight: 700; letter-spacing: -.05em; margin-bottom: 52px; }
.loading-wordmark > span { color: #b1f1f5; }
.loading-readout { display: flex; justify-content: space-between; font: 10px/1.5 "Courier New",monospace; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.loading-unit { margin-left: 4px; color: #8497a6; }
.loading-meter { height: 1px; margin-top: 12px; background: #ffffff24; overflow: hidden; }
.loading-meter > span { display: block; height: 100%; background: #b1f1f5; transform: scaleX(var(--loaded)); transform-origin: left; transition: transform .18s linear; }
.loading-status { min-height: 42px; margin: 20px 0 0; color: #94a7b5; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.loading-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 12px; }
.loading-actions[hidden], .loading-actions button[hidden] { display: none; }
.loading-actions button { min-height: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.loading-signature { position: absolute; bottom: max(36px,env(safe-area-inset-bottom)); left: 24px; right: 24px; text-align: center; color: #647987; font: 9px/1.6 "Courier New",monospace; letter-spacing: .12em; }
body { margin: 0; color: var(--white); background: var(--ink); overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; padding: 0; background: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, main:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--accent); }
button:disabled { opacity: .4; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 18px; left: 24px; z-index: 100; transform: translateY(-200%); padding: 14px 22px; background: var(--accent); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: var(--ink); }
.scene-poster, .video-layer, .scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-poster { object-fit: cover; object-position: center; }
@media (orientation: portrait) { body[data-stage="deorbit"] .scene-poster { object-position: 67% center; } }
.scene-canvas { opacity: 0; }
.scene-canvas.is-visible { opacity: 1; }
.scene-film { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.scene-film.is-active { opacity:1; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,5,14,.3), transparent 19%, transparent 68%, rgba(0,5,14,.64)); pointer-events: none; }
.site-header { position: fixed; z-index: 10; top: 0; left: 0; right: 0; padding: 22px var(--edge); display: flex; align-items: center; gap: 38px; text-shadow: var(--copy-shadow); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 27px; font-weight: 700; letter-spacing: -.045em; }
.brand-symbol { width: 32px; height: 32px; }
.brand-period { color: var(--accent); }
.header-note { font: 10px/1.7 "Courier New", monospace; letter-spacing: .05em; }
.header-note span { opacity: .75; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font: 12px/1.5 "Courier New", monospace; letter-spacing: .04em; }
.primary-nav button { min-width: 44px; min-height: 44px; }
.primary-nav button:hover { color: var(--accent); }
.language-switch { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.language-switch button { color: #bac9d5; }
.language-switch button[aria-pressed="true"] { color: white; text-decoration: underline; text-underline-offset: 5px; }
.language-switch > span { opacity: .6; }

.mission-story { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.story-card { position: absolute; left: var(--edge); top: 21%; width: max-content; max-width: min(720px, calc(100vw - 2 * var(--edge))); text-shadow: var(--copy-shadow); }
.eyebrow { margin: 0 0 20px; color: var(--accent); font: 11px/1.6 "Courier New", monospace; letter-spacing: .1em; }
.story-card h1 { margin: 0 0 22px -3px; font-size: clamp(42px,5.3vw,84px); font-weight: 500; line-height: .98; letter-spacing: -.065em; text-wrap: nowrap; }
.story-description { margin: 0; font-size: 14px; line-height: 1.85; color: #e0eaf0; letter-spacing: -.015em; }
body[data-stage="earth"] .story-card { color: #09233b; text-shadow: none; }
body[data-stage="earth"] .story-description, body[data-stage="earth"] .story-card .eyebrow { color: #173c59; }
.mission-cta { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 16px; font-size: 13px; pointer-events: auto; }
.mission-cta > span:first-child { border-bottom: 1px solid #91a7b5; padding-bottom: 5px; }
.cta-arrow { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #819eaf; border-radius: 50%; font-size: 17px; }
.mission-cta:hover .cta-arrow { background: var(--accent); color: var(--ink); }
.story-card[inert] .mission-cta { pointer-events: none; }
body[data-stage="reentry"] .story-description, body[data-stage="reentry"] .mission-cta { color: #12344a; text-shadow: none; }
.chapter-hud { position: absolute; top: 126px; right: var(--edge); width: 190px; display: flex; flex-direction: column; gap: 9px; text-align: right; font: 11px/1.6 "Courier New", monospace; letter-spacing: .04em; text-shadow: 0 1px 9px #00111c; }
.chapter-hud-rule { height: 1px; background: rgba(255,255,255,.35); width: 30px; margin-left: auto; }
.chapter-hud-number { font-size: 18px; }
.phase-caption { position: absolute; bottom: 164px; left: var(--edge); max-width: 440px; padding: 0; background: none; border: 0; text-shadow: var(--copy-shadow); opacity: 0; }
.phase-number { font: 11px/1.5 "Courier New", monospace; color: var(--accent); }
.phase-caption h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.04em; font-weight: 400; margin: 12px 0 8px; }
.phase-caption p { font-size: 13px; line-height: 1.8; color: #e2ebf0; margin: 0; }

.experience-controls { position: fixed; z-index: 5; left: var(--edge); right: var(--edge); bottom: 85px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; text-shadow: 0 1px 9px #00111c; }
.scroll-cue { pointer-events: auto; display: flex; align-items: center; gap: 11px; min-height: 44px; font-size: 12px; line-height: 1.6; letter-spacing: .02em; word-break: keep-all; }
.scroll-cue-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; }
.scroll-cue-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; }
.scroll-cue:hover { color: var(--accent); }
.playback-controls { display: flex; align-items: center; gap: 24px; pointer-events: auto; }
.play-toggle { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; padding: 8px 0; }
.play-toggle > span:first-child { font-size: 20px; line-height: 1; width: 16px; flex: 0 0 auto; }
.play-toggle:hover { color: var(--accent); }
.sound-toggle { display: flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 0; font: 10px/1.5 "Courier New",monospace; white-space: nowrap; }
.sound-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle:hover { color: var(--accent); }
.sound-toggle .sound-slash, .sound-toggle[aria-pressed="false"] .sound-waves { display: none; }
.sound-toggle[aria-pressed="false"] .sound-slash { display: block; }
.sound-toggle[aria-pressed="false"] { color: var(--muted); }
.journey-footer { position: fixed; z-index: 5; left: var(--edge); right: var(--edge); bottom: 12px; height: 58px; display: flex; align-items: center; border-top: 1px solid rgba(245,248,248,.35); gap: 25px; text-shadow: 0 1px 9px #00111c; }
.journey-signature { display: flex; align-items: center; gap: 9px; font: 11px/1.5 "Courier New", monospace; white-space: nowrap; }
.signature-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.chapter-nav { margin: 0 auto; display: flex; align-items: center; gap: clamp(15px,3.2vw,55px); }
.chapter-link { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 48px; padding: 14px 0; color: #bacbd6; font: 12px/1.5 "Courier New", monospace; white-space: nowrap; }
.chapter-link-number { font-size: 10px; color: #a0b7c8; }
.chapter-link[aria-current="step"] { color: var(--white); }
.chapter-link[aria-current="step"] .chapter-link-number { color: var(--accent); }
.chapter-link::after { content: ""; position: absolute; height: 2px; top: -1px; left: 0; right: 0; background: var(--accent); opacity: 0; }
.chapter-link:hover::after, .chapter-link[aria-current="step"]::after { opacity: 1; }
.journey-percent { min-width: 44px; text-align: right; font: 13px/1.5 "Courier New", monospace; font-variant-numeric: tabular-nums; }
.journey-percent span { margin-left: 4px; font-size: 10px; opacity: .75; }
.journey-progress { position: absolute; top: -1px; left: 0; right: 0; height: 1px; pointer-events: none; }
.journey-progress > span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--progress)); transform-origin: left; }
.scroll-space { height: 17400px; }
.media-status { position: fixed; z-index: 6; top: 94px; left: var(--edge); max-width: 320px; color: #dee9ee; font-size: 12px; line-height: 1.8; padding: 8px 12px; background: rgba(0,10,24,.85); }
.media-status:empty { display: none; }

dialog { color: var(--white); background: #071320; padding: 32px; width: min(890px,calc(100vw - 48px)); max-height: calc(100svh - 64px); border: 1px solid #28414e; box-shadow: 0 28px 130px #0009; }
dialog::backdrop { background: #02080fd9; backdrop-filter: blur(8px); }
body.has-dialog { overflow: hidden; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 35px; }
.dialog-wordmark { font: 11px/1.5 "Courier New", monospace; color: var(--muted); }
.dialog-close { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; color: var(--muted); border: 1px solid #506772; border-radius: 50%; }
.dialog-close:hover { border-color: var(--accent); color: var(--accent); }
dialog .eyebrow { margin-bottom: 16px; }
dialog h2 { font-size: clamp(27px,3.25vw,43px); font-weight: 400; line-height: 1.25; letter-spacing: -.045em; margin: 0 0 18px; }
.dialog-intro { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0 0 29px; }
.mission-overview { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 22px; }
.overview-stage a { display: block; }
.overview-stage img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 15px; }
.overview-stage a:hover h3 { color: var(--accent); }
.overview-stage h3 { font-size: 14px; font-weight: 400; letter-spacing: -.015em; margin: 0 0 9px; }
.overview-stage p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.dialog-return { margin-top: 27px; padding-top: 20px; border-top: 1px solid #385161; width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; text-align: left; font-size: 13px; color: var(--accent); }
.dialog-return > span:last-child { font-size: 20px; }
.about-dialog { width: min(660px,calc(100vw - 48px)); }
.about-copy { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 22px 0; }
.craft-profile { margin: 30px 0 0; }
.craft-profile img { display: block; width: 100%; height: auto; }
.craft-profile h3 { font: 12px/1.5 "Courier New", monospace; margin: 20px 0 12px; }
.craft-profile p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.concept-note { color: #a7bccb; font-size: 12px; line-height: 1.6; margin-top: 28px; }

@media (max-width: 1100px) {
  .header-note, .journey-signature { display: none; }
  .chapter-nav { margin-left: 0; flex: 1; justify-content: space-between; gap: 12px; }
}
@media (max-width: 760px) {
  :root { --edge: 22px; }
  .site-header { padding: 16px var(--edge); gap: 10px; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-symbol { width: 27px; height: 27px; }
  .primary-nav { gap: 12px; font-size: 12px; }
  .nav-mission { display: none; }
  .language-switch { margin-left: 0; }
  .journey-footer { height: 56px; bottom: calc(8px + env(safe-area-inset-bottom)); gap: 0; }
  .chapter-nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0; margin: 0; }
  .chapter-link { flex-direction: column; gap: 4px; font-size: 10px; line-height: 1.4; padding: 6px 0; }
  .chapter-link-number { font-size: 10px; }
  .journey-percent { display: none; }
  .experience-controls { bottom: calc(76px + env(safe-area-inset-bottom)); gap: 12px; }
  .scroll-cue { font-size: 11px; max-width: 116px; gap: 5px; }
  .scroll-cue-icon { width: 18px; }
  .scroll-cue-icon svg { width: 17px; }
  .playback-controls { gap: 14px; }
  .play-toggle { font-size: 11px; gap: 6px; line-height: 1.5; text-align: left; }
  .play-toggle > span:first-child { font-size: 18px; width: 15px; }
  dialog { padding: 24px; width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .dialog-top { margin-bottom: 29px; }
  .mission-overview { grid-template-columns: 1fr; gap: 26px; }
  .about-copy { font-size: 13px; }
  .about-dialog { width: calc(100vw - 24px); }
}
/* The same immersive scene and overlaid copy on desktop and portrait phones. */
@media (max-width: 760px) and (orientation: portrait) {
  .scene { inset: 0; width: 100%; height: 100%; }
  .story-card { top: 23%; max-width: calc(100vw - 2 * var(--edge)); }
  .story-card .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .story-card h1 { font-size: clamp(32px,9.2vw,48px); line-height: 1.02; margin: 0 0 13px -1px; letter-spacing: -.055em; }
  .story-description { font-size: 13px; line-height: 1.75; }
  .mission-cta { font-size: 12px; margin-top: 10px; gap: 12px; }
  .cta-arrow { width: 25px; height: 25px; font-size: 16px; }
  .chapter-hud { top: 92px; right: var(--edge); width: 180px; font-size: 10px; gap: 5px; }
  .chapter-hud-rule { width: 25px; }
  .chapter-hud-number { font-size: 14px; }
  .phase-caption { top: auto; bottom: calc(156px + env(safe-area-inset-bottom)); right: var(--edge); max-width: none; }
  .phase-number { font-size: 11px; }
  .phase-caption h2 { font-size: 22px; margin: 10px 0; }
  .phase-caption p { font-size: 13px; }
  .media-status { top: 150px; font-size: 11px; z-index: 7; max-width: calc(100vw - 2 * var(--edge)); padding: 4px 8px; }
}
@media (max-width: 380px) {
  :root { --edge: 16px; }
  .site-header { gap: 6px; padding-block: 12px; }
  .primary-nav { gap: 5px; font-size: 11px; }
  .brand { font-size: 21px; gap: 6px; }
  .brand-symbol { width: 24px; height: 24px; }
  .experience-controls { gap: 6px; }
  .playback-controls { gap: 8px; }
  .scroll-cue { max-width: 116px; gap: 3px; }
  .play-toggle { max-width: 100px; }
  .sound-toggle { gap: 4px; font-size: 9px; }
  .sound-toggle svg { width: 15px; height: 15px; }
}
@media (max-width: 760px) and (orientation: portrait) and (max-height: 730px) {
  .site-header { padding-block: 8px; }
  .chapter-hud { top: 74px; }
  .story-card { top: 24%; }
  .phase-caption { bottom: calc(152px + env(safe-area-inset-bottom)); }
  .story-card .eyebrow { display: none; }
  .story-card h1 { font-size: clamp(27px,8.6vw,40px); margin-bottom: 9px; }
  .story-description { font-size: 12px; line-height: 1.7; }
  .mission-cta { margin-top: 4px; }
  .experience-controls { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
/* Short landscape retains the same full-viewport scene. */
@media (orientation: landscape) and (max-height: 600px) {
  :root { --edge: clamp(20px,3vw,32px); }
  .scene { inset: 0; width: 100%; height: 100%; }
  .scene-shade { display: block; }
  .site-header { padding: 6px var(--edge); gap: 12px; }
  .header-note, .journey-signature, .journey-percent { display: none; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-symbol { width: 27px; height: 27px; }
  .primary-nav { gap: 16px; font-size: 12px; }
  .nav-mission { display: none; }
  .language-switch { margin-left: 0; }
  .story-card { top: 76px; max-width: min(460px,65vw); }
  .story-card .eyebrow { display: none; }
  .story-card h1 { font-size: clamp(30px,5.3vw,48px); line-height: 1; margin: 0 0 10px -1px; letter-spacing: -.055em; }
  .story-description { font-size: 12px; line-height: 1.65; }
  .mission-cta { margin-top: 4px; font-size: 12px; }
  body[data-stage="earth"] .story-card { color: var(--white); text-shadow: var(--copy-shadow); }
  body[data-stage="earth"] .story-description { color: #e0eaf0; }
  .chapter-hud { top: 70px; right: var(--edge); width: 175px; font-size: 10px; gap: 5px; }
  .chapter-hud-number { font-size: 15px; }
  .phase-caption { top: 80px; bottom: auto; max-width: min(430px,63vw); padding: 0; }
  .phase-caption h2 { font-size: 21px; margin: 8px 0; }
  .phase-caption p { font-size: 12px; }
  .experience-controls { bottom: calc(61px + env(safe-area-inset-bottom)); gap: 16px; }
  .scroll-cue { max-width: none; font-size: 11px; }
  .playback-controls { flex-direction: row; gap: 20px; }
  .play-toggle { font-size: 11px; }
  .journey-footer { height: 48px; bottom: calc(6px + env(safe-area-inset-bottom)); gap: 0; }
  .chapter-nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0; margin: 0; flex: 1; }
  .chapter-link { flex-direction: row; gap: 6px; padding: 8px 0; min-height: 44px; font-size: 10px; }
  .chapter-link-number { font-size: 10px; }
  .media-status { top: 58px; left: 50%; max-width: 45vw; font-size: 11px; padding: 4px 8px; }
}
@media (orientation: landscape) and (max-height: 350px) {
  .story-card { top: 60px; }
  .story-card h1 { font-size: 28px; margin-bottom: 6px; }
  .story-description { font-size: 11px; line-height: 1.5; }
  .mission-cta { margin-top: 0; }
  .chapter-hud { top: 60px; }
  .phase-caption { top: 62px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body.reduced-motion .scene-canvas { display: none; }
