/* earshot site. Brand: ink, paper, one blue that means sound. Satoshi, vendored. */

@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* page */
  --bg: #F5F7F9;          /* paper: a quiet, cool white room */
  --surface: #EBEDF0;     /* mist: one step */
  --surface-2: #DFE2E6;   /* two steps */
  --white: #FFFFFF;
  --ink: #0E0F13;
  --ink-press: #2A2D33;
  --muted: #5B5F66;
  --accent: #1F5EFF;      /* sound: blue at the moment it sounds */
  --accent-press: #1A50DB;
  --accent-ink: #FFFFFF;
  /* fragments (the product's own dark terminal) */
  --d-ground: #1B1D21;
  --d-card: #0E0F13;
  --d-raise: #17191D;
  --d-edge: #2C2F35;
  --d-text: #E6E8EC;
  --d-muted: #8E9198;
  --d-accent: #7EA0FF;

  --font: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace; /* taste-skill-ignore: only for literal code and real terminal output */

  /* five steps: display, head (the h1 and every h2), lead, body, small */
  --t-display: clamp(56px, 7.4vw, 120px);
  --t-head: clamp(40px, 5vw, 72px);
  --t-lead: clamp(20px, 1.7vw, 24px);
  --t-body: 17px;
  --t-small: 13px;

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(16px, 2vw, 32px);
  --section: clamp(120px, 13vw, 200px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 24px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 1em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
.head { font-size: var(--t-head); line-height: 1.02; letter-spacing: -0.035em; }
.display { font-size: var(--t-display); line-height: 0.92; letter-spacing: -0.04em; font-weight: 500; }
.lead-title { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }

/* controls */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; background: var(--ink); color: #FFFFFF; border-radius: var(--radius); font-size: var(--t-body); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--play { background: var(--accent); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link--line { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink-press); }
  .button--play:hover { background: var(--accent-press); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.03em; text-decoration: none; }
.wordmark__mark { width: 30px; height: 30px; color: var(--ink); }
.mark-bar { fill: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: var(--t-body); }
.nav__links .link { text-decoration-thickness: 1.5px; }

/* ---------- hero ---------- */
/* the first screen ends with the edge of the next field showing, so the page says it goes on */
.hero { min-height: calc(100svh - 120px); display: flex; flex-direction: column; }
.hero__stage {
  --reel-w: 31vw; --sliver: 60px; --gap: 24px; --shot-r: 0.5625;
  flex: 1; display: grid; grid-template-columns: 1fr var(--reel-w) 1fr;
  grid-template-rows: minmax(16px, 1fr) auto auto auto minmax(24px, 1fr);
  padding-bottom: 32px;
}
.hero__title { grid-row: 2; grid-column: 1 / -1; align-self: center; display: flex; justify-content: space-between; align-items: center; font-size: var(--t-head); line-height: 1.04; letter-spacing: -0.035em; pointer-events: none; }
.hero__title .line { pointer-events: auto; }
.hero__b { text-align: right; }
.hero__reel { display: contents; }
.reel { grid-row: 2; grid-column: 2; position: relative; height: calc(var(--reel-w) * var(--shot-r) + 2 * (var(--sliver) + var(--gap))); overflow: hidden; }
.reel__strip { position: absolute; left: 0; right: 0; top: calc(var(--sliver) + var(--gap)); will-change: transform; }
.player { grid-row: 3; grid-column: 2; margin-top: 12px; }
.hero__caption { grid-row: 4; grid-column: 2; margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.hero__caption { text-align: left; }
/* the supporting sentence sits under "Ears for": the title line is centred on the reel, so the lead starts half the reel down, plus half a title line, plus 16px (about 40px from the baseline) */
.hero__lead { grid-row: 2; grid-column: 1; align-self: start; position: relative; top: calc(50% + var(--t-head) * 0.52 + 16px); max-width: 21em; padding-right: var(--gutter); font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.01em; }
.hero noscript audio { grid-column: 2; width: 100%; }
/* the action closes the right column, under "coding agents.", level with the lead on the left */
.hero__go { grid-row: 2; grid-column: 3; justify-self: end; align-self: start; position: relative; top: calc(50% + var(--t-head) * 0.52 + 16px); }

/* the lines rise on load */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

/* shots: dark film frames, light objects, blue at the moment of sound */
.shot { position: relative; display: block; margin: 0 0 var(--gap); aspect-ratio: 16 / 9; background: #16181C; color: #F2F4F7; border-radius: var(--radius); overflow: hidden; container-type: size; }
.shot > * { position: absolute; }
.obj { background: #F2F4F7; transition: background-color 320ms ease; }
.obj.is-hot { background: var(--accent); transition: none; }
/* shot 1: a card flies in and lands, four chips, a tile knocks into place */
.s1-card { left: 33cqw; top: 13cqh; width: 34cqw; height: 42cqh; border-radius: 2.2cqw; padding: 5.5cqh 2.6cqw; color: var(--ink); }
.s1-card.is-hot { color: #FFFFFF; }
.s1-card b { display: block; font-size: 6.2cqh; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.s1-card small { display: block; margin-top: 1.4cqh; font-size: 4.2cqh; color: #6B7078; }
.s1-card.is-hot small { color: #DCE5FF; }
.s1-card .s1-bars { position: absolute; left: 2.6cqw; right: 2.6cqw; bottom: 5cqh; height: 8cqh; display: flex; align-items: center; gap: 0.7cqw; }
.s1-card .s1-bars i { flex: 1; border-radius: 1cqh; background: #B7BCC4; }
.s1-card.is-hot .s1-bars i { background: #FFFFFF; }
.s1-streak { left: 0; top: 33cqh; height: 1cqh; width: 26cqw; border-radius: 1cqh; background: var(--accent); transform-origin: left center; opacity: 0; }
.s1-chips { left: 21cqw; top: 66cqh; width: 44cqw; height: 11cqh; display: flex; gap: 1.6cqw; }
.s1-chips i { flex: 1; display: grid; place-items: center; border-radius: 11cqh; background: #2C2F36; color: #E6E8EC; font-style: normal; font-size: 4.4cqh; font-weight: 500; transform: scale(0); transition: background-color 320ms ease, color 320ms ease; } /* taste-skill-ignore: the chips pop in inside the demo film, set per frame by script */
.s1-chips i.is-hot { background: var(--accent); color: #FFFFFF; transition: none; }
.s1-tile { left: 67.5cqw; top: 62cqh; width: 11.5cqw; aspect-ratio: 1; border-radius: 1.8cqw; display: grid; place-items: center; color: var(--ink); }
.s1-tile svg { width: 64%; height: 64%; }
.s1-tile .mark-bar { fill: var(--ink); }
.s1-tile.is-hot { color: #FFFFFF; }
.s1-tile.is-hot .mark-bar { fill: #FFFFFF; }
/* shot 2: a line types out, a button is pressed and confirms, a counter ticks */
.s2-line { left: 9cqw; top: 17cqh; font-size: 8.5cqh; font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: pre; color: #F2F4F7; display: flex; align-items: center; }
.s2-line b { font-weight: 500; display: none; transition: color 320ms ease; }
.s2-line b.on { display: inline; }
.s2-line b.is-hot { color: var(--d-accent); transition: none; }
.s2-caret { display: inline-block; width: 0.6cqh; height: 8.5cqh; margin-left: 0.8cqh; background: var(--d-accent); }
.s2-button { left: 9cqw; top: 58cqh; height: 14cqh; padding: 0 4.4cqw; border-radius: 7cqh; background: #F2F4F7; color: var(--ink); font-size: 5.4cqh; font-weight: 500; display: flex; align-items: center; gap: 1.6cqw; } /* no fade: a half-blue button with half-white text is unreadable */
.s2-button.is-hot { background: var(--accent); color: #FFFFFF; transition: none; }
.s2-check { width: 5cqh; height: 5cqh; }
.s2-cursor { left: 0; top: 0; width: 5cqh; height: 6.6cqh; }
.s2-count { right: 9cqw; top: 52cqh; text-align: right; color: #F2F4F7; }
.s2-count b { display: block; font-size: 9cqh; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; transition: color 320ms ease; }
.s2-count b small { font-size: 0.45em; color: #8E9198; letter-spacing: 0; }
.s2-count span { display: block; margin-top: 1.4cqh; font-size: 4.4cqh; color: #8E9198; }
.s2-count.is-hot b { color: var(--d-accent); transition: none; }
/* shot 3: snap zoom, a progress bar steps up a C pentatonic, the build into the cut */
.s3-zoom { inset: 0; transform-origin: 50% 40%; }
.s3-label { position: absolute; left: 20cqw; top: 22cqh; font-size: 5cqh; font-weight: 500; color: #F2F4F7; }
.s3-bar { position: absolute; left: 20cqw; right: 20cqw; top: 33cqh; height: 9cqh; border-radius: 4.5cqh; background: #2C2F36; display: flex; gap: 0.8cqw; padding: 1.5cqh; }
.s3-bar i { flex: 1; border-radius: 3cqh; background: #F2F4F7; transform: scaleX(0); transform-origin: left center; transition: background-color 320ms ease; }
.s3-bar i.is-hot { background: var(--accent); transition: none; }
.s3-notes { position: absolute; left: 20cqw; right: 20cqw; top: 45cqh; display: flex; }
.s3-notes span { flex: 1; text-align: center; font-size: 4.4cqh; font-weight: 500; color: #8E9198; opacity: 0; transition: color 320ms ease; }
.s3-notes span.is-hot { color: var(--d-accent); transition: none; }
.s3-ring { position: absolute; left: 50%; top: 76cqh; width: 0; height: 0; }
.s3-ring i { position: absolute; left: -1cqh; top: -1cqh; width: 2cqh; height: 2cqh; border-radius: 50%; background: #F2F4F7; }
/* shot 4: the hit, the mark, the word sweeps in, the line resolves */
.s4-logo { left: 50%; top: 28cqh; display: flex; align-items: center; gap: 1.8cqw; transform: translateX(-50%); }
.s4-mark { width: 19cqh; height: 19cqh; color: #F2F4F7; }
.s4-mark .mark-bar { fill: #F2F4F7; transition: fill 320ms ease; }
.s4-mark.is-hot .mark-bar { fill: var(--d-accent); transition: none; }
.s4-word { font-size: 12cqh; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #F2F4F7; }
.s4-tag { left: 0; right: 0; top: 62cqh; text-align: center; font-size: 6.4cqh; font-weight: 500; letter-spacing: -0.02em; color: #F2F4F7; transition: color 320ms ease; }
.s4-tag.is-hot { color: var(--d-accent); transition: none; }
.shot.is-off { visibility: hidden; }
.shot__span { left: 3cqw; top: 4.5cqh; font-size: 3.8cqh; line-height: 1; color: #7D828B; font-variant-numeric: tabular-nums; }
.shot.is-sliver .shot__span { visibility: hidden; }

/* player: the cut list's control strip */
.player { background: var(--d-card); margin-top: 10px; color: var(--d-text); border-radius: var(--radius); padding: 12px 14px 14px; }
.player__row { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.player__play { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--radius); background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.player__play:active { transform: scale(0.97); }
.player__play svg { width: 16px; height: 16px; fill: currentColor; }
.player__play .i-pause { display: none; }
.player__play[aria-pressed="true"] .i-play { display: none; }
.player__play[aria-pressed="true"] .i-pause { display: block; }
@media (hover: hover) and (pointer: fine) { .player__play:hover { background: var(--accent-press); } }
.player__time { flex: none; width: 5.2em; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--d-muted); }
.player__cue { flex: 1; min-width: 0; min-height: 2.6em; display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.3; color: var(--d-muted); }
.player__cue .cue-role { flex: none; color: var(--d-text); font-weight: 500; }
.lane { position: relative; height: 34px; margin-top: 10px; cursor: pointer; touch-action: manipulation; }
.lane:focus-visible { outline-offset: 4px; }
.lane::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #2A2D33; }
.lane__cut { position: absolute; bottom: 0; width: 2px; height: 100%; margin-left: -1px; background: #4A4E56; }
.lane__tick { position: absolute; bottom: 0; width: 14px; height: 100%; margin-left: -7px; pointer-events: none; }
.lane__tick::before { content: ''; position: absolute; left: 6px; bottom: 0; width: 2px; height: var(--h, 16px); border-radius: 1px; background: #9EA2AA; transition: background-color 360ms ease, transform 360ms var(--ease-out); transform-origin: bottom; }
.lane__tick.is-hot::before { background: var(--d-accent); transform: scaleY(1.35); transition: none; }
.lane__tick.is-past::before { background: #C9CCD2; }
.lane__head { position: absolute; bottom: 0; top: 0; width: 2px; margin-left: -1px; background: #FFFFFF; left: 0; }
.lane__tick.is-near::before { background: #FFFFFF; transform: scaleY(1.2); }

/* ---------- how it works ---------- */
.how { position: relative; margin-top: 72px; }
.how__fields { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(88svh - 112px); }
.how__text { background: var(--surface); padding: 72px var(--margin) 64px; display: flex; flex-direction: column; }
.how__copy { max-width: 680px; flex: 1; display: flex; flex-direction: column; }
.how__clause { max-width: 12em; }
.how__body { margin-top: 32px; max-width: 34em; }
.how__also { margin-top: auto; padding-top: 32px; color: var(--muted); max-width: 34em; }
.how__also code { color: var(--ink); }
.how__frag { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 64px var(--margin); min-width: 0; }
.how__copy, .how__frag .term { transition: opacity 200ms ease; }
.how.is-swapping .how__copy, .how.is-swapping .how__frag .term { opacity: 0; }
.how__control { padding-block: 28px 0; }
.stage-wrap { position: relative; height: 32px; }
.stage-track { position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: #C5CAD1; }
.stage-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width 200ms var(--ease-out); }
.stage-range { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.stage-range::-webkit-slider-runnable-track { height: 32px; background: transparent; }
.stage-range::-moz-range-track { height: 32px; background: transparent; }
.stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border: 0; border-radius: 0; background: var(--ink); }
.stage-range::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 0; background: var(--ink); }
.stage-range:focus-visible { outline: none; }
.stage-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.how__names { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; }
.how__names li:nth-child(2), .how__names li:nth-child(3), .how__names li:nth-child(4) { text-align: center; }
.how__names li:last-child { text-align: right; }
.how__names button { font-size: var(--t-body); color: var(--muted); padding: 6px 0; transition: color var(--t-hover) ease; }
.how__names button[aria-current="step"] { color: var(--ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .how__names button:hover { color: var(--ink); } }

/* the terminal fragment */
.term { background: var(--d-card); color: var(--d-text); border-radius: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.6; } /* taste-skill-ignore: real terminal output inside a data-ui fragment */
.term--how { width: min(600px, 100%); max-height: calc(88svh - 200px); min-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px; }
.term__out { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.term mark { background: none; color: #FFFFFF; font-weight: 700; }
.term .t-dim { color: var(--d-muted); }

/* ---------- the bank ---------- */
.bank { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--section); align-items: start; }
.bank__index { grid-column: 1 / 6; align-self: stretch; }
.bank__sticky { position: sticky; top: 40px; padding-top: 8px; }
.bank__lead { margin-top: 24px; max-width: 26em; }
.bank__groups { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.bank__groups button { font-size: var(--t-head); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; color: #6B7078; transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.bank__groups button span { font-size: var(--t-small); letter-spacing: 0; vertical-align: top; margin-left: 4px; font-variant-numeric: tabular-nums; position: relative; top: 0.5em; }
.bank__groups button[aria-selected="true"] { color: var(--ink); }
.bank__groups button:active { transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) { .bank__groups button:hover { color: var(--ink); } }
.bank__stage { grid-column: 6 / 13; background: var(--surface); border-radius: var(--radius) 0 0 var(--radius); padding: 72px var(--margin) 64px 64px; margin-right: calc(var(--margin) * -1); min-height: 88svh; }

/* the sheet: the product's own sound list */
.sheet { width: 100%; background: var(--d-card); color: var(--d-text); border-radius: 6px; padding: 20px 0 10px; font-size: 14px; line-height: 1.4; transition: opacity 200ms ease; }
.sheet.is-swapping { opacity: 0; }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 20px 6px; }
.sheet__title { font-size: var(--t-body); font-weight: 500; }
.sheet__count { font-size: 13px; color: var(--d-muted); font-variant-numeric: tabular-nums; }
.sheet__note { padding: 0 20px; font-size: 13px; color: var(--d-muted); max-width: 46em; }
.sheet__empty { padding: 20px; color: var(--d-muted); font-size: var(--t-small); }
.fam { padding-top: 22px; }
.fam__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 20px; }
.fam__title { font-size: 14px; font-weight: 500; color: #FFFFFF; }
.fam__meta { font-size: 13px; color: var(--d-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fam__use { padding: 2px 20px 8px; font-size: 13px; color: var(--d-muted); }
.row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 132px 56px 64px; align-items: center; column-gap: 12px; width: 100%; min-height: 40px; padding: 0 20px; color: var(--d-text); transition: background-color var(--t-hover) ease; }
.row__play { width: 24px; height: 24px; border-radius: 50%; background: #262930; display: grid; place-items: center; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.row__play svg { width: 8px; height: 8px; fill: #C8CBD1; margin-left: 1px; }
.row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline 1px transparent; text-underline-offset: 5px; }
.row__wave { width: 132px; height: 22px; position: relative; }
.row__wave svg { width: 100%; height: 100%; }
.row__wave path { fill: #5D616A; transition: fill 240ms ease; }
.row__head { position: absolute; top: -2px; bottom: -2px; left: 0; width: 1px; background: #FFFFFF; opacity: 0; }
.row__len, .row__note { font-size: 13px; color: var(--d-muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row:active .row__play { transform: scale(0.94); }
.row.is-on { background: var(--d-raise); }
.row.is-on .row__name { text-decoration-color: var(--d-accent); color: #FFFFFF; }
.row.is-on .row__play { background: var(--accent); }
.row.is-on .row__play svg { fill: #FFFFFF; }
.row.is-playing .row__wave path { fill: var(--d-accent); }
.row.is-loading .row__play { background: #3A4E86; }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--d-raise); } .row:hover .row__play { background: #3A3E46; } }
.row__detail { display: none; padding: 2px 20px 12px 56px; font-size: 13px; color: #B9BCC3; background: var(--d-raise); }
.row.is-on + .row__detail { display: block; }
.row__detail code { color: var(--d-muted); font-size: 13px; margin-left: 6px; }
.row__detail a { color: #B9BCC3; }
.fam__more { display: none; flex: none; align-items: center; min-height: 44px; margin: -12px -6px -12px 0; padding: 0 6px; font-size: 13px; font-weight: 500; color: #FFFFFF; text-decoration: underline 1px #8E9198; text-underline-offset: 5px; }
.sheet__foot { margin-top: 18px; padding: 12px 20px 6px; font-size: 13px; color: var(--d-muted); }

@media (min-width: 1280px) {
  .bank__stage { padding: 56px var(--margin) 48px 48px; }
  .sheet__body { column-count: 2; column-gap: 0; }
  .fam { break-inside: avoid; }
  .row { grid-template-columns: 24px minmax(0, 1fr) 104px 52px; }
  .row__wave { width: 104px; }
  .row__note { display: none; }
}

/* ---------- the launch film ---------- */
.film { margin-top: var(--section); }
.film { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.film__head { grid-column: 8 / 13; grid-row: 1; padding-top: 4px; }
.film__text { margin-top: 28px; max-width: 30em; }
.film__video { grid-column: 1 / 8; grid-row: 1; position: relative; aspect-ratio: 16 / 9; background: #ECEFF2; border-radius: var(--radius); overflow: hidden; }
.film__video video { width: 100%; height: 100%; object-fit: cover; }
.film__sound { position: absolute; left: 24px; bottom: 24px; }
.film__sheet { grid-column: 1 / -1; margin-top: 24px; }
.film__sheet img { width: 100%; border-radius: var(--radius); background: #F2F2F2; }
.film__sheet figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.film__sheet figcaption code { font-size: 1em; }

/* ---------- features: small proof beside text ---------- */
.craft { margin-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.craft__title { grid-column: 1 / -1; }
.mod { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-top: 128px; }
.craft__title + .mod { margin-top: 56px; }
.mod--lead .mod__panel { grid-column: 1 / 9; }
.mod--lead .mod__text { grid-column: 9 / 13; padding-top: 8px; }
.mod--rev .mod__panel { grid-column: 5 / 13; grid-row: 1; }
.mod--rev .mod__text { grid-column: 1 / 5; grid-row: 1; padding-top: 8px; }
.pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--gutter); margin-top: 128px; }
.pair .mod { margin-top: 0; grid-row: span 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; row-gap: 0; }
.pair .mod:first-child { grid-column: 1 / 8; }
.pair .mod:last-child { grid-column: 8 / 13; }
.pair--b .mod:first-child { grid-column: 1 / 6; }
.pair--b .mod:last-child { grid-column: 6 / 13; }
.pair .mod__panel { align-self: stretch; }
.pair .mod__text { margin-top: 28px; }
.mod__panel { background: var(--surface); border-radius: var(--radius); min-height: 150px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.mod__panel--dark { background: var(--d-card); justify-content: flex-start; }
.mod__title { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -0.015em; }
.mod__text p { margin-top: 14px; max-width: 34em; }
.mod__text .mod__title + p { margin-top: 16px; }
.term--crop { padding: 20px 22px; border-radius: 0; font-size: 13px; line-height: 1.65; }
.term--crop .term__out { white-space: pre-wrap; overflow-wrap: anywhere; }
.term--takes { padding: 24px 26px; }
.tk { display: grid; grid-template-columns: 11ch 13ch 8ch auto; column-gap: 3ch; }
.tk__len { color: var(--d-muted); }
.term__button { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--radius); background: var(--accent); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.term__button:active { transform: scale(0.97); }
.term__button svg { width: 16px; height: 16px; fill: currentColor; }
.term__button.is-playing { background: #2A2D33; }
@media (hover: hover) and (pointer: fine) { .term__button:hover { background: var(--accent-press); } }

/* the knobs fragment */
.knobs { padding: 18px 22px 16px; font-size: 13px; line-height: 1.45; color: var(--d-text); }
.knobs__head { display: flex; justify-content: space-between; color: var(--d-muted); padding-bottom: 6px; }
.knobs__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 14px; padding: 9px 0; }
.knobs__id { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; font-weight: 500; text-align: left; min-height: 44px; margin-block: -8px; text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color var(--t-hover) ease; }
.knobs__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5D616A; transition: background-color 320ms ease, transform var(--t-press) var(--ease-out); }
.knobs__id:active .knobs__dot { transform: scale(0.8); }
.knobs__id.is-hot .knobs__dot { background: var(--d-accent); transition: none; }
@media (hover: hover) and (pointer: fine) { .knobs__id:hover { text-decoration-color: var(--d-accent); } }
.knobs__k { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; min-height: 28px; color: var(--d-muted); }
.knobs__k em { font-style: normal; color: var(--d-text); }
.knobs__note { grid-column: 2; color: var(--d-muted); }
@media (max-width: 640px) { .knobs__row { grid-template-columns: minmax(0, 1fr); } .knobs__note { grid-column: 1; } .knobs { padding: 16px; } }

/* the offset ruler */
.ruler { padding: 16px 22px 14px; font-size: 13px; }
.ruler__track { position: relative; height: 150px; }
.ruler__axis { position: absolute; left: 0; right: 0; top: 66px; height: 2px; background: #AEB3BB; }
.ruler__cutline { position: absolute; top: 6px; height: 122px; width: 2px; margin-left: -1px; background: var(--ink); }
.ruler__cut { position: absolute; top: 128px; transform: translateX(-50%); font-weight: 500; color: var(--ink); }
.ruler__marks { position: absolute; inset: 0; }
.ruler__m { position: absolute; top: 67px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; }
.ruler__dot { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: background-color 320ms ease, transform var(--t-press) var(--ease-out); }
.ruler__m:active .ruler__dot { transform: scale(0.85); }
.ruler__m.is-hot .ruler__dot { background: var(--accent); transform: scale(1.2); transition: none; }
.ruler__lab { position: absolute; white-space: nowrap; line-height: 1.2; color: var(--ink); }
.ruler__lab em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.ruler__m.tier-a .ruler__lab { bottom: calc(50% + 12px); }
.ruler__m.tier-b .ruler__lab { bottom: calc(50% + 40px); }
.ruler__m.tier-c .ruler__lab { top: calc(50% + 12px); }
.ruler__m.tier-d .ruler__lab { top: calc(50% + 40px); }
.ruler__m.tier-b::after, .ruler__m.tier-d::after { content: ""; position: absolute; left: 19.5px; width: 1px; height: 30px; background: #9DA2AA; }
.ruler__m.tier-b::after { bottom: calc(50% + 9px); }
.ruler__m.tier-d::after { top: calc(50% + 9px); }
.ruler__m.al-c .ruler__lab { left: 50%; transform: translateX(-50%); }
.ruler__m.al-l .ruler__lab { left: 12px; }
.ruler__m.al-r .ruler__lab { right: 12px; }
@media (hover: hover) and (pointer: fine) { .ruler__m:hover .ruler__dot { background: #3A3E46; } }
.ruler__note { margin-top: 4px; color: var(--muted); font-size: 13px; min-height: 1.4em; }
@media (max-width: 640px) { .ruler__dot { left: 14px; top: 14px; width: 12px; height: 12px; } .ruler { padding-inline: 16px; } }

/* the A/B */
.ab { padding: 18px 20px 16px; }
.ab__top { display: flex; justify-content: space-between; align-items: center; }
.ab__switch { display: flex; gap: 10px; }
.ab__switch button { min-height: 44px; font-size: 14px; font-weight: 500; color: var(--muted); padding: 0 8px; text-decoration: underline 1px transparent; text-underline-offset: 7px; transition: color var(--t-hover) ease; }
.ab__switch button[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.ab__play { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.ab__play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.ab__play:active { transform: scale(0.94); }
.ab__play.is-playing { background: var(--accent); }
.ab__spec { width: 100%; height: 168px; margin-top: 12px; border-radius: 3px; background: var(--d-card); }
.ab__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- proof ---------- */
.proof { margin-top: var(--section); }
.proof__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.proof__title { grid-column: 1 / 8; padding-left: 156px; }
.figs { grid-column: 1 / 8; grid-row: 2; margin-top: 56px; }
.fig { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
.fig + .fig { margin-top: 28px; }
.fig dt { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig dd { max-width: 34em; }
.proof__photo { grid-column: 9 / 12; grid-row: 2; margin-top: 136px; }
.proof__frame { overflow: clip; border-radius: var(--radius); }
.proof__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #CFCFCF; }

.bench { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; margin-top: 128px; align-items: start; }
.bench__head { grid-column: 1 / 5; }
.bench__head p { margin-top: 16px; max-width: 30em; }
.bench__table { grid-column: 5 / 13; }
.bench table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bench th, .bench td { text-align: left; vertical-align: top; padding: 14px 16px; font-weight: 400; }
.bench thead th { font-size: var(--t-small); color: var(--muted); padding-top: 0; }
.bench tbody th { width: 44%; }
.bench tbody tr:nth-child(odd) { background: var(--surface); }
.bench tbody td:last-child { font-weight: 500; }
.bench__notes li { max-width: 40em; }
.bench__notes { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; color: var(--muted); font-size: var(--t-body); line-height: 1.55; }

/* ---------- limits ---------- */
.limits { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--section); align-items: start; }
.limits__list { grid-column: 1 / 7; max-width: 600px; }
.rows { margin-top: 32px; }
.rows__group { color: var(--muted); margin-top: 40px; }
.rows__group:first-child { margin-top: 0; }
.rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 7px 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; align-self: center; }
.dot--trust { background: var(--ink); }
.dot--hint { background: #9DA2AA; }
.dot--none { background: #C5CAD1; }
.rows__val { font-size: var(--t-small); color: var(--muted); text-align: right; white-space: nowrap; }
.limits__say { grid-column: 7 / 13; padding-top: 104px; }
.statement p { font-size: var(--t-lead); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.limits__note { margin-top: 28px; max-width: 30em; color: var(--muted); }
.limits__photo { margin-top: 48px; }
.limits__frame { overflow: clip; border-radius: var(--radius); }
.limits__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #CFCFCF; }
.limits__photo figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }

/* ---------- install: the first step, already open ---------- */
.install { margin-top: clamp(96px, 9vw, 128px); background: var(--ink); color: #FFFFFF; min-height: 90svh; display: flex; }
.install__inner { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 96px 40px; }
.install__say { grid-column: 1 / 6; align-self: end; }
.install__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.install__title .line > span { display: block; }
.install__say p { margin-top: 28px; max-width: 30em; }
.install__link { display: inline-block; margin-top: 18px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.24em; text-decoration-thickness: 1.5px; }
.install ::selection { background: #FFFFFF; color: var(--ink); }
.install__say p { color: #D5D8DE; }
.install :focus-visible { outline-color: #FFFFFF; }
.dialog { grid-column: 7 / 13; align-self: start; background: var(--d-ground); color: var(--d-text); border-radius: var(--radius); padding: 24px 24px 20px; min-width: 0; }
.dialog__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dialog__title { font-size: var(--t-body); font-weight: 500; color: #FFFFFF; }
.seg { display: flex; gap: 10px; }
.seg button { min-height: 44px; font-size: 13px; color: var(--d-muted); padding: 0 6px; text-decoration: underline 1px transparent; text-underline-offset: 7px; transition: color var(--t-hover) ease; }
.seg button[aria-pressed="true"] { color: #FFFFFF; text-decoration-color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: #FFFFFF; } }
.dialog__code { margin-top: 16px; padding: 16px 16px; background: var(--d-card); border-radius: 4px; font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--d-text); }
.dialog__primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 16px; border-radius: var(--radius); background: #FFFFFF; color: var(--ink); font-size: var(--t-body); font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.dialog__primary:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .dialog__primary:hover { background: #DCE0E6; } }
.dialog__sub { margin-top: 22px; font-size: 13px; color: var(--d-muted); }
.dialog__code--mcp { margin-top: 10px; }
.dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--d-muted); }
.dialog__copy { flex: none; min-height: 44px; font-size: 13px; font-weight: 500; color: #FFFFFF; padding: 0 4px; text-decoration: underline 1px var(--d-muted); text-underline-offset: 6px; }

/* ---------- footer: two rows of tiles ---------- */
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding-block: 8px var(--margin); }
.tile { border-radius: var(--radius); background: var(--surface); padding: 24px; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; }
.tile--say { grid-column: 1 / 5; justify-content: space-between; gap: 24px; }
.foot__say { font-size: var(--t-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; max-width: 18em; }
.foot__legal { font-size: var(--t-small); color: var(--muted); max-width: 34em; }
.tile--nav { grid-column: 5 / 7; }
.tile--nav li + li { margin-top: 4px; }
.tile--credit { grid-column: 7 / 10; gap: 12px; font-size: var(--t-small); line-height: 1.5; }
.tile--repo { grid-column: 10 / 13; justify-content: space-between; }
.foot__ver { font-size: var(--t-small); color: var(--muted); }
.foot__repo { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.015em; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.tile--mark { grid-column: 1 / 9; min-height: 320px; background: var(--ink); color: #FFFFFF; align-items: center; justify-content: center; }
.foot__word { display: flex; align-items: center; gap: 0.18em; font-size: var(--t-display); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.foot__mark { width: 0.95em; height: 0.95em; color: #FFFFFF; }
.tile--go { grid-column: 9 / 13; min-height: 320px; background: var(--surface-2); color: var(--ink); justify-content: space-between; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.foot__go { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.015em; }
.foot__arrow { width: 48px; height: 48px; align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile--go:hover { background: var(--ink); color: #FFFFFF; } .tile--go:hover .foot__arrow { transform: translate(4px, -4px); } }

/* ---------- motion (content is visible without script and under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(108%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 300ms); }
  .js [data-reveal] { opacity: 0.35; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--r, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .film__video[data-reveal] { opacity: 1; transform: none; }
  .js .film__video[data-reveal] video { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1100ms var(--ease-in-out), transform 1500ms var(--ease-soft); }
  .js .film__video[data-reveal].is-in video { clip-path: inset(0); transform: none; }
  /* the archive photographs open from below and settle from a slight scale */
  .js [data-open] .proof__frame, .js [data-open] .limits__frame { clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js [data-open] img { transform: scale(1.06); transition: transform 1600ms var(--ease-soft); }
  .js [data-open].is-in .proof__frame, .js [data-open].is-in .limits__frame { clip-path: inset(0); }
  .js [data-open].is-in img { transform: none; }
  /* the install heading rises out of its mask, line by line */
  .js [data-rise] .line > span { transform: translateY(108%); transition: transform 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 110ms); }
  .js [data-rise].is-in .line > span { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

/* ---------- tablet and phone ---------- */
@media (max-width: 1079px) {
  :root { --t-head: clamp(40px, 8.2vw, 64px); --t-display: clamp(56px, 11vw, 120px); }
  .hero { min-height: 0; }
  .how { margin-top: 48px; }
  .hero__stage { --reel-w: calc(100vw - 2 * var(--margin)); --sliver: 28px; --gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(var(--t-head) * 1.12) auto calc(var(--t-head) * 1.12) auto auto auto; row-gap: 0; padding-bottom: 40px; }
  .hero__title { grid-row: 1 / 4; grid-column: 1; align-self: stretch; flex-direction: column; justify-content: space-between; align-items: stretch; }
  .hero__a { align-self: flex-start; }
  .hero__b { align-self: flex-end; }
  .reel { grid-row: 2; grid-column: 1; margin-block: 8px; }
  .hero__go { display: none; }
  .hero__lead { grid-row: 4; grid-column: 1; position: static; top: auto; margin-top: 20px; padding-right: 0; max-width: 30em; }
  .player { grid-row: 5; grid-column: 1; margin-top: 24px; }
  .hero__caption { grid-row: 6; grid-column: 1; }
  .nav__links .link { display: none; }
  .nav__links .link:first-child { display: inline; }

  /* the step's words first, then the slider, then the whole output: nothing is cut and the slider never moves */
  .how { display: flex; flex-direction: column; }
  .how__fields { display: contents; }
  .how__text { order: 1; padding: 48px var(--margin) 28px; }
  .how__control { order: 2; position: static; background: var(--surface); padding: 0 var(--margin) 24px; }
  .how__frag { order: 3; height: auto; padding: 24px var(--margin) 0; align-items: stretch; }
  .term--how { max-height: none; min-height: 0; width: 100%; overflow: visible; }
  .how__names { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .how__names li { text-align: center !important; }
  .how__names li:first-child { text-align: left !important; }
  .how__names li:last-child { text-align: right !important; }

  .bank__index { grid-column: 1 / -1; }
  .bank__sticky { position: static; }
  .bank__groups { flex-direction: row; flex-wrap: wrap; gap: 0 20px; margin-top: 20px; }
  .bank__groups button { min-height: 44px; font-size: var(--t-lead); letter-spacing: -0.02em; }
  .bank__groups button span { top: 0.2em; }
  .bank__stage { grid-column: 1 / -1; margin-top: 20px; padding: 16px; min-height: 0; margin-inline: calc(var(--margin) * -1); border-radius: 0; }
  .sheet { width: 100%; }
  /* each family shows two sounds and a button for the rest in its head: all 252 stay one tap away */
  .fam--folded > .row:nth-of-type(n+3), .fam--folded > .fam__use { display: none; }
  .fam--folded .fam__meta { display: none; }
  .fam--folded .fam__more { display: inline-flex; }
  .fam__head { align-items: center; min-height: 32px; }
  .fam--folded .fam__head { padding-bottom: 4px; }

  .film__head { grid-column: 1 / -1; grid-row: 1; }
  .film__text { margin-top: 20px; }
  .film__video { grid-column: 1 / -1; grid-row: 2; margin-top: 36px; }
  .film__sound { left: 12px; bottom: 12px; }

  .mod, .pair { grid-template-columns: minmax(0, 1fr); margin-top: 72px; }
  .craft__title + .mod { margin-top: 40px; }
  .mod--lead .mod__panel, .mod--lead .mod__text, .mod--rev .mod__panel, .mod--rev .mod__text,
  .pair .mod:first-child, .pair .mod:last-child, .pair--b .mod:first-child, .pair--b .mod:last-child { grid-column: 1 / -1; grid-row: auto; }
  .pair { grid-template-rows: none; row-gap: 72px; }
  .pair .mod { grid-row: auto; grid-template-rows: none; }
  .mod__text, .pair .mod__text { margin-top: 20px; padding-top: 0; }

  .proof__title { padding-left: 0; grid-column: 1 / -1; }
  .figs { grid-column: 1 / -1; }
  .fig { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
  .proof__photo { grid-column: 1 / -1; grid-row: 3; margin-top: 48px; }
  .proof__photo img { aspect-ratio: 4 / 3; }
  .bench__head, .bench__table, .bench__notes { grid-column: 1 / -1; }
  .bench__notes { grid-template-columns: 1fr; }

  .limits__list, .limits__say { grid-column: 1 / -1; }
  .limits__say { padding-top: 64px; }

  .install__inner { padding-block: 64px 40px; row-gap: 40px; }
  .install__say { grid-column: 1 / -1; grid-row: 1; align-self: start; }
  .dialog { grid-column: 1 / -1; grid-row: 2; align-self: end; }

  .tile--say { grid-column: 1 / -1; }
  .tile--nav { grid-column: 1 / 7; }
  .tile--credit { grid-column: 7 / 13; }
  .tile--repo { grid-column: 1 / -1; }
  .tile--mark { grid-column: 1 / -1; }
  .tile--go { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --t-body: 16px; }
  .nav { height: 68px; }
  .nav__links { gap: 16px; }
  .nav__links .link:first-child { display: none; }
  .wordmark__mark { width: 26px; height: 26px; }
  .hero__stage { --shot-r: 0.75; }
  .shot { aspect-ratio: 4 / 3; }
  .player__row { flex-wrap: wrap; row-gap: 8px; }
  .player__cue { flex-basis: 100%; order: 3; }
  .lane { height: 44px; }
  .row { grid-template-columns: 24px minmax(0, 1fr) 76px 52px; column-gap: 10px; padding: 0 14px; min-height: 44px; }
  .row__wave { width: 76px; }
  .row__note { display: none; }
  .row__detail { padding-left: 48px; padding-right: 14px; }
  .fam__head, .fam__use, .sheet__head, .sheet__note, .sheet__foot { padding-inline: 14px; }
  .mod__panel .term--crop { padding: 16px; }
  .tk { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2ch; }
  .tk__len { display: none; }
  .rows li { padding: 11px 0; }
  .rows li { grid-template-columns: 16px minmax(0, 1fr); }
  .rows__val { grid-column: 2; text-align: left; }
  .bench th, .bench td { padding: 12px 10px; }
  .bench tbody th { width: 40%; }
  .foot { gap: 6px; }
  .tile { padding: 20px; min-height: 0; }
  .tile--say, .tile--credit, .tile--repo { min-height: 180px; }
  .tile--nav { min-height: 180px; }
  .tile--mark { min-height: 160px; }
  .tile--go { min-height: 140px; }
  .foot__word { font-size: var(--t-display); }
  .tile--go { grid-row: 1; grid-column: 1 / -1; }
  .tile--nav { grid-row: 2; grid-column: 1 / 7; }
  .tile--repo { grid-row: 2; grid-column: 7 / 13; }
  .tile--say { grid-row: 3; grid-column: 1 / -1; }
  .tile--credit { grid-row: 4; grid-column: 1 / -1; }
  .tile--mark { grid-row: 5; grid-column: 1 / -1; }
  .foot__repo { font-size: var(--t-body); }
}

/* the frames above and below the gate show their shapes, not their words */
.shot.is-sliver .s1-card b, .shot.is-sliver .s1-card small, .shot.is-sliver .s1-chips, .shot.is-sliver .s2-line, .shot.is-sliver .s2-count,
.shot.is-sliver .s2-button, .shot.is-sliver .s3-label, .shot.is-sliver .s3-notes, .shot.is-sliver .s4-word, .shot.is-sliver .s4-tag { visibility: hidden; }
