:root {
  /* ── Gruvbox Dark palette ── */
  --gb-bg-hard:    #1d2021;
  --gb-bg:         #282828;
  --gb-bg-soft:    #32302f;
  --gb-bg1:        #3c3836;
  --gb-bg2:        #504945;
  --gb-bg3:        #665c54;
  --gb-bg4:        #7c6f64;

  --gb-fg:         #ebdbb2;
  --gb-fg1:        #d5c4a1;
  --gb-fg2:        #bdae93;
  --gb-fg3:        #a89984;
  --gb-fg4:        #928374;

  --gb-red:        #cc241d; --gb-red-b:    #fb4934;
  --gb-green:      #98971a; --gb-green-b:  #b8bb26;
  --gb-yellow:     #d79921; --gb-yellow-b: #fabd2f;
  --gb-blue:       #458588; --gb-blue-b:   #83a598;
  --gb-purple:     #b16286; --gb-purple-b: #d3869b;
  --gb-aqua:       #689d6a; --gb-aqua-b:   #8ec07c;
  --gb-orange:     #d65d0e; --gb-orange-b: #fe8019;

  /* Semantic */
  --color-primary:        var(--gb-yellow);
  --color-primary-bright: var(--gb-yellow-b);
  --color-primary-dim:    #a07810;
  --color-on-primary:     var(--gb-bg-hard);

  --color-bg-dark:        var(--gb-bg-hard);
  --color-bg-mid:         var(--gb-bg);
  --color-bg-soft:        var(--gb-bg-soft);
  --color-bg-card:        var(--gb-bg);
  --color-bg-elevated:    var(--gb-bg1);

  --color-text-primary:   var(--gb-fg);
  --color-text-secondary: var(--gb-fg3);
  --color-text-muted:     var(--gb-bg4);

  --color-border:         rgba(215, 153, 33, 0.14);
  --color-border-strong:  rgba(215, 153, 33, 0.32);

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 32px rgba(215, 153, 33, 0.22);
}

/* ═══════════════════════════════════════════════════════════════
   Gruvbox Light theme. Activated by data-theme="light" on <html>
   (set pre-paint by the inline script in <head>, toggled from main.js).
   All light-mode changes live in this section; the dark theme above
   is left untouched.
   ─────────────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  /* Gruvbox Light palette — bg becomes light, fg becomes dark. Because
     components resolve --color-* / --gb-* at use time, remapping the raw
     palette here flips both the semantic layer and the ~15 rules that
     reference --gb-* directly. */
  --gb-bg-hard: #f9f5d7;
  --gb-bg:      #fbf1c7;
  --gb-bg-soft: #f2e5bc;
  --gb-bg1:     #ebdbb2;
  --gb-bg2:     #d5c4a1;
  --gb-bg3:     #bdae93;
  --gb-bg4:     #a89984;

  --gb-fg:      #282828;
  --gb-fg1:     #3c3836;
  --gb-fg2:     #504945;
  --gb-fg3:     #665c54;
  --gb-fg4:     #7c6f64;

  /* Accents shift one step darker so they stay legible on cream. The -b
     (bright) variants become the mid tones — this also keeps Prism code
     tokens readable, since they use the -b vars. */
  --gb-red:    #9d0006; --gb-red-b:    #cc241d;
  --gb-green:  #79740e; --gb-green-b:  #98971a;
  --gb-yellow: #b57614; --gb-yellow-b: #d79921;
  --gb-blue:   #076678; --gb-blue-b:   #458588;
  --gb-purple: #8f3f71; --gb-purple-b: #b16286;
  --gb-aqua:   #427b58; --gb-aqua-b:   #689d6a;
  --gb-orange: #af3a03; --gb-orange-b: #d65d0e;

  /* Semantic tokens that borrow from the "wrong end" of the ramp for light. */
  --color-primary-dim: #b57614;
  --color-text-muted:  var(--gb-fg4);

  --color-border:        rgba(181, 118, 20, 0.22);
  --color-border-strong: rgba(181, 118, 20, 0.42);

  --shadow-sm:   0 1px 3px rgba(60, 56, 54, 0.10);
  --shadow-md:   0 6px 20px rgba(60, 56, 54, 0.12);
  --shadow-glow: 0 0 32px rgba(181, 118, 20, 0.16);
}

/* Component-level light overrides — only for rules that hardcode a dark
   colour rather than reading a token. Attribute+class specificity means
   source order below the originals is irrelevant. */
[data-theme="light"] .site-header             { background: rgba(251, 241, 199, 0.72); }
[data-theme="light"] .site-header.is-scrolled { background: rgba(251, 241, 199, 0.90); }

[data-theme="light"] .svc-half,
[data-theme="light"] .exp-cell,
[data-theme="light"] .flow-step,
[data-theme="light"] .article-body .check-list {
  background: linear-gradient(160deg, #fbf1c7 0%, #f2e5bc 100%);
}
[data-theme="light"] .svc-half + .svc-half,
[data-theme="light"] .exp-cell:nth-child(2) {
  background: linear-gradient(200deg, #fbf1c7 0%, #f2e5bc 100%);
}
[data-theme="light"] .svc-half:hover { background: #efe3b6; }

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(215, 153, 33, 0.13) 0%, rgba(215, 153, 33, 0) 60%);
}

/* The spectrogram is emissive against black; on cream it reads heavier, so
   fade it and let the softened light colormap carry the rest. */
[data-theme="light"] #hero-waterfall { opacity: 0.45; }
[data-theme="light"] #hero-spectrum  { opacity: 0.9; }

[data-theme="light"] .tag             { background: rgba(60, 56, 54, 0.04); }
[data-theme="light"] .article-tags li { background: rgba(60, 56, 54, 0.03); }

/* Brand logo: dark-background artwork vs light-background artwork. */
.brand .brand-logo--light { display: none; }
[data-theme="light"] .brand .brand-logo--dark  { display: none; }
[data-theme="light"] .brand .brand-logo--light { display: inline-block; }

/* Theme toggle button (lives in the nav). Shows the icon of the current
   theme: moon in dark, sun in light. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--color-primary); background: rgba(215, 153, 33, 0.08); }
.theme-toggle svg { display: block; width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline-flex; }
[data-theme="light"] .theme-toggle .icon-sun  { display: inline-flex; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--color-primary); color: var(--color-on-primary); }

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

/* --------------------- Layout primitives --------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--color-primary);
  display: inline-block;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: var(--space-4);
  max-width: 22ch;
}

.section-kicker {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 62ch;
  margin-top: var(--space-4);
}

/* --------------------- Header / Nav --------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--space-3) 0;
  background: rgba(29, 32, 33, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(29, 32, 33, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand--footer img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: rgba(215, 153, 33, 0.08);
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
  border: 1px solid var(--color-primary);
}

.nav-cta:hover {
  background: var(--color-primary-bright) !important;
  color: var(--color-on-primary) !important;
  border-color: var(--color-primary-bright);
  box-shadow: var(--shadow-glow);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) !important;
  color: var(--color-text-secondary);
}
.nav-icon svg { display: block; }
.nav-icon:hover { color: var(--color-primary); }
.nav-icon-label { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--color-text-primary);
  cursor: pointer;
}

/* --------------------- Hero --------------------- */
.hero {
  position: relative;
  padding: 160px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(215, 153, 33, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 153, 33, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 153, 33, 0.2) 0%, rgba(215, 153, 33, 0) 60%);
  top: -200px;
  right: -160px;
  filter: blur(40px);
}

.hero-waterfall {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  pointer-events: none;
  overflow: hidden;
}

#hero-waterfall {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 95% 100% at 50% 100%, #000 30%, rgba(0,0,0,0.45) 65%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 100% at 50% 100%, #000 30%, rgba(0,0,0,0.45) 65%, transparent 100%);
}

/* Live power-spectrum (dB) trace across the bottom edge of the waterfall: the
   same signal model plotted as a curve, synced to the scroll so its peaks meet
   the bands flowing down into it. Shares the waterfall's centered column, so the
   frequency axis lines up. */
#hero-spectrum {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 52px;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 45%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 45%, transparent 100%);
}


.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: var(--space-5);
}

.hero-title .accent { color: var(--color-primary); }

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
}

/* Hidden until the GSAP intro timeline runs. Falls back to visible if
   reduced-motion is set (see media query at the bottom of this file)
   or if GSAP fails to load (see the no-gsap branch in main.js). */
.hero .eyebrow,
.hero-lead,
.hero-meta > span,
.hero-waterfall {
  opacity: 0;
}

.hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--color-text-secondary);
  margin-top: var(--space-6);
  max-width: 60ch;
  line-height: 1.65;
}

.hero-actions {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.35); }
}

/* --------------------- Buttons --------------------- */
.btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border-strong);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(215, 153, 33, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--gb-bg3);
}

.btn svg { width: 16px; height: 16px; }

/* --------------------- Sections generic --------------------- */
.section-pad {
  padding: var(--space-9) 0;
}

.section-head {
  max-width: 900px;
  margin-bottom: var(--space-8);
}

/* --------------------- Expertise --------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.capability {
  position: relative;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.capability::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(215, 153, 33, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.capability:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
}

.capability:hover::after { opacity: 1; }

.capability-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(215, 153, 33, 0.1);
  border: 1px solid var(--color-border-strong);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-icon svg { width: 22px; height: 22px; }

.capability-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.capability-body {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* --------------------- Research preview --------------------- */
.research-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.research-list {
  display: flex;
  flex-direction: column;
}

.research-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  transition: background 0.2s ease, padding 0.2s ease;
}

.research-item:last-child { border-bottom: 1px solid var(--color-border); }

.research-item:hover {
  background: linear-gradient(90deg, rgba(215, 153, 33, 0.05), transparent 80%);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.research-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.research-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.research-title small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.research-arrow {
  color: var(--color-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.research-item:hover .research-arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* --------------------- Contact --------------------- */
.contact-wrap {
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrap::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(215, 153, 33, 0.2), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-info { position: relative; z-index: 1; }

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.contact-info p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-6);
  max-width: 46ch;
}

.contact-email-cta {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-meta-item svg {
  width: 13px;
  height: 13px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --------------------- Footer --------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
  background: var(--color-bg-dark);
  color: var(--color-text-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand .brand { margin-bottom: var(--space-4); }

.footer-brand p {
  font-size: 13px;
  max-width: 40ch;
  color: var(--color-text-muted);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { font-size: 13px; color: var(--color-text-secondary); transition: color 0.15s; }
.footer-col a:hover { color: var(--color-primary); }

.footer-col .with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col .with-icon svg { flex-shrink: 0; color: var(--color-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* --------------------- Scroll reveal baseline --------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* --------------------- Research page --------------------- */
.page-hero {
  padding: 160px 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero .eyebrow { position: relative; z-index: 1; }
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: var(--space-4);
  max-width: 20ch;
}
.page-hero p {
  position: relative;
  z-index: 1;
  margin-top: var(--space-5);
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

.empty-state {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-mid);
  color: var(--color-text-secondary);
}
.empty-state svg { color: var(--color-primary); margin-bottom: var(--space-4); }
.empty-state p { max-width: 50ch; margin: var(--space-2) auto 0; }

/* --------------------- Article (long-form) --------------------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-bright));
  z-index: 60;
  box-shadow: 0 0 12px rgba(215, 153, 33, 0.5);
  transition: opacity 0.2s ease;
}

.article-hero {
  padding: 140px 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.article-hero .hero-bg { position: absolute; inset: 0; }
.article-hero > .container { position: relative; z-index: 1; }

.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-2);
  transition: color 0.15s ease, gap 0.15s ease;
  margin-bottom: var(--space-6);
}
.back-link:hover {
  color: var(--color-primary);
  gap: var(--space-3);
}
.back-link svg { width: 12px; height: 12px; }

.article-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: var(--space-5);
  max-width: 22ch;
}

.article-lead {
  margin-top: var(--space-5);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--color-text-secondary);
  max-width: 62ch;
  line-height: 1.6;
}

.article-meta {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.article-tags {
  list-style: none;
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
}

.article-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  padding: 4px 10px 4px 22px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.article-tags li::before {
  content: "#";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-weight: 500;
}

.article-tags li:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
  background: rgba(215, 153, 33, 0.05);
}

.article-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.article-meta-value {
  font-size: 14px;
  color: var(--color-text-primary);
}

.article-main {
  padding: var(--space-9) 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-primary);
}

.article-body > * + * { margin-top: var(--space-5); }
.article-body > h2 + *,
.article-body > h3 + * { margin-top: var(--space-4); }

.article-body p { color: var(--gb-fg1); }

.article-body h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  scroll-margin-top: 96px;
  position: relative;
  padding-left: var(--space-4);
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.article-body h3 {
  margin-top: var(--space-6);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(215, 153, 33, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.article-body a:hover {
  color: var(--color-primary-bright);
  text-decoration-color: var(--color-primary-bright);
}

.article-body strong { color: var(--gb-fg); font-weight: 700; }
.article-body em { color: var(--gb-fg2); font-style: italic; }

.article-body ul,
.article-body ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.article-body ul > li,
.article-body ol > li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--gb-fg1);
}

.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.article-body ol { counter-reset: ol; }
.article-body ol > li { counter-increment: ol; }
.article-body ol > li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.article-body hr {
  margin: var(--space-8) 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.article-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: rgba(215, 153, 33, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--gb-fg1);
  font-size: 18px;
  line-height: 1.6;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  color: var(--gb-yellow-b);
  padding: 1px 6px;
  border-radius: 4px;
}

.article-body pre {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gb-fg);
  position: relative;
}
.article-body pre code { background: none; border: none; padding: 0; color: inherit; font-family: inherit; }

/* Language badge on top-right of pre */
.article-body pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Prism.js Gruvbox theme override --- */
.article-body code[class*="language-"],
.article-body pre[class*="language-"] {
  color: var(--gb-fg);
  text-shadow: none;
  font-family: var(--font-mono);
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.7;
  tab-size: 4;
  hyphens: none;
}

.article-body .token.comment,
.article-body .token.prolog,
.article-body .token.doctype,
.article-body .token.cdata         { color: var(--gb-bg4); font-style: italic; }

.article-body .token.punctuation   { color: var(--gb-fg2); }
.article-body .token.namespace     { opacity: 0.7; }

.article-body .token.property,
.article-body .token.tag,
.article-body .token.constant,
.article-body .token.symbol,
.article-body .token.deleted       { color: var(--gb-red-b); }

.article-body .token.boolean,
.article-body .token.number        { color: var(--gb-purple-b); }

.article-body .token.selector,
.article-body .token.attr-name,
.article-body .token.string,
.article-body .token.char,
.article-body .token.builtin,
.article-body .token.inserted      { color: var(--gb-green-b); }

.article-body .token.operator,
.article-body .token.entity,
.article-body .token.url,
.article-body .language-css .token.string,
.article-body .style .token.string { color: var(--gb-fg1); background: transparent; }

.article-body .token.atrule,
.article-body .token.attr-value,
.article-body .token.keyword       { color: var(--gb-red-b); font-weight: 500; }

.article-body .token.function,
.article-body .token.class-name    { color: var(--gb-yellow-b); }

.article-body .token.regex,
.article-body .token.important,
.article-body .token.variable      { color: var(--gb-aqua-b); }

.article-body .token.decorator,
.article-body .token.annotation    { color: var(--gb-orange-b); }

.article-body .token.important,
.article-body .token.bold          { font-weight: bold; }
.article-body .token.italic        { font-style: italic; }

.article-body table {
  width: 100%;
  margin: var(--space-6) 0;
  border-collapse: collapse;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}

.article-body thead {
  background: rgba(215, 153, 33, 0.08);
  border-bottom: 1px solid var(--color-border-strong);
}

.article-body th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-weight: 500;
}

.article-body td {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--gb-fg1);
}
.article-body tbody tr:first-child td { border-top: none; }
.article-body td:first-child {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 13px;
  white-space: nowrap;
}

/* Callout — e.g. key claim emphasis */
.article-body .callout {
  margin: var(--space-7) 0;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border-strong);
  background: rgba(215, 153, 33, 0.05);
  border-radius: var(--radius-md);
  position: relative;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gb-fg);
}
.article-body .callout::before {
  content: "!";
  position: absolute;
  top: -14px;
  left: var(--space-5);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image placeholder for future images */
.article-body figure {
  margin: var(--space-7) 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-mid);
}
.article-body figcaption {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: center;
}
.article-body .figure-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--color-border-strong);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(215, 153, 33, 0.04) 0 10px,
      transparent 10px 20px
    ),
    var(--color-bg-mid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* End-of-article CTA */
.article-cta {
  max-width: 720px;
  margin: var(--space-9) auto 0;
  padding: var(--space-7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(215, 153, 33, 0.08), rgba(214, 93, 14, 0.04));
  text-align: center;
}
.article-cta h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}
.article-cta p {
  color: var(--color-text-secondary);
  max-width: 50ch;
  margin: 0 auto var(--space-5);
}

/* --------------------- Responsive --------------------- */
@media (max-width: 860px) {
  .research-split { grid-template-columns: 1fr; }
  .contact-wrap   { padding: var(--space-6); }
  .footer-top     { grid-template-columns: 1fr; gap: var(--space-5); }
  .research-item  { grid-template-columns: 1fr auto; }
  .research-item .research-date { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--space-4);
    left: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg-mid);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: var(--space-3); }
  .nav-toggle { display: inline-flex; }

  .nav-icon {
    justify-content: flex-start;
    padding: var(--space-3) !important;
  }
  .nav-icon svg { display: none; }
  .nav-icon-label { display: inline; }
  .hero .eyebrow {
    max-width: 100%;
  }
  .hero .eyebrow .eyebrow-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }
  .hero { padding: 140px 0 80px; }
  .section-pad { padding: var(--space-8) 0; }
  .brand img { height: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word > span { transform: none; }
  .hero .eyebrow,
  .hero-lead,
  .hero-meta > span,
  .hero-waterfall { opacity: 1; }
}

/* --------------------- Article figure lightbox --------------------- */
/* Hint that figures are clickable. */
.article-body figure img { cursor: zoom-in; }

/* Hidden by default; .showModal() makes it visible. */
.lightbox {
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: rgba(15, 16, 18, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-mid);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  font-family: var(--font-mono, system-ui), system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 120ms ease, transform 120ms ease;
}
.lightbox-close:hover {
  background: var(--color-bg-soft);
  transform: scale(1.05);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

/* --------------------- Services --------------------- */
/* Key regulatory dates on service pages. */
.key-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.key-date {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-bg-mid);
  padding: var(--space-5);
}

.key-date-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.key-date p { font-size: 14px; line-height: 1.6; }

/* --------------------- Services split (style 1d) --------------------- */
/* One shared frame, two halves divided by a center seam. Each half is the
   click target for its service page. */
.svc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gb-bg1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-half {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 56px 48px;
  background: linear-gradient(160deg, #282828 0%, #232526 100%);
  cursor: pointer;
  transition: background 0.2s ease;
}

.svc-half + .svc-half {
  background: linear-gradient(200deg, #282828 0%, #232526 100%);
}

.svc-half:first-child { border-right: 1px solid var(--gb-bg1); }

.svc-half:hover { background: #2b2a27; }

.svc-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.svc-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gb-bg2);
}

.svc-headline {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gb-fg);
  max-width: 420px;
}

.svc-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gb-fg3);
  max-width: 460px;
}

.svc-standards {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gb-fg4);
}

.svc-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-bright);
  transition: color 0.15s ease;
}

.svc-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.svc-half:hover .svc-link { color: var(--color-primary); }
.svc-half:hover .svc-link svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .svc-split { grid-template-columns: 1fr; }
  .svc-half:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--gb-bg1);
  }
}

/* --------------------- Expertise pairs --------------------- */
/* Same frame language as the services split: rows of two seam-divided
   halves with vertical space between rows; the odd final box sits centered
   at half width. */
.exp-rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gb-bg1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.exp-pair.is-active { border-color: var(--color-border-strong); }

.exp-pair--single {
  grid-template-columns: 1fr;
  width: calc(50% - 12px);
  margin: 0 auto;
}

.exp-cell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 44px;
  background: linear-gradient(160deg, #282828 0%, #232526 100%);
}

.exp-cell:nth-child(2) {
  background: linear-gradient(200deg, #282828 0%, #232526 100%);
  border-left: 1px solid var(--gb-bg1);
}

.exp-cell .svc-standards { margin-top: auto; }

.exp-headline {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gb-fg);
}

.exp-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gb-fg3);
  max-width: 56ch;
}

@media (max-width: 860px) {
  .exp-pair { grid-template-columns: 1fr; }
  .exp-pair--single {
    width: 100%;
    margin: 0;
  }
  .exp-cell { padding: 28px 26px; }
  .exp-cell:nth-child(2) {
    border-left: 0;
    border-top: 1px solid var(--gb-bg1);
  }
}

/* --------------------- About portrait --------------------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-7);
  align-items: center;
}

/* Warm monochrome treatment so the photo sits in the gruvbox palette;
   rounded-chip corners to match the frame language. */
.about-portrait {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  filter: grayscale(1) sepia(0.32) saturate(1.15) brightness(0.92);
}

@media (max-width: 640px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .about-portrait {
    width: 140px;
    height: 140px;
  }
}

/* --------------------- Lab photography --------------------- */
/* Unified tone for bench photos: slightly desaturated and dimmed so shots
   taken in different light sit together in the gruvbox palette. */
.lab-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gb-bg1);
  filter: saturate(0.8) contrast(1.04) brightness(0.93);
}

/* About-page gallery: one wide bench shot over two square details. */
.lab-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.lab-gallery figure { margin: 0; }

.lab-gallery figure:first-child { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .lab-gallery { grid-template-columns: 1fr; }
}

/* --------------------- About / service page headings --------------------- */
/* Section headings as mono kickers with a trailing rule, matching the
   services/expertise label language instead of the article heading bar. */
.about-body h2,
.service-body h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
  margin-top: var(--space-9);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.about-body h2::before,
.service-body h2::before { display: none; }

.about-body h2::after,
.service-body h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gb-bg2);
}

/* Opening statement carries more weight than body copy. */
.about-body > p:first-child {
  font-size: 19px;
  line-height: 1.65;
  color: var(--gb-fg);
}

/* Track record timeline: years | rail with gold nodes | entry. */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 40px;
  padding-bottom: var(--space-7);
}

.timeline-item:last-child { padding-bottom: 0; }

/* Rail segment: from this node down to the next. */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 116px;
  top: 14px;
  bottom: -6px;
  width: 1px;
  background: var(--gb-bg1);
}

.timeline-item:last-child::before { display: none; }

/* Gold node on the rail. */
.timeline-item::after {
  content: "";
  position: absolute;
  left: 113px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(215, 153, 33, 0.5);
}

.timeline-years {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-align: right;
  padding-top: 2px;
}

.timeline-entry { padding-left: 24px; }

.timeline-entry h3 {
  margin-top: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gb-fg);
}

.timeline-entry p {
  margin-top: var(--space-2);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gb-fg3);
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 24px;
  }
  .timeline-item::before { left: 3px; top: 12px; }
  .timeline-item::after { left: 0; top: 5px; }
  .timeline-years { text-align: left; padding-top: 0; }
  .timeline-entry { padding-left: 0; }
}

/* --------------------- Engagement flow (boxed steps) --------------------- */
/* Stacked boxes joined by a downward gold connector that points to the next
   step. Used for the "how an engagement runs" sequences on service pages. */
.flow {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--gb-bg1);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #282828 0%, #232526 100%);
  padding: 28px 32px;
}

.flow-step-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(215, 153, 33, 0.1);
  border: 1px solid var(--color-border-strong);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-icon svg { width: 24px; height: 24px; }

.article-body .flow-step h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gb-fg);
}

.article-body .flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gb-fg3);
}

@media (max-width: 640px) {
  .flow-step { gap: 18px; padding: 24px 22px; }
  .flow-step-icon { width: 40px; height: 40px; }
  .flow-step-icon svg { width: 20px; height: 20px; }
}

/* Connector line down through the gap, inset from both boxes for air. */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  width: 1px;
  height: 26px;
  background: var(--color-primary);
}

/* Chevron arrowhead at the end of the connector, pointing at the next box. */
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 44px);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  transform: translate(-50%, -100%) rotate(45deg);
  z-index: 1;
}

/* Consistent, subtle hover on the non-interactive card elements. No lift or
   pointer — they aren't links; this is liveliness, not an affordance. */
.flow-step,
.flow-step-icon,
.key-date,
.article-body .deliverables > li,
.deliverable-label {
  transition: border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.flow-step:hover { border-color: var(--color-border-strong); }

.flow-step:hover .flow-step-icon {
  background: rgba(215, 153, 33, 0.16);
  box-shadow: 0 0 16px rgba(215, 153, 33, 0.22);
}

.key-date:hover { border-color: var(--color-primary); }

.article-body .deliverables > li:hover { border-left-color: var(--color-primary-bright); }
.article-body .deliverables > li:hover .deliverable-label { color: var(--color-primary-bright); }

/* --------------------- Check-list (service assessment points) --------------------- */
/* One framed panel, hairline-separated rows, each led by a gold check glyph.
   Overrides the default article-body list styling. */
.article-body .check-list {
  list-style: none;
  gap: 0;
  border: 1px solid var(--gb-bg1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #282828 0%, #232526 100%);
}

.article-body .check-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 28px;
  transition: background 0.2s ease;
}

.article-body .check-list > li::before { content: none; }

.article-body .check-list > li + li { border-top: 1px solid var(--gb-bg1); }

.article-body .check-list > li:hover { background: rgba(215, 153, 33, 0.04); }

.check-mark {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: rgba(215, 153, 33, 0.08);
}

.check-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--color-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gb-fg);
}

.article-body .check-list p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gb-fg3);
}

/* --------------------- Deliverables (service "what you get") --------------------- */
/* Two-column grid of gold-labelled blocks. No frames or rules — an airy
   counterpoint to the framed check-list above. */
.article-body .deliverables {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.article-body .deliverables > li {
  padding-left: 16px;
  border-left: 1px solid var(--color-border-strong);
}

.article-body .deliverables > li::before { content: none; }

.deliverable-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.article-body .deliverables p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gb-fg3);
}

@media (max-width: 640px) {
  .article-body .deliverables { grid-template-columns: 1fr; }
}

/* --------------------- Service cross-link --------------------- */
/* Small routing note at the top of a service page, pointing to its sibling. */
.article-body .service-crosslink {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gb-fg4);
  border-left: 2px solid var(--color-border-strong);
  padding-left: 16px;
}

.article-body .service-crosslink a {
  color: var(--color-primary);
  text-decoration: none;
}

.article-body .service-crosslink a:hover {
  color: var(--color-primary-bright);
  text-decoration: underline;
}

/* Standards line under a service-page lead (front-page svc-standards style). */
.article-hero .hero-standards {
  margin-top: var(--space-5);
  color: var(--gb-fg3);
}
