/* arc/tech - stylesheet v1
   Implements design_tokens.md + component_spec.md
   Prefixes: c- component | l- layout | t- text utility | u- utility */

/* ---------- Tokens ---------- */
:root {
  /* color (light theme) */
  --color-bg-1: #ffffff;
  --color-bg-2: #f5f5f2;
  --color-border: #e3e3de;
  --color-text: #15150f;
  --color-text-muted: #565650;
  --color-accent-1: #ff4500; /* brand orange - fills, UI, bullets, focus, button base */
  --color-accent-2: #ff8c00; /* brand orange - button hover (same as dark mode) */
  --color-accent-text: #b83400; /* deep - accent TEXT only, for AA contrast on white */
  --color-border-hover: #cfcfc8; /* card border on hover */

  /* type */
  --font-sans:
    "Inter", "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  --font-mono:
    "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
    monospace;
  /* Title font: Google Sans (loaded from Google Fonts), with Inter as the graceful fallback. */
  --font-display:
    "Google Sans", "Product Sans", "Inter", "IBM Plex Sans", system-ui,
    sans-serif;

  /* type scale (desktop) */
  --fs-h1: 3.25rem; /* ~52 */
  --fs-h2: 2rem; /* 32 */
  --fs-h3: 1.375rem; /* 22 */
  --fs-body: 1.0625rem; /* 17 */
  --fs-small: 0.875rem; /* 14 */
  --fs-label: 0.8125rem; /* 13 */

  /* spacing (8px base) */
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-xxl: 64px;

  /* borders / radius */
  --radius: 12px;
  --radius-pill: 9999px;
  --border: 1px solid var(--color-border);

  /* motion */
  --transition: 175ms ease;

  /* layout */
  --maxw: 1280px; /* legacy - content is now full-bleed with fluid gutters */
  --gutter: clamp(
    20px,
    5vw,
    120px
  ); /* fluid side padding: fills the viewport at any width */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--color-bg-1);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sticky-footer layout: body fills viewport, main grows into leftover space.
     When page content is short (e.g. thanks.html), main centers its content
     vertically; when content overflows, main grows to fit and footer follows
     naturally below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

/* visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-accent-1);
  outline-offset: 2px;
  border-radius: 2px;
}

/* skip link */
.u-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent-1);
  color: #000;
  padding: var(--sp-sm) var(--sp-md);
  z-index: 100;
  font-weight: 600;
}
.u-skip:focus {
  left: var(--sp-md);
}

/* ---------- Layout ---------- */
.l-wrap {
  width: 100%;
  margin: 0;
  padding-inline: var(--gutter);
}
.l-section {
  padding: var(--sp-xxl) 0;
  border-bottom: var(--border);
}
.l-section:last-of-type {
  border-bottom: none;
}
.l-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

/* ---------- Text utilities ---------- */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 var(--sp-md);
}

/* Breadcrumb — exact eyebrow styling; opacity dim on hover. */
.c-breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: baseline;
}
.c-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.c-breadcrumb a:hover {
  opacity: 0.6;
}
.t-muted {
  color: var(--color-text-muted);
}
.t-mono {
  font-family: var(--font-mono);
}
.t-lead {
  font-size: 1.25rem;
  color: var(--color-text);
  max-width: 60ch;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 var(--sp-md);
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
p {
  margin: 0 0 var(--sp-md);
  max-width: 68ch;
}
.section-title {
  margin-bottom: var(--sp-lg);
}

/* ---------- Header / nav ---------- */
site-header,
site-footer {
  display: contents;
} /* wrappers vanish; injected header/footer act as body children */
.c-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.c-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  padding: var(--sp-md) var(--gutter);
  max-width: 100%;
  margin: 0;
}
.c-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}
.c-logo__img {
  height: 26px;
  width: auto;
  display: block;
}
.c-footer .c-logo__img {
  height: 28px;
}
.c-nav ul {
  display: flex;
  gap: var(--sp-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.c-nav a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent-1);
}
.c-nav a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  border-bottom-color: var(--color-accent-1);
}
.c-header__cta {
  display: none;
  align-items: center;
  gap: var(--sp-md);
} /* desktop: nav sits flush right; wrapper only holds the mobile toggle */

/* mobile nav toggle */
.c-nav-toggle {
  display: none;
  background: none;
  border: var(--border);
  border-radius: var(--radius);
  color: var(--color-text);
  padding: var(--sp-xs) var(--sp-sm);
  font-size: var(--fs-small);
  cursor: pointer;
}

/* ---------- CTA buttons ---------- */
.c-cta {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--radius);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.c-cta--primary {
  background: var(--color-accent-2);
  color: #ffffff;
  border: 1px solid var(--color-accent-2);
}
.c-cta--primary:hover {
  background: var(--color-accent-1);
  border-color: var(--color-accent-2);
}
.c-cta--secondary {
  background: transparent;
  color: var(--color-text);
  border: var(--border);
}
.c-cta--secondary:hover {
  border-color: var(--color-accent-1);
}
.c-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

/* ---------- Hero ---------- */
.c-hero {
  padding: var(--sp-xxl) 0;
}
.c-hero h1 {
  max-width: 16ch;
}
.c-hero .t-lead {
  margin-bottom: 0;
}

/* ---------- Pill list (credibility strip) ---------- */
.c-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-pill-list li {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--color-text-muted);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 6px var(--sp-md);
}

/* ---------- Card grid ---------- */
.l-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-lg);
}
.l-card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.c-card {
  background: var(--color-bg-2);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.c-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.c-card__title {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-h3);
  margin: 0;
}
.c-card__body {
  color: var(--color-text-muted);
  margin: 0;
  font-size: var(--fs-small);
  flex: 1;
}
.c-card__cta {
  margin-top: var(--sp-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent-text);
  text-decoration: none;
}
.c-card__cta:hover {
  text-decoration: underline;
}
.c-card__icon {
  font-size: 26px;
  flex: none;
}

/* Home "Where are you today?": neutral CTA, slightly larger neutral body */
#home-engagement-cards .c-card__body {
  font-size: 0.9375rem;
  color: var(--color-text);
}
#home-engagement-cards .c-card__cta {
  color: var(--color-text);
}

/* Home "What AI in production needs": slightly larger neutral bento text (CTA already neutral) */
#home-expertise .c-bento__text {
  font-size: 0.9375rem;
  color: var(--color-text);
}

/* Engagement mode badge: small pill in the hero, color-coded per mode */
.c-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 var(--sp-md);
}
.c-mode-badge__icon {
  font-size: 20px;
  flex: none;
}
.c-mode-badge--amber {
  background: #ffecb3;
}
.c-mode-badge--brown {
  background: #D2D4E4;
}
.c-mode-badge--lightblue {
  background: #b3e5fc;
}
.c-mode-badge--green {
  background: #c8e6c9;
}
/* Mode tint on deliverable bento boxes (compound selector beats .c-bento default bg) */
.c-bento.c-mode-badge--amber { background: #ffecb3; }
.c-bento.c-mode-badge--brown { background: #D2D4E4; }
.c-bento.c-mode-badge--lightblue { background: #b3e5fc; }
.c-bento.c-mode-badge--green { background: #c8e6c9; }
.c-card--amber {
  background: #ffecb3;
} /* Amber — readiness / assess */
.c-card--brown {
  background: #D2D4E4;
} /* Periwinkle stone — foundation / bedrock (cool blue-violet) */
.c-card--lightblue {
  background: #b3e5fc;
} /* Light Blue — advisory / clarity */
.c-card--green {
  background: #c8e6c9;
} /* Green — build / ship */
.c-card--cyan {
  background: #b2ebf2;
} /* Cyan — research / discovery */
.c-card--indigo {
  background: #c5cae9;
} /* Indigo — work / proof */
.c-card--purple {
  background: #d1c4e9;
} /* Deep Purple — notes */
.c-card--sand {
  background: #f3e6cf;
} /* Warm cream — leadership tone */
.c-card--mist {
  background: #e3e8ec;
} /* Cool blue-grey — technical tone */
.c-card--clay {
  background: #ecd9d5;
} /* Soft warm rose — product tone */
.c-card__tags {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}
.c-card__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  border: var(--border);
  border-radius: var(--radius);
  padding: 2px 6px;
}

/* ---------- List block (failure modes etc.) ---------- */
.c-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-list li {
  padding: var(--sp-md) 0;
  border-bottom: var(--border);
  display: flex;
  gap: var(--sp-md);
}
.c-list li::before {
  content: "–";
  color: var(--color-accent-1);
  font-family: var(--font-mono);
}
.c-list li:last-child {
  border-bottom: none;
}

/* ---------- Checklist ---------- */
.c-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-checklist li {
  padding: var(--sp-sm) 0 var(--sp-sm) var(--sp-xl);
  position: relative;
  border-bottom: var(--border);
}
.c-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-1);
  font-weight: 700;
}

/* ---------- Callout ---------- */
.c-callout {
  border-left: 3px solid var(--color-border);
  background: var(--color-bg-2);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.c-callout__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--sp-xs);
}
.c-callout--observed {
  border-left-color: var(--color-accent-2);
}
.c-callout--observed .c-callout__label {
  color: var(--color-accent-text);
}
.c-callout--failure {
  border-left-color: var(--color-accent-1);
}
.c-callout--failure .c-callout__label {
  color: var(--color-accent-text);
}
.c-callout--research {
  border-left-color: var(--color-text-muted);
}
.c-callout--research .c-callout__label {
  color: var(--color-text-muted);
}

/* ---------- Metrics ---------- */
.l-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
}
.c-metric__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.c-metric__value {
  font-size: var(--fs-h2);
  font-weight: 650;
  margin: var(--sp-xs) 0;
}
.c-metric__note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ---------- Diagram container ---------- */
.c-diagram {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-bg-2);
  padding: var(--sp-lg);
}
.c-diagram figcaption {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--sp-sm);
}

/* ---------- Placeholder marker (for skeletal pages) ---------- */
.u-placeholder {
  border: 1px dashed #bdbdb6;
  border-radius: var(--radius);
  padding: var(--sp-lg);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}
.u-placeholder::before {
  content: "DRAFT: copy pending · ";
  color: var(--color-accent-2);
}

/* ---------- Form ---------- */
.c-form {
  display: grid;
  gap: var(--sp-lg);
  max-width: 640px;
  border: 2px solid var(--color-accent-1);
  border-radius: var(--radius);
  padding: var(--sp-lg);
}
.c-form label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}
.c-form input,
.c-form textarea,
.c-form select {
  width: 100%;
  background: var(--color-bg-2);
  border: var(--border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-body);
  padding: var(--sp-sm) var(--sp-md);
}
.c-form textarea {
  min-height: 96px;
  resize: vertical;
}
.c-form input:focus,
.c-form textarea:focus,
.c-form select:focus {
  border-color: var(--color-accent-1);
  outline: none;
}

/* ---------- Footer ---------- */
.c-footer {
  border-top: var(--border);
  padding: var(--sp-xxl) 0 var(--sp-xl);
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  background-color: var(--color-bg-2);
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
  background-size: 42px 42px;
}
.c-footer__top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.c-footer__tagline {
  color: var(--color-text-muted);
  margin: var(--sp-md) 0 0;
  max-width: 34ch;
  line-height: 1.6;
}
.c-footer__label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0em;
  color: var(--color-text-muted);
  margin: 0 0 var(--sp-lg);
}
.c-footer__col ul { list-style: none; margin: 0; padding: 0; }
.c-footer__col li { margin-bottom: var(--sp-md); }
.c-footer__col li:last-child { margin-bottom: 0; }
.c-footer__col a { color: var(--color-text); text-decoration: none; }
.c-footer__col a:hover { color: var(--color-accent-text); }
.c-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: var(--border);
}
@media (max-width: 760px) {
  .c-footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
  .c-footer__bottom { flex-direction: column; gap: var(--sp-xs); }
}

/* ---------- System map (expertise visual) ---------- */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.c-sysmap {
  display: none;
  margin: 0;
} /* desktop only; pills shown on mobile */
.c-sysmap svg {
  width: 100%;
  height: auto;
  display: block;
}
.c-sysmap__orbit {
  stroke: var(--color-accent-1);
  stroke-width: 1;
  fill: none;
  opacity: 0.3;
  stroke-dasharray: 3 5;
}
.c-sysmap__line {
  stroke: var(--color-border);
  stroke-width: 1.5;
  fill: none;
}
.c-sysmap__node {
  fill: var(--color-bg-2);
  stroke: var(--color-border);
  stroke-width: 1.5;
}
.c-sysmap__node:hover {
  stroke: var(--color-accent-1);
}
.c-sysmap__core {
  fill: var(--color-text);
}
.c-sysmap__dot {
  fill: var(--color-accent-1);
}
.c-sysmap__label {
  fill: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}
.c-sysmap__core-label {
  fill: var(--color-bg-1);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}
.c-sysmap__core-sub {
  fill: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
@media (min-width: 768px) {
  .c-sysmap {
    display: block;
  }
  .c-sysmap + .c-pill-list {
    display: none;
  } /* hide mobile pills when the map is shown */
}

/* ---------- Bento grid (what production needs) ---------- */
.l-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}
.c-bento {
  background: var(--color-bg-2);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.c-bento:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.c-bento--wide {
  grid-column: span 2;
}
.c-bento__title {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0 0 var(--sp-sm);
}
.c-bento__text {
  color: var(--color-text-muted);
  margin: 0;
  font-size: var(--fs-small);
  flex: 1;
}
.c-bento__cta {
  display: inline-block;
  margin-top: var(--sp-md);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.c-bento__cta:hover {
  text-decoration: underline;
}
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  display: inline-block;
  direction: ltr;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
.c-bento__icon {
  font-size: 26px;
  flex: none;
}

/* Material Design hues, mapped to each concern (pale 100-level for readable dark text) */
.c-bento--evaluation {
  background: #dcedc8;
} /* Light green - measured quality */
.c-bento--retrieval {
  background: #c5d9e8;
} /* Slate blue - search / grounding */
.c-bento--guardrails {
  background: #ffccbc;
} /* Deep orange - safety / defense */
.c-bento--orchestration {
  background: #e1bee7;
} /* Purple - agent control */
.c-bento--observability {
  background: #cfd8dc;
} /* Blue grey - visibility */
.c-bento--model {
  background: #f1e4a8;
} /* Soft gold - model lifecycle */
.c-bento--governance {
  background: #b2dfdb;
} /* Teal - authority / oversight */
.c-bento--compliance {
  background: #ffcdd2;
} /* Soft red - obligations */
.c-bento--validation {
  background: #cdd4f5;
} /* Periwinkle - AI-native runtime validation */

/* ---------- Expertise entries (anchored concern sections) ---------- */
.c-expertise {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-xl);
  align-items: start;
  padding: var(--sp-xl) 0;
  border-bottom: var(--border);
  scroll-margin-top: 84px;
}
.c-expertise:first-child {
  padding-top: 0;
}
.c-expertise:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.c-expertise__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  position: sticky;
  top: 84px;
}
.c-expertise__head h2 {
  margin: 0;
}
.c-expertise__chip {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.c-expertise__chip .material-symbols-rounded {
  font-size: 30px;
  color: var(--color-text);
}
.c-expertise__body p {
  margin: 0;
}
.c-expertise__body p + p {
  margin-top: var(--sp-md);
}
@media (max-width: 760px) {
  .c-expertise {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    padding: var(--sp-lg) 0;
  }
  /* Keep icon + title pinned while scrolling each concern's body */
  .c-expertise__head {
    position: sticky;
    top: 60px;
    z-index: 5;
    background: var(--color-bg-1);
    padding: var(--sp-sm) 0;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-md);
  }
  .c-expertise__head h2 { font-size: var(--fs-h3); }
}
@media (max-width: 900px) {
  .l-bento {
    grid-template-columns: 1fr 1fr;
  }
  .c-bento--wide {
    grid-column: span 1;
  } /* uniform 2-up, preserves order without gaps */
}
@media (max-width: 600px) {
  .l-bento {
    grid-template-columns: 1fr;
  }
  .c-bento--wide {
    grid-column: span 1;
  }
}

/* ---------- Motion: scroll reveal ----------
   Restrained per design_tokens.md: subtle fade + small rise, token-timed.
   Gated by `.reveal-on` (set in <head> only when motion is allowed), and the
   keyframe-free transition means reduced-motion users never see movement. */
.reveal-on .c-hero,
.reveal-on .l-section {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}
.reveal-on .c-hero.is-visible,
.reveal-on .l-section.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  /* belt-and-braces: if reveal-on ever slips through, never hide content */
  .reveal-on .c-hero,
  .reveal-on .l-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .l-two-col {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}
@media (max-width: 600px) {
  :root {
    --fs-h1: 2.25rem; /* mobile */
    --fs-h2: 1.625rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
  }
  .l-section {
    padding: var(--sp-xl) 0;
  }
  .c-nav {
    display: none;
  }
  .c-nav--open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-2);
    border-bottom: var(--border);
    padding: var(--sp-md) var(--sp-lg);
  }
  .c-nav--open ul {
    flex-direction: column;
    gap: var(--sp-md);
  }
  .c-nav-toggle {
    display: inline-block;
  }
  .c-header__cta {
    display: flex;
  } /* show toggle wrapper on mobile */
}


/* ---------- Mode comparison grid ---------- */
.l-compare {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  align-items: start;
}
.c-compare-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}
.c-compare-col__head {
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--color-text);
}
.c-compare-col__head h3 {
  font-size: var(--fs-h3);
  margin: var(--sp-sm) 0 var(--sp-xs);
}
.c-compare-col__jump {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.c-compare-col__jump:hover { opacity: 0.6; }
.c-compare-col__block h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--sp-sm);
  font-weight: 500;
}
.c-compare-col__block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.c-compare-col__block li {
  font-size: var(--fs-small);
  padding-left: var(--sp-md);
  position: relative;
  color: var(--color-text);
  line-height: 1.45;
}
.c-compare-col__block li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--color-accent-text);
  font-weight: 700;
}
@media (max-width: 1000px) {
  .l-compare { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .l-compare { grid-template-columns: 1fr; }
}

/* ---------- Mode section anchors (deep dives on consolidated page) ---------- */
.c-mode-section {
  scroll-margin-top: 80px;
}
.c-mode-section__head {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
  flex-wrap: wrap;
}
.c-mode-section__head h2 { margin: 0; }
.c-mode-section + .c-mode-section { margin-top: var(--sp-xxl); }

/* Two-column mode layout (matches Expertise): chip + title left, content right */
.c-mode-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.c-mode-aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  position: sticky;
  top: 84px;
}
.c-mode-aside h2 { margin: 0; }
/* Oversize auto-numbers on bento boxes (used on the Expertise "what we put in place" grids) */
.l-bento--numbered { counter-reset: bento; }
.l-bento--numbered .c-bento { counter-increment: bento; }
.l-bento--numbered .c-bento::before {
  content: counter(bento, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.16);
}
.c-mode-body > :first-child { margin-top: 0; }
.c-mode-body > h3 { margin-top: var(--sp-xl); } /* even spacing between subsections regardless of preceding element */
@media (max-width: 760px) {
  .c-mode-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  /* On mobile, keep the badge + H2 pinned while scrolling each mode's content.
     Sticky to just below the sticky site header. Background prevents bleed-through. */
  .c-mode-aside {
    position: sticky;
    top: 60px;
    z-index: 5;
    background: var(--color-bg-1);
    padding: var(--sp-sm) 0;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-md);
  }
  .c-mode-aside h2 { font-size: var(--fs-h3); }
}

/* Metrics list with leading icons */
.c-metric-list { list-style: none; margin: 0; padding: 0; }
.c-metric-list li {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  padding: var(--sp-md) 0;
  border-bottom: var(--border);
}
.c-metric-list li:last-child { border-bottom: none; }
.c-metric-list__icon { font-size: 22px; color: var(--color-accent-text); flex: none; }


/* ---------- Founder card (About page) ---------- */
.c-founder {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.c-founder__meta { display: flex; flex-direction: column; gap: 2px; }
.c-founder__name { margin: 0; font-size: var(--fs-h3); }
.c-founder__role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
