/* Hallmark · shape: Descent, one WebGL stage the page scrolls down through · genre: atmospheric · theme: custom · job: try · idea: "Scrolling is selling: the page falls with the coin until both land on the floor" · vibe: "cold coin of light, warm basalt"
 * paper: oklch(13% 0.014 255) · accent: oklch(78% 0.15 62) · display: Clash Grotesk · body: Switzer · hero: a full-bleed stage, the coin right of centre, the head anchored low on the left · nav: a top bar of wordmark, live pool price and one quiet action, with a depth index down the right edge · footer: one honest line, the section links and the motion switch · imagery: the mechanism itself, built in WebGL and driven by the page · signature: scrolling dumps the coin and it lands on a floor of basalt columns
 * axes: dark/grotesk-sans/warm · posture: full palette (void, stone, heat, bone) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R3 V5 · weakest: R, the stage could carry everything, so price rings, a dust field and a second scroll effect were cut and the type holds still */
/* Hallmark · hero-review: folded into the finish review · passed, 2 defects (a cage line through the index, a stub in the lede) · 2 resolved */
/* Hallmark · finish-review: subagent · 8 findings · 8 resolved · gap: motion was judged from stills */
/* Hallmark · waive 77 · each scene's text and console fill one half, the fixed WebGL stage fills the other · the basalt monolith the slider drives stands beside the text, outside the section's own box */
@import url("./tokens.css");
@import url("./base.css");

html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-stone) 100%) fixed var(--color-paper); }

/* ---------- The stage ---------- */

.stage { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.no-gl .stage, .no-gl .tags { display: none; }
main, .foot { position: relative; z-index: var(--z-base); }

.tags { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: row-reverse; align-items: center; gap: var(--space-xs); margin: 0; font-size: var(--text-xs); color: var(--color-cold); white-space: nowrap; opacity: 0; }
.tag::before { content: ""; width: 28px; border-top: 1px solid currentColor; }
.tag b { order: 1; font: 400 var(--text-sm)/1 var(--font-outlier); color: var(--color-ink); }
.tag--heat { color: var(--color-accent); }
@media (max-width: 60rem) { .tags { display: none; } }

/* ---------- The mark: seven columns whose level tops are the floor ---------- */

.mark { flex-shrink: 0; overflow: visible; }
.mark__top { fill: var(--color-accent); }
.mark__lit { fill: var(--color-stone-lit); }
.mark__mid { fill: var(--color-stone-mid); }
.mark__dark { fill: var(--color-stone-dark); }

/* ---------- The way in: the mark builds at the gate, then the stage builds and the words rise ---------- */

.gate { display: none; }
.line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .gate { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: var(--color-paper); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 560ms var(--ease-in-out), visibility 0s linear 760ms; }
  .js.is-gate .gate { opacity: 1; visibility: visible; transition: none; }
  /* Letting go, the mark flies at the viewer through its centre cell: the origin is that cell's middle. */
  .js .gate__mark { width: clamp(8rem, 12vw, 11rem); height: auto; opacity: 0; transform: scale(11); transform-origin: 50% 33%; transition: transform 760ms var(--ease-in), opacity 460ms linear 180ms; will-change: transform, opacity; }
  .is-gate .gate__mark { opacity: 1; transform: none; transition: none; }
  /* The columns rise one at a time, the centre first and then its ring, the way the stage builds a moment later. */
  .is-gate .gate__mark g { animation: gate-rise 460ms var(--ease-out) both; }
  .is-gate .gate__mark g:nth-child(4) { animation-delay: 100ms; }
  .is-gate .gate__mark g:nth-child(1) { animation-delay: 160ms; }
  .is-gate .gate__mark g:nth-child(2) { animation-delay: 220ms; }
  .is-gate .gate__mark g:nth-child(5) { animation-delay: 280ms; }
  .is-gate .gate__mark g:nth-child(7) { animation-delay: 340ms; }
  .is-gate .gate__mark g:nth-child(6) { animation-delay: 400ms; }
  .is-gate .gate__mark g:nth-child(3) { animation-delay: 460ms; }

  .js .hero .line { overflow: clip; margin-block: -0.06em -0.16em; padding-block: 0.06em 0.16em; }
  .js .hero .line > span { display: block; transition: transform 1100ms var(--ease-out); }
  .js .hero .line + .line > span { transition-delay: 110ms; }
  .js .hero .lede { transition: opacity 700ms var(--ease-out) 320ms, transform 900ms var(--ease-out) 320ms; }
  .js .hero .actions { transition: opacity 700ms var(--ease-out) 440ms, transform 900ms var(--ease-out) 440ms; }
  .js .hero .ca { transition: opacity 700ms var(--ease-out) 560ms, transform 900ms var(--ease-out) 560ms; }
  .js .hero::before { transition: opacity 1200ms var(--ease-out); }
  .js .bar { transition: opacity 600ms linear 260ms, transform 900ms var(--ease-out) 260ms; }
  .js .depth { transition: opacity 600ms linear 700ms; }
  .is-intro .hero .line > span { transform: translateY(114%); }
  .is-intro .hero .lede, .is-intro .hero .actions, .is-intro .hero .ca { opacity: 0; transform: translateY(14px); }
  .is-intro .hero::before { opacity: 0; }
  .is-intro .bar { opacity: 0; transform: translateY(-100%); }
  .is-intro .depth { opacity: 0; }
}
@keyframes gate-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Controls ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-muted); }
.btn--quiet:hover { background: var(--color-paper-3); border-color: var(--color-ink); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Top bar and depth index ---------- */

.bar { position: fixed; inset-inline: 0; top: 0; z-index: var(--z-sticky-nav); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--bar-height); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper) 82%, var(--color-veil-0) 100%); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; font: 500 1.375rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); text-decoration: none; }
.ticker { display: flex; gap: var(--space-lg); margin: 0 var(--space-md) 0 auto; font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.ticker b { margin-left: var(--space-2xs); font: 400 var(--text-sm)/1 var(--font-outlier); color: var(--color-ink); }
@media (max-width: 48rem) { .ticker { display: none; } }
/* The X link: the icon alone is the link. */
.social { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-right: calc(-1 * var(--space-xs)); border-radius: var(--radius-input); transition: background-color var(--dur-short) var(--ease-out); }
.social img { display: block; width: 30px; height: 30px; }
.social:hover { background: var(--color-paper-3); }
.social:active img { transform: translateY(1px); }
@media (max-width: 48rem) { .social { margin-left: auto; } }

.depth { position: fixed; right: 0; top: 50%; z-index: var(--z-sticky); transform: translateY(-50%); display: none; }
.depth ol { display: grid; margin: 0; padding: var(--space-xs) 0 var(--space-xs) var(--space-lg); list-style: none; border-right: 1px solid var(--color-rule); background: linear-gradient(270deg, var(--color-veil-deep) 0%, var(--color-veil-0) 100%); }
.depth a { position: relative; display: block; padding: var(--space-xs) var(--space-md); font-size: var(--text-xs); line-height: 1.2; text-align: right; text-decoration: none; color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.depth a::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 3px; background: var(--color-accent); transform: scaleY(0); transition: transform var(--dur-short) var(--ease-out); }
.depth a:hover { color: var(--color-ink); }
.depth a[aria-current="true"] { color: var(--color-ink); }
.depth a[aria-current="true"]::after { transform: scaleY(1); }
@media (min-width: 90rem) and (min-height: 40rem) { .js .depth { display: block; } }

/* ---------- Type ---------- */

h1, h2 { font-weight: 500; letter-spacing: var(--tracking-display); }
h1 { max-width: 13ch; font-size: var(--text-hero); line-height: 1; }
h2 { max-width: 15ch; font-size: var(--text-section); line-height: 1.04; }
h3 { font: 500 var(--text-title)/1.16 var(--font-display); letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */

.hero, .scene, .limits, .close, .pin__pane { position: relative; isolation: isolate; }
.hero::before, .scene::before, .pin__pane::before, .close::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero { display: grid; align-items: end; min-height: 100svh; padding-block: calc(var(--bar-height) + var(--space-xl)) var(--space-3xl); }
.hero::before { background: linear-gradient(90deg, var(--color-veil) 0%, var(--color-veil-0) 56%); }
.hero__in { display: grid; gap: var(--space-lg); }
.lede { max-width: 32ch; font-size: var(--text-lead); color: var(--color-ink-2); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
/* The contract address. Until there is one it says so; once there is, a button copies it. */
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-sm); min-height: 44px; margin: calc(-1 * var(--space-xs)) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.ca__value { min-width: 0; font: 400 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-ink); overflow-wrap: anywhere; }
.ca__copy { min-height: 44px; padding: 0 var(--space-xs); border: 0; background: none; color: var(--color-ink-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ca__copy:hover { color: var(--color-ink); }
.ca__copy:active { transform: translateY(1px); }
.ca__copy[data-done] { color: var(--color-accent); text-decoration: none; }

/* ---------- Pinned chapters: the fall and the Open ---------- */

.pin__pane { min-height: 100svh; }
.pin__pane::before { background: linear-gradient(90deg, var(--color-veil) 0%, var(--color-veil-0) 60%); }
.pin__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-content: center; min-height: 100svh; padding-block: calc(var(--bar-height) + var(--space-lg)) var(--space-xl); }
.pin__text { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); }
@media (prefers-reduced-motion: no-preference) {
  .js .pin { height: 340svh; }
  .js .pin__pane { position: sticky; top: 0; height: 100svh; }
  .js .pin__grid { height: 100%; }
}

.steps { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; max-width: 40ch; padding-left: var(--space-md); color: var(--color-ink-2); }
.steps li::before { content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 2px; background: var(--color-accent); transform-origin: top; }
.steps b { font-weight: 500; color: var(--color-ink); }
.js .steps.is-live li { color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.js .steps.is-live li::before { transform: scaleY(0); transition: transform var(--dur-short) var(--ease-out); }
.js .steps.is-live li b { color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.js .steps.is-live li.is-on { color: var(--color-ink-2); }
.js .steps.is-live li.is-on b { color: var(--color-ink); }
.js .steps.is-live li.is-on::before { transform: scaleY(1); }

.readout { grid-column: 1 / span 7; display: grid; gap: var(--space-xs); margin: 0; }
.readout__num { font: 400 var(--text-readout)/0.86 var(--font-outlier); letter-spacing: -0.05em; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.readout.is-floor .readout__num { color: var(--color-accent); }
.readout__unit { font-size: var(--text-sm); color: var(--color-muted); }

.split { grid-column: 1 / span 6; display: grid; gap: var(--space-sm); margin: 0; }
.split__bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--space-2xs); }
.split__part { display: grid; align-content: space-between; gap: var(--space-md); min-height: 104px; margin: 0; padding: var(--space-sm) var(--space-md); background: var(--color-paper-3); font-size: var(--text-sm); color: var(--color-ink-2); }
.split__part b { font: 400 var(--text-xl)/1 var(--font-outlier); letter-spacing: -0.03em; color: var(--color-ink); white-space: nowrap; }
.split__part--vault { background: var(--color-accent); color: var(--color-accent-ink); }
.split__part--vault b { color: var(--color-accent-ink); }
.split figcaption { max-width: 52ch; font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Scenes with a console ---------- */

.scene { display: grid; align-items: center; min-height: 100svh; padding-block: var(--section-gap); }
.scene--left::before { background: linear-gradient(90deg, var(--color-veil) 0%, var(--color-veil-0) 60%); }
.scene--right::before { background: linear-gradient(270deg, var(--color-veil) 0%, var(--color-veil-0) 60%); }
.scene__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.scene__text { display: grid; gap: var(--space-md); }
.scene__text > p { max-width: 42ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.scene--left .scene__text { grid-column: 1 / span 5; }
.scene--left .console { grid-column: 1 / span 6; }
.scene--right .scene__text { grid-column: 8 / span 5; }
.scene--right .console { grid-column: 7 / span 6; }
.scene__text > .formula { margin-top: var(--space-xs); font: 400 var(--text-md)/1.4 var(--font-outlier); color: var(--color-ink); }

.console { display: grid; gap: var(--space-lg); padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-well); }
.console__control { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: baseline; }
.console__control label { font-size: var(--text-sm); color: var(--color-ink-2); }
.console__control output { font: 400 var(--text-lg)/1 var(--font-outlier); color: var(--color-ink); white-space: nowrap; }
.console__note { font-size: var(--text-sm); color: var(--color-muted); }

.range { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 22px; background: linear-gradient(90deg, var(--color-accent) var(--fill, 0%), var(--color-muted) var(--fill, 0%)) center / 100% 2px no-repeat; }
.range::-moz-range-track { height: 2px; background: var(--color-muted); }
.range::-moz-range-progress { height: 2px; background: var(--color-accent); }
.range::-webkit-slider-thumb { width: 22px; height: 22px; border: 0; border-radius: var(--radius-input); background: var(--color-ink); -webkit-appearance: none; appearance: none; }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: var(--radius-input); background: var(--color-ink); }
.range:hover::-webkit-slider-thumb { background: var(--color-accent); }
.range:hover::-moz-range-thumb { background: var(--color-accent); }
.range:active::-webkit-slider-thumb { background: var(--color-accent); }
.range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.range:disabled { opacity: 0.55; cursor: not-allowed; }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.figures > div { display: grid; gap: var(--space-2xs); padding-inline: var(--space-md); border-left: 1px solid var(--color-rule); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures > div:last-child { padding-right: 0; }
.figures dt { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.figures dd { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.figures b { font: 400 var(--text-figure)/1.05 var(--font-outlier); letter-spacing: -0.04em; color: var(--color-ink); }

/* ---------- Borrowing ---------- */

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); margin: var(--space-md) 0 0; }
.terms > div { display: grid; gap: var(--space-2xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.terms dt { font-size: var(--text-sm); color: var(--color-muted); }
.terms dd { margin: 0; font-weight: 500; color: var(--color-ink); }

.chart { grid-column: 7 / span 6; align-self: center; margin: 0; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-well-deep); }
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram__floor { stroke: var(--color-accent); stroke-width: 2; }
.diagram__liq { stroke: var(--color-muted); stroke-width: 1; stroke-dasharray: 3 7; }
.diagram__price { fill: none; stroke: var(--color-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.diagram__cross { fill: none; stroke: var(--color-error); stroke-width: 2; stroke-linecap: round; }
.diagram__label { font-family: var(--font-body); font-size: 15px; fill: var(--color-muted); }
.diagram__label--heat { fill: var(--color-accent); }
.diagram__label--ink { fill: var(--color-ink); }
.chart figcaption { display: none; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- Limits ---------- */

.limits { display: grid; align-items: center; min-height: 100svh; padding-block: var(--section-gap-l); }
.limits h2 { max-width: 13ch; margin-bottom: var(--space-2xl); }
.limits__list { display: grid; max-width: 46rem; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-rule); }
.limits__list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xs) var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.limits__list p { max-width: 36ch; color: var(--color-ink-2); }

/* ---------- Close and footer ---------- */

.close { display: grid; align-items: end; min-height: 92svh; padding-block: var(--space-4xl) var(--space-3xl); }
.close::before { background: linear-gradient(0deg, var(--color-veil) 0%, var(--color-veil-0) 70%); }
.close__in { display: grid; gap: var(--space-xl); }
.close h2 { max-width: 12ch; font-size: var(--text-hero); line-height: 1; }

.launch { display: grid; gap: var(--space-xs); width: min(100%, 26rem); }
.launch label { font-size: var(--text-sm); color: var(--color-ink-2); }
.launch__row { display: flex; gap: var(--space-xs); }
.launch input { flex: 1; min-width: 0; min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1 var(--font-outlier); outline: 2px solid transparent; outline-offset: -3px; }
.launch input::placeholder { color: var(--color-muted); }
.launch input:focus-visible { outline-color: var(--color-focus); }
.launch input[aria-invalid] { border-color: var(--color-error); }
.launch input:disabled { opacity: 0.55; cursor: not-allowed; }
.launch__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }

.foot { border-top: 1px solid var(--color-rule); background: var(--color-stone); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg) var(--space-xl); align-items: center; padding-block: var(--space-xl); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; }
html:not(.js) .motion, .no-gl .motion { display: none; }
@media (prefers-reduced-motion: reduce) { .motion { display: none; } }

/* ---------- Narrow screens: the stage above, the words below ---------- */

@media (max-width: 60rem) {
  .hero::before, .pin__pane::before { background: linear-gradient(0deg, var(--color-veil) 0%, var(--color-veil) 46%, var(--color-veil-0) 82%); }
  .pin__grid { align-content: end; row-gap: var(--space-lg); padding-bottom: var(--space-lg); }
  .pin__text, .readout, .split { grid-column: 1 / -1; }
  .pin__text { gap: var(--space-md); }
  /* A scene with a console runs long: the words pass first, then the console sits low and leaves the stage clear above it. */
  .scene { align-items: start; padding-block: var(--section-gap) var(--space-2xl); }
  .scene--left::before, .scene--right::before { content: none; }
  .scene__grid { row-gap: 50svh; }
  .borrow .scene__grid { row-gap: var(--space-lg); }
  .scene__text { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-lg) var(--gutter); background: var(--color-paper); }
  .scene--left .scene__text, .scene--left .console, .scene--right .scene__text, .scene--right .console, .chart { grid-column: 1 / -1; }
  .limits__list li { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 40rem) {
  .console { padding: var(--space-md); gap: var(--space-md); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: var(--space-xs) 0; border-left: 0; border-top: 1px solid var(--color-rule); }
  .figures > div:first-child { border-top: 0; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the chart's two long notes move under it, and its short labels grow to a readable size. */
  .chart { padding: var(--space-md); }
  .chart figcaption { display: block; }
  .diagram__note { display: none; }
  .diagram__label { font-size: 26px; }
  .split__part { min-height: 84px; padding: var(--space-sm) var(--space-xs); }
  .split__part b { font-size: var(--text-md); letter-spacing: -0.04em; }
  .foot__in { gap: var(--space-xs); padding-block: var(--space-lg); }
  .foot__links { gap: 0 var(--space-md); }
  .close { padding-bottom: var(--space-xl); }
  .bar .btn--small { padding: 0 var(--space-sm); }
}
