/* Data Department · editorial single column (max 1200px) of full-bleed bands.
   Serif display for claims, sans for explanation, mono for facts and labels. */
@import url("../fonts/fonts.css");

:root {
  --paper: #FFFFFF;
  --ink: #141517;
  --muted: #4A4C51;
  --line: #E3E0DA;
  --soft: #F5F3EF;
  --accent: #B23D0F;
  --accent-strong: #8E2F09;
  --accent-ink: #FFFFFF;
  --band: #141517;
  --band-ink: #FFFFFF;
  --band-muted: #CFCCC6;
  --band-accent: #F29B6A;
  --ok: #1E6B3A;
  --err: #A4161A;
  --focus: #1F5FAD;
  --logo-panel: #FFFFFF;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.3125rem;
  --step-3: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --step-5: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121315; --ink: #ECEAE5; --muted: #B4B1AB; --line: #2D2F33; --soft: #1A1C1F;
    --accent: #F0905C; --accent-strong: #F6B18B; --accent-ink: #141517; --band: #1E2023; --band-ink: #ECEAE5;
    --band-muted: #B4B1AB; --band-accent: #F0905C; --ok: #6FCF97; --err: #FF8A80; --focus: #8AB6F0;
    --logo-panel: #F3F1EC; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121315; --ink: #ECEAE5; --muted: #B4B1AB; --line: #2D2F33; --soft: #1A1C1F;
  --accent: #F0905C; --accent-strong: #F6B18B; --accent-ink: #141517; --band: #1E2023; --band-ink: #ECEAE5;
  --band-muted: #B4B1AB; --band-accent: #F0905C; --ok: #6FCF97; --err: #FF8A80; --focus: #8AB6F0;
  --logo-panel: #F3F1EC; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent); margin: 0; font-weight: 500;
}
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; margin: 0; line-height: 1.08; }
.h1 { font-size: var(--step-5); line-height: 1.03; }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-3); }
.lede { font-size: var(--step-2); line-height: 1.5; color: var(--muted); max-width: 40em; margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; font: 500 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-invert { background: var(--accent-ink); color: var(--accent); }
.btn-invert:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow-link { font-weight: 500; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { color: var(--accent-ink); min-height: 44px; padding: 0 16px; }
.nav .btn:hover { color: var(--paper); }
.lang { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.lang a { color: var(--muted); font-size: 0.8125rem; }
.lang [aria-current="true"] { color: var(--ink); font-weight: 500; }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); font: 500 0.9375rem var(--font-body); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .lang { padding: 14px 0; }
  .nav .btn { margin-top: 12px; }
}
@media (max-width: 400px) { .brand img { height: 38px; } }

/* Breadcrumbs */
.crumbs { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); padding-top: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px); }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.answer { font-size: var(--step-1); color: var(--muted); max-width: 40em; margin: 0; }
.trust-line { font-size: 0.875rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.trust-line span::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.ladder { flex: 1 1 320px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rung { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 1px solid var(--line); font-size: 0.9375rem; background: var(--paper); }
.rung span:last-child { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); text-align: right; }
.rung:nth-child(2) { margin-left: 5%; } .rung:nth-child(3) { margin-left: 10%; } .rung:nth-child(4) { margin-left: 15%; }
.rung.final { margin-left: 20%; background: var(--band); color: var(--band-ink); border-color: var(--band); font-weight: 600; }
.rung.final span:last-child { color: var(--band-accent); }
.ladder figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 6px; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--line); }
.page-hero .h1 { font-size: var(--step-4); max-width: 22em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }

/* Logo strip */
.logos { background: var(--soft); border-block: 1px solid var(--line); }
.logos-inner { padding-block: 36px; display: flex; flex-direction: column; gap: 20px; }
.logos-title { margin: 0; font-size: 0.875rem; color: var(--muted); text-align: center; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-row li { flex: 0 0 calc((100% - 72px) / 7); min-width: 0; }
.logo-row li { background: var(--logo-panel); display: flex; align-items: center; justify-content: center; height: 76px; padding: 12px 16px; border: 1px solid var(--line); }
.logo-row img { max-height: 44px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .78; transition: filter .2s, opacity .2s; }
.logo-row li:hover img { filter: none; opacity: 1; }
@media (max-width: 1000px) { .logo-row { gap: 8px; } .logo-row li { flex-basis: calc((100% - 48px) / 7); padding: 8px; height: 64px; } }
@media (max-width: 640px) { .logo-row { gap: 12px; } .logo-row li { flex-basis: calc((100% - 12px) / 2); padding: 12px 16px; height: 76px; } }

/* Results band */
.band { background: var(--band); color: var(--band-ink); }
.band a { color: var(--band-accent); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 32px; padding-block: 56px 24px; }
.result { display: flex; flex-direction: column; gap: 8px; }
.result-num { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.result p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--band-muted); }
.result .tag { color: var(--band-accent); }
.band-note { margin: 0; padding-bottom: 40px; font-size: 0.8125rem; color: var(--band-muted); font-family: var(--font-mono); }

/* Section head */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.section-head p { margin: 0; max-width: 34em; color: var(--muted); font-size: var(--step-1); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
a.card:hover { background: var(--soft); color: var(--ink); }
.card-cta { background: var(--band); color: var(--band-ink); }
.card-cta p { color: var(--band-muted); }
.card-cta .tag, .card-cta .more { color: var(--band-accent); }
a.card-cta:hover { background: var(--accent); color: var(--accent-ink); }
a.card-cta:hover p, a.card-cta:hover .tag, a.card-cta:hover .more { color: var(--accent-ink); }
.card h3 { margin: 0; font-size: var(--step-2); font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; font-size: 0.9375rem; color: var(--accent); font-weight: 500; }
.tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.case-card .metric { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.case-card .metric-label { font-size: 0.9375rem; color: var(--muted); }
.status { display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); align-self: flex-start; }

/* Soft band, steps */
.soft { background: var(--soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.step { border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step:last-child { border-top-color: var(--accent); }
.step-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.step-meta b { color: var(--ink); font-weight: 500; }
.step h3 { margin: 0; font-size: var(--step-2); font-weight: 600; }
.step p { margin: 0; color: var(--muted); }
.principles { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 40px; }
.principle { display: flex; flex-direction: column; gap: 6px; }
.principle strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.principle span { color: var(--muted); font-size: 0.9375rem; }

/* Strength list (about) */
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 48px; }
.strength { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-direction: column; gap: 8px; }
.strength h3 { margin: 0; font-size: var(--step-1); font-weight: 600; }
.strength p { margin: 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 32px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-block: 14px; display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 1rem; }

/* Prose (articles, services, cases) */
.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: clamp(32px, 5vw, 64px); }
.prose { flex: 999 1 560px; min-width: 0; max-width: 46rem; font-size: 1.0625rem; line-height: 1.7; }
.aside { flex: 1 1 260px; min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .aside { position: static; } }
.prose > :first-child { margin-top: 0; }
.prose > p:first-of-type { font-size: var(--step-1); color: var(--ink); }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.2; margin: 2.2em 0 .6em; letter-spacing: -0.01em; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 .4em; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--soft); padding: 1px 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.aside-box { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.aside-box h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.aside-box p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.aside-box ul { margin: 0; padding-left: 1.1em; font-size: 0.9375rem; }
.aside-metric { font-family: var(--font-display); font-size: 3rem; line-height: 1; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 1.5em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.0625rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 .6em; }

/* CTA band */
.cta { background: var(--accent); color: var(--accent-ink); }
.cta a:not(.btn) { color: var(--accent-ink); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-block: clamp(48px, 7vw, 80px); }
.cta-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-copy p { margin: 0; font-size: var(--step-1); max-width: 34em; }

/* Forms */
.form-wrap { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; padding-block: clamp(32px, 5vw, 64px); }
.form-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.form-intro ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.form-intro li + li { margin-top: 6px; }
.lead-form { flex: 999 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; background: var(--soft); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.lead-form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .lead-form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem/1.4 var(--font-body);
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9375rem; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--ok); font-weight: 500; }
.form-status.err { color: var(--err); }
.form-done { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.form-done h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); }
.form-done p { margin: 0; color: var(--muted); }

/* Sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 40px; padding-block: 48px 32px; }
.footer-grid h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 20px 32px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-base a { color: var(--muted); }

/* 404 */
.notfound { padding-block: clamp(64px, 12vw, 140px); display: flex; flex-direction: column; gap: 20px; }

/* Print-free, motion */
@media (prefers-reduced-motion: no-preference) {
  .rung { animation: rise .5s ease-out both; }
  .rung:nth-child(2) { animation-delay: .08s; } .rung:nth-child(3) { animation-delay: .16s; }
  .rung:nth-child(4) { animation-delay: .24s; } .rung:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(6px); opacity: .35; } to { transform: none; opacity: 1; } }
}
