/* =========================================================================
   The Web Master — design system
   Light "warm paper" by default, premium dark on toggle. One accent, thin
   borders, restraint. Tokens are defined once on :root; dark only redefines
   them. Never give a colour its only definition inside a media block.
   ========================================================================= */

:root {
  /* Marrakech ochre-vermilion. --acc-rgb feeds every translucent derivative
     (rings, glows, tinted fills) — keep the two in sync or the halo drifts
     off-hue from the fill it surrounds. */
  --acc: #D6410F;
  --acc-rgb: 214, 65, 15;
  --acc-ink: #A8300A;

  --ink: #16130F;
  --ink-2: #3D372F;
  /* #7A7268 measured 3.81:1 on --bg-2 and 4.20:1 on --bg — under AA for the
     breadcrumb, footer blurb, table headers and hero meta line, all of which
     are body-size. Same hue, darkened until --bg-2 clears 4.5:1. */
  --muted: #6E665D;
  --bg: #F4F1EA;
  --bg-2: #EBE6DB;
  --card: #FFFFFF;
  --line: rgba(22, 19, 15, 0.10);
  --line-2: rgba(22, 19, 15, 0.16);

  --ok: #1E7A4D;
  --warn: #9A6100;

  --shadow-sm: 0 2px 10px -4px rgba(30, 26, 20, 0.16);
  --shadow: 0 20px 48px -24px rgba(34, 28, 20, 0.30);
  --shadow-lg: 0 42px 96px -38px rgba(34, 28, 20, 0.38);

  --nav-bg: rgba(244, 241, 234, 0.72);
  --nav-bg-scrolled: rgba(244, 241, 234, 0.92);
  --code-bg: #16130F;
  --code-ink: #E9E4DA;
  --btn-ghost-hover: rgba(22, 19, 15, 0.05);
  --mark: rgba(var(--acc-rgb), 0.14);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --pad: clamp(20px, 5vw, 72px);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter Tight", var(--font);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Explicit choice wins in both directions; the bare media query covers the
   default "system" setting, which stamps no data-theme at all. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --acc: #FF6A3D;
    --acc-rgb: 255, 106, 61;
    --acc-ink: #FF8A63;
    --ink: #F2EFE9;
    --ink-2: #C4BDB2;
    --muted: rgba(242, 239, 233, 0.52);
    --bg: #0D0C0A;
    --bg-2: #17150F;
    --card: #17150F;
    --line: rgba(242, 239, 233, 0.10);
    --line-2: rgba(242, 239, 233, 0.18);
    --ok: #4FBF8B;
    --warn: #E0A63C;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 42px 96px -38px rgba(0, 0, 0, 0.8);
    --nav-bg: rgba(13, 12, 10, 0.66);
    --nav-bg-scrolled: rgba(13, 12, 10, 0.92);
    --code-bg: #07070A;
    --code-ink: #DDD8CE;
    --btn-ghost-hover: rgba(242, 239, 233, 0.07);
    --mark: rgba(var(--acc-rgb), 0.18);
  }
}
:root[data-theme="dark"] {
  --acc: #FF6A3D;
  --acc-rgb: 255, 106, 61;
  --acc-ink: #FF8A63;
  --ink: #F2EFE9;
  --ink-2: #C4BDB2;
  --muted: rgba(242, 239, 233, 0.52);
  --bg: #0D0C0A;
  --bg-2: #17150F;
  --card: #17150F;
  --line: rgba(242, 239, 233, 0.10);
  --line-2: rgba(242, 239, 233, 0.18);
  --ok: #4FBF8B;
  --warn: #E0A63C;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 42px 96px -38px rgba(0, 0, 0, 0.8);
  --nav-bg: rgba(13, 12, 10, 0.66);
  --nav-bg-scrolled: rgba(13, 12, 10, 0.92);
  --code-bg: #07070A;
  --code-ink: #DDD8CE;
  --btn-ghost-hover: rgba(242, 239, 233, 0.07);
  --mark: rgba(var(--acc-rgb), 0.18);
}

/* ------------------------------------------------------------------ base -- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 0.95vw + 0.6rem, 17.5px);
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background 0.35s ease, color 0.35s ease;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.032em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); letter-spacing: -0.022em; }
h4 { font-size: 1.05rem; letter-spacing: -0.018em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }
mark { background: var(--mark); color: inherit; padding: 0 0.15em; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--acc); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: var(--wrap-narrow); }
.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;
}

/* --------------------------------------------------------------- header -- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hdr.is-scrolled { background: var(--nav-bg-scrolled); border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; white-space: nowrap; }
.logo__dot { color: var(--acc); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav__btn {
  font-size: 0.925rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--r-sm);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover, .nav__btn:hover { color: var(--ink); background: var(--btn-ghost-hover); }
.nav a[aria-current="page"] { color: var(--acc); font-weight: 600; }

/* Dropdown — hover on pointer devices, click everywhere (JS toggles .is-open) */
.nav__group { position: relative; }
.nav__trig { display: inline-flex; align-items: center; gap: 5px; }
.nav__trig svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.nav__group.is-open .nav__trig svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 268px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s var(--ease), visibility 0.18s;
}
.nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 0.9rem; }
.nav__menu a span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-top: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.014em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--acc { background: var(--acc); color: #fff; box-shadow: 0 10px 28px -12px rgba(var(--acc-rgb), 0.7); }
.btn--acc:hover { background: var(--acc-ink); box-shadow: 0 14px 34px -12px rgba(var(--acc-rgb), 0.8); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--btn-ghost-hover); border-color: var(--ink-2); }
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.thm { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 999px; }
.thm svg { width: 17px; height: 17px; }
.thm .i-sun { display: none; }
:root[data-theme="dark"] .thm .i-sun { display: block; }
:root[data-theme="dark"] .thm .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thm .i-sun { display: block; }
  :root:not([data-theme="light"]) .thm .i-moon { display: none; }
}

.burger { display: none; width: 38px; height: 38px; border-radius: var(--r-sm); }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s ease; }
.burger span + span { margin-top: 4px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: inline-grid; place-items: center; margin-left: auto; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px var(--pad) 26px; max-height: calc(100dvh - 68px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0.22s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a, .nav__btn { padding: 12px 4px; font-size: 1rem; text-align: left; }
  .nav .btn { margin-top: 10px; }
  .nav__group { position: static; }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    padding: 0 0 6px 12px; margin: 0 0 4px 4px; display: none;
  }
  .nav__group.is-open .nav__menu { display: block; transform: none; }
  .thm { margin-top: 10px; justify-self: start; }
}

/* ----------------------------------------------------------------- hero -- */
.hero { padding: clamp(56px, 9vw, 116px) 0 clamp(44px, 6vw, 76px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -28%; left: 50%; width: min(1000px, 130%); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--acc-rgb), 0.13), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.kicker--plain::before { display: none; }
.hero h1 { max-width: 16ch; }
.hero__lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 62ch; margin-top: 22px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; font-size: 0.875rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--acc); flex: none; }

/* --------------------------------------------------------------- marquee -- */
.marquee { border-block: 1px solid var(--line); padding: 15px 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 22px; padding-inline: 11px;
  font-family: var(--display); font-weight: 600; font-size: 0.925rem; color: var(--ink-2); white-space: nowrap;
}
.marquee__item::after { content: "/"; color: var(--acc); opacity: 0.55; }

/* -------------------------------------------------------------- sections -- */
.sec { padding: clamp(52px, 7.5vw, 104px) 0; }
.sec--alt { background: var(--bg-2); }
.sec--tight { padding-block: clamp(38px, 5vw, 64px); }
.sec__head { max-width: 68ch; margin-bottom: clamp(30px, 4vw, 50px); }
.sec__head p { color: var(--ink-2); font-size: 1.06rem; margin-top: 16px; }
.sec__num { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.05em; }

.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--acc-ink); }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--acc); }

/* ----------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
/* auto-fit resolves to 3 tracks at 1440px, which orphans the 4th card of an
   even set on a row of its own. Both grid--2 users ship four cards. */
@media (min-width: 980px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* 4 cards in a 3-track grid orphan the last one on its own row. */
.grid--2x2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 980px) { .grid--2x2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.24s var(--ease), border-color 0.24s ease, box-shadow 0.24s ease;
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card__num { font-family: var(--mono); font-size: 0.74rem; color: var(--acc); letter-spacing: 0.06em; }
.card__meta { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.card__arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--acc); font-weight: 600; font-size: 0.9rem; }
.card__arrow svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
a.card:hover .card__arrow svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- stats -- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--card); padding: 24px 22px; }
.stat__n { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.035em; color: var(--acc); line-height: 1; }
.stat__l { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* --------------------------------------------------------------- process -- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; counter-reset: st; }
.step { counter-increment: st; padding-top: 20px; border-top: 2px solid var(--line); }
.step::before { content: "0" counter(st); font-family: var(--mono); font-size: 0.76rem; color: var(--acc); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------- checklist -- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 0.96rem; color: var(--ink-2); }
.checks svg { width: 20px; height: 20px; color: var(--acc); margin-top: 2px; flex: none; }

/* ----------------------------------------------------------------- table -- */
/* Wide tables scroll inside their own box so the page body never does. On a
   390px screen the third column is off-screen with nothing to say so; the two
   local-attachment gradients are the CSS-only scroll shadow — they stay pinned
   to the scrollport while the two scroll-attachment covers ride with the
   content and hide the shadow once you reach that end. No JS, no scroll
   listener. */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(to right, var(--card) 30%, rgba(0, 0, 0, 0)) left center,
    linear-gradient(to left,  var(--card) 30%, rgba(0, 0, 0, 0)) right center,
    radial-gradient(farthest-side at 0 50%, rgba(var(--acc-rgb), 0.20), rgba(0, 0, 0, 0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(var(--acc-rgb), 0.20), rgba(0, 0, 0, 0)) right center;
  background-color: var(--card);
  background-repeat: no-repeat;
  background-size: 44px 100%, 44px 100%, 15px 100%, 15px 100%;
  background-attachment: local, local, scroll, scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tbl-wrap:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 0.93rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-2); position: relative; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-2); }

/* ------------------------------------------------------------------- faq -- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.12rem);
  letter-spacing: -0.018em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px; margin-top: 5px;
  border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { padding: 0 0 22px; max-width: 74ch; color: var(--ink-2); font-size: 0.98rem; }

/* ------------------------------------------------------------- terminal -- */
.term {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--r);
  padding: 22px clamp(18px, 2.4vw, 28px); font-family: var(--mono); font-size: 0.855rem;
  line-height: 1.85; overflow-x: auto; border: 1px solid var(--line-2);
}
.term__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.term__bar i:first-child { background: var(--acc); }
.term b { color: var(--acc); font-weight: 400; }
.term em { color: rgba(255, 255, 255, 0.44); font-style: normal; }
.term u { color: #6FCF97; text-decoration: none; }

/* ---------------------------------------------------------------- pills -- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-2); background: var(--card);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}
a.pill:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-1px); }

/* ------------------------------------------------------------------- cta -- */
/* The CTA is a deliberate inversion of the page. It therefore needs its own
   local tokens: reusing --ink/--bg/--muted meant that in dark mode the panel
   turned light while its paragraph kept --muted (a light grey) and its ghost
   button kept a white border — light-on-light, effectively invisible. */
.cta {
  --cta-bg: var(--ink);
  --cta-fg: var(--bg);
  --cta-fg-soft: rgba(255, 255, 255, 0.66);
  --cta-line: rgba(255, 255, 255, 0.26);
  --cta-line-hi: rgba(255, 255, 255, 0.42);
  --cta-wash: rgba(255, 255, 255, 0.09);
  background: var(--cta-bg); color: var(--cta-fg); border-radius: var(--r-lg);
  padding: clamp(34px, 5.5vw, 66px); position: relative; overflow: hidden;
}
/* `:root:not([data-theme="light"])` matches the DEFAULT state too — the root
   carries no data-theme until the visitor picks one — so this override must
   stay inside the media query or it repaints the light theme as well. It did:
   light-mode CTA text came out at 1.06:1 against its own panel. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta {
    --cta-fg-soft: rgba(13, 12, 10, 0.66);
    --cta-line: rgba(13, 12, 10, 0.22);
    --cta-line-hi: rgba(13, 12, 10, 0.4);
    --cta-wash: rgba(13, 12, 10, 0.07);
  }
}
:root[data-theme="dark"] .cta {
  --cta-fg-soft: rgba(13, 12, 10, 0.66);
  --cta-line: rgba(13, 12, 10, 0.22);
  --cta-line-hi: rgba(13, 12, 10, 0.4);
  --cta-wash: rgba(13, 12, 10, 0.07);
}
.cta::before {
  content: ""; position: absolute; right: -12%; top: -46%; width: 480px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--acc-rgb), 0.42), transparent 66%); pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { max-width: 20ch; }
.cta p { color: var(--cta-fg-soft); max-width: 56ch; margin-top: 16px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .btn--ink { background: var(--cta-fg); color: var(--cta-bg); }
.cta .btn--ghost { border-color: var(--cta-line); color: var(--cta-fg); }
.cta .btn--ghost:hover { background: var(--cta-wash); border-color: var(--cta-line-hi); }

/* ------------------------------------------------------------------ note -- */
.note {
  border-left: 3px solid var(--acc); background: var(--bg-2);
  padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.93rem; color: var(--ink-2);
}
.note strong { color: var(--ink); }

/* ------------------------------------------------------------------ form -- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 15px; width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field--err input, .field--err select, .field--err textarea { border-color: #C0392B; }
.field__err { font-size: 0.82rem; color: #C0392B; display: none; }
.field--err .field__err { display: block; }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: 0.87rem; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); }
.consent a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
/* Honeypot: off-screen, not display:none — some bots skip hidden fields. */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__msg { padding: 14px 18px; border-radius: var(--r-sm); font-size: 0.92rem; display: none; }
.form__msg.is-ok { display: block; background: rgba(30, 122, 77, 0.12); color: var(--ok); border: 1px solid rgba(30, 122, 77, 0.3); }
.form__msg.is-err { display: block; background: rgba(192, 57, 43, 0.1); color: #C0392B; border: 1px solid rgba(192, 57, 43, 0.28); }

/* ------------------------------------------------------------ breadcrumb -- */
.crumbs { font-size: 0.83rem; color: var(--muted); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.crumbs a:hover { color: var(--acc); }
.crumbs span[aria-current] { color: var(--ink-2); }
.crumbs i { opacity: 0.5; font-style: normal; }

/* ---------------------------------------------------------------- footer -- */
.ftr { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 68px) 0 30px; background: var(--bg-2); }
.ftr__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; gap: 26px; } }
.ftr h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr a { font-size: 0.9rem; color: var(--ink-2); }
.ftr a:hover { color: var(--acc); }
.ftr__about { font-size: 0.9rem; color: var(--muted); max-width: 34ch; margin-top: 12px; }
.ftr__contact { display: grid; gap: 8px; margin-top: 16px; font-size: 0.9rem; }
.ftr__contact a { display: inline-flex; align-items: center; gap: 8px; }
.ftr__contact svg { width: 15px; height: 15px; color: var(--acc); flex: none; }
.ftr__btm {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.ftr__btm nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }

/* --------------------------------------------------------------- utility -- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 26px; }
.mt-3 { margin-top: 40px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 92px; }
@media (max-width: 860px) { .sticky { position: static; } }

/* Reveal on scroll — opt-in, and a no-JS page must still show everything. */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
