:root {
  color-scheme: dark;
  --bg: #040914;
  --bg-2: #07111f;
  --panel: rgba(8, 20, 36, .9);
  --panel-2: #0c1c30;
  --line: rgba(148, 190, 226, .17);
  --line-strong: rgba(148, 190, 226, .32);
  --text: #f3f8ff;
  --muted: #91a9c2;
  --cyan: #70d7ff;
  --blue: #369be0;
  --yellow: #ffd166;
  --coral: #ff8a66;
  --green: #7ae582;
  --purple: #b79cff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --topbar-height: 76px;
  --transport-height: 210px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 50% 20%, #132b43 0, var(--bg) 39%, #02050b 100%); font-family: var(--sans); }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; color: #07111f; background: var(--yellow); font-weight: 900; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { position: sticky; z-index: 50; top: 0; min-height: var(--topbar-height); padding: 11px 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(3, 8, 17, .84); backdrop-filter: blur(24px); }
.brand { min-width: 0; display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand-mark { padding: 8px 9px; border-radius: 8px; color: var(--bg); background: var(--cyan); font-size: 13px; font-weight: 950; letter-spacing: .06em; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; }
.brand-copy strong { overflow: hidden; font-family: var(--serif); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mode-switcher { padding: 4px; display: flex; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 24, 40, .75); }
.mode-button { min-height: 36px; padding: 7px 16px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.mode-button:hover { color: var(--text); }
.mode-button.active { color: #06101b; background: var(--text); box-shadow: 0 5px 22px rgba(198, 226, 255, .15); }
.topbar-links { justify-self: end; display: flex; align-items: center; gap: 18px; }
.report-link { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.report-link:hover { color: var(--cyan); }

.observatory { min-height: calc(100vh - var(--topbar-height) - var(--transport-height)); padding: 22px 24px 18px; display: grid; grid-template-columns: minmax(290px, 1fr) minmax(340px, .88fr) minmax(290px, 1fr); gap: 18px; }
.instrument-panel, .solar-stage { min-width: 0; }
.instrument-panel { padding: clamp(20px, 2vw, 34px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, rgba(14, 31, 52, .92), rgba(5, 14, 27, .92)); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 28px 80px rgba(0,0,0,.22); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.kicker { margin: 0 0 7px; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.panel-header h1, .panel-header h2, .stage-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(23px, 2vw, 34px); font-weight: 500; line-height: 1; }
.live-chip, .sample-chip, .clip-badge, .sync-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(4, 12, 22, .6); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.live-chip i, .sync-badge i { width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(122, 229, 130, .09); }
.primary-reading { margin-top: clamp(23px, 3vh, 42px); display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.primary-reading span { font-family: var(--serif); font-size: clamp(65px, 7.2vw, 118px); font-weight: 500; line-height: .86; letter-spacing: -.07em; }
.primary-reading small { color: var(--yellow); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.sample-status { min-height: 18px; margin: 13px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.chart-shell { margin-top: clamp(20px, 3vh, 34px); }
#luxChart { width: 100%; height: auto; overflow: visible; }
.grid path { fill: none; stroke: rgba(142, 185, 222, .13); stroke-dasharray: 4 8; }
.grid text, .axis-labels text { fill: #68839f; font: 700 14px var(--sans); text-anchor: end; }
.axis-labels text:first-child { text-anchor: start; }
.axis-labels text:nth-child(2) { text-anchor: middle; }
.event-line { fill: none; stroke: url(#eventStroke); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.event-line-glow { opacity: .17; stroke-width: 19; filter: url(#lineGlow); }
.control-layer { opacity: 0; transition: opacity .35s ease; }
.show-controls .control-layer { opacity: 1; }
.control-band { fill: url(#controlFill); }
.control-line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 10 10; opacity: .65; }
.chart-cursor path { stroke: rgba(255,255,255,.42); stroke-width: 2; stroke-dasharray: 4 7; }
.chart-cursor circle { fill: var(--yellow); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(255,209,102,.7)); }
.chart-events path { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 6 8; opacity: .75; }
.chart-events text { fill: var(--coral); font: 900 11px var(--sans); letter-spacing: .08em; }
.chart-legend { margin-top: -2px; display: flex; gap: 20px; color: var(--muted); font-size: 10px; font-weight: 800; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 22px; height: 3px; display: block; border-radius: 4px; background: var(--yellow); }
.chart-legend .legend-control { background: var(--cyan); opacity: .65; }
.control-key { opacity: .28; transition: opacity .3s; }
.show-controls .control-key { opacity: 1; }
.earth-note { margin-top: clamp(22px, 3vh, 38px); padding-top: 18px; display: flex; align-items: flex-start; gap: 17px; border-top: 1px solid var(--line); }
.evidence-level { flex: 0 0 auto; padding: 7px 9px; border-radius: 7px; color: #06110b; background: var(--green); font-size: 9px; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.evidence-level.suggestive { color: #1c1404; background: var(--yellow); }
.evidence-level.context { color: #081521; background: var(--cyan); }
.earth-note p { margin: 0; color: #bfd0e1; font-family: var(--serif); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.45; }

.solar-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.stage-heading { width: 100%; padding: 4px 10px 15px; display: none; }
.video-frame { position: relative; width: min(100%, 54vh); min-width: 290px; flex: 1; overflow: hidden; border: 1px solid rgba(220, 237, 255, .2); border-radius: 31px; background: #020307; box-shadow: 0 35px 100px rgba(0,0,0,.55), 0 0 80px rgba(255, 205, 92, .055); isolation: isolate; }
.video-frame::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 42%, transparent 8%, rgba(0,0,0,.09) 39%, rgba(0,0,0,.52) 100%); }
.video-poster, .event-video { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.video-poster { z-index: -2; opacity: .72; transform: scale(1.015); transition: opacity .4s ease, transform 7s ease; }
.event-video { z-index: -1; opacity: 0; background: #000; transition: opacity .25s ease; }
.media-ready .event-video { opacity: 1; }
.media-ready .video-poster { opacity: 0; }
.video-vignette { position: absolute; z-index: 2; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 100px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,255,255,.035); }
.reticle { position: absolute; z-index: 3; inset: 12%; pointer-events: none; opacity: .28; }
.reticle::before, .reticle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 14px; height: 14px; border: 1px solid var(--text); border-radius: 50%; transform: translate(-50%, -50%); }
.reticle::after { width: 3px; height: 3px; background: var(--text); }
.reticle i { position: absolute; width: 23px; height: 23px; border-color: rgba(255,255,255,.72); }
.reticle i:nth-child(1) { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.reticle i:nth-child(2) { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.reticle i:nth-child(3) { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }
.reticle i:nth-child(4) { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.stage-meta { position: absolute; z-index: 5; top: 18px; right: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clip-badge { color: var(--text); }
.sync-badge { background: rgba(4, 12, 22, .78); }
.sync-badge i { background: var(--yellow); }
.visual-fallback, .gap-card, .epilogue-card { position: absolute; z-index: 4; top: 50%; right: 12%; left: 12%; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(3, 9, 18, .74); text-align: center; transform: translateY(-50%); backdrop-filter: blur(14px); }
.media-ready .visual-fallback { opacity: 0; pointer-events: none; }
.gap-state .visual-fallback, .epilogue-state .visual-fallback { opacity: 0; pointer-events: none; }
.fallback-mark { width: 42px; height: 42px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--yellow); font-size: 22px; }
.visual-fallback strong, .gap-card strong, .epilogue-card strong { display: block; font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); font-weight: 500; }
.visual-fallback p, .gap-card p, .epilogue-card p { margin: 10px auto 0; color: #b1c3d5; font-size: 12px; line-height: 1.55; }
.gap-card > span, .epilogue-card > span { margin-bottom: 8px; display: block; color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.epilogue-card { background: linear-gradient(145deg, rgba(7,17,31,.82), rgba(20,32,50,.72)); }
[hidden] { display: none !important; }
.video-clock { position: absolute; z-index: 5; right: 16px; bottom: 18px; left: 16px; display: flex; align-items: baseline; justify-content: space-between; font-variant-numeric: tabular-nums; }
.video-clock time { font-family: var(--serif); font-size: clamp(31px, 4vw, 62px); line-height: 1; letter-spacing: -.04em; text-shadow: 0 3px 24px #000; }
.video-clock span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; }

.sensor-grid { margin-top: clamp(25px, 3vh, 42px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.sensor-grid article { padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(4, 13, 25, .52); }
.sensor-grid article > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.sensor-grid strong { margin-top: 15px; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.sensor-grid b { font-family: var(--serif); font-size: clamp(29px, 3vw, 43px); font-weight: 500; letter-spacing: -.04em; }
.sensor-grid small { color: var(--muted); font-size: 10px; font-weight: 800; }
.sensor-rule { height: 3px; margin-top: 16px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.08); }
.sensor-rule i { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--cyan); transition: width .3s ease; }
.temperature-rule i { background: var(--coral); }
.humidity-rule i { background: var(--cyan); }
.dew-rule i { background: var(--purple); }
.pressure-rule i { background: var(--green); }
.story-card { margin-top: clamp(18px, 3vh, 34px); padding: clamp(20px, 2.3vw, 32px); border: 1px solid rgba(255, 209, 102, .25); border-radius: 22px; background: linear-gradient(145deg, rgba(255,209,102,.085), rgba(13,30,49,.62)); }
.story-card > span { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.story-card h3 { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(23px, 2.5vw, 37px); font-weight: 500; line-height: 1.08; }
.story-card p { min-height: 48px; margin: 0; color: #b6c8d9; font-size: 13px; line-height: 1.55; }
.confidence-line { margin-top: 20px; padding-top: 14px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 9px; text-transform: uppercase; }
.confidence-line span { color: var(--muted); }
.confidence-line strong { color: var(--green); text-align: right; }
.data-table-toggle { width: 100%; min-height: 44px; margin-top: 14px; padding: 8px 2px; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.data-table-panel { margin-top: 10px; max-height: 195px; overflow: auto; }
.data-table-panel table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table-panel caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.data-table-panel th, .data-table-panel td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.data-table-panel th { color: var(--muted); text-align: left; font-weight: 600; }
.data-table-panel td { text-align: right; font-variant-numeric: tabular-nums; }

.transport { position: sticky; z-index: 40; bottom: 0; min-height: var(--transport-height); padding: 10px 26px 15px; border-top: 1px solid var(--line); background: rgba(3, 8, 17, .93); box-shadow: 0 -22px 70px rgba(0,0,0,.38); backdrop-filter: blur(24px); }
.chapter-strip { height: 38px; display: flex; justify-content: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.chapter-strip::-webkit-scrollbar { display: none; }
.chapter-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid transparent; border-radius: 999px; color: #738ba4; background: transparent; font-size: 9px; font-weight: 850; cursor: pointer; }
.chapter-button:hover { color: var(--text); }
.chapter-button.active { border-color: rgba(255,209,102,.26); color: var(--yellow); background: rgba(255,209,102,.07); }
.timeline { position: relative; max-width: 1500px; margin: 0 auto; padding: 16px 0 11px; }
.timeline-labels { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; color: #69829a; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.timeline-tracks { position: relative; height: 29px; margin-top: 7px; border-radius: 5px; background: rgba(255,255,255,.025); }
.eclipse-track, .camera-track, .data-track { position: absolute; right: 0; left: 0; height: 5px; overflow: hidden; border-radius: 5px; }
.eclipse-track { top: 0; background: rgba(183, 156, 255, .08); }
.eclipse-track span { height: 100%; display: block; background: rgba(183,156,255,.34); }
.camera-track { top: 11px; }
.camera-segment { position: absolute; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--yellow), var(--coral)); opacity: .78; }
.data-track { top: 22px; background: rgba(112,215,255,.06); }
.data-track span { position: absolute; height: 100%; border-radius: 5px; background: var(--cyan); opacity: .72; }
.event-marker { position: absolute; z-index: 2; top: -3px; width: 1px; height: 34px; background: rgba(255,255,255,.36); }
.event-marker.maximum { width: 2px; background: var(--coral); box-shadow: 0 0 12px rgba(255,138,102,.5); }
.playhead { position: absolute; z-index: 3; top: -5px; left: 0; width: 2px; height: 39px; background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.78); pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: -3px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.timeline-input { position: absolute; z-index: 5; right: 0; bottom: 7px; left: 0; width: 100%; height: 38px; margin: 0; opacity: 0; cursor: ew-resize; }
.control-row { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.primary-controls, .secondary-controls { display: flex; align-items: center; gap: 8px; }
.secondary-controls { justify-self: end; }
.play-button, .icon-button { min-height: 43px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(13,30,49,.8); font-size: 11px; font-weight: 850; cursor: pointer; }
.play-button { min-width: 100px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #06101b; background: var(--text); }
.play-button:hover, .icon-button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.play-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.is-playing .play-icon { width: 10px; height: 11px; border: 0; border-right: 3px solid currentColor; border-left: 3px solid currentColor; }
.time-readout { display: grid; grid-template-columns: auto auto auto; align-items: baseline; gap: 7px; color: var(--text); font-family: var(--serif); font-size: 17px; font-variant-numeric: tabular-nums; text-align: center; }
.time-readout i { color: #4f6881; font-style: normal; }
.time-readout small { grid-column: 1 / -1; color: #6f88a0; font-family: var(--sans); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.secondary-controls label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.secondary-controls select { min-height: 43px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--panel-2); font-weight: 800; }

.experience-footer { padding: 52px max(24px, calc((100vw - 1450px) / 2)); color: var(--muted); background: #02050b; font-size: 11px; line-height: 1.55; }
.experience-footer strong { color: var(--text); }
.experience-footer div { margin-top: 17px; display: flex; gap: 22px; }
.experience-footer a { color: var(--cyan); font-weight: 800; }
.noscript-message { position: fixed; z-index: 100; right: 20px; bottom: 20px; left: 20px; padding: 20px; color: #07111f; background: var(--yellow); text-align: center; font-weight: 800; }

body.mode-explore .story-card { border-color: var(--line); background: rgba(4,13,25,.5); }
body.mode-cinema .light-panel, body.mode-cinema .environment-panel, body.mode-cinema .chapter-strip, body.mode-cinema .timeline-labels, body.mode-cinema .experience-footer { opacity: 0; pointer-events: none; }
body.mode-cinema .topbar { position: fixed; right: 0; left: 0; border: 0; background: transparent; backdrop-filter: none; }
body.mode-cinema .topbar .brand, body.mode-cinema .topbar .topbar-links { opacity: 0; pointer-events: none; }
body.mode-cinema .topbar .mode-switcher { grid-column: 1 / -1; justify-self: center; opacity: .3; transition: opacity .2s ease; }
body.mode-cinema .topbar .mode-switcher:hover, body.mode-cinema .topbar .mode-switcher:focus-within { opacity: 1; }
body.mode-cinema .observatory { grid-template-columns: 1fr; min-height: calc(100vh - 115px); padding: 12px; }
body.mode-cinema .solar-stage { grid-column: 1; }
body.mode-cinema .video-frame { width: min(100%, 63vh); }
body.mode-cinema .transport { min-height: 98px; background: linear-gradient(transparent, rgba(2,5,11,.88)); border: 0; }
body.mode-cinema .control-row { margin-top: 21px; }
body.mode-controls .control-key { opacity: 1; }

@media (max-width: 1180px) {
  :root { --transport-height: 202px; }
  .observatory { grid-template-columns: minmax(260px, .9fr) minmax(320px, 1fr); }
  .environment-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .environment-panel .panel-header { grid-column: 1 / -1; }
  .sensor-grid { margin-top: 0; }
  .story-card { margin-top: 0; }
  .data-table-toggle, .data-table-panel { grid-column: 1 / -1; }
  .video-frame { width: min(100%, 59vh); min-height: 660px; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 66px; --transport-height: 235px; }
  .topbar { padding: 9px 13px; grid-template-columns: auto 1fr; gap: 10px; }
  .brand-copy, .topbar-links { display: none; }
  .mode-switcher { justify-self: end; max-width: 100%; overflow-x: auto; }
  .mode-button { min-height: 40px; padding-inline: 12px; }
  .observatory { min-height: auto; padding: 12px; display: flex; flex-direction: column; }
  .solar-stage { order: -1; }
  .stage-heading { display: block; }
  .video-frame { width: 100%; min-width: 0; min-height: 0; flex: none; aspect-ratio: 9 / 13.2; border-radius: 25px; }
  .instrument-panel { padding: 22px; border-radius: 23px; }
  .primary-reading span { font-size: clamp(72px, 22vw, 118px); }
  .environment-panel { display: block; }
  .environment-panel .panel-header { display: flex; }
  .sensor-grid { margin-top: 26px; }
  .story-card { margin-top: 18px; }
  .transport { padding: 8px 12px 13px; }
  .chapter-strip { justify-content: flex-start; }
  .timeline { padding-top: 17px; }
  .control-row { grid-template-columns: 1fr auto; gap: 10px; }
  .primary-controls { min-width: 0; overflow-x: auto; }
  .mute-button { display: none; }
  .time-readout { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .secondary-controls label, #fullscreenButton { display: none; }
  .secondary-controls { grid-column: 2; grid-row: 1; }
  .experience-footer { padding: 38px 22px 250px; }
  .experience-footer div { flex-direction: column; gap: 9px; }
  body.mode-cinema .observatory { padding: 0; }
  body.mode-cinema .stage-heading { display: none; }
  body.mode-cinema .video-frame { width: 100%; height: calc(100vh - 98px); aspect-ratio: auto; border: 0; border-radius: 0; }
}

@media (max-width: 480px) {
  .mode-button { padding-inline: 9px; font-size: 10px; }
  .video-frame { aspect-ratio: 9 / 14; }
  .stage-meta { align-items: flex-start; flex-direction: column; }
  .sync-badge { display: none; }
  .visual-fallback { right: 8%; left: 8%; padding: 17px; }
  .visual-fallback p { font-size: 11px; }
  .video-clock time { font-size: 38px; }
  .sensor-grid { grid-template-columns: 1fr 1fr; }
  .sensor-grid article { padding: 15px 13px; }
  .sensor-grid b { font-size: 31px; }
  .chart-legend { flex-direction: column; gap: 7px; }
  .earth-note { flex-direction: column; }
  .chapter-button { padding-inline: 8px; }
  .play-button { min-width: 84px; padding-inline: 12px; }
  .icon-button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .event-line-glow { display: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #c2d3e5; --line: rgba(210, 232, 255, .36); }
  .instrument-panel { background: #07111f; }
}
