/* ==========================================================================
   Nebco Solutions — site stylesheet
   Palette: navy + white with a teal accent. All colors are tokens on :root,
   redefined for dark mode below. Fonts are self-hosted (SIL OFL).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0B1F3A;
  --teal: #14B8A6;
  --teal-bright: #2DD4BF;

  --bg: #FFFFFF;
  --surface: #EEF4F7;          /* cool mist for alternating sections */
  --surface-raised: #FFFFFF;
  --ink: #0B1F3A;              /* headings */
  --text: #1C2B44;             /* body */
  --muted: #475569;            /* secondary text */
  --line: #D5E1E8;
  --line-strong: #B4C6D2;
  --accent: #14B8A6;           /* fills, buttons, decoration */
  --accent-ink: #0F766E;       /* teal that passes contrast as text on white */
  --accent-soft: #D7F5F0;
  --on-accent: #0B1F3A;

  --band-bg: #0B1F3A;          /* navy band */
  --band-text: #DCE6EF;
  --band-ink: #FFFFFF;
  --band-accent: #2DD4BF;
  --band-line: #22395A;

  --danger: #B42318;
  --success: #0F766E;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.9rem, 1.45rem + 1.9vw, 2.875rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.7vw, 4.5rem);

  --container: 1180px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section: clamp(3.75rem, 2.5rem + 6vw, 7rem);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071426;
    --surface: #0C1D35;
    --surface-raised: #10243F;
    --ink: #F1F6FA;
    --text: #D3DEE8;
    --muted: #A9B8C9;
    --line: #1E3655;
    --line-strong: #2C4A70;
    --accent: #2DD4BF;
    --accent-ink: #5EEAD4;
    --accent-soft: #0F3A44;
    --on-accent: #071426;
    --band-bg: #0E2442;
    --band-line: #24426A;
    --danger: #F97066;
    --success: #5EEAD4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071426;
  --surface: #0C1D35;
  --surface-raised: #10243F;
  --ink: #F1F6FA;
  --text: #D3DEE8;
  --muted: #A9B8C9;
  --line: #1E3655;
  --line-strong: #2C4A70;
  --accent: #2DD4BF;
  --accent-ink: #5EEAD4;
  --accent-soft: #0F3A44;
  --on-accent: #071426;
  --band-bg: #0E2442;
  --band-line: #24426A;
  --danger: #F97066;
  --success: #5EEAD4;
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.03em; font-weight: 760; }
h2 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 650; }
h4 { font-size: var(--step-0); line-height: 1.3; font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; 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: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--teal-bright); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--on-dark:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-display); font-weight: 720; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--muted); margin-top: 0.2rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 600 1rem/1 var(--font-body); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
  max-height: calc(100vh - 72px); overflow-y: auto;
  box-shadow: 0 18px 40px -24px rgba(11, 31, 58, .45);
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li + li { margin-top: 0; }
.nav-link {
  display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem;
}
.nav-link[aria-current="page"] { color: var(--accent-ink); }
.nav-cta { margin-top: 1.25rem; width: 100%; }

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 1.5rem;
    position: static; padding: 0; border: 0; box-shadow: none; background: transparent; max-height: none; overflow: visible;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-link {
    padding: 0.5rem 0.7rem; border: 0; border-radius: 999px;
    font-size: 1rem; color: var(--text);
  }
  .nav-link:hover { color: var(--ink); background: var(--surface); }
  .nav-link[aria-current="page"] { color: var(--ink); background: var(--surface); }
  .nav-cta { margin-top: 0; width: auto; min-height: 44px; padding: 0.55rem 1.1rem; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li { margin: 0; display: inline-flex; gap: 0.4rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); max-width: 20ch; }
.page-hero .lede { max-width: 44rem; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 1.75rem; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 5vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr 1fr; } }
.hero h1 { max-width: 11ch; margin-bottom: 0.4em; }
.hero .lede { max-width: 34rem; color: var(--text); }
.hero .btn-row { margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; color: var(--muted); font-size: var(--step--1); max-width: 34rem; }

/* Process panel: the signature element */
.flow-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.25rem;
}
/* Example tabs: Approvals, Reporting, AI agent. The active tab's underline fills while autoplay runs. */
.flow-tabs { display: flex; gap: 0.25rem; margin: -0.25rem 0 1rem; border-bottom: 1px solid var(--line); }
.flow-tabs button {
  position: relative; flex: 1 1 0; min-height: 44px; padding: 0.55rem 0.25rem 0.65rem;
  border: 0; background: none; color: var(--muted); font: 600 0.9375rem/1.2 var(--font-body); cursor: pointer;
}
.flow-tabs button:hover { color: var(--ink); }
.flow-tabs button[aria-pressed="true"] { color: var(--ink); }
.flow-tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--accent); transform-origin: left center; transform: scaleX(0);
}
.flow-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.flow-panel.is-auto .flow-tabs button[aria-pressed="true"]::after { animation: flow-progress var(--flow-cycle, 7.4s) linear both; }
@keyframes flow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.flow-panel.is-paused .flow-tabs button[aria-pressed="true"]::after { animation-play-state: paused; }
.flow-panel.is-single .flow-tabs button[aria-pressed="true"]::after { animation: flow-progress var(--flow-before, 7.5s) linear both; }

/* Only the active example is shown */
.flow-panel[data-scenario="approval"] [data-for]:not([data-for="approval"]),
.flow-panel[data-scenario="reporting"] [data-for]:not([data-for="reporting"]),
.flow-panel[data-scenario="ai"] [data-for]:not([data-for="ai"]) { display: none; }
.flow-scenario { position: absolute; inset: 0; animation: flow-in .35s ease both; }
.flow-scenario .chip { animation: chip-in .4s ease var(--d, 0s) backwards; }
@keyframes flow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes chip-in { from { opacity: 0; } to { opacity: 1; } }

.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.flow-title { font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1.0625rem; margin: 0; }
.flow-title small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 0.875rem; }
.flow-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.flow-switch button {
  min-height: 36px; padding: 0.35rem 0.95rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 0.9375rem/1 var(--font-body); cursor: pointer;
}
.flow-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .flow-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .flow-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
}

.flow-stage { position: relative; height: 430px; }
@media (min-width: 560px) { .flow-stage { height: 400px; } }

.flow-layer { position: absolute; inset: 0; }
.flow-before svg.tangle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tangle path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }

.chip {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--r));
  width: max-content;
  max-width: 46%;
  padding: 0.5rem 0.75rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 0.9375rem; line-height: 1.25; color: var(--text);
  box-shadow: 0 2px 0 var(--line);
  transition: transform .55s cubic-bezier(.55,.05,.35,1) var(--d, 0s), opacity .4s ease var(--d, 0s);
}
.chip--warn { border-color: #E3B23C; }
.chip b { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 0.1rem; }

.flow-after { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 0.25rem 0.25rem 0.25rem 0.5rem; pointer-events: none; }
.step-card:not(:last-child)::after {
  content: ""; position: absolute; left: 18.5px; top: 50%; width: 3px; height: calc(100% + 1.1rem);
  background: var(--accent); border-radius: 3px; z-index: 0;
  transform-origin: top; transform: scaleY(0);
  transition: transform .45s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0s) + .2s);
}
.step-card {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease var(--d, 0s), transform .45s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.step-dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font: 700 1rem/1 var(--font-display);
  position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--surface);
}
.step-body {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 0.8rem 1rem;
}
.step-body strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.step-body span { display: block; color: var(--accent-ink); font-size: 0.875rem; font-weight: 600; margin-top: 0.15rem; }

.flow-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.flow-foot strong { font-family: var(--font-display); font-size: 1.0625rem; }
.flow-foot [data-show] { transition: opacity .3s ease; }

/* states */
.flow-panel[data-state="after"] .chip { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.6); }
.flow-panel[data-state="after"] .tangle { opacity: 0; transition: opacity .3s ease; }
.flow-panel[data-state="after"] .flow-after { pointer-events: auto; }
.flow-panel[data-state="after"] .step-card::after { transform: scaleY(1); }
.flow-panel[data-state="after"] .step-card { opacity: 1; transform: none; }
.flow-panel[data-state="before"] [data-show="after"],
.flow-panel[data-state="after"] [data-show="before"] { display: none; }

/* ---------- Track record band ---------- */
.band { background: var(--band-bg); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-ink); }
.band a:not(.btn) { color: var(--band-accent); }
.record { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 720px) { .record { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .record { grid-template-columns: repeat(4, 1fr); } }
.record-item { border-top: 2px solid var(--band-line); padding-top: 1rem; }
.record-item p { margin: 0; }
.record-figure { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); color: var(--band-accent); line-height: 1.1; margin-bottom: 0.35rem; letter-spacing: -0.02em; }
.record-note { margin-top: 2rem; font-size: var(--step--1); color: #9FB3C8; }

/* ---------- Pain list ---------- */
.pain-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .pain-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.pain { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.pain svg { width: 26px; height: 26px; color: var(--accent-ink); margin-top: 0.15rem; }
.pain h3 { font-size: 1.1875rem; margin-bottom: 0.25rem; }
.pain p { margin: 0; color: var(--muted); }

/* ---------- Value trio ---------- */
.value-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.value h3 { display: flex; align-items: center; gap: 0.65rem; }
.value h3 svg { width: 28px; height: 28px; color: var(--accent-ink); flex-shrink: 0; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .service-list { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.service { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.service-icon { width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 0.3rem; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--accent-ink); }
.service p { margin: 0; color: var(--muted); }

/* Service detail sections (services page) */
.service-detail { display: grid; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-detail:first-of-type { border-top: 0; }
@media (min-width: 900px) { .service-detail { grid-template-columns: 1fr 1.15fr; } }
.service-detail h2 { font-size: var(--step-2); display: flex; align-items: center; gap: 0.75rem; }
.service-detail h2 .service-icon { flex-shrink: 0; }
.service-detail .tools { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.85rem; }
.check-list li + li { margin-top: 0.6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230F766E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Jump links */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.jump li { margin: 0; }
.jump a { display: inline-block; padding: 0.45rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.jump a:hover { border-color: var(--ink); }

/* ---------- Engagement models ---------- */
.models { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-raised); }
.model h3 { margin-bottom: 0.4rem; }
.model p { margin: 0; color: var(--muted); }

/* ---------- Steps (true sequences only) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps > li { counter-increment: step; position: relative; padding: 1.5rem 0 1.5rem 3.75rem; border-top: 1px solid var(--line); margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1.45rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); color: var(--ink); font: 700 1.0625rem/1 var(--font-display);
}
@media (min-width: 900px) {
  .steps--row > li { padding: 4.25rem 0 0; border-top: 0; }
  .steps--row > li::before { top: 0; }
  .steps--row > li::after { content: ""; position: absolute; left: 3.25rem; right: 0; top: 1.25rem; height: 2px; background: var(--line); }
  .steps--row > li:last-child::after { display: none; }
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }
.steps .step-meta { display: block; margin-top: 0.6rem; font-size: var(--step--1); color: var(--accent-ink); font-weight: 600; }

/* ---------- Stories (before / after) ---------- */
.story { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.story:first-child { border-top: 0; padding-top: 0; }
.story-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.story-head h3, .story-head h2 { margin: 0; font-size: var(--step-2); max-width: 30ch; }
.story-sector { font-size: var(--step--1); font-weight: 600; color: var(--accent-ink); }
.ba { display: grid; gap: 1rem; }
@media (min-width: 760px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba-col { padding: 1.25rem 1.35rem; border-radius: var(--radius-m); border: 1px solid var(--line); }
.ba-col h4 { margin-bottom: 0.4rem; font-size: 1rem; color: var(--muted); }
.ba-col--after { background: var(--accent-soft); border-color: transparent; }
.ba-col--after h4 { color: var(--accent-ink); }
.ba-col p:last-child, .ba-col ul:last-child { margin-bottom: 0; }
.story-body { max-width: 72ch; border-left: 3px solid var(--accent); padding-left: 1.25rem; }
@media (min-width: 900px) {
  .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); column-gap: 3rem; align-items: start; }
  .story .story-head { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-bottom: 0; }
  .story .story-head h2 { font-size: var(--step-1); }
  .story .story-body { grid-column: 2; max-width: none; }
  .story .story-tools { grid-column: 2; }
}
.story-body p { font-size: 1.0625rem; line-height: 1.65; margin: 0 0 0.85rem; }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--ink); font-weight: 650; }
.story-tools { margin: 1rem 0 0; color: var(--muted); font-size: var(--step--1); }
.story-tools strong { color: var(--text); }

/* Compact story cards (home) */
.story-cards { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .story-cards { grid-template-columns: repeat(3, 1fr); } }
.story-card { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius-m); background: var(--surface-raised); border: 1px solid var(--line); }
.story-card h3 { font-size: 1.25rem; margin: 0.35rem 0 0.75rem; }
.story-card dl { margin: 0; display: grid; gap: 0.6rem; }
.story-card dt { font-weight: 700; font-size: 0.875rem; color: var(--muted); }
.story-card dd { margin: 0; }
.story-card dd ul { margin: 0; padding-left: 1.1em; }
.story-card dd li + li { margin-top: 0.3rem; }
.story-card .after-dt { color: var(--accent-ink); }

/* ---------- City grid ---------- */
.city-grid, .link-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.city-grid li, .link-grid li { margin: 0; }
.city-grid a, .link-grid a {
  display: flex; flex-direction: column; height: 100%; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; background: var(--surface-raised);
  transition: border-color .15s ease;
}
.city-grid a:hover, .link-grid a:hover { border-color: var(--accent); }
.city-grid strong, .link-grid strong { font-family: var(--font-display); font-size: 1.125rem; }
.city-grid span, .link-grid span { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; margin-top: 0.2rem; }
.link-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.link-grid strong { line-height: 1.3; }
.link-grid span { margin-top: 0.5rem; }

/* ---------- Insights ---------- */
.insight-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.insight-list li { margin: 0; }
.insight-item { display: grid; gap: 0.35rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .insight-item { grid-template-columns: 1fr 15rem; column-gap: 3rem; align-items: baseline; } }
.insight-item h3 { margin: 0; font-size: var(--step-1); }
.insight-item h3 a { color: var(--ink); text-decoration: none; }
.insight-item h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.insight-item p { margin: 0; color: var(--muted); grid-column: 1; }
.insight-meta { color: var(--muted); font-size: var(--step--1); }
@media (min-width: 860px) { .insight-meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; } }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 2rem; }
.article-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); max-width: 22ch; }
.article-meta { color: var(--muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25em; }
.prose h3 { margin-top: 1.75em; }
.prose li + li { margin-top: 0.5em; }
.callout { margin: 2rem 0; padding: 1.25rem 1.4rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.callout p:last-child { margin-bottom: 0; }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.sources h2 { font-size: 1.125rem; margin: 0 0 0.75rem; }
.sources ul { padding-left: 1.1em; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-raised); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
th, td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); color: var(--ink); font-weight: 650; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
.table-note { color: var(--muted); font-size: var(--step--1); margin-top: 0.75rem; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 2rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-raised); }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.calc-fields { display: grid; gap: 1.25rem; }
.calc-output { display: grid; gap: 1.25rem; align-content: start; padding: 1.5rem; border-radius: var(--radius-m); background: var(--band-bg); color: var(--band-text); }
.calc-output h3 { color: var(--band-ink); margin: 0; font-size: 1.125rem; }
.calc-figure { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); line-height: 1.05; color: var(--band-accent); letter-spacing: -0.02em; }
.calc-output p { margin: 0; }
.calc-output .calc-small { font-size: var(--step--1); color: #9FB3C8; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 650; color: var(--ink); font-size: 1rem; }
.field .hint { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1.0625rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; border-color: var(--accent-ink); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.9375rem; font-weight: 600; margin: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type="range"] { padding: 0; min-height: 32px; accent-color: var(--accent-ink); border: 0; background: transparent; }
.range-value { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius-s); font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-kind="success"] { background: var(--accent-soft); color: var(--success); }
.form-status[data-kind="error"] { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.contact-form { display: grid; gap: 1.25rem; }
.form-fine { color: var(--muted); font-size: 0.9375rem; margin: 0; }

.aside-box { padding: 1.5rem; border-radius: var(--radius-m); background: var(--surface); }
.aside-box h2 { font-size: var(--step-1); }
.aside-box .steps > li { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.aside-box .steps > li::before { top: 1.05rem; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .founder { grid-template-columns: 220px 1fr; gap: 3rem; } }
.founder-photo {
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--navy); color: var(--teal-bright);
  display: grid; place-items: center; font: 720 3.25rem/1 var(--font-display); letter-spacing: -0.03em;
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.5rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline h3 { font-size: 1.1875rem; margin-bottom: 0.15rem; }
.timeline .when { display: block; font-size: var(--step--1); color: var(--accent-ink); font-weight: 600; margin-bottom: 0.4rem; }
.timeline p { margin: 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9375rem; color: var(--text); }

/* ---------- Industries ---------- */
.industry { display: grid; gap: 1rem 3rem; padding-block: 2.25rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
@media (min-width: 900px) { .industry { grid-template-columns: 1fr 1.2fr; } }
.industry h2 { font-size: var(--step-2); }
.industry .experience { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- City page ---------- */
.local-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .local-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
.local-grid h3 { margin-bottom: 0.35rem; }
.local-grid p { margin: 0; color: var(--muted); }
.facts { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-raised); }
.facts dt { font-weight: 700; color: var(--ink); font-family: var(--font-display); margin-bottom: 0.25rem; }
.facts dd { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--band-bg); color: var(--band-text); padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
.cta-band h2 { color: var(--band-ink); max-width: 20ch; }
.cta-band p { max-width: 40rem; font-size: var(--step-1); line-height: 1.5; }
.cta-band .btn-row { margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-grid h2 { font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0.45rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 30rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; color: var(--muted); font-size: 0.875rem; }
.footer-legal p { margin: 0; max-width: 60rem; }
.footer-legal a { color: var(--muted); }

/* ---------- Misc ---------- */
.note { color: var(--muted); font-size: var(--step--1); }
.signature { margin-top: 1.25rem; font-family: var(--font-display); font-weight: 650; font-style: italic; color: var(--ink); }
.center-404 { min-height: 55vh; display: grid; align-content: center; }
.two-col-list { columns: 2 16rem; column-gap: 2.5rem; }
.two-col-list li { break-inside: avoid; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-l); background: var(--surface); margin-top: 3rem; }
.inline-cta p { margin: 0; font-size: var(--step-1); color: var(--ink); font-family: var(--font-display); font-weight: 650; max-width: 32rem; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ---------- FAQ (details) ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.1875rem; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--accent-ink); transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.25rem; color: var(--muted); max-width: 62ch; }
code { font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }

/* Dark mode: brighter checkmark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .check-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235EEAD4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235EEAD4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Founder profile */
.founder-role { margin: -0.35rem 0 1.25rem; color: var(--accent-ink); font-weight: 650; }
.founder-lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.founder-subhead { margin: 2.5rem 0 1.25rem; }
.founder > div > p { max-width: 66ch; }

/* Footer: six columns on wide screens */
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.5fr repeat(5, 1fr); gap: 2.25rem 1.75rem; } }

/* Founding client offer */
.offer { display: grid; gap: 2rem 3.5rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: var(--surface-raised); }
@media (min-width: 900px) { .offer { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.offer h2 { margin-bottom: 0.4em; }
.offer .lede { font-size: var(--step-1); margin-bottom: 1.5rem; }
.offer-terms { display: grid; gap: 1.5rem; }
.offer-terms h3 { font-size: 1.125rem; margin-bottom: 0.6rem; }

/* Solution pages */
.signs { display: grid; gap: 0.75rem; }
.needs { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .needs { grid-template-columns: 1fr 1fr; } }
.needs > div { padding: 1.35rem 1.5rem; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface-raised); }
.needs h3 { font-size: 1.125rem; margin-bottom: 0.6rem; }
.needs .needs-extra { border-style: dashed; }

.pain h3 a { color: inherit; text-decoration: none; }
.pain h3 a:hover { color: var(--accent-ink); text-decoration: underline; }

.band-heading { font-size: var(--step-2); max-width: 32ch; margin-bottom: 1.75rem; }

/* Header: "Who we help" fits on one line at 1120px and wider */
@media (min-width: 1120px) {
  .site-nav, .site-nav.is-open { gap: 1rem; }
  .nav-link { white-space: nowrap; padding: 0.5rem 0.6rem; }
}

/* Anchored sections clear the sticky header */
.section[id], .story[id], .explorer, .explorer-panel { scroll-margin-top: 90px; }
.section-note { margin: 1.75rem 0 0; color: var(--muted); }

/* ---------- Who we help ---------- */
.for-you { margin-top: 1.75rem; max-width: 46rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.for-you-label { margin: 0 0 0.75rem; font-family: var(--font-display); font-weight: 650; color: var(--ink); }
.for-you-list { display: grid; gap: 0.6rem 2rem; }
.for-you-list li + li { margin-top: 0; }
@media (min-width: 760px) { .for-you-list { grid-template-columns: 1fr 1fr; } }

.size-cards { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .size-cards { grid-template-columns: repeat(3, 1fr); } }
.size-card {
  position: relative; display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-raised);
  transition: border-color .15s ease;
}
.size-card:hover { border-color: var(--accent); }
.size-card h2, .size-card h3 { font-size: var(--step-2); margin: 0; }
.size-card h2 a, .size-card h3 a { color: var(--ink); text-decoration: none; }
.size-card h2 a::after, .size-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); }
.size-card h2 a:focus-visible, .size-card h3 a:focus-visible { outline: none; }
.size-card h2 a:focus-visible::after, .size-card h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.size-card p { margin: 0; color: var(--muted); }
.size-card-more { margin-top: auto; font-weight: 650; color: var(--accent-ink); }
.size-card-more::after { content: " \2192"; }
.size-card:hover .size-card-more { text-decoration: underline; text-underline-offset: 0.18em; }

.capability-cols { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 900px) { .capability-cols { grid-template-columns: 1fr 1fr; } }
.capability-title { font-size: var(--step-1); margin: 0; padding-bottom: 0.75rem; border-bottom: 2px solid var(--line-strong); }
.capability-title--ai { border-bottom-color: var(--accent); }
.capability-list { list-style: none; padding: 0; margin: 0; }
.capability-list li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.maturity { display: block; margin-top: 0.4rem; font-size: var(--step--1); color: var(--muted); }
.maturity b { color: var(--accent-ink); font-weight: 650; }

.tag { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.55rem; border-radius: 999px; border: 1px solid transparent; font: 650 0.8125rem/1.5 var(--font-body); white-space: nowrap; vertical-align: 0.05em; }
.tag--available { background: var(--accent-soft); color: var(--accent-ink); }
.tag--pilot { background: transparent; color: var(--text); border-color: var(--line-strong); }

/* Industry explorer: tabs with JavaScript, stacked sections without it */
.explorer-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 -0.5rem 1.5rem; padding: 0.5rem; scrollbar-width: thin;
}
.explorer-tabs[hidden] { display: none; }
@media (min-width: 760px) { .explorer-tabs { flex-wrap: wrap; overflow: visible; } }
.explorer-tabs [role="tab"] {
  flex-shrink: 0; min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); color: var(--ink);
  font: 600 0.9375rem/1.2 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.explorer-tabs [role="tab"]:hover { border-color: var(--ink); }
.explorer-tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.explorer-panel + .explorer-panel { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.explorer.is-tabs .explorer-panel + .explorer-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.explorer.is-tabs .explorer-panel[hidden] { display: none; }
.explorer.is-tabs .explorer-heading {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.explorer-heading { font-size: var(--step-2); margin-bottom: 0.4rem; }
.explorer-intro { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 46rem; margin-bottom: 0.75rem; }
.explorer-fits { color: var(--muted); font-size: var(--step--1); max-width: 46rem; margin: 0; }
.explorer-problems { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.explorer-problem { margin: 0; padding: 1.35rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-raised); }
.explorer-problem h4 { font-size: 1.1875rem; margin-bottom: 0.9rem; }
.explorer-problem dl { margin: 0; display: grid; gap: 1rem 2.5rem; }
@media (min-width: 760px) {
  .explorer-problem dl { grid-template-columns: 1fr 1fr; }
  .explorer-problem dl:not(:has(.explorer-ai)) > div:first-child { grid-column: 1 / -1; }
  .explorer-tools { grid-column: 1 / -1; }
}
.explorer-problem dt { font-weight: 700; font-size: 0.9375rem; color: var(--ink); margin-bottom: 0.2rem; }
.explorer-problem dd { margin: 0; }
.explorer-tools { padding-top: 0.85rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }
.explorer-tools dt { margin: 0; color: var(--muted); font-size: var(--step--1); }
.explorer-tools dd { color: var(--muted); font-size: var(--step--1); }
.explorer-more { margin: 1.5rem 0 0; font-weight: 600; }
.explorer-panel:focus-visible { outline-offset: 8px; border-radius: var(--radius-m); }
.explorer-audience { margin: 0 0 0.35rem; font-weight: 650; font-size: var(--step--1); color: var(--accent-ink); }
@media (max-width: 759px) {
  .explorer-tabs { scroll-snap-type: x proximity; scroll-padding-inline: 0.5rem; }
  .explorer-tabs [role="tab"] { scroll-snap-align: start; }
}
