/* Newsprint and brass. One face (Archivo), one ground, one ink, one accent used once per screen. */
:root {
  color-scheme: light;
  --bg: #e8e8e3;
  --surface: #dcdcd6;
  --ink: #181715;
  --muted: #63625c;
  --accent: #bfb21a;
  --accent-ink: #181715;
  --field: #181715;
  --field-ink: #e8e8e3;
  --field-muted: #a3a29b;
  --wave-neg: #fafaf6; /* trough tone on the film; crests are --ink */

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.875rem);
  --step-head: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --step-display: clamp(2.25rem, 1.2rem + 4.2vw, 5rem);

  --margin: 32px;
  --col: max(var(--margin), 22vw); /* left edge of the reading column */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body.dark {
  color-scheme: dark;
  --bg: #181715;
  --surface: #23221f;
  --ink: #e8e8e3;
  --muted: #a3a29b;
  --field: #0f0f0d;
  --wave-neg: #050504;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ko"] { word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { padding-left: var(--margin); padding-right: var(--margin); }
.col { margin-left: var(--col); max-width: 560px; padding-right: var(--margin); }
.soft { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* Header: wordmark, four links, two text toggles */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; padding: 0 var(--margin); font-size: var(--step-small); position: relative; z-index: 3; }
.brand { font-weight: 600; font-size: var(--step-body); white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a, .toggle { color: var(--ink); transition: color .2s; }
.site-header nav a:hover, .toggle:hover { color: var(--muted); }
.toggle { min-width: 44px; min-height: 44px; }
.film .site-header { background: var(--surface); }

/* Hero: the film panel (wave canvas) on top, the headline on the seam */
.hero { padding: 0 12px; }
.film { position: relative; background: var(--surface); height: min(52svh, 560px); min-height: 360px; }
#wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
#wave.grab, .lab-wave.grab { cursor: grab; }
#wave.grabbing, .lab-wave.grabbing { cursor: grabbing; }
.film-bar { position: absolute; left: 32px; right: calc(7% + 28px); top: 80px; display: flex; justify-content: flex-start; align-items: center; gap: 24px; font-size: var(--step-small); color: var(--muted); pointer-events: none; }
.film-bar button { pointer-events: auto; color: var(--ink); min-height: 32px; }
.hint { margin: 0; transition: opacity .8s; }
.film-button { pointer-events: auto; background: var(--ink); color: var(--bg); font-weight: 600; padding: 11px 18px; transition: transform .15s var(--ease), background-color .2s; }
.film-button:hover { background: color-mix(in srgb, var(--ink) 80%, var(--bg)); }
.film-button:active { transform: translateY(1px); }
.hint.gone { opacity: 0; }
.quiet { font-size: var(--step-small); font-weight: 600; color: var(--muted); min-height: 44px; transition: color .2s; }
.quiet:hover { color: var(--ink); }
.hero-copy { padding: 0 calc(var(--margin) - 12px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.hero h1 { grid-column: 1 / -1; font-size: var(--step-display); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 32px 0 28px; }
.hero h1 span { display: block; }
.hero h1 .soft { color: var(--muted); }
.hero-lead { grid-column: 1 / span 6; }
.hero-text { margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.film-note { grid-column: 8 / -1; align-self: start; margin: 0; }
.film-note img { mix-blend-mode: multiply; }
body.dark .film-note img { filter: invert(1); mix-blend-mode: screen; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-small); padding: 13px 20px; transition: transform .15s var(--ease), background-color .2s; }
.button:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; font-size: var(--step-small); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-underline-offset .2s; }
.text-link:hover { text-underline-offset: 7px; }

/* Sections are separated only by space */
.section { padding-top: clamp(96px, 12vw, 180px); scroll-margin-top: 24px; }
/* The three benches read as one sequence: keep the big gap only before the first */
.lab-teaser + .measure, .measure + .reconstruct { padding-top: clamp(64px, 7vw, 104px); }
.section h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 32px; }

/* Intro: lead line over a four-column text block with the one large picture */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.intro-lead { grid-column: 1 / -1; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -.015em; max-width: 34em; margin: 0 0 72px; }
.intro-cols { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; align-content: start; }
.intro-cols p { margin: 0; line-height: 1.5; }
.intro-cols b { font-weight: 600; }
.intro-cols a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.intro-figure { grid-column: 8 / -1; margin: 0; }
figure { margin: 0; }
figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.shutter { overflow: hidden; }

/* Lab teaser: the argument on the left, a live bench on the right */
.lab-teaser { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.lab-teaser-copy { grid-column: 1 / span 5; }
.lab-teaser-copy p { margin: 0 0 28px; max-width: 34em; }
.lab-teaser-figure { grid-column: 7 / -1; }
#lab-preview { display: block; width: 100%; height: clamp(300px, 32vw, 460px); background: var(--surface); touch-action: pan-y; cursor: crosshair; }
#lab-preview.grab { cursor: grab; }
#lab-preview.grabbing { cursor: grabbing; }

/* Measure: the curve wide on the left, the argument on the right */
.measure { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.measure-figure { grid-column: 1 / span 7; }
.measure-copy { grid-column: 9 / -1; }
.measure-copy p a, .reconstruct-copy p a { text-decoration: underline; text-underline-offset: 3px; }
.fit-caption { font-size: var(--step-small); color: var(--muted); margin: 10px 0 0; }
.fit-video { display: block; width: 100%; height: auto; background: var(--bg); }
body.dark .fit-video { filter: invert(1) hue-rotate(180deg); } /* the video is rendered on paper; flip it to ink */

/* Reconstruct: the argument on the left, a small self-running figure on the right */
.reconstruct { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.reconstruct-copy { grid-column: 1 / span 6; }
.reconstruct-copy p { margin: 0 0 24px; max-width: 34em; }
.ft-figure { grid-column: 8 / -1; }
.ft-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .35s var(--ease); }
.ft-panels.fading { opacity: 0; }
.ft-panels canvas { display: block; width: 100%; aspect-ratio: 1; }
.ft-figure figcaption { display: flex; justify-content: space-between; gap: 12px; }
.ft-name { color: var(--ink); }

/* Work: a quiet ledger with the engraving held beside it */
.work { position: relative; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li + li { margin-top: 28px; }
.ledger a { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; transition: color .2s; }
.ledger strong { font-weight: 600; }
.ledger p.soft { color: var(--muted); font-size: var(--step-small); }
.ledger-more { margin-top: 48px; }
.ledger .kind { font-size: var(--step-small); color: var(--muted); text-align: right; white-space: nowrap; }
.ledger p { grid-column: 1 / -1; margin: 4px 0 0; max-width: 38em; transition: color .2s; }
.ledger:hover a, .ledger:focus-within a { color: var(--muted); }
.ledger a:hover, .ledger a:focus-visible { color: var(--ink); }
.ledger-group { font-size: var(--step-small); color: var(--muted); margin: 56px 0 20px; font-weight: 400; }
.work-figure { position: absolute; top: clamp(96px, 12vw, 180px); right: var(--margin); width: min(32vw, 500px); }

/* Two-ended rows: notes, GitHub, pull requests */
.rows { list-style: none; margin: 0; padding: 0; }
.rows a, .rows .row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; min-height: 38px; padding: 6px 0; transition: color .2s; }
.rows a:hover { color: var(--muted); }
.rows strong { font-weight: 400; }
.rows em { font-style: normal; font-size: var(--step-small); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows span { display: block; color: var(--muted); }
.rows-group { font-size: var(--step-small); color: var(--muted); margin: 40px 0 8px; font-weight: 400; }
.rows-group:first-of-type { margin-top: 0; }
.fineprint { font-size: var(--step-small); color: var(--muted); margin: 12px 0 0; }
.lately { position: relative; }
.lately-figure { position: absolute; top: clamp(96px, 12vw, 180px); right: var(--margin); width: min(26vw, 400px); }

/* Contact: a dark field, one sentence, the one bright picture, two links */
.contact { background: var(--field); color: var(--field-ink); margin-top: clamp(120px, 14vw, 200px); padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.contact-line { grid-column: 1 / span 5; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.contact-figure { grid-column: 8 / span 2; }
.contact-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.contact-figure figcaption { color: var(--field-muted); }
.contact-links { grid-column: 10 / -1; }
.contact-links p { margin: 0 0 20px; font-weight: 600; }
.contact-links a, .contact-links button { display: block; font-size: 1.125rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; margin-bottom: 10px; color: var(--field-ink); transition: text-underline-offset .2s; }
.contact-links a:hover, .contact-links button:hover { text-underline-offset: 7px; }
.contact-links .soft { color: var(--field-muted); font-size: var(--step-small); margin-top: 18px; font-weight: 400; }
kbd { font: inherit; font-size: .9em; }

/* Footer: one quiet line */
footer { padding: 30svh var(--margin) 30px; font-size: var(--step-small); color: var(--muted); }
.contact + footer, body.sub footer { padding-top: 96px; }
.footer-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; }
.footer-line nav { display: flex; gap: 24px; }
.footer-line nav a { color: var(--ink); }
.footer-line nav a:hover { color: var(--muted); }
.footer-line > :last-child { text-align: right; }
.credits { margin: 20px 0 0; max-width: 60ch; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }

/* Entrances: content is visible without script; script adds .reveal then .in */
.js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > :nth-child(2) { transition-delay: 70ms; }
.reveal.in > :nth-child(3) { transition-delay: 140ms; }
.reveal.in > :nth-child(4) { transition-delay: 210ms; }
.reveal.in > :nth-child(5) { transition-delay: 280ms; }
.js .shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.in .shutter img, .shutter.in img { clip-path: inset(0); transform: none; }

/* Terminal dialog: a real interface fragment, it keeps its own chrome */
dialog { background: #0f0f0d; color: #e8e8e3; border: 0; width: min(620px, calc(100vw - 28px)); padding: 0; box-shadow: 0 30px 120px #0009; } /* taste-skill-ignore: floating dialog */
dialog::backdrop { background: #0f0f0dcc; }
.terminal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #23221f; font: 13px ui-monospace, monospace; } /* taste-skill-ignore: terminal */
.terminal-header span { color: #bfb21a; letter-spacing: 4px; }
.terminal-header button { color: #fff; font-size: 22px; }
.terminal-output { height: 270px; overflow: auto; padding: 15px 20px; font: 13px/1.7 ui-monospace, monospace; white-space: pre-wrap; } /* taste-skill-ignore: terminal */
.terminal-output p { margin: 0 0 6px; }
.terminal-output b, #terminal-form label { color: #bfb21a; }
#terminal-form { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: #181715; }
#terminal-input { flex: 1; min-width: 0; background: transparent; color: #fff; border: 0; outline: none; font: 13px ui-monospace, monospace; } /* taste-skill-ignore: terminal */
#terminal-form button { color: #bfb21a; font-size: 20px; }
.terminal-output .dim { color: #8c8b84; }
.terminal-output .cmd { color: #c9c8c1; }
.terminal-output .err { color: #f0a08c; }
.owner-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: var(--step-small); background: var(--surface); padding: 12px 16px; margin-bottom: 40px; }
.owner-bar span { flex: 1; min-width: 220px; }
.owner-bar button { background: var(--bg); padding: 6px 12px; }
.owner-bar button:hover { background: var(--accent); color: var(--accent-ink); }

/* Sub pages: notes, a note, the lab, 404 */
.page { padding-top: clamp(64px, 10vw, 140px); min-height: 60vh; }
.page-title { font-size: var(--step-display); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 0 0 28px; }
.page-lead { color: var(--ink); max-width: 34em; margin: 0 0 56px; }
.page-lead a, .prose a { text-decoration: underline; text-underline-offset: 3px; }
.year { font-size: var(--step-small); color: var(--muted); font-weight: 400; margin: 48px 0 8px; }
.note { max-width: 720px; }
.note h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 40px; }
.note-meta, .note-edit { font-size: var(--step-small); color: var(--muted); }
.note-meta a, .note-edit a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.note-edit { margin-top: 72px; }
.prose { line-height: 1.6; }
.prose h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.02em; margin: 56px 0 12px; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 36px 0 10px; }
.prose code { font: .88em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface); padding: 1px 5px; }
.prose pre { background: var(--surface); padding: 16px 18px; overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose img { max-width: 100%; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; background: var(--surface); color: var(--muted); }
.prose .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

/* Tools: one brass beam bar that sticks while you scroll; quiet calculators under it, the answer set larger than the question */
.tools .page-lead { margin-bottom: 40px; }
.beam { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin: 0 calc(-1 * var(--margin)) 72px; padding: 14px var(--margin) 16px; background: var(--bg); border-bottom: 3px solid var(--accent); }
.beam-title { font-size: var(--step-small); font-weight: 600; margin: 0; align-self: center; min-width: 3em; }
.beam .chips { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 88px 64px; max-width: 1180px; }
.tool { border-top: 1px solid var(--ink); padding-top: 18px; min-width: 0; }
.tool h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; scroll-margin-top: 120px; }
.tool-lead { color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.fields { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.field { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.field .in { display: flex; align-items: baseline; background: var(--surface); border-bottom: 2px solid var(--ink); }
.field .in:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.field input { font: inherit; font-size: var(--step-body); color: var(--ink); background: none; border: 0; padding: 10px 4px 10px 12px; width: 6.25em; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.field input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field i { font-style: normal; color: var(--muted); padding-right: 12px; min-width: 1.5em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.chips button { font-size: var(--step-small); min-height: 36px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.result { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 26px 0 0; }
.result dt { font-size: var(--step-small); color: var(--muted); min-height: 1.5em; }
.result dd { margin: 0; }
.result dd button { position: relative; font-size: var(--step-lead); letter-spacing: -.015em; line-height: 1.2; font-variant-numeric: tabular-nums; text-align: left; }
.result dd button small { font-size: .6em; color: var(--muted); margin-left: .25em; letter-spacing: 0; }
.result dd button:hover { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.result .warn { max-width: 30em; }
[data-copied]::after { content: attr(data-copied); position: absolute; left: 0; top: 100%; margin-top: 4px; font-size: var(--step-small); letter-spacing: 0; white-space: nowrap; color: var(--muted); }
.tool-note { margin: 22px 0 0; max-width: 60ch; font-size: var(--step-small); color: var(--muted); }
.tool-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tool-share { margin: 96px 0 0; }
.tool-share button { position: relative; font-size: var(--step-small); min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .beam { gap: 10px 12px; padding: 10px var(--margin) 12px; margin-bottom: 56px; }
  .beam-title { display: none; }
  .beam .field input { width: 6em; }
  .beam .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .beam .chips button { flex: none; }
  .tool-grid { gap: 64px; }
}

/* Lab */
.lab-h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.02em; margin: 120px 0 12px; }
.lab-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 22px; font-size: var(--step-small); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface); }
.seg button { padding: 10px 14px; color: var(--ink); font-weight: 600; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.range { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.range input { accent-color: var(--ink); width: 140px; }
.range output { color: var(--ink); min-width: 88px; font-variant-numeric: tabular-nums; }
.lab-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab-panels canvas { width: 100%; aspect-ratio: 1; display: block; image-rendering: pixelated; cursor: crosshair; touch-action: none; background: var(--surface); }
.lab-readout { font-size: var(--step-small); margin: 16px 0 28px; font-variant-numeric: tabular-nums; }
.lab-notes { padding-top: 16px; max-width: 760px; }
.lab-notes summary { cursor: pointer; font-weight: 600; }
.lab-wave { width: 100%; height: min(62vh, 520px); display: block; background: var(--surface); touch-action: pan-y; cursor: crosshair; }
.lab-wave-pause { font-weight: 600; color: var(--ink); }

/* Between 960 and 1320px the side photos would sit on the text column; drop them under it */
@media (max-width: 1320px) { .work-figure, .lately-figure { position: static; width: auto; max-width: 420px; margin: 56px 0 0 var(--col); } }
@media (max-width: 960px) {
  .work-figure, .lately-figure { position: static; width: auto; max-width: 420px; margin: 56px var(--margin) 0; }
  .col { margin-left: var(--margin); }
  .measure { display: block; }
  .measure-copy { margin-top: 40px; max-width: 40em; }
  .reconstruct { display: block; }
  .ft-figure { margin-top: 40px; max-width: 520px; }
  .contact-line { grid-column: 1 / span 7; }
  .contact-figure { grid-column: 8 / span 2; }
  .contact-links { grid-column: 10 / -1; }
}
@media (max-width: 760px) {
  :root { --margin: 20px; }
  /* brand + Work, Notes, Contact + two 44px toggles must fit in 375px */
  .site-header { height: 56px; gap: 8px; padding: 0 12px; }
  .site-header nav { gap: 8px; }
  .site-header nav .wide { display: none; }
  .hero { padding: 0 8px; }
  .film { height: 36svh; min-height: 240px; }
  .film-bar { left: 12px; right: calc(7% + 28px); top: 64px; flex-wrap: wrap; gap: 8px 16px; }
  .hero-copy { padding: 0 12px; display: block; }
  .hero h1 { margin: 28px 0 24px; }
  .hero-actions { margin-bottom: 20px; }
  .intro, .contact, .lab-teaser, .measure, .reconstruct { display: block; }
  .ft-figure { margin-top: 32px; }
  /* small film: the button is enough, the ghost tap shows what to do */
  .film-bar .hint { display: none; }
  .measure-copy { margin-top: 40px; }
  .lab-teaser-figure { margin-top: 40px; }
  .intro-lead { margin-bottom: 40px; }
  .intro-cols { grid-template-columns: 1fr; gap: 24px; }
  .intro-figure { margin-top: 48px; }
  .contact-line { font-size: 1.5rem; margin-bottom: 40px; }
  .contact-figure { width: 96px; float: left; margin-right: 20px; }
  .contact-figure figcaption { display: none; }
  .contact-links { overflow: hidden; }
  .footer-line { grid-template-columns: 1fr; gap: 8px; }
  .footer-line > :last-child { text-align: left; }
  /* keep the three panels side by side: input, spectrum and result must be seen together */
  .lab-panels { gap: 8px; }
  .lab-panels figcaption { font-size: .8125rem; }
  .lab-controls { gap: 10px 16px; margin-bottom: 14px; }
  .lab-wave { height: min(46vh, 380px); }
}
@media (hover: hover) { .on-touch { display: none; } }
@media (hover: none) { .on-hover { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal > *, .shutter img { opacity: 1; transform: none; clip-path: none; }
}
[hidden] { display: none !important; }
