/* OptiTech Analytics — site styles */

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #111c2b;
  --ink-soft: #3b4758;
  --muted: #5d6878;
  --line: #dfe2e6;
  --accent: #0a6560;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ee;
  --signal: #9a5b0f;
  --signal-soft: #f6ecdc;
  --focus: #1d4ed8;
  --radius: 10px;
  --max: 1120px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.cta-band :focus-visible, .proof-panel :focus-visible { outline-color: #ffffff; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.brand svg { width: 30px; height: 30px; }
.brand span small { display: block; font-family: var(--mono); font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .75rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 68px;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { margin-top: .5rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
  .site-nav a { padding: .25rem 0; font-size: .95rem; }
  .site-nav a:hover { color: var(--accent); }
  .site-nav .nav-cta { margin: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 8px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.site-nav .btn { padding: .5rem 1rem; color: var(--accent-ink); text-align: center; justify-content: center; }
.site-nav .btn:hover { color: #fff; }
.site-nav .btn[aria-current="page"] { color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }
.hero h1 { max-width: 16ch; }
.focus-line {
  font-family: var(--mono); font-size: .85rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: 1.5rem; padding: 0; list-style: none;
}
.focus-line li::before { content: "▸ "; color: var(--accent); }

.hero-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.hero-visual figcaption { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: .75rem; text-align: center; }

.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .page-hero { padding: 80px 0 56px; } }
.page-hero h1 { max-width: 22ch; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.section-alt .card { background: var(--bg); }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-bottom: .5rem; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .more { margin-top: auto; padding-top: .75rem; font-size: .9rem; font-weight: 600; color: var(--accent); }

/* Problem list */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .problem-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.problem-list li { padding: .9rem 0 .9rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-soft); }
.problem-list li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem; width: 10px; height: 10px;
  border: 2px solid var(--accent); border-radius: 50%;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-family: var(--mono); font-size: .78rem; padding: .3rem .6rem; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
}
.tags.neutral li { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
.section-alt .tags.neutral li { background: var(--surface); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: .85rem; color: var(--accent); display: block; margin-bottom: .35rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Differentiators */
.diff { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .diff { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
.diff div { padding-left: 1rem; border-left: 3px solid var(--accent); }
.diff p { color: var(--ink-soft); margin: 0; }

/* Tool table */
.tool-groups { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .tool-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tool-groups { grid-template-columns: repeat(3, 1fr); } }
.tool-groups h3 { font-size: .95rem; font-family: var(--mono); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Service detail blocks */
.service { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service:last-child { border-bottom: 0; }
.service-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .service-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.service h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.service .num { font-family: var(--mono); color: var(--accent); font-size: .85rem; display: block; margin-bottom: .5rem; }
.service h3 { font-size: .85rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.25rem 0 .6rem; }
.service h3:first-child { margin-top: 0; }
.service .fit { background: var(--signal-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.25rem; font-size: .95rem; color: var(--ink-soft); }
.service .fit strong { color: var(--signal); font-weight: 600; }

.jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.jump a { display: inline-block; font-size: .88rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); background: var(--bg); }
.jump a:hover { border-color: var(--accent); color: var(--accent); }

/* Case studies */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; }
.case + .case { margin-top: 1.25rem; }
.case-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .case-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.case .label { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.case ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.case ul li { margin-bottom: .3rem; }
.case .tags { margin-top: 1.25rem; }

/* Sectors */
.sector { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .sector { grid-template-columns: 260px 1fr; gap: 2.5rem; } }
.sector h3 { margin: 0; }
.sector p { margin: 0 0 .75rem; color: var(--ink-soft); }

/* Plain lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .35rem 0 .35rem 1.5rem; position: relative; color: var(--ink-soft); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.cols-2 { columns: 1; }
@media (min-width: 640px) { .cols-2 { columns: 2; column-gap: 2rem; } }
.cols-2 li { break-inside: avoid; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: #c9d1dc; max-width: 60ch; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--ink); }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.fact-card dl { margin: 0; }
.fact-card dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 1rem; }
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { margin: .2rem 0 0; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.contact-email { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 600; word-break: break-all; }
.contact-grid { align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; }
.contact-card h2 { margin-top: 0; font-size: 1.5rem; }
.contact-grid .note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form .field { display: grid; gap: .35rem; }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 8px; padding: .65rem .75rem; width: 100%; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.contact-form .hint { margin: 0; font-size: .9rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; }
.form-status.error { color: var(--signal); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer h3 { font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .btn-row { display: none; }
  body { background: #fff; }
}

/* Utilities */
.mt-lg { margin-top: 2rem; }
.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;
}

/* Proof panel (home hero) */
.proof-panel { background: var(--ink); color: #fff; border-radius: 14px; padding: 1.5rem; }
.proof-panel .proof-label { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #5fc2b9; margin: 0 0 1rem; }
.proof-panel dl { margin: 0; display: grid; gap: .9rem; }
.proof-panel dl > div { border-top: 1px solid rgba(255,255,255,.14); padding-top: .75rem; }
.proof-panel dl > div:first-child { border-top: 0; padding-top: 0; }
.proof-panel dt { font-weight: 600; font-size: 1.02rem; }
.proof-panel dd { margin: .15rem 0 0; color: #c9d1dc; font-size: .95rem; }

/* Pillars */
.pillars { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.pillar { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.pillar .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); display: block; margin-bottom: .4rem; }
.pillar p { color: var(--ink-soft); }
.pillar .proof { font-family: var(--mono); font-size: .8rem; color: var(--signal); background: var(--signal-soft); border-radius: 6px; padding: .5rem .7rem; }

/* FAQ */
.faq { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .faq { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }
.faq h3 { margin-bottom: .35rem; }
.faq p { color: var(--ink-soft); margin: 0; }

/* Services-led rewrite (2026-09-30) */
.hero h1.h1-long { max-width: 24ch; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.text-link { align-self: center; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.proof-panel .panel-link { display: inline-block; margin-top: 1.1rem; color: #5fc2b9; font-weight: 600; text-decoration: none; }
.proof-panel .panel-link:hover { text-decoration: underline; }
.closer { margin: 1.75rem 0 0; font-weight: 600; color: var(--ink); }
@media (min-width: 1000px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .97rem; }
.section-alt .data-table { background: var(--bg); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.data-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table td { color: var(--ink-soft); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .data-table tbody th { white-space: normal; } }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two-col h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.attribution { max-width: 70ch; background: var(--signal-soft); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink); margin: 1.25rem 0 0; }
.views { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .views { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; } }
.views h3 { font-size: .85rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.plain-list li:last-child { border-bottom: 0; }
.small { font-size: .88rem; }
.prose { max-width: 72ch; }
.prose p { color: var(--ink-soft); }

/* Capabilities v2 (2026-09-30) */
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.service .gets { font-size: 1.05rem; color: var(--ink); }
.service .tool-line { color: var(--ink-soft); font-size: .95rem; }
.ai-list { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.ai-list li { margin-bottom: .6rem; }
.rules { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.rules li { margin-bottom: .7rem; }
.label-h { font-size: .85rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2rem 0 .8rem; }
.eval { margin-top: 1.5rem; }
@media (min-width: 1000px) { .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.agency-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 760px) { .agency-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.agency-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.exp-list li { margin-bottom: .25rem; }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 72ch; }
.exp-list { margin: 1.25rem 0 1.5rem; }

/* Content audit fixes (2026-10-01) */
.cap-details { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cap-details > summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; color: var(--accent); list-style: none; }
.cap-details > summary::-webkit-details-marker { display: none; }
.cap-details > summary::before { content: "+ "; font-family: var(--mono); }
.cap-details[open] > summary::before { content: "− "; }
.cap-details > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cap-details > .service-grid { padding: 0 1.1rem 1.25rem; }
.service > .fit { max-width: 80ch; }
.setup-line { margin: .75rem 0 0; font-size: .95rem; color: var(--signal); background: var(--signal-soft); border-radius: var(--radius); padding: .6rem .9rem; max-width: 70ch; }

/* Capabilities v3 additions (2026-10-01) */
.callout-line { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: .6rem .9rem; max-width: 70ch; }
.treatments { display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
@media (min-width: 860px) { .treatments { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.treatments > div { border-left: 3px solid var(--line); padding-left: .8rem; }
.treatments dt { font-weight: 600; color: var(--ink); }
.treatments dd { margin: .15rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.data-table caption { text-align: left; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 0 .5rem; }
.eval .data-table { margin-bottom: 1rem; }

/* Name option B (2026-09-30): short form in the phone header; full name stays in the logo link's aria-label */
@media (max-width: 480px) { .site-header .brand-rest { display: none; } }

/* Home hero: four equal buttons (owner direction 2026-10-07); full width on phones */
@media (max-width: 520px) { .hero .btn-row .btn { flex: 1 1 100%; text-align: center; justify-content: center; } }

/* Contact form: optional fields, reference confirmation (2026-10-07) */
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form .field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .contact-form .field-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.form-sent { background: #e6f4ea; border: 1px solid #1e7a3c; border-left-width: 6px; border-radius: var(--radius); padding: 1.1rem 1.25rem; color: var(--ink); }
.form-sent p { margin: .35rem 0 0; }
.form-sent .form-sent-title { margin: 0; font-weight: 600; font-size: 1.15rem; color: #145c2b; }
.form-sent .form-ref { font-family: var(--mono); letter-spacing: .03em; }
.form-sent:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Header sub-menu under Capabilities (owner direction 2026-10-07) */
.site-nav .subnav { list-style: none; margin: 0 0 .25rem; padding: 0 0 0 1rem; }
.site-nav .subnav a { font-size: .95rem; color: var(--muted); padding: .4rem 0; }
@media (min-width: 900px) {
  .site-nav .has-sub { position: relative; }
  .site-nav .subnav { display: none; position: absolute; top: 100%; left: -1rem; z-index: 20; min-width: 15rem; margin: 0; padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(17, 28, 43, .08); }
  .site-nav .has-sub:hover .subnav, .site-nav .has-sub:focus-within .subnav { display: block; }
  .site-nav .subnav a { padding: .35rem 0; color: var(--ink-soft); }
}
/* Hero without the button row: keep spacing below the intro */
.hero .lede:last-child { margin-bottom: 0; }

/* Home "What we do": six cards that link to their Capabilities section (round 21) */
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.card-link h3 { color: var(--accent); }
.card-link:hover, .card-link:focus-visible { border-color: var(--accent); }
.card-link:hover h3 { text-decoration: underline; }
/* Home hero: dark band with the node network from the logo, faded out behind the text */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/hero-bg.svg) right center / cover no-repeat; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 52%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 52%, #000 78%);
}
@media (max-width: 700px) { .hero::before { opacity: .35; } }
.hero h1 { color: #fff; }
.hero .lede { color: #cdd6df; }
.hero .eyebrow { color: #5fc2b9; }
.hero .btn-primary { background: #5fc2b9; color: var(--ink); }
.hero .btn-primary:hover { background: #7fd1ca; }
.hero :focus-visible { outline-color: #fff; }

/* Insights */
.post-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.post-card p { margin: 0; color: var(--ink-soft); }
.post-card.soon { background: transparent; border-style: dashed; }
.post-card.soon h3 { color: var(--muted); }
.post-meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.article { max-width: 720px; }
.article h2 { margin-top: 2.25rem; }
.article p, .article li { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.example { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.25rem 0; }
.example div { padding: 1rem 1.25rem; }
.example .bad { background: var(--signal-soft); }
.example .good { background: var(--accent-soft); }
.example strong { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .35rem; }
.example code { font-family: var(--mono); font-size: .92rem; color: var(--ink); white-space: pre-wrap; }
.article .article-note { font-size: .9rem; color: var(--muted); margin-top: 2rem; }

/* Insights: animated lifecycle */
.lifecycle-band { background: var(--ink); padding: 2.5rem 0 2rem; overflow: hidden; }
.lifecycle { margin: 0 auto; max-width: 1100px; }
.lifecycle svg { display: block; width: 100%; height: auto; }
.lc-track { fill: none; stroke: #23384a; stroke-width: 2; }
.lc-path { fill: none; stroke: #5fc2b9; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lc-draw 2.2s ease-out .2s forwards; }
.lc-halo { fill: #5fc2b9; opacity: 0; filter: url(#lc-glow); }
.lc-pulse circle { fill: #9fe3dc; }
.lc-node circle { fill: var(--ink); stroke: #5fc2b9; stroke-width: 3; }
.lc-node text { fill: #fff; font-family: var(--mono); font-size: 20px; font-weight: 600; }
.lc-node, .lc-label { opacity: 0; transform-box: fill-box; transform-origin: center; animation: lc-pop .5s ease-out forwards; }
.lc-label { fill: #cdd6df; font-family: var(--sans); font-size: 22px; font-weight: 500; }
.lc-center { fill: #8fa3b5; font-family: var(--mono); font-size: 24px; letter-spacing: .04em; }
.n1 { animation-delay: .5s; } .n2 { animation-delay: .8s; } .n3 { animation-delay: 1.1s; } .n4 { animation-delay: 1.4s; } .n5 { animation-delay: 1.7s; } .n6 { animation-delay: 2s; } .n7 { animation-delay: 2.3s; }
.lc-pulse { opacity: 0; animation: lc-fade .6s ease 2.6s forwards; }
@keyframes lc-draw { to { stroke-dashoffset: 0; } }
@keyframes lc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes lc-fade { to { opacity: 1; } }
.lifecycle-note { color: #8fa3b5; font-size: .9rem; text-align: center; margin: 1rem auto 0; max-width: 60ch; }
@media (max-width: 640px) { .lc-label { display: none; } .lifecycle svg { width: 150%; max-width: none; margin-left: -25%; } .lc-center { font-size: 30px; } }
.stage-grid { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .stage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stage-grid { grid-template-columns: repeat(3, 1fr); } }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; position: relative; }
.stage-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #5fc2b9; font-family: var(--mono); font-weight: 600; margin-bottom: .6rem; }
.stage h3 { margin: 0 0 .35rem; }
.stage p { margin: 0; color: var(--ink-soft); }
.stage .stage-ask { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .95rem; }
@supports (animation-timeline: view()) {
  .stage { animation: lc-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  @keyframes lc-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .lc-path { animation: none; stroke-dashoffset: 0; }
  .lc-node, .lc-label { animation: none; opacity: 1; }
  .lc-pulse, .lc-halo { display: none; }
  .stage { animation: none; }
}
