
:root {
  --text: #f6f5f2;
  --secondary: rgba(246, 245, 242, 0.78);
  --tertiary: rgba(246, 245, 242, 0.52);
  --hairline: rgba(246, 245, 242, 0.14);
  --site: #ffb48a;                 /* set per launch from the site's sky */
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Inter', system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Inter', system-ui, sans-serif;
  --column: clamp(380px, 34vw, 540px);
  --strip: 64px;                   /* collapsed timeline */
  --dock: 232px;                   /* expanded timeline */
  --r: 6px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; background: #05050a; color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
kbd { font: 500 11px var(--sans); color: var(--tertiary); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--hairline); }
.caps { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); }

/* ---- stage ---- */
#stage { position: fixed; inset: 0; z-index: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#leaders path { stroke: rgba(246, 245, 242, 0.45); stroke-width: 1; fill: none; transition: opacity 0.3s; }
#cards { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* soft darkening where type sits, instead of boxes */
body::before, body::after { content: ''; position: fixed; pointer-events: none; z-index: 1; }
body::before { inset: 0 0 0 auto; width: calc(var(--column) + 200px); background: linear-gradient(to left, rgba(4, 4, 9, 0.9) 0%, rgba(4, 4, 9, 0.74) 60%, rgba(4, 4, 9, 0) 100%); }
body::after { inset: 0 auto auto 0; width: 520px; height: 220px; background: radial-gradient(ellipse at 0 0, rgba(4, 4, 9, 0.6), transparent 70%); }

#brand { position: fixed; top: 26px; left: 32px; z-index: 2; display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
#brand { color: var(--text); text-decoration: none; }
#brand .patch { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--site) 35%, transparent)); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
#brand:hover .patch { transform: rotate(-12deg) scale(1.06); }
#brand i { font-style: normal; font-weight: 500; color: var(--tertiary); }
#place { position: fixed; top: 64px; left: 32px; z-index: 2; transition: opacity 0.4s; }

#tools { position: fixed; top: 100px; left: 28px; z-index: 5; display: flex; gap: 6px; transition: opacity 0.5s; }
#search-pill, #tools .tool {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px;
  border-radius: var(--r); color: var(--secondary); border: 1px solid var(--hairline); background: rgba(8, 8, 14, 0.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: color 0.2s, border-color 0.2s, opacity 0.5s;
}
#search-pill span { margin-right: 18px; font-size: 13px; }
#search-pill:hover, #tools .tool:hover, #tools .tool[aria-expanded='true'] { color: var(--text); border-color: rgba(246, 245, 242, 0.3); }
#tools .tool { padding: 0 12px; font-size: 13px; }
#tools .tool[hidden] { display: none; }
#tools .tool b { font-weight: 600; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: rgba(246, 245, 242, 0.12); display: grid; place-items: center; }

/* ---- the editorial column ---- */
#column {
  position: fixed; top: 0; right: 0; bottom: var(--strip); width: var(--column); z-index: 2;
  display: flex; flex-direction: column; padding: 34px 40px 20px 8px; transition: opacity 0.5s;
}
#panel { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: 36px; mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.kicker { display: flex; gap: 14px; align-items: baseline; }
.kicker .live { color: var(--site); }
.kicker .fail { color: #ff7a6b; }
#panel h1 { font: 700 clamp(38px, 3.6vw, 56px)/1.02 var(--display); letter-spacing: -0.035em; margin: 14px 0 10px; text-wrap: balance;
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--site) 45%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.byline { font: 600 17px/1.35 var(--display); color: var(--secondary); letter-spacing: -0.01em; }
.byline button { font: inherit; color: var(--text); }
.byline button:hover { color: var(--site); }
.when { margin-top: 2px; font-size: 14px; color: var(--secondary); font-variant-numeric: tabular-nums; }
#panel figure { margin: 22px 0 0; }
#panel img { width: 100%; display: block; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); background: #111; }
figcaption { margin-top: 7px; font-size: 12px; line-height: 1.4; color: var(--tertiary); }
figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hairline); }
figcaption a:hover { color: var(--text); }
#panel section { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--hairline); }
#panel section > .caps { display: block; margin-bottom: 6px; }
.item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 0; cursor: pointer; transition: background 0.2s; }
.item:hover { background: linear-gradient(to right, color-mix(in srgb, var(--site) 12%, transparent), transparent 85%); }
.item:hover b { color: var(--site); }
.num { font: 700 28px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--c, var(--text)); }
.item b { display: block; overflow-wrap: anywhere; font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.item small { display: block; color: var(--secondary); font-size: 14px; }
.item small button { color: var(--secondary); border-bottom: 1px solid var(--hairline); }
.item small button:hover { color: var(--text); }
.pending { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tertiary); margin-left: 8px; }
.person { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 7px 0; }
.face { width: 36px; height: 36px; border-radius: 4px; background: #24242c center 20%/cover; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--tertiary); }
.person b { display: block; font-weight: 600; font-size: 16px; }
.person small { color: var(--secondary); font-size: 14px; }
.person small button { color: var(--secondary); border-bottom: 1px solid var(--hairline); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 8px; }
.figures b { display: block; font: 700 30px/1.05 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.figures > div { padding-top: 10px; border-top: 2px solid color-mix(in srgb, var(--site) 60%, transparent); }
.figures span { font-size: 13px; color: var(--secondary); }
.booster { margin-top: 14px; font-size: 14px; color: var(--secondary); }
.booster b { color: var(--text); font-weight: 600; }
.desc { font: 400 15.5px/1.6 var(--sans); color: var(--secondary); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.desc.open { -webkit-line-clamp: unset; }

#go {
  flex-shrink: 0; height: 50px; margin-top: 10px; border-radius: var(--r); background: var(--text); color: #0a0a10;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; transition: background 0.2s, opacity 0.3s;
}
#go::after { content: '\2192'; font-size: 18px; transition: transform 0.25s; }
#go:hover { background: #fff; }
#go:hover::after { transform: translateX(4px); }
#go[disabled] { background: transparent; color: var(--tertiary); border: 1px solid var(--hairline); cursor: default; }
#go[disabled]::after { content: ''; }

/* ---- company: slides in over the column ---- */
#company {
  position: fixed; top: 0; right: 0; bottom: var(--strip); width: var(--column); z-index: 3; overflow-y: auto; scrollbar-width: none;
  padding: 34px 40px 24px 40px; background: rgba(6, 6, 12, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity 0.3s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#company.open { opacity: 1; transform: none; pointer-events: auto; }
#company .x { font-size: 13px; color: var(--secondary); }
#company .x:hover { color: var(--text); }
#company .logo { margin: 28px 0 22px; height: 48px; display: flex; align-items: center; }
#company .logo img { max-height: 48px; max-width: 220px; filter: brightness(0) invert(0.95); }
#company h1 { font: 700 40px/1.04 var(--display); letter-spacing: -0.035em; margin: 22px 0 10px; }
#company .sub { font: 500 16px/1.45 var(--sans); color: var(--secondary); }
#company .sub button { font: inherit; color: var(--text); border-bottom: 1px solid var(--hairline); }
#company .kicker { display: flex; gap: 14px; }
#company .figures { margin-top: 20px; }
#company .desc { margin-top: 20px; }
#company section { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.lk { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 8px 0; font-size: 14.5px; }
.lk span { color: var(--tertiary); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lk b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk:hover b { color: var(--site); }
.links { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; }
.links a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); }
#company figure { margin-top: 20px; }
#company figure img { width: 100%; display: block; border-radius: var(--r); }
.src { padding: 10px 0; }
.src b { display: block; font-weight: 600; font-size: 16px; }
.src p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--secondary); }
.src a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.src a:hover { color: var(--site); }

/* ---- orbit transport ---- */
#transport {
  position: fixed; left: calc((100vw - var(--column)) / 2); transform: translateX(-50%); bottom: calc(var(--strip) + 18px); z-index: 2;
  width: min(760px, calc(100vw - var(--column) - 80px)); height: 46px; border-radius: var(--r);
  display: flex; align-items: center; gap: 14px; padding: 0 10px 0 6px;
  background: rgba(8, 8, 14, 0.55); border: 1px solid var(--hairline); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
#play { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }
#play::before { content: ''; width: 0; height: 0; border-left: 10px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
#play.playing::before { width: 9px; height: 11px; border: 0; margin: 0; background: linear-gradient(90deg, var(--text) 0 3px, transparent 3px 6px, var(--text) 6px); }
#clock { width: 38px; font-variant-numeric: tabular-nums; color: var(--secondary); font-size: 13px; }
.track { position: relative; flex: 1; height: 100%; display: flex; align-items: center; }
#phases { position: absolute; inset: 5px 0 auto; height: 12px; }
#phases span { position: absolute; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tertiary); transform: translateX(-50%); white-space: nowrap; }
#scrub { width: 100%; margin-top: 12px; appearance: none; height: 2px; background: var(--hairline); outline: none; }
#scrub::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
#scrub::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 0; }
.seg { display: flex; gap: 2px; }
.seg button { padding: 3px 7px; border-radius: 4px; color: var(--tertiary); font-size: 12px; }
.seg button.on { color: var(--text); background: rgba(246, 245, 242, 0.1); }
#cam { width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; color: var(--tertiary); flex-shrink: 0; }
#cam.on { color: var(--text); }
#views { padding-left: 12px; border-left: 1px solid var(--hairline); }
#views button:disabled { opacity: 0.35; cursor: default; }
body[data-view='orbits'] #clock { width: 82px; }

/* ---- orbits view ---- */
#ring-labels, #otip { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
#ring-labels span { position: absolute; left: 0; top: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--secondary); white-space: nowrap; transition: opacity 0.3s; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
#ring-labels i { font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--tertiary); margin-left: 6px; }
#otip { display: flex; flex-direction: column; padding: 1px 0 2px 11px; border-left: 2px solid var(--accent-c); font-size: 12.5px; color: var(--secondary); opacity: 0; transition: opacity 0.15s; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
#otip.on { opacity: 1; }
#otip b { font: 700 16px/1.25 var(--display); letter-spacing: -0.015em; color: var(--text); margin-bottom: 2px; }
#orbit-note { position: fixed; left: 32px; bottom: calc(var(--strip) + 84px); z-index: 2; display: flex; flex-direction: column; gap: 1px; font-size: 13px; pointer-events: none; }
#orbit-note .ghost, #otip .ghost { color: var(--tertiary); }
#orbit-note small { margin-top: 6px; font-size: 11.5px; color: var(--tertiary); }

/* ---- timeline: a slim strip that opens into the full wall ---- */
#timeline {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--strip); z-index: 4; display: flex; flex-direction: column;
  padding: 8px 32px 6px; transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s;
  background: linear-gradient(to top, rgba(4, 4, 9, 0.9), rgba(4, 4, 9, 0.55) 70%, rgba(4, 4, 9, 0));
}
#timeline:hover, #timeline.open { height: var(--dock); background: linear-gradient(to top, rgba(4, 4, 9, 0.96), rgba(4, 4, 9, 0.82) 80%, rgba(4, 4, 9, 0)); }
.tl-head, #minimap { opacity: 0; max-height: 0; transition: opacity 0.25s, max-height 0.35s; }
#timeline:hover .tl-head, #timeline.open .tl-head { opacity: 1; max-height: 26px; }
#timeline:hover #minimap, #timeline.open #minimap { opacity: 1; max-height: 30px; }
.tl-head { display: flex; align-items: center; height: 26px; }
#legend { display: flex; gap: 14px; margin-left: auto; }
#legend button { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary); transition: opacity 0.2s, color 0.2s; }
#legend button:hover { color: var(--text); }
#legend button i { width: 7px; height: 7px; border-radius: 1px; background: var(--c); }
#legend button.off { opacity: 0.3; }
#minimap { width: 100%; height: 28px; cursor: pointer; flex-shrink: 0; }
#wallwrap { position: relative; flex: 1; min-height: 0; margin-top: 4px; }
#wall { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#wall:active { cursor: grabbing; }
#tip { position: absolute; left: 0; bottom: calc(100% + 10px); max-width: 280px; padding: 10px 14px 11px; border-radius: var(--r); pointer-events: none;
  background: var(--text); color: #0a0a10; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; font-size: 12.5px; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; }
#tip.on { opacity: 1; transform: none; }
#tip b { font: 700 17px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 2px; }
#tip span { color: #55555f; }
#tip em { font-style: normal; color: #c9331f; font-weight: 600; }

/* ---- labels in orbit: type on the scene, a coloured rule, no box ---- */
.card {
  position: absolute; left: 0; top: 0; width: 230px; padding: 2px 0 2px 12px; border-left: 2px solid var(--accent-c);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.6);
  opacity: 0; transform-origin: 0 0; transition: opacity 0.5s;
}
.card.on { opacity: 1; }
.card-h { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); display: flex; gap: 8px; }
.card-h i { font-style: normal; margin-left: auto; color: var(--tertiary); letter-spacing: 0.04em; }
.card-t { font: 700 19px/1.15 var(--display); letter-spacing: -0.02em; margin: 4px 0 5px; }
.card-f { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--secondary); }
.card-f b { color: var(--text); font-weight: 500; }
.card-role { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--secondary); }
.card.mini { width: auto; }
.card.mini .card-f, .card.mini .card-role, .card.mini .card-h { display: none; }
.card.mini .card-t { font-size: 15px; margin: 0; }

/* ---- ascent ---- */
#hud { position: fixed; left: 32px; bottom: calc(var(--strip) + 36px); z-index: 2; pointer-events: none; }
#hud b { display: block; font: 700 104px/0.9 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5); }
#hud span { font-size: 14px; }
#hud span { display: block; margin-top: 8px; }
#fade { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 9; }
#fade.on { opacity: 1; transition: opacity 0.35s ease-in; }

/* ---- ⌘K ---- */
#palette { position: fixed; inset: 0; z-index: 10; display: grid; place-items: start center; padding-top: 16vh; background: rgba(2, 2, 6, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein 0.15s; }
#palette[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.pal-box { width: min(640px, calc(100vw - 32px)); background: rgba(12, 12, 18, 0.94); border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: var(--tertiary); border-bottom: 1px solid var(--hairline); }
.pal-input input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: 500 21px var(--display); letter-spacing: -0.02em; }
.pal-input input::placeholder { color: var(--tertiary); }
#results { list-style: none; max-height: 52vh; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
#results li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 12px; border-radius: 4px; cursor: pointer; }
#results li.on { background: rgba(246, 245, 242, 0.08); }
#results li i { width: 7px; height: 7px; border-radius: 1px; background: var(--c); }
#results li b { font: 600 15.5px/1.3 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#results li small { color: var(--secondary); font-size: 12.5px; }
#results li span { color: var(--tertiary); font-size: 12.5px; font-variant-numeric: tabular-nums; }
#results .empty { display: block; color: var(--tertiary); padding: 22px; text-align: center; }

/* ---- modes ---- */
body:not([data-mode='orbit']) #transport,
body:not([data-mode='orbit']) #cards,
body:not([data-mode='orbit']) #leaders,
body[data-view='orbits'] #cards, body[data-view='orbits'] #leaders,
body:not([data-view='orbits']) #ring-labels, body:not([data-view='orbits']) #otip, body:not([data-view='orbits']) #orbit-note { display: none; }
body:not([data-mode='ascent']) #hud { display: none; }
body[data-mode='ascent'] #column, body[data-mode='ascent'] #company, body[data-mode='ascent'] #tools, body[data-mode='ascent'] #week,
body[data-mode='ascent'] #place, body[data-mode='ascent']::before { opacity: 0; pointer-events: none; }

/* rideshare: who's aboard */
.aboard .org { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); transition: background 0.15s; }
.aboard .org:hover { background: linear-gradient(to right, color-mix(in srgb, var(--site) 14%, transparent), transparent 80%); }
.org-n { font: 700 18px/1.2 var(--display); letter-spacing: -0.02em; color: var(--site); font-variant-numeric: tabular-nums; }
.org-t b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.org-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--secondary); }
.org-t .via { display: block; margin-top: 3px; font-size: 12.5px; color: var(--tertiary); }
.org-t .via [data-co] { color: var(--secondary); cursor: pointer; }
.org-t .via [data-co]:hover { color: var(--site); }
.org-c { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--tertiary); padding-top: 4px; }
#legend .filter { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r); color: var(--secondary); }
#legend .filter.on { background: var(--text); border-color: var(--text); color: #08080c; }

/* ---- upcoming: countdown and what's next ---- */
.count { margin-top: 14px; }
.count b { display: block; font: 500 32px/1.05 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.count b.past { color: var(--tertiary); }
.count-m { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13px; color: var(--tertiary); font-variant-numeric: tabular-nums; }
.count-m span:first-child { color: var(--secondary); }
.count-m .go { color: #5fd08a !important; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.next.end { margin-top: 26px; }
.nx { display: flex; flex-direction: column; min-width: 0; text-align: left; padding-top: 9px; border-top: 1px solid var(--hairline); transition: border-color 0.2s; }
.nx .caps { font-size: 10.5px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx b { margin-top: 3px; font-weight: 600; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx small { font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.nx:hover { border-color: var(--site); }
.nx:hover b { color: var(--site); }

/* ---- this week ---- */
#week { position: fixed; top: 142px; left: 28px; z-index: 5; width: min(420px, calc(100vw - 56px)); max-height: calc(100vh - 142px - var(--strip) - 20px); overflow-y: auto; scrollbar-width: none;
  background: rgba(12, 12, 18, 0.94); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
#week[hidden] { display: none; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 8px; }
.asof { font-size: 12px; color: var(--tertiary); }
#week ul { list-style: none; padding: 0 6px 6px; }
#week li button { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border-radius: 4px; }
#week li button:hover { background: rgba(246, 245, 242, 0.07); }
.wk-day b { display: block; font-weight: 600; font-size: 13.5px; }
.wk-day small, .wk-t small { display: block; font-size: 12px; color: var(--tertiary); font-variant-numeric: tabular-nums; }
.wk-t { min-width: 0; padding-left: 10px; border-left: 2px solid var(--c); }
.wk-t b { display: block; font: 600 14.5px/1.3 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-t em { font-style: normal; color: #5fd08a; margin-left: 8px; }
.wk-c { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--secondary); white-space: nowrap; }
.wk-c.past { color: var(--tertiary); }
.wk-empty { padding: 4px 16px 16px; color: var(--tertiary); font-size: 13px; }

/* ---- explore ---- */
#explore { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 32px; background: rgba(2, 2, 6, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadein 0.15s; }
#explore[hidden] { display: none; }
.ex-box { width: min(1100px, 100%); max-height: calc(100vh - 64px); overflow-y: auto; scrollbar-width: none; padding: 26px 32px 32px;
  background: rgba(10, 10, 16, 0.96); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ex-box header { display: flex; justify-content: space-between; align-items: center; }
.ex-box h2 { font: 700 30px/1 var(--display); letter-spacing: -0.03em; }
.ex-box section { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.ex-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--secondary); }
.ex-legend span, .ex-tip span { display: flex; align-items: center; gap: 6px; }
.ex-legend i, .ex-tip i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ex-chart { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 500 11px var(--sans); fill: rgba(246, 245, 242, 0.45); font-variant-numeric: tabular-nums; }
.chart text.peak { fill: var(--secondary); font-weight: 600; }
.chart line.g { stroke: rgba(246, 245, 242, 0.07); }
.chart line.base { stroke: rgba(246, 245, 242, 0.25); }
.chart .yr { cursor: pointer; transition: opacity 0.12s; }
.chart .hit, .strip .hit { fill: transparent; }
.chart.hovering .yr:not(.on) { opacity: 0.35; }
.ex-tip { position: absolute; top: 0; left: 0; width: 180px; padding: 10px 12px; border-radius: 6px; pointer-events: none; font-size: 12.5px;
  background: var(--text); color: #0a0a10; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity 0.12s; }
.ex-tip.on { opacity: 1; }
.ex-tip b { font: 700 17px/1.2 var(--display); letter-spacing: -0.02em; }
.ex-tip .t { color: #55555f; margin-bottom: 4px; }
.ex-tip em { font-style: normal; margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-foot { display: block; margin-top: 2px; text-align: right; font-size: 12px; color: var(--tertiary); }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.ex-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 44px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 6px 0; }
.ex-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.ex-l b { font-weight: 600; font-size: 14px; }
.ex-l small { font-size: 12.5px; color: var(--tertiary); overflow: hidden; text-overflow: ellipsis; }
.ex-bar i { display: block; height: 8px; border-radius: 0 3px 3px 0; opacity: 0.9; transition: opacity 0.15s; }
.ex-n { text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-row:hover b { color: var(--site); }
.ex-row:hover .ex-bar i { opacity: 1; }
.pips { display: block; width: 100%; height: 12px; }
.pips rect { fill: #3987e5; opacity: 0.85; }
.ex-row:hover .pips rect, .ex-row[aria-expanded='true'] .pips rect { opacity: 1; }
.ex-flights { padding: 2px 0 10px 194px; }
.ex-flights .lk { padding: 5px 0; font-size: 13px; }
.ex-flights em { font-style: normal; display: inline-block; width: 26px; color: var(--tertiary); font-variant-numeric: tabular-nums; }

/* ---- company: launches per year ---- */
.strip { margin-top: 24px; }
.strip-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.strip-r { font-size: 12.5px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.strip svg { width: 100%; height: auto; display: block; overflow: visible; }
.strip rect:not(.hit) { fill: color-mix(in srgb, var(--site) 70%, #fff); }
.strip rect.up { fill: none; stroke: color-mix(in srgb, var(--site) 70%, #fff); stroke-width: 1; stroke-dasharray: 2 1.5; }
.strip line { stroke: var(--hairline); }
.strip svg.hovering g:not(.on) { opacity: 0.4; }
.strip-a { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; font-size: 11.5px; color: var(--tertiary); font-variant-numeric: tabular-nums; }
.strip-a .key { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 16px; }
.strip-a .key i { width: 8px; height: 8px; border: 1px dashed color-mix(in srgb, var(--site) 70%, #fff); border-radius: 1px; }
@media (max-width: 860px) { .ex-cols { grid-template-columns: 1fr; } .ex-row { grid-template-columns: 130px minmax(0, 1fr) 44px; } .ex-flights { padding-left: 144px; } }

/* ---- phones, and tablets held upright: scene on top, the column becomes a bottom sheet ---- */
#grab, #pal-cancel { display: none; }
@media (max-width: 760px), (max-width: 834px) and (orientation: portrait) {
  body { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
  body::before { inset: 0 0 auto 0; width: auto; height: calc(var(--safe-top) + 120px); background: linear-gradient(to bottom, rgba(4, 4, 9, 0.6), rgba(4, 4, 9, 0)); }
  body::after { display: none; }

  #brand { top: calc(var(--safe-top) + 16px); left: 18px; gap: 8px; font-size: 18px; }
  #brand .patch { width: 26px; height: 26px; }
  #place { top: calc(var(--safe-top) + 48px); left: 18px; font-size: 10.5px; }
  #search-pill { top: calc(var(--safe-top) + 10px); left: auto; right: 12px; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 8px; }
  #search-pill span, #search-pill kbd { display: none; }
  /* the toolbar: Search stays a top-right icon, the rest a compact row under the place name */
  #tools { top: calc(var(--safe-top) + 72px); left: 12px; right: 12px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  #tools::-webkit-scrollbar { display: none; }
  #search-pill { position: fixed; }
  #tools .tool { flex: none; height: 30px; padding: 0 10px; font-size: 12.5px; }
  #week { top: calc(var(--safe-top) + 110px); left: 12px; right: 12px; width: auto; max-height: calc(100vh - var(--safe-top) - 110px - var(--sheet, 280px) - 12px); }
  #explore { padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 12px); }
  .ex-box { max-height: 100%; padding: 18px 16px 24px; }

  /* the sheet */
  #column {
    top: auto; left: 0; bottom: 0; width: auto; height: 280px; z-index: 4; padding: 0;
    background: rgba(9, 9, 15, 0.9); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-radius: 8px 8px 0 0; box-shadow: 0 -1px 0 var(--hairline), 0 -16px 48px rgba(0, 0, 0, 0.35);
    touch-action: none; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
  }
  #column.glide { transition: height 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s; }
  #grab { display: grid; place-items: center; flex-shrink: 0; height: 22px; width: 100%; cursor: grab; }
  #grab i { width: 36px; height: 4px; border-radius: 2px; background: rgba(246, 245, 242, 0.28); }
  #panel { position: relative; padding: 8px 20px 24px; overflow: hidden; mask-image: none; -webkit-mask-image: none; animation: none; }
  #column:not([data-at='peek']) #panel, #column:not([data-at='peek']) #company { mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
  #column[data-at='full'] #panel, #column[data-at='full'] #company { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; }
  #panel h1 { font-size: 28px; line-height: 1.06; letter-spacing: -0.03em; margin: 6px 0 6px; }
  .byline { font-size: 15px; }
  .when { font-size: 13px; }
  #panel figure { margin-top: 18px; }
  #panel section { margin-top: 22px; }
  .figures b { font-size: 26px; }
  #go { height: 48px; margin: 8px 16px calc(var(--safe-bottom) + 12px); }
  body[data-mode='ascent'] #column { opacity: 1; transform: translateY(105%); }

  /* the timeline rides at the top of the sheet: a swipeable strip */
  #timeline, #timeline:hover, #timeline.open { position: relative; left: auto; right: auto; bottom: auto; z-index: auto; flex-shrink: 0; height: 74px; padding: 0; background: none; }
  #timeline .tl-head, #timeline #minimap { display: none; }
  #wallwrap { margin: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  #tip { display: none; }

  /* company and payload sheets open inside the sheet, above the Launch button */
  #company {
    position: absolute; top: 96px; right: 0; bottom: calc(var(--safe-bottom) + 68px); width: auto; left: 0; z-index: 1; overflow: hidden;
    padding: 6px 20px 24px; background: rgb(9, 9, 15); backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateY(12px);
  }
  #column:has(#company.open) #panel { visibility: hidden; }
  #company h1 { font-size: 30px; margin: 16px 0 8px; }
  #company .logo { margin: 18px 0 10px; height: 40px; }
  #company .logo img { max-height: 40px; }
  #company .x { padding: 6px 0; }
  #company .kicker { margin-top: 14px !important; flex-wrap: wrap; gap: 2px 14px; }
  #company .kicker span { flex: none; }

  /* orbit transport spans the width above the sheet */
  #transport { left: 10px; right: 10px; width: auto; transform: none; bottom: calc(var(--sheet, 0px) + 10px); gap: 8px; padding: 0 6px 0 2px; }
  #clock { width: 32px; margin-right: 10px; font-size: 12px; }
  .seg button { padding: 3px 5px; }
  #views { padding-left: 6px; }
  /* the orbits view's longer clock and rates don't fit one row: rates and scrubber share a second row */
  body[data-view='orbits'] #transport { flex-wrap: wrap; height: auto; padding: 4px 6px 2px 2px; row-gap: 0; }
  body[data-view='orbits'] #transport .seg:not(#views) { order: 8; }
  body[data-view='orbits'] #transport .track { order: 9; flex: 1 1 0; height: 38px; padding: 0 8px; }
  body[data-view='orbits'] #transport::after { content: ''; order: 7; flex-basis: 100%; }
  body[data-view='orbits'] #clock { width: auto; flex: 1; white-space: nowrap; }
  body[data-view='orbits'] #orbit-note { bottom: calc(var(--sheet, 0px) + 100px); }
  #orbit-note { left: 18px; bottom: calc(var(--sheet, 0px) + 66px); font-size: 12px; }

  .card { width: 196px; padding-left: 10px; }
  .card-h { white-space: nowrap; }
  .card-t { font-size: 16px; }
  .card-f { font-size: 12.5px; gap: 0 10px; }
  .card-role { display: none; }

  #hud { left: 20px; bottom: calc(var(--safe-bottom) + 28px); }
  #hud b { font-size: 76px; }

  /* ⌘K goes full-screen */
  #palette { padding: 0; place-items: stretch; background: rgb(8, 8, 13); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pal-box { width: 100%; height: 100%; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; background: none; padding-top: var(--safe-top); }
  .pal-input { padding: 12px 16px; gap: 10px; }
  .pal-input input { font-size: 18px; min-width: 0; }
  .pal-input kbd { display: none; }
  #pal-cancel { display: block; font-size: 15px; color: var(--site); padding: 6px 0 6px 6px; }
  #results { flex: 1; max-height: none; padding: 6px 6px calc(var(--safe-bottom) + 12px); overscroll-behavior: contain; }
  #results li { padding: 11px 10px; }
}
