/* =====================================================================
   Picketlabs — site stylesheet
   Edit tokens in :root to adjust the theme. All text colors are chosen to
   meet WCAG AA contrast against the backgrounds they are used on.
   ===================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/public-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #08121e;
  --bg-raised: #0d1b2c;
  --bg-deep: #060e18;
  --surface: #0f1f31;
  --surface-2: #14283e;
  --field: #0a1625;
  --line: #1c3047;
  --line-strong: #29435f;

  --text: #e9eef4;
  --text-muted: #a8b6c6;
  --text-dim: #8395aa;

  --amber: #f2b134;
  --amber-strong: #f7c766;
  --amber-ink: #1a1204;
  --amber-soft: rgba(242, 177, 52, 0.12);
  --amber-line: rgba(242, 177, 52, 0.4);
  --blue: #8bb8f5;
  --grid: rgba(139, 184, 245, 0.055);

  --critical: #ff8a7a;
  --high: #f7a564;
  --medium: #f2cf5b;
  --low: #8bc3f5;
  --info: #a7b3c2;
  --ok: #5fd39b;
  --error: #ff8a7a;

  --font-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 112px);
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-strong); }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
mark { color: inherit; background: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--amber); color: var(--amber-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--amber-ink); }

/* ---------- Shared labels ---------- */
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.eyebrow-index { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-index::after { content: ''; width: 32px; height: 1px; background: var(--line-strong); }
.code-tag { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; line-height: 1; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }
.eyebrow .code-tag { color: var(--amber); border-color: var(--amber-line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-icon { transition: transform 0.15s ease; }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-strong); color: var(--amber-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--text-dim); color: var(--text); }
.btn-text { padding-inline: 4px; color: var(--amber); }
.btn-text:hover { color: var(--amber-strong); text-decoration: underline; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.875rem; }
.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 18, 30, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(8, 18, 30, 0.82); backdrop-filter: saturate(140%) blur(10px); }
}
/* backdrop-filter makes the header the containing block for the fixed mobile panel; drop it while open. */
body.nav-open .site-header { backdrop-filter: none; background: var(--bg); }
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.wordmark { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.primary-nav { display: none; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { display: flex; align-items: center; }
.nav-link { display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--text-muted); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
/* "Services" trigger and menu (vertical tabs + panel). Anchored to the header container. */
.nav-trigger { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; }
.nav-trigger-icon { color: var(--text-dim); transition: transform 0.2s ease; }
.nav-trigger:hover .nav-trigger-icon, .nav-trigger[aria-expanded='true'] .nav-trigger-icon { color: var(--text); }
.nav-trigger[aria-expanded='true'] { color: var(--text); }
.nav-trigger[aria-expanded='true'] .nav-trigger-icon { transform: rotate(180deg); }
.nav-trigger.is-current { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav-menu.mega {
  position: absolute; top: calc(100% - 6px); right: var(--gutter); z-index: 60;
  width: min(720px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: 228px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.nav-item.is-open .nav-menu.mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html:not(.js) .nav-item.has-menu:is(:hover, :focus-within) .nav-menu.mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-tabs { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #0d1b2c; border-right: 1px solid var(--line); }
.mega-tab { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-muted); text-align: left; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.mega-tab:hover { color: var(--text); }
.mega-tab.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--amber); }
.mega-tab-text { display: grid; gap: 2px; }
.mega-tab-name { font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.mega-tab-count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-dim); }
.mega-tab-arrow { transform: rotate(-90deg); color: var(--text-dim); transition: color 0.15s ease, transform 0.15s ease; }
.mega-tab.is-active .mega-tab-arrow { color: var(--amber); transform: rotate(-90deg) translateY(2px); }
.mega-panel { display: none; padding: 16px 18px 14px; }
.mega-panel.is-active { display: block; animation: mega-in 0.18s ease; }
html:not(.js) .mega-panel { display: block; }
.mega-panel-desc { margin: 0 8px 10px; font-size: 0.84rem; line-height: 1.5; color: var(--text-dim); }
.mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; list-style: none; margin: 0; padding: 0; }
@keyframes mega-in { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.nav-menu-link { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--radius); color: var(--text-muted); font-size: 0.9rem; line-height: 1.3; text-decoration: none; }
.nav-menu-link .icon { color: var(--text-dim); }
.nav-menu-link:hover { background: var(--surface-2); color: var(--text); }
.nav-menu-link:hover .icon { color: var(--amber); }
.nav-menu-all { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 0; font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: none; }
.menu-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.menu-button-close { display: none; }
.menu-button-open, .menu-button[aria-expanded='true'] .menu-button-close { display: inline-flex; }
.menu-button[aria-expanded='true'] .menu-button-open { display: none; }

.mobile-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 0 40px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list > li { border-bottom: 1px solid var(--line); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; color: var(--text); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.mobile-nav-link[aria-current] { color: var(--amber); }
summary.mobile-nav-link { list-style: none; }
summary.mobile-nav-link::-webkit-details-marker { display: none; }
summary.mobile-nav-link::after { content: ''; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s ease; }
.mobile-nav-group[open] > summary.mobile-nav-link::after { transform: rotate(225deg) translateY(-3px); }
.mobile-nav-pillars { padding: 0 0 12px; }
.mobile-nav-pillar-head { display: flex; align-items: center; gap: 10px; padding: 12px 0 12px 14px; border-left: 1px solid var(--line-strong); color: var(--text); font-weight: 600; list-style: none; cursor: pointer; }
.mobile-nav-pillar-head::-webkit-details-marker { display: none; }
.mobile-nav-pillar-head::after { content: ''; margin-left: auto; margin-right: 6px; width: 8px; height: 8px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: rotate(-45deg); transition: transform 0.15s ease; }
.mobile-nav-pillar[open] > .mobile-nav-pillar-head { border-left-color: var(--amber); }
.mobile-nav-pillar[open] > .mobile-nav-pillar-head::after { transform: rotate(45deg); }
.mobile-nav-count { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--text-dim); padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.mobile-nav-pillar .mobile-nav-sub { margin-left: 14px; padding-bottom: 8px; }
.mobile-nav-sub { list-style: none; margin: 0; padding: 0 0 14px; }
.mobile-nav-sub a { display: block; padding: 10px 0 10px 14px; border-left: 1px solid var(--line-strong); color: var(--text-muted); text-decoration: none; }
.mobile-nav-sub a:hover, .mobile-nav-sub a[aria-current] { color: var(--text); border-left-color: var(--amber); }
.mobile-nav-cta { width: 100%; margin-top: 28px; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .primary-nav { display: block; }
  .header-actions { margin-left: 8px; }
  .menu-button, .mobile-nav { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section-raised + .section-raised { border-top: 0; }
.section-heading { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading.is-center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.6rem); }
.section-intro { margin-top: 16px; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem); color: var(--text-muted); max-width: 64ch; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row .section-heading { margin-bottom: 0; }
.lead-statement { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--text); padding-left: 20px; border-left: 2px solid var(--amber); max-width: 60ch; }
.footnote { margin-top: 28px; font-size: 0.9rem; color: var(--text-dim); max-width: 72ch; }
.sub-heading { margin: 36px 0 14px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.prose p { margin-bottom: 1em; font-size: 1.0625rem; color: var(--text-muted); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* Split "document" sections used on detail pages */
.split { display: grid; gap: 28px; }
.split-head .section-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.split-head .section-intro { font-size: 1rem; }
.split-body { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 5vw, 80px); }
  .split-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
}
/* Hero grid motion (enabled by assets/js/site.js under html.motion):
   spotlight = an amber copy of the grid revealed around the pointer (desktop only);
   scan = a thin amber line with a soft trail that sweeps down the hero every few seconds. */
.hero-spotlight, .hero-scan { position: absolute; pointer-events: none; }
.hero-spotlight {
  inset: 0; opacity: 0; transition: opacity 0.6s ease;
  background-image:
    radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 177, 52, 0.08), transparent 70%),
    linear-gradient(rgba(242, 177, 52, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 177, 52, 0.28) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px; background-position: 0 0, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 75%);
  mask-image: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 75%);
}
.hero.is-lit .hero-spotlight { opacity: 1; }
.hero-scan {
  left: 0; right: 0; top: 0; height: 160px; opacity: 0; transform: translateY(-160px);
  background: linear-gradient(180deg, transparent, rgba(242, 177, 52, 0.05) 85%, rgba(242, 177, 52, 0.09));
  border-bottom: 1px solid rgba(242, 177, 52, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.motion .hero-scan { animation: hero-scan 9s cubic-bezier(0.45, 0, 0.25, 1) 1.4s infinite; }
@keyframes hero-scan {
  0% { opacity: 0; transform: translateY(-160px); }
  6% { opacity: 1; }
  52% { opacity: 1; transform: translateY(var(--scan-end, 640px)); }
  60%, 100% { opacity: 0; transform: translateY(var(--scan-end, 640px)); }
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.hero-main, .hero-aside { min-width: 0; }
.hero-home { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero-page { padding-block: clamp(36px, 6vw, 72px); }
.hero-error { padding-block: clamp(64px, 12vw, 140px); min-height: 60vh; }
.hero-title { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; }
.hero-home .hero-title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.25rem); line-height: 1.03; max-width: 15ch; }
.hero-lede { margin-top: 20px; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.6; color: var(--text-muted); max-width: 60ch; }
.hero-actions { margin-top: 32px; }
.hero-note { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); max-width: 620px; }
.framework-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.framework-list { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9rem; color: var(--text-muted); }
@media (min-width: 1024px) {
  .hero.has-aside .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: start; }
  .hero-home.has-aside .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 22px; font-size: 0.875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 4px; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-muted); }

/* ---------- Evidence panel (homepage hero) ---------- */
.evidence { margin: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85); overflow: hidden; animation: rise 0.6s ease both 0.1s; }
.evidence-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #0d1b2c; border-bottom: 1px solid var(--line); }
.evidence-id { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.evidence-body { padding: 20px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.evidence-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.evidence-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.evidence-meta dt, .evidence-notes dt, .evidence-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.evidence-meta dd { margin: 4px 0 0; font-size: 0.84rem; font-weight: 500; overflow-wrap: anywhere; }
.evidence-label { margin-bottom: 8px; }
.evidence-code { margin: 0; padding: 14px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.75; color: #cfdff2; white-space: pre; overflow-x: auto; max-width: 100%; }
.tok-method { color: var(--blue); }
.tok-status { color: var(--ok); }
.tok-leak { background: var(--amber-soft); color: var(--amber-strong); padding: 1px 3px; border-radius: 2px; outline: 1px solid var(--amber-line); }
.evidence-notes { display: grid; gap: 12px; margin: 0; }
.evidence-notes dd { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); }
.evidence-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: #0d1b2c; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--text-muted); }
.status-pill { padding: 3px 8px; border-radius: 4px; color: var(--ok); background: rgba(95, 211, 155, 0.1); border: 1px solid rgba(95, 211, 155, 0.35); white-space: nowrap; }
@media (max-width: 479px) { .evidence-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .evidence-meta, .evidence-block, .evidence-notes { display: none; } .evidence-body { padding-block: 16px; } }

/* Severity labels */
.sev { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.sev-critical { color: var(--critical); background: rgba(255, 138, 122, 0.1); }
.sev-high { color: var(--high); background: rgba(247, 165, 100, 0.1); }
.sev-medium { color: var(--medium); background: rgba(242, 207, 91, 0.08); }
.sev-low { color: var(--low); background: rgba(139, 195, 245, 0.08); }
.sev-info { color: var(--info); background: rgba(167, 179, 194, 0.08); }

/* ---------- Service pillars (home) ---------- */
.pillar-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
.pillar { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pillar-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.pillar-title { margin: 16px 0 10px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); }
.pillar-desc { color: var(--text-muted); max-width: 52ch; }
.pillar-list { margin: 26px 0 0; border-top: 1px solid var(--line); }
.pillar-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 13px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color 0.15s ease; }
.pillar-link:hover { background: var(--surface-2); color: var(--text); }
.pillar-link-name { font-weight: 500; }
.pillar-link-arrow { color: var(--text-dim); transition: transform 0.15s ease, color 0.15s ease; }
.pillar-link:hover .pillar-link-arrow { color: var(--amber); transform: translateX(3px); }
.pillar-foot { margin-top: auto; padding-top: 28px; }

/* ---------- Audience ---------- */
.split-intro { display: grid; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.split-intro .section-heading { margin-bottom: 0; }
@media (min-width: 960px) { .split-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 56px; } }
.audience-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .audience-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 18px; } }
@media (min-width: 960px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card { padding: 20px 0 4px; border-top: 1px solid var(--line-strong); }
.audience-icon, .reason-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); }
.audience-title { margin: 16px 0 6px; font-size: 1.05rem; }
.threat-grid { display: grid; gap: 18px 32px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .threat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .threat-grid { grid-template-columns: repeat(4, 1fr); } }
.threat { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.threat-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 12px; font-size: 0.9rem; }
.threat-links a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; text-decoration: none; }
.threat-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.audience-text { font-size: 0.92rem; line-height: 1.55; color: var(--text-muted); }

/* ---------- Reasons ---------- */
.reason-grid { display: grid; column-gap: 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .reason-grid { grid-template-columns: 1fr 1fr; } }
.reason { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.reason-title { font-size: 1.1rem; margin-bottom: 6px; }
.reason-text { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--amber); }
.step-num { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--amber); }
.step-title { margin: 10px 0 8px; font-size: 1.15rem; }
.step-text { font-size: 0.95rem; color: var(--text-muted); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 36px; } }
@media (min-width: 1024px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .steps-5 { grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
}

/* ---------- Engagement models (inside How we work) ---------- */
.models { margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line-strong); }
.models-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.models-title { font-size: 1.25rem; }
.models-note { font-size: 0.92rem; color: var(--text-muted); }
.model-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .model-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .model-grid { grid-template-columns: repeat(4, 1fr); } }
.model-card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.model-title { margin-bottom: 6px; font-size: 1.05rem; }
.model-summary { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--section-y); }
.section-base + .cta-band { padding-top: 0; }
.cta-panel {
  position: relative; overflow: hidden; display: grid; gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, #11243a 0%, #0c1a2a 60%);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-copy, .cta-actions { position: relative; }
.cta-title { font-size: clamp(1.7rem, 1.15rem + 2.1vw, 2.5rem); max-width: 22ch; }
.cta-text { margin-top: 12px; color: var(--text-muted); font-size: 1.05rem; max-width: 52ch; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; } }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.service-grid > li { display: flex; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .service-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.service-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.15s ease, background-color 0.15s ease; }
.service-card:hover { border-color: var(--amber-line); background: var(--surface-2); }
.service-card:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--amber); }
.service-card-title { margin: 20px 0 10px; font-size: 1.2rem; }
.service-card-title a { color: var(--text); text-decoration: none; }
.service-card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-card-title a:focus-visible { outline: none; }
.service-card-text { font-size: 0.95rem; color: var(--text-muted); }
.service-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; font-size: 0.9rem; font-weight: 600; color: var(--amber); }
.service-card-cta .icon { transition: transform 0.15s ease; }
.service-card:hover .service-card-cta .icon { transform: translateX(3px); }

/* ---------- Aside cards, lists ---------- */
.aside-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.aside-card.is-notice { border-color: var(--amber-line); background: linear-gradient(0deg, var(--amber-soft), var(--amber-soft)), var(--surface); }
.aside-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.aside-card.is-notice .aside-title { color: var(--amber); }
.aside-text { font-size: 0.93rem; color: var(--text-muted); }
.aside-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.check-list { display: grid; list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 7px 0; color: var(--text-muted); }
.check-list .icon { color: var(--amber); margin-top: 3px; }
@media (min-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* About page */
.about-links { margin-top: 8px; color: var(--text-muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-paths { margin: 0 0 20px; font-size: 0.95rem; color: var(--text-muted); max-width: 60ch; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 7px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; font-size: 0.9rem; color: var(--text); }
.link-list li a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.95rem; text-decoration: none; }
.link-list li a:hover { color: var(--amber); }

/* Assessment areas, deliverables */
.area-grid { display: grid; gap: 24px 32px; }
@media (min-width: 640px) { .area-grid { grid-template-columns: 1fr 1fr; } }
.area { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.area-title { margin: 0 0 6px; font-size: 1.08rem; }
.area-text { font-size: 0.95rem; color: var(--text-muted); }
/* Trust page commitments */
.trust-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.trust-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 1rem; }
.trust-list li:last-child { border-bottom: 1px solid var(--line); }
.trust-list .icon { color: var(--amber); margin-top: 2px; }
.trust-list + .sample-report { margin-top: 24px; }
.deliverable-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .deliverable-list { grid-template-columns: 1fr 1fr; } }
.deliverable { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.deliverable > .icon { color: var(--amber); margin-top: 2px; }
.deliverable-title { font-size: 1.02rem; }
.deliverable-text { margin-top: 4px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--amber-strong); }
.faq-icon { margin-top: 2px; color: var(--amber); transition: transform 0.2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 40px 22px 0; }
.faq-answer p { color: var(--text-muted); max-width: 70ch; }

/* ---------- Methodology ---------- */
.toc { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; gap: 14px; padding: 8px 0; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--text); }
.toc-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber); padding-top: 2px; }
.severity-list { border-top: 1px solid var(--line); }
.severity-row { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.severity-row .sev { justify-self: start; min-width: 118px; }
.severity-row p { color: var(--text-muted); font-size: 0.97rem; }
@media (min-width: 640px) { .severity-row { grid-template-columns: 140px minmax(0, 1fr); align-items: baseline; gap: 20px; } }
.reference-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .reference-grid { grid-template-columns: 1fr 1fr; } }
.reference { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reference-name { font-weight: 600; }
.reference-use { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* ---------- About ---------- */
.expertise-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }
.expertise { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.expertise-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.expertise-text { margin: 12px 0 18px; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 32px; }
.contact-main, .contact-aside { min-width: 0; }
.contact-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.contact-form, .form-success { padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-group { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.form-group + .form-group { padding-top: 24px; border-top: 1px solid var(--line); }
.form-legend { padding: 0; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.form-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { margin-bottom: 20px; min-width: 0; }
.field-label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; font-size: 0.92rem; font-weight: 600; }
.field-req { color: var(--amber); }
.field-optional { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.field-hint { margin: -2px 0 10px; font-size: 0.85rem; color: var(--text-dim); }
.input {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); font: 400 1rem/1.5 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-dim); opacity: 1; }
.input:hover { border-color: #3a5878; }
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.22); }
.input[aria-invalid='true'] { border-color: var(--error); }
.input[aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgba(255, 138, 122, 0.22); }
.textarea { min-height: 160px; resize: vertical; }
.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select option { background: var(--surface); color: var(--text); }
.select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.field-error { display: flex; gap: 6px; margin-top: 8px; font-size: 0.86rem; color: var(--error); }
.field-error[hidden] { display: none; }
.form-alert { margin-bottom: 24px; padding: 14px 16px; border: 1px solid rgba(255, 138, 122, 0.5); border-radius: var(--radius); background: rgba(255, 138, 122, 0.08); color: #ffd3cc; font-size: 0.95rem; }
.form-alert:focus { outline: none; }
.form-alert[hidden] { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-challenge { margin: 4px 0 16px; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 8px; }
.form-privacy { font-size: 0.85rem; color: var(--text-dim); max-width: 46ch; }
.btn-submit { min-width: 170px; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-submit[aria-busy='true'] { cursor: progress; opacity: 0.85; }
.btn-submit[aria-busy='true'] .spinner { display: inline-block; }
.form-success { border-color: rgba(95, 211, 155, 0.4); }
.form-success:focus { outline: none; }
.form-success[hidden] { display: none; }
.form-success-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(95, 211, 155, 0.12); color: var(--ok); }
.form-success-title { margin: 18px 0 10px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.form-success p { color: var(--text-muted); max-width: 60ch; }
.form-noscript { margin-top: 16px; color: var(--text-muted); }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.next-steps li { position: relative; padding-left: 38px; counter-increment: step; }
.next-steps li + li { margin-top: 16px; }
.next-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber); }
.next-title { font-family: var(--font-body); font-size: 0.97rem; font-weight: 600; letter-spacing: 0; }
.next-steps p { margin-top: 2px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Legal ---------- */
/* Legal text aligns with the page heading (full container), with a readable line length. */
.legal-layout .legal-prose { max-width: 760px; }
.legal-updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim) !important; }
.legal-prose h2 { margin: 2.2em 0 0.7em; font-size: 1.35rem; }
.legal-prose ul { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-muted); }
.legal-prose li { margin: 0.35em 0; }

/* ---------- 404 ---------- */
.error-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.error-links a { color: var(--text-muted); }
.error-links a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(48px, 7vw, 72px) 32px; background: var(--bg-deep); border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: 48px; } }
.brand-footer .wordmark { font-size: 1.35rem; }
.footer-brand p { margin-top: 16px; color: var(--text-muted); max-width: 38ch; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-label { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.footer-heading { margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.footer-heading a { color: inherit; text-decoration: none; }
.footer-heading a:hover { color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-block; padding: 5px 0; color: var(--text-muted); text-decoration: none; }
.footer-col li a:hover { color: var(--text); text-decoration: underline; }
.footer-col nav + nav { margin-top: 28px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Listing extras ---------- */
@media (min-width: 1024px) { .service-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.service-grid.cols-4 .service-card { padding: 22px; }
/* Cards in the same row share row tracks (subgrid), so titles and descriptions line up per row. */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .service-grid.cols-4 > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .service-grid.cols-4 .service-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  }
}
.service-card.is-help { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.service-card.is-help:hover { background: var(--surface); border-color: var(--amber-line); }

/* ---------- Service page: at a glance + related services ---------- */
.glance-list { display: grid; gap: 14px; margin: 0; }
.glance-list > div + div { padding-top: 14px; border-top: 1px solid var(--line); }
.glance-list dt { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.glance-list dd { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); }
.related-band { padding-block: clamp(40px, 5vw, 56px) 0; }
.related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.related-title { font-size: 1.2rem; }
.related-all { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.related-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.related-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted); font-size: 0.92rem; text-decoration: none; }
.related-chips a .icon { color: var(--text-dim); }
.related-chips a:hover { border-color: var(--amber-line); color: var(--text); }
.related-chips a:hover .icon { color: var(--amber); }
.related-band + .cta-band { padding-top: clamp(40px, 5vw, 56px); }

/* Small screens: keep long mono eyebrows on one line where possible */
@media (max-width: 479px) { .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.05em; } }

/* ---------- Sample report download ---------- */
.sample-report { margin-top: 20px; }
.sample-btn { gap: 8px; }
.sample-btn-icon { color: var(--amber); transition: transform 0.2s ease; }
.sample-btn-meta { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); }
.sample-btn:hover { border-color: var(--amber-line); }
.sample-btn:hover .sample-btn-icon { transform: translateY(2px); }
@media (pointer: coarse) { .sample-btn { min-height: 44px; } }
.hero-sample { margin-top: 14px; display: flex; justify-content: flex-end; }
.sample-card .aside-text { margin-bottom: 8px; }

/* ---------- Motion (only active when JS adds html.motion; see assets/js/site.js) ---------- */
.site-header { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line-strong); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.8); }

.motion .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion .reveal.is-visible { opacity: 1; transform: none; }

/* Process steps: the amber marker draws in after the step appears. */
.motion .step.reveal::before { width: 0; }
.motion .step.reveal.is-visible::before { width: 36px; transition: width 0.6s ease calc(var(--reveal-delay, 0ms) + 250ms); }

/* Card hover lift */
/* Card hover: only clickable cards lift, so information blocks do not look like links. */
.service-card { transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--amber-line); }
  .service-card:hover .service-card-icon { border-color: var(--amber-line); background: var(--amber-soft); }
}
.service-card-icon { transition: border-color 0.2s ease, background-color 0.2s ease; }

/* Primary button: a light sweep on hover. */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); }
@media (hover: hover) { .btn-primary:hover::after { transform: translateX(120%); transition: transform 0.7s ease; } }

/* Reading progress under the header (added by assets/js/site.js on long pages). */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Home headline: words rise in one after another. */
.motion .hero-word { display: inline-block; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms + 80ms); }

/* "Why now" icons: a single ring pulse as each point appears. */
.threat .audience-icon { position: relative; }
.motion .threat.seen .audience-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(242, 177, 52, 0.5); animation: ping 1.2s ease-out calc(var(--reveal-delay, 0ms) + 300ms) 1 both; }
@keyframes ping { to { box-shadow: 0 0 0 14px rgba(242, 177, 52, 0); } }

/* Closing CTA: a slow light sweep across the grid. */
.cta-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(139, 184, 245, 0.07) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 9s ease-in-out infinite; }
.cta-panel > * { position: relative; z-index: 1; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }

/* Hero finding: builds up once, highlights the leaked field, then the retest resolves. */
.motion .evidence-body > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .evidence-body > :nth-child(1) { animation-delay: 0.35s; }
.motion .evidence-body > :nth-child(2) { animation-delay: 0.55s; }
.motion .evidence-body > :nth-child(3) { animation-delay: 0.8s; }
.motion .evidence-body > :nth-child(4) { animation-delay: 1.15s; }
.motion .tok-leak { animation: leak-pulse 0.9s ease 1.5s 2; }
.status-pill { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.status-pill.is-pending { color: var(--medium); background: rgba(242, 207, 91, 0.08); border-color: rgba(242, 207, 91, 0.35); }
.status-pill.is-resolved { animation: resolve-pop 0.5s ease; }
@keyframes leak-pulse { 50% { box-shadow: 0 0 0 4px rgba(242, 177, 52, 0.25); } }
@keyframes resolve-pop { 40% { transform: scale(1.06); } }

/* Smooth FAQ open/close in browsers that support animating to height: auto. */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@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; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-grid-bg, .hero-spotlight, .hero-scan, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
