/* Redvann. Ink ramp, brand red as the only accent. */
:root {
  color-scheme: dark;
  --bg-deep: #07080c;
  --bg: #0b0d12;          /* matches the logo tile */
  --card: #11141b;
  --raised: #1a1e27;
  --line: rgba(238, 240, 245, .08);
  --line-strong: rgba(238, 240, 245, .16);
  --ink: #eef0f5;
  --ink-2: #a3a9b8;
  --ink-3: #7a8296;
  --red: #de1c2d;          /* brand */
  --red-press: #c41827;
  --red-ink: #f0525e;      /* red used as text on dark, 5.4:1 */
  --ok: #4cc38a;
  --red-line: rgba(240, 82, 94, .35);
  --ok-line: rgba(76, 195, 138, .35);
  --line-hover: rgba(238, 240, 245, .24);
  --raised-hover: #222733;
  --card-hover: #141821;
  --ink-strong: #fff;
  --nav-bg: rgba(11, 13, 18, .88);
  --float-shadow: 0 24px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 64px;
}

/* Light theme. Dark stays the default; theme-init.js sets data-theme from the saved choice. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #eceef2;
  --bg: #f6f7f9;
  --card: #ffffff;
  --raised: #eceff3;
  --line: rgba(17, 24, 39, .09);
  --line-strong: rgba(17, 24, 39, .16);
  --ink: #111827;
  --ink-2: #48505f;
  --ink-3: #5f6878;          /* 5.1:1 on the page background */
  --red: #de1c2d;            /* brand, white text on it is 4.9:1 */
  --red-press: #c41827;
  --red-ink: #b3121f;        /* red used as text on light, 6.4:1 */
  --ok: #12784a;
  --red-line: rgba(179, 18, 31, .3);
  --ok-line: rgba(18, 120, 74, .3);
  --line-hover: rgba(17, 24, 39, .3);
  --raised-hover: #e2e6ec;
  --card-hover: #fbfbfc;
  --ink-strong: #000;
  --nav-bg: rgba(246, 247, 249, .9);
  --float-shadow: 0 16px 40px rgba(17, 24, 39, .12), 0 1px 2px rgba(17, 24, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; font-size: 14px;
}
.skip:focus { top: 12px; }

.link { color: var(--red-ink); border-bottom: 1px solid var(--red-line); transition: border-color .15s var(--ease); }
.link:hover { border-color: var(--red-ink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; line-height: 1; }
.brand img { border-radius: 8px; }
.links { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.theme-toggle {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none; cursor: pointer;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.theme-toggle:hover { background: var(--raised); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.links a:not(.btn) { transition: color .15s var(--ease); }
.links a:not(.btn):hover { color: var(--ink); }
.menu { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; cursor: pointer; place-items: center; }
.menu svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 10px; border: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-primary:hover { background: var(--red-press); }
.btn-secondary { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06); }
.btn-secondary:hover { background: var(--raised-hover); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start;
  padding: 32px 0 40px;
}
.hero-copy { max-width: 560px; padding-top: 48px; animation: enter .5s var(--ease) both; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; }
.lead { margin-top: 24px; color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 36rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.stage { position: relative; height: 560px; animation: enter .5s var(--ease) .06s both; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.finding {
  position: absolute; left: -16px; bottom: 0; width: 300px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 20px;
  box-shadow: var(--float-shadow);
}
.finding-head { display: flex; align-items: center; justify-content: space-between; }
.finding-id { font-size: 12px; color: var(--ink-3); }
.sev {
  font-size: 12px; line-height: 16px; color: var(--red-ink);
  padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--red-line);
  font-variant-numeric: tabular-nums;
}
.sev-ok { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.sev-neutral { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.finding-title { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.finding-title .mono { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.finding-meta { margin-top: 16px; display: grid; gap: 8px; font-size: 13px; }
.finding-meta div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.finding-meta dt { color: var(--ink-3); }
.finding-meta dd { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.finding-meta dd.mono { font-size: 12px; }
.ok-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.path { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.path li { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 8px; position: relative; }
.path li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink-3); }
.path li:last-child::before { background: var(--ok); }
.finding figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* Coverage */
.coverage { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.coverage-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; }
.cov-label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.cov-group ul { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-3); }

/* Sections */
.section { padding: 32px 0 48px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; }
.kicker { font-size: 12px; line-height: 16px; color: var(--red-ink); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.sub { margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 720px; }
h3 { font-weight: 500; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: border-color .15s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.tag { font-size: 12px; color: var(--ink-3); }
.card h3 { margin-top: 12px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.card > p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ticks { margin-top: 16px; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--ink-2); word-spacing: -2px; }
.flow span { margin: 0 2px; color: var(--ink-3); }
.incl { margin-top: auto; padding-top: 16px; }
.incl summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 500; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line);
  transition: color .15s var(--ease);
}
.incl summary::-webkit-details-marker { display: none; }
.incl summary::after {
  content: ""; margin-left: auto; width: 16px; height: 16px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease);
}
.incl[open] summary::after { transform: rotate(180deg); }
.incl summary:hover { color: var(--ink-strong); }
.incl-n { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.incl .ticks { margin-top: 12px; }
.incl .flow { margin-top: 12px; padding-top: 0; }

/* Why */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.pillar svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-top: 20px; font-size: 18px; }
.pillar p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 20px; right: 0; top: 20px; height: 1px; background: var(--line-strong); }
.steps li { position: relative; padding-top: 64px; }
.n {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: var(--ink-2);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.steps h3 { font-size: 18px; }
.steps p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.two { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  transition: color .15s var(--ease);
}
.faq summary:hover { color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 16px; height: 16px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 24px 0; color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px;
}
.contact .ticks { margin-top: 24px; }
.mailline { margin-top: 24px; font-size: 15px; }
.form { display: grid; gap: 16px; align-content: start; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px;
  font: inherit; font-size: 15px; line-height: 1.5; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form textarea { resize: vertical; min-height: 128px; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8296' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.form select option { background: var(--card); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line-hover); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red-ink); box-shadow: 0 0 0 3px rgba(222, 28, 45, .2); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 14px; color: var(--ink-2); }
.status.ok { color: var(--ok); }
.status.err { color: var(--red-ink); }

/* Footer */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-h { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.foot-grid a:not(.brand) { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; transition: color .15s var(--ease); }
.foot-grid a:not(.brand):hover { color: var(--ink); }
.foot-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; max-width: 320px; }
.foot-bar { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.industry { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.industry svg, .resource svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.industry h3 { margin-top: 16px; font-size: 18px; }
.industry p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* Credentials */
.creds { margin-top: 16px; display: flex; align-items: center; gap: 32px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); }
.creds-label { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.creds ul { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.creds li { display: grid; gap: 2px; }
.cred-name { font-weight: 500; font-size: 15px; }
.cred-desc { font-size: 13px; color: var(--ink-3); }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.case-facts { margin-top: 24px; display: grid; gap: 12px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.case-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; }
.case-facts dt { color: var(--ink-3); }
.case-facts dd { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.timeline { position: relative; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 24px 56px; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 36px; bottom: 44px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 12px 0; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 16px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--red-ink);
}
.timeline li.t-done::before { background: var(--ok); box-shadow: none; }
.t-step { font-size: 12px; color: var(--ink-3); }
.t-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ttp {
  font-size: 11px; line-height: 16px; color: var(--ink-2); padding: 0 6px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: color .15s var(--ease), box-shadow .15s var(--ease);
}
.ttp:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.case-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); }
.timeline li.t-done .t-step { color: var(--ok); }
.timeline p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.timeline li.t-done p { color: var(--ink); }

/* Insights */
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head-row .btn { flex: none; }
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.post {
  display: flex; flex-direction: column; padding: 24px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.post:hover { border-color: var(--line-strong); background: var(--card-hover); }
.post-meta { font-size: 12px; color: var(--ink-3); }
.post h3 { margin-top: 12px; font-size: 17px; line-height: 1.35; }
.post p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* Resources */
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.resource { display: grid; grid-template-columns: 20px 1fr; gap: 16px; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.resource svg { margin-top: 2px; }
.resource h3 { font-size: 18px; }
.resource p { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 44ch; }
.resource .btn { margin-top: 20px; gap: 8px; }
.file-meta { font-size: 11px; color: var(--ink-3); }

.form-note { font-size: 13px; color: var(--ink-3); }
.foot-h-gap { margin-top: 24px; }

/* Sub pages: legal, blog */
.page { padding: 80px 0 112px; }
.crumbs { font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 16px; }
.doc .doc-meta { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.doc .lede { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin-top: 48px; }
.doc h3 { font-size: 17px; margin-top: 28px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.doc p { margin-top: 16px; }
.doc ul, .doc ol { margin-top: 16px; padding-left: 20px; display: grid; gap: 8px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc code { font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--raised); padding: 2px 6px; border-radius: 4px; }
.doc a:not(.btn) { color: var(--red-ink); border-bottom: 1px solid var(--red-line); }
.doc a:not(.btn):hover { border-color: var(--red-ink); }
.facts { margin-top: 32px; display: grid; gap: 8px; padding: 20px 24px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink-2); }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 16px; }
.sources li { font-size: 14px; }
.note { margin-top: 32px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px !important; color: var(--ink-3) !important; }
.doc-cta { margin-top: 48px; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.doc-cta h2 { margin-top: 0; font-size: 20px; }
.doc-cta .btn { margin-top: 20px; }
.posts-page { margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Article with "More insights" sidebar */
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 64px; align-items: start; }
.more { position: sticky; top: calc(var(--nav-h) + 32px); padding-top: 4px; }
.more-h { font-size: 13px; font-weight: 500; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.more-list { display: grid; }
.more-item { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.more-title { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); transition: color .15s var(--ease); }
.more-item:hover .more-title { color: var(--red-ink); }
.more-all { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.more-all:hover { color: var(--ink); }
.more-cta { margin-top: 32px; padding: 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.more-cta p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1180px) {
  .services-grid, .industries, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .finding { width: 280px; left: 0; }
}
@media (max-width: 960px) {
  .menu { display: grid; }
  .theme-toggle { margin-left: auto; }
  .links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 12px 0; font-size: 15px; }
  .links .btn { margin-top: 8px; height: 44px; }

  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 40px; }
  .hero-copy { padding-top: 0; }
  .stage { height: auto; display: flex; flex-direction: column; align-items: center; }
  .stage canvas { position: relative; inset: auto; height: 360px; }
  .finding { position: relative; left: auto; bottom: auto; width: min(100%, 380px); margin-top: -40px; }

  .coverage-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .section { padding: 28px 0 40px; }
  .pillars { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; margin-top: 24px; }
  .steps::before { display: none; }
  .two, .contact { grid-template-columns: 1fr; gap: 32px; }
  .case { grid-template-columns: 1fr; gap: 40px; }
  .resources { grid-template-columns: 1fr; }
  .creds { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .page { padding: 56px 0 80px; }
  .article-layout { grid-template-columns: 1fr; gap: 56px; }
  .more { position: static; }
  .contact { padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 auto; }
  .stage canvas { height: 300px; }
  .services-grid, .industries, .posts, .posts-page { grid-template-columns: 1fr; }
  .facts div, .case-facts div { grid-template-columns: 1fr; gap: 2px; }
  .resource { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .contact { padding: 24px 16px; border-radius: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
