/* ============================================================
   MulitaMiner site styles
   Brand: orange accent + charcoal + warm grey, armadillo motif
   ============================================================ */

:root {
  --accent: #e0561d;
  --accent-soft: #f4815019;
  --accent-ink: #b5430f;
  --charcoal: #2d2d2d;
  --charcoal-2: #232323;
  --grey: #9e9389;
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3efe9;
  --ink: #2a2724;
  --muted: #6f675f;
  --line: #e7e0d7;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(45, 45, 45, .04), 0 12px 32px rgba(45, 45, 45, .06);
  --shadow-sm: 0 1px 2px rgba(45, 45, 45, .05), 0 6px 16px rgba(45, 45, 45, .05);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bd: transparent;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .72em 1.3em; border-radius: 999px; border: 1.5px solid var(--bd);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .58em 1.05em; font-size: .9rem; }
.btn-primary { background: var(--accent); color: #fff; --bd: var(--accent); box-shadow: 0 8px 20px rgba(224, 86, 29, .25); }
.btn-primary:hover { background: var(--accent-ink); --bd: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--ink); --bd: var(--line); }
.btn-outline:hover { --bd: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); --bd: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { --bd: var(--accent); color: var(--accent-ink); }
.btn-link { background: transparent; color: var(--accent-ink); padding-left: .4em; padding-right: .4em; }
.btn-link::after { content: " \2192"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }
.brand-logo--dark { display: none; }

.main-nav { display: flex; gap: 20px; margin-left: 4px; }
.main-nav a {
  color: var(--muted); font-weight: 500; font-size: .92rem; padding: 6px 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-switch { display: inline-flex; background: var(--surface-alt); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .03em;
  color: var(--muted); padding: 5px 10px; border-radius: 999px; transition: all .15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--accent); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-shell {
  position: absolute; top: -42%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 1100px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 62%);
  z-index: 0; pointer-events: none;
}
.hero-shell::before, .hero-shell::after {
  content: ""; position: absolute; inset: 14% ; border-radius: 50%;
  border: 1.5px solid rgba(158, 147, 137, .16);
}
.hero-shell::after { inset: 26%; border-color: rgba(224, 86, 29, .12); }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .04em;
  text-transform: none; font-size: .9rem; color: var(--muted); margin: 0 0 14px;
}
.eyebrow--accent { color: var(--accent-ink); }

.hero-title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.06; margin: 0 0 20px; color: var(--charcoal);
}
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); margin: 0 0 32px; max-width: 680px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 56px 0 0; padding: 0; max-width: 640px;
}
.hero-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; }
.hero-stats--4 .stat { padding: 20px 16px; }
.hero-stats--4 .stat-value { font-size: clamp(1.45rem, 2.7vw, 1.95rem); }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm); margin: 0;
}
.stat-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--accent); line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--charcoal); color: #f4f0ea; }
.section--dark .section-lead { color: #c9c2b9; }

.section-title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 18px; color: inherit;
}
.section--dark .section-title { color: #fff; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; margin: 0 0 40px; }
.subhead { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin: 44px 0 18px; }

.prose { max-width: 720px; }
.prose p { font-size: 1.1rem; color: var(--muted); margin: 0 0 16px; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; margin: 0 0 8px; color: var(--charcoal); }
.card-body { margin: 0; color: var(--muted); }
.card-meta { margin: 14px 0 0; font-size: .92rem; color: var(--muted); font-family: var(--font-head); }

.card--feature { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8cfc2; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem;
}

.card--dark { background: var(--charcoal-2); border-color: #3a3a3a; box-shadow: none; }
.card--dark .card-title { color: #fff; }
.card--dark .card-body { color: #c9c2b9; }
.card--dark .card-meta { color: var(--accent); }
.card--wide { grid-column: span 1; }

/* ---------- Pressure numbers (the problem, not the result) ----------
   Deliberately not in the brand accent. On this page orange marks an
   achievement (90.4% ERM, US$ 0.035 per report); these four numbers are the
   problem being described, so they stay in charcoal and sit visually below
   the hero stats. */
.pressure {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin: 0; padding: 0;
}
.pressure-item {
  margin: 0; padding: 18px 20px;
  background: var(--surface-alt); border-left: 3px solid var(--grey);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pressure-value {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1; color: var(--charcoal);
}
.pressure-label { display: block; margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.pressure-note { margin: 18px 0 0; max-width: 780px; font-size: .95rem; color: var(--muted); }

/* ---------- Pipeline ---------- */
.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step;
}
.pipeline-step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-sm);
}
.pipeline-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--charcoal); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.pipeline-step:nth-child(-n+3) .pipeline-num { background: var(--accent); }
.pipeline-title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; margin: 0 0 6px; color: var(--charcoal); }
.pipeline-body { margin: 0; color: var(--muted); font-size: .96rem; }

/* Eight-stage variant: stages 1 to 4 are accented, stage 8 is optional. */
.pipeline--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pipeline--8 .pipeline-step:nth-child(-n+4) .pipeline-num { background: var(--accent); }
.pipeline-step--optional { background: transparent; border-style: dashed; box-shadow: none; }
.pipeline--8 .pipeline-step--optional .pipeline-num { background: transparent; color: var(--muted); border: 2px solid var(--grey); }

/* ---------- Pipeline diagram figure ---------- */
.pipeline-figure { margin: 52px 0 0; }
.pipeline-figure a { display: block; }
.pipeline-figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pipeline-figure figcaption {
  margin-top: 14px; text-align: center; font-size: .92rem; color: var(--muted);
}
.pipeline-figure figcaption a { color: var(--accent-ink); margin-left: 6px; }
.pipeline-figure figcaption a:hover { text-decoration: underline; }

/* ---------- Glossary disclosure ----------
   Sits at the end of "How it works" so the terms are defined before the
   Evidence section starts using them. Mirrors .limits, but on a light
   surface. */
.glossary { margin: 48px 0 0; border-top: 1px solid var(--line); padding-top: 22px; }
.glossary summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--charcoal);
}
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary::before { content: "+"; color: var(--accent); margin-right: 10px; font-weight: 700; }
.glossary[open] summary::before { content: "\2013"; }
.glossary summary:hover { color: var(--accent-ink); }
.glossary-list {
  margin: 24px 0 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px;
}
.glossary-list div { min-width: 0; }
.glossary-list dt {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  color: var(--charcoal); margin-bottom: 4px;
}
.glossary-list dd { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Pipeline visual (flow diagram) ---------- */
.flow { margin: 0 0 48px; }
.flow-grid {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, .95fr) auto minmax(0, 1fr);
}
.flow-stage { min-width: 0; }
.flow-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.flow-tag--accent { color: var(--accent-ink); }

.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.flow-arrow span {
  font-size: 1.5rem; line-height: 1;
  animation: flow-pulse 2.4s ease-in-out infinite;
}
@keyframes flow-pulse { 0%, 100% { opacity: .45; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } }

/* Report snippet cards (mock scanner PDFs) */
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 14px 14px 12px; overflow: hidden;
  position: relative; font-size: .82rem;
}
.report + .report { margin-top: 12px; }
.report::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.report--openvas::before { background: #4f9d4f; }
.report--tenable::before { background: #00a3a3; }

.report-head { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.report-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.report--openvas .report-dot { background: #4f9d4f; }
.report--tenable .report-dot { background: #00a3a3; }
.report-brand { font-family: var(--font-head); font-weight: 600; color: var(--charcoal); font-size: .86rem; }
.report-kind {
  margin-left: auto; font-family: var(--font-head); font-weight: 600; font-size: .62rem;
  letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px;
}
.report-sub { margin: 8px 0 10px 6px; color: var(--muted); font-size: .74rem; }

.report-rows { list-style: none; margin: 0; padding: 0 0 0 6px; display: grid; gap: 7px; }
.report-rows li {
  display: flex; align-items: center; gap: 8px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.report-rows em { color: var(--muted); font-style: normal; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .74rem; }
.sev {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; padding: 2px 6px; border-radius: 5px;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; color: #fff;
}
.sev--crit { background: #c0392b; }
.sev--high { background: var(--accent); }
.sev--med { background: #cc9a06; }

/* Core stage */
.flow-stage--core .flow-chips {
  list-style: none; margin: 0; padding: 18px; display: grid; gap: 8px; counter-reset: c;
  background: var(--charcoal); border-radius: var(--radius); border: 1px solid var(--charcoal-2);
  box-shadow: var(--shadow);
}
.flow-stage--core .flow-chips li {
  display: flex; align-items: center; gap: 10px; color: #ece7df; font-size: .9rem;
  font-family: var(--font-head); font-weight: 500;
}
.flow-stage--core .flow-chips li::before {
  counter-increment: c; content: counter(c);
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Output stage */
.record {
  margin: 0; background: var(--charcoal-2); color: #ece7df; border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .8rem; line-height: 1.55;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  overflow-x: auto;
}
.record code { font-family: inherit; white-space: pre; }
.formats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats li {
  font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .03em;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}

.record-note {
  margin: 8px 0 0; font-size: .74rem; color: var(--muted);
  font-family: var(--font-head); font-weight: 500; letter-spacing: .02em;
}

.flow-cap { margin: 22px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 40px; max-width: 720px; }
.metric {
  text-align: center; padding: 28px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid #3c3c3c;
}
.metric-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--accent); line-height: 1; }
.metric-label { display: block; margin-top: 10px; color: #c9c2b9; font-size: .95rem; }
.metrics--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; margin-bottom: 22px; }
.metrics--4 .metric { padding: 24px 14px; }
.metrics--4 .metric-value { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.metrics--4 .metric-label { font-size: .88rem; }
.results-cards { margin-top: 36px; }

/* ---------- Central claim band ---------- */
.section--claim { background: var(--surface); border-block: 1px solid var(--line); padding: 66px 0; }
.claim-title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.14;
  margin: 0 0 20px; max-width: 900px; color: var(--charcoal);
}
.claim-body { margin: 0; max-width: 780px; font-size: 1.08rem; color: var(--muted); }

/* ---------- Evidence blocks (inside .section--dark) ---------- */
.evidence {
  border: 1px solid #3c3c3c; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  padding: 30px 32px; margin: 0 0 24px;
}
.evidence-head { margin-bottom: 24px; }
.evidence-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(224, 86, 29, .16); border: 1px solid rgba(224, 86, 29, .4); color: #f48150;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .07em; text-transform: uppercase;
}
.evidence-title { font-family: var(--font-head); font-weight: 700; font-size: 1.34rem; margin: 0 0 8px; color: #fff; }
.evidence-meta { margin: 0; color: #a49c93; font-size: .92rem; }
.evidence-note { margin: 20px 0 0; color: #c9c2b9; font-size: .96rem; max-width: 780px; }

/* Before/after metric shift */
.shift { display: grid; gap: 1px; background: #3c3c3c; border: 1px solid #3c3c3c; border-radius: var(--radius-sm); overflow: hidden; }
.shift-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px; align-items: center;
  gap: 12px; background: var(--charcoal); padding: 14px 18px;
}
.shift-row--head {
  background: #262626; font-family: var(--font-head); font-weight: 600;
  font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: #8f887f;
}
.shift-row--head span:not(:first-child) { text-align: right; }
.shift-metric { color: #ece7df; font-size: .98rem; min-width: 0; }
.shift-from { text-align: right; color: #8f887f; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.shift-to { text-align: right; color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.shift-row:not(.shift-row--head) .shift-to::before { content: "\2192\00a0\00a0"; color: #6d665f; font-weight: 500; font-size: .9rem; }
.shift-to--down { color: #6cc48f; }

/* Cost table. table-layout: fixed stops the notes column from setting a
   min-content width that would widen the whole page on narrow screens. */
.cost { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .96rem; }
.cost th, .cost td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #3c3c3c; vertical-align: top; }
.cost thead th {
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .07em; text-transform: uppercase; color: #8f887f; border-bottom-color: #4a4a4a;
}
.cost tbody th { font-family: var(--font-head); font-weight: 600; color: #fff; white-space: nowrap; }
.cost tbody td { color: #c9c2b9; }
.cost tbody td:first-of-type { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.cost tbody tr:last-child th, .cost tbody tr:last-child td { border-bottom: 0; }
.cost-row--pick { background: rgba(224, 86, 29, .07); }
.cost-pick {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
}

/* Limitations disclosure */
.limits { margin-top: 12px; border-top: 1px solid #3c3c3c; padding-top: 20px; }
.limits summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600;
  color: #ece7df; font-size: 1rem; list-style: none;
}
.limits summary::-webkit-details-marker { display: none; }
.limits summary::before { content: "+"; color: var(--accent); margin-right: 10px; font-weight: 700; }
.limits[open] summary::before { content: "\2013"; }
.limits summary:hover { color: #fff; }
.limits ul { margin: 18px 0 0; padding-left: 22px; color: #a49c93; max-width: 860px; }
.limits li { margin-bottom: 12px; font-size: .95rem; }

/* ---------- Playbook ---------- */
.playbook { list-style: none; counter-reset: pb; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 900px; }
.playbook-item {
  counter-increment: pb; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px 22px 78px; box-shadow: var(--shadow-sm);
}
.playbook-item::before {
  content: counter(pb); position: absolute; left: 26px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.playbook-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin: 0 0 6px; color: var(--charcoal); }
.playbook-body { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Generalization beyond security reports ---------- */
.beyond {
  margin: 44px 0 0; max-width: 900px; padding: 28px 32px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--charcoal);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.beyond .eyebrow { margin-bottom: 8px; }
.beyond-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.24rem;
  line-height: 1.25; margin: 0 0 12px; color: var(--charcoal);
}
.beyond-body { margin: 0 0 18px; color: var(--muted); }
.beyond-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.beyond-list li {
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--charcoal);
  background: var(--surface-alt); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}
/* --grey on white is roughly 2.9:1, below WCAG AA for body text. */
.beyond-caveat { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- Future work ---------- */
.future { margin: 0; padding: 0 0 0 26px; max-width: 900px; display: grid; gap: 12px; }
.future li { padding-left: 6px; color: var(--muted); font-size: .98rem; }
.future li::marker { color: var(--accent); font-family: var(--font-head); font-weight: 700; }

/* ---------- Dissertation card ---------- */
.thesis-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 900px;
}
.thesis-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.42rem; line-height: 1.25;
  margin: 0 0 22px; color: var(--charcoal);
}
.thesis-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px;
  margin: 0 0 28px; padding: 20px 0; border-block: 1px solid var(--line);
}
.thesis-meta div { margin: 0; min-width: 0; }
.thesis-meta dt {
  font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--grey); margin-bottom: 3px;
}
.thesis-meta dd { margin: 0; color: var(--ink); font-size: .98rem; }
.thesis-abstract { margin: 0 0 20px; color: var(--muted); }
.thesis-keywords { margin: 0 0 24px; font-size: .92rem; color: var(--muted); }
.thesis-keywords span:first-child { font-family: var(--font-head); font-weight: 600; color: var(--accent-ink); }
.thesis-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Research questions ---------- */
.qp { display: flex; flex-direction: column; }
.qp-num {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; color: var(--accent-ink);
}
.qp-text { margin: 0 0 18px; color: var(--ink); font-size: 1rem; }
/* margin-top:auto pins the attribution to the bottom of the tallest card
   without the height:100% that once made these cards overlap on mobile. */
.qp-answer {
  margin: auto 0 0; font-size: .9rem; color: var(--muted);
  font-family: var(--font-head); font-weight: 500;
}
.qp-answer a { font-weight: 600; }

/* ---------- Specific objectives ---------- */
.objectives {
  margin: 0; max-width: 900px; display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.objective { background: var(--surface); padding: 20px 26px; }
.objective-goal {
  display: flex; gap: 12px; align-items: baseline; margin: 0 0 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--charcoal);
}
.objective-key {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.objective-done { margin: 0 0 0 36px; color: var(--muted); font-size: .96rem; }

/* ---------- Research timeline ----------
   Three columns share one grid so that heads, rail and cards line up across
   steps regardless of how long each translation runs. Each .tl-step is
   display:contents, and its children are pinned to a fixed row and column. */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  margin: 36px 0 0;
}
.tl-step { display: contents; }
.tl-head { grid-row: 1; text-align: center; padding: 0 4px; }
.tl-rail { grid-row: 2; position: relative; height: 30px; }
.tl-card { grid-row: 3; }
.tl-step:nth-child(1) > * { grid-column: 1; }
.tl-step:nth-child(2) > * { grid-column: 2; }
.tl-step:nth-child(3) > * { grid-column: 3; }

.tl-stage {
  margin: 0 0 4px; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.tl-name { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--charcoal); }
.tl-venue { margin: 0; font-size: .95rem; color: var(--muted); }

/* The rail line overhangs into the column gap so the three segments join up. */
.tl-rail::before {
  content: ""; position: absolute; top: 50%; left: -14px; right: -14px;
  height: 2px; margin-top: -1px; background: var(--line);
}
.tl-step:nth-child(1) .tl-rail::before { left: 50%; }
.tl-step:nth-child(3) .tl-rail::before { right: 50%; }
.tl-dot {
  position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}

.tl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); height: 100%;
}
.tl-question {
  margin: 0 0 16px; font-family: var(--font-head); font-weight: 600;
  font-size: 1.02rem; line-height: 1.4; color: var(--accent-ink);
}
.tl-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-facts li { position: relative; padding-left: 18px; color: var(--muted); font-size: .96rem; }
.tl-facts li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.timeline-note {
  margin: 22px 0 40px; padding-left: 14px; border-left: 3px solid var(--accent);
  font-family: var(--font-head); font-weight: 600; color: var(--charcoal); font-size: 1rem;
}

@media (max-width: 820px) {
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .tl-step { display: block; margin-bottom: 26px; }
  .tl-head { text-align: left; margin-bottom: 12px; }
  .tl-rail { display: none; }
  /* The step is now the grid item, so height:100% would stretch the card over
     the head of the next step. Back to auto once the columns collapse. */
  .tl-card { height: auto; border-left: 3px solid var(--accent); }
}

/* ---------- Publications list ---------- */
.pubs { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 18px; max-width: 900px; }
.pub {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.pub-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--charcoal); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.pub-main { min-width: 0; }
.pub-role {
  margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink);
}
.pub-title { font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; line-height: 1.3; margin: 0 0 8px; color: var(--charcoal); }
.pub-authors { margin: 0 0 3px; font-size: .95rem; font-weight: 500; }
.pub-venue { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.pub-body { margin: 0 0 16px; color: var(--muted); font-size: .97rem; }
.pub-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .93rem; }
.pub-status {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.pub-status--published { background: rgba(79, 157, 79, .14); color: #3d7a3d; border: 1px solid rgba(79, 157, 79, .35); }
.pub-status--review { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--line); }
.pub-actions a { font-weight: 600; }

.bibtex--standalone { max-width: 900px; margin-top: 0; }

/* ---------- Quick start ---------- */
/* minmax(0,1fr) keeps the <pre> blocks from forcing the grid item to their
   min-content width, which otherwise makes the whole page scroll sideways. */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.step { min-width: 0; }
.step-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; margin: 0 0 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .9rem; flex: none;
}
.code {
  margin: 0; background: var(--charcoal-2); color: #ece7df; border-radius: var(--radius-sm);
  padding: 18px 20px; overflow-x: auto; font-size: .9rem; line-height: 1.6;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  border: 1px solid #3a3a3a;
}
.code code { font-family: inherit; white-space: pre; }
.docs-note { margin: 30px 0 0; color: var(--muted); }
.docs-note a { font-weight: 600; margin-left: 6px; }

/* ---------- Paper ---------- */
.paper-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 860px; }
.paper-title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.25; margin: 0 0 10px; color: var(--charcoal); }
.paper-authors { margin: 0 0 4px; font-weight: 500; }
.paper-venue { margin: 0 0 22px; color: var(--muted); font-size: .96rem; }
.paper-subhead { font-family: var(--font-head); font-weight: 600; margin: 0 0 8px; color: var(--accent-ink); font-size: .92rem; letter-spacing: .04em; }
.paper-abstract { margin: 0 0 24px; color: var(--muted); }
.bibtex { margin-top: 28px; }
.bibtex-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.copy-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; transition: all .15s ease;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.copy-btn.is-done { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Award ---------- */
.award-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  background: var(--accent-soft); border: 1px solid rgba(224, 86, 29, .35);
  color: var(--accent-ink); border-radius: 999px; padding: 7px 14px 7px 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.award-badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.award-badge-ico { font-size: 1.05rem; line-height: 1; }

.award-banner {
  display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 26px 30px; margin: 0 0 28px; box-shadow: var(--shadow-sm);
  max-width: 860px;
}
.award-banner-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: var(--accent-soft); font-size: 1.5rem;
}
.award-banner-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.16rem;
  margin: 0 0 6px; color: var(--charcoal); line-height: 1.25;
}
.award-banner-body { margin: 0 0 18px; color: var(--muted); font-size: .96rem; }
.award-banner-links { display: flex; flex-wrap: wrap; gap: 12px; }

.award-cert {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.award-cert:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(45, 45, 45, .14); }
.award-cert img { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
  .award-banner { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .award-cert { order: -1; max-width: 420px; }
}

/* ---------- Slides ---------- */
.decks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px; margin: 32px 0 0;
}
.deck { margin: 0; display: flex; flex-direction: column; height: 100%; }
.slides-showcase { margin: 32px 0 0; max-width: 900px; }
.slides-cover {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.slides-cover:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(45, 45, 45, .16); }
.slides-cover img { width: 100%; height: auto; display: block; }
.slides-cover-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .03em;
  box-shadow: var(--shadow-sm);
}
.slides-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 22px;
}
.slides-meta-title { font-family: var(--font-head); font-weight: 600; color: var(--charcoal); margin: 0 0 4px; }
.slides-meta-body { color: var(--muted); font-size: .95rem; margin: 0; }
.slides-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slides-meta-note { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }

/* Inside the two-up grid the meta block stacks, and the actions of both decks
   sit on the same baseline regardless of how long each description runs. */
.deck .slides-meta { flex: 1; flex-direction: column; align-items: flex-start; gap: 20px; }
.deck .slides-actions { margin-top: auto; }
.deck--featured .slides-cover { border-color: rgba(224, 86, 29, .45); }

@media (max-width: 860px) {
  .decks { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 620px) {
  .slides-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c9c2b9; padding: 60px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-logo { height: 40px; margin-bottom: 14px; }
.footer-tagline { max-width: 320px; color: #b7b0a7; margin: 0; font-size: .96rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-head); font-weight: 600; color: #fff; margin: 0 0 14px; font-size: .92rem; letter-spacing: .04em; }
.footer-col a { display: block; color: #c9c2b9; margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #3c3c3c; color: #8f887f; font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-copyright { flex-basis: 100%; margin-top: 6px; }
.footer-copyright a { color: var(--accent); }
.footer-copyright a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
/* Seven nav items plus the language switch stop fitting before the mobile
   breakpoint, so the GitHub button is the first thing to go. */
@media (max-width: 1080px) {
  .header-actions .btn-ghost { display: none; }
  .pipeline--8, .metrics--4, .hero-stats--4, .pressure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .glossary-list { grid-template-columns: 1fr; }
  .grid-3, .pipeline, .hero-stats, .metrics { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; gap: 6px; }
  .flow-arrow span { animation: none; transform: rotate(90deg); display: inline-block; }
  @keyframes flow-pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
  .flow-stage--core .flow-chips { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  /* Stack each metric shift: label on its own line, then before and after. */
  .shift-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .shift-row--head { display: none; }
  .shift-metric { grid-column: 1 / -1; font-size: .88rem; color: #a49c93; }
  .shift-from { text-align: left; }
  .cost tbody th { white-space: normal; }
  .cost th, .cost td { padding: 11px 10px; }
  .pub { grid-template-columns: 1fr; gap: 14px; }
  .thesis-meta { grid-template-columns: 1fr; }
  .playbook-item { padding: 22px 22px 22px 22px; }
  .playbook-item::before { position: static; margin-bottom: 12px; }
  /* The lettered bullet moves above the objective text, so the answer below
     no longer needs to clear it. */
  .objective-goal { flex-direction: column; gap: 8px; }
  .objective-done { margin-left: 0; }
  .beyond { padding: 24px; }
}

@media (max-width: 560px) {
  .grid-3, .pipeline, .hero-stats, .metrics { grid-template-columns: 1fr; }
  .pipeline--8, .metrics--4, .hero-stats--4, .pressure { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section--claim { padding: 48px 0; }
  .hero { padding: 64px 0 52px; }
  .paper-card, .card, .thesis-card, .evidence { padding: 22px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

/* ---------- Logo theme handling (dark mode) ---------- */
@media (prefers-color-scheme: dark) {
  /* Site stays light by design; logos remain legible on light surfaces. */
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
