/* John Abraham · mission-control theme. Static, no web fonts, no libraries. */
:root, [data-theme="dark"] {
  --bg: #070b14;
  --panel: rgba(18, 26, 44, .66);
  --line: rgba(150, 175, 220, .16);
  --line-strong: rgba(150, 175, 220, .32);
  --ink: #e8eefc;
  --ink-2: #c9d3e8;
  --muted: #94a1bc;
  --accent: #ffb547;
  --accent-ink: #1a1203;
  --glow: rgba(255, 181, 71, .35);
  --star: rgba(210, 225, 255, .13);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root {
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* Motion tokens: strong ease-out for UI */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --t-press: 140ms;
  --t-state: 220ms;
}
[data-theme="light"] {
  --bg: #f5f3ee;
  --panel: rgba(255, 255, 255, .78);
  --line: rgba(20, 32, 60, .12);
  --line-strong: rgba(20, 32, 60, .26);
  --ink: #111a2e;
  --ink-2: #2a3550;
  --muted: #555f75;
  --accent: #a95700;
  --accent-ink: #fff;
  --glow: rgba(169, 87, 0, .25);
  --star: rgba(20, 32, 60, .08);
  --shadow: 0 8px 24px rgba(20, 32, 60, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--star) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 clamp(.9rem, .86rem + .2vw, 1rem)/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.readout, time, .telemetry strong { font-family: var(--mono); font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: var(--line-strong) var(--bg); accent-color: var(--accent); }
input, textarea { caret-color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1040px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Floating dock ---------- */
.dock {
  position: sticky; top: max(12px, env(safe-area-inset-top)); z-index: 20;
  display: flex; align-items: center; gap: 2px;
  width: max-content; max-width: calc(100% - 24px);
  margin: 12px auto 0; padding: 5px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: var(--shadow);
  font-size: 13px;
}
.dock a, .theme-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--muted);
  transition: background-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out);
}
.theme-toggle { transition: background-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), transform var(--t-press) var(--ease-out); }
.theme-toggle:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .dock a:hover, .theme-toggle:hover { background: var(--line); color: var(--ink); }
}
.dock-mark { color: var(--ink) !important; font-weight: 700; }
.dock-mark svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.dock-mark svg circle { fill: var(--ink); stroke: none; }
.theme-toggle { border: 0; background: none; font: inherit; cursor: pointer; }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle svg path { fill: currentColor; stroke: none; }
.readout {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 4px; padding: 5px 10px;
  border-left: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; white-space: nowrap;
  min-width: 15.5ch;
}
.readout i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 7vw, 72px) 0 0; }
.groundtrack { position: absolute; left: 0; top: 40px; width: 100%; height: clamp(180px, 26vw, 280px); z-index: -1; pointer-events: none; }
.groundtrack path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 7; opacity: .35; vector-effect: non-scaling-stroke; }
.groundtrack .gt2 { stroke: var(--muted); opacity: .2; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(16px, 4vw, 40px); }
h1 { margin: 0; font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.25rem); line-height: 1; font-weight: 650; letter-spacing: -.035em; }
.sub { margin: 18px 0 0; max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.45; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink);
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-state) var(--ease-out), background-color var(--t-state) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.ico { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-state) var(--ease-out); }
.ico.play { width: 12px; height: 12px; fill: var(--accent); stroke: none; margin-right: .35em; vertical-align: -1px; }
a .ico:not(.play) { vertical-align: -2px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--accent); }
  .btn.solid:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
  .btn:hover .ico { transform: translateX(2px); }
}
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.orbit { position: relative; width: clamp(150px, 20vw, 220px); aspect-ratio: 1; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .55; }
.ring.r2 { stroke: var(--line-strong); stroke-dasharray: 2 5; opacity: 1; }
.sat-orbit { transform-origin: 110px 110px; transform-box: view-box; animation: orbit 14s linear infinite; }
.sat { fill: var(--accent); }
@keyframes orbit { to { transform: rotate(360deg); } }
.headshot { width: 60%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); position: relative; }

.telemetry {
  list-style: none; padding: 0; margin-top: clamp(28px, 4vw, 40px); margin-bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
}
.telemetry li { padding: 14px 18px; border-left: 1px solid var(--line); }
.telemetry li:first-child { border-left: 0; }
.telemetry strong { display: block; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; }
.telemetry span { font-size: 13px; color: var(--muted); }

/* ---------- Section labels ---------- */
.label { margin: 0 0 clamp(16px, 2.6vw, 24px); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }

/* ---------- Timeline (the backbone) ---------- */
.timeline { padding-top: clamp(48px, 7vw, 80px); --date-w: 76px; --gap: 22px; --rail-x: calc(var(--date-w) + var(--gap)); }
.tl { position: relative; }
.tl ol { list-style: none; margin: 0; padding: 0; }
.rail { position: absolute; left: var(--rail-x); top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-fill {
  position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--fill, 1));
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, transparent));
  will-change: transform;
}
@supports not (background: color-mix(in srgb, red, blue)) { .rail-fill { background: var(--accent); } }

.entry {
  position: relative;
  display: grid; grid-template-columns: var(--date-w) 1fr auto; column-gap: calc(var(--gap) * 2);
  padding: 0 0 clamp(16px, 2vw, 22px);
}
.entry time { grid-column: 1; text-align: right; font-size: 11.5px; color: var(--muted); padding-top: 3px; white-space: nowrap; transition: color var(--t-state) var(--ease-out); }
.entry .body { grid-column: 2; min-width: 0; }
.shots { grid-column: 3; }
.node {
  position: absolute; left: var(--rail-x); top: 6px; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong);
  transition: border-color var(--t-state) var(--ease-out), background-color var(--t-state) var(--ease-out);
}
.node::after { /* glow halo: opacity/transform only */
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0; transform: scale(.4); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.entry.passed .node { border-color: var(--accent); }
.entry.active .node { background: var(--accent); border-color: var(--accent); }
.entry.active .node::after { opacity: 1; transform: scale(1.6); }
.entry.active time { color: var(--accent); }
.milestone .node { border-radius: 2px; transform: rotate(45deg); width: 10px; height: 10px; margin-left: -5px; top: 5px; }
.edu .node { border-style: dashed; }

.entry h3 { margin: 0; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.entry .role { margin: 1px 0 0; color: var(--muted); font-size: .93em; }
.entry .body p { margin: 4px 0 0; color: var(--ink-2); }
.entry .body .role { margin-top: 1px; color: var(--muted); }
.missions { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: .9em; }
.missions li { position: relative; padding-left: 14px; color: var(--ink-2); line-height: 1.45; }
.missions li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--accent); }
.missions b { font-weight: 600; color: var(--ink); }
.missions span { color: var(--muted); font-family: var(--mono); font-size: .92em; white-space: nowrap; }
.entry .link { font-size: .88em; }
.entry .link, .entry .link + p { color: var(--muted) !important; }
.entry .link a { color: var(--ink); text-decoration-color: var(--accent); transition: color var(--t-state) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .entry .link a:hover { color: var(--accent); } }
.milestone .body p { margin: 0; font-size: .92em; color: var(--muted); }
.milestone b { color: var(--accent); font-weight: 600; margin-right: .3em; }
.milestone.training b { color: var(--ink); }

/* What is still ahead on the flight path: hollow node, photos rest dimmer. Text stays full contrast. */
.entry .shots { transition: opacity 400ms var(--ease-out); }
.js .entry.ahead .shots { opacity: .6; }

/* Photos: small, uniform 4:5 frames */
.shots { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-self: start; }
.shot {
  position: relative; display: block; width: 100px; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  transform: translateZ(0);
}
.shot img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; filter: saturate(.75) contrast(1.05) brightness(.93); transition: filter 300ms var(--ease-out); transform: translate3d(0, var(--py, 0px), 0); }
.shot::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 8px 1px,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 8px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 8px 1px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 8px;
  background-repeat: no-repeat; opacity: 0; transition: opacity var(--t-state) var(--ease-out);
}
.shot span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 5px;
  font-size: 11px; font-weight: 500; line-height: 1.2; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(4, 8, 18, .85));
}
.shot:focus-visible img { filter: none; }
.shot:focus-visible::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { filter: none; }
  .shot:hover::after { opacity: 1; }
}

/* ---------- Contact & footer ---------- */
.contact { padding: clamp(48px, 7vw, 80px) 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-intro p { margin: 0; color: var(--ink-2); font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.55; max-width: 38ch; }
.contact-intro .alt { margin-top: 14px; font-size: 13px; color: var(--muted); }
.contact-intro a { color: var(--ink); text-decoration-color: var(--accent); }
.contact-intro .ico { width: 13px; height: 13px; margin-left: 2px; }

/* Contact form: an "uplink" console */
.uplink {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: clamp(16px, 2.4vw, 22px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.uplink::before, .uplink::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--accent); opacity: .7; }
.uplink::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 14px; }
.uplink::after { right: -1px; bottom: -1px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 14px; }
.uplink .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.uplink button { cursor: pointer; font-family: inherit; }
.uplink button[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-status {
  display: none; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--ink-2);
}
.form-status:not(:empty) { display: inline-flex; }
.form-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.uplink[data-state="sending"] .form-status::before { background: var(--accent); animation: blink 1s steps(2, start) infinite; }
.uplink[data-state="ok"] .form-status { color: #3ddc97; }
.uplink[data-state="ok"] .form-status::before { background: #3ddc97; }
.uplink[data-state="error"] .form-status { color: #ff8a80; }
.uplink[data-state="error"] .form-status::before { background: #ff6b6b; }
[data-theme="light"] .uplink[data-state="ok"] .form-status { color: #0f7a4b; }
[data-theme="light"] .uplink[data-state="error"] .form-status { color: #b42318; }
@keyframes blink { to { visibility: hidden; } }
.fine { padding: 28px 0 40px; }
.fine p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(3, 6, 14, .9); }
.lightbox figure { margin: 0; }
.lightbox img { width: auto; height: auto; max-width: 92vw; max-height: 84vh; border-radius: 10px; }
.lightbox figcaption { max-width: 60ch; margin: 10px auto 0; font-size: 12px; text-align: center; color: #c9d3e8; }
.lightbox button {
  position: absolute; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  background: rgba(7, 11, 20, .75); color: #fff; cursor: pointer;
  transition: border-color var(--t-state) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.lightbox button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox button:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lightbox button:hover { border-color: #ffb547; } }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: calc(42vh - 20px); }
.lb-prev { left: -52px; }
.lb-next { right: -52px; }
.lightbox[open] { animation: lb-in 240ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- Motion ---------- */
/* Hero entrance */
.rise { animation: rise 700ms var(--ease-out) both; }
.hero-text .rise:nth-child(2) { animation-delay: .06s; }
.hero-text .rise:nth-child(3) { animation-delay: .12s; }
.orbit.rise { animation-delay: .1s; }
.telemetry.rise { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* JS fallback reveal (used when scroll-driven animations are unsupported) */
.reveal { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.shots.reveal { transform: translate3d(0, 22px, 0) scale(.92); transition-delay: .08s; }

/* Native scroll-driven animations (Chrome/Edge, Safari 26+) */
@supports (animation-timeline: view()) {
  .sda .entry .body, .sda .entry .shots {
    animation: sda-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%;
  }
  .sda .entry .shots { animation-name: sda-zoom; animation-range: entry 0% cover 35%; }
  .sda .shot img { animation: sda-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .sda .hero-inner { animation: sda-hero linear both; animation-timeline: scroll(root block); animation-range: 0 70vh; }
  .sda .tl { view-timeline: --tl block; }
  .sda .rail-fill { animation: sda-fill linear both; animation-timeline: --tl; animation-range: cover 45vh cover calc(100% - 75vh); }
}
@keyframes sda-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes sda-zoom { from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.9); } }
@keyframes sda-parallax { from { transform: translate3d(0, -7%, 0); } to { transform: translate3d(0, 7%, 0); } }
@keyframes sda-hero { to { opacity: .35; transform: translate3d(0, -36px, 0) scale(.97); } }
@keyframes sda-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Reduced motion: no movement, but keep gentle opacity/colour feedback */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: fade 300ms ease-out both; }
  .sat-orbit, .lightbox[open], .uplink[data-state="sending"] .form-status::before { animation: none; }
  .btn:active, .theme-toggle:active, .lightbox button:active { transform: none; }
  .ico { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .rail-fill { transform: none; }
  .shot img { transform: none; }
  .node::after { transition: opacity 200ms ease-out; transform: scale(1.6); }
}
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .dock { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root, [data-theme] { --line: var(--line-strong); --muted: var(--ink-2); }
}
/* Theme switch: short cross-fade instead of a hard flash */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .dock .dock-link { display: none; }
  .readout { border-left: 0; margin: 0; min-width: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .orbit { order: -1; width: 150px; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .uplink { grid-template-columns: 1fr; }
  .telemetry li:nth-child(3) { border-left: 0; }
  .telemetry li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .telemetry span { font-size: 12.5px; }
  .timeline { --rail-x: 7px; }
  .entry { grid-template-columns: 1fr; padding-left: 30px; column-gap: 0; }
  .entry time { grid-column: 1; text-align: left; padding: 0 0 2px; font-size: 11.5px; }
  .entry .body, .shots { grid-column: 1; }
  .node { top: 3px; }
  .milestone .node { top: 3px; }
  .shots { margin-top: 10px; }
  .shot { width: 96px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-prev, .lb-next { top: auto; bottom: -52px; }
}

@media print {
  body { background: #fff; color: #000; }
  .dock, .groundtrack, .orbit, .shots, .lightbox, .rail, .uplink { display: none !important; }
  .entry, .reveal { opacity: 1 !important; transform: none !important; }
  .entry { grid-template-columns: 70px 1fr; }
}

/* ---------- 404 ---------- */
.lost .actions { margin-top: 26px; }
.lost { align-items: flex-start; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
