/* dsh-redteam — site stylesheet
   Dependency-free design system: dark first, light via [data-theme], crimson accent,
   hairline borders and mono eyebrows. Motion is CSS/JS and collapses under
   prefers-reduced-motion. */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  --bg: #0a0b0e;
  --bg-soft: #0d0f14;
  --surface: #111319;
  --surface-2: #161921;
  --surface-3: #1c202a;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef0f4;
  --text-soft: #c7cdd7;
  --muted: #9aa3b2;
  --faint: #858e9d;

  --accent: #ff7f84;
  --accent-strong: #d92d33;
  --accent-hover: #c11f26;
  --accent-soft: rgba(217, 45, 51, 0.14);
  --cyan: #7fd4f5;

  --ok: #5bcc7d;
  --warn: #e3b341;
  --danger: #f2777c;

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.32);
  --shadow-2: 0 20px 54px -22px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.35);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(217, 45, 51, 0.16), transparent 70%);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --pad: clamp(18px, 4vw, 40px);
  --header-h: 66px;

  /* iOS notch / home-indicator awareness. viewport-fit=cover is set on every
     page, so the header and the mobile menu carry the safe-area insets. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-offset: calc(var(--header-h) + var(--safe-top));
  --tap: 44px;

  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --dur: 0.2s;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #eef0f4;
  --line: rgba(16, 20, 28, 0.105);
  --line-strong: rgba(16, 20, 28, 0.19);

  --text: #0e1219;
  --text-soft: #2a3140;
  --muted: #525a68;
  --faint: #5f6775;

  --accent: #a91219;
  --accent-strong: #b3121a;
  --accent-hover: #8f0d13;
  --accent-soft: rgba(179, 18, 26, 0.08);
  --cyan: #0c6786;

  --ok: #14752f;
  --warn: #8a5a00;
  --danger: #ab1f15;

  --shadow-1: 0 1px 2px rgba(16, 20, 28, 0.07);
  --shadow-2: 0 20px 48px -26px rgba(16, 20, 28, 0.4), 0 2px 6px rgba(16, 20, 28, 0.06);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(179, 18, 26, 0.07), transparent 70%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 18px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* The hidden attribute must win over component display rules. */
[hidden] { display: none !important; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p { margin: 0; text-wrap: pretty; }

code, kbd, pre, samp { font-family: var(--mono); }

::selection { background: var(--accent-soft); color: var(--text); }

/* Prose links are underlined so colour is never the only cue. */
main p a,
main li a,
.doc-body a,
.callout a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.22em;
}
main p a:hover,
main li a:hover,
.doc-body a:hover,
.callout a:hover { text-decoration-color: currentColor; }

/* …except where the link is already a control. */
.link-row a,
main p a.btn,
main p a.link-ghost,
.author-links a,
.footer-col a,
.footer-bottom a,
.res-name a,
.doc-nav a,
.pipe-step,
.tab,
.chip { text-decoration: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: calc(-64px + var(--safe-top));
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(58px, 6.6vw, 100px); }
.section--tight { padding-block: clamp(40px, 4.8vw, 64px); }
.section--band { background: var(--bg-soft); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.h2 { font-size: clamp(1.72rem, 2.95vw, 2.4rem); letter-spacing: -0.028em; }
.h3 { font-size: clamp(1.08rem, 1.6vw, 1.25rem); }

.lede {
  margin-top: 14px;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.68;
}

.section-head { max-width: 780px; margin-bottom: clamp(28px, 3.8vw, 44px); }
.section-head .lede { max-width: 66ch; }

/* ---------------------------------------------------------------- header
   One sticky 66 px bar: brand · product links · a native <details> Library
   disclosure · theme, GitHub and the download CTA. The disclosure needs no
   JavaScript, and below 1181 px the whole nav folds into the menu button. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-offset);
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 20px 42px -36px rgba(0, 0, 0, 0.95);
}
[data-theme="light"] .site-header.is-scrolled {
  box-shadow: 0 16px 34px -30px rgba(16, 20, 28, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  font-weight: 640;
  font-size: 15.5px;
  letter-spacing: -0.012em;
  white-space: nowrap;
  border-radius: 8px;
}
.brand:hover,
.brand:active { color: var(--text); text-decoration: none; }
.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

/* primary nav ------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  margin-left: clamp(2px, 1.4vw, 18px);
}
.nav-product { display: flex; align-items: center; gap: 1px; }

.nav-product a,
.nav-library > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-library > summary::-webkit-details-marker { display: none; }
.nav-library > summary::marker { content: ""; }

.nav-product a::after,
.nav-library > summary::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.16s ease, transform 0.2s var(--ease);
}
.nav-product a[aria-current] { color: var(--text); }
.nav-product a[aria-current]::after { opacity: 1; transform: none; }

.nav-library { position: relative; }
.nav-library > summary .nav-chev {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--faint);
  transition: transform 0.2s var(--ease), color 0.16s ease;
}
.nav-library[open] > summary {
  color: var(--text);
  background: var(--surface-2);
}
.nav-library[open] > summary .nav-chev { transform: rotate(180deg); color: var(--text-soft); }
/* A current page inside the group marks the trigger, so the section stays
   visible while the disclosure is closed. */
.nav-library:has(.nav-panel a[aria-current]) > summary { color: var(--text); }
.nav-library:has(.nav-panel a[aria-current]) > summary::after { opacity: 1; transform: none; }

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 70;
  width: min(548px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transform: translateX(-50%);
  animation: nav-in 0.18s var(--ease) both;
}
.nav-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  transform: translateX(-50%) rotate(45deg);
}
.nav-panel a {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.nav-panel a .np-t { display: inline-flex; align-items: center; gap: 6px; }
.nav-panel a .np-ext { color: var(--faint); font-size: 11px; }
.nav-panel a .np-d {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}
.nav-panel a[aria-current] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
}
.nav-panel a[aria-current]::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* actions ---------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:active { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); text-decoration: none; }

/* Show the theme the button switches *to*: a sun in dark mode, a moon in light. */
[data-theme-toggle] .icon-moon { display: none; }
[data-theme-toggle] .icon-sun { display: block; }
[data-theme="light"] [data-theme-toggle] .icon-sun { display: none; }
[data-theme="light"] [data-theme-toggle] .icon-moon { display: block; }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.header-cta {
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--accent-strong) 85%, #000);
}
.header-cta svg { width: 15px; height: 15px; }
.header-cta-short { display: none; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  opacity: 0.9;
  pointer-events: none;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-strong);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent-strong) 70%, #000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px -18px color-mix(in srgb, var(--accent-strong) 90%, #000);
}
.btn--primary:focus-visible { outline-color: var(--text); }
.btn--primary:active { background: var(--accent-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:active { background: var(--surface-3); border-color: var(--text-soft); }

.btn--sm { padding: 8px 13px; font-size: 13.5px; border-radius: 8px; }

.btn svg { width: 16px; height: 16px; flex: none; }

.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.link-ghost:active { color: var(--text); text-decoration: none; }
.link-ghost svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 96px) clamp(44px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 78%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4.2vw, 60px);
  align-items: center;
}

.hero-grid > *,
.doc-layout > *,
.safety > *,
.split > *,
.footer-grid > *,
.flow-panel > *,
.notfound-grid > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2.35rem, 4.75vw, 3.9rem);
  letter-spacing: -0.037em;
  line-height: 1.02;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede { max-width: 54ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.install {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  max-width: 560px;
}
.install--full { max-width: 100%; margin-block: 18px; }
.install-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.install-dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.install-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.install pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-soft);
}
.install pre .prompt { color: var(--accent); user-select: none; }
.install pre .cmt { color: var(--faint); }

.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.copy-btn:active { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
.copy-btn svg { width: 13px; height: 13px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.meta-row li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.meta-row li strong { color: var(--text-soft); font-weight: 600; }

/* browser frame */
.shot {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  margin: 0;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.shot-dots { display: inline-flex; gap: 6px; }
.shot-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.shot-url {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot img { width: 100%; }
/* Two hero captures: the active theme shows one, and the other stays
   display:none + loading=lazy so it is never fetched. */
.shot > .shot-light { display: none; }
[data-theme="light"] .shot > .shot-dark { display: none; }
[data-theme="light"] .shot > .shot-light { display: block; }

.hero-shot { position: relative; }
.hero-shot::after {
  content: "";
  position: absolute;
  inset: auto 8% -26px 8%;
  height: 40px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(217, 45, 51, 0.32), transparent 75%);
  filter: blur(14px);
  z-index: -1;
}

.float-card {
  position: absolute;
  right: -16px;
  bottom: 24px;
  width: 252px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--surface-2) 95%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
  font-size: 12px;
}
.float-card .fc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 12.5px;
}
.float-card .fc-title svg { width: 14px; height: 14px; color: var(--warn); }
.float-card code {
  display: block;
  margin: 8px 0 9px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.float-card .fc-actions { display: flex; gap: 6px; }
.float-card .fc-actions span {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.float-card .fc-actions span:first-child {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

/* ---------------------------------------------------------------- trust strip */
.trust {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trust-wrap { padding-inline: 0; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.trust-item { background: var(--bg-soft); padding: 22px 22px; }
.trust-item .n {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.trust-item .l { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- cards / grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.card:focus-within {
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
}
.card .icon svg { width: 19px; height: 19px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.64; }
.card .more {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

/* comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.compare-col { padding: 28px 26px; }
.compare-col + .compare-col { border-left: 1px solid var(--line); background: var(--surface-2); }
.compare-col.good { background: color-mix(in srgb, var(--ok) 4%, var(--surface)); }
.compare-col h3 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text-soft); }
.compare-col.bad h3 { color: var(--muted); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.compare li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.compare .bad li svg { color: var(--faint); }
.compare .good li svg { color: var(--ok); }
.compare .good li { color: var(--text-soft); }

/* ---------------------------------------------------------------- panel gallery */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.tab {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.tab:active { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
.tab:focus-visible { outline-offset: 2px; }

.tabpanel { max-width: 900px; }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: panel-in 0.28s var(--ease) both; }
.tabpanel .shot img { border-top: 1px solid var(--line); }
.tabpanel figcaption {
  padding: 11px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- safety */
.safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.safety-list { display: grid; gap: 14px; margin-top: 26px; }
.safety-item { display: flex; gap: 12px; }
.safety-item svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.safety-item strong { display: block; font-size: 14.5px; }
.safety-item span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.approval {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.approval-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.approval-top .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.approval-top .file { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.approval-body { margin: 0; padding: 18px; display: grid; gap: 12px; }
.approval-body .row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.approval-body .row dt { color: var(--faint); }
.approval-body .row dd { margin: 0; color: var(--text-soft); font-family: var(--mono); font-size: 12px; text-align: right; }
.approval-body .cmd {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre;
}
.approval-body .cmd .hl { color: var(--accent); }
.approval-actions { display: flex; gap: 8px; padding: 0 18px 18px; }
.approval-actions .btn { flex: 1; justify-content: center; font-size: 13px; padding: 9px 10px; }

/* ---------------------------------------------------------------- tools / numbers */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tool-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 22px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.tool-group:active { border-color: var(--line-strong); background: var(--surface-2); }
.tool-group h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.tool-group h3 span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  font-weight: 500;
}
.tool-group p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
}
.tool-group code {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
}

/* docs cards */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.doc-card {
  position: relative;
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.doc-card::after {
  content: "→";
  position: absolute;
  top: 19px;
  right: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.doc-card:active {
  border-color: var(--line-strong);
  background: var(--surface-2);
  text-decoration: none;
}
.doc-card:focus-visible::after { opacity: 1; transform: none; }
.doc-card .k {
  display: block;
  padding-right: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-card h3 { margin: 8px 0 6px; font-size: 1rem; }
.doc-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------------------------------------------------------------- resources */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -14px 0 18px;
  padding-block: 14px;
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  height: 42px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip:active { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--line-strong);
}

.count-line {
  margin-bottom: 16px;
  color: var(--faint);
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

.res-group { margin-bottom: 38px; scroll-margin-top: calc(var(--header-h) + 90px); }
.res-group > h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.res-group > h2 small {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--faint);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.res-group > p.intro { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; max-width: 76ch; }

.res-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.res-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.9fr) 122px 140px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  transition: background 0.15s ease;
}
.res-row:first-child { border-top: 0; }
.res-row:not(.res-head):focus-within { background: var(--surface-2); }
.res-head {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.res-name { display: grid; gap: 2px; min-width: 0; }
.res-name a {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 24%, transparent);
  text-underline-offset: 3px;
}
.res-name a:active {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.res-name span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.res-use { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.tag--bundled { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 36%, transparent); }
.tag--catalogue { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 36%, transparent); }
.tag--connector { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 36%, transparent); }
.tag--knowledge { color: var(--text-soft); }
.res-lic { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--faint); }
.res-empty {
  padding: 44px 24px;
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  display: none;
}
.res-empty::before {
  content: "∅";
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--faint);
}

.policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.policy .card p { font-size: 13.5px; }

/* ---------------------------------------------------------------- author */
.author {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.author-photo {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.author h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.author .eyebrow { margin-bottom: 10px; }
.author .role {
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.author p.bio { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 64ch; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 550;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.author-links a:active { border-color: var(--line-strong); color: var(--text); background: var(--surface-3); }
.author-links svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- docs page */
.doc-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 80px) clamp(28px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
}
.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
}
.doc-hero > .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(2rem, 4.1vw, 3rem); letter-spacing: -0.03em; }
.doc-hero .lede { max-width: 68ch; }

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(36px, 4vw, 48px) 84px;
}
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 3px; }
.doc-nav a {
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.doc-nav a:active { background: var(--surface-3); color: var(--text); }
.doc-nav a[aria-current="location"] {
  color: var(--text);
  background: var(--surface-2);
  border-left-color: var(--accent-strong);
}
.doc-nav .grp {
  margin: 14px 0 4px;
  padding-inline: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.doc-body h2 {
  font-size: 1.5rem;
  margin-top: 42px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { font-size: 1.1rem; margin-top: 26px; margin-bottom: 8px; }
.doc-body p { color: var(--muted); margin-bottom: 14px; max-width: 72ch; }
.doc-body ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); display: grid; gap: 7px; }
.doc-body li { line-height: 1.55; }
.doc-body li code, .doc-body p code {
  font-size: 12.5px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text-soft);
}
.callout {
  margin: 18px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.62;
}
.callout.warn { border-left-color: var(--warn); }
.callout.ok { border-left-color: var(--ok); }
.callout strong { color: var(--text); }
.callout p { margin: 0; color: inherit; font-size: inherit; }
.callout p + p { margin-top: 8px; }
.callout .k {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.callout code {
  font-size: 0.92em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- footer
   Brand and one-line description, then Product · Project · Developer, and a
   bottom bar that carries the copyright, version/date, disclaimer and the
   back-to-top control. One column on phones, no accordions. */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(44px, 5.4vw, 68px) 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  background: radial-gradient(70% 120% at 18% 0%, color-mix(in srgb, var(--accent-strong) 6%, transparent), transparent 72%);
  pointer-events: none;
}
[data-theme="light"] .site-footer::before {
  background: radial-gradient(70% 120% at 18% 0%, color-mix(in srgb, var(--accent-strong) 4%, transparent), transparent 72%);
}
.site-footer > .wrap { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.86fr));
  gap: clamp(28px, 3.6vw, 52px);
}
.footer-brand .brand { font-size: 15px; }
.footer-brand .brand svg { width: 24px; height: 24px; }
.footer-brand p {
  margin-top: 14px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-col h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.footer-col a[href^="https://"]::after {
  content: "↗";
  font-size: 9.5px;
  line-height: 1;
  color: var(--faint);
  opacity: 0.7;
  transform: translateY(-1px);
  transition: opacity 0.15s ease, color 0.15s ease;
}
.footer-col a:active { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-block: 20px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 2px;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.footer-meta time { color: var(--faint); }
.footer-bottom .to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-bottom .to-top svg { width: 13px; height: 13px; }
.footer-bottom .to-top:active { color: var(--text); text-decoration: none; }
.footer-disclaimer {
  flex: 1 1 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 92ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.footer-disclaimer::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------------------------------------------------------------- 404 */
.notfound { position: relative; overflow: hidden; padding-block: clamp(54px, 8vw, 108px) clamp(44px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
}
.notfound-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.notfound h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.035em; }
.nf-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.nf-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.nf-card-top .badge {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.nf-card-top .nf-code {
  margin-left: auto;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.nf-card-body { padding: 18px; display: grid; gap: 14px; }
.nf-req {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  min-width: 0;
}
.nf-req span { flex: none; color: var(--accent); font-weight: 600; }
.nf-req code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nf-checks li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.nf-checks li::before {
  content: "✕";
  flex: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}
.nf-checks li.ok { color: var(--text-soft); }
.nf-checks li.ok::before { content: "✓"; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.nf-verdict {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.nf-links { margin-top: clamp(34px, 5vw, 54px); }

/* ---------------------------------------------------------------- utilities */
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- motion
   Durations sit in the 150–600 ms band; ease-out only. There is one slow
   ambient loop (the hero glow), one reveal, and the workflow packet, which
   pauses on hover/focus, off-screen, page-hidden or by explicit control. */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* hero entrance — one short rise per block, 70 ms apart */
html.js .hero-enter > * { animation: hero-rise 0.55s var(--ease) both; }
html.js .hero-enter > *:nth-child(1) { animation-delay: 40ms; }
html.js .hero-enter > *:nth-child(2) { animation-delay: 110ms; }
html.js .hero-enter > *:nth-child(3) { animation-delay: 180ms; }
html.js .hero-enter > *:nth-child(4) { animation-delay: 250ms; }
html.js .hero-enter > *:nth-child(5) { animation-delay: 320ms; }
html.js .hero-enter > *:nth-child(6) { animation-delay: 390ms; }
html.js .hero-float { animation: hero-rise 0.6s var(--ease) 520ms both; }

/* inner-page heroes get the same, shorter */
html.js .doc-hero > .wrap > *,
html.js .notfound-copy > * { animation: hero-rise 0.5s var(--ease) both; }
html.js .doc-hero > .wrap > *:nth-child(1),
html.js .notfound-copy > *:nth-child(1) { animation-delay: 40ms; }
html.js .doc-hero > .wrap > *:nth-child(2),
html.js .notfound-copy > *:nth-child(2) { animation-delay: 110ms; }
html.js .doc-hero > .wrap > *:nth-child(3),
html.js .notfound-copy > *:nth-child(3) { animation-delay: 180ms; }
html.js .doc-hero > .wrap > *:nth-child(4),
html.js .notfound-copy > *:nth-child(4) { animation-delay: 240ms; }

/* ambient accent glow beneath the hero frame (18 s loop, opacity only) */
.hero-shot::after { animation: glow-breathe 18s ease-in-out infinite; }

/* staggered reveal inside repetitive grids */
html.js .grid-3 > .reveal:nth-child(3n + 2),
html.js .doc-grid > .reveal:nth-child(3n + 2),
html.js .policy > .reveal:nth-child(2),
html.js .trust-inner > .reveal:nth-child(2) { transition-delay: 70ms; }
html.js .grid-3 > .reveal:nth-child(3n + 3),
html.js .doc-grid > .reveal:nth-child(3n + 3),
html.js .policy > .reveal:nth-child(3),
html.js .trust-inner > .reveal:nth-child(3) { transition-delay: 140ms; }
html.js .trust-inner > .reveal:nth-child(4) { transition-delay: 210ms; }

/* ---------------------------------------------------------------- workflow demo
   The pipeline is a tablist of seven gates. A rail carries a packet whose position
   is measured by site.js, so desktop (horizontal) and mobile (vertical) share one
   state machine. Without JS the controls are hidden, the rail is a plain hairline
   and only step one's detail is shown. */

.flow-stage {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  background:
    radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--accent-strong) 7%, transparent), transparent 62%),
    var(--surface);
  overflow: hidden;
}

.flow-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
}
.flow-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-live {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent);
}
.flow-controls {
  display: none;
  align-items: center;
  gap: 6px;
}
html.js .flow-controls { display: flex; }

.flow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.flow-btn:active { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }
.flow-btn:disabled { opacity: 0.45; cursor: default; }
.flow-btn svg { width: 14px; height: 14px; flex: none; }
.flow-btn--text { padding-inline: 10px; }
.flow-btn--text .flow-btn-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.flow-count {
  min-width: 96px;
  padding-inline: 4px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.pipe-wrap { position: relative; padding-top: 26px; }

.pipe-rail {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.pipe-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.46s var(--ease);
  opacity: 0.9;
}
.pipe-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px 2px color-mix(in srgb, var(--accent) 40%, transparent);
  opacity: 0;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition: transform 0.46s var(--ease), opacity 0.24s linear;
  pointer-events: none;
}
.flow-stage.is-live .pipe-dot { opacity: 1; }

.pipe {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipe-step {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 3px;
  min-width: 0;
  min-height: 86px;
  padding: 11px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}
.pipe-step:active { border-color: var(--line-strong); background: var(--surface-3); }
.pipe-step + .pipe-step::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 26px;
  width: 10px;
  height: 1px;
  background: var(--line-strong);
}
.pipe-step[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 9%, transparent), transparent 70%),
    var(--surface-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), var(--shadow-1);
  transform: translateY(-1px);
}
.pipe-step[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
}

.pipe-num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  line-height: 1.4;
}
.pipe-step[aria-selected="true"] .pipe-num { color: var(--accent); }
.pipe-title {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.22;
  color: var(--text);
  overflow-wrap: anywhere;
}
.pipe-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--faint);
  overflow-wrap: anywhere;
}

/* detail ---------------------------------------------------------- */
.flow-detail {
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  outline-offset: 2px;
}
.flow-panels { display: block; }
.flow-panel { display: none; }
.flow-panel:first-child { display: grid; }
.flow-panel { position: relative; padding-bottom: 44px; }

html.js .flow-panels { display: grid; }
html.js .flow-panel {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 10px 30px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
html.js .flow-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.flow-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-kicker b { color: var(--accent); font-weight: 600; }
.flow-panel h3 { font-size: clamp(1.12rem, 1.7vw, 1.32rem); margin-bottom: 8px; }
.flow-text { color: var(--muted); font-size: 14px; line-height: 1.66; max-width: 66ch; }
.flow-text code,
.flow-facts code {
  font-size: 11.5px;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
}

.flow-facts { display: grid; gap: 10px; margin: 0; align-content: start; }
.flow-facts > div { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.flow-facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.flow-facts dd { margin: 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.55; }
.flow-facts dd code {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  margin-block: 1px;
}
.flow-facts dd .sep { color: var(--faint); padding: 0 3px; }

.flow-fork {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px dashed var(--line-strong);
}
.flow-fork-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 2px;
}
.fork-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-soft);
}
.fork-node::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.fork-node--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 34%, transparent); }
.fork-node--deny { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 34%, transparent); }
.fork-arrow { color: var(--faint); font-size: 12px; }

.flow-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.flow-foot a { font-weight: 600; }
.flow-foot span { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; }

.js-only { display: inline; }
html:not(.js) .js-only { display: none; }

.flow-note {
  margin: 14px 2px 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

/* vertical pipeline */
@media (max-width: 920px) {
  .pipe-wrap { padding: 0 0 0 26px; }
  .pipe-rail {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .pipe-fill {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent));
    transform: scaleY(0);
    transform-origin: center top;
  }
  .pipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .pipe-step {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-height: 0;
    padding: 10px 12px;
  }
  .pipe-step + .pipe-step::before {
    left: auto;
    right: 100%;
    top: 24px;
    width: 16px;
    height: 1px;
  }
  .pipe-step[aria-selected="true"] { transform: none; }
  .pipe-step[aria-selected="true"]::after {
    left: -1px;
    top: 8px;
    bottom: 8px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .pipe-num { width: 26px; }
  .pipe-title { font-size: 14px; }
  .pipe-sub { margin-left: auto; text-align: right; }
  .flow-panel { grid-template-columns: 1fr; }
  html.js .flow-panel { grid-template-columns: 1fr; gap: 14px; }
  .flow-facts > div { grid-template-columns: 58px minmax(0, 1fr); }
  .flow-detail { padding: 16px; }
  .flow-panel { padding-bottom: 44px; }
  .flow-fork {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 6px 8px;
  }
  .flow-fork-label { display: none; }
  .flow-fork { padding-top: 10px; }
  .fork-arrow { display: none; }
  .fork-node { justify-content: flex-start; align-items: flex-start; white-space: normal; line-height: 1.35; }
}

/* ---------------------------------------------------------------- link rows */
.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 13.5px;
}
.link-row a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; }
.link-row a:active { color: var(--accent); }
.link-row svg { width: 15px; height: 15px; }
.doc-hero .link-row { margin-top: 18px; }

/* Without JS the screenshot tabs cannot switch, so stack the panels and drop
   the inert controls rather than hiding five screenshots. */
html:not(.js) .tabs { display: none; }
html:not(.js) .tabpanel[hidden] { display: block !important; }
html:not(.js) .tabpanel + .tabpanel { margin-top: 14px; }

/* Progressive enhancement: content is visible by default and only hidden once
   JS has confirmed it can observe the element. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- samples page
   Deliverable cards, the engagement fact panel, the sandboxed report preview and
   the two checksum tables. Kept in the design system so samples/ loads the same
   tokens, cards and buttons as every other page. */
.samples-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.samples-hero-grid > * { min-width: 0; }
.samples-hero-grid .link-row { margin-top: 22px; }

.fact-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.fact-panel h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.fact-list { display: grid; gap: 10px; margin: 0; }
.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.fact-list div:first-child { padding-top: 0; border-top: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.sample-grid > * { min-width: 0; }
.sample-card { display: flex; flex-direction: column; }
.sample-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.sample-card .card-top .tag { margin: 0; }
.sample-card h3 { margin-bottom: 6px; }
.sample-card p { margin: 0; }
.sample-card .fmt {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fmt span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
.dl-row .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: 0;
}
.card-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
}
.card-note code { font-size: 11.5px; }

.preview-shell {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.preview-bar .lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.preview-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent);
}
.preview-bar a { font-size: 13px; font-weight: 600; }
.preview-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #eceef2;
}
.preview-caption {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.6;
}
.preview-fallback { display: none; margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.preview-fallback a { font-weight: 600; }

.table-scroll {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--surface);
}
.bundle-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.bundle-table th,
.bundle-table td {
  padding: 11px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.bundle-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface-2);
  white-space: nowrap;
}
.bundle-table tbody tr:last-child td { border-bottom: 0; }
.bundle-table td:first-child { font-family: var(--mono); color: var(--text); white-space: nowrap; }
.bundle-table td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.bundle-table td:last-child { color: var(--muted); }
.bundle-total {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.bundle-total strong { color: var(--text-soft); font-weight: 600; }

.sha-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.sha-table th,
.sha-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.sha-table thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface-2);
  white-space: nowrap;
}
.sha-table th:nth-child(1) { width: 37%; }
.sha-table th:nth-child(2) { width: 13%; }
.sha-table th:nth-child(3) { width: 50%; }
.sha-table tbody tr:last-child td { border-bottom: 0; }
.sha-table td:nth-child(2) {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.sha-table td code {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-soft);
  word-break: break-all;
}
.sha-file {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.sha-file:hover { text-decoration: underline; }
.sha-dir {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  overflow-wrap: anywhere;
}
.verify-snippet {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 960px) {
  .sample-grid { grid-template-columns: 1fr; }
  .samples-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .fact-panel { max-width: 520px; }
}
@media (max-width: 640px) {
  .bundle-table { display: block; min-width: 0; table-layout: auto; }
  .bundle-table thead { display: none; }
  .bundle-table tbody { display: block; }
  .bundle-table tbody tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .bundle-table tbody tr:last-child { border-bottom: 0; }
  .bundle-table td { display: block; width: auto; padding: 2px 0; border: 0; white-space: normal; }
  .bundle-table td::before {
    display: block;
    margin-bottom: 1px;
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .bundle-table td:first-child { font-size: 13.5px; }
}
@media (max-width: 560px) {
  .sha-table, .sha-table tbody, .sha-table tr, .sha-table td { display: block; width: auto; }
  .sha-table thead { display: none; }
  .sha-table tr { padding: 11px 13px; border-bottom: 1px solid var(--line); }
  .sha-table tr:last-child { border-bottom: 0; }
  .sha-table td { padding: 1px 0; border: 0; }
  .sha-table td:nth-child(2) { font-size: 10.5px; }
  .sha-table td:nth-child(2)::before { content: "bytes "; color: var(--faint); }
  .sha-table td:nth-child(3)::before { content: "sha-256 "; color: var(--faint); }
  .sha-table td:nth-child(3) code { margin-top: 3px; font-size: 10.5px; }
}
@media (max-width: 620px) {
  .preview-frame { height: 520px; }
  .sha-table { font-size: 12px; }
  .sha-table th, .sha-table td { padding: 9px 8px; }
  .sha-table th:nth-child(1) { width: 42%; }
  .sha-table th:nth-child(2) { width: 18%; }
  .sha-table th:nth-child(3) { width: 40%; }
  .sha-table td code { font-size: 10px; }
  .sha-table td:nth-child(2) { font-size: 10.5px; }
}
@media (max-width: 400px) {
  .dl-row .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .dl-row .btn:last-child:nth-child(odd) { flex-basis: 100%; }
}
@media (max-width: 1080px) {
  .dl-row .btn { min-height: 44px; font-size: 12.5px; padding: 10px 12px; }
  .sha-file { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
  .preview-bar a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13.5px; }
  .fact-list div { gap: 12px; }
}
@media (max-width: 760px) {
  .preview-frame { height: 640px; }
  .card-note { font-size: 13.5px; }
  .bundle-table { font-size: 14px; }
  .bundle-total { font-size: 12.5px; }
  .sha-table { font-size: 13.5px; }
  .sha-table td code { font-size: 12px; }
  .sha-table td:nth-child(2) { font-size: 12px; }
  .preview-caption { font-size: 13px; }
  .fact-list div { font-size: 14.5px; }
  .fact-list dd { font-size: 13px; }
  .samples-hero-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .preview-frame { height: 540px; }
  .preview-bar { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .preview-frame { height: 480px; }
  .sha-table td code { font-size: 11px; }
  .sha-table td:nth-child(2) { font-size: 10.5px; }
}
@media (max-width: 480px) {
  .preview-frame { height: 420px; height: clamp(320px, 60svh, 460px); }
  .preview-fallback { display: block; font-size: 16px; }
  .dl-row .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .dl-row .btn:last-child:nth-child(odd) { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- responsive
   The single-row header holds the brand, four product links, the Library
   disclosure and the actions comfortably from 1181 px up. Below that the whole
   navigation folds into the menu button; nothing scrolls sideways. */
@media (min-width: 1181px) {
  .header-inner { gap: 18px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }

  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-offset);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
    padding: 12px var(--pad) calc(20px + var(--safe-bottom));
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    animation: nav-in 0.2s var(--ease) both;
    overscroll-behavior: contain;
  }
  .nav.open .nav-product { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.open .nav-product::before {
    content: "Product";
    display: block;
    padding: 4px 14px 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .nav.open .nav-product a,
  .nav.open .nav-library > summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-soft);
  }
  .nav.open .nav-product a[aria-current] { color: var(--text); background: var(--accent-soft); }
  .nav.open .nav-product a::after,
  .nav.open .nav-library > summary::after { display: none; }
  .nav.open .nav-library {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .nav.open .nav-library > summary {
    justify-content: space-between;
    padding-inline: 14px;
    font-size: 16px;
  }
  .nav.open .nav-library[open] > summary { background: var(--surface-2); color: var(--text); }
  .nav.open .nav-panel {
    position: static;
    width: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 4px 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    animation: none;
  }
  .nav.open .nav-panel::before { display: none; }
  .nav.open .nav-panel a {
    min-height: 48px;
    padding: 10px 14px 10px 26px;
    border-color: transparent;
    background: transparent;
  }
  .nav.open .nav-panel a[aria-current] { background: var(--accent-soft); }
  .nav.open .nav-panel a .np-d { font-size: 12.5px; }

  /* Without JavaScript the menu button cannot open anything: the links stay in
     the flow as a wrapped secondary row and the Library disclosure still works. */
  html:not(.js) .site-header { height: auto; min-height: var(--header-offset); padding-block: 6px; }
  html:not(.js) .header-inner { flex-wrap: wrap; row-gap: 4px; padding-block: 6px; }
  html:not(.js) .nav {
    display: flex;
    flex-basis: 100%;
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    margin: 2px 0 0;
  }
  html:not(.js) .nav-product { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav-product a,
  html:not(.js) .nav-library > summary {
    padding: 6px 9px;
    min-height: 40px;
    font-size: 14px;
  }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-panel {
    left: 0;
    right: auto;
    transform: none;
    width: min(340px, calc(100vw - var(--pad) * 2));
  }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 620px; }
  .float-card { right: 8px; }
  .trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .doc-grid, .policy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 4px;
  }
  .doc-nav a {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
  }
  .doc-nav a[aria-current="location"] { border-color: var(--line-strong); border-left-color: var(--line-strong); background: var(--surface-3); }
  .doc-nav .grp { width: 100%; margin: 10px 0 0; padding-inline: 2px; }
  .notfound-grid { grid-template-columns: 1fr; }
  .filterbar { position: static; margin-top: 0; padding-block: 0; border-bottom: 0; background: transparent; backdrop-filter: none; }
}

/* ---------------------------------------------------------------- touch + phones
   From the tablet breakpoint down the page is thumb-driven: every control keeps a
   40–48 px hit area, the header drops its backdrop blur (frames on mobile) and the
   menu panel respects the iOS safe areas and the dynamic viewport. */

@media (max-width: 1180px) {
  .header-inner { gap: 10px; }
  .site-header,
  .site-header.is-scrolled { background: var(--bg); backdrop-filter: none; }
  .site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.85); }

  .icon-btn { width: var(--tap); height: var(--tap); border-radius: 11px; }
  .nav-toggle { border-radius: 11px; }
  .brand { min-height: var(--tap); }
  .header-cta { height: var(--tap); padding-inline: 14px; font-size: 13.5px; }
  .header-cta svg { width: 16px; height: 16px; }

  .btn { min-height: var(--tap); }
  .btn--sm { min-height: 40px; padding: 10px 13px; }
  .copy-btn { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .copy-btn svg { width: 14px; height: 14px; }
  .chip { min-height: 40px; padding: 9px 14px; }
  .tab { min-height: var(--tap); padding: 10px 14px; }

  .flow-btn { height: var(--tap); min-width: var(--tap); }
  .flow-btn svg { width: 16px; height: 16px; }

  .footer-col a { display: flex; align-items: center; min-height: 40px; padding: 0; font-size: 14.5px; }
  .footer-bottom .to-top { display: inline-flex; align-items: center; min-height: 40px; }
  .doc-nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .res-name a { display: inline-flex; align-items: center; min-height: 40px; }

  .link-ghost { min-height: var(--tap); padding: 8px 2px; }
  .search { height: 46px; }
  .search input { min-height: var(--tap); font-size: 16px; }

  /* Phone-first reading size, applied from tablet down so no touch layout ships
     body copy below 16 px. Desktop keeps its denser editorial scale. */
  .card p,
  .tool-group p,
  .doc-card p,
  .insight-card p,
  .safety-item span,
  .compare li,
  .author p.bio,
  .flow-text,
  .res-use,
  .policy .card p,
  .res-group > p.intro { font-size: 16px; line-height: 1.6; }
  .safety-item strong { font-size: 16px; }
  .res-name span { font-size: 14px; }
  .flow-facts dt { font-size: 10px; }
  .flow-facts dd { font-size: 13.5px; }
  .nf-checks li { font-size: 16px; line-height: 1.5; }
  .nf-req { font-size: 13px; }

  .flow-panel { padding-bottom: 54px; }
  .flow-foot a { display: inline-flex; align-items: center; min-height: 40px; }

  .link-row { gap: 8px 10px; }
  .link-row a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
  }

  body.nav-open { overflow: hidden; }
  /* A dimmed, click-catching scrim makes the open menu read as a layer and
     closes it on the first tap outside. It sits under the header (z 60). */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: color-mix(in srgb, var(--bg) 55%, rgba(4, 6, 10, 0.55));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  [data-theme="light"] body.nav-open::before {
    background: color-mix(in srgb, #ffffff 25%, rgba(16, 20, 28, 0.42));
  }
}

@media (max-width: 920px) {
  /* Vertical rail: every step is a full-width 46 px tap row. */
  .pipe-step { min-height: 46px; }
}

/* Horizontal chip rails fade at the edge that still has content, so a cut chip
   reads as "scroll me" instead of "clipped". site.js toggles the attributes. */
.doc-nav[data-scroll-right],
.chips[data-scroll-right],
.article-toc ol[data-scroll-right] {
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.doc-nav[data-scroll-left],
.chips[data-scroll-left],
.article-toc ol[data-scroll-left] {
  mask-image: linear-gradient(90deg, transparent, #000 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px);
}
.doc-nav[data-scroll-left][data-scroll-right],
.chips[data-scroll-left][data-scroll-right],
.article-toc ol[data-scroll-left][data-scroll-right] {
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

@media (max-width: 880px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--line); }
  .res-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) 122px; gap: 12px; }
  .res-lic,
  .res-head > span:nth-child(4) { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-block: clamp(44px, 9vw, 60px); }
  .section--tight { padding-block: clamp(32px, 7vw, 46px); }
  .section-head { margin-bottom: 28px; }

  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  /* The source link stays in the footer; the header keeps theme, download, menu. */
  .header-actions > a.icon-btn { display: none; }

  /* Catalogue rows become cards: nothing is hidden or clipped at phone widths. */
  .res-table {
    display: grid;
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .res-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .res-row:first-child { border-top: 1px solid var(--line); }
  .res-row:not(.res-head):hover,
  .res-row:not(.res-head):focus-within { background: var(--surface); }
  .res-head { display: none; }
  .res-name { order: 1; gap: 4px; }
  .res-name a { font-size: 16px; }
  .res-name span { font-size: 14px; }
  .res-row > span:nth-child(3) { order: 2; }
  .res-use { order: 3; display: block; font-size: 16px; line-height: 1.6; }
  .res-lic { order: 4; display: block; font-size: 12.5px; }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .chip { flex: none; font-size: 13.5px; }
  .search { height: 46px; }
  .search input { font-size: 16px; min-height: var(--tap); }
  .count-line { font-size: 13px; }

  /* A sticky chip rail beats five rows of navigation above the content. */
  .doc-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .doc-nav .grp { display: none; }
  .doc-nav a { flex: none; white-space: nowrap; font-size: 14.5px; }

  /* Six tabs: a 3×2 grid of thumb-sized buttons instead of a ragged wrap. */
  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 5px;
  }
  .tab { justify-content: center; text-align: center; padding: 10px 8px; font-size: 13.5px; }

  .grid-3, .grid-2, .doc-grid, .policy, .split { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
  .author-photo { width: 128px; height: 128px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 18px; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: none; }
  .footer-col h2 { margin-bottom: 10px; }
  .footer-bottom { gap: 12px 18px; padding-block: 18px 22px; }
  .footer-bottom .to-top { margin-left: 0; min-height: 40px; }
  .filterbar { margin-bottom: 16px; }
  .flow-top { align-items: flex-start; }
  .flow-count { min-width: 84px; }
  .flow-facts > div { grid-template-columns: 52px minmax(0, 1fr); }
  .notfound h1 { font-size: clamp(2rem, 8vw, 2.8rem); }

  .lede { font-size: 1rem; line-height: 1.62; }
  .tabpanel figcaption { font-size: 13px; }
  .footer-brand p { font-size: 14.5px; }
  .doc-layout { padding-block: 30px 56px; }
  .doc-body h2 { margin-top: 34px; padding-top: 20px; }
  .doc-body h3 { margin-top: 22px; }
}

@media (max-width: 560px) {
  .section { padding-block: 44px; }
  .section--tight { padding-block: 32px; }
  .hero { padding-block: 44px 40px; }
  .hero h1 { font-size: clamp(2.05rem, 10.6vw, 2.85rem); }
  .hero-actions { gap: 10px; }
  .header-actions { gap: 5px; }
  .header-cta { padding-inline: 11px; }
  .header-cta-label { display: none; }
  .header-cta-short { display: inline; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }
  .link-ghost { margin-left: 0; }

  /* Thumb-first workflow controls: status on its own line, three 44 px controls. */
  html.js .flow-controls {
    display: grid;
    grid-template-columns: var(--tap) var(--tap) minmax(0, 1fr) var(--tap);
    align-items: center;
    width: 100%;
    gap: 6px;
  }
  .flow-count {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    padding-inline: 2px;
    text-align: left;
    white-space: normal;
    line-height: 1.25;
    font-size: 11px;
  }
  .flow-btn[data-flow-prev] { grid-column: 1; grid-row: 2; }
  .flow-btn[data-flow-next] { grid-column: 2; grid-row: 2; }
  .flow-btn[data-flow-play] { grid-column: 4; grid-row: 2; }
  .flow-btn--text { padding-inline: 0; }
  .flow-btn--text .flow-btn-label { display: none; }
  .pipe-sub { display: none; }
  .pipe-step { min-height: 48px; }
  .pipe-title { font-size: 13.5px; }
  .flow-stage { padding: 14px; }
  .pipe-wrap { padding-left: 22px; }
  .pipe-rail { left: 6px; }
  .flow-detail { padding: 14px; }
  .flow-panel h3 { font-size: 1.1rem; }
  .flow-panel { padding-bottom: 52px; }
  .flow-foot a { display: inline-flex; align-items: center; min-height: 40px; }
  .flow-foot span { display: none; }
  .flow-fork { grid-template-columns: 1fr; }
  .flow-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .flow-facts dt { font-size: 9.5px; }
  .flow-facts dd .sep { display: none; }
  .flow-facts dd code { margin-right: 2px; }
}

@media (max-width: 420px) {
  :root { --pad: 16px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 5px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand svg { width: 22px; height: 22px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { padding: 16px 18px; }
}

/* Below 360 px the CTA has to become a square icon button to keep the brand,
   theme, CTA and menu on one 320 px row. */
@media (max-width: 360px) {
  .header-cta { width: var(--tap); padding: 0; justify-content: center; }
  .header-cta-short { display: none; }
  .header-cta svg { width: 17px; height: 17px; }
  .brand { font-size: 14px; gap: 7px; }
}

/* ---------------------------------------------------------------- hover
   Hover is decoration for pointers that actually hover. Touch devices use the
   :active states declared next to each component instead, so a tapped card never
   stays lifted or tinted after the finger leaves the screen. */
@media (hover: hover) and (pointer: fine) {
  .brand:hover { color: var(--text); text-decoration: none; }
  .brand:hover svg { color: var(--text); transform: translateY(-1px); }
  .nav-product a:hover,
  .nav-library > summary:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
  .nav-panel a:hover { background: var(--surface-2); border-color: var(--line); text-decoration: none; }
  .nav-panel a:hover .np-d { color: var(--muted); }
  .icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); text-decoration: none; }
  .btn--primary:hover { background: var(--accent-hover); color: #fff; }
  .btn--ghost:hover { background: var(--surface-2); border-color: var(--text-soft); }
  .link-ghost:hover { color: var(--text); text-decoration: none; }
  .copy-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
  .card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
  }
  .tab:hover { color: var(--text); background: var(--surface-2); }
  .tool-group:hover { border-color: var(--line-strong); background: var(--surface-2); }
  .doc-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
  }
  .doc-card:hover::after { opacity: 1; transform: none; }
  .chip:hover { color: var(--text); border-color: var(--line-strong); }
  .res-row:not(.res-head):hover { background: var(--surface-2); }
  .res-name a:hover { color: var(--accent); text-decoration-color: currentColor; }
  .author-links a:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-3); }
  .doc-nav a:hover { background: var(--surface-2); color: var(--text); }
  .footer-col a:hover { color: var(--text); }
  .footer-col a:hover::after { opacity: 1; color: var(--accent); }
  .footer-legal a:hover { color: var(--text); }
  .footer-bottom .to-top:hover { color: var(--text); text-decoration: none; }
  .flow-btn:hover { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }
  .pipe-step:hover { border-color: var(--line-strong); background: var(--surface-3); }
  .link-row a:hover { color: var(--accent); }
}

/* ---------------------------------------------------------------- reduced motion
   Resolved last: every effect collapses to its finished, fully visible state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .hero-enter > *,
  html.js .hero-float,
  html.js .doc-hero > .wrap > *,
  html.js .notfound-copy > * { animation: none; opacity: 1; transform: none; }
  .hero-shot::after { animation: none; opacity: 0.85; }
  .pipe-dot { display: none; }
  .pipe-fill { transition: none; }
  html.js .flow-panel,
  html.js .flow-panel.is-active { transition: none; transform: none; }
  .tabpanel { animation: none; }
}

@media print {
  .site-header, .site-footer, .flow-controls, .pipe-dot, .tabs { display: none; }
  html.js .reveal,
  html.js .hero-enter > *,
  html.js .hero-float,
  html.js .doc-hero > .wrap > * { opacity: 1; transform: none; }
  .flow-panel { display: none !important; }
  .flow-panel:first-child { display: grid !important; }
  a { color: inherit; }
}
