/* ---------- panels ---------- */
.panel { position: relative; z-index: 3; background: var(--black); }
/* the Moon dissolves into the panels instead of being cut off */
.panel::before, .panel::after { content: ""; position: absolute; left: 0; right: 0; height: 22vh; pointer-events: none; }
.panel::before { bottom: 100%; background: linear-gradient(to bottom, transparent, #000); }
.panel::after { top: 100%; background: linear-gradient(to top, transparent, #000); }
.panel + .base-intro, .base-intro + .panel { border-top: 0; }
.wrap { max-width: 1560px; margin: 0 auto; padding: clamp(96px, 12vw, 168px) var(--margin); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.head h2 { grid-column: 1 / span 6; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.045em; }
.head-side { grid-column: 8 / span 5; display: grid; gap: 14px; }
.aside { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* tracker: one row per mission, in launch order */
.tr-head, .tr { display: grid; grid-template-columns: 2fr 5fr 3fr 2fr; column-gap: 24px; }
.tr-head { padding: 0 0 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.tr { position: relative; padding: 22px 0 24px; border-bottom: 1px solid var(--line); align-items: start; }
.tr .when { font-size: 16px; line-height: 1.35; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tr .when small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.tr .mission { display: grid; gap: 6px; min-width: 0; }
.tr .name { font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
a.name { color: inherit; text-decoration: none; justify-self: start; }
a.name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.tr .by { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.tr .by b { color: var(--ink-2); font-weight: 400; }
.tr .blurb { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-width: 60ch; margin-top: 2px; }
.tr .moved { font-size: 13px; color: var(--ink-3); line-height: 1.5; max-width: 60ch; padding-left: 12px; border-left: 1px solid var(--line-2); }
.tr .where { font-size: 15px; line-height: 1.45; color: var(--ink-1); padding-top: 3px; }
.tr .where small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tr .state { padding-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill--next { background: var(--ink-1); color: #000; box-shadow: none; }
.pill--crew::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-1); }
.pill--test { color: var(--ink-2); }
.further { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line-2); }
.further > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.further dt { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.further dd { font-size: 15px; color: var(--ink-1); }
.further a { color: inherit; text-decoration: none; }
.further a:hover { color: var(--ink-1); }
.tr-acts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 4px; }
.tr-acts .textbtn { font-size: 14px; color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color 0.2s; }
.tr-acts .textbtn:hover { text-decoration-color: var(--ink-1); }

/* base phase text */
.phase-years { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: -8px; }
.ch .items { display: grid; border-top: 1px solid var(--line-2); }
.ch .items li { padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.45; position: relative; }
.ch .items li:last-child { border-bottom: 0; padding-bottom: 2px; }
.ch .items li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 1px; background: var(--ink-3); }

/* race: a row per year, the two programs side by side */
.race { display: grid; }
.rr { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rr-head { padding: 0 0 22px; border-bottom: 1px solid var(--line-2); align-items: end; }
.rr-head h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; }
.rr-head p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.rr-y { font-size: 44px; line-height: 0.9; font-weight: 200; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink-1); }
.rr.past .rr-y { color: var(--ink-3); }
.rr-c { display: grid; gap: 16px; }
.rr-c li { position: relative; display: grid; gap: 2px; padding-left: 24px; }
.rr-c li i { position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink-1); }
.rr-c li.done i { background: var(--ink-1); }
.rr-c li.key i { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
.rr-c .d { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 20px; }
.rr-c .t { font-size: 17px; line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-1); max-width: 40ch; }
.rr-c li.future .t { color: var(--ink-2); }
.rr-c li.key .t { color: var(--ink-1); font-weight: 500; }
.rr-c a { color: inherit; text-decoration: none; }
.rr-c a:hover { color: var(--ink-1); }
.rr-today { position: relative; height: 0; border-top: 1px dashed rgba(255, 255, 255, 0.45); margin-top: -1px; }
.rr-today span { position: absolute; left: 0; top: 0; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: #000; background: var(--ink-1); border-radius: 999px; padding: 2px 10px; }

/* in orbit: a plain register, with the latest official word on each */
.orbiters { display: grid; }
.ob { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; column-gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ob-head { padding: 0 0 14px; font-size: 13px; color: var(--ink-3); border-bottom-color: var(--line-2); }
.ob-n { display: grid; gap: 3px; }
.ob-n .name { font-size: 20px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; }
.ob-n a { color: inherit; text-decoration: none; }
.ob-n small { font-size: 13px; color: var(--ink-3); }
.ob-s, .ob-o { font-size: 15px; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.ob-st { position: relative; font-size: 14px; color: var(--ink-2); padding-left: 16px; }
.ob-st::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-3); }
.ob-st.on::before { background: var(--ink-1); border-color: var(--ink-1); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.ob-note { margin-top: 20px; max-width: 70ch; }
.rr-y--word { font-size: 24px; line-height: 1.1; font-weight: 300; letter-spacing: -0.03em; padding-top: 4px; }

/* outro: the whole Moon with every mark on it, and one last line */
.outro { position: relative; z-index: 3; min-height: 118svh; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--nav-h) + 13svh) var(--margin) 0; text-align: center; pointer-events: none; }
.outro-in { display: grid; justify-items: center; gap: 16px; pointer-events: auto; max-width: 980px; }
.outro-k { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.outro-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-1); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
.outro-title { font-size: clamp(46px, 7.4vw, 124px); line-height: 0.96; letter-spacing: -0.055em; font-weight: 500; text-wrap: balance; }
.outro-sub { font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); max-width: 44ch; line-height: 1.5; text-wrap: balance; }
.outro .actions { justify-content: center; margin-top: 12px; }

/* footer: the Moon sets behind it */
.foot { position: relative; z-index: 3; overflow: hidden; padding-top: max(300px, 46svh); background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(max(300px, 46svh) - 110px), #000 max(300px, 46svh)); }
.foot-top { padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand > p { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-3); max-width: 34ch; }
.foot-links { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; }
.foot-col { display: grid; align-content: start; justify-items: start; gap: 2px; }
.foot-col h2 { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-bottom: 10px; }
.foot-col a { font-size: 15px; line-height: 1.4; padding: 4px 0; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink-1); }
.foot-col a[target]::after { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-left: 0.32em; vertical-align: 0.06em; background: currentColor; opacity: 0.5;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.foot-mark { margin-top: clamp(40px, 4.5vw, 72px); margin-bottom: -0.08em; padding: 0 var(--margin); text-align: center; white-space: nowrap; user-select: none; pointer-events: none; line-height: 0.8; font-size: 14vw; }
.foot-mark span { display: inline-block; font-size: 13.4vw; font-weight: 600; letter-spacing: -0.065em; padding: 0.02em 0.04em 0.22em; margin-bottom: -0.1em;
  background: url(../tex/color_2k.webp) 46% 38% / 150% auto; -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.55) contrast(1.15);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0.12) 100%); mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0.12) 100%); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px); font-size: 13px; color: var(--ink-3); }
.foot-bar a { color: var(--ink-2); text-decoration: none; }
.foot-bar a:hover { color: var(--ink-1); }
