/* =========================================================================
   Roc Identity — design tokens & shared styles
   Identity & Access Management consulting, Rochester NY
   ========================================================================= */

:root {
  /* — palette: graphite + amber. Deliberately no longer mirrors
     roc3dprinting.com's blue tokens; the two sites are siblings in type and
     layout, not in hue. Amber carries the "finding" signal an assessment
     practice sells; slate is the cool counterweight. — */
  --ink: #16181c;       /* graphite — footer / CTA-band / primary btn */
  --ink-soft: #212429;
  --paper: #f5f4f1;     /* warm neutral, not blue-tinted */
  --paper-raised: #ffffff;
  --line: rgba(28, 31, 36, 0.10);
  --line-strong: rgba(28, 31, 36, 0.18);
  --text: #1c1f24;
  --muted: #5c6169;
  --muted-2: #a8adb5;
  --accent: #b8730d;    /* amber — "finding / flag", the assessment signal */
  --accent2: #f0b429;   /* bright amber — reserved for dark surfaces */
  --accent-ink: #16181c;   /* text ON amber: white is 3.82:1 and fails AA */
  --accent-text: #8f5a08;  /* small amber text on paper — 5.20:1 */
  --accent-tint: rgba(184, 115, 13, 0.10);
  --accent-line: rgba(184, 115, 13, 0.38);
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --on-ink-line: rgba(255, 255, 255, 0.12);

  /* Cool secondary — the counterweight to amber, used sparingly on badges
     and tags so the palette is not a single hue at two temperatures. */
  --accent-alt: #4a6b8a;
  --accent-alt-soft: rgba(74, 107, 138, 0.10);
  --accent-alt-ring: rgba(74, 107, 138, 0.35);

  --font-display: "Bebas Neue", ui-sans-serif, "Segoe UI", sans-serif;
  --font-logo: "Big Shoulders Display", ui-sans-serif, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shadow-sm: 0 1px 1px rgba(18, 20, 24, 0.03), 0 2px 4px rgba(18, 20, 24, 0.04);
  --shadow-card: 0 1px 1px rgba(18, 20, 24, 0.03), 0 4px 10px rgba(18, 20, 24, 0.05),
    0 8px 18px rgba(18, 20, 24, 0.04);
  --shadow-card-hover: 0 1px 1px rgba(18, 20, 24, 0.03), 0 4px 10px rgba(18, 20, 24, 0.05),
    0 18px 34px rgba(18, 20, 24, 0.09);
  --shadow-md: 0 1px 1px rgba(18, 20, 24, 0.03), 0 4px 10px rgba(18, 20, 24, 0.05),
    0 16px 32px rgba(18, 20, 24, 0.06);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0e0f12;
    --paper: #131519;
    --paper-raised: #1b1e23;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #ecedef;
    --muted: #a2a7b0;
    --muted-2: #6d727a;
    --accent: #d98c14;
    --accent2: #f5c249;
    --accent-text: #e0a536;
    --accent-tint: rgba(217, 140, 20, 0.14);
    --accent-line: rgba(217, 140, 20, 0.34);
    --accent-alt: #7fa8cc;
    --accent-alt-soft: rgba(127, 168, 204, 0.14);
    --accent-alt-ring: rgba(127, 168, 204, 0.34);
    --on-ink: #ffffff;
    --on-ink-muted: rgba(255, 255, 255, 0.68);
    --on-ink-line: rgba(255, 255, 255, 0.12);
  }
}

/* — reset — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
::selection { background: var(--accent-tint); color: var(--text); }

/* — layout primitives — */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  /* Optical centre of the first line, so a wrapped eyebrow keeps the marker
     beside the text instead of floating to the middle of the block. */
  margin-top: 0.42em;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.75rem, 4.6vw + 1rem, 4.75rem); line-height: 0.98; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 2.6vw + 1rem, 3rem); line-height: 1.0; text-wrap: balance; }
h3 { font-size: 1.625rem; line-height: 1.1; }
.lede { font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem); color: var(--muted); line-height: 1.65; max-width: 54ch; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 120ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); transition-duration: 75ms; }
.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Primary-button treatment for CTAs sitting on a dark (--ink) background —
   same black-fill/white-text, blue-on-hover language as .btn-primary, just
   filled with --ink-soft instead of --ink so it stays visible against a
   same-color section background. */
.btn-on-ink { background: var(--ink-soft); color: var(--on-ink); border: 1px solid var(--on-ink-line); }
.btn-on-ink:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-on-ink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* — header — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 244, 241, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header { background: rgba(19, 21, 25, 0.82); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 108px; }

/* — logo: same layered-print-bed mark, wordmark treatment, and sizing as
   roc3dprinting.com's nav-logo, just "IDENTITY" instead of "3D PRINTING" — */
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.logo svg { flex-shrink: 0; height: 84px; }
.logo-text { display: flex; flex-direction: column; align-items: center; }
.logo-roc {
  font-family: var(--font-logo);
  font-weight: 900; font-size: 3.1rem; line-height: 1;
  color: var(--text); letter-spacing: -0.5px; margin-top: -4px;
}
.logo-rule { display: block; height: 2px; background: var(--ink-soft); align-self: stretch; margin: 4px 0; }
.logo-sub {
  font-family: var(--font-logo);
  font-weight: 900; font-size: 0.88rem;
  color: var(--accent-text); letter-spacing: 3px; white-space: nowrap;
}
.footer-top .logo svg { height: 84px; }
.footer-top .logo-roc { color: var(--on-ink); font-size: 2.4rem; }
.footer-top .logo-sub { color: var(--on-ink-muted); font-size: 0.72rem; }
.footer-top .logo-rule { background: var(--on-ink-line); }
@media (max-width: 720px) {
  .site-header .wrap { height: 92px; }
  .logo svg { height: 72px; }
  .logo-roc { font-size: 2.5rem; }
  .logo-sub { font-size: 0.78rem; letter-spacing: 2.5px; }
  .nav-links { inset: 92px 0 auto 0; }
}
@media (max-width: 380px) {
  .site-header .wrap { height: 84px; }
  .logo { gap: 10px; }
  .logo svg { height: 62px; }
  .logo-roc { font-size: 2.1rem; }
  .logo-sub { font-size: 0.7rem; letter-spacing: 2px; }
  .nav-links { inset: 84px 0 auto 0; }
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 6px;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--line); }
.nav-links a[aria-current="page"] { color: var(--text); }
/* The nav CTA is a button first and a nav link second. `.nav-links a` outranks
   `.btn`/`.btn-primary` on specificity, so restore the button's own type and
   padding here rather than letting the nav-link rules mute it. */
.nav-links a.nav-cta {
  margin-left: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-ink);
  padding: 13px 22px;
  border-radius: 8px;
}
.nav-links a.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav-right { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--line); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 108px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper-raised); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a.nav-cta { margin: 14px 4px 0; padding: 13px 22px; border-radius: 8px; border-bottom-color: var(--ink); justify-content: center; }
  .nav-toggle { display: flex; }
}

/* — footer — */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--on-ink-line); }
.footer-blurb { margin-top: 14px; color: var(--on-ink-muted); font-size: 0.9375rem; max-width: 34ch; line-height: 1.6; }
.footer-heading { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 16px; }
.footer-links a, .footer-contact li { display: block; color: var(--on-ink-muted); font-size: 0.9375rem; padding: 6px 0; transition: color 140ms var(--ease); }
.footer-links a:hover { color: var(--on-ink); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.8125rem; color: var(--on-ink-muted); font-family: var(--font-mono); flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* — hero — */
.hero { padding: 18px 0 88px; overflow: clip; }
.hero .grid-12 { align-items: center; }
.hero-copy { grid-column: span 7; }
.hero-copy h1 { margin-top: 18px; }
.hero-copy .lede { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }
.hero-figure { grid-column: span 5; }
@media (max-width: 960px) {
  .hero-copy, .hero-figure { grid-column: span 12; }
  .hero-figure { order: -1; max-width: 360px; margin: 0 auto 8px; }
}

.competency-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.competency-track { display: flex; gap: 48px; padding: 18px 0; white-space: nowrap; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--muted); animation: scroll-x 32s linear infinite; width: max-content; }
.competency-track span { display: inline-flex; align-items: center; gap: 10px; }
.competency-track span::before { content: "//"; color: var(--accent-line); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .competency-track { animation: none; overflow-x: auto; } }

/* Sections that continue the preceding block rather than starting a new beat.
   Without it the two 96px pads stack into a ~192px hole at the seam. */
.section-flush { padding-top: 0; }

/* — section headers — */
.section-head { grid-column: span 12; display: grid; grid-template-columns: subgrid; margin-bottom: 56px; }
.section-head .kicker-col { grid-column: span 4; }
.section-head .heading-col { grid-column: 5 / span 8; }
@media (max-width: 860px) {
  .section-head { display: block; }
  .section-head .heading-col { margin-top: 16px; }
}
.section-head h2 { margin-top: 12px; }

/* — pillars / services — */
.pillars { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pillar { background: var(--paper-raised); padding: 36px 28px; position: relative; display: flex; flex-direction: column; }
.pillar .num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-text); letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pillar .badge { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-alt); border: 1px solid var(--accent-alt-ring); background: var(--accent-alt-soft); border-radius: 999px; padding: 2px 9px; }
.pillar h3 { margin-top: 20px; font-size: 1.5rem; }
.pillar p { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.pillar .cap-list { margin-top: 18px; display: grid; gap: 8px; }
.pillar .cap-list li { font-size: 0.875rem; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.pillar .cap-list li::before { content: "—"; color: var(--accent-line); flex: none; }
.pillar-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; padding: 11px 0; font-size: 0.875rem; font-weight: 600; color: var(--text); align-self: flex-start; }
/* Inside a card the link is pushed to the bottom so every CTA in a row shares
   one baseline regardless of how much copy sits above it. */
.pillar > .pillar-link { margin-top: auto; padding-top: 24px; padding-bottom: 0; }
.pillar-link svg { width: 14px; height: 14px; transition: transform 160ms var(--ease); }
.pillar-link:hover svg { transform: translateX(3px); }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.pillars.pillars-3 { grid-template-columns: repeat(3, 1fr); background: none; border: none; gap: 20px; }
@media (max-width: 860px) { .pillars.pillars-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars.pillars-3 { grid-template-columns: 1fr; } }

/* — services hub cards (services.html pillar page) — */
.service-cards { grid-column: span 12; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow-card); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.service-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-text); letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.service-card h3 { margin-top: 16px; font-size: 1.625rem; }
.service-card p { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.service-card .pillar-link { margin-top: 20px; }
@media (max-width: 720px) { .service-cards { grid-template-columns: 1fr; } }

/* — insights hub — */
.insights-grid { grid-column: span 12; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.insight-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.insight-card .cat { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.insight-card h3 { margin-top: 14px; font-size: 1.25rem; line-height: 1.15; }
.insight-card p { margin-top: 10px; color: var(--muted); font-size: 0.875rem; line-height: 1.6; flex: 1; }
.insight-card .meta { margin-top: 16px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
@media (max-width: 1080px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insights-grid { grid-template-columns: 1fr; } }

/* — long-form article — */
.article { grid-column: span 12; max-width: 72ch; margin: 0 auto; }
.article-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.article-meta span:not(:last-child)::after { content: "/"; margin-left: 14px; color: var(--line-strong); }
.article h1 { margin-top: 16px; }
.article .lede { margin-top: 18px; }
.article-body { margin-top: 48px; color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.article-body h2 { font-size: 1.75rem; margin-top: 2.4em; margin-bottom: 0.6em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.8em; margin-bottom: 0.5em; }
.article-body p { margin-top: 1.1em; color: var(--muted); }
.article-body p:first-of-type { margin-top: 0; }
.article-body ul, .article-body ol { margin-top: 1.1em; padding-left: 1.4em; color: var(--muted); }
.article-body li { margin-top: 0.5em; line-height: 1.65; }
.article-body li::marker { color: var(--accent-text); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.article-callout { margin-top: 2em; padding: 24px 28px; background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: 12px; }
.article-callout .callout-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.article-callout p { margin-top: 8px; color: var(--text); font-size: 0.9375rem; }
.article-callout p:first-of-type { margin-top: 8px; }
.article-cta { margin-top: 3em; padding: 32px; background: var(--ink); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article-cta p { margin: 0; color: var(--on-ink); font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; max-width: 34ch; }
.article-tags { margin-top: 3em; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; transition: border-color 140ms var(--ease), color 140ms var(--ease); }
.article-tags a:hover { border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 560px) { .article-cta { flex-direction: column; align-items: flex-start; } }

/* — process / approach — */
.process { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { border-top: 2px solid var(--line-strong); padding-top: 20px; }
.process-step .num { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.875rem; }
.process-step h3 { margin-top: 14px; font-size: 1.125rem; }
.process-step p { margin-top: 10px; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* — CTA band — */
.cta-band { background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: 64px 56px; }
.cta-band .grid-12 { align-items: center; }
.cta-band-copy { grid-column: span 8; }
.cta-band-copy .eyebrow { color: var(--accent2); }
.cta-band-copy .eyebrow::before { background: var(--accent2); }
.cta-band-copy h2 { color: var(--on-ink); margin-top: 14px; }
.cta-band-actions { grid-column: span 4; display: flex; justify-content: flex-end; gap: 14px; }
@media (max-width: 860px) {
  .cta-band { padding: 40px 28px; }
  .cta-band-copy, .cta-band-actions { grid-column: span 12; }
  .cta-band-actions { justify-content: flex-start; margin-top: 28px; }
}

/* — page hero (interior pages) — */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 18px; }

/* — service detail sections — */
.service-detail { grid-column: span 12; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: none; }
.service-detail .sd-label { grid-column: span 4; }
.service-detail .sd-body { grid-column: 6 / span 7; }
.service-detail.reverse .sd-label { grid-column: 9 / span 4; order: 2; }
.service-detail.reverse .sd-body { grid-column: 1 / span 7; order: 1; }
@media (max-width: 860px) {
  .service-detail .sd-label, .service-detail .sd-body, .service-detail.reverse .sd-label, .service-detail.reverse .sd-body { grid-column: span 12; order: 0; }
}
.sd-label .num { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.875rem; }
.sd-label h2 { margin-top: 12px; font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); }
.sd-body .cap-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.sd-body .cap-grid div { display: flex; gap: 10px; align-items: baseline; font-size: 0.9375rem; color: var(--text); }
.sd-body .cap-grid div::before { content: "—"; color: var(--accent-line); flex: none; }
@media (max-width: 560px) { .sd-body .cap-grid { grid-template-columns: 1fr; } }

/* — FAQ page — */
.faq-list { grid-column: span 12; max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; font-family: var(--font-body);
  font-weight: 600; font-size: 1.0625rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-family: var(--font-body); font-weight: 400;
  font-size: 1.375rem; line-height: 1; color: var(--accent-text);
  transition: transform 160ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; max-width: 66ch; }
.faq-item p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* — glossary page — */
.glossary-list { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.glossary-item { border-top: 1px solid var(--line); padding: 18px 0; }
.glossary-item dt { font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.glossary-item dd { margin: 8px 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
@media (max-width: 720px) { .glossary-list { grid-template-columns: 1fr; } }

/* — about page — */
.value-list { grid-column: span 12; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.value-item { display: flex; gap: 20px; }
.value-item .tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0.08em; flex: none; padding-top: 4px; }
.value-item h3 { font-size: 1.0625rem; }
.value-item p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 720px) { .value-list { grid-template-columns: 1fr; } }

/* — contact page — */
.contact-grid { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .icon { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-row .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-row .value { margin-top: 4px; font-size: 1.0625rem; font-weight: 500; }
.contact-row a.value:hover { color: var(--accent-text); }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.topic-chip { display: block; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 0.9375rem; font-weight: 500; transition: border-color 140ms var(--ease), background 140ms var(--ease), color 140ms var(--ease); cursor: pointer; }
.topic-chip:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-text); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .topic-grid { grid-template-columns: 1fr; } }

/* — assessment request form — */
.contact-layout { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.form-aside { display: grid; gap: 20px; }
@media (min-width: 961px) { .form-aside { position: sticky; top: 132px; } }
.aside-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 1.25rem; }
.aside-steps { margin-top: 16px; display: grid; gap: 14px; }
.aside-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.aside-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); font-family: var(--font-mono); font-size: 0.6875rem; display: grid; place-items: center; margin-top: 1px; }
.assessment-form { max-width: 100%; }
.form-section { border-top: 1px solid var(--line); padding: 36px 0; }
.form-section:first-of-type { border-top: none; padding-top: 8px; }
.form-legend { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.form-legend .step { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent-text); flex: none; }
.form-legend h2 { font-size: 1.5rem; line-height: 1.15; }
.form-hint { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; margin-top: 6px; max-width: 60ch; }
.form-body { margin-top: 22px; }

/* card-style checkbox / radio choices */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-grid.one-col { grid-template-columns: 1fr; }
.choice {
  position: relative;
  display: flex; align-items: flex-start; gap: 13px;
  padding: 17px 19px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background 140ms var(--ease), box-shadow 140ms var(--ease);
}
.choice:hover { border-color: var(--accent-line); background: var(--accent-tint); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice .box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--muted-2); border-radius: 5px;
  background: var(--paper-raised);
  display: grid; place-items: center;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.choice input[type="radio"] ~ .box { border-radius: 50%; }
.choice .box::after {
  content: ""; width: 10px; height: 10px;
  transform: scale(0); transition: transform 140ms var(--ease);
  background: var(--accent-ink);
  clip-path: polygon(14% 45%, 0 60%, 39% 100%, 100% 20%, 85% 5%, 39% 70%);
}
.choice input[type="radio"] ~ .box::after { clip-path: none; border-radius: 50%; width: 8px; height: 8px; }
.choice input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.choice input:checked ~ .box::after { transform: scale(1); }
.choice input:focus-visible ~ .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice .choice-text { min-width: 0; }
.choice .choice-title { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.choice .choice-desc { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; margin-top: 3px; }

/* text fields */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; }
.field + .field, .field-grid + .field { margin-top: 18px; }
.field-grid .field + .field { margin-top: 0; }
.field > .field-label {
  display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 7px;
}
.field .req { color: var(--accent-text); }

/* Inline accent link in prose. Uses --accent-text because plain --accent
   is 3.82:1 on the paper ground and fails AA at body size. */
.link-accent { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.link-accent:hover { color: var(--text); }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--text);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356647a' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--accent-alt); }
.field-error { display: none; color: var(--accent-alt); font-size: 0.8125rem; margin-top: 6px; }
.field[data-invalid="true"] .field-error { display: block; }
.group-error { display: none; color: var(--accent-alt); font-size: 0.8125rem; margin-top: 10px; }
.form-section[data-invalid="true"] .group-error { display: block; }

/* honeypot — hidden from people, catches naive bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submit row + status */
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 8px; }
.form-actions .fine-print { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; max-width: 42ch; }
.form-status { margin-top: 20px; border-radius: 12px; padding: 18px 20px; font-size: 0.9375rem; line-height: 1.6; display: none; }
.form-status.is-error { display: block; background: var(--accent-alt-soft); border: 1px solid var(--accent-alt-ring); color: var(--text); }
.form-status.is-busy { display: block; background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--text); }
.form-success { display: none; background: var(--paper-raised); border: 1px solid var(--accent-line); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-sm); }
.form-success.show { display: block; }
.form-success h2 { font-size: 1.75rem; }
.form-success p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-top: 12px; max-width: 56ch; }
.form-success .check { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.form-success .check svg { width: 22px; height: 22px; color: #fff; }

@media (max-width: 720px) {
  .choice-grid, .field-grid { grid-template-columns: 1fr; }
  .form-section { padding: 28px 0; }
}

/* — interaction states —
   Card-shaped links and the FAQ accordion had hover but no designed
   focus-visible, so keyboard users got the browser default ring against a
   custom radius. Press states give touch/click physical feedback; without
   them the surfaces read as inert. Rings inherit each element's own radius. */
.service-card:focus-visible,
.insight-card:focus-visible,
.aside-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.service-card:active,
.insight-card:active { transform: translateY(-1px) scale(0.995); transition-duration: 90ms; }

.pillar-link:focus-visible,
.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.article-tags a:focus-visible,
.topic-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.faq-item summary { cursor: pointer; transition: color 140ms var(--ease); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.choice:active { transform: scale(0.995); transition-duration: 90ms; }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Nav links were 41px tall against the 44px minimum touch target. */
@media (max-width: 860px) {
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}

/* — motion & feel polish —
   §4: hover grows the resting shadow's largest layer rather than introducing a
   new shadow, so the card reads as lifting rather than switching state.
   §13: disabled must drop hover as well as opacity, or a dead control still
   responds to the mouse. Inline article links need a hover signal. */
.service-card:hover,
.insight-card:hover { box-shadow: var(--shadow-card-hover); }

.btn[disabled]:hover,
.btn[disabled]:active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
  transform: none;
}
.btn-ghost[disabled]:hover { background: transparent; border-color: var(--line-strong); color: var(--text); }

.article-body a { transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease); }
.article-body a:hover { color: var(--text); text-decoration-color: var(--accent); }
.article-body a.btn { color: var(--on-ink); text-decoration: none; }
.article-body a.btn:hover { color: var(--accent-ink); }
.article-body a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* — 404 — */
.error-page { min-height: 62vh; display: flex; align-items: center; }
.error-page .code { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.9375rem; letter-spacing: 0.08em; }
.error-page h1 { margin-top: 16px; }
.error-page .lede { margin-top: 16px; }
.error-page .hero-actions { margin-top: 32px; }

/* — reveal on scroll —
   Visible by default (no-JS / JS-failed safe). Only hidden-then-revealed
   once an inline head script confirms JS is running (adds .js to <html>). */
.reveal { transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* — focus — */
a:focus-visible, button:focus-visible, .topic-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================================
   Techy / dark surface treatments — used for the AI Agent Governance
   content and other spots that want more visual charge than the light
   editorial pages. Same tokens, more depth: dot grids, radial glow,
   glass-panel cards, a terminal/code component.
   ========================================================================= */

.tech-section { position: relative; background: var(--ink); color: var(--on-ink); overflow: clip; }
.tech-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255,255,255,0.09) 1.5px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.tech-section::after {
  content: "";
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 140vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%);
  opacity: 0.16;
  pointer-events: none;
}
.tech-section .wrap, .tech-section .section-head, .tech-section h2 { position: relative; z-index: 1; }
.tech-section .eyebrow { color: var(--accent2); }
.tech-section .eyebrow::before { background: var(--accent2); }
.tech-section h2 { color: var(--on-ink); }
.tech-section .lede { color: var(--on-ink-muted); }

.glass-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.glass-card .num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent2); letter-spacing: 0.08em; }
.glass-card h3 { margin-top: 16px; color: var(--on-ink); font-size: 1.375rem; }
.glass-card p { margin-top: 10px; color: var(--on-ink-muted); font-size: 0.9375rem; line-height: 1.6; }

/* — terminal / code block — policy & config snippets — */
.code-block {
  background: #111318;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2em;
  box-shadow: var(--shadow-md);
}
.code-block .code-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono); font-size: 0.75rem; color: rgba(223,225,229,0.5);
}
.code-block .code-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.code-block pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7;
  color: #dfe1e5;
}
.code-block .tok-key { color: #f0b429; }
.code-block .tok-str { color: #8fbfe0; }
.code-block .tok-num { color: #e0a86a; }
.code-block .tok-com { color: #8b9099; font-style: italic; }

/* — agent graph diagram (SVG hero on tech sections) — */
.agent-graph text { font-family: var(--font-mono); }

@media (max-width: 720px) {
  .glass-card { padding: 22px; }
}
