/* ==========================================================================
   RevAmp Revenue Partners — prototype stylesheet
   Direction: "Instrument", carrying Ledger's typographic restraint.
   All design decisions live in custom properties so this can be lifted
   into a WordPress theme's style.css / theme.json with no rewriting.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surface */
  --canvas:        #FFFFFF;
  --canvas-sink:   #F5F8FA;   /* section alternation, very slight */
  --canvas-warm:   #FAF9F7;   /* Ledger borrowing: editorial sections */
  --panel-ink:     #0B1117;   /* instrument panel ground */
  --panel-ink-2:   #131C25;   /* panel row alternation */
  --panel-line:    #223040;   /* hairlines inside panels */

  /* Ink */
  --ink:           #14181C;
  --ink-2:         #3B454E;
  --slate:         #6E7681;
  --slate-light:   #97A0AA;
  --on-dark:       #E8EFF4;
  --on-dark-mute:  #8FA3B4;

  /* Accent — sampled from the real logo files, not invented.
     The brand mark wins over the palette: the Instrument direction was
     drafted around the old logo blue, and has been bent to the magenta
     canonical mark (revampmagentaclearOFFICIAL.png). */
  --brand:         #C2226F;   /* logo wordmark magenta — primary, CTA */
  --brand-deep:    #8E2465;   /* logo's darker rocket facet — links, hovers */
  --brand-bright:  #D31C6C;   /* logo's brightest facet — accents on dark */
  --brand-wash:    #FBEAF3;   /* focus rings, tints */
  --brand-on-dark: #F582B4;   /* legible magenta on the panel ground */

  /* Semantic — used ONLY for money states, never decoratively.
     --at-risk is sampled from the logo's exhaust flame, so the "money you
     are losing" colour is brand-derived rather than arbitrary. */
  --recovered:     #0FBF86;   /* money recovered — cooled from neon to sit beside magenta */
  --recovered-ink: #0A7F58;   /* same meaning, legible on light */
  --at-risk:       #E8A33C;   /* logo exhaust amber — money you are losing today */
  --at-risk-ink:   #9A5C13;

  /* Rules */
  --rule:          #E3E8EC;
  --rule-strong:   #C9D3DA;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-editorial: "Fraunces", Georgia, "Times New Roman", serif;

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

  --radius:      14px;   /* panels */
  --radius-sm:   8px;    /* controls */
  --radius-pill: 999px;

  --measure: 68ch;
  --wrap:    1180px;
  --wrap-narrow: 780px;

  --shadow-panel: 0 24px 48px -24px rgba(11, 17, 23, 0.45);
  --shadow-lift:  0 2px 8px rgba(20, 24, 28, 0.06);

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s5) 0; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.08;
  margin: 0 0 var(--s2);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.028em; }
h4 { font-size: 1.06rem; letter-spacing: -0.018em; }
p  { margin: 0 0 var(--s2); max-width: var(--measure); }
strong { font-weight: 600; }

/* Ledger's contribution: a serif voice for section openers and pull-quotes
   ONLY, so long service copy isn't read in pure interface type. */
.editorial-lede {
  font-family: var(--font-editorial);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 40ch;
}
.pullquote {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 2px solid var(--brand);
  padding-left: var(--s3);
  margin: var(--s5) 0;
  max-width: 34ch;
}

/* The eyebrow / kicker — monospace, the "instrument label" voice */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--s2);
  display: block;
}
.eyebrow--brand { color: var(--brand-deep); }
.eyebrow--on-dark { color: var(--on-dark-mute); }

/* Every figure on the site is monospaced with tabular numerals. */
.num, .fig {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}
.fig-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1; }
.fig-md { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.1; }

.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--slate); }
.small { font-size: 0.9rem; }
.source-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--slate-light);
  text-transform: none;
  margin-top: var(--s1);
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s3); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--s3); }
.section { padding-block: clamp(var(--s6), 9vw, var(--s8)); }
.section--tight { padding-block: var(--s6); }
.section--sink { background: var(--canvas-sink); }
.section--warm { background: var(--canvas-warm); }
.section--dark { background: var(--panel-ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark-mute); }
/* Contextual link colours must never repaint a button's label. `.section--dark a`
   has specificity (0,1,1) and `.btn--on-dark` only (0,1,0), so without the
   :not(.btn) the button text inherits the link colour and disappears into its
   own background. Same trap applies in the footer. */
.section--dark a:not(.btn) { color: var(--brand-on-dark); }

/* Links inside an instrument panel that sits on a light section — the panel
   ground is dark, so the default link colour would be unreadable. */
.panel a:not(.btn):not(.cta-secondary) { color: var(--brand-on-dark); }
.section--ruled { border-top: 1px solid var(--rule); }

.section-head { margin-bottom: var(--s5); }
.section-head p { color: var(--slate); }

.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.split--55 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.stack > * + * { margin-top: var(--s2); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--55 { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); min-height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* Horizontal SVG lockup (see /logo/README.md for the canonical spec).
   SIZING NOTE: the rocket flies well above the wordmark, so it occupies ~58%
   of the SVG's height. Constraining the image to 32px left the wordmark at
   13px — smaller than the nav links beside it, with the CTA button visually
   outweighing the brand. 52px puts the wordmark at ~22px, comfortably above
   the 15px nav. Measure the wordmark, not the image, when changing this. */
.brand img { height: 52px; width: auto; }

/* On narrow screens the header is tighter and the logo competes with the
   menu toggle, so step it down — the wordmark still clears the body text. */
@media (max-width: 560px) {
  .site-header__inner { min-height: 72px; }
  .brand img { height: 42px; }
}
.brand__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; letter-spacing: -0.05em;
}
.brand__word span { color: var(--brand); }
.footer-logo { height: 40px; width: auto; margin-bottom: var(--s3); }

/* The header's right-hand group. WordPress's wp_nav_menu returns a <ul>, so
   this has to lay out a list and a button side by side — in the static
   prototype it is a <nav> and a button. Both work with the same rules. */
.site-header__nav {
  display: flex; align-items: center; gap: var(--s3);
}
.nav {
  display: flex; align-items: center; gap: var(--s3);
  list-style: none; margin: 0; padding: 0;
}
/* wp_nav_menu wraps every item in an <li>. Without this they render with
   bullet discs between the links. */
.nav li { list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .site-header__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--canvas); border-bottom: 1px solid var(--rule);
    padding: var(--s3); flex-direction: column; align-items: stretch; gap: var(--s2);
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header__nav .nav a { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .site-header__nav .btn { justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. BUTTONS & CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  letter-spacing: -0.02em; text-decoration: none;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 120ms var(--ease), background-color 120ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
/* Doubled class (0,2,0) so a button's label always beats any contextual link
   rule, wherever the button is dropped. Belt and braces alongside the
   :not(.btn) exclusions above. */
.btn.btn--primary { background: var(--brand); color: #fff; }
.btn.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn.btn--on-dark { background: var(--brand-on-dark); color: var(--panel-ink); }
.btn.btn--on-dark:hover { background: #FBA7CD; color: var(--panel-ink); }
/* On a dark ground the ghost button needs light text, not ink. */
.section--dark .btn.btn--ghost,
.panel .btn.btn--ghost { color: var(--on-dark); border-color: var(--panel-line); }
.section--dark .btn.btn--ghost:hover,
.panel .btn.btn--ghost:hover { color: #fff; border-color: var(--on-dark-mute); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* The secondary action is ALWAYS a plain text link beneath the primary,
   never a co-equal button. Encoded here so it can't drift. */
.cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-group--center { align-items: center; text-align: center; }
.cta-secondary {
  font-size: 0.92rem; color: var(--slate);
  text-decoration: underline; text-decoration-color: var(--rule-strong);
}
.cta-secondary:hover { color: var(--ink); text-decoration-color: var(--brand); }

/* --------------------------------------------------------------------------
   7. INSTRUMENT PANEL — the signature component
   -------------------------------------------------------------------------- */
.panel {
  background: var(--panel-ink); color: var(--on-dark);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); padding: 14px var(--s3);
  border-bottom: 1px solid var(--panel-line);
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mute);
}
.panel__live { display: inline-flex; align-items: center; gap: 7px; color: var(--recovered); }
.panel__live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--recovered); box-shadow: 0 0 0 0 rgba(15, 191, 134, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(15, 191, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 191, 134, 0); }
}
.panel__body { padding: var(--s3); }
.panel__foot {
  padding: var(--s2) var(--s3) var(--s3);
  border-top: 1px solid var(--panel-line);
}

/* Panel data table */
.readout { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.readout th, .readout td { padding: 10px 8px; text-align: right; }
.readout th:first-child, .readout td:first-child { text-align: left; }
.readout thead th {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-mute); border-bottom: 1px solid var(--panel-line);
  padding-bottom: 12px; vertical-align: bottom;
}
.readout tbody tr { border-bottom: 1px solid rgba(34, 48, 64, 0.55); }
.readout tbody tr:last-child { border-bottom: 0; }
.readout td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.readout td:first-child {
  font-family: var(--font-body); color: var(--on-dark-mute); font-size: 0.85rem;
}
.readout .col-current { color: var(--at-risk); }
.readout .col-revamp  { color: var(--brand-on-dark); }
.readout tr.is-total {
  border-top: 1px solid var(--panel-line);
  background: rgba(15, 191, 134, 0.06);
}
.readout tr.is-total td { color: var(--recovered); font-weight: 700; font-size: 1.02rem; padding-block: 16px; }
.readout tr.is-total td:first-child { color: #fff; font-family: var(--font-body); font-weight: 600; }

/* The headline delta figure */
.delta {
  display: flex; align-items: baseline; gap: var(--s2);
  padding: var(--s3); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 191, 134, 0.10), rgba(15, 191, 134, 0.03));
  border: 1px solid rgba(15, 191, 134, 0.28);
}
.delta__value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1;
  color: var(--recovered); letter-spacing: -0.03em;
}
.delta__label { font-size: 0.9rem; color: var(--on-dark-mute); max-width: 26ch; }

/* --------------------------------------------------------------------------
   8. CALCULATOR CONTROLS
   -------------------------------------------------------------------------- */
.calc { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (max-width: 940px) { .calc { grid-template-columns: 1fr; } }

.field { margin-bottom: var(--s3); }
.field > label {
  display: block; font-size: 0.9rem; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}
.field__hint { display: block; font-size: 0.8rem; color: var(--slate); margin-bottom: 8px; }
.field__control { position: relative; display: flex; align-items: center; }
.field__affix {
  position: absolute; left: 14px; font-family: var(--font-mono);
  font-size: 0.95rem; color: var(--slate); pointer-events: none;
}
.field__affix--right { left: auto; right: 14px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"],
.field input[type="tel"], .field select {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 1rem; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm); transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.field input[type="email"], .field input[type="text"], .field input[type="tel"] { font-family: var(--font-body); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.field.has-affix input { padding-left: 30px; }
.field.has-affix-right input { padding-right: 34px; }
.field input[aria-invalid="true"] { border-color: var(--at-risk-ink); }
.field__error {
  display: none; font-family: var(--font-mono); font-size: 0.74rem;
  color: var(--at-risk-ink); margin-top: 6px;
}
.field__error.is-shown { display: block; }

.calc-assumptions {
  margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule);
}
.calc-assumptions summary {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate); cursor: pointer;
}
.calc-assumptions[open] summary { margin-bottom: var(--s2); color: var(--ink); }
.calc-assumptions ul { margin: 0; padding-left: 1.1rem; }
.calc-assumptions li { font-size: 0.86rem; color: var(--slate); margin-bottom: 6px; }

.no-gate {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--recovered-ink); background: rgba(15, 191, 134, 0.09);
  border: 1px solid rgba(15, 191, 134, 0.3);
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   9. CARDS, LISTS, TRUST ROW
   -------------------------------------------------------------------------- */
.card {
  background: var(--canvas); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s3);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.card p { margin: 0; font-size: 0.94rem; color: var(--slate); }
.card h3, .card h4 { margin: 0; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.card__index {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--brand); text-transform: uppercase;
}
.card__more {
  margin-top: auto; padding-top: var(--s1);
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.06em; color: var(--brand-deep);
}

.stat-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s3); background: var(--canvas);
}
.stat-card .fig-lg { color: var(--ink); }
.stat-card p { font-size: 0.94rem; color: var(--slate); margin: 10px 0 0; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--slate); text-transform: uppercase;
}
.trust-row li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: "▸"; color: var(--brand); }
.trust-row--on-dark { color: var(--on-dark-mute); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 0.97rem; color: var(--ink-2);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 2px; background: var(--brand);
}
.checklist--on-dark li { color: var(--on-dark-mute); }
.checklist--on-dark li::before { background: var(--brand-on-dark); }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: var(--s3); }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: var(--brand); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm); padding: 6px 9px;
}
.step h4 { margin-bottom: 4px; }
.step p { margin: 0; font-size: 0.95rem; color: var(--slate); }

/* Figures — report screenshots treated as artefacts with hairline + caption */
figure.artifact { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--canvas); }
figure.artifact img { width: 100%; }
figure.artifact figcaption {
  padding: 12px var(--s2); border-top: 1px solid var(--rule);
  font-size: 0.84rem; color: var(--slate);
}
figure.artifact figcaption b { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 2px; font-weight: 500; }

/* Founder portrait — the credibility substitute for absent testimonials.
   Slightly warmer treatment than the report artefacts: no hard crop, and the
   caption carries the name rather than a figure label. */
figure.founder-photo img { width: 100%; display: block; }
figure.founder-photo figcaption { line-height: 1.5; }
figure.founder-photo figcaption b { color: var(--ink); }

/* Placeholder image — clearly marked, never mistakable for final art */
.placeholder-photo {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #EEF3F6 0 12px, #E6EDF2 12px 24px);
  border: 2px dashed var(--rule-strong); color: var(--slate);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; padding: var(--s3);
}
.placeholder-photo b { display: block; color: var(--at-risk-ink); font-weight: 600; }

/* FAQ / objections */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s3) 40px var(--s3) 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.02em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--brand); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-bottom: var(--s3); }
.faq details p { color: var(--slate); }

/* Offer list */
.offer { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.offer__item { display: flex; gap: var(--s3); padding: var(--s3); border-bottom: 1px solid var(--rule); align-items: flex-start; }
.offer__item:last-child { border-bottom: 0; }
.offer__tag {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--recovered-ink); background: rgba(15, 191, 134, 0.1);
  border: 1px solid rgba(15, 191, 134, 0.28);
  padding: 5px 10px; border-radius: var(--radius-pill); margin-top: 2px;
}
.offer__item h4 { margin-bottom: 4px; }
.offer__item p { margin: 0; font-size: 0.94rem; color: var(--slate); }
@media (max-width: 560px) { .offer__item { flex-direction: column; gap: 10px; } }

/* Quiet off-ramp — deliberately lower contrast than everything above it */
.offramp {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s3); background: var(--canvas-sink);
  display: flex; gap: var(--s3); align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.offramp p { margin: 0; font-size: 0.95rem; color: var(--slate); }
.offramp h4 { margin: 0 0 4px; font-size: 1rem; }

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(var(--s6), 8vw, var(--s7)) var(--s7); }
.hero__id {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); margin-bottom: var(--s3);
}
.hero h1 { margin-bottom: var(--s3); }
.hero .lede { margin-bottom: var(--s4); }
.hero__cta { margin-bottom: var(--s4); }

/* Page header for interior pages */
.page-head { padding-block: var(--s6) var(--s5); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

.breadcrumb {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate); margin-bottom: var(--s3);
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb span { margin-inline: 8px; color: var(--rule-strong); }

/* --------------------------------------------------------------------------
   11. FORMS (callback — three fields, no free-text box)
   -------------------------------------------------------------------------- */
.callback {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s4); background: var(--canvas);
}
.callback--on-dark { background: var(--panel-ink-2); border-color: var(--panel-line); }
.callback--on-dark .field > label { color: #fff; }
.callback--on-dark .field input { background: var(--panel-ink); border-color: var(--panel-line); color: var(--on-dark); }
.callback--on-dark .consent { color: var(--on-dark-mute); }
.consent { font-size: 0.78rem; line-height: 1.55; color: var(--slate); margin-top: var(--s2); }
.consent a { color: inherit; }
.form-note {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--slate); text-transform: uppercase; margin-top: var(--s2);
}
.form-status {
  display: none; margin-top: var(--s2); padding: 12px var(--s2);
  border-radius: var(--radius-sm); font-size: 0.92rem;
  background: rgba(15, 191, 134, 0.1); border: 1px solid rgba(15, 191, 134, 0.3);
  color: var(--recovered-ink);
}
.form-status.is-shown { display: block; }

.scheduler-slot {
  border: 2px dashed var(--rule-strong); border-radius: var(--radius);
  padding: var(--s5) var(--s3); text-align: center; background: var(--canvas-sink);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--slate); text-transform: uppercase;
}
.scheduler-slot b { display: block; color: var(--at-risk-ink); margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   12. ARTICLE / LONG-FORM
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s6); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: var(--s3); }
.prose li { margin-bottom: 10px; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.prose figure { margin: var(--s5) 0; }

.post-meta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate);
}
.sources { border-top: 1px solid var(--rule); padding-top: var(--s3); margin-top: var(--s6); }
.sources h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.sources li { font-size: 0.85rem; word-break: break-word; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--panel-ink); color: var(--on-dark-mute); padding-block: var(--s6) var(--s4); margin-top: 0; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: var(--s2);
}
.site-footer a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: 0.92rem; }
.site-footer a:not(.btn):hover { color: var(--brand-on-dark); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__bar {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--panel-line);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3);
  justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.site-footer .brand__word { color: #fff; }
.site-footer p { color: var(--on-dark-mute); font-size: 0.92rem; }
.mailing-form { display: flex; gap: 8px; margin-top: var(--s2); }
.mailing-form input {
  flex: 1 1 auto; min-width: 0; padding: 11px 14px;
  background: var(--panel-ink-2); border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm); color: var(--on-dark); font-size: 0.9rem;
}
.mailing-form input:focus { outline: none; border-color: var(--brand-on-dark); }

/* --------------------------------------------------------------------------
   14. UTILITIES / MOTION
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }

/* Rows stagger in — the only decorative motion on the site, and it is
   reporting something (data arriving). */
[data-stagger] > * { opacity: 0; transform: translateY(6px); }
[data-stagger].is-in > * {
  opacity: 1; transform: none;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 40ms; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 80ms; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 120ms; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 160ms; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 200ms; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: 240ms; }
[data-stagger].is-in > *:nth-child(8) { transition-delay: 280ms; }

.is-flashing { animation: flash 420ms var(--ease); }
@keyframes flash {
  0%   { color: #fff; }
  100% { color: var(--recovered); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  [data-stagger] > * { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-group, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  .panel { box-shadow: none; border: 1px solid #000; }
}
