/* ==========================================================================
   Ash King — Independent Security Researcher
   Design system: near-black ground, hairline grid, one acid accent, editorial.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (meta)
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --bg:            #07080a;
  --surface:       #0c0e11;
  --surface-2:     #12151a;
  --surface-3:     #171b21;

  --line:          #1b1f25;
  --line-2:        #262c34;
  --line-3:        #363d47;

  --fg:            #e9ecf0;
  --fg-2:          #99a2ae;
  --fg-3:          #5e6773;
  --fg-4:          #414952;

  --accent:        #c6f24e;
  --accent-ink:    #0a0d05;
  --accent-soft:   rgba(198, 242, 78, .12);
  --accent-line:   rgba(198, 242, 78, .28);

  --c-browser:     #c6f24e;
  --c-trade:       #f0b429;
  --c-social:      #c084fc;

  --maxw:          1180px;
  --pad:           clamp(20px, 5vw, 56px);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease:         cubic-bezier(.22, .61, .36, 1);
  --nav-h:        64px;
}

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

/* Author `display` rules (.note is `display: grid`) outrank the UA sheet's
   `[hidden] { display: none }`, so `el.hidden = true` silently does nothing
   without this. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip, not hidden — `overflow-x: hidden` would create a scroll container
     and break the sticky nav */
  overflow-x: clip;
}

/* very low-opacity grain: keeps large dark fields from reading as flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}

p  { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

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

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

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

.wrap--narrow { max-width: 1080px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font: 500 13px/1 var(--font-mono);
}
.skip:focus { left: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- type helpers ------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow b { color: var(--fg-4); font-weight: 500; }
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.accent { color: var(--accent); }
.mono   { font-family: var(--font-mono); }

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--fg-2);
  max-width: 54ch;
  line-height: 1.65;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px var(--accent-line);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--line-3);
  background: var(--surface-2);
  box-shadow: none;
}

.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* --- status pill -------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(198, 242, 78, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(198, 242, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0); }
}

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 8, 10, .72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__mark {
  width: 9px;
  height: 9px;
  margin: 0 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(225deg); }
.brand span { color: var(--fg-3); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
/* :not(.btn) — the CTA lives in this list, and `.nav__links a` would otherwise
   out-specify `.btn` and repaint its label in the muted link grey */
.nav__links a:not(.btn) {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-size: 13.5px;
  color: var(--fg-2);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--fg); background: var(--surface-2); }
.nav__links a[aria-current] { color: var(--fg); }
.nav__links a[aria-current]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 1px;
  height: 1px;
  background: var(--accent);
}
.nav__cta { margin-left: 6px; }
.nav .btn { padding: 9px 16px; font-size: 11px; }

.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger span + span { margin-top: 4px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 15vw, 250px) clamp(56px, 15vw, 300px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 85% at 22% 8%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 85% at 22% 8%, #000 0%, transparent 68%);
  opacity: .7;
  pointer-events: none;
}
/* static accent bloom. No hover on the hero — this is fixed in the corner. */
.hero::after {
  content: "";
  position: absolute;
  inset: -200px;
  background: radial-gradient(
    circle 420px at 18% 6%,
    rgba(198, 242, 78, .10), transparent 70%
  );
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; }

/* Where the bug sits, in percentages of .hero__in. */
.hero { --bug-x: 82%; --bug-y: 42%; }

/* --- hero: the loupe ---------------------------------------------------- */
/* Sweeps a few spots, then lands on the bug. Choreography lives in site.js;
   this is just the body it drives. left/top are set inline rather than through
   a custom prop so the CSS transition reliably fires between stops. */
.hero__loupe {
  position: absolute;
  left: 76%;
  top: 30%;
  z-index: 3;
  /* bigger than the bug, so the bug sits inside the lens rather than
     colliding with it */
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: left .85s var(--ease), top .85s var(--ease),
              opacity .5s var(--ease), transform .6s var(--ease);
}
.hero__loupe.is-on { opacity: 1; }
.hero__loupe.is-done {
  opacity: 0;
  transform: scale(1.4);
  transition: opacity .6s var(--ease) .35s, transform .6s var(--ease) .35s;
}

/* the pool of light it casts on whatever it's over */
.hero__loupe::before {
  content: "";
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 242, 78, .20), rgba(198, 242, 78, .07) 45%, transparent 72%);
  filter: blur(14px);
}
.hero__loupe svg {
  position: relative;
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 14px rgba(198, 242, 78, .5));
  animation: loupe-peer 3.2s var(--ease) infinite;
}

/* --- hero: the scan readout --------------------------------------------- */
/* A little HUD chip under the lens showing what it's currently reading.
   Sits below the loupe and centres on it, which keeps it clear of the
   headline at every stop. */
.hero__loupe-read {
  position: absolute;
  left: 50%;
  top: calc(100% + 13px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(10, 12, 15, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.hero__loupe-read i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: ping 1.4s var(--ease) infinite;
}
.hero__loupe-read b {
  font-weight: 400;
  color: var(--fg-2);
}
@keyframes loupe-peer {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}

/* --- hero: the bug ------------------------------------------------------ */
/* Hidden until the loupe lands on it, then it stays lit as a quiet marker of
   what the sweep turned up. */
.hero__bug {
  position: absolute;
  /* Set once on .hero and read back by site.js for the loupe's final stop, so
     the lens always lands dead on the bug. Mobile overrides it below. */
  left: var(--bug-x, 82%);
  top: var(--bug-y, 42%);
  /* under the loupe, so it reads as being looked at through the lens */
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  display: grid;
  place-items: center;
  /* it's a real <button>, so clear the UA chrome */
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  cursor: default;
  transform: scale(.7);
  filter: drop-shadow(0 0 12px rgba(198, 242, 78, .5));
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.hero__bug svg { width: 34px; height: 34px; stroke-width: 1.5; }

.hero__bug::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(1);
  transition: opacity .5s var(--ease);
}

/* found: lights up, then settles into a clickable marker */
.hero.is-found .hero__bug {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  cursor: pointer;
}
.hero.is-found .hero__bug::before {
  animation: bug-ring 1.6s var(--ease) 2;
}
.hero.is-settled .hero__bug { opacity: .6; }
.hero.is-settled .hero__bug::before { opacity: .3; animation: none; }

/* needs to out-specify the .is-settled opacity above */
.hero.is-found .hero__bug:hover,
.hero.is-found .hero__bug:focus-visible,
.hero.is-settled .hero__bug:hover,
.hero.is-settled .hero__bug:focus-visible { opacity: 1; }
.hero__bug:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 50%; }

/* tells you the thing is clickable */
.hero__bug::after {
  content: "View report";
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.hero__bug:hover::after,
.hero__bug:focus-visible::after { opacity: 1; }

@keyframes bug-ring {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero__toast {
  position: absolute;
  top: 0;
  right: var(--pad);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 20px 13px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: rgba(12, 14, 17, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .95);
  opacity: 0;
  transform: translateY(-10px) scale(.95);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero__toast.is-on { opacity: 1; transform: none; }
.hero__toast__i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.hero__toast__h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__toast__p {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.hero h1 {
  font-size: clamp(44px, 9.2vw, 108px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .94;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero h1 .thin {
  display: block;
  color: var(--fg-4);
  font-weight: 400;
}
.hero__lead {
  max-width: 52ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--fg-2);
  margin-bottom: 34px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-3);
  margin-right: 13px;
}

/* --- section scaffolding ------------------------------------------------ */
.section { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section__title {
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -.038em;
  margin-top: 18px;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__note { color: var(--fg-2); font-size: 15px; max-width: 44ch; margin-top: 16px; }
.section__head .eyebrow { width: 100%; }

/* --- stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.stat {
  padding: 26px 24px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--fg);
}
.stat__n em { font-style: normal; color: var(--accent); }
.stat__l {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.45;
}

/* --- process ------------------------------------------------------------ */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .35s var(--ease);
}
.step:hover { background: var(--surface); }
.step__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--fg-4);
  display: flex;
  align-items: center;
  gap: 12px;
}
.step__n::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-2);
  transition: width .4s var(--ease), background .4s var(--ease);
}
.step:hover .step__n::after { width: 44px; background: var(--accent); }
.step h3 {
  font-size: clamp(19px, 2.1vw, 23px);
  letter-spacing: -.025em;
  line-height: 1.18;
}
.step p { color: var(--fg-2); font-size: 14.5px; line-height: 1.68; }
.step__tag {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-4);
}

/* --- notes / post list -------------------------------------------------- */
.notes { border-top: 1px solid var(--line); }
.note {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .38s var(--ease);
}
.note:hover { padding-left: 18px; background: linear-gradient(90deg, var(--surface), transparent 82%); }
.note:hover::before { transform: scaleY(1); }

.note__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.note__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.22;
  transition: color .25s var(--ease);
}
.note:hover .note__title { color: var(--accent); }
.note__dek {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 14.5px;
  max-width: 62ch;
  line-height: 1.62;
}
.note__go {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.note:hover .note__go { color: var(--accent); gap: 12px; }

/* category tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tag-c, var(--accent));
  flex-shrink: 0;
}
.tag--browser { --tag-c: var(--c-browser); }
.tag--trade   { --tag-c: var(--c-trade); }
.tag--social  { --tag-c: var(--c-social); }

/* "via @HackWithAsh" marker on co-authored notes */
.note__via {
  color: var(--fg-4);
  font-size: 10px;
  letter-spacing: .07em;
}

/* --- pagination (blog.php) ---------------------------------------------- */
.pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pages a,
.pages span:not(.pages__label) {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease);
}
.pages a:hover { color: var(--fg); border-color: var(--line-3); background: var(--surface-2); }
.pages [aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pages__label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-4);
}

/* --- despatches --------------------------------------------------------- */
.despatches {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.despatch {
  background: var(--surface);
  padding: 28px clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .3s var(--ease);
}
.despatch:hover { background: var(--surface-2); }
.despatch__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.despatch h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.03em;
}
.despatch__where {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.despatch p { color: var(--fg-2); font-size: 14.5px; line-height: 1.65; }
.despatch--open { border-color: var(--accent-line); }
.despatch--open .despatch__where { color: var(--fg-3); }

/* --- services chips ----------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.chips li:hover { border-color: var(--accent-line); color: var(--fg); background: var(--surface-2); }
.chips li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* --- collaborate strip -------------------------------------------------- */
.collab {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 34px) clamp(22px, 3vw, 36px);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.collab__item { display: flex; flex-direction: column; gap: 8px; }
.collab__q { font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }
.collab__a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.collab__a a { color: var(--fg-2); border-bottom: 1px solid var(--line-3); transition: color .2s, border-color .2s; }
.collab__a a:hover { color: var(--accent); border-color: var(--accent); }

/* --- engage / CTA ------------------------------------------------------- */
.engage {
  position: relative;
  padding-block: clamp(64px, 9vw, 116px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.engage::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -280px;
  bottom: -460px;
  background: radial-gradient(circle, rgba(198, 242, 78, .095), transparent 62%);
  pointer-events: none;
}
.engage__in { position: relative; z-index: 1; }
.engage h2 {
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: -.042em;
  line-height: 1.02;
  margin: 18px 0 22px;
  max-width: 20ch;
}
.engage h2 em { font-style: normal; color: var(--accent); }
.engage p { color: var(--fg-2); max-width: 50ch; font-size: 16.5px; margin-bottom: 32px; }
.engage__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.booking {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}
.booking__h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.booking ul { list-style: none; }
.booking li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-2);
}
.booking li:last-child { border-bottom: 0; }
.booking li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* --- ticker ------------------------------------------------------------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}
.ticker__set i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* --- footer ------------------------------------------------------------- */
.footer { padding-block: clamp(48px, 6vw, 72px) 34px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer__blurb { color: var(--fg-2); font-size: 14.5px; max-width: 34ch; margin-top: 16px; }
.footer__h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 16px;
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__list a { color: var(--fg-2); font-size: 14.5px; transition: color .2s var(--ease), padding-left .25s var(--ease); }
.footer__list a:hover { color: var(--accent); padding-left: 5px; }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  color: var(--fg-4);
}
.footer__bar a:hover { color: var(--accent); }

/* --- page head (blog / article) ----------------------------------------- */
.pagehead {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(100% 120% at 50% -20%, #000, transparent 70%);
  mask-image: radial-gradient(100% 120% at 50% -20%, #000, transparent 70%);
  opacity: .6;
  pointer-events: none;
}
.pagehead__in { position: relative; z-index: 1; }
.pagehead h1 {
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: -.045em;
  line-height: .98;
  margin: 20px 0 20px;
}
.pagehead h1 em { font-style: normal; color: var(--accent); }

/* --- filters ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter {
  /* inline-flex so these work as both <button> (static page, client-side
     filter) and <a> (PHP page, server-side filter) */
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease);
}
.filter:hover { color: var(--fg); border-color: var(--line-3); }
.filter[aria-pressed="true"],
.filter[aria-current] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.filter sup { font-size: 9px; opacity: .65; }

.empty {
  display: none;
  padding: 60px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-4);
  text-align: center;
}
.empty.is-on { display: block; }

/* --- article ------------------------------------------------------------ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .1s linear;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 26px;
}
.crumbs a { color: var(--fg-3); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--fg-4); }

.article__title {
  font-size: clamp(34px, 6.4vw, 66px);
  letter-spacing: -.042em;
  line-height: 1.02;
  margin: 18px 0 22px;
  max-width: 22ch;
}
.article__dek {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-2);
  max-width: 58ch;
  line-height: 1.58;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.article__meta b { color: var(--fg-2); font-weight: 500; }

.article__body { padding-block: clamp(40px, 6vw, 72px); }
.article__body > * + * { margin-top: 26px; }
.article__body h2 {
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: -.032em;
  margin-top: clamp(44px, 6vw, 68px);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.article__body h2::before {
  content: attr(data-n);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.article__body h3 {
  font-size: 18px;
  letter-spacing: -.02em;
  margin-top: 34px;
}
.article__body p { color: #c3c9d2; font-size: 16.5px; line-height: 1.75; }
.article__body p strong { color: var(--fg); font-weight: 600; }
.article__body a:not(.btn) {
  color: var(--fg);
  border-bottom: 1px solid var(--accent-line);
  transition: color .2s, border-color .2s;
}
.article__body a:not(.btn):hover { color: var(--accent); border-color: var(--accent); }

.article__body ul, .article__body ol { display: flex; flex-direction: column; gap: 12px; padding-left: 0; list-style: none; }
.article__body li {
  position: relative;
  padding-left: 28px;
  color: #c3c9d2;
  font-size: 16.5px;
  line-height: 1.72;
}
.article__body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .72em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
.article__body ol { counter-reset: li; }
.article__body ol li { counter-increment: li; }
.article__body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .18em;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
}
.article__body li strong { color: var(--fg); font-weight: 600; }

.keybox {
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  padding: 24px 26px;
}
.keybox__h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.keybox p { font-size: 16px; color: var(--fg-2); }

blockquote {
  margin: 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--line-3);
}
blockquote p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 25px) !important;
  letter-spacing: -.025em;
  line-height: 1.38 !important;
  color: var(--fg) !important;
}

/* inline + block code */
.article__body code { font-family: var(--font-mono); }
.article__body :not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--accent);
  font-size: .83em;
  overflow-wrap: anywhere;
}
.article__body pre {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  color: var(--fg-2);
  tab-size: 2;
}
.article__body pre .c { color: var(--fg-4); }
.article__body pre .k { color: var(--c-social); }
.article__body pre .s { color: var(--accent); }

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
thead th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-2);
  vertical-align: top;
  line-height: 1.6;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
tbody td:first-child { color: var(--fg); font-weight: 500; white-space: nowrap; }

.disclosure {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.7;
}
.disclosure b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pager a {
  background: var(--bg);
  padding: 28px clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background .3s var(--ease);
}
.pager a:hover { background: var(--surface); }
.pager__l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.pager__t {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: -.025em;
  line-height: 1.25;
  transition: color .25s var(--ease);
}
.pager a:hover .pager__t { color: var(--accent); }
.pager a:last-child { text-align: right; align-items: flex-end; }

/* --- vulnerability report modal ----------------------------------------- */
/* transform-origin is set by site.js to the bug's position, so the panel
   grows out of the bug rather than out of the centre of the screen. */
.report {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}

.report__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, .78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.report.is-open .report__scrim { opacity: 1; }

.report__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 800px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
  overflow: hidden;
  opacity: 0;
  transform: scale(.1);
  transition: opacity .28s var(--ease), transform .45s var(--ease);
}
.report.is-open .report__panel { opacity: 1; transform: scale(1); }

.report__head {
  flex-shrink: 0;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.report__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.report__id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.report__sev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(240, 180, 41, .38);
  border-radius: var(--radius-pill);
  background: rgba(240, 180, 41, .1);
  color: var(--c-trade);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.report__x {
  margin-left: auto;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.report__x:hover { color: var(--fg); border-color: var(--line-3); background: var(--surface-3); }

.report__title {
  font-size: clamp(19px, 2.6vw, 25px);
  letter-spacing: -.028em;
  line-height: 1.2;
}
.report__vector {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-4);
  overflow-wrap: anywhere;
}

/* the scrollable part */
.report__body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.report__body::-webkit-scrollbar { width: 9px; }
.report__body::-webkit-scrollbar-track { background: transparent; }
.report__body::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 5px;
  border: 2px solid var(--surface);
}
.report__body::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

.report__body section + section { margin-top: 26px; }
.report__h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.report__h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.report__body p { color: #c3c9d2; font-size: 15px; line-height: 1.68; }
.report__body p + p { margin-top: 12px; }
.report__body strong { color: var(--fg); font-weight: 600; }

.report__body ol {
  counter-reset: r;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.report__body ol li {
  counter-increment: r;
  position: relative;
  padding-left: 30px;
  color: #c3c9d2;
  font-size: 15px;
  line-height: 1.62;
}
.report__body ol li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .12em;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.report__body code {
  font-family: var(--font-mono);
  font-size: .85em;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--accent);
  overflow-wrap: anywhere;
}
.report__body pre {
  margin-top: 15px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-2);
}
.report__note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  line-height: 1.6;
  color: var(--fg-4);
}

body.is-locked { overflow: hidden; }

/* --- lead form (start.php) ---------------------------------------------- */
.lead {
  max-width: 720px;
  margin-inline: auto;
}

/* Steps are all visible by default so the form works without JS; site.js adds
   .js to <html> and the wizard takes over. */
.lead__step {
  display: block;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.js .lead__step { display: none; }
.js .lead__step.is-active { display: block; }

.lead__legend {
  padding: 0;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 500;
  letter-spacing: -.028em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.lead__legend b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--accent);
}
.lead__hint {
  color: var(--fg-3);
  font-size: 14px;
  margin-bottom: 26px;
  max-width: 56ch;
}

/* progress */
.lead__bar { margin-bottom: 38px; }
.lead__track {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.lead__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .45s var(--ease);
}
.lead__count {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.js .lead__bar { display: block; }
.lead__bar { display: none; }

/* fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  /* the chip groups are <fieldset>s, which draw a border and notch the legend
     into it by default */
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.field + .field { margin-top: 24px; }
.field__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.field__opt {
  color: var(--fg-4);
  font-size: 10px;
  letter-spacing: .1em;
}
.field__err {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--c-trade);
}
.field__note { font-size: 13px; color: var(--fg-4); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.grid-2 .field + .field { margin-top: 0; }

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--fg-4); }
.input:hover,
.textarea:hover,
.select:hover { border-color: var(--line-3); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--c-trade); }

.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2399a2ae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5 8 10.5l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.select option { background: var(--surface-2); color: var(--fg); }

/* choice chips */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.choice { position: relative; display: inline-flex; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.choice > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--fg-2);
  cursor: pointer;
  user-select: none;
  transition: color .22s var(--ease), border-color .22s var(--ease),
              background .22s var(--ease);
}
.choice > span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--line-3);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: background .22s var(--ease);
}
.choice > span:hover { border-color: var(--line-3); color: var(--fg); }
.choice input:checked + span {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--fg);
}
.choice input:checked + span::before { background: var(--accent); }
.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* footer nav */
.lead__nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.js .lead__nav { display: flex; }
/* pushes Back left, leaving Next/Submit on the right; when Back is hidden the
   remaining buttons stay right-aligned */
.lead__nav .lead__back { margin-right: auto; }
.lead__submit { display: inline-flex; }
.js .lead__submit { display: none; }
.js .lead__nav .lead__submit { display: inline-flex; }

.lead__status {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--fg-2);
}
.lead__status--ok { border-color: var(--accent-line); background: var(--accent-soft); color: var(--fg); }
.lead__status--err { border-color: rgba(240, 180, 41, .4); color: var(--fg); }

/* sent state */
.lead__done {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(34px, 5vw, 52px) clamp(24px, 4vw, 44px);
}
.lead__done-i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 21px;
  font-weight: 700;
}
.lead__done h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.lead__done p { color: var(--fg-2); font-size: 15.5px; max-width: 46ch; margin-inline: auto; }
.lead__done p + p { margin-top: 26px; }
.lead__done a:not(.btn) { color: var(--accent); border-bottom: 1px solid var(--accent-line); }

/* honeypot — off-screen, never focusable by a human */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- reveal ------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .engage__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--pad) 24px;
    /* solid, not translucent: at .97 the hero's white type bled through
       just enough to fight the menu labels */
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  /* match the bar to the panel so the two read as one surface */
  .nav:has(.nav__links.is-open) { background: var(--bg); }
  .nav__links a { padding: 13px; font-size: 15px; }
  .nav__links a[aria-current]::after { display: none; }
  .nav__cta { margin: 10px 0 0; }
  .nav .btn { width: 100%; justify-content: center; padding: 13px; }

  .process, .despatches, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }

  .note { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .note__meta { flex-direction: row; gap: 14px; }
  .note__go { display: none; }
  .note:hover { padding-left: 4px; }

  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr; }
  .collab { flex-direction: column; align-items: flex-start; }
  .hero h1 { letter-spacing: -.035em; }

  /* wrapped meta lines would otherwise open with an orphaned separator */
  .hero__meta { gap: 8px 18px; }
  .hero__meta span + span::before { display: none; }
  .tablewrap table { min-width: 440px; }
}

/* --- hero sweep on small screens ---------------------------------------- */
/* There's no empty right-hand column on a phone, so the animation gets its
   own band under the hero copy instead. Everything is scaled down and moved
   into that band. The media query boundary matches the one in site.js. */
@media (max-width: 899px) {
  .hero {
    --bug-x: 58%;
    --bug-y: 84%;
    padding-bottom: 40px;
  }
  /* The stage has to be padding on .hero__in, not .hero: the loupe and bug are
     positioned in percentages of .hero__in, so padding the outer section would
     add space they can't reach. */
  .hero__in { padding-bottom: 150px; }

  .hero__loupe {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
  }
  .hero__loupe::before { inset: -28px; filter: blur(11px); }
  .hero__loupe svg { stroke-width: 1.8; }

  .hero__loupe-read {
    top: calc(100% + 10px);
    padding: 4px 9px;
    gap: 6px;
    font-size: 9.5px;
  }

  .hero__bug {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
  }
  .hero__bug svg { width: 28px; height: 28px; }

  .hero__bug::after { font-size: 9px; }

  /* Pinned to the bottom of the viewport. Anchored to the top it lands on the
     headline on a phone, and the hero is short enough that there's nowhere
     else for it to go. */
  .hero__toast {
    position: fixed;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: var(--pad);
    right: var(--pad);
    padding: 12px 15px 12px 13px;
    gap: 11px;
    transform: translateY(12px) scale(.97);
  }
  .hero__toast.is-on { transform: none; }
  .hero__toast__i { width: 24px; height: 24px; font-size: 12px; }
  .hero__toast__h { font-size: 10px; letter-spacing: .12em; }
  .hero__toast__p { font-size: 9.5px; letter-spacing: .04em; line-height: 1.5; }
}

/* --- motion / print ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  body::after, .nav, .ticker, .progress, .engage, .pager { display: none; }
  .article__body p, .article__body li { color: #000; }
}
