Skip to content

Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)

Illustrate the method and refine the mobile homepage (#1)

Cinna Davis3a82523137bb
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index 418c841..49414b6 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -9,11 +9,14 @@ pipeline are outside this visual pass.
A working instrument with the reading pace of a field report. Preserve the
existing serif headlines, dark canvas, wave geometry and real experiment figures.
Place the model beside the introduction so the subject is clear on arrival.
+The second pass aligns the page to a shared grid, pairs the method with actual
+research plots, and shows the real local upload interface in the closing section.
ENERGY 2 / RHYTHM 3 / MOTION 2. An editorial introduction, interactive instrument,
-broad evidence figures and a compact method list provide the rhythm. A short hero
-entrance and controlled flyover playback explain the subject; decorative scroll
-reveals and background animation add no information.
+broad evidence figures and an illustrated method provide the rhythm. The dealt
+`pinned-chapters` moment connects each method stage to its actual plot. On phones,
+under reduced motion and without JavaScript, the stages and their plots remain
+ordinary document rows. Figures retain their full aspect and are never cropped.
## Decisions
@@ -38,8 +41,10 @@ reveals and background animation add no information.
## Truth and resilience
Preserve scientific qualifications: rankings are not probabilities, proposals
-are not confirmed aircraft, and inconclusive runs remain inconclusive. Original
-figures, their links and the static model work without JavaScript. Enhancement
+are not confirmed aircraft, and inconclusive runs remain inconclusive. Homepage
+qualifications sit in the surrounding prose and are associated with their
+figures by `aria-describedby`; enlarging a figure includes that same context.
+Original figures, their links and the static model work without JavaScript. Enhancement
adds playback, scrubbing and image dialogs. Dialogs report image loading and
failure. Every control has a label, a keyboard path and visible focus.
diff --git a/docs/SITE_REFRESH_TASTE_GATE.md b/docs/SITE_REFRESH_TASTE_GATE.md
index fd05b0f..3d6e7e4 100644
--- a/docs/SITE_REFRESH_TASTE_GATE.md
+++ b/docs/SITE_REFRESH_TASTE_GATE.md
@@ -1,5 +1,10 @@
# Taste-skill template gate, 2026-11-07
+Historical snapshot: this is the first pass at `742b89d`, merged as PR #437 at
+the owner's request. The follow-up changes the headline, figure context,
+method visuals and page structure. Results below describe the earlier snapshot;
+current checks belong in [SITE_REFRESH_VERIFICATION.md](SITE_REFRESH_VERIFICATION.md).
+
`GATE: OPEN 35 (rounds used up)`
The gate ran all three allowed refinement rounds: 46, 38 and 35 open findings.
diff --git a/docs/SITE_REFRESH_VERIFICATION.md b/docs/SITE_REFRESH_VERIFICATION.md
index 94551db..90ab5b8 100644
--- a/docs/SITE_REFRESH_VERIFICATION.md
+++ b/docs/SITE_REFRESH_VERIFICATION.md
@@ -1,5 +1,37 @@
# Public website refresh, 2026-11-07
+## Follow-up after PR #437
+
+The owner requested merging the first pass and continuing; PR #437 was merged
+at `771897f`. The follow-up adds actual method plots with scroll and keyboard
+stage navigation, compact model settings, an aligned page grid, and a screenshot
+of the real empty upload interface. No audio was submitted to capture that UI.
+Figure qualifications are preserved in visible prose and in the enlarged view.
+
+- Completed homepage Taste build: **GATE: PASS**, zero waivers. The earlier 35
+ findings are historical. A subsequent invocation returned `GATE: OFF` because
+ the successful build had already closed; it was not restarted.
+- All three pages: 18 layouts from 320 to 1440 pixels and 111 recorded interaction
+ observations passed with zero unexpected browser errors.
+- Six axe WCAG A/AA scans passed. All three method stages work by keyboard at
+ 1024x768 and 1440x900; reduced motion restores the static layout and all links.
+- Local performance check: zero failures; warnings for the original large
+ Livermore figure and the upload screenshot. A smaller screenshot variant was
+ added afterward. Field Web Vitals and geolocation accuracy were not measured.
+- Remaining nonblocking Taste warnings concern the instructional pinned moment,
+ visual coverage/spacing, original plot palettes, contextual action labels,
+ image resolution and the live pitch readout. Scientific plots keep their data
+ colors; pitch text is a working measurement readout. Responsive sources serve
+ the method plots and upload screenshot.
+- Impeccable's remaining warnings concern the retained Geist family and padding
+ detection: rendered method rows have no left border, and the footer has 30px
+ of top padding. No guide/vendor source was modified. Its MIT notice is retained.
+- Deployment verification is omitted at the owner's explicit request.
+
+Local follow-up screenshots and checks are in
+`/home/cinna/dopplergeist-site-refinement-preview/`. The rest of this document
+records the first pass at `742b89d`, before these follow-up changes.
+
Scope: the three static GitHub Pages pages and their shared stylesheet/script.
Base: `a1307b621b28b5c677fa88d5793bb4d8f43726f1`. Scientific code, evidence,
experiment results and acceptance criteria are outside this change.
diff --git a/docs/assets/moments/LICENSE b/docs/assets/moments/LICENSE
new file mode 100644
index 0000000..48a2f66
--- /dev/null
+++ b/docs/assets/moments/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Leonxlnx
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/docs/assets/moments/README.md b/docs/assets/moments/README.md
new file mode 100644
index 0000000..30e01c1
--- /dev/null
+++ b/docs/assets/moments/README.md
@@ -0,0 +1,7 @@
+# Method sequence
+
+The four JavaScript/CSS files in this directory are copied unchanged from
+[taste-skill](https://github.com/Leonxlnx/taste-skill), revision `f6b7657`, under
+the included MIT license. `pinned-chapters` connects the method stages to the
+project's actual research plots. Site-specific spacing, uncropped figures and
+keyboard navigation live in `site.css` and `site.js`.
diff --git a/docs/assets/moments/lib.js b/docs/assets/moments/lib.js
new file mode 100644
index 0000000..1429827
--- /dev/null
+++ b/docs/assets/moments/lib.js
@@ -0,0 +1,189 @@
+/*
+ moments/lib.js - the few helpers every moment shares (taste-skill). One ES module, no dependencies.
+
+ reduced() true under prefers-reduced-motion: a moment then shows its finished state only
+ phone() true on a phone: under 640px wide, or a touch screen in landscape under 500px tall
+ (a phone turned sideways). A moment shows its finished state there too, unless
+ its module says `export const phone = true` (word-highlight, picture-develops,
+ photo-chapters: light enough to run there).
+ still() reduced() || phone(): the one question every moment asks. The loader (moments.js)
+ hands each moment a lib whose reduced() answers still() (only reduced() for a
+ moment that runs on a phone), so a moment written against reduced() is static
+ where it must be, and sets data-moment-still on its host ("reduced" or "phone").
+ The answer is taken once, when the page loads.
+ coarse() true on a touch screen (no hover moments there)
+ inCard(el) true when el is, or sits in, a card, a plan, a result or a bento cell: nothing
+ on a card ever moves on scroll, so the loader leaves such a moment still
+ scrub(el, fn, opts) calls fn(progress, rect) from a requestAnimationFrame while el is near the
+ screen. mode 'hold' (default): 0 when el's top reaches the viewport top, 1 when
+ its bottom reaches the viewport bottom (a pinned stage's run). mode 'view': 0 when
+ el's top enters at the bottom edge, 1 when its bottom leaves at the top.
+ Returns { destroy, update }. Nothing is captured: the page scrolls natively.
+ once(el, fn, opts) fn once: when `threshold` of el is on screen, or el covers that share of the screen (a
+ target taller than the screen can never show it), or part of it has stayed on screen
+ for opts.rescue ms (3000), or the observer has not reported at all after 1.5 s of a
+ visible page. Nothing waits for ever. Returns { destroy }.
+ split(el, unit) wraps the words ('words') or letters ('chars') of el in spans
+ (.mo-w, .mo-c, each with an inner .mo-i that moves) and keeps the text readable:
+ the host gets aria-label, the spans aria-hidden. Returns the inner spans.
+ lines(words) groups word spans into lines by their offsetTop; returns an array of arrays.
+ fontsReady(ms) resolves when the fonts are loaded, or after ms.
+ clamp, lerp, ease the maths.
+*/
+const rq = typeof matchMedia === 'function' ? matchMedia('(prefers-reduced-motion: reduce)') : null;
+export const reduced = () => !!(rq && rq.matches);
+const pq = typeof matchMedia === 'function' ? [matchMedia('(max-width: 639px)'), matchMedia('(pointer: coarse) and (max-height: 499px) and (max-width: 959px)')] : [];
+export const phone = () => pq.some(q => q.matches);
+export const still = () => reduced() || phone();
+export const stillWhy = () => (reduced() ? 'reduced' : phone() ? 'phone' : '');
+export const inCard = el => !!(el && el.closest && el.closest('.card, .plan, .result, .knock, [data-card], .bento > *'));
+export const coarse = () => typeof matchMedia === 'function' && matchMedia('(pointer: coarse)').matches;
+export const clamp = (v, a = 0, b = 1) => Math.min(b, Math.max(a, v));
+export const lerp = (a, b, t) => a + (b - a) * t;
+export const ease = {
+ out: t => 1 - Math.pow(1 - t, 3),
+ quint: t => 1 - Math.pow(1 - t, 5),
+ expo: t => (t >= 1 ? 1 : 1 - Math.pow(2, -10 * t)),
+ inOut: t => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2),
+ smooth: (a, b, x) => { const t = clamp((x - a) / (b - a)); return t * t * (3 - 2 * t); },
+};
+
+export function scrub(el, fn, { mode = 'hold', margin = '25% 0px' } = {}) {
+ // on from the start, with the scroll listener: an observer that never reports (a dead stub, a page it cannot reach) leaves the
+ // moment following the scroll instead of frozen at its first state; the observer turns it off when the target is far away
+ let on = true, raf = 0, last = -1;
+ const tick = () => {
+ raf = 0;
+ if (!on) return;
+ const r = el.getBoundingClientRect(), vh = innerHeight;
+ let p = mode === 'view' ? (vh - r.top) / (vh + r.height) : -r.top / Math.max(1, r.height - vh);
+ p = clamp(p);
+ if (p !== last) { last = p; fn(p, r); }
+ };
+ const req = () => { if (!raf) raf = requestAnimationFrame(tick); };
+ const io = new IntersectionObserver(es => {
+ on = es[es.length - 1].isIntersecting;
+ removeEventListener('scroll', req); removeEventListener('resize', req);
+ if (on) { addEventListener('scroll', req, { passive: true }); addEventListener('resize', req); req(); }
+ }, { rootMargin: margin });
+ io.observe(el);
+ addEventListener('scroll', req, { passive: true }); addEventListener('resize', req); req();
+ return {
+ update: () => { last = -1; req(); },
+ destroy() { io.disconnect(); removeEventListener('scroll', req); removeEventListener('resize', req); if (raf) cancelAnimationFrame(raf); },
+ };
+}
+
+export function once(el, fn, { threshold = 0.35, margin = '0px', rescue = 3000 } = {}) {
+ // fn runs once when `threshold` of el is on screen, or el covers that share of the screen (a target taller
+ // than the screen can never show `threshold` of itself), or any part of it has stayed on screen for `rescue`
+ // ms. An observer that has not reported at all after 1.5 s of a visible page runs fn too: nothing waits for ever
+ let timer = 0, starve = 0, done = false;
+ const go = () => { if (done) return; done = true; clearTimeout(timer); clearTimeout(starve); io.disconnect(); fn(); };
+ const steps = [0];
+ for (let t = 0.1; t < threshold - 1e-6; t += 0.1) steps.push(+t.toFixed(2));
+ steps.push(threshold);
+ const io = new IntersectionObserver(es => {
+ clearTimeout(starve);
+ const e = es[es.length - 1];
+ if (!e.isIntersecting) { clearTimeout(timer); timer = 0; return; }
+ const vh = e.rootBounds ? e.rootBounds.height : innerHeight;
+ if (e.intersectionRatio >= threshold || e.intersectionRect.height >= vh * threshold) return go();
+ if (!timer) timer = setTimeout(go, rescue);
+ }, { threshold: steps, rootMargin: margin });
+ const wait = () => { starve = setTimeout(() => (document.hidden ? wait() : go()), 1500); };
+ wait();
+ io.observe(el);
+ return { destroy() { done = true; clearTimeout(timer); clearTimeout(starve); io.disconnect(); } };
+}
+
+export function split(el, unit = 'words') {
+ if (!el.getAttribute('aria-label')) el.setAttribute('aria-label', el.textContent.replace(/\s+/g, ' ').trim());
+ const inners = [];
+ const wrap = (text, cls) => {
+ const s = document.createElement('span');
+ s.className = cls;
+ const i = document.createElement('span');
+ i.className = 'mo-i';
+ i.textContent = text;
+ s.append(i);
+ inners.push(i);
+ return s;
+ };
+ const walk = node => {
+ [...node.childNodes].forEach(n => {
+ if (n.nodeType === 3) {
+ const frag = document.createDocumentFragment();
+ n.textContent.split(/(\s+)/).forEach(part => {
+ if (!part) return;
+ if (/^\s+$/.test(part)) { frag.append(' '); return; }
+ if (unit === 'chars') {
+ const w = document.createElement('span');
+ w.className = 'mo-w';
+ for (const ch of part) w.append(wrap(ch, 'mo-c'));
+ frag.append(w);
+ } else frag.append(wrap(part, 'mo-w'));
+ });
+ n.replaceWith(frag);
+ } else if (n.nodeType === 1 && !n.classList.contains('mo-w')) {
+ // a link or button inside keeps its name: its words are hidden with the rest, so it is named first
+ if (n.matches('a[href], button') && !n.getAttribute('aria-label') && n.textContent.trim()) n.setAttribute('aria-label', n.textContent.replace(/\s+/g, ' ').trim());
+ walk(n);
+ }
+ });
+ };
+ walk(el);
+ el.querySelectorAll('.mo-w').forEach(w => w.setAttribute('aria-hidden', 'true'));
+ return inners;
+}
+
+export function lines(words) {
+ const out = [];
+ let top = null;
+ for (const w of words) {
+ const t = w.offsetTop;
+ if (top === null || Math.abs(t - top) > 2) { out.push([]); top = t; }
+ out[out.length - 1].push(w);
+ }
+ return out;
+}
+
+export const fontsReady = (ms = 900) => Promise.race([document.fonts ? document.fonts.ready : Promise.resolve(), new Promise(r => setTimeout(r, ms))]);
+
+/*
+ blocks(root, skip) the section's words and pictures as whole blocks, for a moment that uncovers a section with a
+ clip (a disc, a line): a block is a heading, paragraph, list item, button, link, picture, UI
+ window or any element that carries text of its own, outermost first (a frame with its own
+ text is one block). A clip that slices through a block cuts its words mid-move, so such a
+ moment keeps each block invisible until the clip has passed the whole of it, then fades it
+ in whole. Returns { list, measure, set, release }:
+ list [{ el, l, t, r, b }] with the box of each block in root's own coordinates (set by measure)
+ measure() reads the boxes again (call when the root's size changes or the fonts arrive)
+ set(fn) fn(block) -> opacity 0-1 for every block; 1 puts the element's own inline opacity back
+ release() every block as it was
+ skip: elements (the moment's own layers) that are never a block.
+*/
+const BLOCK = 'h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,a,button,img,picture,video,canvas,svg,table,figure,.frame,.dw,[data-moment-block]';
+export function blocks(root, skip = []) {
+ const list = [];
+ const walk = el => {
+ for (const c of el.children) {
+ if (skip.includes(c) || /^(SCRIPT|STYLE|NOSCRIPT|TEMPLATE)$/.test(c.tagName)) continue;
+ const own = [...c.childNodes].some(n => n.nodeType === 3 && n.textContent.trim());
+ if (c.matches(BLOCK) || own) list.push({ el: c, was: c.style.opacity, l: 0, t: 0, r: 0, b: 0 });
+ else walk(c);
+ }
+ };
+ walk(root);
+ const measure = () => {
+ const rr = root.getBoundingClientRect();
+ for (const b of list) {
+ const r = b.el.getBoundingClientRect();
+ b.l = r.left - rr.left; b.t = r.top - rr.top; b.r = r.right - rr.left; b.b = r.bottom - rr.top;
+ }
+ };
+ measure();
+ const set = fn => { for (const b of list) { const o = fn(b); b.el.style.opacity = o >= 0.999 ? b.was : (o <= 0 ? '0' : o.toFixed(3)); } };
+ const release = () => { for (const b of list) b.el.style.opacity = b.was; };
+ return { list, measure, set, release };
+}
diff --git a/docs/assets/moments/moments.js b/docs/assets/moments/moments.js
new file mode 100644
index 0000000..0c4c1be
--- /dev/null
+++ b/docs/assets/moments/moments.js
@@ -0,0 +1,109 @@
+/*
+ moments.js - the loader for the page's one or two creative moments (taste-skill, references/moments.md).
+
+ <section data-moment="pinned-chapters" data-moment-opts='{"hold": 2.4}'>…</section>
+
+ in system.js: const m = await import(new URL('moments/moments.js', HERE).href); await m.ready;
+ on its own: <script type="module" src="assets/moments/moments.js"></script>
+
+ It finds every [data-moment], links <id>/moment.css, imports <id>/moment.js and calls its default
+ export mount(root, opts, lib) -> { destroy }. The page keeps scrolling natively; every moment shows
+ its finished state under prefers-reduced-motion, without script, and when its module fails.
+
+ Mounting is idempotent: an element mounts once however many times mount() or mountAll() is called
+ (the mount promise is kept on the element as __momentP, before any await), mountAll(document) is
+ one cached promise, and `ready` is that promise: it resolves with the mounted elements. Importing
+ this module starts mountAll(document) on its own unless window.__momentsManual is set first.
+
+ Marks on <html>: .mo-js as soon as this runs (a moment's CSS may hide what it will reveal only under
+ .mo-js, and .mo-safe arrives 2.5 s later as a fallback that shows everything); data-moments-ready="n"
+ when every moment is mounted (shoot scripts wait for it); data-moments-over="n" when a page holds
+ more than two, and data-moments-repeat when an id is used twice (both are faults: one or two a page,
+ an id once). A moment whose module fails gets data-moment-failed and the class mo-safe on its own
+ element (its CSS shows the finished state at once). The 2.5 s timer and .mo-js can also be set
+ earlier by one line in <head>, with modulepreload links for this file, lib.js and the dealt moment:
+ <script>document.documentElement.classList.add('mo-js');setTimeout(()=>document.documentElement.classList.add('mo-safe'),2500)</script>
+ <link rel="modulepreload" href="assets/moments/moments.js"><link rel="modulepreload" href="assets/moments/lib.js">
+*/
+import * as lib from './lib.js';
+
+const BASE = new URL('./', import.meta.url);
+const html = document.documentElement;
+const linked = new Map();
+function css(href) {
+ if (!linked.has(href)) {
+ const done = [...document.querySelectorAll('link[rel="stylesheet"]')].some(l => l.href === href);
+ linked.set(href, done ? Promise.resolve() : new Promise(res => {
+ const l = document.createElement('link');
+ l.rel = 'stylesheet';
+ l.href = href;
+ l.onload = l.onerror = () => res();
+ document.head.appendChild(l);
+ }));
+ }
+ return linked.get(href);
+}
+
+export function mount(el) {
+ if (el.__momentP) return el.__momentP;
+ const id = el.dataset.moment;
+ if (!id) return Promise.resolve(null);
+ el.__momentP = (async () => {
+ let opts = {};
+ try { opts = JSON.parse(el.dataset.momentOpts || '{}'); } catch { console.warn(`moments: bad data-moment-opts on ${id}`); }
+ const card = lib.inCard(el);
+ const [, mod] = await Promise.all([css(new URL(`${id}/moment.css`, BASE).href), import(new URL(`${id}/moment.js`, BASE).href)]);
+ // a moment light enough for a phone says so in its module (export const phone = true: one picture
+ // or one line of words, transform, filter or colour, nothing pinned that a phone cannot hold): it runs
+ // there too, and only reduced motion and a card keep it still. Every other moment is still on a phone
+ const onPhone = mod.phone === true;
+ const why = onPhone ? (lib.reduced() ? 'reduced' : '') : lib.stillWhy();
+ if (card) { el.dataset.momentStill = 'card'; html.dataset.momentsCard = [html.dataset.momentsCard, id].filter(Boolean).join(' '); console.warn(`moments: ${id} sits in a card; it stays still`); }
+ else if (why) el.dataset.momentStill = why;
+ const mlib = { ...lib, reduced: () => card || (onPhone ? lib.reduced() : lib.still()) };
+ const api = mod.default(el, opts, mlib) || {};
+ el.__moment = api;
+ el.dataset.momentMounted = '1';
+ return api;
+ })();
+ return el.__momentP;
+}
+
+let docP = null, resolveReady;
+export const ready = new Promise(r => { resolveReady = r; });
+
+export function mountAll(root = document) {
+ if (root === document && docP) return docP;
+ const p = (async () => {
+ html.classList.add('mo-js');
+ const els = [...root.querySelectorAll('[data-moment]')].filter(el => !el.parentElement?.closest('[data-moment]'));
+ const ids = els.map(el => el.dataset.moment);
+ const repeat = ids.filter((id, i) => ids.indexOf(id) !== i);
+ if (repeat.length) { html.dataset.momentsRepeat = [...new Set(repeat)].join(' '); console.warn(`moments: an id twice on one page: ${repeat.join(', ')}`); }
+ if (ids.length > 2) { html.dataset.momentsOver = String(ids.length); console.warn(`moments: ${ids.length} moments on one page (one or two)`); }
+ await Promise.all(els.map(el => mount(el).catch(e => {
+ if (!el.dataset.momentFailed) console.warn(`moments: ${el.dataset.moment} failed: ${e.message}`);
+ el.dataset.momentFailed = e.message;
+ el.classList.add('mo-safe');
+ el.classList.remove('is-live'); // the hide rules are written under .is-live and ignore .mo-safe: a failed moment shows as written
+ el.classList.add('is-done');
+ })));
+ if (root === document) html.dataset.momentsReady = String(els.length);
+ return els;
+ })();
+ if (root === document) { docP = p; p.then(resolveReady, () => resolveReady([])); }
+ return p;
+}
+
+export function unmountAll(root = document) {
+ root.querySelectorAll('[data-moment-mounted]').forEach(el => { try { el.__moment?.destroy?.(); } catch { /* gone */ } delete el.__moment; delete el.__momentP; el.removeAttribute('data-moment-mounted'); });
+ if (root === document) docP = null;
+}
+
+html.classList.add('mo-js');
+setTimeout(() => html.classList.add('mo-safe'), 2500);
+const start = () => { if (!window.__momentsManual) mountAll(document); };
+if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start, { once: true });
+else start();
+
+export default { mount, mountAll, unmountAll, ready, lib };
diff --git a/docs/assets/moments/pinned-chapters/moment.css b/docs/assets/moments/pinned-chapters/moment.css
new file mode 100644
index 0000000..7d976cc
--- /dev/null
+++ b/docs/assets/moments/pinned-chapters/moment.css
@@ -0,0 +1,72 @@
+/* pinned-chapters: at rest (phones, tablets, a short screen, reduced motion, no script, a failed
+ module) each step is a title, two lines and its visual, and the section is as tall as its steps,
+ one screen at least, at every width: the second screen it holds when live would stand empty. From 640px that rest is a row per step: the text at the
+ left, the visual at the right, at most 30svh tall; a phone stacks them with a 16:9 visual, so two to
+ four steps fit two screens at 390x844. Live (.is-live, from 1024px on a
+ screen 640px or taller) the section is (hold + 1) screens tall, its stage sticks for the hold,
+ the steps open one at a time and the visuals share one frame. */
+[data-moment="pinned-chapters"] { --mo-hold: 1; }
+main [data-moment="pinned-chapters"][data-moment] > .mo-pc__grid { display: grid; gap: var(--s-7); align-items: center; align-content: start; height: auto; }
+[data-moment="pinned-chapters"] .mo-pc__text { display: grid; gap: var(--s-6); align-content: start; }
+[data-moment="pinned-chapters"] .mo-pc__steps { display: grid; gap: var(--s-5); }
+[data-moment="pinned-chapters"] .mo-pc__step { display: grid; gap: var(--s-2); padding-left: var(--s-5); border-left: 2px solid var(--line); }
+[data-moment="pinned-chapters"] .mo-pc__step h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
+[data-moment="pinned-chapters"] .mo-pc__step p { color: var(--ink); max-width: 46ch; }
+[data-moment="pinned-chapters"] .mo-pc__step p > .mo-pc__p-in { display: block; }
+[data-moment="pinned-chapters"] .mo-pc__visual { margin: var(--s-4) 0 0; border-radius: var(--r-md); overflow: hidden; }
+[data-moment="pinned-chapters"] .mo-pc__visual > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
+[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visuals { display: none; }
+
+/* the static rows from 640px: the step's text left, its visual right, hairlines between the steps */
+@media (min-width: 640px) {
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__steps { gap: var(--s-6); }
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step {
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); row-gap: var(--s-2); align-items: center;
+ border-left: 0; border-top: 1px solid var(--line); padding: var(--s-6) 0 0; }
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step h3 { grid-column: 1; align-self: end; }
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step p { grid-column: 1; align-self: start; }
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step .mo-pc__visual { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual > img { max-height: 30svh; }
+}
+
+/* at rest the section is as tall as its steps (one screen at least) and never runs over the next one */
+main > [data-moment="pinned-chapters"][data-moment]:not(.is-live) { height: auto; min-height: 100vh; min-height: 100svh; }
+/* a phone: shorter visuals */
+@media (max-width: 639px) {
+ [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual > img { aspect-ratio: 16 / 9; max-height: 26svh; }
+}
+
+/* live */
+[data-moment="pinned-chapters"].is-live { height: calc((var(--mo-hold) + 1) * 100svh); padding: 0; }
+main [data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { position: sticky; top: 0; height: 100svh; box-sizing: border-box; padding-top: var(--nav, var(--nav-h, 72px)); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; align-content: center; overflow: clip; }
+/* (the text and the frame on the page's 6/6 split pair, x 732 at 1440, top-aligned like every split of the page) */
+[data-moment="pinned-chapters"].is-live .mo-pc__step { border-left-color: var(--line); transition: border-color 300ms ease; }
+[data-moment="pinned-chapters"].is-live .mo-pc__step h3 { color: var(--muted); transition: color 300ms ease; }
+/* a closed step's lines collapse to nothing: the grid row goes to 0fr and the inner span (min-height 0,
+ overflow hidden) lets it; the text sits in that span, never as an anonymous item with its own height */
+[data-moment="pinned-chapters"].is-live .mo-pc__step p { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 420ms cubic-bezier(.2, .7, .2, 1), opacity 300ms ease; }
+[data-moment="pinned-chapters"].is-live .mo-pc__step p > .mo-pc__p-in { min-height: 0; overflow: hidden; }
+[data-moment="pinned-chapters"].is-live .mo-pc__step.is-on { border-left-color: var(--accent); }
+[data-moment="pinned-chapters"].is-live .mo-pc__step.is-on h3 { color: var(--ink); }
+[data-moment="pinned-chapters"].is-live .mo-pc__step.is-on p { grid-template-rows: 1fr; opacity: 1; }
+[data-moment="pinned-chapters"].is-live .mo-pc__visuals { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; max-height: calc(100svh - 128px); padding: 0; }
+[data-moment="pinned-chapters"].is-live .mo-pc__visual { position: absolute; inset: 0; margin: 0; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity 480ms ease, transform 900ms cubic-bezier(.16, 1, .3, 1); }
+[data-moment="pinned-chapters"].is-live .mo-pc__visual > img { width: 100%; height: 100%; aspect-ratio: auto; }
+[data-moment="pinned-chapters"].is-live .mo-pc__visual.is-on { opacity: 1; transform: none; z-index: 1; }
+[data-moment="pinned-chapters"].is-live .mo-pc__visual.is-past { transform: scale(1); }
+/* a drawn window inside a visual sits on the lit ground with a margin */
+[data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 40px); background: var(--ground-bg); aspect-ratio: 4 / 3; }
+@media print {
+ [data-moment="pinned-chapters"].is-live { height: auto; }
+ main [data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { position: static; height: auto; display: block; overflow: visible; } /* same selector as the live rule, so print wins: nothing clips */
+ [data-moment="pinned-chapters"].is-live .mo-pc__step p { grid-template-rows: 1fr; opacity: 1; transition: none; }
+ [data-moment="pinned-chapters"].is-live .mo-pc__step h3 { color: var(--ink); }
+ [data-moment="pinned-chapters"].is-live .mo-pc__visuals { position: static; aspect-ratio: auto; max-height: none; display: grid; gap: var(--s-5); }
+ [data-moment="pinned-chapters"].is-live .mo-pc__visual { position: static; opacity: 1; transform: none; aspect-ratio: 4 / 3; }
+ [data-moment="pinned-chapters"].is-live .mo-pc__visual > img { height: auto; aspect-ratio: 4 / 3; }
+}
+@media (prefers-reduced-motion: reduce) {
+ [data-moment="pinned-chapters"].is-live { height: auto; }
+ main [data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { position: static; height: auto; }
+ [data-moment="pinned-chapters"] .mo-pc__step p, [data-moment="pinned-chapters"] .mo-pc__visual { transition: none !important; }
+}
diff --git a/docs/assets/moments/pinned-chapters/moment.js b/docs/assets/moments/pinned-chapters/moment.js
new file mode 100644
index 0000000..e5ae83c
--- /dev/null
+++ b/docs/assets/moments/pinned-chapters/moment.js
@@ -0,0 +1,85 @@
+/*
+ pinned-chapters - one section holds on screen while the visitor scrolls through its three (2 to 4)
+ steps: the step in hand opens its two lines at the left, the one visual at the right changes to that
+ step's picture or screen with a short crossfade and settle. The page scrolls natively (the stage is
+ position: sticky); nothing else on the page moves. From 1024px on a screen at least 640px tall;
+ otherwise, under reduced motion and without script the section is static: from 640px a row per
+ step (text left, visual right, at most 30svh tall), below that every step stands with its visual
+ under it (16:9).
+
+ <section class="section" data-moment="pinned-chapters">
+ <div class="container mo-pc__grid">
+ <div class="mo-pc__text">
+ <h2>How editors work with it</h2>
+ <ol class="mo-pc__steps">
+ <li class="mo-pc__step">
+ <h3>Step title</h3><p>Two lines.</p>
+ <figure class="mo-pc__visual"><img …></figure> its picture, or a drawn window
+ </li>
+ …
+ </ol>
+ </div>
+ <div class="mo-pc__visuals frame"></div> the shared frame, empty in the HTML
+ </div>
+ </section>
+
+ The stage holds for one screen of scroll, so the live section is exactly two screens (layout-v4.md);
+ with 2 to 4 steps each step gets a quarter to a half of a screen of scroll.
+*/
+export default function (root, opts, lib) {
+ const steps = [...root.querySelectorAll('.mo-pc__step')];
+ const frame = root.querySelector('.mo-pc__visuals');
+ const figures = steps.map(s => s.querySelector('.mo-pc__visual'));
+ if (steps.length < 2 || !frame || figures.some(f => !f)) return {};
+ const homes = figures.map(f => f.parentElement);
+ // the section stays exactly two screens (layout-v4.md: 1H or 2H), so the stage holds for one screen of scroll
+ const hold = 1;
+ root.style.setProperty('--mo-hold', String(hold));
+ // each step's lines in a span of their own, so a closed step can collapse to nothing (moment.css)
+ steps.forEach(s => {
+ const p = s.querySelector('p');
+ if (!p || p.querySelector('.mo-pc__p-in')) return;
+ const w = document.createElement('span');
+ w.className = 'mo-pc__p-in';
+ while (p.firstChild) w.append(p.firstChild);
+ p.append(w);
+ });
+ const grid = root.querySelector('.mo-pc__grid');
+ let live = false, scrubber = null, k = -1;
+ const wide = () => matchMedia('(min-width: 1024px)').matches;
+ const fits = () => !lib.reduced() && wide() && innerHeight >= 640;
+ const show = i => {
+ if (i === k) return;
+ k = i;
+ steps.forEach((s, n) => s.classList.toggle('is-on', n === i));
+ figures.forEach((f, n) => { f.classList.toggle('is-on', n === i); f.classList.toggle('is-past', n < i); });
+ };
+ const go = () => {
+ if (live) return;
+ live = true;
+ // the scrub first: if it throws (no IntersectionObserver), nothing has been moved or hidden yet
+ scrubber = lib.scrub(root, p => show(Math.min(steps.length - 1, Math.floor(p * steps.length))));
+ root.classList.add('is-live');
+ grid?.setAttribute('data-edge-free', ''); // live the grid is one screen of a two-screen section: the layout check skips it (the rest rows are checked)
+ figures.forEach(f => frame.append(f));
+ show(0); // step 1 open before the first scroll tick: a scrub that never ticks still shows a step and its visual
+ };
+ const rest = () => {
+ if (!live) return;
+ live = false;
+ root.classList.remove('is-live');
+ grid?.removeAttribute('data-edge-free');
+ scrubber?.destroy(); scrubber = null;
+ figures.forEach((f, n) => { homes[n].append(f); f.classList.remove('is-on', 'is-past'); });
+ steps.forEach(s => s.classList.remove('is-on'));
+ k = -1;
+ };
+ const sync = () => { const f = fits(); if (f) go(); else rest(); root.classList.toggle('is-static', !f && wide()); };
+ sync();
+ let t = 0;
+ const onResize = () => { clearTimeout(t); t = setTimeout(sync, 120); };
+ addEventListener('resize', onResize);
+ const rq = matchMedia('(prefers-reduced-motion: reduce)');
+ rq.addEventListener('change', sync); // a preference changed after load: go static (or live) at once
+ return { destroy() { removeEventListener('resize', onResize); rq.removeEventListener('change', sync); rest(); root.classList.remove('is-static'); } };
+}
diff --git a/docs/examples.html b/docs/examples.html
index 87f8bd1..f1cf4df 100644
--- a/docs/examples.html
+++ b/docs/examples.html
@@ -11,8 +11,8 @@
<meta name="robots" content="index,follow,max-image-preview:large">
<link rel="canonical" href="https://1337isnot1337.github.io/DOPPLERGEIST/examples.html">
<link rel="preload" href="site-fonts/GeistSerif-Regular.woff2" as="font" type="font/woff2" crossorigin>
-<link rel="stylesheet" href="site.css?v=4">
-<script src="site.js?v=4" defer></script>
+<link rel="stylesheet" href="site.css?v=5">
+<script src="site.js?v=5" defer></script>
<link rel="icon" href="site-media/favicon.svg" type="image/svg+xml">
<meta property="og:type" content="website">
<meta property="og:site_name" content="DOPPLERGEIST">
@@ -31,11 +31,12 @@
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#website","url":"https://1337isnot1337.github.io/DOPPLERGEIST/","name":"DOPPLERGEIST"},{"@type":"WebPage","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/examples.html#page","url":"https://1337isnot1337.github.io/DOPPLERGEIST/examples.html","name":"Audio Geolocation Examples — DOPPLERGEIST","description":"Real aircraft recordings analyzed with DOPPLERGEIST. Browse Doppler spectrograms, flight-path fits and geographic search results from the repository.","isPartOf":{"@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#website"},"primaryImageOfPage":{"@type":"ImageObject","contentUrl":"https://1337isnot1337.github.io/DOPPLERGEIST/site-media/livermore-automatic-mp3.png"}},{"@type":"SoftwareSourceCode","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#software","name":"DOPPLERGEIST","description":"Audio geolocation software that matches aircraft Doppler signatures to historical ADS-B flight trajectories.","codeRepository":"https://github.com/1337isnot1337/DOPPLERGEIST","programmingLanguage":"Python","runtimePlatform":"Python 3.11 or later","license":"https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/LICENSE","author":{"@type":"Person","name":"Cinna Davis","url":"https://github.com/1337isnot1337"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"DOPPLERGEIST","item":"https://1337isnot1337.github.io/DOPPLERGEIST/"},{"@type":"ListItem","position":2,"name":"Examples","item":"https://1337isnot1337.github.io/DOPPLERGEIST/examples.html"}]}]}</script>
</head>
<body>
-<a class="skip" href="#main">Skip to content</a>
-<header class="site-header wrap">
+<header class="site-header nav">
+<a class="skip skip-link" href="#main">Skip to content</a>
+<div class="wrap header-content">
<a class="brand" href="./" aria-label="DOPPLERGEIST home">DOPPLERGEIST</a>
<nav aria-label="Main navigation"><a href="./">Overview</a><a href="examples.html" aria-current="page">Examples</a><a href="how-it-works.html">How it works</a><a class="nav-repo" href="https://github.com/1337isnot1337/DOPPLERGEIST">GitHub <span aria-hidden="true">↗</span></a></nav>
-</header>
+</div></header>
<main id="main">
<section class="page-heading wrap"><h1>From the recordings.</h1><p>Real recordings, measured frequency curves, and candidate maps. Each figure shows a different part of the search; a high score alone does not establish a location.</p></section>
diff --git a/docs/how-it-works.html b/docs/how-it-works.html
index be220b8..52ea941 100644
--- a/docs/how-it-works.html
+++ b/docs/how-it-works.html
@@ -11,8 +11,8 @@
<meta name="robots" content="index,follow,max-image-preview:large">
<link rel="canonical" href="https://1337isnot1337.github.io/DOPPLERGEIST/how-it-works.html">
<link rel="preload" href="site-fonts/GeistSerif-Regular.woff2" as="font" type="font/woff2" crossorigin>
-<link rel="stylesheet" href="site.css?v=4">
-<script src="site.js?v=4" defer></script>
+<link rel="stylesheet" href="site.css?v=5">
+<script src="site.js?v=5" defer></script>
<link rel="icon" href="site-media/favicon.svg" type="image/svg+xml">
<meta property="og:type" content="website">
<meta property="og:site_name" content="DOPPLERGEIST">
@@ -31,11 +31,12 @@
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#website","url":"https://1337isnot1337.github.io/DOPPLERGEIST/","name":"DOPPLERGEIST"},{"@type":"WebPage","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/how-it-works.html#page","url":"https://1337isnot1337.github.io/DOPPLERGEIST/how-it-works.html","name":"How Aircraft Doppler Audio Geolocation Works — DOPPLERGEIST","description":"How DOPPLERGEIST locates audio: detect Doppler frequency ridges, match historical ADS-B flight paths, model sound propagation and search for the microphone.","isPartOf":{"@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#website"},"primaryImageOfPage":{"@type":"ImageObject","contentUrl":"https://1337isnot1337.github.io/DOPPLERGEIST/site-media/livermore-automatic-mp3.png"}},{"@type":"SoftwareSourceCode","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#software","name":"DOPPLERGEIST","description":"Audio geolocation software that matches aircraft Doppler signatures to historical ADS-B flight trajectories.","codeRepository":"https://github.com/1337isnot1337/DOPPLERGEIST","programmingLanguage":"Python","runtimePlatform":"Python 3.11 or later","license":"https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/LICENSE","author":{"@type":"Person","name":"Cinna Davis","url":"https://github.com/1337isnot1337"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"DOPPLERGEIST","item":"https://1337isnot1337.github.io/DOPPLERGEIST/"},{"@type":"ListItem","position":2,"name":"How it works","item":"https://1337isnot1337.github.io/DOPPLERGEIST/how-it-works.html"}]}]}</script>
</head>
<body>
-<a class="skip" href="#main">Skip to content</a>
-<header class="site-header wrap">
+<header class="site-header nav">
+<a class="skip skip-link" href="#main">Skip to content</a>
+<div class="wrap header-content">
<a class="brand" href="./" aria-label="DOPPLERGEIST home">DOPPLERGEIST</a>
<nav aria-label="Main navigation"><a href="./">Overview</a><a href="examples.html">Examples</a><a href="how-it-works.html" aria-current="page">How it works</a><a class="nav-repo" href="https://github.com/1337isnot1337/DOPPLERGEIST">GitHub <span aria-hidden="true">↗</span></a></nav>
-</header>
+</div></header>
<main id="main">
<section class="page-heading wrap"><h1>A moving source.<br><span>A changing pitch.</span></h1><p>A passing aircraft’s pitch changes with its motion relative to the microphone. DOPPLERGEIST matches that change to recorded flight paths.</p></section>
diff --git a/docs/index.html b/docs/index.html
index 18b1d21..6157db1 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -6,14 +6,19 @@
<meta name="page-type" content="software">
<meta name="site-kind" content="software">
<script>document.documentElement.classList.add('m-enter');</script>
+<link rel="modulepreload" href="assets/moments/moments.js">
+<link rel="modulepreload" href="assets/moments/lib.js">
+<link rel="modulepreload" href="assets/moments/pinned-chapters/moment.js">
+<link rel="stylesheet" href="assets/moments/pinned-chapters/moment.css">
<meta name="theme-color" content="#121816">
<title>DOPPLERGEIST — Aircraft Doppler Audio Geolocation</title>
<meta name="description" content="Find where audio was recorded using aircraft Doppler shifts and historical ADS-B flight tracks. Explore DOPPLERGEIST’s real recordings, spectrograms and location maps.">
<meta name="robots" content="index,follow,max-image-preview:large">
<link rel="canonical" href="https://1337isnot1337.github.io/DOPPLERGEIST/">
<link rel="preload" href="site-fonts/GeistSerif-Regular.woff2" as="font" type="font/woff2" crossorigin>
-<link rel="stylesheet" href="site.css?v=4">
-<script src="site.js?v=4" defer></script>
+<link rel="stylesheet" href="site.css?v=5">
+<script src="site.js?v=5" defer></script>
+<script type="module" src="assets/moments/moments.js"></script>
<link rel="icon" href="site-media/favicon.svg" type="image/svg+xml">
<meta property="og:type" content="website">
<meta property="og:site_name" content="DOPPLERGEIST">
@@ -32,15 +37,16 @@
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#website","url":"https://1337isnot1337.github.io/DOPPLERGEIST/","name":"DOPPLERGEIST"},{"@type":"WebPage","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#page","url":"https://1337isnot1337.github.io/DOPPLERGEIST/","name":"DOPPLERGEIST — Aircraft Doppler Audio Geolocation","description":"Find where audio was recorded using aircraft Doppler shifts and historical ADS-B flight tracks. Explore DOPPLERGEIST’s real recordings, spectrograms and location maps.","isPartOf":{"@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#website"},"primaryImageOfPage":{"@type":"ImageObject","contentUrl":"https://1337isnot1337.github.io/DOPPLERGEIST/site-media/livermore-automatic-mp3.png"}},{"@type":"SoftwareSourceCode","@id":"https://1337isnot1337.github.io/DOPPLERGEIST/#software","name":"DOPPLERGEIST","description":"Audio geolocation software that matches aircraft Doppler signatures to historical ADS-B flight trajectories.","codeRepository":"https://github.com/1337isnot1337/DOPPLERGEIST","programmingLanguage":"Python","runtimePlatform":"Python 3.11 or later","license":"https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/LICENSE","author":{"@type":"Person","name":"Cinna Davis","url":"https://github.com/1337isnot1337"}}]}</script>
</head>
<body class="home">
-<a class="skip" href="#main">Skip to content</a>
-<header class="site-header wrap">
+<header class="site-header nav">
+<a class="skip skip-link" href="#main">Skip to content</a>
+<div class="wrap header-content">
<a class="brand" href="./" aria-label="DOPPLERGEIST home">DOPPLERGEIST</a>
<nav aria-label="Main navigation"><a href="./" aria-current="page">Overview</a><a href="examples.html">Examples</a><a href="how-it-works.html">How it works</a><a class="nav-repo" href="https://github.com/1337isnot1337/DOPPLERGEIST">GitHub <span aria-hidden="true">↗</span></a></nav>
-</header>
+</div></header>
<main id="main">
-<section class="hero wrap" data-enter>
-<div class="hero-copy"><h1>A flight leaves<br>a trace <span>in sound.</span></h1><p class="hero-category">Aircraft audio geolocation</p><div><p>DOPPLERGEIST uses the changing pitch of passing aircraft and historical flight paths to search for where a recording was made.</p><div class="hero-links"><a class="button-link" href="how-it-works.html">Read the method</a><a href="examples.html">See real recordings</a></div></div></div>
+<section class="hero" data-enter><div class="wrap"><div class="hero-text hero-grid">
+<div class="hero-copy"><h1>Find a place<br>in <span>aircraft sound.</span></h1><div><p>Aircraft pitch changes and historical flight paths help DOPPLERGEIST search for where a recording was made.</p><div class="hero-links"><a class="button-link" href="how-it-works.html">Read the method</a><a href="examples.html">See real recordings</a></div></div></div>
<div class="doppler-demo" data-doppler>
<div class="instrument-heading"><span>The Doppler effect</span><span>Interactive model</span></div>
<svg class="doppler-scene" viewBox="0 0 1080 490" role="img" aria-labelledby="demo-title demo-desc">
@@ -60,30 +66,44 @@
</svg>
<div class="demo-controls" hidden>
<div class="demo-transport"><button type="button" class="play-button" data-play>Play flyover</button><label class="timeline-label"><span>Flyover position</span><input data-time type="range" min="0" max="1000" value="321" aria-label="Scrub through the flyover"></label><div class="pitch-readout"><output data-pitch aria-live="off">Higher pitch</output><span class="demo-phase" data-phase>Approaching · higher pitch</span></div></div>
-<div class="demo-parameters"><label for="demo-speed"><span>Aircraft speed <output data-speed-value for="demo-speed">120 m/s</output></span><input id="demo-speed" data-speed type="range" min="60" max="140" step="5" value="120"></label><label for="demo-distance"><span>Microphone distance <output data-distance-value for="demo-distance">800 m</output></span><input id="demo-distance" data-distance type="range" min="250" max="850" step="10" value="800"></label></div>
+<details class="demo-settings"><summary>Adjust the model</summary><div class="demo-parameters"><label for="demo-speed"><span>Aircraft speed <output data-speed-value for="demo-speed">120 m/s</output></span><input id="demo-speed" data-speed type="range" min="60" max="140" step="5" value="120"></label><label for="demo-distance"><span>Microphone distance <output data-distance-value for="demo-distance">800 m</output></span><input id="demo-distance" data-distance type="range" min="250" max="850" step="10" value="800"></label></div></details>
</div>
</div>
-</section>
-<section class="section wrap" aria-labelledby="livermore">
-<div class="section-intro"><h2 id="livermore">An aircraft over Livermore.</h2><p>An MP3 recorded in Livermore, searched against 466 nearby aircraft. The search ranked candidate locations but did not accept a location.</p></div>
-<figure class="evidence-figure"><div class="figure-heading"><span>Automatic MP3 search</span><span aria-hidden="true">↗</span></div><a class="figure-link" href="site-media/livermore-automatic-mp3.png" aria-label="View full-size image: Recorded aircraft frequency falling from 160 to 100 Hz beside a satellite map of ranked recording locations in Livermore"><img src="site-media/livermore-automatic-mp3.webp" srcset="site-media/livermore-automatic-mp3-960.webp 960w, site-media/livermore-automatic-mp3.webp 2610w" sizes="(max-width: 700px) calc(100vw - 62px), (max-width: 900px) calc(100vw - 98px), min(1166px, calc(100vw - 146px))" width="2610" height="1278" loading="lazy" decoding="async" alt="Recorded aircraft frequency falling from 160 to 100 Hz beside a satellite map of ranked recording locations in Livermore"></a><figcaption>Recorded audio and ranked candidates. The run remained inconclusive.</figcaption></figure>
+</div></div></section>
+<section class="section evidence-section" aria-labelledby="livermore"><div class="wrap">
+<div class="section-intro"><h2 id="livermore">An aircraft over Livermore.</h2><p id="livermore-context">An MP3 recorded in Livermore, searched against 466 nearby aircraft. The search ranked candidate locations but did not accept a location.</p></div>
+<figure class="evidence-figure" aria-labelledby="livermore" aria-describedby="livermore-context"><a class="figure-link" href="site-media/livermore-automatic-mp3.png" aria-label="View full-size image: Recorded aircraft frequency falling from 160 to 100 Hz beside a satellite map of ranked recording locations in Livermore"><img src="site-media/livermore-automatic-mp3.webp" srcset="site-media/livermore-automatic-mp3-960.webp 960w, site-media/livermore-automatic-mp3.webp 2610w" sizes="(max-width: 639px) calc(100vw - 48px), (max-width: 1023px) calc(100vw - 96px), min(1280px, calc(100vw - 160px))" width="2610" height="1278" loading="lazy" decoding="async" alt="Recorded aircraft frequency falling from 160 to 100 Hz beside a satellite map of ranked recording locations in Livermore"></a></figure>
<p class="section-link"><a href="https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/docs/LIVERMORE_DEMO.md#all-aircraft-archive-mp3-ranking">View the experiment <span aria-hidden="true">↗</span></a></p>
-</section>
-<section class="section wrap method-summary" aria-labelledby="doppler">
-<div class="section-intro"><h2 id="doppler">From a pitch curve<br>to a place on the map.</h2><p>A single sound can fit more than one flight. The search needs the recording, the flight history, and a consistent explanation for both.</p></div>
-<ol class="method-steps"><li><h3>Read the sound.</h3><p>Find moving tones across the recording. Group related harmonics into one passage.</p></li><li><h3>Follow the aircraft.</h3><p>Use historical ADS-B positions to predict the pitch at each possible microphone location.</p></li><li><h3>Test the fit.</h3><p>Match independent flyovers to one location and clock. Return inconclusive when the evidence falls short.</p></li></ol>
-<p class="section-link"><a href="how-it-works.html">Follow the method <span aria-hidden="true">→</span></a></p></section>
-<section class="section wrap" aria-labelledby="flyovers">
-<div class="section-intro"><h2 id="flyovers">More flyovers. One location.</h2><p>DOPPLERGEIST scans the whole recording and fits independent flyovers to a shared microphone position and clock.</p></div>
-<figure class="evidence-figure"><div class="figure-heading"><span>Across the recording</span><span aria-hidden="true">↗</span></div><a class="figure-link" href="site-media/discovery-overview.png" aria-label="View full-size image: Automatically detected moving-frequency traces spread across an hour-long recording"><img src="site-media/discovery-overview.webp" srcset="site-media/discovery-overview-960.webp 960w, site-media/discovery-overview.webp 1560w" sizes="(max-width: 700px) calc(100vw - 62px), (max-width: 900px) calc(100vw - 98px), min(1166px, calc(100vw - 146px))" width="1560" height="650" loading="lazy" decoding="async" alt="Automatically detected moving-frequency traces spread across an hour-long recording"></a><figcaption>Moving-frequency proposals found by the detector; proposals are not confirmed aircraft.</figcaption></figure>
+</div></section>
+<section class="section method-summary" aria-labelledby="doppler" data-moment="pinned-chapters"><div class="wrap mo-pc__grid">
+<div class="mo-pc__text"><h2 id="doppler">From a pitch curve<br>to a place on the map.</h2><p>A single sound can fit more than one flight. The search needs a consistent explanation for the recording and the flight history.</p>
+<ol class="mo-pc__steps">
+<li class="mo-pc__step"><h3 id="method-sound">Measure aircraft pitch.</h3><p id="method-sound-context">Find moving tones across the recording. Group related harmonics into one passage.</p><figure class="mo-pc__visual" aria-labelledby="method-sound" aria-describedby="method-sound-context"><a class="figure-link" href="site-media/measured-event.png" aria-label="Enlarge the measured aircraft pitch curve"><img src="site-media/measured-event.webp" srcset="site-media/measured-event-960.webp 960w, site-media/measured-event.webp 1600w" sizes="(max-width: 639px) calc(100vw - 48px), min(628px, 50vw)" width="1600" height="640" loading="lazy" decoding="async" alt="Measured aircraft frequency ridge in a real recording"></a></figure></li>
+<li class="mo-pc__step"><h3 id="method-flight">Model aircraft motion.</h3><p id="method-flight-context">Use historical ADS-B positions to predict the pitch at each possible microphone location, including sound travel time.</p><figure class="mo-pc__visual" aria-labelledby="method-flight" aria-describedby="method-flight-context"><a class="figure-link" href="site-media/physical-model.png" aria-label="Enlarge the flight-path model"><img src="site-media/physical-model.webp" srcset="site-media/physical-model-960.webp 960w, site-media/physical-model.webp 1600w" sizes="(max-width: 639px) calc(100vw - 48px), min(628px, 50vw)" width="1600" height="640" loading="lazy" decoding="async" alt="Trajectory-based pitch prediction over the recorded spectrogram"></a></figure></li>
+<li class="mo-pc__step"><h3 id="method-fit">Compare the locations.</h3><p id="method-fit-context">Fit independent flyovers to one location and clock. Scores rank hypotheses; ambiguous evidence remains inconclusive.</p><figure class="mo-pc__visual" aria-labelledby="method-fit" aria-describedby="method-fit-context"><a class="figure-link" href="site-media/location-scores.png" aria-label="Enlarge the candidate location map"><img src="site-media/location-scores.webp" srcset="site-media/location-scores-960.webp 960w, site-media/location-scores.webp 1120w" sizes="(max-width: 639px) calc(100vw - 48px), min(628px, 50vw)" width="1120" height="960" loading="lazy" decoding="async" alt="Scored microphone positions on a geographic grid; colors show fit scores, not probabilities"></a></figure></li>
+</ol><p class="section-link"><a href="how-it-works.html">Read the full method</a></p></div><div class="mo-pc__visuals"></div>
+</div></section>
+<section class="section evidence-section" aria-labelledby="flyovers"><div class="wrap">
+<div class="section-intro"><h2 id="flyovers">Independent flyovers.<br>A shared location.</h2><p id="flyovers-context">DOPPLERGEIST scans the whole recording and fits independent flyovers to a shared microphone position and clock. Detector proposals are not confirmed aircraft.</p></div>
+<figure class="evidence-figure" aria-labelledby="flyovers" aria-describedby="flyovers-context"><a class="figure-link" href="site-media/discovery-overview.png" aria-label="View full-size image: Automatically detected moving-frequency traces spread across an hour-long recording"><img src="site-media/discovery-overview.webp" srcset="site-media/discovery-overview-960.webp 960w, site-media/discovery-overview.webp 1560w" sizes="(max-width: 639px) calc(100vw - 48px), (max-width: 1023px) calc(100vw - 96px), min(1280px, calc(100vw - 160px))" width="1560" height="650" loading="lazy" decoding="async" alt="Automatically detected moving-frequency traces spread across an hour-long recording"></a></figure>
<p class="section-link"><a href="examples.html">See the example gallery</a></p>
-</section>
-<section class="closing wrap"><h2>Start with a recording.</h2><p>Run DOPPLERGEIST locally with your audio and its recording-time window.</p><a class="button-link" href="how-it-works.html#run">Get DOPPLERGEIST</a></section>
+</div></section>
</main>
-<footer class="wrap">
+<footer class="closing">
+<div class="wrap">
+<div class="close-grid">
+<div>
+<h2>Run your own<br>audio search.</h2>
+<p>Start the local interface, choose a recording, and provide its recording-time window.</p>
+<p>The result includes the evidence and ranked candidates. An inconclusive result remains inconclusive.</p>
+<a class="button-link" href="how-it-works.html#run">Run DOPPLERGEIST locally</a>
+</div>
+<a class="setup-preview" href="how-it-works.html#run" aria-label="Open setup instructions for the local upload interface"><img src="site-media/local-upload.webp" srcset="site-media/local-upload-640.webp 640w, site-media/local-upload.webp 800w" sizes="(max-width: 700px) calc(100vw - 48px), min(628px, 50vw)" width="800" height="620" loading="lazy" decoding="async" alt="Audio upload form and an empty analysis panel in the actual DOPPLERGEIST local interface"></a>
+</div>
+<div class="footer-bottom">
<a class="brand" href="./">DOPPLERGEIST</a>
<nav aria-label="Footer navigation"><a href="https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/docs/SETUP.md">Documentation</a><a href="https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/LICENSE">License</a><a href="https://github.com/1337isnot1337/DOPPLERGEIST/blob/main/docs/COMMERCIAL-LICENSING.md">Commercial use</a></nav>
-</footer>
+</div></div></footer>
</body>
</html>
diff --git a/docs/site-media/local-upload-640.webp b/docs/site-media/local-upload-640.webp
new file mode 100644
index 0000000..fad5b6c
Binary files /dev/null and b/docs/site-media/local-upload-640.webp differ
diff --git a/docs/site-media/local-upload.webp b/docs/site-media/local-upload.webp
new file mode 100644
index 0000000..b76e1a5
Binary files /dev/null and b/docs/site-media/local-upload.webp differ
diff --git a/docs/site.css b/docs/site.css
index 65ef192..69cb4dd 100644
--- a/docs/site.css
+++ b/docs/site.css
@@ -10,9 +10,21 @@
--line: #3a4940;
--radius: 12px;
--ease: cubic-bezier(.16, 1, .3, 1);
+ --gut: 80px;
+ --nav: 72px;
+ --ink: var(--text);
+ --font-text: "Geist", Arial, sans-serif;
+ --gutter: 24px;
+ --s-2: 12px;
+ --s-4: 20px;
+ --s-5: 24px;
+ --s-6: 32px;
+ --s-7: 48px;
+ --t-lead: 22px;
+ --r-md: 8px;
}
* { box-sizing: border-box; }
-html { scroll-behavior: auto; scroll-padding-top: 32px; scrollbar-color: var(--line) var(--bg); }
+html { scroll-behavior: auto; scroll-padding-top: calc(var(--nav) + 24px); scrollbar-color: var(--line) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 "Geist", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, .brand { font-family: "Geist Serif", Georgia, serif; font-weight: 400; }
h1, h2, h3, p, figure { margin: 0; }
@@ -31,11 +43,14 @@ button { cursor: pointer; transition: background .2s, color .2s, transform .2s v
button:disabled, input:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
-.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
-.skip { position: absolute; top: 12px; left: 12px; transform: translateY(-180%); z-index: 5; background: var(--accent); color: var(--bg); padding: 10px 20px; }
+.wrap { width: min(1280px, calc(100% - 2 * var(--gut))); margin-inline: auto; }
+main { padding-top: var(--nav); }
+.home main { padding-top: 0; }
+.skip { position: absolute; top: 12px; left: var(--gut); transform: translateY(-180%); z-index: 5; background: var(--accent); color: var(--bg); padding: 10px 20px; }
.skip:focus { transform: none; }
.skip:hover { color: var(--bg); text-decoration: underline; }
-.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
+.site-header { position: fixed; inset: 0 0 auto; z-index: 10; min-height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); }
+.header-content { min-height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 24px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: 32px; align-items: center; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@@ -43,10 +58,13 @@ nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; t
.nav-repo { border: 1px solid var(--line); border-radius: 4px; padding-inline: 18px; gap: 12px; }
.nav-repo:hover { border-color: var(--accent); }
/* The explanation and its instrument share the first screen. */
-.hero { display: grid; grid-template-columns: .95fr 1.2fr; align-items: center; gap: 5%; min-height: calc(100svh - 88px); padding-block: 56px 72px; }
+.hero { height: 100svh; min-height: 740px; padding-block: 120px 64px; }
+.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 24px; }
+.hero-copy { grid-column: span 5; }
+.hero .doppler-demo { grid-column: 7 / -1; }
.hero-copy { min-width: 0; }
-.hero-copy h1 { font-size: clamp(60px, 5.6vw, 82px); }
-.hero-category { margin-block: 28px 12px; color: var(--accent); font-size: 15px; }
+.hero-copy h1 { font-size: clamp(56px, 5vw, 72px); }
+.hero-copy > div { margin-top: 28px; }
.hero-copy > div > p { color: var(--muted); max-width: 43ch; font-size: 18px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; font-size: 15px; }
.hero-links > a:last-child { min-height: 48px; display: inline-flex; align-items: center; text-decoration-color: var(--line); }
@@ -54,7 +72,7 @@ nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; t
.button-link:hover { background: var(--text); border-color: var(--text); color: var(--bg); transform: translateY(-2px); }
.button-link:active { transform: translateY(1px); }
.section { padding-top: 104px; }
-.section-intro { display: grid; grid-template-columns: 1fr .9fr; gap: 8%; align-items: end; margin-bottom: 40px; }
+.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 36px; }
.section-intro p { color: var(--muted); max-width: 65ch; }
.evidence-figure { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; overflow: hidden; }
.figure-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; padding: 16px 4px; }
@@ -67,16 +85,40 @@ figcaption { padding: 18px 4px; font-size: 14px; line-height: 1.6; color: var(--
.section-link { margin-top: 20px; font-size: 16px; }
.section-link a, .text-link { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); }
.section-link a:hover, .text-link:hover { color: var(--text); border-color: var(--text); }
-.method-summary { margin-top: 104px; border-top: 1px solid var(--line); padding-top: 88px; }
-.method-summary .section-intro { grid-template-columns: 1fr; }
-.method-summary .section-intro p { max-width: 620px; margin-top: 24px; }
-.method-steps { list-style: none; padding: 0; margin: 48px 0 0; }
-.method-steps li { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8%; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 24px; }
-.method-steps p { max-width: 48ch; font-size: 16px; color: var(--muted); }
-.closing { padding-block: 120px 104px; }
-.closing h2 { max-width: 780px; }
-.closing p { margin: 24px 0 28px; color: var(--muted); max-width: 600px; }
-footer { border-top: 1px solid var(--line); padding-block: 30px 40px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
+.home .evidence-section { height: 100svh; padding-block: 120px 72px; }
+.home .evidence-section > .wrap { display: flex; flex-direction: column; height: 100%; }
+.home .evidence-figure { flex: 1; min-height: 0; border: 0; padding: 0; background: transparent; overflow: visible; }
+.home .evidence-figure .figure-link { height: 100%; }
+.home .evidence-figure img { width: 100%; height: 100%; object-fit: contain; }
+.home .method-summary { padding: 0; }
+.home .mo-pc__grid { padding-block: 120px 72px; }
+.home .mo-pc__text > p { color: var(--muted); max-width: 44ch; }
+.home .mo-pc__steps { list-style: none; padding: 0; margin: 0; }
+.home [data-moment] .mo-pc__step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
+.home [data-moment] .mo-pc__visual { background: #fbfaf7; border-radius: 8px; overflow: visible; }
+.home [data-moment] .mo-pc__visual .figure-link { height: 100%; }
+.home [data-moment] .mo-pc__visual img { object-fit: contain; }
+.home [data-moment] .mo-pc__visual .figure-link:hover img { transform: none; }
+.home [data-moment].is-live .mo-pc__step.is-on h3 { color: var(--accent); }
+.method-step { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
+.method-step:hover, .method-step[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }
+.home main [data-moment="pinned-chapters"].is-live > .mo-pc__grid { align-content: start; padding-block: 120px 72px; overflow: visible; }
+.home [data-moment].is-live .mo-pc__visuals { aspect-ratio: auto; height: calc(100svh - 240px); }
+.home [data-moment].is-live .mo-pc__visual { background: transparent; }
+.home [data-moment].is-live .mo-pc__visual .figure-link { display: flex; align-items: flex-start; background: transparent; }
+.home [data-moment].is-live .mo-pc__visual img { width: 100%; height: auto; max-height: 100%; border-radius: 8px; }
+.closing { height: 100svh; padding-block: 120px 72px; border-top: 1px solid var(--line); }
+.closing > .wrap { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 48px; }
+.close-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
+.close-grid > div { grid-column: span 5; }
+.close-grid > .setup-preview { grid-column: 7 / -1; }
+.closing p { margin-top: 24px; color: var(--muted); max-width: 44ch; }
+.closing .button-link { margin-top: 32px; }
+.setup-preview { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
+.setup-preview img { width: 100%; height: auto; transition: transform .5s var(--ease); }
+.setup-preview:hover img { transform: scale(1.02); }
+.footer-bottom, footer:not(.closing) { border-top: 1px solid var(--line); padding-block: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
+footer:not(.closing) { padding-bottom: 40px; }
footer nav { font-size: 13px; color: var(--muted); }
.page-heading { padding-top: 88px; }
.page-heading h1 { max-width: 1120px; }
@@ -119,6 +161,10 @@ pre { margin-block: 28px; padding: 28px; overflow-x: auto; background: var(--sur
.pitch-readout { display: grid; min-width: 0; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.pitch-readout output { font-size: 16px; }
.demo-parameters { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
+.demo-settings { margin-top: 16px; border-top: 1px solid var(--line); }
+.demo-settings summary { padding-top: 10px; min-height: 44px; color: var(--muted); font-size: 13px; cursor: pointer; }
+.demo-settings summary:hover { color: var(--accent); }
+.demo-settings .demo-parameters { margin-top: 8px; padding-top: 8px; border-top: 0; }
.demo-parameters label { min-width: 0; }
.demo-parameters label > span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.demo-parameters output { color: var(--text); font-variant-numeric: tabular-nums; }
@@ -149,72 +195,84 @@ input[type="range"] { width: 100%; min-width: 0; accent-color: var(--accent); cu
.viewer-original { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent); margin-top: 12px; }
body:has(.figure-viewer[open]) { overflow: hidden; }
@keyframes instrument-enter { from { opacity: .7; transform: translateY(16px); } to { opacity: 1; transform: none; } }
-@media (prefers-reduced-motion: no-preference) { html.m-enter .hero[data-enter] > * { animation: instrument-enter .8s var(--ease) both; } .hero .doppler-demo { animation-delay: .1s; } }
-@media (min-width: 1101px) { .home .section { min-height: 100svh; padding-block: 88px 72px; } .home .method-summary { margin-top: 0; } }
-@media (max-width: 1100px) {
- .hero { grid-template-columns: 1fr; gap: 40px; }
- .hero-copy { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 40px; }
- .hero-category { grid-column: 1 / -1; grid-row: 1; margin: 0; }
- .hero-copy h1 { grid-column: 1; grid-row: 2; }
- .hero-copy > div { grid-column: 2; grid-row: 2; }
+@media (prefers-reduced-motion: no-preference) { html.m-enter .hero[data-enter] .hero-grid > * { animation: instrument-enter .8s var(--ease) both; } .hero .doppler-demo { animation-delay: .1s; } }
+@media (min-width: 1001px) and (max-width: 1100px) {
+ .home { --s-6: 24px; --t-lead: 20px; }
+ .home .mo-pc__text p { font-size: 16px; }
+ .home main [data-moment="pinned-chapters"].is-live > .mo-pc__grid { padding-block: 104px 48px; }
+}
+@media (max-width: 1000px) {
+ .hero { height: auto; min-height: 100svh; }
+ .hero-grid { grid-template-columns: 1fr; gap: 32px; }
+ .hero-copy, .hero .doppler-demo { grid-column: 1; }
+ .hero-copy { display: block; }
+ .hero-copy > div { margin-top: 24px; }
.hero-copy h1 { font-size: clamp(54px, 6.4vw, 72px); }
- .hero .doppler-scene { max-height: 360px; }
- .hero .doppler-scene text { font-size: 22px; }
+ .hero .doppler-scene { max-height: 280px; }
+ .hero .doppler-scene text { font-size: 24px; }
.hero .demo-transport { grid-template-columns: auto minmax(0, 1fr) 190px; gap: 24px; }
.hero .timeline-label { grid-row: 1; grid-column: 2; margin: 0; }
.hero .pitch-readout { grid-row: 1; grid-column: 3; }
}
-@media (max-width: 900px) {
- .wrap { width: calc(100% - 64px); }
- .site-header { gap: 20px; }
+@media (max-width: 1023px) {
+ :root { --gut: 48px; }
+ .header-content { gap: 20px; }
nav { gap: 20px; }
.brand { font-size: 22px; }
- .hero, .page-heading { padding-top: 56px; }
+ .page-heading { padding-top: 56px; }
.section { padding-top: 80px; }
- .section-intro { gap: 32px; }
- .method-summary { margin-top: 80px; padding-top: 64px; }
.location-section { gap: 32px; grid-template-columns: 1fr 1fr; }
- footer { align-items: start; }
+ footer:not(.closing), .footer-bottom { align-items: start; }
footer nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
}
@media (max-width: 700px) {
+ :root { --nav: 116px; --gut: 24px; }
body { font-size: 17px; }
- .wrap { width: calc(100% - 40px); }
- .site-header { padding-block: 18px 10px; min-height: 0; flex-wrap: wrap; gap: 8px; }
+ .header-content { padding-block: 12px; flex-wrap: wrap; gap: 4px; }
.site-header nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 13px; }
.nav-repo { border: 0; padding: 0; gap: 5px; }
.brand { font-size: 23px; }
- .hero { padding-block: 44px 56px; gap: 32px; }
+ .hero { padding-block: calc(var(--nav) + 20px) 18px; }
+ .hero-grid { gap: 24px; }
.hero-copy { display: block; }
.hero-copy h1, h1 { font-size: clamp(42px, 10.8vw, 64px); line-height: 1.08; }
h2 { font-size: 36px; }
- .hero-category { margin-block: 24px 12px; font-size: 14px; }
+ .hero-copy > div { margin-top: 16px; }
.hero-copy > div > p, .page-heading p { font-size: 17px; }
- .hero-links { margin-top: 24px; gap: 12px 20px; }
+ .hero-copy > div > p { font-size: 16px; line-height: 1.5; }
+ .hero-links { margin-top: 20px; gap: 12px 20px; }
.page-heading { padding-top: 44px; }
.section, .first { padding-top: 64px; }
.section-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
.pair, .location-section { grid-template-columns: 1fr; gap: 28px; }
- .method-summary { margin-top: 64px; padding-top: 56px; }
- .method-summary .section-intro p { margin-top: 0; }
- .method-steps { margin-top: 32px; }
- .method-steps li { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
.evidence-figure { padding-inline: 10px; }
figcaption { font-size: 13px; padding-block: 14px; }
.figure-heading { font-size: 13px; padding: 14px 2px; }
- .closing { padding-block: 88px 72px; }
+ .home .evidence-section { height: auto; min-height: 100svh; padding-block: 96px 48px; }
+ .home .evidence-section > .wrap { height: auto; }
+ .home .evidence-figure { flex: none; }
+ .home .evidence-figure img { height: auto; }
+ .home .mo-pc__grid { padding-block: 96px 48px; }
+ .home [data-moment] .mo-pc__step { padding-top: 24px; }
+ .home [data-moment] .mo-pc__visual { margin-top: 12px; }
+ .home [data-moment] .mo-pc__visual img { height: auto; aspect-ratio: auto; max-height: none; }
+ .closing { height: auto; min-height: 100svh; padding-block: 96px 32px; }
+ .close-grid { grid-template-columns: 1fr; gap: 32px; }
+ .close-grid > div, .close-grid > .setup-preview { grid-column: 1; }
.next-page { margin-top: 64px; flex-direction: column; gap: 10px; padding-bottom: 40px; }
- footer { flex-direction: column; gap: 16px; padding-block: 28px; }
+ footer:not(.closing), .footer-bottom { flex-direction: column; gap: 16px; padding-block: 24px; }
footer nav { justify-content: flex-start; gap: 8px 20px; }
pre { padding: 18px; font-size: 14px; }
.page-jumps { gap: 8px 24px; font-size: 13px; margin-top: 28px; }
.doppler-demo { margin-top: 28px; }
- .instrument-heading { padding: 16px; gap: 12px; }
+ .instrument-heading { padding: 12px; gap: 12px; }
+ .hero .instrument-heading { padding-block: 8px; }
.instrument-heading > span:last-child { font-size: 13px; }
- .doppler-scene, .hero .doppler-scene { min-height: 190px; max-height: none; }
+ .doppler-scene, .hero .doppler-scene { min-height: 168px; max-height: none; }
.doppler-scene text, .hero .doppler-scene text { font-size: 52px; }
- .demo-controls { padding: 16px; }
- .demo-transport, .hero .demo-transport { grid-template-columns: auto 1fr; gap: 16px; }
+ .demo-controls { padding: 12px; }
+ .demo-transport, .hero .demo-transport { grid-template-columns: auto 1fr; gap: 12px; }
+ .demo-settings { margin-top: 12px; }
.pitch-readout, .hero .pitch-readout { grid-column: 2; grid-row: 1; }
.pitch-readout output { font-size: 14px; }
.demo-phase { font-size: 12px; }
diff --git a/docs/site.js b/docs/site.js
index b84a19a..ffda266 100644
--- a/docs/site.js
+++ b/docs/site.js
@@ -151,6 +151,44 @@
updateParameters();
});
+ // The scroll sequence also offers native keyboard navigation. Only the
+ // currently displayed diagram is focusable; static layouts retain every link.
+ const method = document.querySelector('[data-moment="pinned-chapters"]');
+ if (method) {
+ const stages = Array.from(method.querySelectorAll('.mo-pc__step')).map((step, index) => {
+ const heading = step.querySelector('h3');
+ const label = heading.textContent;
+ const figure = Array.from(method.querySelectorAll('.mo-pc__visual')).find(item => item.getAttribute('aria-labelledby') === heading.id);
+ const button = document.createElement('button');
+ button.type = 'button';
+ button.className = 'method-step';
+ button.textContent = label;
+ button.addEventListener('click', () => {
+ const start = window.scrollY + method.getBoundingClientRect().top;
+ const travel = Math.max(0, method.offsetHeight - window.innerHeight);
+ window.scrollTo({ top: start + travel * (index + 0.5) / stages.length, behavior: 'instant' });
+ });
+ return { step, heading, label, figure, button };
+ });
+ function syncMethod() {
+ const live = method.classList.contains('is-live');
+ stages.forEach(({ step, heading, label, figure, button }) => {
+ const active = step.classList.contains('is-on');
+ if (figure) figure.inert = live && !active;
+ if (live) {
+ if (heading.firstChild !== button) heading.replaceChildren(button);
+ button.setAttribute('aria-pressed', String(active));
+ } else if (heading.firstChild === button) {
+ const hadFocus = document.activeElement === button;
+ heading.textContent = label;
+ if (hadFocus && figure) figure.querySelector('a')?.focus({ preventScroll: true });
+ }
+ });
+ }
+ new MutationObserver(syncMethod).observe(method, { attributes: true, attributeFilter: ['class'], subtree: true });
+ syncMethod();
+ }
+
if (typeof HTMLDialogElement === 'undefined') return;
const viewer = document.createElement('dialog');
viewer.className = 'figure-viewer';
@@ -176,7 +214,8 @@
if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey || event.button !== 0) return;
event.preventDefault();
const figure = link.closest('figure');
- viewer.querySelector('#viewer-title').textContent = figure.querySelector('.figure-heading span').textContent;
+ const heading = figure.querySelector('.figure-heading span') || document.getElementById(figure.getAttribute('aria-labelledby'));
+ viewer.querySelector('#viewer-title').textContent = heading ? heading.textContent : 'Research figure';
const image = viewer.querySelector('img');
const preview = link.querySelector('img');
image.width = Number(preview.getAttribute('width'));
@@ -187,7 +226,8 @@
viewer.setAttribute('aria-busy', 'true');
image.src = link.href;
image.alt = preview.alt;
- viewer.querySelector('.viewer-caption').textContent = figure.querySelector('figcaption').textContent;
+ const description = figure.querySelector('figcaption') || document.getElementById(figure.getAttribute('aria-describedby'));
+ viewer.querySelector('.viewer-caption').textContent = description ? description.textContent : preview.alt;
viewer.querySelector('.viewer-original').href = link.href;
viewer.showModal();
});