/* slipsprout.com. Brand colours and faces from Brand identity/SlipSprout-Brand-Guidelines.md. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #f4f7fa;      /* Cloud White */
  --paper: #ffffff;       /* the slip */
  --field: #eaf0f6;       /* one tone step off the ground, for panels on the slip */
  --ink: #14283d;         /* Midnight Navy: headings and controls */
  --text: #253447;        /* Slate: running text */
  --muted: #56677a;       /* secondary notes, 5.6:1 on white */
  --accent: #2f6fe4;      /* Electric Blue deepened so white labels pass 4.5:1 */
  --accent-press: #2463d6;
  --link: #2463d6;
  --mint: #35c99a;        /* Fresh Mint: fills and marks only, never text */
  --mint-wash: #d7f4ea;
  --silver: #dce5ef;      /* Soft Silver: lines inside interface fragments only */
  --warn: #c9302c;
  --warn-wash: #fcedec;

  --margin: clamp(20px, 3vw, 40px);
  --slip-w: 760px;
  --pad: clamp(20px, 6vw, 64px);
  --wide: min(1040px, 100vw - 2 * var(--margin));

  --fs-display: clamp(2.125rem, 1rem + 4.6vw, 5rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-body: 1.125rem;
  --fs-nav: 1rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  --teeth-up: polygon(0% 100%, 2.5% 0%, 5.0% 100%, 7.5% 0%, 10.0% 100%, 12.5% 0%, 15.0% 100%, 17.5% 0%, 20.0% 100%, 22.5% 0%, 25.0% 100%, 27.5% 0%, 30.0% 100%, 32.5% 0%, 35.0% 100%, 37.5% 0%, 40.0% 100%, 42.5% 0%, 45.0% 100%, 47.5% 0%, 50.0% 100%, 52.5% 0%, 55.0% 100%, 57.5% 0%, 60.0% 100%, 62.5% 0%, 65.0% 100%, 67.5% 0%, 70.0% 100%, 72.5% 0%, 75.0% 100%, 77.5% 0%, 80.0% 100%, 82.5% 0%, 85.0% 100%, 87.5% 0%, 90.0% 100%, 92.5% 0%, 95.0% 100%, 97.5% 0%, 100.0% 100%);
  --teeth-down: polygon(0% 0%, 2.5% 100%, 5.0% 0%, 7.5% 100%, 10.0% 0%, 12.5% 100%, 15.0% 0%, 17.5% 100%, 20.0% 0%, 22.5% 100%, 25.0% 0%, 27.5% 100%, 30.0% 0%, 32.5% 100%, 35.0% 0%, 37.5% 100%, 40.0% 0%, 42.5% 100%, 45.0% 0%, 47.5% 100%, 50.0% 0%, 52.5% 100%, 55.0% 0%, 57.5% 100%, 60.0% 0%, 62.5% 100%, 65.0% 0%, 67.5% 100%, 70.0% 0%, 72.5% 100%, 75.0% 0%, 77.5% 100%, 80.0% 0%, 82.5% 100%, 85.0% 0%, 87.5% 100%, 90.0% 0%, 92.5% 100%, 95.0% 0%, 97.5% 100%, 100.0% 0%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Manrope", "Inter", system-ui, sans-serif; color: var(--ink); margin: 0; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint-wash); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--margin); top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }

/* The bar: logo top left, links, one filled action at the right (house rule 17). */
.bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  padding: 20px var(--margin);
}
.bar > .logo { justify-self: start; }
.bar__end { display: contents; }
.bar__end > nav { grid-column: 2; }
.bar__end > .button { grid-column: 3; justify-self: end; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__word { width: 128px; height: 23px; }
.nav { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav a, .menu__list a {
  color: var(--ink); font-size: var(--fs-nav); font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav a:hover, .menu__list a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: var(--fs-nav); font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:hover { background: var(--accent-press); text-decoration: none; }
.button:active { transform: scale(0.97); }
.bar .button { min-height: 44px; padding: 0 20px; }
.label-short { display: none; }

.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; color: var(--ink);
  transition: background-color var(--t-hover) ease;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--field); }
.menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 220px;
  list-style: none; margin: 0; padding: 8px 20px; background: var(--ink); border-radius: 22px;
}
.menu__list a { color: #fff; }
@media (max-width: 820px) {
  .bar { display: flex; justify-content: space-between; }
  .bar__end { display: flex; align-items: center; gap: 8px; }
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 480px) {
  .bar { gap: 12px; }
  .logo { gap: 8px; }
  .logo__word { width: 104px; height: auto; }
  .logo__mark { width: 30px; height: 30px; }
  .bar .button { padding: 0 18px; }
  .bar .label-long { display: none; }
  .bar .label-short { display: inline; }
}

/* Hero: centred, like the head of a till receipt. The one centred moment on the page. */
.hero { text-align: center; padding: clamp(40px, 9vh, 112px) var(--margin) clamp(48px, 9vh, 104px); }
.hero h1 { font-size: var(--fs-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; max-width: 12.5em; margin-inline: auto; }
.hero .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); max-width: 34em; margin: 28px auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 36px; }
.hero .note { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); }
.text-link { font-weight: 600; font-size: var(--fs-nav); display: inline-flex; align-items: center; min-height: 44px; }

/* The slip: one long white till roll down the middle of the page, torn at both ends. */
.slip { position: relative; width: min(var(--slip-w), 100% - 2 * var(--margin)); margin-inline: auto; background: var(--paper); padding: 80px 0 96px; }
.slip::before, .slip::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: var(--paper); }
.slip::before { top: -8px; clip-path: var(--teeth-up); }
.slip::after { bottom: -8px; clip-path: var(--teeth-down); }
.slip > * { padding-inline: var(--pad); }
.slip > section + section { margin-top: clamp(104px, 15vh, 160px); }
.slip h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.slip h2 + p, .slip h2 + .lede { margin-top: 20px; }
.slip p + p { margin-top: 16px; }
.slip p { max-width: 62ch; }
.caption { font-size: var(--fs-small); color: var(--muted); margin-top: 14px; }
.wide { width: var(--wide); margin-left: calc((100% - var(--wide)) / 2); }

/* The live thing: choose a sample receipt, see what SlipSprout reads. */
.picker { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; }
.picker legend { font-size: var(--fs-small); color: var(--muted); padding: 0; margin-bottom: 10px; }
.segments { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--field); border-radius: 999px; }
.segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segments label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: var(--fs-nav); font-weight: 600; color: var(--ink); cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.segments label:hover { background: #dfe7f0; }
.segments label:active { transform: scale(0.97); }
.segments input:checked + label { background: var(--ink); color: #fff; }
.segments input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.bench {
  margin-top: 20px; padding: clamp(20px, 4vw, 40px); background: var(--field); border-radius: 22px;
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(20px, 4vw, 36px); align-items: start;
}
.sample { display: none; }
.reader:has(#s-cafe:checked) [data-sample="cafe"],
.reader:has(#s-fuel:checked) [data-sample="fuel"],
.reader:has(#s-kestrel:checked) [data-sample="kestrel"] { display: block; }
/* Without :has(), the first sample shows. */
@supports not selector(:has(*)) { .sample[data-sample="cafe"] { display: block; } .picker { display: none; } }

.receipt {
  background: var(--paper); color: #1d2a38; padding: 22px 20px 30px; font-size: var(--fs-small); line-height: 1.45;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 93.75% 100%, 87.5% calc(100% - 7px), 81.25% 100%, 75% calc(100% - 7px), 68.75% 100%, 62.5% calc(100% - 7px), 56.25% 100%, 50% calc(100% - 7px), 43.75% 100%, 37.5% calc(100% - 7px), 31.25% 100%, 25% calc(100% - 7px), 18.75% 100%, 12.5% calc(100% - 7px), 6.25% 100%, 0 calc(100% - 7px));
}
.receipt__head { text-align: center; margin-bottom: 14px; }
.receipt__head strong { display: block; font-weight: 700; color: #1d2a38; }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; }
.receipt__total { font-weight: 700; margin-top: 8px; }
.receipt__gap { margin-top: 12px; }
.receipt__foot { text-align: center; margin-top: 14px; color: var(--muted); }
.hit { background: var(--mint-wash); border-radius: 4px; padding: 0 3px; margin: 0 -3px; }
.hit--faint { background: var(--warn-wash); color: #b9c3ce; }

/* Interface fragments: the app's own surfaces, radius 22 with concentric insides. */
[data-ui] { font-variant-numeric: tabular-nums; }
.panel { background: var(--paper); border-radius: 22px; padding: 18px 20px 8px; color: var(--ink); }
.panel__status { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 6px 10px; align-items: center; font-size: var(--fs-small); color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--silver); } /* taste-skill-ignore: inside a data-ui fragment, the app's own list separator */
.panel__status .flag { grid-column: 2; }
.flag { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 600; }
.fields { margin: 0; }
.fields div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--silver); } /* taste-skill-ignore: inside a data-ui fragment, the app's own list separator */
.fields div:last-child { border-bottom: 0; }
.fields dt { font-size: var(--fs-small); color: var(--muted); }
.fields dd { margin: 0; font-size: var(--fs-small); font-weight: 600; text-align: right; }
.fields dd.unsure { color: var(--warn); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--ok { background: var(--mint); }
.dot--warn { background: var(--warn); }

/* Three states of one receipt row. */
.states { list-style: none; padding: 0; margin-top: 40px; display: grid; gap: 28px; }
.states li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; }
.states .state { font-family: "Manrope", sans-serif; font-weight: 700; font-size: var(--fs-lead); color: var(--ink); text-align: right; line-height: 1.2; }
.row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--field); border-radius: 22px; padding: 14px 18px 14px 14px; color: var(--ink);
}
.row__thumb { width: 44px; height: 54px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; }
.row__thumb svg { width: 26px; height: 26px; }
.row__name { font-weight: 600; font-size: var(--fs-small); }
.row__meta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-tiny); color: var(--muted); margin-top: 2px; }
.row__sum { font-weight: 600; font-size: var(--fs-small); }
.row--done .row__meta { color: #1f7a5c; }

/* The originals: shop bills crossfade, the signature move. */
.archive { margin-top: 40px; display: grid; }
.archive > figure { grid-area: 1 / 1; opacity: 0; }
.archive > figure:first-child { opacity: 1; }
.archive img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--field); }
.archive + .caption { margin-top: 14px; }
.pile { margin-top: 40px; }
.pile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Receipts screen fragment. */
.screen { margin-top: 36px; background: var(--field); border-radius: 22px; padding: 18px; color: var(--ink); }
.screen__search { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-size: var(--fs-small); }
.screen__search svg { width: 18px; height: 18px; flex: none; }
.screen__periods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 3px; margin-top: 12px; background: #dfe7f0; border-radius: 10px; font-size: var(--fs-tiny); font-weight: 600; text-align: center; }
.screen__periods span { padding: 7px 0; border-radius: 7px; }
.screen__periods .on { background: var(--paper); }
.screen__summary { display: flex; gap: 32px; margin-top: 12px; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.screen__summary dt { font-size: var(--fs-tiny); color: var(--muted); }
.screen__summary dd { margin: 2px 0 0; font-family: "Manrope", sans-serif; font-size: var(--fs-lead); font-weight: 700; }
.screen__list { list-style: none; padding: 0; margin: 12px 0 0; background: var(--paper); border-radius: 12px; }
.screen__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--silver); font-size: var(--fs-small); } /* taste-skill-ignore: inside a data-ui fragment, the app's own list separator */
.screen__list li:last-child { border-bottom: 0; }
.screen__list small { display: block; font-size: var(--fs-tiny); color: var(--muted); }
.screen__list .flag { font-size: var(--fs-tiny); }
.abilities { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 18px; }
.abilities li { padding-left: 26px; position: relative; max-width: 58ch; }
.abilities li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }

/* Two-ended rows: what's in the first version, and what's planned. */
.ledger { margin-top: 32px; }
.ledger h3 { font-family: "Inter", sans-serif; font-size: var(--fs-small); font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.ledger h3:not(:first-child) { margin-top: 36px; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 9px 0; }
.ledger li span:first-child { color: var(--ink); }
.ledger li span:last-child { font-size: var(--fs-small); color: var(--muted); text-align: right; white-space: nowrap; }

/* Close: the slip ends, and the page closes on Midnight Navy, like the app's splash screen. */
.band, .foot { background: var(--ink); color: #dce5ef; }
.band { margin-top: clamp(96px, 14vh, 160px); padding: clamp(88px, 14vh, 152px) var(--margin) clamp(64px, 10vh, 112px); }
.band__inner, .foot__inner { width: min(var(--slip-w), 100%); margin-inline: auto; padding-inline: var(--pad); }
.band__inner { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 40px; align-items: center; }
.band img { width: 184px; height: 184px; border-radius: 23%; }
.band h2 { color: #fff; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.band p { margin-top: 14px; font-size: var(--fs-lead); color: #dce5ef; max-width: 32ch; }
.band .button { margin-top: 24px; }

.foot { padding: 0 var(--margin) 56px; }
.foot__inner { padding-top: 56px; }
.foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 40px; }
.foot__brand p { margin-top: 12px; color: #dce5ef; }
.foot h2 { font-family: "Inter", sans-serif; font-size: var(--fs-small); font-weight: 600; color: #fff; margin: 0 0 6px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: none; font-size: var(--fs-small); }
.foot li a:hover { text-decoration: underline; }
.foot__legal { margin-top: 44px; font-size: var(--fs-small); color: #a9b8c9; display: grid; gap: 10px; }
.foot__legal a { color: #dce5ef; }

/* Document pages: privacy, support, about. */
main > .slip:last-child { margin-bottom: clamp(72px, 12vh, 128px); }
.doc-head { padding: clamp(32px, 7vh, 88px) var(--margin) clamp(40px, 7vh, 72px); text-align: center; }
.doc-head h1 { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.doc-head p { margin: 20px auto 0; max-width: 32em; font-size: var(--fs-lead); }
.doc-head .meta { font-size: var(--fs-small); color: var(--muted); margin-top: 14px; }
.doc section + section, .doc nav + section { margin-top: 64px; }
.doc h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.doc h3 { font-family: "Inter", sans-serif; font-size: var(--fs-body); font-weight: 700; margin: 28px 0 8px; color: var(--ink); }
.doc h2 + p, .doc h2 + ul, .doc h2 + dl { margin-top: 18px; }
.doc ul { padding-left: 1.2em; margin-top: 14px; }
.doc li + li { margin-top: 8px; }
.doc ul + p, .doc dl + p { margin-top: 16px; }
.doc .contents { list-style: none; padding: 0; columns: 2; column-gap: 32px; margin-top: 20px; }
.doc .contents li { break-inside: avoid; margin: 0 0 6px; }
.doc .contents a { display: inline-flex; min-height: 36px; align-items: center; }
.qa { margin-top: 24px; }
.qa details { background: var(--field); border-radius: 22px; padding: 0 22px; transition: background-color var(--t-hover) ease; }
.qa details:hover { background: #dfe7f0; }
.qa details + details { margin-top: 10px; }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-weight: 600; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--ink); transition: transform var(--t-hover) var(--ease-out); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details > :not(summary) { padding-bottom: 20px; }
.qa details p + p { margin-top: 12px; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.contact a { display: block; background: var(--field); border-radius: 22px; padding: 20px 22px; text-decoration: none; color: var(--ink); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.contact a:hover { background: #dfe7f0; }
.contact a:active { transform: scale(0.98); }
.contact strong { display: block; font-family: "Manrope", sans-serif; font-size: var(--fs-lead); }
.contact span { display: block; margin-top: 4px; color: var(--text); font-size: var(--fs-small); }
.company { margin-top: 20px; background: var(--field); border-radius: 22px; padding: 22px; }
.company dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.company dt { color: var(--muted); font-size: var(--fs-small); }
.company dd { margin: 0; color: var(--ink); }
.about-figure { margin-top: 32px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; }
.about-figure img { width: 160px; height: 160px; border-radius: 23%; }
.about-figure figcaption { font-size: var(--fs-small); color: var(--muted); }
.notfound { text-align: center; }
.notfound .actions { justify-content: center; display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 700px) {
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench .receipt { max-width: 280px; }
  .states li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .states .state { text-align: left; font-size: var(--fs-body); }
  .band__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .band img { width: 104px; height: 104px; }
  .doc .contents { columns: 1; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .about-figure { grid-template-columns: minmax(0, 1fr); }
  .about-figure img { width: 112px; height: 112px; }
  .screen__summary { gap: 20px; }
  .company dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .company dd + dt { margin-top: 10px; }
}
@media (max-width: 480px) {
  .slip { width: 100%; padding: 64px 0 80px; }
  .slip > * { padding-inline: 20px; }
  .wide { width: 100%; margin-left: 0; }
  .ledger li { display: block; padding: 10px 0; }
  .ledger li span:last-child { display: block; text-align: left; margin-top: 2px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > div:last-child { grid-column: 1 / -1; }
  .hero .actions { flex-direction: column; gap: 4px; }
}

/* Motion. Transform and opacity only; nothing is hidden without motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 900ms var(--ease-expo) both; animation-delay: var(--d, 0ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }

  .archive > figure { animation: crossfade 21s linear infinite both; }
  .archive > figure:nth-child(1) { animation-delay: -1.6s; }
  .archive > figure:nth-child(2) { animation-delay: 5.4s; }
  .archive > figure:nth-child(3) { animation-delay: 12.4s; }
  @keyframes crossfade {
    0% { opacity: 0; }
    7.6% { opacity: 1; }
    33.3% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
  }
  .sample { animation: swap 420ms var(--ease-out) both; }
  @keyframes swap { from { opacity: 0; transform: translateY(8px); } }
  .hit { transition: background-color 400ms ease; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Transform only, so nothing is ever hidden while it waits below the fold. */
    .reveal, .doc > section > *, .doc > nav > *, .qa > details, .doc section li, .company dl > * { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .reveal:nth-child(2) { animation-range: entry 5% entry 85%; }
    .reveal:nth-child(3) { animation-range: entry 10% entry 90%; }
    @keyframes reveal { from { transform: translateY(32px); } }
    .drift img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.08) translateY(-2%); } to { transform: scale(1) translateY(2%); } }
    .drift { overflow: clip; }
  }
}
