/* ============================================================
   StealthByte Labs — shared design system
   "Cobalt" · deep navy base, confident big-four-style accents
   Bold rather than muted — a single saturated color per line, high
   contrast against navy, the way real professional-services brands
   commit to one color (KPMG blue, Deloitte green, EY yellow) instead
   of blending several into something quieter.
   One accent per service line:
     offensive  #2F6FC4   automation #1E9461   consulting #D6A017
   ============================================================ */

/* ---------- 1. Tokens ---------- */
/*  BRAND PALETTE — "Cobalt"
 *  Cobalt blue as the brand default — the single most recognisable
 *  "professional services" color. Emerald and gold sit either side for
 *  the other two lines, each saturated enough to carry a whole cover
 *  page on its own rather than needing the others for support.
 *    Cobalt  L≈0.48   Emerald  L≈0.42   Gold  L≈0.60
 *  Each accent ships in two tunings — one for dark surfaces, one for
 *  light — so the same brand reads correctly in a deck and on paper.
 */
:root {
  /* surfaces — deep navy, not neutral charcoal */
  --ink:        #0A1526;
  --ink-deep:   #060D1A;
  --surface:    #121E33;
  --surface-2:  #182740;
  --surface-3:  #22334D;

  /* line work */
  --line:       rgba(237, 238, 242, 0.08);
  --line-soft:  rgba(237, 238, 242, 0.045);
  --line-hard:  rgba(237, 238, 242, 0.15);

  /* type — a paper-toned white rather than pure white */
  --text:       #EDEEF2;
  --text-dim:   #A8ADB8;
  --muted:      #767C8A;
  --faint:      #454B58;

  /* service-line accents — dark-surface tuning */
  --offensive:  #2F6FC4;
  --automation: #1E9461;
  --consulting: #D6A017;
  --positive:   #7FC49A;

  /* service-line accents — light-surface tuning (AA on white) */
  --offensive-lt:  #1F4C8A;
  --automation-lt: #146640;
  --consulting-lt: #8F6E0E;

  /* deep brand anchor — headers, covers, chart baselines */
  --anchor:     #0A1526;

  /* the active accent — overridden by .t-* theme classes */
  --accent:     #2F6FC4;
  --accent-ink: #FFFFFF;

  /* type stacks */
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* rhythm */
  --gut: 24px;
  --wrap: 1240px;
  --nav-h: 64px;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Theme classes — set the accent for a page or a section */
.t-offensive  { --accent: var(--offensive); }
.t-automation { --accent: var(--automation); }
.t-consulting { --accent: var(--consulting); }

/* ---------- 1b. Light surface ----------
 * Any section can be flipped to the light treatment with .on-light.
 * The token names stay identical, so every component inside keeps
 * working untouched — and the accents swap to their AA-on-white
 * tunings automatically. This is what makes the same layouts usable
 * in printed reports and light-background slides.
 */
.on-light {
  --ink:        #FAFAF9;
  --ink-deep:   #F2F1EE;
  --surface:    #FFFFFF;
  --surface-2:  #F4F3F0;
  --surface-3:  #E8E6E1;

  --line:       rgba(10, 21, 38, 0.14);
  --line-soft:  rgba(10, 21, 38, 0.09);
  --line-hard:  rgba(10, 21, 38, 0.26);

  --text:       #14171E;
  --text-dim:   #42474F;
  --muted:      #666B75;
  --faint:      #8B909A;

  --offensive:  var(--offensive-lt);
  --automation: var(--automation-lt);
  --consulting: var(--consulting-lt);
  --accent:     var(--offensive-lt);

  background: var(--ink);
  color: var(--text);
}
.on-light.t-offensive  { --accent: var(--offensive-lt); }
.on-light.t-automation { --accent: var(--automation-lt); }
.on-light.t-consulting { --accent: var(--consulting-lt); }
.on-light .btn-primary { color: #fff; }
.on-light .step  { background: var(--ink); }
.on-light .stat  { background: var(--ink); }
.on-light .cap-item { background: var(--ink); }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

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

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

/* Page-top glow + a faint instrument-grid ground plane. Graph paper, not
   noise — the grid is the same hairline used for dividers, just tiled. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(47, 111, 196, 0.07), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 47px, var(--line-soft) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, var(--line-soft) 47px 48px);
  background-repeat: no-repeat, repeat, repeat;
  pointer-events: none;
  z-index: 0;
}
@media print { body::before { display: none; } }
@media (max-width: 720px) {
  body::before {
    background-image:
      radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(47, 111, 196, 0.07), transparent 65%);
  }
}

/* Fine paper grain — breaks up the flat vector gradients that read as
   machine-generated. Barely perceptible; the point is texture, not pattern. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
@media print { body::after { display: none; } }

/* Reticle corner-brackets — the logo's viewfinder motif, reused as a UI
   accent on key containers instead of a plain border. Opposite corners
   only (top-left / bottom-right) — needs no extra markup. */
.reticle { position: relative; }
.reticle::before, .reticle::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.reticle::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.reticle::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.reticle:hover::before, .reticle:hover::after { opacity: 1; }

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.wrap-narrow { max-width: 880px; }

section { position: relative; z-index: 1; }

.section     { padding: 108px 0; }
.section-sm  { padding: 72px 0; }
.section-lg  { padding: 140px 0; }
.section-alt { background: var(--ink-deep); border-block: 1px solid var(--line-soft); }

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

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.015em; font-weight: 600; }

/* The signature move: Fraunces italic on emphasised words inside headings.
   Flat color, no glow — a restrained mark rather than a screen effect. */
h1 em, h2 em, h3 em, .serif {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
}

p { text-wrap: pretty; }
.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 62ch;
}
.body-dim { color: var(--text-dim); }
.body-muted { color: var(--muted); }

/* Mono label — used for eyebrows, IDs, metadata */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow-plain::before { display: none; }
.eyebrow-muted { color: var(--muted); }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 5. Section headers ---------- */
.section-head {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}
.section-head-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.08em;
  padding-top: 10px;
  border-top: 2px solid var(--accent);
}
.section-head h2 { margin: 14px 0 0; }
.section-head .lede { margin-top: 20px; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-hard);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,0.02); }

.btn-quiet { color: var(--text-dim); padding: 13px 4px; }
.btn-quiet:hover { color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Text link with underline that grows */
.link {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}
.link:hover::after { width: 100%; }
.link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- 7. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(12, 16, 23, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand svg { width: 26px; height: 26px; }
.brand-text {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-text span { color: var(--muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-dim);
  border-radius: var(--r-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.is-active { color: var(--text); font-weight: 550; }

.nav-cta { margin-left: 16px; padding: 9px 18px; font-size: 0.8125rem; }

/* Services dropdown */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-toggle svg { width: 11px; height: 11px; transition: transform 0.2s var(--ease); opacity: 0.7; }
.nav-drop:hover .nav-drop-toggle svg,
.nav-drop:focus-within .nav-drop-toggle svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 372px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu-group {
  padding: 14px 12px 6px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav-menu-group + .nav-menu-item { grid-column: auto; }
.nav-menu-item {
  padding: 11px 12px;
  border-radius: var(--r-md);
  transition: background 0.16s;
  display: block;
}
.nav-menu-item:hover { background: var(--surface-2); }
.nav-menu-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 2px;
}
.nav-menu-item strong::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dot, var(--muted));
  flex: none;
}
.nav-menu-item span { font-size: 0.75rem; color: var(--muted); line-height: 1.5; display: block; }
.nav-menu-item.full { grid-column: 1 / -1; }

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform 0.22s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 32px;
  display: none;
  flex-direction: column;
  z-index: 190;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-panel.is-open { display: flex; }
.mobile-panel a {
  padding: 13px 0;
  font-size: 1rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-panel a:last-of-type { border-bottom: 0; }
.mobile-group {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 20px 0 4px;
}
.mobile-panel .btn { margin-top: 20px; justify-content: center; }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card-link:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 0.9375rem; }
.card .link { margin-top: 22px; }

/* Card with an accent rule down the left edge */
.card-ruled { padding-left: 31px; border-left: 2px solid var(--accent); border-radius: 0 var(--r-lg) var(--r-lg) 0; }

/* Numbered index card — the service list pattern */
.svc-card { display: flex; flex-direction: column; }
.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.svc-card-id {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.svc-card-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.svc-card p { flex: 1; }
.svc-card-list {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-card-list li {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 4px 9px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

/* ---------- 9. Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-lede { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }

/* ---------- 10. Feature / step blocks ---------- */
.feature { padding: 0; }
.feature-icon {
  width: 30px; height: 30px;
  color: var(--accent);
  margin-bottom: 20px;
  stroke-width: 1.4;
}
.feature h4 { margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 0.9375rem; }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.step {
  counter-increment: step;
  background: var(--ink);
  display: grid;
  grid-template-columns: 92px 1fr 220px;
  gap: 32px;
  padding: 30px 4px;
  align-items: baseline;
  transition: background 0.2s;
}
.step:hover { background: var(--surface); }
.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step-num::before { content: '0' counter(step); }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9375rem; max-width: 60ch; }
.step-meta { text-align: right; }
.step-meta .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.step-meta .v { font-size: 0.875rem; color: var(--text-dim); font-weight: 500; }

/* ---------- 11. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--ink); padding: 28px 26px; }
.stat-val {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-val em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--accent); }
.stat-key {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 12. Tables ---------- */
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
}
table.data th, table.data td {
  text-align: left;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  border-bottom-color: var(--line);
}
table.data td { color: var(--text-dim); }
table.data td:first-child { color: var(--text); font-weight: 500; }

/* ---------- 13. Accordion (FAQ) ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  padding: 24px 40px 24px 0;
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); margin-top: -2px; }
.faq details p { padding: 0 60px 26px 0; color: var(--text-dim); max-width: 78ch; }
.faq details p + p { padding-top: 0; margin-top: -10px; }

/* ---------- 14. Code / terminal ---------- */
.code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  background: var(--ink-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--text-dim);
  white-space: pre;
  tab-size: 2;
}
.code .c  { color: var(--faint); }
.code .k  { color: var(--automation); }
.code .s  { color: var(--positive); }
.code .f  { color: var(--consulting); }
.code .n  { color: var(--offensive); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.panel-head .dot-row { display: flex; gap: 6px; }
.panel-head .dot-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); display: block; }
.panel-body { padding: 22px; }
.panel-body .code { border: 0; background: transparent; padding: 0; }

/* ---------- 15. Breadcrumb ---------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.crumb a { color: var(--muted); transition: color 0.2s; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }
.crumb .here { color: var(--text-dim); }

/* ---------- 16. Page hero ---------- */
.hero { padding: 88px 0 96px; }
.hero h1 { margin: 22px 0 26px; }
.hero .lede { max-width: 60ch; }
.hero .btn-row { margin-top: 36px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

/* ---------- 17. CTA band ---------- */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-bottom: 14px; }
.cta p { color: var(--text-dim); max-width: 54ch; }

/* ---------- 18. Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-deep);
  padding: 72px 0 36px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 34ch;
  margin-top: 16px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bot {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.footer-bot a { color: var(--muted); }
.footer-bot a:hover { color: var(--accent); }

/* ---------- 19. Utilities ---------- */
.stack-sm > * + * { margin-top: 12px; }
.stack    > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 36px; }

.mt-0  { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.mb-0  { margin-bottom: 0; }

.text-center { text-align: center; }
.max-60 { max-width: 60ch; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  flex: none;
}
.pill-live i { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* ---------- 20. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-lede { grid-template-columns: 1fr; gap: 36px; }
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; gap: 20px; }
  .step-meta { grid-column: 2; text-align: left; margin-top: 4px; }
  .cta { grid-template-columns: 1fr; padding: 44px 32px; gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap, .nav-inner { padding: 0 22px; }
  .section    { padding: 68px 0; }
  .section-lg { padding: 84px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .section-head-num { border-top: 0; padding-top: 0; }
  .card { padding: 26px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; }
  .faq summary { padding-right: 32px; font-size: 1rem; }
  .faq details p { padding-right: 8px; }
}

/* ---------- 22. Motion & print ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print — the site is dark, reports are not. Flip the whole token set to
   the light tuning so any page can be exported to PDF or dropped into a
   document without inverting into a wall of ink. */
@media print {
  :root {
    --ink: #fff; --ink-deep: #fff; --surface: #fff;
    --surface-2: #F4F3F0; --surface-3: #E8E6E1;
    --line: rgba(0,0,0,0.22); --line-soft: rgba(0,0,0,0.12); --line-hard: rgba(0,0,0,0.35);
    --text: #000; --text-dim: #1E2126; --muted: #4A4F58; --faint: #6C7178;
    --offensive: var(--offensive-lt);
    --automation: var(--automation-lt);
    --consulting: var(--consulting-lt);
    --accent: var(--offensive-lt);
  }
  .t-automation { --accent: var(--automation-lt); }
  .t-consulting { --accent: var(--consulting-lt); }

  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }

  .nav, .footer, .cta, .mobile-panel, .nav-menu, .btn { display: none; }

  .card, .panel, .stats, .cap-list, .outcome {
    border-color: rgba(0,0,0,0.2);
    break-inside: avoid;
  }
  .section, .section-lg, .line { padding: 24pt 0; }
  h1, h2, h3, h4 { break-after: avoid; }
  .faq details { break-inside: avoid; }
  .faq details p { display: block; }
  a { color: inherit; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
