/* Matt Huber site. Plain CSS, no build step. Tokens first, then base, layout, sections, print. */

:root {
  --ink: #1B2430;
  --slate: #4A5563;
  --muted: #687282;      /* was #7A8494 (3.6:1); now 4.6:1 on paper, safe for text */
  --line: #D9DEE4;
  --paper: #F7F8FA;
  --card: #FFFFFF;
  --amber: #D98B1E;      /* fills (buttons, bars, dots) */
  --amber-ui: #B8730F;   /* borders, large type: 3.6:1 on paper */
  --amber-text: #8F5806; /* small accent text: 5.5:1 on paper */
  --amber-soft: #FFF1DC;
  --success: #1E7A4A;

  --bg: var(--paper);
  --surface: var(--card);
  --text: var(--ink);
  --text-2: var(--slate);
  --rule: var(--line);
  --accent: var(--amber-text);
  --accent-line: var(--amber-ui);
  --on-amber: #1B2430;
  --grid-line: rgba(27, 36, 48, .05);
  --cta-bg: var(--amber-soft);
  --band-bg: #1B2430;
  --band-fg: #F7F8FA;
  --band-fg-2: #C3CAD3;
  --band-fg-3: #A3ADBA;  /* sources on the band: 6.9:1 light, 8.5:1 dark */
  --band-rule: #3A4553;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-kicker: .8125rem;
  --fs-h1: clamp(2.1rem, 1.35rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  --fs-h3: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  --fs-stat: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);

  --max: 1120px;
  --gutter: 16px;
  --space: clamp(4rem, 2.8rem + 5vw, 7rem);
  --radius: 6px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171E;
    --surface: #1A212B;
    --text: #E8ECF1;
    --text-2: #B4BCC7;
    --muted: #8E98A7;
    --rule: #2C3542;
    --accent: #E9A23B;
    --accent-line: #E9A23B;
    --amber: #E9A23B;
    --on-amber: #12171E;
    --success: #4CC38A;
    --grid-line: rgba(232, 236, 241, .04);
    --cta-bg: #2A2216;
    --band-bg: #0B0F14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12171E;
  --surface: #1A212B;
  --text: #E8ECF1;
  --text-2: #B4BCC7;
  --muted: #8E98A7;
  --rule: #2C3542;
  --accent: #E9A23B;
  --accent-line: #E9A23B;
  --amber: #E9A23B;
  --on-amber: #12171E;
  --success: #4CC38A;
  --grid-line: rgba(232, 236, 241, .04);
  --cta-bg: #2A2216;
  --band-bg: #0B0F14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; font-weight: 650; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: .5rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mark toggle" "nav nav";
  align-items: center; column-gap: 1rem;
}
.wordmark {
  grid-area: mark; display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -.01em;
  padding-block: .55rem; justify-self: start;
}
.wordmark-mark {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600; line-height: 1;
  padding: .35rem .4rem; border: 1px solid var(--text); border-radius: 3px;
  box-shadow: inset 0 -3px 0 var(--amber);
}
.site-nav { grid-area: nav; margin-inline: calc(var(--gutter) * -1); overflow: visible; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .15rem .25rem; padding: 0 var(--gutter) .4rem; white-space: nowrap; }
.site-nav a {
  display: block; padding: .3rem .5rem; border-radius: 4px; line-height: 1.4;
  color: var(--text-2); text-decoration: none; font-size: var(--fs-small); font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 4px 4px 0 0; }
.theme-toggle {
  grid-area: toggle; display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--text-2); background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-2); }
.theme-toggle[hidden] { display: none; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }

@media (max-width: 899px) { :root { --header-h: 88px; } }
@media (max-width: 560px) { :root { --header-h: 116px; } }
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "mark nav toggle"; }
  .site-nav { margin: 0; justify-self: end; overflow: visible; }
  .site-nav ul { padding: 0; }
  .wordmark { padding-block: .8rem; }
  .site-nav a { padding: .4rem .6rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text-2); }
.btn-secondary:hover { border-color: var(--text); background: var(--surface); }

/* Shared type */
.kicker, .sec-idx, .specialties-label, .cl-label, .step-num, .who-label, .first-shape {
  font-family: var(--font-mono); font-size: var(--fs-kicker); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
}
.kicker { color: var(--accent); margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--text-2); margin-top: 1.25rem; max-width: 56ch; }

/* Hero */
.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { max-width: 20ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-stat { margin-top: 1.75rem; padding-left: 1rem; border-left: 3px solid var(--amber); max-width: 52ch; }
.hero-stat p { margin: 0; }
.hs-num { font-family: var(--font-mono); font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.hs-line { margin-top: .5rem !important; font-weight: 500; }
.hs-src { margin-top: .4rem !important; font-size: .8125rem; color: var(--text-2); }
.specialties { margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.specialties-label { color: var(--text-2); margin: 0; font-size: .75rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: .3rem 0; }
.spec-list li { font-size: var(--fs-small); color: var(--text-2); }
.spec-list li + li::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 .7rem; vertical-align: -.1em; background: var(--text-2); opacity: .45; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; }
}

/* Portraits */
.portrait {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
}
.portrait .monogram { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .mg-bar { fill: var(--amber); }
.portrait img {
  position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  color: transparent; font-size: 0;
}
.portrait.no-img img { display: none; }
.portrait-hero { max-width: 340px; width: 100%; justify-self: center; }
.portrait-about { aspect-ratio: 1 / 1; max-width: 320px; }
.portrait-about img { object-position: 50% 20%; }
@media (min-width: 900px) { .portrait-hero { max-width: none; justify-self: end; } }

/* Sections */
.section { padding-block: var(--space); border-bottom: 1px solid var(--rule); }
.section-alt { background: var(--surface); }
.sec-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.sec-idx { color: var(--accent); margin-bottom: .75rem; display: flex; align-items: center; gap: .75rem; }
.sec-idx::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--accent-line); }
.sec-intro { color: var(--text-2); margin-top: 1rem; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); }

/* 12-column grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
  .grid-3 > * { grid-column: span 4; }
}

/* Perspective */
.block { padding-top: 1.25rem; border-top: 2px solid var(--text); }
.block-label { font-size: var(--fs-h3); margin-bottom: .75rem; }
.block p { color: var(--text-2); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-2); font-size: .975rem; }
.icon { color: var(--accent); margin-bottom: 1.1rem; }

/* Mid-page CTA bands */
.cta-mid { background: var(--cta-bg); border-bottom: 1px solid var(--rule); padding-block: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.cta-mid-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-mid-text { margin: 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); font-weight: 600; max-width: 60ch; }

/* Lanes */
.lanes { display: grid; gap: 1.25rem; }
.lane { display: flex; flex-direction: column; }
.lane h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.lane .lane-intro { color: var(--text); font-size: 1rem; }
.lane-list { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.lane-list li { padding: 1rem 0 1rem 1rem; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: .95rem; position: relative; }
.lane-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lane-list li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 6px; height: 6px; background: var(--amber); }
.lane-list strong { color: var(--text); font-weight: 650; }
@media (min-width: 900px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }

/* Steps */
.steps { display: grid; gap: 0; counter-reset: none; }
.step { position: relative; padding: 1.5rem 0 1.5rem 0; border-top: 1px solid var(--rule); }
.step-num {
  display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500;
  letter-spacing: 0; color: var(--accent); margin-bottom: .75rem; line-height: 1;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--text-2); font-size: .975rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .step { border-top: 2px solid var(--rule); padding: 1.5rem 0 0; }
  .step::before {
    content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px;
    background: var(--amber); border-radius: 50%;
  }
}

/* Who I work with: dark band */
.section-band { background: var(--band-bg); color: var(--band-fg); border-bottom: 0; --accent: #E9A23B; --accent-line: #E9A23B; }
.who { display: grid; gap: 2.5rem; }
.who-tile { display: flex; flex-direction: column; padding-left: 1rem; border-left: 1px solid var(--band-rule); }
.who-tile p { margin: 0; }
.who-label { color: var(--accent); margin-bottom: 1rem; line-height: 1.4; }
.who-stat { font-family: var(--font-mono); font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.who-line { margin-top: .6rem !important; color: var(--band-fg); font-weight: 500; }
.who-src { margin-top: .4rem !important; font-size: .8125rem; color: var(--band-fg-3); }
.who-promise { margin-top: 1.1rem !important; padding-top: 1.1rem; border-top: 1px solid var(--band-rule); color: var(--band-fg-2); font-size: .975rem; }
@media (min-width: 900px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }

/* Work */
.work-story { margin-bottom: 1.25rem; }

/* About */
.about-grid { display: grid; gap: 3rem; }
.prose p { color: var(--text-2); }
.prose p:first-child { color: var(--text); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); max-width: 68ch; }
  .portrait-about { margin-top: 4.5rem; justify-self: end; width: 100%; }
}

/* First engagement */
.first-list { display: grid; gap: 0; border-top: 2px solid var(--text); }
.first-item { display: flex; flex-direction: column; gap: .5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.first-item p { margin: 0; }
.first-item h3 { font-size: 1.0625rem; }
.first-what { color: var(--text-2); font-size: .95rem; }
.first-shape { color: var(--accent); font-size: .75rem; margin-top: auto !important; padding-top: .25rem; }
.first-note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 900px) {
  .first-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; border-top: 0; }
  .first-item { border-top: 2px solid var(--text); border-bottom: 0; }
}

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-links { display: grid; gap: .9rem; }
.contact-links li { display: grid; gap: .2rem; }
.contact-reply { margin-top: .75rem; font-size: var(--fs-small); color: var(--text-2); }
.cl-label { color: var(--text-2); font-size: .72rem; }
.contact-links a { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 600; overflow-wrap: anywhere; }
.contact-form {
  display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow);
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--text-2); border-radius: 4px; padding: .65rem .75rem; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 1px; border-color: var(--accent-line); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  color: var(--success); font-weight: 600; padding: .75rem 1rem;
  border: 1px solid var(--success); border-radius: 4px;
}
.form-success[hidden] { display: none; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; } }

/* Footer */
.site-footer { padding-block: 2rem; font-size: var(--fs-small); color: var(--text-2); }
.footer-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.footer-row p { margin: 0; max-width: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* Print: a clean one-to-two page summary */
@media print {
  @page { margin: 14mm 14mm; }
  :root { --text: #000; --text-2: #333; --muted: #333; --rule: #bbb; --bg: #fff; --surface: #fff; --accent: #000; --accent-line: #000; --amber: #000; --band-fg: #000; --band-fg-2: #333; --band-fg-3: #333; --band-rule: #999; }
  body { font-size: 9.5pt; line-height: 1.4; background: #fff; color: #000; }
  .site-header { position: static; border: 0; backdrop-filter: none; background: none; }
  .wordmark { padding: 0; font-size: 14pt; }
  .wordmark-mark { display: none; }
  .wrap { max-width: none; padding: 0; }
  .hero, .section, .section-alt, .section-band { padding: 0 0 8pt; margin: 0 0 8pt; background: none; color: #000; border: 0; border-bottom: .5pt solid #bbb; }
  .section-band { --accent: #000; }
  .hero { background-image: none; }
  .hero-grid, .about-grid, .contact-grid { display: block; }
  h1 { font-size: 18pt; } h2 { font-size: 12pt; } h3 { font-size: 10pt; }
  .lede { font-size: 10.5pt; margin-top: 4pt; }
  .kicker { margin-bottom: 4pt; }
  .sec-head { margin-bottom: 6pt; }
  .hero-stat { margin-top: 6pt; border-left: 1.5pt solid #000; padding-left: 5pt; }
  .hs-num, .who-stat { font-size: 14pt; }
  .specialties { margin-top: 6pt; padding-top: 0; border: 0; }
  .grid, .lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6pt 14pt; }
  .grid > * { grid-column: auto !important; }
  .card { border: 0; padding: 0; box-shadow: none; background: none; break-inside: avoid; }
  .lane-list li { padding: 2pt 0 2pt 6pt; }
  .lane-list li::before { top: .55em; width: 3pt; height: 3pt; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10pt; }
  .step { padding: 0; border: 0; } .step::before { display: none; }
  .step-num { font-size: 11pt; margin-bottom: 2pt; }
  .who-tile { border-left: .5pt solid #999; padding-left: 5pt; break-inside: avoid; }
  .who-label { margin-bottom: 2pt; }
  .who-promise { margin-top: 3pt !important; padding-top: 3pt; }
  .block, .first-item { border-top: .5pt solid #000; padding-top: 4pt; break-inside: avoid; }
  .first-list { border: 0; }
  .work-story { margin-bottom: 3pt; }
  a { color: #000; text-decoration: none; }
  .contact-links a[href^="mailto"]::after, .contact-links a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 8.5pt; }
  .site-footer { padding: 0; }
  h2, h3 { break-after: avoid; }
}

.footer-sources { font-size: .78rem; color: var(--text-2); max-width: 68ch; margin-top: .75rem; line-height: 1.5; }
.footer-sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media print { .footer-sources { display: block; } }

/* Single-lane services: the three bullets become three columns on desktop */
@media (min-width: 900px) {
  .lanes.single { grid-template-columns: minmax(0, 1fr); }
  .lanes.single .lane-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
  .lanes.single .lane-list li { border-bottom: 0; padding-bottom: 0; }
}
/* Fractional CTO section */
.cto-grid { display: grid; gap: 2rem; }
.cto-intro { font-size: 1.05rem; max-width: 60ch; }
.cto-note { margin-top: 1.25rem; color: var(--text-2); font-size: .95rem; max-width: 60ch; }
.cto-main .cta-row { margin-top: 1.5rem; }
.cto-stat { align-self: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); border-top: 3px solid var(--amber); }
.cto-stat p { margin: 0; }
.cto-stat-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem !important; }
.cto-stat-num { font-family: var(--font-mono); font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.cto-stat-line { margin-top: .6rem !important; font-weight: 500; }
.cto-stat-src { margin-top: .4rem !important; font-size: .8125rem; color: var(--text-2); }
.cto-stat-promise { margin-top: 1.1rem !important; padding-top: 1.1rem; border-top: 1px solid var(--rule); color: var(--text-2); font-size: .975rem; }
@media (min-width: 900px) { .cto-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: start; } }

/* Case studies */
.sec-intro { margin: -0.5rem 0 1.75rem; color: var(--text-2); max-width: 60ch; }
.cases { display: grid; gap: 1.25rem; }
.case { padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; }
.case-kicker { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.case h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); margin: 0 0 .9rem; }
.case-p { margin: 0 0 .8rem; color: var(--text-2); font-size: .95rem; }
.case-label { display: block; font-weight: 650; color: var(--text); font-size: .85rem; margin-bottom: .15rem; }
.case-result { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--rule); font-weight: 600; color: var(--text); font-size: .975rem; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
