/* ==========================================================================
   DefenderHub — site styles
   One fixed theme: deep ink sections alternating with warm paper sections.
   No external fonts, no inline styles (strict CSP: style-src 'self').
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink (dark) */
  --ink-950: #070d18;
  --ink-900: #0a1220;
  --ink-850: #0e1828;
  --ink-800: #132136;
  --ink-700: #1c2d47;
  --ink-text: #eef2f7;
  --ink-muted: #a8b4c6;     /* 8.9:1 on ink-900 */
  --ink-line: rgba(214, 226, 245, 0.12);
  --ink-line-strong: rgba(214, 226, 245, 0.22);

  /* Paper (light) */
  --paper: #f6f4ef;
  --white: #ffffff;
  --paper-text: #0e1828;     /* 16:1 on paper */
  --paper-muted: #4a5568;    /* 6.9:1 on paper, 7.5:1 on white */
  --paper-line: #dcd8ce;
  --paper-line-strong: #c4bfb2;

  /* Accent: signal teal, used sparingly */
  --teal-300: #5fe0c6;       /* on ink: 11:1 */
  --teal-400: #3fd0b4;
  --teal-700: #0a6b5b;       /* on paper: 5.9:1, on white: 6.3:1 */

  /* Urgent: amber, reserved for incident messaging only */
  --amber-300: #f6c560;
  --amber-400: #f2b33d;
  --amber-ink: #1d1404;      /* on amber-400: 11:1 */

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, ui-serif, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 76rem;
  --radius: 6px;
  --header-h: 4.25rem;
  --section-pad: clamp(4rem, 9vw, 7.5rem);

  /* Context defaults (paper) — overridden by .on-ink / .on-white */
  --bg: var(--paper);
  --fg: var(--paper-text);
  --muted: var(--paper-muted);
  --line: var(--paper-line);
  --line-strong: var(--paper-line-strong);
  --accent: var(--teal-700);
  --focus: var(--teal-700);
  --card: var(--white);
  --btn-bg: var(--ink-900);
  --btn-fg: #ffffff;
  --btn-bg-hover: var(--ink-700);
}

.on-ink {
  --bg: var(--ink-900);
  --fg: var(--ink-text);
  --muted: var(--ink-muted);
  --line: var(--ink-line);
  --line-strong: var(--ink-line-strong);
  --accent: var(--teal-300);
  --focus: var(--teal-300);
  --card: var(--ink-850);
  --btn-bg: var(--teal-400);
  --btn-fg: var(--ink-950);
  --btn-bg-hover: var(--teal-300);
}

.on-paper { --bg: var(--paper); --card: var(--white); }
.on-white { --bg: var(--white); --card: var(--paper); }

/* ---------- Base ---------- */
[hidden] { display: none !important; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { display: block; background: var(--paper); }
main:focus { outline: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: break-word;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.125rem; letter-spacing: -0.005em; }
h4 { font-size: 1rem; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

svg { display: block; }

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

::selection { background: var(--teal-300); color: var(--ink-950); }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* ---------- Utilities / shared atoms ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink-900);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--teal-700); outline-offset: 2px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.mono-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.ticks { list-style: none; display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--fg);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9rem; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }

.btn--urgent { background: var(--amber-400); color: var(--amber-ink); }
.btn--urgent:hover { background: var(--amber-300); }

/* ---------- Incident bar ---------- */
.incident-bar {
  background: var(--amber-400);
  color: var(--amber-ink);
  font-size: 0.9375rem;
  line-height: 1.4;
  --focus: var(--ink-950);
}
.incident-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding-block: 0.45rem;
  text-align: center;
}
.incident-bar p { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.5rem; }
.incident-bar a { font-weight: 600; text-decoration: underline; }
.incident-bar__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #8a1c0f;
  box-shadow: 0 0 0 3px rgba(138, 28, 15, 0.18);
}
.incident-bar__short { display: none; }

@media (max-width: 40rem) {
  .incident-bar__long { display: none; }
  .incident-bar__short { display: inline; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 32, 0.94);
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-text);
  --fg: var(--ink-text);
  --muted: var(--ink-muted);
  --line-strong: var(--ink-line-strong);
  --accent: var(--teal-300);
  --focus: var(--teal-300);
  --btn-bg: var(--teal-400);
  --btn-fg: var(--ink-950);
  --btn-bg-hover: var(--teal-300);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(10, 18, 32, 0.82);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-text);
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; }
.brand__shield {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}
.brand__hub {
  fill: none;
  stroke: var(--teal-300);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.brand__node { fill: var(--teal-300); }
.brand__name {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__name span { font-weight: 400; color: var(--ink-muted); }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink-text); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--teal-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a.is-active::after { transform: scaleX(1); }

.site-header__cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0.5rem 0.8rem;
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--radius);
  color: var(--ink-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }

.site-header.is-open .nav-toggle__icon { background: transparent; }
.site-header.is-open .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Compact header: menu toggle replaces inline nav */
@media (max-width: 62.5rem) {
  /* DOM order is brand, toggle, nav, CTA so Tab moves from the toggle into the open menu.
     Visual order stays brand ... CTA, toggle. */
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .site-header__cta { order: 2; margin-left: auto; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--ink-line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--maxw));
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
  }
  .site-nav__list li + li { border-top: 1px solid var(--ink-line); }
  .site-nav a {
    display: block;
    padding-block: 0.95rem;
    font-size: 1.0625rem;
    color: var(--ink-text);
  }
  .site-nav a::after { display: none; }
  .site-nav a.is-active { color: var(--teal-300); }
}

@media (max-width: 35rem) {
  .site-header__cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-pad);
  background: var(--bg);
  color: var(--fg);
}
.on-ink { background: var(--bg); color: var(--fg); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split {
  display: grid;
  gap: 1.25rem 3rem;
  max-width: none;
  align-items: end;
}
@media (min-width: 56rem) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.section-head__intro {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(4.5rem, 10vw, 8.5rem);
  isolation: isolate;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 46rem;
  height: 46rem;
  right: -14rem;
  top: -18rem;
  background: radial-gradient(circle, rgba(63, 208, 180, 0.13), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); }
}

.hero h1 { max-width: 16ch; }
.hero__lede {
  max-width: 38rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero__note {
  max-width: 34rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Control map figure */
.control-map {
  margin: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(19, 33, 54, 0.92), rgba(14, 24, 40, 0.92));
  border: 1px solid var(--ink-line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.control-map__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink-line);
}
.control-map__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink-text);
}
.control-map__list {
  position: relative;
  list-style: none;
  padding-block: 0.75rem;
}
.control-map__list::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 1px;
  background: linear-gradient(var(--teal-400), rgba(63, 208, 180, 0.15));
}
.control-map__list li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.7rem 0 0.7rem 1.6rem;
}
.control-map__list li + li { border-top: 1px dashed var(--ink-line); }
.control-map__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1.5px solid var(--teal-300);
}
.control-map__fw { color: var(--ink-text); font-weight: 600; font-size: 0.95rem; }
.control-map__scope {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.control-map__caption {
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Who we help ---------- */
.situations {
  list-style: none;
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
}
.situation {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.situation h3 { font-size: 1.1875rem; line-height: 1.3; }
.situation p { margin-top: 0.75rem; color: var(--muted); font-size: 0.975rem; }
.situations__fit {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: var(--white);
  color: var(--fg);
  font-size: 1rem;
  max-width: 50rem;
}

/* ---------- Services ---------- */
.services {
  list-style: none;
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Column counts that divide the eight cards evenly, so no empty divider-colored cell shows. */
@media (min-width: 40rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 72rem) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.service {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--bg);
  transition: background-color 0.2s ease;
}
.service:hover { background: var(--paper); }
.service .index { margin-bottom: 0.4rem; }
.service h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.service > p { color: var(--muted); font-size: 0.975rem; }
.service .ticks {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- Frameworks ---------- */
.frameworks {
  list-style: none;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  border-top: 1px solid var(--line);
}
.framework {
  padding: 1.6rem 1.75rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.framework h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  font-size: 1.125rem;
}
.framework__ver {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.framework p { margin-top: 0.55rem; color: var(--muted); font-size: 0.95rem; }

.callout {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--ink-800);
  border: 1px solid var(--ink-line-strong);
  border-left: 3px solid var(--teal-400);
  border-radius: var(--radius);
}
.callout h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}
.callout p:not(.mono-label) { max-width: 62rem; color: var(--muted); }

/* ---------- AI governance ---------- */
.ai {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 60rem) {
  .ai { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .ai__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.ai__intro h2 { max-width: 15ch; }
.ai__intro > p:not(.eyebrow) { margin-top: 1.5rem; color: var(--muted); font-size: 1.0625rem; max-width: 34rem; }
.ai__intro .ai__carry {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: var(--white);
  color: var(--fg);
}
.ai__intro .btn { margin-top: 2rem; }
.ai__steps-title { margin-bottom: 0.5rem; }

.numbered {
  list-style: none;
  counter-reset: step;
}
.numbered li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-strong);
}
.numbered li:last-child { border-bottom: 1px solid var(--line-strong); }
.numbered li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
}
.numbered h4 { font-size: 1.125rem; }
.numbered p { margin-top: 0.4rem; color: var(--muted); font-size: 0.975rem; }

/* ---------- Approach ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--fg);
}
.step__num {
  position: absolute;
  top: -0.85rem;
  left: 0;
  padding-right: 0.6rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  line-height: 1.6;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
}
.step > p:not(.step__get) { color: var(--muted); font-size: 0.975rem; }
.step__get {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.step__get .mono-label { display: block; margin-bottom: 0.3rem; }

/* ---------- Engagements ---------- */
.engagements {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.engagement {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink-900);
  border-radius: var(--radius);
}
.engagement--urgent { border-top-color: var(--amber-400); }
.engagement h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}
.engagement > p { color: var(--muted); font-size: 0.975rem; }
.engagement .engagement__fit {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
}
.engagements__note {
  margin-top: 2.25rem;
  color: var(--muted);
}
.engagements__note a { color: var(--fg); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 60rem) {
  .faq { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq__head > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); }
.faq__head a { color: var(--fg); font-weight: 600; }

.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list summary {
  position: relative;
  display: block;
  padding: 1.35rem 2.75rem 1.35rem 0;
  color: var(--fg);
  font-size: 1.0875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--fg), var(--fg)) center / 0.6rem 1.5px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 1.5px 0.6rem no-repeat;
  transition: transform 0.2s ease;
}
.faq__list details[open] > summary::after {
  background: linear-gradient(var(--fg), var(--fg)) center / 0.6rem 1.5px no-repeat;
  border-color: var(--accent);
}
.faq__list summary:hover { color: var(--accent); }
.faq__answer { padding: 0 2.75rem 1.5rem 0; }
.faq__answer p { color: var(--muted); max-width: 44rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 15% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 60% at 15% 0%, #000 10%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.contact .container { position: relative; }
.contact__top {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.contact__lede { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; max-width: 38rem; }
.contact__email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}
.email-link {
  display: inline-block;
  color: var(--teal-300);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 0.9rem + 3vw, 3rem);
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-color: rgba(95, 224, 198, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.15s ease;
}
.email-link:hover { text-decoration-color: var(--teal-300); text-decoration-thickness: 2px; }
.copy-status { color: var(--teal-300); font-size: 0.9rem; min-height: 1.4em; }
.visually-hidden-copy {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact__grid {
  display: grid;
  gap: 2.5rem 4rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 56rem) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.contact__include h3,
.incident-note h3 { font-size: 1.125rem; margin-bottom: 1.1rem; }
.contact__include .ticks li { color: var(--muted); font-size: 1rem; }

.incident-note {
  padding: 1.5rem;
  background: rgba(242, 179, 61, 0.07);
  border: 1px solid rgba(242, 179, 61, 0.35);
  border-left: 3px solid var(--amber-400);
  border-radius: var(--radius);
  --focus: var(--amber-300);
}
.incident-note h3 { margin-bottom: 0.6rem; color: var(--amber-300); }
.incident-note p { color: var(--ink-text); font-size: 0.975rem; }
.incident-note .btn { margin-top: 1.25rem; }
.contact__privacy { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  --bg: var(--ink-950);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--ink-950);
  border-top: 1px solid var(--ink-line);
  font-size: 0.9375rem;
}
.site-footer__top {
  display: grid;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
.site-footer__brand p { margin-top: 0.75rem; color: var(--muted); }
.site-footer__brand a:not(.brand) { color: var(--fg); }
.site-footer__brand .brand__mark { width: 28px; height: 28px; }
.site-footer__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.site-footer__nav a { color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--fg); text-decoration: underline; }
.site-footer__disclaimer {
  max-width: 62rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.site-footer__legal { margin-top: 1rem; color: var(--muted); font-size: 0.8125rem; }

/* ---------- 404 page ---------- */
.not-found {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 12vw, 8rem);
  isolation: isolate;
}
.not-found .hero__grid { opacity: 0.45; }
.not-found h1 { max-width: 18ch; }
.not-found p:not(.eyebrow) { margin-top: 1.25rem; max-width: 36rem; color: var(--muted); font-size: 1.125rem; }
.not-found .hero__actions { margin-top: 2rem; }
.site-header--simple .site-header__inner { justify-content: space-between; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Forced colors (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .eyebrow::before,
  .ticks li::before { background: CanvasText; }
  .faq__list summary::after { forced-color-adjust: none; }
}

/* ---------- Print ---------- */
@media print {
  .incident-bar, .site-header, .hero__grid, .copy-btn { display: none !important; }
  body, main, .section, .on-ink, .site-footer { background: #fff !important; color: #000 !important; }
  .on-ink { --fg: #000; --muted: #333; --line: #ccc; --accent: #000; }
}
