/* Synapse Retention: certificate of analysis system */

/* Archivo (SIL Open Font License, see fonts/OFL.txt), self-hosted so the site makes no third-party requests. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --ground: #E8F0EB;
  --sheet: #F7FBF8;
  --rule: #C9DBD1;
  --rule-strong: #8DB19F;
  --ink: #05251A;
  --ink-2: #44604F;
  --signal: #0A7B52;
  --focus: #0A7B52;

  --mint: #45E0A4;
  --pine: #0B4D36;
  --flood: #45E0A4;
  --flood-ink: #03170F;
  --flood-ink-2: #0A3A28;

  --btn-bg: #0B4D36;
  --btn-bg-hover: #05251A;
  --btn-ink: #EFFFF7;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #050E0A;
    --sheet: #0A1813;
    --rule: #1A3328;
    --rule-strong: #2D5543;
    --ink: #E6F2EC;
    --ink-2: #93B0A2;
    --signal: #45E0A4;
    --focus: #45E0A4;

    --btn-bg: #45E0A4;
    --btn-bg-hover: #6CEBBA;
    --btn-ink: #03170F;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--mint); color: var(--flood-ink); }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

[id] { scroll-margin-top: 1.5rem; }

/* Controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }

.btn-small {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.status {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--signal);
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  border-radius: 6px;
}

.lockup-mark { width: 2.25rem; height: auto; }

.wordmark {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-transform: uppercase;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.primary-nav a:hover { color: var(--ink); }

/* Certificate */

.cert { padding-block: 0.5rem clamp(3.5rem, 8vw, 6rem); }

.sheet {
  position: relative;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  pointer-events: none;
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.cert-meta div {
  padding: 0.75rem 1rem;
  background: var(--sheet);
}
.cert-meta div:nth-child(4n + 1) { padding-left: 0; }
.cert-meta dt {
  font-size: 0.75rem;
  color: var(--ink-2);
}
.cert-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}
.meta-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 400;
}

.cert-body {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: start;
  column-gap: 2rem;
  padding-block: clamp(2rem, 3.6vw, 2.75rem);
}
/* The seal sits between the headline and the lede in source: its own column on desktop, a corner stamp on phones. */
.cert-copy { display: contents; }
.cert-copy > :not(.seal) { grid-column: 1; }

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.3rem, 1.25rem + 4.1vw, 4.6rem);
  font-stretch: 116%;
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.lede {
  max-width: 56ch;
  margin: 0 0 2rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

/* Seal: a ring plus the two strokes of the S-mark, each its own layer so motion stays on the compositor. */
.seal {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  width: min(100%, 18.5rem);
  aspect-ratio: 1;
  margin: 0;
}
.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.seal-outer { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.seal-inner { fill: none; stroke: var(--rule); stroke-width: 1; }
.seal-text {
  fill: var(--ink-2);
  font-size: 12.5px;
  font-stretch: 125%;
  font-weight: 600;
}

/* Finding */

.findings {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.findings-head { margin-bottom: 1.25rem; }
.findings-head h2 {
  margin: 0;
  font-size: 1.75rem;
  font-stretch: 116%;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.note {
  max-width: 62ch;
  margin: 0.35rem 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.log {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}
.log th {
  padding: 0.6rem 1.25rem 0.6rem 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.log th:first-child { padding-left: 1.5rem; }
.log td {
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.log tbody tr:last-child td { border-bottom: 0; }

/* The clock axis: a rail down the left of each row, with a node where the observation sits. */
.log .time {
  position: relative;
  width: 13rem;
  padding-left: 1.5rem;
  white-space: nowrap;
}
.time-label {
  display: inline-block;
  font-size: 1.125rem;
  font-stretch: 125%;
  font-weight: 600;
  line-height: 1.4;
}
.log .time::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--signal);
  opacity: 0.55;
  transform-origin: top;
}
.log tbody tr:first-child .time::before { top: calc(1.5rem + 4.5px); }
.log tbody tr:last-child .time::before { bottom: auto; height: calc(1.5rem + 4.5px); }
.log .time::after {
  content: "";
  position: absolute;
  left: calc(0.3rem - 4px);
  top: 1.5rem;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  background: var(--sheet);
}
.log .subject { font-weight: 600; }
.log .result { width: 24%; }
.result-mark { display: inline-flex; align-items: flex-start; gap: 0.55rem; font-weight: 600; line-height: 1.45; }
.result-mark .status { margin-top: 0.3em; }

/* Sections */

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
/* The section rule is its own box so it can draw left to right. */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: end;
  gap: 1.25rem 4rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.section-head h2,
.close h2 {
  margin: 0;
  font-size: clamp(1.9rem, 1.15rem + 2.7vw, 3.25rem);
  font-stretch: 116%;
  font-weight: 630;
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.section-head p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* Method */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}
.steps li { padding: 1.75rem 1.75rem 0 0; }
.steps li + li { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.step-n {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--signal);
  font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  font-stretch: 125%;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-stretch: 112%;
  font-weight: 620;
  line-height: 1.25;
}
.steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Comparison */

.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th,
.compare td {
  padding: 1.15rem 1.5rem 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom-color: var(--rule-strong);
}
.compare tbody th {
  width: 24%;
  font-stretch: 110%;
  font-weight: 600;
}
.compare .theirs { width: 36%; color: var(--ink-2); }
.compare .ours {
  padding-inline: 1.5rem;
  background: var(--sheet);
  font-weight: 500;
}
.compare thead .ours {
  color: var(--signal);
  box-shadow: inset 0 2px 0 var(--signal);
}
.compare tbody tr:last-child > * { border-bottom: 0; }

/* Fit */

.fit-lists {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); /* same split as .section-head, so the invitation lines up with the intro */
  gap: 2.5rem 4rem;
}
.fit-lists h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-stretch: 112%;
  font-weight: 620;
}
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
}
.checklist .status { transform: translateY(0.1em); }
/* The door stays open: an invitation beside the fit list, not a list of who we turn away. */
.fit-note {
  max-width: 34ch;
  margin: 0;
  font-size: 1.375rem;
  font-stretch: 108%;
  font-weight: 500;
  line-height: 1.4;
}
.fit-note a { text-decoration-thickness: 2px; }

/* Close */

.close {
  padding-block: clamp(4.5rem, 10vw, 8rem) calc(clamp(4.5rem, 10vw, 8rem) + env(safe-area-inset-bottom, 0px));
  background: var(--flood);
  color: var(--flood-ink);
}
.close ::selection { background: var(--flood-ink); color: var(--flood); }
.close :focus-visible { outline-color: var(--flood-ink); }

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: 3.5rem 4rem;
}

.close h2 {
  max-width: 17ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 1.1rem + 4.2vw, 4.5rem);
  line-height: 1.02;
}
.close-copy p {
  max-width: 50ch;
  margin: 0 0 2.25rem;
  color: var(--flood-ink-2);
  font-size: 1.1875rem;
}
.close-email {
  display: inline-block;
  font-size: clamp(1.1rem, 0.55rem + 2.4vw, 1.875rem);
  font-stretch: 110%;
  font-weight: 600;
  line-height: 1.2;
  text-decoration-thickness: 2px;
  overflow-wrap: break-word;
}
.close-email:hover { text-decoration-thickness: 3px; }

.btn-ink { background: var(--flood-ink); color: var(--mint); }
.btn-ink:hover { background: var(--pine); }
.btn-outline { background: transparent; color: var(--flood-ink); border-color: var(--flood-ink); }
.btn-outline:hover { background: rgba(3, 23, 15, 0.08); }

/* Certificate sign-off: issuer, signatories, address, then the CTA as the signature. */
.signoff-mark {
  display: block;
  width: 3.25rem;
  height: auto;
  margin-bottom: 1.25rem;
  color: var(--flood-ink);
}
.signoff dl {
  position: relative;
  margin: 0;
  padding-top: 2px;
}
.signoff dl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--flood-ink);
  transform-origin: left center;
}
.signoff dl div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(3, 23, 15, 0.28);
}
.signoff dt { color: var(--flood-ink-2); font-size: 0.875rem; line-height: 1.5; }
.signoff dd { margin: 0; font-stretch: 108%; font-weight: 600; line-height: 1.4; }
.signoff dd span { display: block; }
.signoff-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

/* Footer */

.foot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto auto;
  align-items: start;
  gap: 1.5rem 3rem;
  padding-block: 2.5rem calc(3rem + env(safe-area-inset-bottom, 0px));
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.foot-brand p { margin: 0.5rem 0 0; max-width: 40ch; }
.foot-brand p:first-of-type { margin-top: 0.85rem; }
.foot-address { line-height: 1.55; }
.foot-address a,
.foot-nav a { color: var(--ink); }
.lockup-small .lockup-mark { width: 1.75rem; }
.lockup-small .wordmark { color: var(--ink); font-size: 0.6875rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.foot-legal { margin: 0; white-space: nowrap; }

/* Privacy notice */

.legal { padding-block: 0.5rem clamp(3.5rem, 8vw, 6rem); }
.legal-body {
  max-width: 68ch;
  padding-top: clamp(2rem, 4vw, 3rem);
}
.legal h1 {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.75rem);
  margin-bottom: 1rem;
}
.legal .lede { margin-bottom: 1.5rem; }
.draft-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.legal h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  font-stretch: 116%;
  font-weight: 630;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.125rem;
  font-stretch: 110%;
  font-weight: 620;
}
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal li::marker { color: var(--signal); }
.legal-body address { margin: 0 0 1rem; line-height: 1.55; }

/* Motion: the page fills in as the reader scrolls. Everything here is transform and opacity only.
   Reveals need the .motion class (set by JS when reduced motion is off); without it the page is static and complete. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* The seal closes over the first stretch of scroll and reopens on the way back. Pure CSS; closed where unsupported. */
  @supports (animation-timeline: scroll()) {
    .seal-a,
    .seal-b,
    .seal-ring {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root);
      animation-range: 0 40vh;
    }
    .seal-a { animation-name: seal-a; }
    .seal-b { animation-name: seal-b; }
    .seal-ring { animation-name: seal-ring; }
  }

  /* A finding writes itself onto the clock axis: rail, then node and time, then the text. */
  .motion .log [data-reveal] { --d: calc(var(--i, 0) * 0.12s); }
  .motion .log [data-reveal] .time::before { transform: scaleY(0); transition: transform 0.5s var(--ease-out) var(--d); }
  .motion .log [data-reveal] .time::after { transform: scale(0); transition: transform 0.4s var(--ease-out) calc(var(--d) + 0.25s); }
  .motion .log [data-reveal] .time-label {
    opacity: 0;
    transform: translateX(-0.5rem);
    transition: opacity 0.45s var(--ease-out) calc(var(--d) + 0.3s), transform 0.45s var(--ease-out) calc(var(--d) + 0.3s);
  }
  .motion .log [data-reveal] td:not(.time) {
    opacity: 0;
    transition: opacity 0.45s var(--ease-out) calc(var(--d) + 0.45s);
  }
  .motion .log [data-reveal] td.inside { transition-delay: calc(var(--d) + 0.55s); }
  .motion .log [data-reveal] td.result { transition-delay: calc(var(--d) + 0.65s); }
  .motion .log [data-reveal].is-in .time::before,
  .motion .log [data-reveal].is-in .time::after,
  .motion .log [data-reveal].is-in .time-label,
  .motion .log [data-reveal].is-in td:not(.time) { opacity: 1; transform: none; }

  /* Section rules draw left to right. */
  .motion .section[data-reveal]::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
  .motion .section[data-reveal].is-in::before { transform: none; }

  /* Sign-off: the rule draws, the lines are entered, and the CTA settles last. */
  .motion .signoff dl[data-reveal]::before { transform: scaleX(0); transition: transform 0.8s var(--ease-out); }
  .motion .signoff dl[data-reveal] div {
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .motion .signoff dl[data-reveal] div:nth-child(1) { transition-delay: 0.2s; }
  .motion .signoff dl[data-reveal] div:nth-child(2) { transition-delay: 0.3s; }
  .motion .signoff dl[data-reveal] div:nth-child(3) { transition-delay: 0.4s; }
  .motion .signoff dl[data-reveal] div:nth-child(4) { transition-delay: 0.5s; }
  .motion .signoff dl[data-reveal].is-in::before,
  .motion .signoff dl[data-reveal].is-in div { opacity: 1; transform: none; }

  .motion .signoff-cta[data-reveal] {
    opacity: 0;
    transform: translateY(0.9rem);
    transition: opacity 0.7s var(--ease-out) 0.35s, transform 0.9s var(--ease-out) 0.35s;
  }
  .motion .signoff-cta[data-reveal].is-in { opacity: 1; transform: none; }
}

/* The two strokes part sideways along the S, so the open state still reads as the mark. */
@keyframes seal-a {
  from { transform: translate(-6%, -2.5%); }
  to { transform: none; }
}
@keyframes seal-b {
  from { transform: translate(6%, 2.5%); }
  to { transform: none; }
}
@keyframes seal-ring {
  from { transform: rotate(-70deg) scale(0.94); opacity: 0.3; }
  to { transform: none; opacity: 1; }
}

/* The slime: a small blocky mascot that hops along the screen edges while the reader scrolls or swipes.
   Scroll-driven CSS only (no JS, nothing on scroll events), never catches a tap,
   and absent with reduced motion or where scroll timelines aren't supported. */
.slime { display: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .slime {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 20;
      width: 42px;
      height: 36px;
      pointer-events: none;
      animation: slime-path linear both;
      animation-timeline: scroll(root);
    }
    .slime-hop {
      width: 100%;
      height: 100%;
      transform-origin: 50% 100%;
      animation: slime-hop linear both;
      animation-iteration-count: 40;
      animation-timeline: scroll(root);
    }
    .slime svg { display: block; width: 100%; height: 100%; overflow: visible; }
    .slime-eyes {
      transform-box: fill-box;
      transform-origin: center;
      animation: slime-look linear both, slime-blink 4.5s steps(1, end) infinite;
      animation-timeline: scroll(root), auto;
    }
  }
}

/* Starts bottom-right, clear of the left-aligned hero CTA. */
@keyframes slime-path {
  0%   { translate: calc(100vw - 64px) calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
  14%  { translate: 16px calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
  24%  { translate: 16px 58svh; }
  34%  { translate: 16px calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
  48%  { translate: calc(100vw - 64px) calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
  58%  { translate: calc(100vw - 64px) 58svh; }
  68%  { translate: calc(100vw - 64px) calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
  84%  { translate: 16px calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
  100% { translate: calc(50vw - 21px) calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); }
}
@keyframes slime-hop {
  0%, 50% { translate: 0 0; scale: 1 1; }
  60%     { translate: 0 0; scale: 1.12 0.86; }
  78%     { translate: 0 -16px; scale: 0.92 1.1; }
  94%     { translate: 0 0; scale: 1.14 0.84; }
  100%    { translate: 0 0; scale: 1 1; }
}
/* The eyes look the way the slime is travelling. */
@keyframes slime-look {
  0%, 12%   { translate: -1px 0; }
  16%, 22%  { translate: 0 -1px; }
  26%, 32%  { translate: 0 1px; }
  36%, 46%  { translate: 1px 0; }
  50%, 56%  { translate: 0 -1px; }
  60%, 66%  { translate: 0 1px; }
  70%, 82%  { translate: -1px 0; }
  86%, 100% { translate: 1px 0; }
}
@keyframes slime-blink {
  0%, 92%, 100% { scale: 1 1; }
  95%           { scale: 1 0.15; }
}

@media print { .slime { display: none !important; } }

/* Responsive */

@media (max-width: 64rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; border-top: 0; }
  .steps li,
  .steps li + li { padding: 1.5rem 0 2rem; border-left: 0; border-top: 1px solid var(--rule-strong); }

  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 56rem) {
  .primary-nav { display: none; }
  .masthead .btn-small { margin-left: auto; }

  .cert-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-meta div:nth-child(4n + 1) { padding-left: 1rem; }
  .cert-meta div:nth-child(odd) { padding-left: 0; }

  /* The seal becomes a corner stamp the lede wraps around. */
  .cert-body,
  .cert-copy { display: block; }
  .cert-body::after { content: ""; display: block; clear: both; }
  .seal {
    float: right;
    width: 5rem;
    margin: 0.2rem 0 0.5rem 1rem;
    shape-outside: circle(50% at 50% 50%) border-box;
  }
  .seal-text { display: none; }

  .section-head { grid-template-columns: minmax(0, 1fr); }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 46rem) {
  /* Tables restack into labelled records; the roles in the markup keep table semantics. */
  .log thead,
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .log, .log tbody, .log tr, .log td,
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }

  .log tr { position: relative; padding: 0 0 1rem 1.5rem; border-bottom: 1px solid var(--rule); }
  .log tbody tr:last-child { border-bottom: 0; }
  .motion .log [data-reveal] { --d: 0s; } /* rows arrive one at a time on a phone, so no stagger */
  .log td,
  .log tbody tr:last-child td { padding: 0.5rem 0 0; border: 0; }
  .log .time { position: static; width: auto; padding: 1rem 0 0; }
  .log .subject::before,
  .log .inside::before,
  .compare td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-2);
    font-size: 0.75rem;
    font-weight: 600;
  }
  .log .result { width: auto; padding-top: 0.75rem; }

  .compare tr { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare tbody th { width: auto; margin-bottom: 0.75rem; font-size: 1.0625rem; }
  .compare .theirs { width: auto; margin-bottom: 0.75rem; }
  .compare .ours { padding: 0.75rem 1rem; border-radius: 4px; }

  .fit-lists { grid-template-columns: minmax(0, 1fr); }

  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 36rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .signoff dl div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .cert-meta dd { font-size: 0.875rem; }
  .sheet::before { inset: 4px; }
}
