/* ==========================================================================
   VBW — Proven, not claimed.
   Design system: brandkit.md (Kernel Ink, Paper, Proof Teal, Contract Indigo)
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #121826;
  --ink-2: #171e2e;
  --ink-3: #1d2537;
  --paper: #f5f7fa;
  --white: #ffffff;
  --teal: #1b9aa0;
  --teal-deep: #0f5e62;
  --teal-bright: #3cc1c7;
  --indigo: #3d4fc4;
  --indigo-bright: #7584f0;
  --green: #2fa66a;
  --red: #e5484d;
  --amber: #f2b33d;
  --slate: #8a94a6;
  --mist: #dde3ea;

  /* Tints */
  --tint-teal: #e3f4f4;
  --tint-indigo: #e8ebfa;
  --tint-green: #e3f5eb;
  --tint-red: #fce8e8;
  --tint-amber: #fdf3df;

  /* Lines on ink */
  --line-dark: rgba(221, 227, 234, 0.09);
  --line-dark-2: rgba(221, 227, 234, 0.16);
  --text-dark-2: #aab3c3;

  /* Type */
  --f-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;   /* :active feedback */
  --dur-fast: 200ms;    /* hover, colour, border */
  --dur-base: 300ms;    /* selection and state changes */
  --dur-slow: 500ms;    /* large fades */
  --dur-reveal: 900ms;  /* scroll reveal (marketing, intentionally long) */
  --dur-loop: 3200ms;   /* breathing / attention loops */
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, kbd, pre { font-family: var(--f-mono); }
::selection { background: var(--teal); color: var(--white); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--teal);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */

.dark {
  background: var(--ink);
  color: var(--paper);
}
.light {
  background: var(--paper);
  color: var(--ink);
}

section { position: relative; }

.section { padding: clamp(96px, 13vw, 168px) 0; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(48px, 8.2vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.h2 {
  font-size: clamp(36px, 5.4vw, 68px);
  letter-spacing: -0.04em;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0;
}
.dark .lead { color: var(--text-dark-2); }
.light .lead { color: #4a5468; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.dark .eyebrow { color: var(--teal-bright); }
.light .eyebrow { color: var(--teal-deep); }

.muted { color: var(--slate); }
.dark .muted { color: var(--text-dark-2); }

.mono { font-family: var(--f-mono); font-size: 0.9em; }

.inline-code {
  font-family: var(--f-mono);
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.dark .inline-code { background: rgba(27, 154, 160, 0.12); color: var(--teal-bright); }
.light .inline-code { background: var(--tint-teal); color: var(--teal-deep); }

.section-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(56px, 7vw, 88px);
  max-width: 880px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}
.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.kicker {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.wordmark svg {
  width: 0.62em;
  height: 0.62em;
  margin-bottom: 0.04em;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --bg: var(--teal);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}
.btn:hover {
  box-shadow: 0 10px 30px -10px rgba(27, 154, 160, 0.6);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--paper);
  border-color: var(--line-dark-2);
}
.btn-ghost:hover {
  border-color: rgba(221, 227, 234, 0.4);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
}
.light .btn-ghost { --fg: var(--ink); border-color: var(--mist); }
.light .btn-ghost:hover { border-color: var(--slate); background: var(--white); }

.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { box-shadow: 0 10px 30px -12px rgba(18, 24, 38, 0.5); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--paper);
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18, 24, 38, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-dark);
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-2);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--paper); background: rgba(255, 255, 255, 0.05); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-2);
  border: 1px solid var(--line-dark-2);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.gh-link:hover { color: var(--paper); border-color: rgba(221, 227, 234, 0.35); }
.gh-link svg { width: 16px; height: 16px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .gh-link span { display: none; }
  .gh-link { padding: 0 11px; }
}

/* --------------------------------------------------------------------------
   Shared bits (pill, action row)
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-dark-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark-2);
  margin-bottom: 36px;
}
.pill b {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink);
  background: var(--teal-bright);
  border-radius: 999px;
  padding: 3px 9px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Comparison */
.compare {
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-dark);
}
.compare-row:first-child { border-top: 0; }
.compare-row > div { padding: 20px 24px; font-size: 15px; }
.compare-row .k {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.compare-row .a { color: var(--slate); border-left: 1px solid var(--line-dark); }
.compare-row .b {
  color: var(--paper);
  border-left: 1px solid var(--line-dark);
  background: rgba(27, 154, 160, 0.06);
  display: flex;
  gap: 12px;
}
.compare-row .b::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.compare-head > div {
  padding: 16px 24px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.02);
}
.compare-head .b { color: var(--teal-bright); background: rgba(27, 154, 160, 0.1); display: block; }
.compare-head .b::before { display: none; }

.design-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.note {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.note h4 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 12px; }
.note p { margin: 0; color: var(--text-dark-2); font-size: 15px; }

.aside-joke {
  margin: clamp(56px, 7vw, 88px) auto 0;
  max-width: 820px;
  text-align: center;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-dark-2);
}
.aside-joke em { font-style: normal; color: var(--paper); }

/* Safety */
.threats { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.threat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}
.threat .shield {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(242, 179, 61, 0.1);
  color: var(--amber);
  border: 1px solid rgba(242, 179, 61, 0.22);
}
.threat .shield svg { width: 18px; height: 18px; }
.threat .risk {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--paper);
  padding-top: 7px;
}
.threat .stop { color: var(--text-dark-2); font-size: 15.5px; padding-top: 8px; }
.threat .stop code { color: var(--teal-bright); font-size: 0.88em; }

.disclaimer {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: rgba(229, 72, 77, 0.06);
  border: 1px solid rgba(229, 72, 77, 0.22);
}
.disclaimer .lbl {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8a8d;
  padding-top: 4px;
}
.disclaimer p { margin: 0; color: var(--text-dark-2); font-size: 15.5px; }
.disclaimer code { color: var(--paper); }

/* --------------------------------------------------------------------------
   Lincoln interlude
   -------------------------------------------------------------------------- */

.interlude-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.duotone {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--teal);
  aspect-ratio: 806 / 900;
  isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(18, 24, 38, 0.5);
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
  mix-blend-mode: multiply;
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  mix-blend-mode: lighten;
}
.duotone::before {
  /* subtle print grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.placard-frame { position: relative; }
.placard-frame .fig {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.quote {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-indent: -0.42em;
}
.quote mark {
  background: none;
  color: var(--teal-deep);
}
.attribution {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.attribution::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: var(--ink);
}
.attribution b { font-family: var(--f-head); font-size: 18px; letter-spacing: -0.01em; }
.attribution span { color: var(--slate); font-size: 15px; }

/* --------------------------------------------------------------------------
   Code box + copy button
   -------------------------------------------------------------------------- */

.codebox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 13.5px;
  min-height: 52px;
}
.codebox code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 10px 0;
}
.codebox code::-webkit-scrollbar { display: none; }
.codebox code .p { color: var(--teal-bright); }
.copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line-dark-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dark-2);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.copy:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.copy svg { width: 15px; height: 15px; }
/* Copy → Copied: both labels share one grid cell and crossfade, so the button never changes width */
.copy .cs { display: inline-grid; }
.copy .cs > span { grid-area: 1 / 1; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.copy .cs .ok { opacity: 0; transform: translateY(2px); }
.copy svg.cp { transition: opacity var(--dur-fast) var(--ease); }
.copy.copied { color: #4fd18f; border-color: rgba(47, 166, 106, 0.5); }
.copy.copied .cs .ok { opacity: 1; transform: none; }
.copy.copied .cs .cp { opacity: 0; transform: translateY(-2px); }
.copy.copied svg.cp { opacity: 0; }

/* --------------------------------------------------------------------------
   Final CTA + Footer
   -------------------------------------------------------------------------- */

.finale {
  padding: clamp(112px, 15vw, 200px) 0 clamp(80px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.finale::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -500px;
  transform: translateX(-50%);
  width: 1100px;
  height: 900px;
  background: radial-gradient(circle, rgba(27, 154, 160, 0.2), transparent 62%);
}
.finale .big-mark {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: var(--ink-3);
  border: 1px solid var(--line-dark-2);
  color: var(--teal-bright);
  margin-bottom: 40px;
  box-shadow: 0 0 60px -10px rgba(27, 154, 160, 0.5);
}
.finale .big-mark svg { width: 38px; height: 38px; }
.finale h2 { margin-bottom: 28px; }
.finale .lead { margin: 0 auto 44px; }
.finale .hero-actions { justify-content: center; }

.footer {
  border-top: 1px solid var(--line-dark);
  padding: 48px 0 56px;
  color: var(--slate);
  font-size: 14px;
}
.footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer .wordmark { color: var(--paper); margin-bottom: 16px; }
.footer p { margin: 0; max-width: 36ch; line-height: 1.6; }
.footer h5 {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color var(--dur-fast); }
.footer a:hover { color: var(--paper); }
.footer-base {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Commands page (docs)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 112px)) 0 clamp(64px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 20%, transparent 70%);
}
.page-hero h1 { margin-bottom: 24px; }
.page-hero .one-cmd {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-dark-2);
  background: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 15px;
  max-width: 100%;
}
.page-hero .one-cmd .hint { color: var(--slate); font-family: var(--f-body); font-size: 13px; }
.page-hero .one-cmd .cmdname { color: var(--teal-bright); }

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(96px, 12vw, 144px);
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
}
.toc h5 {
  margin: 0 0 16px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--mist); }
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1.5px solid transparent;
  font-size: 14.5px;
  color: #4a5468;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--teal-deep); border-left-color: var(--teal); font-weight: 500; }

.doc-section { padding-bottom: clamp(64px, 8vw, 96px); }
.doc-section + .doc-section { padding-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--mist); }
.doc-section > h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; margin-bottom: 14px; }
.doc-section > .lead { margin-bottom: 40px; font-size: 18px; }

.cmd-group { margin-bottom: 36px; }
.cmd-group:last-child { margin-bottom: 0; }
.cmd-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
.cmd-group h3::after { content: ""; flex: 1; height: 1px; background: var(--mist); }
.cmd-list {
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist);
  background: var(--white);
  overflow: hidden;
}
.cmd {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 24px;
  padding: 18px 22px;
  border-top: 1px solid var(--mist);
  align-items: baseline;
  transition: background var(--dur-fast);
}
.cmd:first-child { border-top: 0; }
.cmd:hover { background: #fbfcfd; }
.cmd .names { display: flex; flex-wrap: wrap; gap: 6px; }
.cmd .names code {
  font-size: 13.5px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--tint-teal);
  color: var(--teal-deep);
  font-weight: 500;
}
.cmd .names code .arg { color: var(--slate); font-weight: 400; }
.cmd p { margin: 0; font-size: 15px; color: #4a5468; }
.cmd.hero-cmd {
  background: var(--ink);
  border-color: var(--ink);
}
.cmd.hero-cmd:hover { background: var(--ink); }
.cmd.hero-cmd .names code { background: rgba(27, 154, 160, 0.18); color: var(--teal-bright); }
.cmd.hero-cmd p { color: var(--paper); }
.cmd.hero-cmd p span { color: var(--slate); }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  font-size: 15px;
}
.table th {
  text-align: left;
  padding: 14px 20px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: #fafbfc;
  border-bottom: 1px solid var(--mist);
}
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--mist);
  vertical-align: top;
  color: #4a5468;
}
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); font-weight: 600; }
.table td code {
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--mist);
  color: var(--ink);
  white-space: nowrap;
}
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

.presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.preset {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.preset.def { border-color: var(--teal); box-shadow: 0 0 0 3px var(--tint-teal); }
.preset .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.preset h3 { font-size: 24px; letter-spacing: -0.03em; }
.preset .badge {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tint-teal);
  color: var(--teal-deep);
}
.preset dl { margin: 0; display: grid; gap: 12px; font-size: 14.5px; flex: 1; }
.preset dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.preset dd { margin: 2px 0 0; color: #4a5468; }
.preset dd code { font-size: 12.5px; color: var(--teal-deep); }
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--tint-teal);
  border: 1px solid #bfe3e4;
  color: var(--teal-deep);
  font-size: 15px;
  margin-bottom: 36px;
}
.callout svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }

.tree {
  margin: 0;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #cdd4df;
  font-size: 14px;
  line-height: 1.85;
  overflow-x: auto;
}
.tree .d { color: var(--teal-bright); }
.tree .c { color: var(--slate); }
.tree-note {
  margin-top: 20px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Gentler, not zero: loops stop, nothing moves; colour and opacity feedback stays */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, text-decoration-color !important;
    transition-duration: 150ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .compare-row { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .interlude-grid { grid-template-columns: minmax(0, 1fr); }
  .interlude-grid .placard-frame { max-width: 420px; }

  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .presets { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

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

  .compare-head { display: none; }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-row > div { padding: 14px 20px; }
  .compare-row .a,
  .compare-row .b { border-left: 0; }
  .compare-row .a { padding-top: 6px; text-decoration: line-through; text-decoration-color: rgba(138, 148, 166, 0.5); }

  .threat { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; }
  .threat .stop { grid-column: 2; padding-top: 0; }
  .disclaimer { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px; }

  .cmd { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .footer .container { grid-template-columns: 1fr 1fr; }
  .footer .container > div:first-child { grid-column: 1 / -1; }

}
