/* ==========================================================================
   v7 layer: Apollo descent, landing game, then/now, destination art,
   the Life orbit, photo framing and picks perks. Loads after styles.css.
   ========================================================================== */
[hidden] { display: none !important; }

/* ---------- Apollo story ---------- */
#universe::after { content: ""; position: absolute; inset: 0; background: #03060d; opacity: var(--scene-veil, 0); pointer-events: none; }
body.in-history #universe { background-image: none; background-color: #03060d; }
body.in-history .readability { background: linear-gradient(90deg, rgba(3, 6, 13, .94) 0%, rgba(3, 6, 13, .72) 32%, rgba(3, 6, 13, .1) 64%, transparent 80%); }
@media (max-width: 760px) { body.in-history .readability { background: linear-gradient(180deg, rgba(3, 6, 13, .35), rgba(3, 6, 13, .86) 26%, rgba(3, 6, 13, .78) 64%, rgba(3, 6, 13, .3) 92%); } }

.apollo-beat { min-height: 112svh; }
.apollo-beat > * { max-width: 680px; }
.beat-open { min-height: 100svh; }
.beat-open .tell { font-size: clamp(46px, 6.4vw, 104px); max-width: 10.5em; }
.beat-dsky { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.beat-dsky > * { max-width: none; }
.beat-dsky .dsky { justify-self: end; transform: perspective(1100px) rotateY(-10deg) rotateX(4deg); }
.open-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.open-links .scroll-cue { margin-top: 0; }
.story-skip { font-size: 14px; color: var(--accent-2); text-underline-offset: 4px; }
.story-skip:hover { color: var(--text); }

.flight-note { max-width: 520px; border-top: 1px solid var(--line-2); padding-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.flight-note summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.flight-note summary::-webkit-details-marker { display: none; }
.flight-note summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: 13px; transition: transform .3s var(--ease); }
.flight-note[open] summary::before { transform: rotate(45deg); }
.flight-note p { margin-top: 12px; }
.flight-note a { display: inline-block; margin-top: 10px; color: var(--accent-2); font-size: 14px; }
.exercise-note { font-size: 13.5px; color: var(--dim); }
#landing-summary:empty { display: none; }
#landing-summary { color: #9be3b8; font-weight: 600; }

.fuel-fact { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; max-width: 560px; padding: 24px 0; border-block: 1px solid var(--line-2); }
.fuel-fact b { font-family: var(--serif); font-weight: 400; font-size: clamp(76px, 8vw, 112px); line-height: .85; color: var(--gold); text-shadow: 0 0 40px rgba(255, 176, 46, .35); }
.fuel-fact p { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.fuel-fact strong { display: block; color: var(--text); font-weight: 650; margin-bottom: 4px; }
.beat-turn { min-height: 90svh; }

/* the quick-jump rail */
.journey-nav { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(10, 13, 26, .7); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; transition: opacity .35s, transform .35s var(--ease); }
.journey-nav a { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 9px 15px; border-radius: 999px; transition: color .2s, background .2s; }
.journey-nav a:hover { color: var(--text); }
.journey-nav a.active { color: #05070E; background: var(--text); }
.journey-nav.out { opacity: 0; transform: translateX(-50%) translateY(14px); pointer-events: none; }
@media (max-width: 600px) { .journey-nav a { font-size: 12px; padding: 8px 11px; } .journey-nav a:first-child { display: none; } }

/* ---------- landing mini-game ---------- */
#landing-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; z-index: 300; }
#landing-dialog::backdrop { background: rgba(3, 6, 17, .1); }
.landing-ui { height: 100%; display: flex; flex-direction: column; padding: 28px clamp(16px, 4vw, 56px); pointer-events: none; }
.landing-ui button, .landing-ui a { pointer-events: auto; }
.landing-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.landing-top h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); margin-top: 6px; }
.landing-stats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.landing-stats p { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--muted); padding: 9px 14px; border-radius: 12px; background: rgba(8, 12, 24, .72); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); }
.landing-stats b { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--text); }
.landing-bottom { margin-top: auto; align-self: center; width: min(100%, 980px); padding: 18px 22px; border-radius: 22px; background: rgba(8, 12, 24, .86); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px #000; backdrop-filter: blur(18px); text-align: center; pointer-events: auto; }
#lab-message { font-size: 16.5px; color: var(--text); margin-bottom: 6px; }
.landing-bottom .exercise-note { margin-bottom: 14px; }
.landing-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.landing-controls .btn { font-size: 14px; padding: 12px 18px; touch-action: none; user-select: none; -webkit-user-select: none; }
.landing-controls .held { background: var(--accent); color: #fff; }
#lab-continue { margin-top: 14px; }
.landing-active { overflow: hidden; }
.landing-active .readability, .landing-active #universe::after { opacity: 0; }
.landing-active .topbar, .landing-active .journey-nav, .landing-active #fx, .landing-active #hud, .landing-active main > *:not(dialog), .landing-active .foot { visibility: hidden; }
@media (max-width: 600px) {
  .landing-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .landing-controls .btn { padding: 11px 13px; font-size: 13px; }
  #lab-left, #lab-right, #lab-thrust { flex: 1 1 28%; min-height: 54px; }
  .landing-top .btn { padding: 10px 14px; font-size: 13px; }
}

/* ---------- reveal ---------- */
.reveal .say-lead { max-width: 22em; }

/* ---------- chapters: every photo fills its frame ---------- */
.ch-photo img { object-fit: cover; background: #0b1222; }
.story.is-pinned .ch-photo { flex-basis: clamp(600px, 52vw, 780px); grid-template-columns: 1.05fr 1fr; }
.story.is-pinned .ch-photo img { height: 100%; border-radius: 14px; }
.story.is-pinned .ch-photo > div { overflow: auto; padding-right: 4px; scrollbar-width: none; }
.chapter .yr { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); letter-spacing: .02em; }
@media (max-width: 879px) { .ch-photo img { aspect-ratio: 16 / 11; } }

/* ---------- then / now ---------- */
.then-now { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 40px; }
.tn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 32px; }
.tn-head h2 { max-width: 12em; }
.tn-head p { color: var(--muted); max-width: 26em; }
.compare { position: relative; aspect-ratio: 16 / 8; border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 120px -50px #000; isolation: isolate; user-select: none; }
.compare > img, .compare-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.compare-top img { filter: saturate(.85) contrast(1.05); }
.compare-tag { position: absolute; top: 20px; z-index: 3; font-size: 13.5px; font-weight: 650; padding: 8px 14px; border-radius: 999px; background: rgba(5, 7, 14, .62); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); }
.compare-tag.l { left: 20px; } .compare-tag.r { right: 20px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: var(--text); box-shadow: 0 0 24px rgba(175, 193, 255, .9); pointer-events: none; }
.compare-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #05070E; font-weight: 800; font-size: 18px; letter-spacing: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; touch-action: pan-y; }
.compare input:focus-visible ~ .compare-handle::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.hq-strip { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1.3fr 1fr; gap: 14px; }
.hq-strip li { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: inset 0 0 0 1px var(--line); background: #0b1222; }
.hq-strip li:nth-child(odd) { aspect-ratio: auto; }
.hq-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hq-strip li:hover img { transform: scale(1.06); }
.hq-strip li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3, 6, 13, .88)); }
.hq-strip span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-size: 14.5px; line-height: 1.35; font-weight: 550; }
@media (max-width: 980px) { .hq-strip { grid-template-columns: 1fr 1fr; } .hq-strip li, .hq-strip li:nth-child(odd) { aspect-ratio: 4 / 5; } .hq-strip li:first-child { grid-column: span 2; aspect-ratio: 16 / 9; } .compare { aspect-ratio: 4 / 3.4; } }

/* ---------- life teaser fan: fill the polaroids ---------- */
.fan img { object-fit: cover; }

/* ---------- destinations ---------- */
.explore-grid { gap: 16px; }
.dest { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 14px 24px 28px; isolation: isolate; }
.dest:hover, .dest:focus-visible { transform: translateY(-6px); }
.dest > b { margin-top: 8px; }
.destination-art { position: relative; display: block; height: 230px; margin: 0 -10px 4px; pointer-events: none; }
.dest .destination-art img { position: absolute; margin: 0; width: auto; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease), opacity .4s; }
.dest:hover .destination-art img { transform: none; }
#life-earth { position: absolute; inset: 0; display: grid; place-items: center; }
#life-earth canvas { width: 210px !important; height: 210px !important; }
#life-earth.earth-fallback::before { content: ""; width: 180px; height: 180px; border-radius: 50%; background: url(assets/sss/2k_earth_daymap.jpg) 25% 50% / auto 100%; box-shadow: inset -50px -15px 40px #020918dd, 0 0 30px #3976ad44; }
.dest .arcade-world { left: 50%; top: 50%; width: 210px; transform: translate(-50%, -50%); }
.dest .alien-hello { left: 56%; top: 6px; width: 92px; opacity: 0; transform: translateY(40px) scale(.6); transition: opacity .3s, transform .55s cubic-bezier(.2, 1.5, .4, 1); z-index: 2; }
.dest:is(:hover, :focus-visible) .arcade-world { transform: translate(-50%, -50%) rotate(-6deg) scale(1.04); }
.dest:is(:hover, :focus-visible) .alien-hello { opacity: 1; transform: translateY(-6px) rotate(10deg); }
.dest .picks-crate { left: 50%; top: 52%; width: 220px; transform: translate(-50%, -50%); }
.dest:is(:hover, :focus-visible) .picks-crate { transform: translate(-50%, -56%) rotate(-3deg); }
.pick-signal { position: absolute; z-index: 2; font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--text); color: #05070E; opacity: 0; transform: translateY(18px) scale(.9); transition: opacity .35s, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.pick-signal:nth-of-type(1) { left: 10%; top: 22px; } .pick-signal:nth-of-type(2) { right: 8%; top: 54px; transition-delay: .06s; } .pick-signal:nth-of-type(3) { left: 40%; top: 4px; transition-delay: .12s; }
.dest:is(:hover, :focus-visible) .pick-signal { opacity: 1; transform: none; }
.rocket-rig { position: absolute; left: 50%; top: 4px; width: 128px; height: 200px; transform: translateX(-50%) rotate(12deg); transition: transform .6s var(--ease); }
.dest .rocket-rig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; }
.engine-jet { position: absolute; left: 39%; top: 88%; width: 22%; height: 46%; background: radial-gradient(ellipse at 50% 0, #fff 0, #e2f5ff 10%, rgba(106, 201, 255, .6) 30%, rgba(84, 125, 243, .15) 56%, transparent 72%); filter: blur(1.5px); transform-origin: 50% 0; transform: scaleY(.1); opacity: 0; transition: opacity .25s, transform .45s; }
.dest:is(:hover, :focus-visible) .rocket-rig { transform: translateX(-50%) translateY(-16px) rotate(6deg); }
.dest:is(:hover, :focus-visible) .engine-jet { opacity: 1; transform: scaleY(1); animation: jet .12s infinite alternate; }
@keyframes jet { from { scale: 1 .9; } to { scale: .9 1.06; } }
@media (hover: none) { .dest .alien-hello { opacity: 1; transform: translateY(0) scale(.8); } .pick-signal:nth-of-type(1) { opacity: 1; transform: none; } .engine-jet { opacity: .7; transform: scaleY(.5); } }
@media (max-width: 520px) {
  .explore-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dest { display: flex; padding: 8px 14px 20px; }
  .destination-art { height: 150px; margin: 0 -8px; }
  #life-earth canvas { width: 140px !important; height: 140px !important; }
  .dest .arcade-world { width: 140px; } .dest .picks-crate { width: 150px; } .dest .alien-hello { width: 60px; }
  .rocket-rig { width: 84px; height: 136px; }
  .dest b { font-size: 22px; } .dest span { font-size: 14px; }
  .pick-signal { font-size: 10.5px; padding: 4px 8px; }
}
body.paused .engine-jet { animation: none; }
@media (prefers-reduced-motion: reduce) { .dest *, .dest { transition: none !important; animation: none !important; } }

/* ---------- footer credits ---------- */
.credits { margin-top: 18px; font-size: 13px; color: var(--dim); }
.credits summary { cursor: pointer; width: max-content; }
.credits p { margin-top: 8px; max-width: 70em; line-height: 1.6; }
.credits a { color: var(--muted); }

/* ==========================================================================
   LIFE: the orbit
   ========================================================================== */
.orbit-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
body.has-orbit #universe { background: #03060d; }
body.about.has-orbit .readability { background: linear-gradient(90deg, rgba(3, 6, 13, .78) 0%, rgba(3, 6, 13, .45) 38%, transparent 66%); }
@media (max-width: 760px) { body.about.has-orbit .readability { background: rgba(3, 6, 13, .55); } }
.orbit-label { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); letter-spacing: .04em; margin-bottom: 14px; }
.life-head { min-height: 92svh; display: grid; align-content: center; }
.life-head h1 { font-size: clamp(88px, 15vw, 220px); }
.life-head .page-lede { max-width: 30em; }
.life-head .scroll-cue { margin-top: 32px; }
.orbit-stop { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.deck-wrap.orbit-stop { display: grid; }

/* my people: real photo cards, faces in frame */
.people-intro { color: var(--muted); max-width: 30em; margin: -12px 0 28px; font-size: 18px; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { padding: 12px 12px 20px; border-radius: 24px; background: rgba(12, 16, 30, .72); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .5s var(--ease), box-shadow .5s; }
.person figure { margin: 0; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #0b1222; }
.person img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.person:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px #000; }
.person:hover img { transform: scale(1.05); }
.person h4 { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; margin: 18px 8px 6px; }
.person p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 8px; }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .people-grid { gap: 10px; } .person { padding: 8px 8px 14px; border-radius: 18px; } .person h4 { font-size: 18px; margin: 12px 4px 4px; } .person p { font-size: 13.5px; margin: 0 4px; } }

/* movie night: real posters at one size */
.watchlist h3, .music h3, .people h3, .facts h3, .someday h3 { font-size: clamp(36px, 4.6vw, 64px); line-height: .95; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; margin-bottom: 20px; }
.watch-intro { color: var(--muted); max-width: 36em; margin-bottom: 32px; font-size: 18px; }
.poster-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; perspective: 1200px; }
.poster { display: flex; flex-direction: column; gap: 4px; }
.poster img, .poster-type span { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 40px -18px #000; transition: transform .6s var(--ease), box-shadow .6s; transform-origin: 50% 100%; }
.poster:hover img, .poster:hover .poster-type span, .poster-type:hover span { transform: translateY(-8px) rotateX(6deg) scale(1.03); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 60px -24px #000, 0 0 50px -10px rgba(91, 124, 255, .45); }
.poster-type span { display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(160deg, #1a1a1d, #050506 70%); font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(22px, 2.3vw, 34px); line-height: .86; letter-spacing: -0.04em; color: #f2f2f2; text-transform: uppercase; border-top: 3px solid #c21d1d; }
.poster b { margin-top: 10px; font-size: 14.5px; line-height: 1.25; }
.poster small { color: var(--dim); font-size: 13px; }
@media (max-width: 1000px) { .poster-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .poster-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .poster b { font-size: 13px; } }

/* headphones: spinning records */
.music { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: center; }
.music-copy p { color: var(--muted); max-width: 26em; font-size: 18px; }
.swatch-line { display: flex; align-items: center; gap: 16px; margin-top: 28px; color: var(--dim); font-size: 14px; }
.vinyls { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vinyl { position: relative; margin: 0; padding-top: 14%; }
.vinyl img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 50px -24px #000, 0 0 0 1px rgba(255, 255, 255, .08); }
.vinyl .disc { position: absolute; top: 0; left: 50%; width: 78%; aspect-ratio: 1; z-index: 0; border-radius: 50%; background: radial-gradient(circle, #d7dcf0 0 5%, #15161a 5.5% 15%, #222 16%, #0c0c0e 17% 30%, #18181b 31%, #0b0b0d 32% 45%, #19191c 46%, #0a0a0c 47% 60%, #17171a 61%, #09090b 62% 70.5%, transparent 71%); transform: translate(-50%, 26%); transition: transform .8s var(--ease); animation: spin 6s linear infinite; animation-play-state: paused; }
.vinyl:hover .disc, .vinyl:focus-within .disc { transform: translate(-50%, -4%); animation-play-state: running; }
.vinyl figcaption { margin-top: 14px; font-weight: 700; font-size: 17px; }
@media (max-width: 860px) { .music { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .vinyl .disc { animation: none; } }

.someday.orbit-stop { min-height: 110svh; }
.life-contact { padding-top: 80px; }

/* ==========================================================================
   PICKS: what you get
   ========================================================================== */
.perk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.perk div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.perk div:first-child { background: linear-gradient(160deg, rgba(91, 124, 255, .22), rgba(91, 124, 255, .06)); box-shadow: inset 0 0 0 1px rgba(143, 168, 255, .35); }
.perk span { display: block; font-size: 12px; font-weight: 650; color: var(--accent-2); margin-bottom: 3px; }
.perk div:last-child span { color: var(--dim); }
.perk b { font-size: 15px; line-height: 1.3; font-weight: 650; }
.picks-why { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.why-grid li { list-style: none; padding: 22px; border-radius: 20px; background: rgba(12, 16, 30, .6); box-shadow: inset 0 0 0 1px var(--line); }
.why-grid b { display: block; font-size: 18px; margin-bottom: 6px; }
.why-grid p { color: var(--muted); font-size: 15px; }
.why-grid { padding: 0; margin: 0; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }
.page-lede strong { color: var(--text); font-weight: 650; }
.beat-dsky .dsky { align-self: end; margin-top: 16vh; }
@media (max-width: 860px) { .beat-dsky .dsky { margin-top: 0; justify-self: start; transform: none; } }
@media (max-width: 860px) { .beat-dsky { grid-template-columns: 1fr; } .beat-dsky .dsky { width: min(100%, 340px); } }
@media (max-width: 760px) {
  body.in-history .readability { background: linear-gradient(180deg, rgba(3, 6, 13, .2), rgba(3, 6, 13, .5) 35%, rgba(3, 6, 13, .72) 70%, rgba(3, 6, 13, .4)); }
  .apollo-beat .tell, .apollo-beat .say, .apollo-beat .quote { text-shadow: 0 2px 18px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .6); }
}

/* ---------- live descent telemetry ---------- */
.telemetry { position: fixed; right: var(--gutter); bottom: 86px; z-index: 30; width: 300px; padding: 14px 16px 12px; border-radius: 18px; background: rgba(6, 9, 18, .62); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
body.in-history .telemetry { opacity: 1; transform: none; }
.landing-active .telemetry { visibility: hidden; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.tm-grid p { display: grid; gap: 2px; }
.tm-grid span { font-size: 11.5px; color: var(--dim); }
.tm-grid b { font-family: var(--mono); font-weight: 700; font-size: 16px; color: #9be3b8; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tm-call { display: none; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.telemetry.has-call .tm-call { display: grid; gap: 2px; }
.tm-call span { font-size: 11.5px; color: var(--accent-2); font-weight: 650; }
.tm-call q { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--text); quotes: none; }
.tm-call.pop q { animation: callIn .6s var(--ease) both; }
@keyframes callIn { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
@media (max-width: 760px) {
  .telemetry { left: 12px; right: 12px; top: 70px; bottom: auto; width: auto; padding: 10px 12px; border-radius: 14px; }
  .tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tm-grid span { font-size: 9.5px; } .tm-grid b { font-size: 12.5px; }
  .tm-call q { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tm-call.pop q { animation: none; } }
@media (min-width: 761px) { .telemetry { top: 88px; bottom: auto; } }
body.dsky-on .telemetry { opacity: 0; }
@media (max-width: 760px) {
  .telemetry { top: auto; bottom: 64px; padding: 8px 12px; }
  .tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tm-call { margin-top: 6px; padding-top: 6px; }
  .tm-call q { font-size: 15px; }
}

/* ---------- Life: the garage ---------- */
.garage-intro { color: var(--muted); max-width: 32em; margin-bottom: 30px; font-size: 18px; }
.car-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.car-card { position: relative; padding: 10px 10px 18px; border-radius: 22px; background: rgba(12, 16, 30, .72); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .5s var(--ease), box-shadow .5s; }
.car-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 34px 70px -34px #000; }
.car-card figure { margin: 0; aspect-ratio: 16 / 10; border-radius: 15px; overflow: hidden; background: #0b1222; }
.car-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.car-card:hover img { transform: scale(1.06); }
.car-tag { position: absolute; top: 20px; left: 20px; z-index: 2; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(5, 7, 14, .72); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-2); }
.car-card b { display: block; font-size: 21px; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; margin: 16px 8px 5px; }
.car-card span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 8px; }
.future { margin-top: clamp(60px, 7vw, 90px); }
.future-say { color: var(--muted); max-width: 36em; font-size: 18px; line-height: 1.6; }
.future-row { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; }
.future-row li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(12, 16, 30, .72); box-shadow: inset 0 0 0 1px var(--line); }
.future-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #fff; }
.future-logo img { width: 72%; height: 72%; object-fit: contain; }
.future-row b { font-size: 15.5px; }
.future-row small { color: var(--dim); font-family: var(--mono); font-size: 11.5px; margin-left: 2px; }
.future-fine { margin-top: 18px; font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .car-row { grid-template-columns: 1fr; } .car-card figure { aspect-ratio: 16 / 9; } }

/* ---------- secret hunt ---------- */
.secret-pop { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); z-index: 400; display: flex; gap: 14px; align-items: center; width: min(92vw, 440px); padding: 14px 18px; border-radius: 18px; background: rgba(9, 13, 26, .92); box-shadow: inset 0 0 0 1px rgba(143, 168, 255, .4), 0 30px 70px -20px #000, 0 0 60px -20px rgba(91, 124, 255, .8); backdrop-filter: blur(16px); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), opacity .4s; opacity: 0; pointer-events: none; }
.secret-pop.show { transform: translate(-50%, 0); opacity: 1; }
.secret-pop i { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: linear-gradient(160deg, var(--gold), #c87d1a); color: #180f02; font-size: 20px; font-style: normal; box-shadow: 0 0 24px rgba(255, 176, 46, .5); }
.secret-pop b { display: block; font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.secret-pop strong { display: block; font-size: 17px; margin: 2px 0 1px; }
.secret-pop span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.secret-pop em { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.secret-bar { height: 6px; margin: 14px 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.secret-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .6s var(--ease); }
.secrets-sub2 { color: var(--dim); font-size: 14px; margin-bottom: 18px; }
.race-car { position: fixed; left: -40vw; z-index: 390; width: min(300px, 46vw); pointer-events: none; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .6)); animation: raceby 2.6s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes raceby { from { transform: translateX(0) } to { transform: translateX(185vw) } }
@media (prefers-reduced-motion: reduce) { .race-car { display: none; } .secret-pop { transition: opacity .3s; } }

/* ---------- Moon Lander (arcade) ---------- */
#ld-cv { display: block; width: 100%; border-radius: 16px; background: #04060d; box-shadow: inset 0 0 0 1px var(--line); outline-offset: 3px; touch-action: none; }
.ld-msg { margin: 14px 0; font-size: 15px; color: var(--muted); }
.ld-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-touch { min-width: 76px; touch-action: none; user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) { .ld-touch { display: none; } }

/* ---------- Meltdown ---------- */
.melt-stage { min-height: 360px; display: grid; }
.melt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: center; }
.rack { position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px; background: linear-gradient(180deg, #1a2234, #0d1322); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .15s, box-shadow .3s; overflow: hidden; }
.rack:active { transform: scale(.96); }
.rack-lights { position: absolute; inset: 14% 22%; display: grid; gap: 14%; }
.rack-lights i { border-radius: 4px; background: #121a2b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); position: relative; }
.rack-lights i::after { content: ""; position: absolute; right: 8%; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 8px #39d98a; }
.rack-fire { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(34px, 6vw, 56px); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s cubic-bezier(.2, 1.6, .4, 1); }
.rack.burning { box-shadow: inset 0 0 0 2px #ff7a45, 0 0 34px -6px #ff7a45; }
.rack.burning .rack-fire { opacity: 1; transform: scale(1); animation: flicker .35s infinite alternate; }
.rack.burning .rack-lights i::after { background: #ff5d3a; box-shadow: 0 0 8px #ff5d3a; }
.rack.saved { box-shadow: inset 0 0 0 2px #39d98a, 0 0 30px -8px #39d98a; }
.rack.dead { background: #090c14; filter: grayscale(1) brightness(.6); }
@keyframes flicker { from { transform: scale(1) rotate(-3deg) } to { transform: scale(1.12) rotate(3deg) } }
@media (prefers-reduced-motion: reduce) { .rack.burning .rack-fire { animation: none; } }
.melt-grid { max-width: 620px; width: 100%; margin: 0 auto; }
#g-land, #g-melt { align-content: start; }

/* ---------- small-screen fixes (audit) ---------- */
.life-tease { overflow: clip; }
.arcade-extra > * { min-width: 0; }
.secret-list li { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .arcade-tabs { display: flex; flex-wrap: wrap; border-radius: 22px; max-width: 100%; }
  .arcade-tabs button { padding: 10px 14px; font-size: 14px; flex: 1 1 auto; }
}

/* ---------- Apollo: the editor's cut + film texture ---------- */
#scene-cut { position: fixed; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
#scene-cut.go { animation: sceneCut .7s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes sceneCut { 0% { opacity: 1 } 100% { opacity: 0 } }
body.apollo-orbit .telemetry { opacity: 0 !important; }
body.in-history #universe::before { content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-1%, 3%) } 100% { transform: translate(3%, -1%) } }
body.in-history .readability { box-shadow: inset 0 0 220px 40px rgba(0, 0, 0, .55); }
@media (prefers-reduced-motion: reduce) { body.in-history #universe::before { animation: none; } #scene-cut.go { animation: none; } }

/* ---------- Picks: aligned cards on desktop ---------- */
@media (min-width: 981px) {
  .pick-grid { grid-template-rows: repeat(8, auto); align-items: start; }
  .pick { display: grid; grid-template-rows: subgrid; grid-row: span 8; gap: 14px; align-content: start; }
  .pick .btn { margin-top: 6px; }
}
.pick h3 { font-size: clamp(30px, 2.6vw, 40px); }
.pick .pick-hook { font-size: 21px; }
.pick p { font-size: 15.5px; line-height: 1.55; }
.perk { align-items: stretch; }
.perk div { display: flex; flex-direction: column; justify-content: flex-start; }
.code-slot { min-height: 0; }
.why-grid { gap: 28px; margin-top: 8px; }
.why-grid li { background: none; box-shadow: none; border-radius: 0; padding: 2px 0 2px 18px; border-left: 2px solid rgba(143, 168, 255, .55); }
.why-grid b { font-size: 16.5px; margin-bottom: 4px; }
.why-grid p { font-size: 14.5px; }
.picks-why { padding-bottom: 28px; }
.pick .pick-fine { font-size: 13px; line-height: 1.5; }

/* ---------- smart photo frames: fill when it fits, otherwise show the whole photo over a soft blur of itself ---------- */
.ph { position: relative; overflow: hidden; border-radius: 14px; background: #0b1222; isolation: isolate; }
.ph > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
.ph .ph-bg { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: 0; object-fit: cover; filter: blur(26px) brightness(.55) saturate(1.25); transform: none; }
.ph.fit-whole > img:not(.ph-bg) { object-fit: contain; }
.story.is-pinned .ch-photo .ph { height: 100%; min-height: 0; }
.ch-photo .ph { aspect-ratio: 4 / 3; }
.story.is-pinned .ch-photo .ph { aspect-ratio: auto; }
@media (max-width: 879px) { .ch-photo .ph { aspect-ratio: 16 / 11; } }

/* ---------- people: Tessa gets the featured card ---------- */
.person-feature { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.person-feature figure { aspect-ratio: 4 / 4.4; }
.person-feature h4 { margin-top: 8px; }
.person-feature p { font-size: 15.5px; }
.person-note { margin-top: 10px !important; color: var(--dim) !important; font-size: 14px !important; }
.person-wide figure { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .person-feature { grid-column: span 2; } }
@media (max-width: 520px) { .person-feature { grid-template-columns: 1fr; } .person-feature figure { aspect-ratio: 4 / 3; } }
.people-grid { grid-auto-flow: dense; }
.person-wide { grid-column: span 2; }
@media (max-width: 520px) { .person-wide { grid-column: span 2; } }
.person-feature { align-items: stretch; } .person-feature figure { aspect-ratio: auto; min-height: 300px; height: 100%; }
.xp-logo { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; vertical-align: -10px; border-radius: 10px; background: #fff; overflow: hidden; flex: none; }
.xp-logo img { width: 84%; height: 84%; object-fit: contain; }
.xp-logo-dark { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.xp-logo-dark img { width: 58%; }
body.recruiter .xp-logo { box-shadow: inset 0 0 0 1px #e4e6ec; }

/* ---------- v10: chapter cards built around each photo's shape ---------- */
/* landscape photos sit on top of the text, portrait photos sit beside it, so nothing gets squeezed */
.ch-photo .ph { aspect-ratio: 16 / 10; }
.ch-tall .ph { aspect-ratio: 4 / 5; }
@media (min-width: 640px) and (max-width: 879px) { .ch-photo .ph, .ch-tall .ph { aspect-ratio: 4 / 3.4; } }
.story.is-pinned .ch-photo { flex: 0 0 clamp(440px, 36vw, 580px); display: flex; flex-direction: column; gap: 18px; padding: 18px 18px 26px; }
.story.is-pinned .ch-photo .ph { flex: 1 1 auto; height: auto; min-height: 200px; aspect-ratio: auto; border-radius: 14px; }
.story.is-pinned .ch-photo > div { flex: 0 0 auto; padding: 0 10px; overflow: visible; }
.story.is-pinned .ch-tall { flex: 0 0 auto; flex-direction: row; gap: 26px; padding: 18px 30px 18px 18px; }
.story.is-pinned .ch-tall .ph { flex: none; height: 100%; aspect-ratio: 3 / 4; }
.story.is-pinned .ch-tall > div { width: clamp(280px, 22vw, 340px); padding: 10px 0; justify-content: center; overflow: auto; }
@media (max-height: 820px) { .story.is-pinned .ch-photo p { font-size: 15px; line-height: 1.5; } .story.is-pinned .ch-photo h3 { font-size: 26px; } }

/* ---------- v10: HQ + events, one consistent 3:2 grid ---------- */
.hq-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hq-grid li { display: grid; gap: 10px; }
.hq-grid figure { margin: 0; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #0b1222; box-shadow: inset 0 0 0 1px var(--line); }
.hq-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.hq-grid li:hover img { transform: scale(1.05); }
.hq-grid span { font-size: 14.5px; line-height: 1.4; color: var(--muted); padding: 0 4px; }
@media (max-width: 980px) { .hq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hq-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .hq-grid li { scroll-snap-align: start; }
}

/* ---------- v10: ticker tiles ---------- */
.future-logo { border-radius: 12px; background: none; width: 48px; height: 48px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.future-logo img { width: 100%; height: 100%; object-fit: cover; }
.future-row small { padding: 3px 7px; border-radius: 6px; background: rgba(46, 85, 212, .18); color: #AFC0FF; font-weight: 600; }
.hq-grid span { text-shadow: 0 1px 8px #000, 0 0 2px #000; }

/* ---------- v11: the descent gets tense ---------- */
.tm-grid p:nth-child(3) b::before { content: "♥"; display: inline-block; margin-right: 6px; color: #ff6b7d; animation: hb var(--beat, .55s) ease-out infinite; }
@keyframes hb { 0% { transform: scale(1.25); } 40% { transform: scale(.9); } 100% { transform: scale(1); } }
.telemetry.tm-alarm { box-shadow: inset 0 0 0 1px rgba(255, 196, 92, .55), 0 0 40px rgba(255, 170, 60, .12); }
.telemetry.tm-alarm .tm-call span { color: #ffc45c; }
.telemetry.tm-hot { box-shadow: inset 0 0 0 1px rgba(255, 92, 110, .65), 0 0 50px rgba(255, 60, 80, .18); animation: tmHot 1s ease-in-out infinite; }
.telemetry.tm-hot #tm-fuel { color: #ff8a96; }
.telemetry.tm-hot .tm-call span { color: #ff8a96; }
@keyframes tmHot { 50% { box-shadow: inset 0 0 0 1px rgba(255, 92, 110, .9), 0 0 70px rgba(255, 60, 80, .3); } }
.beat-fuel { display: grid; gap: 22px; align-content: center; }
.fuel-call { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; font-size: clamp(40px, 7vw, 96px); color: #ffd297; text-shadow: 0 0 40px rgba(255, 170, 60, .35); }
.fuel-call.hot { color: #ff8a96; text-shadow: 0 0 50px rgba(255, 60, 80, .45); }
.in .fuel-call { animation: callSlam .7s cubic-bezier(.2, .9, .2, 1.2) both; }
@keyframes callSlam { from { opacity: 0; transform: scale(1.25); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.go.go-contact { font-size: clamp(56px, 11vw, 168px); line-height: .9; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .tm-grid p:nth-child(3) b::before, .telemetry.tm-hot, .in .fuel-call { animation: none; } }

/* ---------- v11: eight postcards, two even rows ---------- */
@media (min-width: 1001px) { .postcards { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

/* ---------- v11: shorter Tessa card, text centered beside her photo ---------- */
.person-feature > div { align-self: center; padding: 12px 28px 12px 4px; }
.person-feature h4 { font-size: clamp(26px, 2.4vw, 36px); }
.person-feature p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
@media (max-width: 520px) { .person-feature > div { padding: 0; } }

/* ---------- v11: Tessa as a regular card with a royal-blue ring; crew spans the full row ---------- */
.person-fav { box-shadow: inset 0 0 0 1.5px rgba(46, 85, 212, .85), 0 0 60px -20px rgba(46, 85, 212, .55); }
.person-fav figure { position: relative; }
.fav-tag { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2E55D4; color: #fff; font-style: normal; font-size: 16px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.person-wide { grid-column: 1 / -1; }
.person-wide figure { aspect-ratio: 21 / 9; }
@media (max-width: 900px) { .person-wide figure { aspect-ratio: 16 / 10; } }

/* ---------- v11: six-column people grid so two crew cards split the last row evenly ---------- */
.people-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.person { grid-column: span 2; }
.person-wide { grid-column: span 3; }
.person-wide figure { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person, .person-wide { grid-column: span 1; }
  .person-wide figure { aspect-ratio: 1 / 1; }
}
