:root {
  color-scheme: dark;
  --bg: #08101c;
  --panel: #101e2d;
  --ink: #f3f0e9;
  --muted: #b8c7d2;
  --gold: #ffcf8d;
  --blue: #9bd9f6;
  --line: #304658;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, dd { margin: 0; }
img { display: block; width: 100%; }
a { color: var(--blue); text-underline-offset: .23em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; letter-spacing: -.045em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.7vw, 6.8rem); font-weight: 650; }
h2 { font-size: clamp(2.2rem, 4.3vw, 4rem); font-weight: 620; }
h3 { font-size: 1.35rem; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; translate: 0 -150%; padding: .65rem 1rem; z-index: 5; background: var(--bg); }
.skip-link:focus { translate: 0; }
.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 5rem; border-bottom: 1px solid #d8e9f028; flex-wrap: wrap; }
.brand { color: var(--ink); font-weight: 730; font-size: 1.14rem; text-decoration: none; letter-spacing: -.045em; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.55rem, 3vw, 2rem); }
nav a { color: var(--ink); text-decoration: none; font-size: .875rem; }
nav a:hover { color: var(--gold); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 720; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(54rem, 100svh); padding-block: 9rem 5rem; overflow: hidden; background: #060a10; }
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art { object-fit: cover; object-position: 60% center; }
.hero::after { content: ""; background: linear-gradient(90deg, #03060aea 0%, #03060a81 37%, transparent 75%), linear-gradient(0deg, var(--bg), transparent 24%); }
.hero h1 { max-width: 12ch; }
.hero-inner > p:not(.eyebrow) { font-size: clamp(1rem, 1.7vw, 1.24rem); max-width: 37ch; color: #d9e4ed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.hero-caption { position: absolute; right: max(1.5rem, calc((100% - 73rem) / 2)); bottom: .3rem; font-size: .73rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .35rem; font: 650 .9rem/1.3 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.primary { color: #17120d; background: var(--gold); }
.primary:hover { color: #17120d; background: #ffe2b9; }
.secondary { color: var(--ink); background: #0b1522c9; border-color: #65798a; }
.secondary:hover { background: #26394b; }
.watch, .classroom, .evidence-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.watch, .lab, .classroom, .evidence, .principles { padding-block: clamp(3.6rem, 9vw, 8rem); }
.watch p, .classroom p { max-width: 53ch; }
.byline { color: var(--ink); font-weight: 630; }
.film { display: grid; gap: .65rem; }
.film-open, .film iframe { display: block; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: .6rem; aspect-ratio: 16/9; width: 100%; background: #03060c; }
.film-open img { height: 100%; object-fit: cover; }
.film-action { display: flex; gap: .6rem; align-items: center; position: absolute; bottom: 1rem; left: 1rem; padding: .55rem .75rem; background: #08101cf0; border: 1px solid #8295a9; border-radius: .3rem; color: var(--ink); }
.film-open:hover .film-action { background: #21394d; }
.play-mark { width: 0; height: 0; border: .34rem solid transparent; border-right: 0; border-left: .55rem solid var(--gold); }
.film-source, figcaption { font-size: .84rem; }
.principles, .evidence { border-block: 1px solid var(--line); background: #0c1623; }
.section-lead { max-width: 56ch; font-size: 1.08rem; }
.sequence { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 0; margin: 2rem 0 1.4rem; }
.sequence li { border-top: 2px solid #748da2; padding-block: 1.15rem .25rem; }
.sequence p { margin: 0; }
.instrument { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr); overflow: hidden; margin-top: 2rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
.controls, .readout { padding: clamp(1rem, 3vw, 2rem); }
.controls { background: #0c1724; }
.controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.controls legend { font-weight: 720; margin-bottom: 1.3rem; padding: 0; }
.controls label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem; font-size: .91rem; }
.controls output { color: var(--gold); font-weight: 670; }
.controls input { width: 100%; margin: .45rem 0 1.2rem; accent-color: var(--gold); cursor: pointer; }
.measurements { display: flex; gap: clamp(.75rem, 4vw, 3rem); flex-wrap: wrap; }
.measurements span { color: var(--muted); font-size: .83rem; display: block; }
.measurements strong { display: block; margin-top: .15rem; font-size: clamp(1.5rem, 3.4vw, 2.55rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.measurements small { font-size: .44em; color: var(--blue); }
#trajectory { display: block; width: 100%; height: 14rem; margin-block: .8rem; }
.model-note { font-size: .84rem; margin: 0; }
.lab-notes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; margin-top: 1.4rem; font-size: .9rem; }
.lab-notes strong, dt { color: var(--ink); display: block; }
.evidence figure img { border: 1px solid var(--line); border-radius: .55rem; }
figcaption { color: var(--muted); margin-top: .6rem; }
dt { font-weight: 700; }
dd { margin-bottom: .8rem; color: var(--muted); }
.classroom > a { justify-self: end; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer-inner p { margin: .2rem 0 0; font-size: .875rem; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { padding-block: .7rem; gap: .3rem 1rem; }
  .hero { min-height: 48rem; align-items: end; padding-bottom: 4rem; }
  .hero-art { height: 66%; object-position: 72% center; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 33%, transparent 78%); }
  .watch, .evidence-grid, .classroom, .instrument, .lab-notes { grid-template-columns: minmax(0, 1fr); }
  .sequence { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .classroom > a { justify-self: start; }
}
@media (max-width: 390px) {
  .hero { min-height: 46rem; }
  .hero h1 { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.worksheet { max-width: 49rem; padding-block: 3rem; }
.worksheet h1 { font-size: clamp(2.5rem, 7vw, 4.3rem); }
.worksheet h2 { font-size: 1.6rem; margin-top: 1.6rem; }
.worksheet ol { padding-inline-start: 1.3rem; }
.worksheet li { padding-bottom: .7rem; }
.worksheet details { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: .8rem; }
.worksheet summary { cursor: pointer; font-weight: 700; }
.worksheet .button { margin-top: .75rem; }
@media print {
  :root { color-scheme: light; color: #111; background: #fff; --muted: #333; --gold: #111; }
  .worksheet { width: 100%; padding: 0; }
  .worksheet h1 { font-size: 28pt; }
  .worksheet h2 { font-size: 15pt; }
  .worksheet .button, .worksheet .back-link { display: none; }
  .worksheet details { break-inside: avoid; }
}
