/* ============================================================
   Dunbar Group & Associates LLC — Design System
   Ink / Paper / Signal. Editorial, authoritative, human.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Core palette */
  --ink:          #0B0B0C;
  --ink-soft:     #17171A;
  --ink-line:     #26262B;
  --paper:        #FFFFFF;
  --bone:         #F6F4F1;
  --bone-deep:    #EDEAE5;

  /* Semantic roles */
  --primary:      var(--ink);
  --on-primary:   var(--paper);
  --secondary:    #4A4A4F;
  --accent:       #E0142F;   /* fills only — white text passes AA */
  --accent-text:  #C20E27;   /* red text on light backgrounds */
  --accent-deep:  #9E0A20;
  --sass:         #FF2D78;   /* hot pink — dark backgrounds / accents only */
  --success:      #0F7A4A;
  --warning:      #9A6206;
  --danger:       #C20E27;

  --bg:           var(--paper);
  --fg:           var(--ink);
  --muted-fg:     #4A4A4F;
  --muted-fg-dark:#B9B9C0;
  --card:         var(--paper);
  --border:       #DFDBD5;
  --border-strong:#C4BFB7;
  --ring:         var(--accent);

  /* Spacing — 8px base */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* Radius */
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-pill: 999px;

  /* Elevation — 4 levels max */
  --e1: 0 1px 2px rgba(11,11,12,.08);
  --e2: 0 2px 8px rgba(11,11,12,.08), 0 1px 2px rgba(11,11,12,.06);
  --e3: 0 8px 24px rgba(11,11,12,.10), 0 2px 6px rgba(11,11,12,.06);
  --e4: 0 20px 56px rgba(11,11,12,.16), 0 4px 12px rgba(11,11,12,.08);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem;
  --fs-4xl: 2.5rem; --fs-5xl: 3rem;

  /* Motion */
  --dur: 220ms;
  --dur-fast: 150ms;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --gutter: 20px;

  /* Z-scale */
  --z-base: 0; --z-sticky: 40; --z-nav: 100; --z-overlay: 500; --z-modal: 1000;
}

@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --fs-4xl: 3.125rem; --fs-5xl: 3.75rem; } }
@media (min-width: 1440px) { :root { --fs-4xl: 3.5rem; --fs-5xl: 4.25rem; } }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); line-height: 1.2; }
h4 { font-size: var(--fs-xl); line-height: 1.3; }
p  { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); flex: none;
}
.eyebrow--center { justify-content: center; }
.lede { font-size: var(--fs-lg); line-height: 1.7; color: var(--muted-fg); max-width: 62ch; }
.measure { max-width: 68ch; }
.accent { color: var(--accent-text); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
@media (min-width: 1024px) { .section { padding-block: var(--s8); } .section--tight { padding-block: var(--s7); } }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lede,
.section--ink .card__body { color: var(--muted-fg-dark); }
.section--ink .eyebrow { color: var(--sass); }
.section--ink .eyebrow::before { background: var(--sass); }

.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
                             .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: var(--s3); }
.stack-sm > * + * { margin-top: var(--s2); }
.section-head { max-width: 72ch; }
.section-head > * + * { margin-top: var(--s2); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 14px var(--s4);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
  touch-action: manipulation;
}
.btn:hover  { box-shadow: var(--e3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: var(--e1); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}
.btn--primary   { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--accent-deep); --btn-bd: var(--accent-deep); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border-strong); }
.btn--secondary:hover { --btn-bd: var(--ink); --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink); padding-inline: var(--s2); }
.btn--ghost:hover { --btn-bg: var(--bone-deep); box-shadow: none; }
.btn--onink { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--onink-ghost { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(255,255,255,.35); }
.btn--onink-ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--lg { min-height: 56px; padding: 16px var(--s5); font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.btn-note { font-size: var(--fs-sm); color: var(--muted-fg); }
.section--ink .btn-note { color: var(--muted-fg-dark); }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-text); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.tlink:hover { color: var(--accent-deep); gap: 10px; }
.tlink:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 2px; }
.section--ink .tlink { color: var(--sass); }
.section--ink .tlink:hover { color: #FF6BA1; }

/* ---------- 6. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card--link:hover { box-shadow: var(--e3); border-color: var(--border-strong); transform: translateY(-3px); }
.card--link:focus-within { outline: 3px solid var(--ring); outline-offset: 3px; }
.card__title { font-size: var(--fs-xl); }
.card__body { color: var(--muted-fg); font-size: var(--fs-base); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link { text-decoration: none; }
.card__link:focus-visible { outline: none; }
.section--ink .card { background: var(--ink-soft); border-color: var(--ink-line); }
.section--ink .card--link:hover { border-color: #3A3A42; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--bone); color: var(--accent-text); flex: none;
}
.section--ink .icon-badge { background: var(--ink-line); color: var(--sass); }
.icon-badge svg { width: 24px; height: 24px; }

/* Numbered steps */
.step__num {
  font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600;
  line-height: 1; color: var(--accent); letter-spacing: -.03em;
}
.section--ink .step__num { color: var(--sass); }

/* ---------- 7. Header / Nav ---------- */
.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: var(--z-modal);
  background: var(--ink); color: var(--paper); padding: 12px var(--s3);
  border-radius: var(--r-md); text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: var(--s2); }

.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--e1); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: var(--r-sm); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -.015em; line-height: 1.05; color: var(--ink);
}
.brand__sub {
  display: block; font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted-fg); margin-top: 2px;
}

.nav__links { display: none; align-items: center; gap: var(--s1); }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  position: relative; padding: 10px 14px; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__link:hover { background: var(--bone-deep); }
.nav__link:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.nav__link[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: inline-flex; } }

/* Dropdown */
.nav__group { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.nav__chev { transition: transform var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 286px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--e4); padding: var(--s1); display: none;
}
.nav__toggle[aria-expanded="true"] + .nav__menu { display: block; }
.nav__menu a {
  display: block; padding: 12px 14px; border-radius: var(--r-md);
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  transition: background var(--dur) var(--ease);
}
.nav__menu a:hover { background: var(--bone); }
.nav__menu a:focus-visible { outline: 3px solid var(--ring); outline-offset: -2px; }
.nav__menu small { display: block; color: var(--muted-fg); font-weight: 400; font-size: var(--fs-xs); margin-top: 2px; }

/* Mobile */
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; flex: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__burger:hover { background: var(--bone); border-color: var(--border-strong); }
.nav__burger:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (min-width: 1024px) { .nav__burger { display: none; } }
.nav__burger svg { width: 22px; height: 22px; }
.nav__burger .ico-close { display: none; }
.nav__burger[aria-expanded="true"] .ico-close { display: block; }
.nav__burger[aria-expanded="true"] .ico-open  { display: none; }

.mobile-nav {
  position: fixed; inset: 72px 0 0; z-index: var(--z-overlay);
  background: var(--paper); padding: var(--s3) var(--gutter) var(--s6);
  overflow-y: auto; display: none;
  animation: slideIn var(--dur) var(--ease);
}
.mobile-nav[data-open="true"] { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: var(--fs-lg); font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--border); min-height: 48px;
}
.mobile-nav a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.mobile-nav__label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-fg); padding-top: var(--s4); padding-bottom: var(--s1); display: block;
}
.mobile-nav .btn { margin-top: var(--s4); }
body[data-lock="true"] { overflow: hidden; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__inner {
  position: relative; z-index: 2;
  padding-block: var(--s7) var(--s7);
  display: grid; gap: var(--s5); align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; padding-block: var(--s8); gap: var(--s6); }
}
.hero h1 { color: var(--paper); }
.hero .lede { color: var(--muted-fg-dark); font-size: var(--fs-lg); }
.hero__glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,20,47,.30) 0%, rgba(255,45,120,.12) 42%, transparent 68%);
  top: -280px; right: -220px; filter: blur(8px);
}
.hero__rule { width: 100%; height: 1px; background: var(--ink-line); }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(3, 1fr); } }
.stat__n {
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600;
  line-height: 1; letter-spacing: -.02em;
}
.stat__l { font-size: var(--fs-xs); color: var(--muted-fg-dark); letter-spacing: .04em; margin-top: 6px; }

/* Portrait / figure */
.figure { position: relative; }
.figure img { border-radius: var(--r-lg); }
.figure--framed img { border: 1px solid var(--border); box-shadow: var(--e4); }
.figure__cap { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--muted-fg); }
.section--ink .figure__cap { color: var(--muted-fg-dark); }

/* ---------- 9. Venture cards ---------- */
.venture {
  position: relative; display: grid; gap: var(--s3);
  padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--paper); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.venture:hover { box-shadow: var(--e4); transform: translateY(-4px); border-color: var(--border-strong); }
.venture:focus-within { outline: 3px solid var(--ring); outline-offset: 3px; }
.venture__media {
  display: flex; align-items: flex-end; justify-content: center;
  height: 200px; margin: calc(var(--s4) * -1) calc(var(--s4) * -1) 0;
  background: var(--bone); border-bottom: 1px solid var(--border); padding-top: var(--s3);
}
.venture__media img { max-height: 180px; width: auto; }
.venture__tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-fg);
}
.venture__url { font-size: var(--fs-sm); color: var(--accent-text); font-weight: 600; }

/* ---------- 10. Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) 0; min-height: 56px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600;
  letter-spacing: -.015em; line-height: 1.3;
  transition: color var(--dur) var(--ease);
}
.acc__btn:hover { color: var(--accent-text); }
.acc__btn:focus-visible { outline: 3px solid var(--ring); outline-offset: -2px; border-radius: var(--r-sm); }
.acc__ico { flex: none; width: 24px; height: 24px; transition: transform var(--dur) var(--ease); color: var(--accent-text); }
.acc__btn[aria-expanded="true"] .acc__ico { transform: rotate(45deg); }
.acc__panel { display: none; padding-bottom: var(--s3); }
.acc__panel[data-open="true"] { display: block; }
.acc__panel p { color: var(--muted-fg); max-width: 72ch; }
.acc__panel p + p { margin-top: var(--s2); }

/* ---------- 11. Forms ---------- */
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 600; }
.field__req { color: var(--accent-text); margin-left: 2px; }
.field__hint { font-size: var(--fs-xs); color: var(--muted-fg); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-base); /* 16px — prevents iOS zoom */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(224,20,47,.18);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  display: none; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--danger);
}
.field__error[data-show="true"] { display: flex; }
.field__error svg { width: 16px; height: 16px; flex: none; }
.form__status { font-size: var(--fs-sm); font-weight: 500; min-height: 22px; }
.form__status[data-tone="ok"]  { color: var(--success); }
.form__status[data-tone="err"] { color: var(--danger); }
.form-card {
  padding: var(--s4); background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e2);
}
@media (min-width: 640px) { .form-card { padding: var(--s5); } }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Newsletter (on ink) */
.subscribe { display: flex; flex-wrap: wrap; gap: var(--s2); }
.subscribe .input {
  flex: 1 1 240px; background: var(--ink-soft); color: var(--paper); border-color: var(--ink-line);
}
.subscribe .input::placeholder { color: #7C7C85; }
.subscribe .input:focus { border-color: var(--sass); box-shadow: 0 0 0 3px rgba(255,45,120,.25); }

/* ---------- 12. Trust / badges ---------- */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.badges img { height: 56px; width: auto; }
.badge-note { font-size: var(--fs-xs); color: var(--muted-fg); letter-spacing: .04em; }
.section--ink .badge-note { color: var(--muted-fg-dark); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--paper);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em;
}
.section--ink .pill { background: var(--ink-soft); border-color: var(--ink-line); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.section--ink .pill__dot { background: var(--sass); }

/* ---------- 13. Article / prose ---------- */
.prose { max-width: 70ch; font-size: var(--fs-lg); line-height: 1.75; }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { font-size: var(--fs-3xl); margin-top: var(--s6); }
.prose h3 { font-size: var(--fs-xl); margin-top: var(--s5); }
.prose p { color: #2B2B30; }
.prose a { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }
.prose ul { display: grid; gap: var(--s2); }
.prose ul li { position: relative; padding-left: var(--s3); color: #2B2B30; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.prose blockquote {
  border-left: 3px solid var(--accent); padding-left: var(--s3);
  font-family: var(--font-display); font-size: var(--fs-xl); font-style: italic;
  line-height: 1.45; color: var(--ink);
}
.prose figure { margin-block: var(--s5); }
.prose figcaption { font-size: var(--fs-sm); color: var(--muted-fg); margin-top: var(--s1); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: var(--fs-sm); color: var(--muted-fg); }
.article-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.toc { padding: var(--s3); background: var(--bone); border-radius: var(--r-lg); border: 1px solid var(--border); }
.toc h2 { font-size: var(--fs-sm) !important; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 var(--s2); }
.toc ul { display: grid; gap: 10px; }
.toc a { font-size: var(--fs-base); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted-fg); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- 14. Page header ---------- */
.page-head { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.page-head__inner { position: relative; z-index: 2; padding-block: var(--s6) var(--s6); }
@media (min-width: 1024px) { .page-head__inner { padding-block: var(--s7); } }
.page-head h1 { color: var(--paper); font-size: var(--fs-4xl); }
.page-head .lede { color: var(--muted-fg-dark); }
.page-head .breadcrumb { color: #8C8C96; }
.page-head .breadcrumb a:hover { color: var(--sass); }
.page-head__glow {
  position: absolute; z-index: 1; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,20,47,.26) 0%, transparent 66%);
  top: -220px; right: -160px; pointer-events: none;
}

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--s6) var(--s4); }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand__name, .site-footer h4 { color: var(--paper); }
.site-footer h4 {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #8C8C96; margin-bottom: var(--s2);
}
.footer-links { display: grid; gap: 12px; }
.footer-links a {
  color: var(--muted-fg-dark); text-decoration: none; font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease); display: inline-block; padding-block: 2px;
}
.footer-links a:hover { color: var(--paper); }
.footer-links a:focus-visible { outline: 2px solid var(--sass); outline-offset: 3px; border-radius: 2px; }
.footer-bottom {
  margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: #8C8C96;
}
.footer-bottom a { color: #8C8C96; text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.social { display: flex; gap: var(--s1); }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1px solid var(--ink-line); color: var(--muted-fg-dark);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: var(--ink-soft); color: var(--paper); border-color: #3A3A42; }
.social a:focus-visible { outline: 3px solid var(--sass); outline-offset: 2px; }
.social svg { width: 18px; height: 18px; }

/* ---------- 16. Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform var(--dur) var(--ease);
}
.mobile-cta[data-show="true"] { transform: none; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 1023px) { body[data-cta="true"] { padding-bottom: 84px; } }

/* ---------- 17. Motion utilities ---------- */
.reveal { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal[data-in="true"] { opacity: 1; transform: none; }

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

/* ---------- 18. Misc ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rule { height: 1px; background: var(--border); border: 0; }
.section--ink .rule { background: var(--ink-line); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.center .btn-row { justify-content: center; }

/* ============================================================
   19. Motion layer — subtle, professional, reduced-motion safe
   ============================================================ */

/* Scroll progress (articles) */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-nav) + 1);
  background: transparent; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--sass));
  transform-origin: left center;
  transition: width 90ms linear;
}

/* Hero entrance — runs once on load */
.hero__inner > * { animation: riseIn 700ms var(--ease) both; }
.hero__inner > *:nth-child(2) { animation-delay: 120ms; }
.hero .eyebrow  { animation: fadeIn 600ms var(--ease) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.page-head__inner > * { animation: riseIn 600ms var(--ease) both; }
.page-head__inner > *:nth-child(2) { animation-delay: 70ms; }
.page-head__inner > *:nth-child(3) { animation-delay: 140ms; }
.page-head__inner > *:nth-child(4) { animation-delay: 210ms; }

/* Ambient glow drift — very slow, decorative only */
.hero__glow { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-36px, 30px, 0) scale(1.08); }
}

/* Staggered reveal for grid children */
.reveal { transition-delay: var(--reveal-delay, 0ms); }

/* Section headings get a quiet underline sweep when revealed */
.section-head h2 { position: relative; }

/* Nav link hover underline */
.nav__link:not([aria-current="page"])::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.nav__link:not([aria-current="page"]):hover::before { transform: scaleX(1); }

/* Card media lift */
.venture__media img { transition: transform 420ms var(--ease); }
.venture:hover .venture__media img { transform: translateY(-6px) scale(1.03); }

/* Icon badge micro-response */
.card { --ib: 0; }
.icon-badge { transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.card--link:hover .icon-badge { transform: translateY(-2px) scale(1.06); }

/* Accordion smooth open */
.acc__panel {
  display: block; overflow: hidden;
  display: grid; grid-template-rows: 0fr;
  padding-bottom: 0;
  transition: grid-template-rows 280ms var(--ease), padding-bottom 280ms var(--ease), opacity 200ms var(--ease);
  opacity: 0;
}
.acc__panel > * { min-height: 0; }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; padding-bottom: var(--s3); opacity: 1; }
.acc__panel-inner > p + p { margin-top: var(--s2); }

/* Stat count-up holds layout */
.stat__n { font-variant-numeric: tabular-nums; }

/* Buttons: soft sheen on primary hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 620ms var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }

/* Footer + form focus polish */
.form-card { transition: box-shadow var(--dur) var(--ease); }
.form-card:focus-within { box-shadow: var(--e3); }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > *, .page-head__inner > *, .hero .eyebrow { animation: none !important; opacity: 1; transform: none; }
  .hero__glow { animation: none !important; }
  .progress__bar { transition: none !important; }
  .acc__panel { transition: none !important; }
  .btn--primary::after { display: none; }
  .venture:hover .venture__media img { transform: none; }
}

/* ============================================================
   20. Responsive & touch-target corrections
   ============================================================ */

/* Grid/flex children default to min-width:auto, which lets a wide intrinsic
   image blow out its track at narrow widths. Reset it. */
.grid > *, .hero__inner > *, .footer-grid > * { min-width: 0; }
.figure, .figure picture, .figure img { max-width: 100%; }

/* Keep decorative glows from widening the document */
.hero, .page-head { contain: paint; }

/* Touch targets — minimum 44px for anything that is a primary affordance */
.brand { min-height: 44px; }
.nav__link { padding-block: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.nav__toggle { min-height: 44px; }
.card .tlink, .venture .tlink, .toc a, .stack-sm .tlink { min-height: 44px; }
.nav__menu a { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.subscribe .btn { min-height: 48px; }

/* Narrow-phone tuning */
@media (max-width: 400px) {
  :root { --fs-5xl: 2.5rem; --fs-4xl: 2.125rem; --fs-3xl: 1.875rem; }
  .venture__media { height: 168px; }
  .venture__media img { max-height: 150px; }
  .badges img { height: 84px !important; }
  .hero__stats { gap: var(--s2); }
}

/* Long unbreakable strings (email addresses, URLs) must not widen the page */
.tlink, .prose a, .card__body a, .footer-links a { overflow-wrap: anywhere; }
.venture__url { overflow-wrap: anywhere; }

/* ============================================================
   21. Dark page-head corrections
   ============================================================ */

/* .pill defaults to a white surface; inside .page-head the inherited text
   colour is white too, which made the label invisible. Give it the same
   treatment as .section--ink. */
.page-head .pill {
  background: var(--ink-soft);
  border-color: var(--ink-line);
  color: var(--paper);
}
.page-head .pill__dot { background: var(--sass); }

/* Hero IP panel — illustrated characters need a light ground to read against */
.ip-panel {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s3) var(--s2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ip-panel img { mix-blend-mode: normal; }

/* ============================================================
   22. Dark-surface token remapping
   ------------------------------------------------------------
   Muted text and accent-text tokens are tuned for light grounds.
   Every dark surface (not just .section--ink) must remap them, or
   components reused there fall below contrast — e.g. .btn-note and
   .figure__cap rendering #4A4A4F on near-black at 2.2:1.
   ============================================================ */
.hero,
.page-head,
.site-footer,
.section--ink {
  --muted-fg: #B9B9C0;    /* 10.1:1 on --ink */
  --accent-text: #FF5C92; /* 6.6:1 on --ink — red is only legible on light */
}

/* Light surfaces nested inside a dark one must restore the light tokens. */
.form-card,
.nav__menu,
.mobile-nav,
.ip-panel,
.toc {
  --muted-fg: #4A4A4F;
  --accent-text: #C20E27;
}

/* The footer brand lockup sits on ink */
.site-footer .brand__sub { color: var(--muted-fg); }
