/* Specialized Capital site stylesheet. Single file, no build step. Fonts: /assets/fonts/fonts.css (self-hosted DM Sans + DM Mono).
   Direction: dark-first, restrained, editorial. Hairline rules, strict grid, one blue accent (cyan only for small details on dark).
   Motion: one subtle reveal (<300 ms) and slow ambient motion in illustrations; everything off for prefers-reduced-motion. */

:root {
  --navy: #0d1421;
  --navy-2: #101826;
  --navy-3: #141e2e;
  --ink: #0d1421;
  --blue: #1a5fc8;
  --blue-deep: #154aa0;
  --azure: #2d7bef;
  --sky: #3b8cf5;
  --cyan: #06b6d4;
  --tint: #f4f6f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --muted: #475569;
  --soft: #64748b;
  --white: #fff;
  --on-dark: #e2e8f0;
  --on-dark-muted: #a3b1c6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent-on-dark: #7db4f5;
  --radius: 4px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
  --icon-a: #f4f6f9;
  --icon-b: #e8edf4;
  --lane-a: #ffffff;
  --lane-b: #f4f6f9;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 300; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 300; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(45, 123, 239, 0.28); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 2px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }
.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; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 28px; }
.container-narrow { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 28px; }
.section { padding: clamp(64px, 8.5vw, 120px) 0; background: var(--white); }
.section.alt { background: var(--tint); }
.section.dark { background: var(--navy); color: var(--on-dark); --icon-a: #1a2638; --icon-b: #1a2638; --lane-a: #141e2e; --lane-b: #101826; }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark p { color: var(--on-dark-muted); }
.section.dark .lede { color: var(--on-dark-muted); }
.section.dark .eyebrow { color: var(--cyan); }
.section.dark a:not(.btn):not(.card):not(.row) { color: var(--accent-on-dark); }
.section:not(.alt):not(.dark) + .section:not(.alt):not(.dark), .section.alt + .section.alt { padding-top: 0; }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 7vw, 112px); align-items: start; }
.split-head h2 { margin-bottom: 0; }
.split-body > :last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .container, .container-narrow { padding-inline: 20px; }
}

/* ---------- Text ---------- */
.eyebrow {
  display: block; margin: 0 0 20px;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
  color: var(--blue);
}
.eyebrow::before { content: "// "; opacity: 0.6; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0 0 1.2em; font-weight: 300; }
.section-head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: left; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 24px; }
.meta > * + *::before { content: "/"; margin-right: 18px; color: var(--line-strong); }
.callout { background: var(--tint); border-left: 2px solid var(--blue); padding: 20px 24px; margin: 28px 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--ink); font-weight: 500; }
.section.alt .callout { background: #fff; }
.section.dark .callout { background: var(--navy-3); border-left-color: var(--cyan); color: var(--on-dark); }
.kicker-list, .checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.kicker-list li { position: relative; padding: 6px 0 6px 24px; line-height: 1.55; }
.kicker-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; background: var(--blue); }
.checklist li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); line-height: 1.55; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border: 1.5px solid var(--blue); }
.section.dark .kicker-list li::before { background: var(--cyan); }
.section.dark .checklist li { border-color: var(--line-dark); }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 4px 10px; margin-bottom: 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; align-items: center; }
.pill { border: 1px solid var(--line-strong); padding: 7px 14px; font-size: 15px; color: var(--ink); }
.disclaimer { font-size: 14px; color: var(--muted); margin-top: 28px; }
.section.dark .disclaimer { color: var(--on-dark-muted); }
.more-link { margin-top: 36px; }
.more-link a, .text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more-link a::after { content: " \2192"; }
.ico { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }

/* ---------- Prose ---------- */
.container.prose, .container-narrow.prose { max-width: 780px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 400; margin: 2.2em 0 0.6em; letter-spacing: -0.02em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #1e293b; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--blue); }
.prose a { font-weight: 500; }
.prose blockquote { margin: 1.8em 0; padding: 2px 0 2px 24px; border-left: 2px solid var(--blue); color: var(--ink); font-size: 1.15em; font-weight: 300; line-height: 1.5; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--tint); border: 1px solid var(--line); padding: 1px 5px; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: 0;
  padding: 16px 26px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--azure); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.dark .btn-ghost, .cta-band .btn-ghost, .hero-home .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.dark .btn-ghost:hover, .cta-band .btn-ghost:hover, .hero-home .btn-ghost:hover { color: #fff; border-color: #fff; }
.dark .btn-primary:hover { color: #fff; }

/* ---------- Header (dark, always) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--navy); border-bottom: 1px solid var(--line-dark); transition: border-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.2); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--sky); flex: none; }
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a.nav-link, .nav-list .sub-toggle {
  display: inline-flex; align-items: center; padding: 10px 14px; font-size: 15px; font-weight: 400; color: #cbd5e1; text-decoration: none; line-height: 1.2; background: none; border: 0;
}
.nav-list a.nav-link:hover, .nav-list .sub-toggle:hover { color: #fff; }
.nav-list a.nav-link[aria-current] { color: #fff; box-shadow: inset 0 -1px 0 var(--sky); }
.has-sub { display: flex; align-items: center; }
.has-sub > a.nav-link { padding-right: 4px; }
.sub-toggle { cursor: pointer; padding: 10px 8px 10px 2px !important; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 12px; color: #cbd5e1; text-decoration: none; font-size: 15px; }
.sub-menu a:hover { background: var(--navy-3); color: #fff; }
.sub-menu a[aria-current] { color: #fff; }
.sub-menu .sub-all { border-top: 1px solid var(--line-dark); margin-top: 6px; padding-top: 6px; }
.nav-cta { margin-left: 14px; padding: 12px 20px; font-size: 14.5px; white-space: nowrap; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line-dark); border-radius: 2px; color: #fff; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .no-js .menu-toggle { display: none; }
  .sub-menu::before { display: none; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: 8px 20px 24px; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .js .primary-nav { display: none; }
  .js .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a.nav-link { padding: 16px 2px; border-bottom: 1px solid var(--line-dark); font-size: 17px; width: 100%; box-shadow: none !important; }
  .nav-list a.nav-link[aria-current] { color: var(--sky); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a.nav-link { flex: 1; padding-right: 4px; }
  .sub-toggle { padding: 16px 8px !important; border-bottom: 1px solid var(--line-dark) !important; }
  .sub-menu { position: static; flex-basis: 100%; min-width: 0; border: 0; background: transparent; padding: 0 0 6px 14px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .no-js .sub-menu, .no-js .has-sub:hover .sub-menu { display: block; }
  .no-js .sub-toggle { display: none; }
  .sub-menu a { padding: 12px 2px; font-size: 16px; }
  .nav-cta { margin: 20px 0 0; width: 100%; padding: 16px; }
}
@media (max-width: 380px) { .brand-name { font-size: 16px; } }

/* ---------- Breadcrumbs ---------- */
.crumb-wrap { background: var(--tint); }
.breadcrumbs { padding: 20px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Page hero (light) ---------- */
.hero-page { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7.5vw, 104px); background: var(--tint); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-page h1 { max-width: 14em; margin-bottom: 24px; }
.hero-page .lede { max-width: 620px; margin-bottom: 0; }
.hero-page .actions { margin-top: 36px; }
.hero-page:first-child { padding-top: clamp(56px, 7vw, 96px); }
.hero-page.has-art > .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-page .hero-art { width: 100%; max-width: 400px; justify-self: end; }
.hero-page .hero-art.has-illo { max-width: 520px; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero-page.has-art > .container { grid-template-columns: minmax(0, 1fr); }
  .hero-page .hero-art { display: none; }
}

/* ---------- Home hero (dark) ---------- */
.hero-page.hero-home {
  padding: clamp(72px, 10vw, 148px) 0 clamp(64px, 8vw, 120px); background: var(--navy); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); isolation: isolate;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 80% 20%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-home h1 { color: #fff; font-size: clamp(46px, 7vw, 104px); line-height: 1; letter-spacing: -0.035em; max-width: 7.5em; margin-bottom: 28px; }
.hero-home h1 .accent { color: var(--accent-on-dark); white-space: nowrap; }
.hero-home .eyebrow { color: var(--cyan); }
.hero-home .lede { color: var(--on-dark-muted); max-width: 30em; font-size: clamp(18px, 1.7vw, 21px); }
.hero-home .actions { margin-top: 40px; }
.hero-visual, .hero-illo { position: relative; width: 100%; }
.hero-visual { aspect-ratio: 1 / 0.92; min-height: 280px; }
.hero-visual .field { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.hero-illo svg { width: 100%; height: auto; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { aspect-ratio: 16 / 9; min-height: 0; order: 2; }
  .hero-illo { max-width: 560px; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; color: var(--ink); text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.section.alt .card { background: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.card p + p { margin-top: 0.8em; }
.card .eyebrow { margin-bottom: 14px; font-size: 11.5px; }
.card.link:hover { color: var(--ink); border-color: var(--blue); }
.card.link:focus-visible { outline-offset: 4px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 20px; color: var(--blue); }
.card-icon svg { width: 28px; height: 28px; }
.card-link { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--blue); }
.card-link::after { content: "\2192"; transition: transform 0.2s ease; }
.card.link:hover .card-link::after { transform: translateX(4px); }
.section.dark .card { background: var(--navy-3); border-color: var(--line-dark); color: var(--on-dark); }
.section.dark .card p { color: var(--on-dark-muted); }
.section.dark .card-icon, .section.dark .card-link { color: var(--accent-on-dark); }
.section.dark .card.link:hover { border-color: var(--sky); }

.step { position: relative; padding: 22px 0 0; border-top: 1px solid var(--ink); }
.step-num { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }
.section.dark .step { border-top-color: rgba(255, 255, 255, 0.5); }
.section.dark .step-num { color: var(--cyan); }
.related .card h3 { font-size: 18px; }
.related .card p { font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.4; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1.5px 14px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--blue), var(--blue)) center / 14px 1.5px no-repeat; }
.faq summary:hover { color: var(--blue); }
.faq .faq-a { padding: 0 40px 28px 0; color: #1e293b; max-width: 680px; }
.faq .faq-a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(64px, 8vw, 112px) 0; background: var(--navy-2); border-top: 1px solid var(--line-dark); }
.cta-band .field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.6; -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 90%); mask-image: linear-gradient(90deg, transparent 25%, #000 90%); }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-band .eyebrow { color: var(--cyan); }
.cta-band h2 { color: #fff; margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 46px); max-width: 15em; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 520px; font-size: 18px; font-weight: 300; }
.cta-band .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0f18; color: var(--on-dark-muted); font-size: 15px; padding: clamp(56px, 7vw, 88px) 0 40px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-statement { margin: 0; max-width: 12em; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 300; color: #fff; }
.footer-contact { margin: 0; }
.footer-contact a { color: #fff; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--sky); padding-bottom: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { color: var(--on-dark-muted); max-width: 260px; margin: 18px 0 0; }
.site-footer h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 11px; }
.site-footer li a { color: #cbd5e1; text-decoration: none; transition: color 0.15s ease; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; color: var(--on-dark-muted); font-size: 13.5px; line-height: 1.55; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { max-width: 640px; }
.footer-disclaimer a { color: #cbd5e1; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Editorial parts: statement, rows, principles ---------- */
.pos-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(40px, 7vw, 112px); border-top: 1px solid var(--ink); padding-top: 28px; }
.section.dark .pos-grid { border-top-color: rgba(255, 255, 255, 0.5); }
.pos-grid .eyebrow { margin: 4px 0 0; }
.pos-text { margin: 0 0 1em; max-width: 24em; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 300; color: var(--ink); }
.pos-text strong { font-weight: 400; color: var(--blue); }
.pos-body { max-width: 560px; color: var(--muted); font-size: 18px; font-weight: 300; }
.pos-body p:last-child { margin-bottom: 0; }
.section.dark .pos-text { color: #fff; }
.section.dark .pos-text strong { color: var(--accent-on-dark); }
@media (max-width: 820px) { .pos-grid { grid-template-columns: minmax(0, 1fr); } }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr) 40px; gap: 12px 32px; align-items: baseline; padding: clamp(26px, 3vw, 40px) 0; color: var(--ink); text-decoration: none; transition: padding-left 0.25s ease; }
.row-n { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--soft); }
.row-t { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 300; transition: color 0.2s ease; }
.row-d { margin: 0; max-width: 28em; font-size: 17px; color: var(--muted); }
.row-go { justify-self: end; font-size: 22px; color: var(--blue); transition: transform 0.25s ease; }
a.row:hover { color: var(--ink); padding-left: 10px; }
a.row:hover .row-t { color: var(--blue); }
a.row:hover .row-go { transform: translateX(4px); }
a.row:focus-visible { outline-offset: -3px; }
.rows.static .row { padding-left: 0; }
.rows.slim .row { grid-template-columns: 72px minmax(0, 1fr) 40px; padding: 24px 0; }
.rows.slim .row-t { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.section.dark .rows { border-top-color: rgba(255, 255, 255, 0.5); }
.section.dark .rows li { border-bottom-color: var(--line-dark); }
.section.dark .row, .section.dark a.row:hover { color: #fff; }
.section.dark .row-d { color: var(--on-dark-muted); }
.section.dark a.row:hover .row-t, .section.dark .row-go { color: var(--accent-on-dark); }
@media (max-width: 820px) {
  .row { grid-template-columns: 44px minmax(0, 1fr) 32px; }
  .row-d { grid-column: 2 / -1; grid-row: 2; }
  .row-go { grid-row: 1; grid-column: 3; }
  .rows.slim .row { grid-template-columns: 44px minmax(0, 1fr) 32px; }
}

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principles li { border-top: 1px solid var(--ink); padding-top: 22px; }
.principles h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 10px; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }
.section.dark .principles li { border-top-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 820px) { .principles { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.route { padding: clamp(28px, 3.4vw, 48px); min-height: 280px; display: flex; flex-direction: column; }
.route h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.route p { font-size: 17px; }
.route .card-link { margin-top: auto; padding-top: 28px; }
@media (max-width: 720px) { .routes { grid-template-columns: minmax(0, 1fr); } .route { min-height: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); }
.form-card h2 { font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.form-card > p { color: var(--muted); }
.field { margin: 0 0 22px; }
.field label, .field .label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--soft); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 14px 14px; line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1421' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 95, 200, 0.18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { min-height: 0; margin: 4px 0 0; font-size: 14px; color: #b3261e; }
.field-error:empty { margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field-hint { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 4px; font-size: 15px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent label { font-weight: 400; margin: 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.form-status { min-height: 28px; margin: 14px 0 0; font-size: 16px; }
.form-status.is-success { color: #14633a; background: #e8f6ee; border: 1px solid #bfe3cd; padding: 14px 16px; }
.form-status.is-error { color: #8e1b14; background: #fdeeed; border: 1px solid #f2c4c0; padding: 14px 16px; }
.form-submit { margin-top: 18px; }
.form-submit .btn { min-width: 200px; }
.side-card { border-top: 1px solid var(--ink); padding: 22px 0 0; }
.side-card + .side-card { margin-top: 40px; }
.side-card h2, .side-card h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.side-card p { color: var(--muted); font-size: 16px; }
.side-card .big-mail { font-size: 20px; font-weight: 400; word-break: break-word; }
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 0; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 18px 48px; font-size: 16px; color: #1e293b; }
.next-steps li strong { font-weight: 500; }
.next-steps li::before { content: "0" counter(ns); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--blue); }
@media (max-width: 920px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Legal and 404 ---------- */
.page-legal .hero-page { padding-bottom: 48px; }
.page-legal .prose h2 { font-size: 24px; margin-top: 1.8em; }
.notfound .big { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--blue); }

/* ---------- Generated art (tools/art.py) ---------- */
.art { display: block; width: 100%; height: auto; max-width: none; }
.art .a-plate { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.art .a-dot { fill: var(--blue); fill-opacity: 0.18; }
.art .a-tick { fill: none; stroke: var(--blue); stroke-opacity: 0.5; stroke-width: 1.5; stroke-linecap: round; }
.art .a-line { fill: none; stroke: var(--blue); stroke-opacity: 0.32; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.art .a-dash { fill: none; stroke: var(--azure); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 4 10; animation: dash 7s linear infinite; }
.art .a-ring { fill: none; stroke: var(--blue); stroke-opacity: 0.25; stroke-width: 1.2; }
.art .a-arc { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }
.art .a-arc2 { stroke: var(--azure); }
.art .a-spin { animation: spin var(--d, 90s) linear infinite; animation-direction: var(--dir, normal); animation-duration: calc(var(--d, 40s) * 2.5); }
.art .a-node { fill: #fff; stroke: var(--blue); stroke-width: 1.8; }
.art .a-halo { fill: var(--azure); opacity: 0.2; transform-box: fill-box; transform-origin: center; animation: halo 9s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.art .a-card { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.art .a-skel { fill: var(--line-strong); }
.art .a-navy { fill: var(--navy); }
.art .a-glyph { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-opacity: 0.95; }
.art .a-check { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .a-check-lg { stroke-width: 9; }
.art .a-grid { fill: none; stroke: var(--blue); stroke-opacity: 0.16; stroke-dasharray: 3 6; }
.art .a-axis { fill: none; stroke: var(--blue); stroke-opacity: 0.35; stroke-width: 1.4; }
.art .a-trend { fill: none; stroke: var(--azure); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.art .a-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.art .a-pk, .field .f-pk { opacity: 0; offset-rotate: 0deg; }
.art .a-pk { fill: var(--azure); stroke: var(--azure); stroke-opacity: 0.3; stroke-width: 5; }
@supports (offset-path: path("M0 0L1 1")) {
  .art .a-pk, .field .f-pk { animation: packet var(--d, 3s) linear infinite; animation-duration: calc(var(--d, 3s) * 2.4); animation-delay: var(--dl, 0s); }
}
.is-idle, .is-idle *, .is-idle::before, .is-idle::after { animation-play-state: paused !important; }
@media (max-width: 920px) { .field .f-pk { display: none; } }

/* Dark node field (home hero fallback, CTA band) */
.field { display: block; pointer-events: none; }
.field .f-link { fill: none; stroke: var(--sky); stroke-opacity: 0.34; stroke-width: 1; }
.field .f-lit { stroke-opacity: 0.45; stroke-dasharray: 3 7; animation: dash 9s linear infinite; }
.field .f-node { fill: var(--navy); stroke: var(--sky); stroke-opacity: 0.9; stroke-width: 1.6; }
.field .f-core { fill: #cfe3fb; }
.field .f-halo { fill: var(--sky); opacity: 0.3; transform-box: fill-box; transform-origin: center; animation: halo 10s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.field .f-pk { fill: #dbe9fb; stroke: var(--sky); stroke-opacity: 0.3; stroke-width: 6; }

/* Card header glyph strips */
.glyph { position: relative; display: block; overflow: hidden; background: var(--navy); }
.glyph-svg { display: block; width: 100%; height: 100%; max-width: none; }
.glyph-svg .a-plate, .glyph-svg .a-tick { display: none; }
.glyph-svg .a-line { stroke: #fff; stroke-opacity: 0.35; }
.glyph-svg .a-ring { stroke: #fff; }
.glyph-svg .a-node { fill: var(--navy); stroke: var(--sky); }
.glyph-svg .a-card { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.28); }
.glyph-svg .a-skel { fill: rgba(255, 255, 255, 0.35); }
.glyph-svg .a-axis, .glyph-svg .a-grid { stroke: #fff; }
.glyph-svg .a-navy { fill: #fff; }
.glyph-svg .a-pk { display: none; }
.glyph-svg .a-dash, .glyph-svg .a-spin, .glyph-svg .a-halo { animation: none; }
.card-media { display: block; height: 104px; margin: -32px -32px 24px; }

/* ---------- Diagrams ---------- */
.diagram { margin: 0; }
.diagram > svg { width: 100%; height: auto; }
.diagram-section { padding: clamp(40px, 5vw, 64px) 0 0; }
.section.diagram-section + .section { padding-top: clamp(48px, 6vw, 80px) !important; }
.diagram-section .diagram { padding: clamp(18px, 2.4vw, 32px); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.dg { display: block; width: 100%; height: auto; color: var(--blue); overflow: visible; }
.dg text { font-family: var(--font); }
.dg-narrow { display: none; }
@media (max-width: 760px) {
  .dg-wide { display: none; }
  .dg-narrow { display: block; max-width: 420px; margin-inline: auto; }
  .diagram-section .diagram { padding: 14px 8px 12px; }
}
.dg .dg-node { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.dg .dg-lane { stroke: var(--line-strong); stroke-width: 1; }
.dg .dg-icobg { stroke: var(--line); stroke-width: 1; }
.dg .dg-label { fill: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.dg .dg-sub { fill: var(--muted); font-weight: 400; }
.dg .dg-badge-t { fill: #fff; font-family: var(--mono); font-weight: 500; }
.dg .dg-lane-t { fill: #fff; font-weight: 500; letter-spacing: -0.01em; }
.dg .dg-lane-n { fill: var(--sky); font-family: var(--mono); font-weight: 400; letter-spacing: 0.06em; }
.dg .dg-onDark { color: var(--sky); }
.dg .dg-chip { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.dg .dg-chip-t { fill: var(--ink); font-weight: 400; }
.dg .dg-arrow { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.dg .dg-arrow.fb { stroke: var(--azure); stroke-dasharray: 6 7; animation: dg-dash 6s linear infinite; opacity: 1; }
.dg .dg-head { fill: var(--blue); }
.dg .dg-head.fb { fill: var(--azure); }
.dg .dg-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 8; }
.dg .dg-center { color: var(--blue); opacity: 0.8; }
.section.dark .diagram-section .diagram, .section.dark .diagram { background: var(--navy-3); border-color: var(--line-dark); }
.section.dark .dg .dg-node, .section.dark .dg .dg-lane { fill: var(--navy-3); stroke: var(--line-dark); }
.section.dark .dg .dg-label, .section.dark .dg .dg-chip-t { fill: #fff; }
.section.dark .dg .dg-sub { fill: var(--on-dark-muted); }
.section.dark .dg .dg-chip { fill: var(--navy-2); stroke: var(--line-dark); }
.section.dark .dg .dg-icobg { stroke: var(--line-dark); }
.section.dark .dg .dg-arrow, .section.dark .dg .dg-head { stroke: var(--sky); }
.section.dark .dg .dg-head { fill: var(--sky); }
.diagram figcaption, .ra-figure > figcaption { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); max-width: 640px; }
.section.dark .diagram figcaption { color: var(--on-dark-muted); }
.fig-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--blue); margin-right: 10px; }
.prose figure > svg { width: 100%; height: auto; }
@keyframes dg-dash { to { stroke-dashoffset: -26; } }

/* ---------- Header scroll state, reveal, motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0%, 100% { opacity: 0.1; transform: scale(0.85); } 50% { opacity: 0.4; transform: scale(1.4); } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes packet { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 0.9; } 88% { opacity: 0.9; } 100% { offset-distance: 100%; opacity: 0; } }

/* .reveal is added by site.js only, so content is always visible without JS */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media print {
  .site-header, .cta-band, .menu-toggle, .skip-link { display: none !important; }
  .site-footer { background: none; color: #000; padding: 24px 0; }
  .section { padding: 24px 0; }
  .hero-page, .hero-page.hero-home { background: none; color: #000; padding: 16px 0; }
  .hero-home h1 { color: #000; }
  .hero-page::before, .field { display: none; }
}

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