/* ─── DataMind Technology — Site Styles v2.0 ─────────────────────────────── */
/* Design System: Editorial-Structural (Style Guide v1.0, March 2026)         */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Epilogue:ital,wght@0,300;0,400;0,500;1,300;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');
/* DMX-RD-01 — Lucid redesign fonts (additive): Newsreader serif (with italic axis for emphasis words) + Hanken Grotesk body. IBM Plex Mono already loaded above. */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ──────────────────────────────────────────────────── */
:root {
  /* Core palette */
  --color-ink:        #141410;
  --color-paper:      #FAFAF8;
  --color-bone:       #EDEDE8;
  --color-rule:       #E8E8E2;
  --color-muted:      #9A9890;
  --color-silent:     #4A4A44;

  /* Dark surfaces */
  --color-dark:       #141410;
  --color-dark-mid:   #1C1C16;
  --color-dark-rule:  #2A2A24;
  --color-dark-deep:  #1E1E18;
  --color-dark-text:  #D8D8D0;
  --color-dark-muted: #B0B0A8;
  --color-dark-quiet: #5A5A54;
  --color-dark-ghost: #3A3A34;

  /* Brand accent — used sparingly */
  --color-purple:     #6B3FA0;
  --color-purple-dim: #4A2B72;

  /* Borders */
  --border-heavy:  1.5px solid #141410;
  --border-light:  1px solid #E8E8E2;
  --border-dark:   1px solid #2A2A24;
  --border-darker: 1px solid #1E1E18;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Epilogue', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 500; }

/* ── Accessibility ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

/* ── Container ──────────────────────────────────────────────────────────────── */
.site-container,
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Eyebrow ────────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-purple);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-purple);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--color-purple-dim); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1.5px solid var(--color-ink);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { background: var(--color-ink); color: var(--color-paper); }

/* Dark-surface variant */
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--color-dark-text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1.5px solid var(--color-dark-rule);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-secondary-dark:hover { background: var(--color-dark-mid); }

.btn-ghost {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-silent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.btn-ghost:hover { color: var(--color-ink); }

/* ── Navigation (Lucid — DMX-RD-02) ─────────────────────────────────────────── */
/* Sticky, backdrop-blurred bar: logo + "DataMind / Technology" wordmark, 5 links
   with active state, "Book an appointment" pill CTA. Injected by js/components.js. */
#dm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 254, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dm-line);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
/* Blur/contrast intensifies once scrolled (class toggled in components.js). */
#dm-nav.dm-nav--scrolled {
  background: rgba(252, 251, 254, 0.88);
  box-shadow: 0 1px 0 var(--dm-line), 0 6px 20px rgba(33, 23, 51, 0.05);
}
.dm-nav__inner {
  width: 100%;
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 0 var(--dm-pad-x);
  height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: auto;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-wordmark { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.nav-wordmark-name {
  font-family: var(--dm-font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dm-ink);
  line-height: 1;
}
.nav-wordmark-sub {
  font-family: var(--dm-font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dm-label);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.dm-nav__link {
  font-family: var(--dm-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dm-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.dm-nav__link:hover { color: var(--dm-ink); }
.dm-nav__link.active { color: var(--dm-ink); font-weight: 500; }

.nav-cta-wrap { display: flex; align-items: center; }
.dm-nav__cta { font-size: 13px; padding: 11px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dm-ink);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
  /* >=44px tap target for accessibility */
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  line-height: 1;
}

/* Mobile nav: hamburger reveals a stacked drop panel. Breakpoint sized for the
   5 links + wordmark + pill (the legacy 640px block was for the old bar). */
@media (max-width: 860px) {
  .dm-nav__inner { padding: 0 24px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    margin-left: 0;
  }
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--dm-bg);
    border-bottom: 1px solid var(--dm-line);
    box-shadow: 0 12px 28px rgba(33, 23, 51, 0.10);
    padding: 8px 0;
    z-index: 100;
  }
  .main-nav.nav-open .dm-nav__link {
    /* >=44px tap targets */
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--dm-line);
  }
  .main-nav.nav-open .nav-cta-wrap {
    padding: 14px 24px;
  }
  .main-nav.nav-open .dm-nav__cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* ── Section Divider Bar ────────────────────────────────────────────────────── */
.section-bar {
  background: var(--color-bone);
  border-top: var(--border-heavy);
  border-bottom: var(--border-heavy);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.section-bar-action {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple);
  text-decoration: none;
  transition: color 0.15s ease;
}
.section-bar-action:hover { color: var(--color-purple-dim); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  border-bottom: var(--border-heavy);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
}

.hero-left {
  padding: var(--space-16) var(--space-10) 0;
  border-right: var(--border-heavy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-bottom: var(--space-6);
}
.hero-headline em {
  font-style: italic;
  color: var(--color-purple);
  font-weight: 700;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  margin-bottom: var(--space-10);
  max-width: 480px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Stats strip (inside left panel) */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: var(--border-heavy);
  margin-top: auto;
  /* extend border-top to flush with hero container edges */
  margin-left: calc(-1 * var(--space-10));
  margin-right: calc(-1 * var(--space-10));
}
.hero-stat {
  padding: var(--space-6) var(--space-4) var(--space-5);
  border-right: var(--border-heavy);
  min-width: 0;
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-ink);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: normal;
  word-break: break-word;
}

/* Services dark column */
.hero-services {
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  padding: var(--space-10) 0;
}

.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-paper);
  margin-bottom: var(--space-6);
  padding: 0 var(--space-5);
}

/* ── Proof / Stat Grid ──────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-dark-rule);
  border: 1px solid var(--color-dark-rule);
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
}
.proof-cell {
  background: var(--color-dark-mid);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.proof-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-paper);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-dark-quiet);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Service List (hero right panel) ────────────────────────────────────────── */
.service-list { flex: 1; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: var(--border-darker);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.service-item:hover { background: var(--color-dark-mid); }
.service-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-dark-ghost);
  padding-top: 1px;
  flex-shrink: 0;
  width: 18px;
}
.service-text { flex: 1; }
.service-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark-text);
  line-height: 1.3;
  margin-bottom: 3px;
}
.service-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-dark-quiet);
  line-height: 1.4;
}
.service-arrow {
  font-size: 11px;
  color: var(--color-dark-ghost);
  margin-left: auto;
  flex-shrink: 0;
  padding-top: 1px;
}
.service-cta-wrap {
  padding: 20px;
  border-top: var(--border-dark);
  margin-top: auto;
}

/* ── Homepage Philosophy Section ────────────────────────────────────────────── */
.philosophy-section {
  padding: 0;
  border-bottom: var(--border-heavy);
  overflow: hidden;
}
.philosophy-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  align-items: stretch;
}
.philosophy-text {
  min-width: 0;
  padding: var(--space-20) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.philosophy-image {
  min-width: 0;
  border-right: var(--border-heavy);
}
.philosophy-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.philosophy-section h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.09;
  margin-bottom: var(--space-6);
}
.philosophy-section p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  margin-bottom: var(--space-8);
}

/* ── Story Cards ────────────────────────────────────────────────────────────── */
.stories-section {
  padding: var(--space-16) var(--space-10);
  border-bottom: var(--border-heavy);
}
.stories-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.story-card {
  background: var(--color-paper);
  border-right: var(--border-heavy);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story-card:last-child { border-right: none; }
.story-card:hover .story-card-title {
  color: var(--color-purple);
  transition: color 0.2s ease;
}
.story-card-industry {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.story-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  transition: color 0.2s ease;
}
.story-card-teaser {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-silent);
  flex: 1;
}
.story-card-outcomes { display: flex; gap: 8px; flex-wrap: wrap; }
/* Shared by the rendered article meta (sacrosanct HTML) — restyled to the
   Lucid tint-pill so /stories/{slug}/ tags inherit the new theme (DMX-RD-05). */
.story-card-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--dm-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dm-eyebrow);
  background: var(--dm-tint);
  border: 1px solid var(--dm-line);
  padding: 6px 12px;
  border-radius: var(--dm-pill);
}
.story-card-title-link {
  color: inherit;
  text-decoration: none;
}
.story-card-title-link:hover { color: var(--color-purple); }

.story-card-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-purple);
  text-decoration: none;
  margin-top: auto;
}

/* ── Page Hero (inner pages) ────────────────────────────────────────────────── */
.page-hero {
  padding: var(--space-16) var(--space-10);
  border-bottom: var(--border-heavy);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin-bottom: var(--space-5);
}
.page-hero p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  max-width: 600px;
}

/* ── Page Content Section (inner pages) ─────────────────────────────────────── */
.page-section {
  padding: var(--space-16) var(--space-10);
  border-bottom: var(--border-heavy);
}
.page-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}
.page-section p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  margin-bottom: var(--space-5);
  max-width: 700px;
}

/* ── Credentials Grid (who-we-are) ──────────────────────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--color-rule);
  margin-bottom: var(--space-16);
}
.credentials-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
}
.credentials-grid--4 .credential-card {
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
}
.credential-card {
  background: var(--color-paper);
  padding: var(--space-8);
}
.credential-card-head {
  /* fills the shared first row — icon + h3 bottom aligns across all cards */
}
.credential-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bone);
  border: var(--border-light);
  border-radius: 2px;
  margin-bottom: var(--space-5);
  color: var(--color-ink);
}
.credential-icon svg {
  width: 22px;
  height: 22px;
}
.credential-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.credential-card p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-silent);
}

/* Brand tags (who-we-are credentials) */
.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-5);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: var(--border-light);
  padding: 4px 10px;
  border-radius: 2px;
}

/* Thought Leadership (who-we-are) */
.thought-leadership { }
.thought-leadership-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.thought-leadership-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-1);
}
.thought-leadership-header p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-muted);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-rule);
}
.article-card {
  background: var(--color-paper);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  transition: background 0.15s ease;
}
.article-card:hover { background: var(--color-bone); }
.article-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.25;
}
.article-card p {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-silent);
  flex: 1;
}
.article-read-more {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-purple);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ── Pillar Sections (how-we-work) ──────────────────────────────────────────── */
.pillar-section {
  border-bottom: var(--border-heavy);
  overflow: hidden;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 3fr 7fr;
  align-items: stretch;
  height: 220px;
}
.pillar-grid--img-right {
  grid-template-columns: 7fr 5fr;
}
.pillar-grid--img-right .pillar-image {
  order: 2;
  border-right: none;
  border-left: var(--border-heavy);
}
.pillar-image {
  min-width: 0;
  overflow: hidden;
  border-right: var(--border-heavy);
}
.pillar-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.pillar-content {
  padding: var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}
.pillar-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: var(--space-3);
}
.pillar-content p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  margin-bottom: var(--space-4);
}
.pillar-quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-purple);
  border-left: 3px solid var(--color-purple);
  padding-left: var(--space-5);
  margin: var(--space-5) 0;
}
.pillar-results { list-style: none; margin-top: var(--space-4); }
.pillar-results li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-silent);
  padding: var(--space-2) 0;
  border-bottom: var(--border-light);
}
.pillar-results li strong { color: var(--color-ink); }

/* Medallion (how-we-work pillar 02) */
.medallion {
  background: var(--color-bone);
  border: var(--border-heavy);
  border-radius: 2px;
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.medallion h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}
.medallion-tiers {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.medallion-tier {
  background: var(--color-paper);
  border: var(--border-heavy);
  border-radius: 2px;
  padding: var(--space-3) var(--space-5);
  flex: 1;
  min-width: 100px;
}
.medallion-tier strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.medallion-tier span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-silent);
}
.medallion-arrow { font-size: 16px; color: var(--color-muted); flex-shrink: 0; }

/* Executive Dashboard (how-we-work pillar 03) */
.exec-dashboard {
  background: var(--color-dark);
  border-radius: 2px;
  overflow: hidden;
  margin: var(--space-6) 0;
  border: var(--border-dark);
}
.exec-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-bottom: var(--border-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-dark-quiet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.live-badge {
  background: var(--color-purple);
  color: var(--color-paper);
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 2px;
}
.exec-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-dark-rule);
}
.exec-metric {
  background: var(--color-dark-mid);
  padding: var(--space-5);
}
.exec-metric .label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-dark-quiet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}
.exec-metric .value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-paper);
}
.exec-insight {
  padding: var(--space-4) var(--space-5);
  border-top: var(--border-dark);
}
.exec-insight .label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-dark-quiet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}
.exec-insight-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-dark-text);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.exec-insight-text .dot {
  width: 6px;
  height: 6px;
  background: var(--color-purple);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── Services Page ───────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
}
.service-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  background: var(--color-rule);
}
.service-grid--4col {
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-rule);
}
.service-card {
  background: var(--color-paper);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 280px;
}
.service-card-icon {
  width: 72px;
  height: 72px;
  color: var(--color-purple);
  flex-shrink: 0;
}
.service-card-icon svg {
  width: 72px;
  height: 72px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.service-card p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-silent);
  margin: 0;
}
.services { padding: var(--space-12) var(--space-10); border-bottom: var(--border-heavy); }

/* ── Angel Portfolio ────────────────────────────────────────────────────────── */
.angel-portfolio {
  padding: var(--space-12) var(--space-10);
  border-bottom: var(--border-heavy);
}
.angel-intro {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-ink);
  max-width: 560px;
  margin-bottom: var(--space-10);
}
.angel-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1px;
  background: var(--color-rule);
  border: var(--border-heavy);
  max-width: 900px;
}
.angel-logo-card {
  background: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
  text-decoration: none;
  transition: background 0.15s ease;
}
.angel-logo-card:hover { background: var(--color-bone); }
.angel-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
}
.angel-details-box {
  background: var(--color-paper);
  padding: var(--space-8) var(--space-10);
  min-height: 180px;
  display: flex;
  align-items: center;
}
.angel-details-box p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-ink);
}
.services-heading {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: var(--space-4) 0 var(--space-8);
}
.about { padding: var(--space-16) var(--space-10); border-bottom: var(--border-heavy); }
.about h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}
.about p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  margin-bottom: var(--space-4);
  max-width: 680px;
}
.contact { padding: var(--space-16) var(--space-10); border-bottom: var(--border-heavy); }
.contact h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
}
.contact p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-silent);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

/* ── Book Page ──────────────────────────────────────────────────────────────── */
.book-hero {
  padding: var(--space-16) var(--space-10);
  border-bottom: var(--border-heavy);
}
.book-hero h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.book-hero p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--color-silent);
  margin-bottom: var(--space-6);
  max-width: 520px;
}
.book-value-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book-value-list li {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: var(--border-light);
  padding: 6px 14px;
  border-radius: 2px;
}
.book-value-list li::before { content: "✓  "; color: var(--color-purple); }
.book-embed {
  padding: var(--space-10) var(--space-10);
}
#calendly-embed { min-height: 700px; }
#calendly-embed iframe { display: block; width: 100%; height: 700px; border: none; }
.calendly-loading { padding: 80px 0; color: var(--color-muted); }
.calendly-fallback { padding: 80px 0; }
.calendly-fallback p { color: var(--color-muted); margin-bottom: var(--space-6); }

/* ── Stories Page ───────────────────────────────────────────────────────────── */
.brand-marquee {
  overflow: hidden;
  border-bottom: var(--border-heavy);
  background: var(--color-bone);
}
.brand-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-purple);
  padding: 12px 32px;
  border-right: var(--border-heavy);
}
.marquee-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-silent);
  padding: 12px 28px;
  border-right: var(--border-light);
}

.stories-tabs {
  display: inline-flex;
  border: var(--border-heavy);
  border-radius: 2px;
  overflow: hidden;
  margin: var(--space-10) 0;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-paper);
  border: none;
  border-right: var(--border-light);
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { background: var(--color-bone); color: var(--color-ink); }
.tab-btn.active {
  background: var(--color-ink);
  color: var(--color-paper);
}

.agentic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-rule);
  border: var(--border-heavy);
  border-radius: 2px;
  overflow: hidden;
  margin: var(--space-10) 0;
}
.agentic-copy {
  padding: var(--space-10);
  background: var(--color-paper);
}
.agentic-copy h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
}
.agentic-copy p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-silent);
  margin-bottom: var(--space-5);
}
.agentic-demo {
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: var(--space-8);
}
.agentic-demo-placeholder {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark-quiet);
}
.compliance-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: var(--border-light);
  background: var(--color-bone);
  padding: 8px 16px;
  border-radius: 2px;
  display: inline-block;
}

.arch-blueprint {
  margin: var(--space-10) 0;
}
.arch-blueprint h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}
.arch-grid {
  background: var(--color-dark);
  border-radius: 2px;
  padding: var(--space-8);
}
.arch-tiers {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.arch-tier {
  flex: 1;
  min-width: 120px;
  background: var(--color-dark-mid);
  border: var(--border-dark);
  border-radius: 2px;
  padding: var(--space-5);
}
.arch-tier-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark-quiet);
  margin-bottom: var(--space-2);
}
.arch-tier-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-bottom: 2px;
}
.arch-tier-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-dark-quiet);
}
.arch-arrow { font-size: 18px; color: var(--color-dark-ghost); flex-shrink: 0; }

.stories-cta {
  padding: var(--space-20) 0;
  border-top: var(--border-heavy);
  margin-top: var(--space-10);
}
.stories-cta h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.stories-cta p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--color-silent);
  margin-bottom: var(--space-8);
  max-width: 520px;
}
.stories-cta-btns { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ── Footer (Lucid — DMX-RD-02) ─────────────────────────────────────────────── */
/* Dark ink ground; brand+blurb cell wide, then the link columns + © bar. The
   existing 4-cell link set is preserved (Services/Explore/Company) — see RD-02
   report deviation note re: Lucid's 3-col reference. */
#dm-footer { background: var(--dm-footer-bg); color: var(--dm-footer-text); }
.footer-inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 56px var(--dm-pad-x) 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
/* official-logo.jpg is an opaque JPEG — do NOT invert (would render a solid
   block). Rounded corners, shown as-is on the dark ground. A transparent
   PNG/SVG mark is still a client to-supply item (see report). */
.footer-logo-img {
  width: auto;
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
}
.footer-wordmark-line {
  font-family: var(--dm-font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--dm-on-dark);
  line-height: 1;
}
.footer-desc {
  font-family: var(--dm-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dm-footer-muted);
  line-height: 1.7;
  max-width: 340px;
}
.footer-col-heading {
  font-family: var(--dm-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dm-footer-label);
  margin-bottom: 18px;
}
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links-list a {
  font-family: var(--dm-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dm-footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links-list a:hover { color: var(--dm-on-dark); }
/* Explicit color: .footer-links-list a (0,0,1,1) would otherwise out-specify
   .dm-btn--primary and tint the pill footer-gray. */
.footer-links-list a.footer-cta { color: var(--dm-btn-fg); }
.footer-cta { margin-top: 4px; font-size: 14px; padding: 12px 22px; }
.footer-cta:hover { background: var(--dm-eyebrow); }
.footer-bottom {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  border-top: 1px solid var(--dm-footer-rule);
  padding: 18px var(--dm-pad-x);
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-footer-label);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left .eyebrow { animation: fadeUp 0.4s ease forwards; animation-delay: 0.05s; opacity: 0; }
.hero-headline      { animation: fadeUp 0.5s ease forwards; animation-delay: 0.15s; opacity: 0; }
.hero-sub           { animation: fadeUp 0.5s ease forwards; animation-delay: 0.22s; opacity: 0; }
.hero-cta-row       { animation: fadeUp 0.5s ease forwards; animation-delay: 0.28s; opacity: 0; }
.hero-stats-strip   { animation: fadeUp 0.5s ease forwards; animation-delay: 0.35s; opacity: 0; }
.hero-services      { animation: fadeUp 0.5s ease forwards; animation-delay: 0.10s; opacity: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left {
    border-right: none;
    border-bottom: var(--border-heavy);
  }
  .hero-services {
    border-top: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .service-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .service-list li { min-width: 200px; }
  .service-item { flex-direction: column; gap: 6px; padding: 16px; }
  .service-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .agentic-split { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .stories-category-card { padding: var(--space-6) var(--space-5); }
  .stories-category-desc { font-size: 14px; }
  .stories-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-container, .container { padding: 0 20px; }
  .hero-left { padding: var(--space-10) var(--space-5); }
  .hero-headline { font-size: 32px; }
  .page-hero { padding: var(--space-10) var(--space-5); }
  .page-hero h1 { font-size: 32px; }
  .page-section { padding: var(--space-10) var(--space-5); }
  .section-bar { padding: 12px 20px; }
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-image { height: 180px; border-right: none; border-bottom: var(--border-heavy); }
  .philosophy-text { padding: var(--space-10) var(--space-5); }
  .stories-section { padding: var(--space-6) 0; }
  .card-grid-3 {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0;
  }
  .card-grid-3 .story-card {
    min-width: 280px;
    max-width: 85vw;
    border-right: var(--border-heavy);
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .card-grid-3 .story-card:last-child { border-right: none; }
  .credentials-grid,
  .credentials-grid--4 { grid-template-columns: 1fr; }
  .pillar-grid,
  .pillar-grid--img-right { grid-template-columns: 1fr; height: auto; }
  .pillar-image { display: none; }
  .pillar-grid--img-right .pillar-image { order: 0; border-left: none; }
  .pillar-content { padding: var(--space-8) var(--space-5); }
  .service-grid,
  .service-grid--2col,
  .service-grid--4col { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); padding: 32px 20px 0; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; padding: 16px 20px; }
  .medallion-tiers { flex-direction: column; align-items: stretch; }
  .arch-tiers { flex-direction: column; align-items: stretch; }
  .services, .about, .contact { padding: var(--space-10) var(--space-5); }
  .book-hero { padding: var(--space-10) var(--space-5); }
  .book-embed { padding: var(--space-8) var(--space-5); }
  .stories-cta { padding: var(--space-10) 0; }
  .stories-cta h2 { font-size: 28px; }
  .agentic-copy { padding: var(--space-8); }
  .stories-grid { grid-template-columns: 1fr; }
  .stories-toolbar { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .article-hero { padding: var(--space-10) var(--space-5); }
  .article-body { padding: 0 var(--space-5); }
  .article-related-grid { grid-template-columns: 1fr; }
}

/* ── Stories Hub Enhancements ────────────────────────────────────────────── */
.page-hero-sub {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 580px;
  margin: var(--space-4) 0 0;
  line-height: 1.6;
}

.stories-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-rule);
  border-top: var(--border-heavy);
  border-bottom: var(--border-heavy);
  overflow: hidden;
}
@media (max-width: 640px) {
  .stories-categories { display: none; }
}
.stories-category-card {
  background: var(--color-paper);
  padding: var(--space-8) var(--space-10);
}
.stories-category-type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin: 0 0 var(--space-3);
}
.stories-category-desc {
  font-size: 16px;
  color: var(--color-ink);
  line-height: 1.65;
  margin: 0;
}

.stories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
}
.stories-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}
/* Inside the Lucid story-grid section the sort control sits above the grid. */
.dm-story-grid__inner > .stories-sort { margin-bottom: 28px; }
.stories-sort-label {
  font-family: var(--dm-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dm-label);
}
.stories-sort-select {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-ink);
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-pill);
  padding: 8px 14px;
  cursor: pointer;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-paper);
  overflow: hidden;
  margin: var(--space-4) 0 var(--space-10);
}
.stories-grid .story-card {
  border: none;
  border-radius: 0;
  background: var(--color-paper);
}
.stories-empty {
  text-align: center;
  padding: var(--space-16) 0 var(--space-10);
  margin: var(--space-4) 0 var(--space-10);
}
.stories-empty-headline {
  font-family: var(--dm-font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--dm-ink);
  margin: 0 0 var(--space-2);
}
.stories-empty-sub {
  font-size: 15px;
  color: var(--dm-muted);
  margin: 0;
}
.stories-empty-sub a { color: var(--dm-accent); }
.story-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
}
.story-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}
.story-card-read {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-label);
  letter-spacing: 0.06em;
}
.story-card-title a {
  color: inherit;
  text-decoration: none;
}
.story-card-title a:hover {
  color: var(--color-purple);
}

/* ── Article Page ────────────────────────────────────────────────────────── */
/* ── Article pages — Lucid theme (DMX-RD-05) ──────────────────────────────────
   Re-skinned to the RD-01 `--dm-*` token system. CSS-only: the rendered article
   HTML (article-* class names + body copy) is untouched; the selectors below
   restyle those existing classes so /stories/{slug}/ inherits the Lucid look. */
.article-breadcrumb {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dm-label);
  padding: var(--space-16) 0 0;
}
.article-breadcrumb a {
  color: var(--dm-label);
  text-decoration: none;
  transition: color .18s ease;
}
.article-breadcrumb a:hover { color: var(--dm-accent); }
.article-breadcrumb-sep { margin: 0 var(--space-2); color: var(--dm-label); }

.article-hero {
  padding: var(--space-8) 0 var(--space-12);
}
.article-hero-type {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dm-eyebrow);
  margin: 0 0 var(--space-6);
}
.article-hero h1 {
  font-family: var(--dm-font-display);
  font-size: var(--dm-h1);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--dm-ink);
  max-width: 820px;
  margin: 0 0 var(--space-6);
}
.article-hero-sub {
  font-size: var(--dm-body-lg);
  color: var(--dm-muted);
  max-width: 660px;
  line-height: 1.6;
  margin: 0 0 var(--space-8);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  border-top: 1px solid var(--dm-line);
  padding-top: var(--space-5);
}
.article-meta-author {
  font-family: var(--dm-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--dm-ink);
}
.article-meta-byline {
  font-size: 13px;
  color: var(--dm-muted);
}
.article-meta-sep {
  color: var(--dm-line-3);
}
.article-meta-date {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-label);
  letter-spacing: 0.06em;
}
.article-meta-read {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-label);
}
.article-meta-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.article-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  display: block;
  margin: 0 0 var(--space-10);
}
.article-hero-caption {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-label);
  margin: calc(-1 * var(--space-8)) 0 var(--space-10);
  letter-spacing: 0.04em;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr min(720px, 100%);
  gap: var(--space-10);
  align-items: start;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: var(--space-16);
  font-family: var(--dm-font-body);
}
.article-body h2 {
  font-family: var(--dm-font-display);
  font-size: var(--dm-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dm-ink);
  margin: var(--space-10) 0 var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--dm-line);
}
.article-body h3 {
  font-family: var(--dm-font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dm-ink);
  margin: var(--space-8) 0 var(--space-3);
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--dm-ink);
  margin: 0 0 var(--space-5);
}
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin: 0 0 var(--space-5);
}
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: var(--space-2);
  color: var(--dm-ink);
}
.article-body a {
  color: var(--dm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--dm-accent-hover); }
.article-body code {
  font-family: var(--dm-font-mono);
  font-size: 14px;
  background: var(--dm-tint);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-sm);
  padding: 2px 6px;
}
.article-body pre {
  background: var(--dm-ink);
  color: var(--dm-on-dark);
  border-radius: var(--dm-radius-sm);
  padding: var(--space-5);
  overflow-x: auto;
  margin: 0 0 var(--space-6);
  font-size: 13px;
  line-height: 1.6;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Pull-quote callout — blockquote in markdown */
.article-callout,
.article-body blockquote {
  border-left: 3px solid var(--dm-accent);
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--dm-tint);
  border-radius: 0 var(--dm-radius-sm) var(--dm-radius-sm) 0;
}
.article-callout p,
.article-body blockquote p {
  font-family: var(--dm-font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dm-ink);
  margin: 0;
  font-style: italic;
}

/* Inline article image */
.article-image {
  margin: var(--space-8) 0;
}
.article-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  display: block;
}
.article-image figcaption {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-label);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

/* Related articles */
.article-related {
  border-top: 1px solid var(--dm-line);
  padding: var(--space-10) 0 var(--space-16);
}
.article-related-heading {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dm-label);
  margin: 0 0 var(--space-6);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Article CTA bar */
.article-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
  padding: var(--space-6) 0;
  margin: var(--space-10) 0;
}
.article-cta-bar-back {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  color: var(--dm-label);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color .18s ease;
}
.article-cta-bar-back:hover { color: var(--dm-accent); }


/* ════════════════════════════════════════════════════════════════════════════
   DMX-RD-01 — LUCID DESIGN FOUNDATIONS + SECTION-STYLE LIBRARY
   ────────────────────────────────────────────────────────────────────────────
   Additive layer for the website redesign (Lucid direction). Everything below
   is namespaced under `--dm-*` tokens and `.dm-*` classes so it CANNOT collide
   with the existing editorial system above (Space Grotesk / Epilogue / #141410)
   nor with the rendered article pages under /stories/{slug}/.

   Each `.dm-*` section root re-declares font-family + ink color so its copy
   inherits the Lucid type/color regardless of the host page's `body` rules.
   Headings -> Newsreader, eyebrows/labels/tags -> IBM Plex Mono.

   Token values + button/badge/eyebrow vars are defined here for DMX-RD-02 to
   consume. The section-style catalog lives in web/content/pages/README.md.
   Ground truth: specs/pipelines/website-redesign/designs/*.dc.html (dir===1).
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Lucid color palette ─────────────────────────────────────────────── */
  --dm-bg:            #FCFBFE;  /* page background, faint violet tint     */
  --dm-surface:       #FFFFFF;  /* card / banded section fill             */
  --dm-ink:           #211733;  /* primary text + darkest footer bg       */
  --dm-muted:         #544C68;  /* paragraph copy                         */
  --dm-eyebrow:       #473A82;  /* eyebrow / accent label                 */
  --dm-accent:        #382B66;  /* primary CTA bg / serif accent          */
  --dm-accent-hover:  #211733;  /* CTA hover                              */

  /* Soft tint surfaces (hover / card fills) */
  --dm-tint:          #F5F2FB;
  --dm-tint-2:        #F7F4FC;
  --dm-tint-3:        #F8F5FD;

  /* Hairline borders */
  --dm-line:          #ECE6F7;  /* default hairline                       */
  --dm-line-2:        #E4DEEF;
  --dm-line-3:        #DDD4EC;
  --dm-line-hover:    #C9B8E8;  /* card border on hover                   */

  /* Muted mono / number labels */
  --dm-label:         #9A92AE;
  --dm-label-2:       #8A82A0;
  --dm-label-3:       #B7ADCE;
  --dm-label-4:       #C2B8D6;

  /* Dark panel (Lab / strong CTA) + light-on-dark accents */
  --dm-panel-grad:    linear-gradient(135deg, #2E2140 0%, #473163 60%, #382B66 100%);
  --dm-on-dark:       #FCFBFE;
  --dm-on-dark-soft:  #D8CDEC;
  --dm-on-dark-accent:#C9B8E8;

  /* Footer */
  --dm-footer-bg:     #211733;
  --dm-footer-text:   #C9C2D6;
  --dm-footer-muted:  #9990AD;
  --dm-footer-rule:   #34294A;
  --dm-footer-label:  #6F6685;

  /* ── Typography ──────────────────────────────────────────────────────── */
  --dm-font-display:  'Newsreader', Georgia, serif;        /* H1/H2/H3       */
  --dm-font-body:     'Hanken Grotesk', system-ui, sans-serif;
  --dm-font-mono:     'IBM Plex Mono', monospace;          /* eyebrows/labels*/

  /* Type scale (responsive clamps, from README + prototype) */
  --dm-h1:        clamp(42px, 5.4vw, 72px);
  --dm-h2:        clamp(30px, 3.4vw, 44px);
  --dm-h2-lg:     clamp(32px, 4.4vw, 58px);   /* big closing CTA headline   */
  --dm-h3:        25px;
  --dm-body:      17px;
  --dm-body-lg:   19px;

  /* ── Spacing & layout ────────────────────────────────────────────────── */
  --dm-maxw:      1200px;     /* Lucid content max-width                    */
  --dm-pad-x:     40px;       /* horizontal section padding                 */
  --dm-pad-y:     96px;       /* vertical section padding (desktop)         */
  --dm-pad-y-sm:  90px;

  /* ── Radius ──────────────────────────────────────────────────────────── */
  --dm-radius-sm:   12px;
  --dm-radius:      14px;
  --dm-radius-lg:   18px;
  --dm-radius-xl:   24px;
  --dm-pill:        999px;

  /* ── Shadow ──────────────────────────────────────────────────────────── */
  --dm-shadow:      0 10px 30px rgba(33, 23, 51, .06);

  /* ── Button / badge / eyebrow token values (consumed by DMX-RD-02) ───── */
  --dm-btn-bg:        #382B66;
  --dm-btn-bg-hover:  #211733;
  --dm-btn-fg:        #FCFBFE;
  --dm-btn-pad:       15px 28px;
  --dm-btn-radius:    999px;
  --dm-btn-fz:        14px;
  --dm-btn-fw:        600;
  --dm-badge-bg:      #382B66;
  --dm-badge-fg:      #FCFBFE;
  --dm-eyebrow-fz:    11px;
  --dm-eyebrow-ls:    .18em;
}

/* ── Global (Lucid) ──────────────────────────────────────────────────────── */
/* html{scroll-behavior:smooth} is already declared in the reset above.        */
::selection { background: #E0D6F2; color: #211733; }

@keyframes dmFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes labPulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}

/* ── Shared Lucid primitives (scoped helpers used inside dm- sections) ───── */
.dm-section { /* opt-in wrapper that establishes Lucid type context */
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-inner {            /* centered content column */
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y) var(--dm-pad-x);
}
.dm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--dm-font-mono);
  font-size: var(--dm-eyebrow-fz);
  letter-spacing: var(--dm-eyebrow-ls);
  text-transform: uppercase;
  color: var(--dm-eyebrow);
  margin-bottom: 22px;
}
.dm-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dm-eyebrow);
  flex-shrink: 0;
}
.dm-eyebrow--plain { color: var(--dm-label); }   /* mono label, no dot */
.dm-eyebrow--plain::before { display: none; }
/* italic serif emphasis word inside Lucid headings (the *asterisk* accent) */
.dm-em { font-style: italic; color: var(--dm-accent); }

/* Buttons (Lucid) — primary pill + outline pill. RD-02 may alias these. */
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--dm-font-body);
  font-size: var(--dm-btn-fz);
  font-weight: var(--dm-btn-fw);
  line-height: 1;
  border: none;
  cursor: pointer;
  border-radius: var(--dm-btn-radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.dm-btn--primary {
  color: var(--dm-btn-fg);
  background: var(--dm-btn-bg);
  padding: var(--dm-btn-pad);
}
.dm-btn--primary:hover { background: var(--dm-btn-bg-hover); }
.dm-btn--outline {
  color: var(--dm-ink);
  background: transparent;
  padding: 15px 22px;
  border: 1px solid var(--dm-line-3);
}
.dm-btn--outline:hover { background: var(--dm-tint); }
/* Light/ghost pill for use on the dark gradient panels & footer CTA bands —
   transparent with a translucent light hairline, fills on hover. */
.dm-btn--light {
  color: var(--dm-on-dark);
  background: transparent;
  padding: 15px 24px;
  border: 1px solid rgba(252, 251, 254, 0.32);
}
.dm-btn--light:hover { background: rgba(252, 251, 254, 0.10); }

/* Shared mono label + pill tag/badge (RD-02 — finalized for pages 03–06).
   Section variants from RD-01 (.dm-story__tag, .dm-news__badge, .dm-chip) stay
   as-is; these are the reusable standalone utilities. */
.dm-label {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dm-label);
}
.dm-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--dm-font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-eyebrow);
  background: var(--dm-tint);
  border: 1px solid var(--dm-line);
  padding: 6px 12px;
  border-radius: var(--dm-pill);
}
.dm-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--dm-font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-badge-fg);
  background: var(--dm-badge-bg);
  padding: 5px 11px;
  border-radius: var(--dm-pill);
}

/* ── Image slot → <img> (RD-02) ─────────────────────────────────────────────────
   Reusable placeholder that becomes a real image. Pages 03–06: drop in a
   `.dm-img-slot` (optionally with a ratio modifier) and either leave it empty
   (renders a labelled placeholder via [data-placeholder]) or put an <img> inside.

   COPY-PASTE SNIPPET (placeholder, awaiting client asset):
     <div class="dm-img-slot dm-img-slot--4x5" data-placeholder="Portrait"></div>

   COPY-PASTE SNIPPET (real image supplied):
     <div class="dm-img-slot dm-img-slot--4x5">
       <img src="/assets/your-image.jpg" alt="Meaningful alt text" />
     </div>
   Notes: alt text is REQUIRED on the <img>. Ratio modifiers below; default is 16:10.
   For media that's already styled by a section variant (.dm-feature-split__media,
   .dm-story__media, .dm-featured-card__media) keep using that variant — those
   accept an inner <img> the same way. */
.dm-img-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dm-tint);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-img-slot--4x5 { aspect-ratio: 4 / 5; }
.dm-img-slot--1x1 { aspect-ratio: 1 / 1; }
.dm-img-slot--3x2 { aspect-ratio: 3 / 2; }
/* Dark-context variant (DMX-RD-07): on the dark gradient panels the default
   light slot reads as a bright box. This variant blends into the panel — a
   translucent fill + light hairline + on-dark label. */
.dm-img-slot--dark {
  background: rgba(252, 251, 254, 0.04);
  border-color: rgba(252, 251, 254, 0.18);
}
.dm-img-slot--dark[data-placeholder]:empty::after { color: var(--dm-on-dark-soft); }
.dm-img-slot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Labelled empty state (only shows when no <img> child via the data attribute). */
.dm-img-slot[data-placeholder]:empty::after {
  content: attr(data-placeholder);
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-label);
}

/* ════════ SECTION STYLE LIBRARY ════════════════════════════════════════════ */

/* ── 1. .dm-hero ─ page hero: eyebrow + serif H1 + sub + CTA row + art ─────── */
.dm-hero {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-hero__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 84px var(--dm-pad-x) 68px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px;
  align-items: center;
}
.dm-hero__inner--centered { display: block; text-align: center; max-width: 1000px; }
.dm-hero__inner--text { display: block; max-width: 1000px; }
.dm-hero__copy { animation: dmFade .6s ease both; }
.dm-hero__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--dm-ink);
  margin-bottom: 26px;
}
.dm-hero__sub {
  font-size: var(--dm-body-lg);
  line-height: 1.65;
  color: var(--dm-muted);
  max-width: 480px;
  margin-bottom: 34px;
}
.dm-hero__inner--centered .dm-hero__sub,
.dm-hero__inner--text  .dm-hero__sub { max-width: 620px; }
.dm-hero__inner--centered .dm-hero__sub { margin-left: auto; margin-right: auto; }
.dm-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dm-hero__inner--centered .dm-hero__cta { justify-content: center; }
.dm-hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.dm-hero__art::before {  /* radial glow behind hero art */
  content: '';
  position: absolute;
  width: 128%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #F4EFFB 0%, #F8F4FD 48%, rgba(248,244,253,0) 72%);
}
.dm-hero__art img { position: relative; width: 100%; max-width: 600px; }

/* ── 2. .dm-breadcrumb ─ inner-page trail ──────────────────────────────────── */
.dm-breadcrumb {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dm-label);
}
.dm-breadcrumb__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 64px var(--dm-pad-x) 0;
}
.dm-breadcrumb a { color: var(--dm-label); transition: color .18s ease; }
.dm-breadcrumb a:hover { color: var(--dm-accent); }
.dm-breadcrumb__current { color: var(--dm-eyebrow); }
.dm-breadcrumb__sep { margin: 0 .5em; }

/* ── 3. .dm-callout ─ generalized centered large italic pull-quote band ────── */
/*    (catalog = "Magnifica Humanitas" centered band; see deviation note)      */
.dm-callout {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
  background: var(--dm-surface);
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
}
.dm-callout__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 64px var(--dm-pad-x);
  text-align: center;
}
.dm-callout__label {
  font-family: var(--dm-font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dm-label);
  margin-bottom: 20px;
}
.dm-callout__quote {
  font-family: var(--dm-font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--dm-ink);
  max-width: 920px;
  margin: 0 auto;
}
.dm-callout__quote em { font-style: italic; color: var(--dm-accent); }
.dm-callout__attr {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dm-label-2);
  margin-top: 22px;
}

/* ── 4. .dm-feature-split ─ image slot + heading + paragraphs (+ stat row) ─── */
.dm-feature-split {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-feature-split__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y) var(--dm-pad-x);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.dm-feature-split__inner--rev { grid-template-columns: 1.1fr .9fr; }
.dm-feature-split__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--dm-line);
  background: var(--dm-tint);
  border-radius: var(--dm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-label);
  overflow: hidden;
}
.dm-feature-split__media img { width: 100%; height: 100%; object-fit: cover; }
.dm-feature-split__inner--rev .dm-feature-split__media { order: 2; }
.dm-feature-split__heading {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.dm-feature-split__body {
  font-size: var(--dm-body);
  line-height: 1.7;
  color: var(--dm-muted);
  max-width: 520px;
  margin-bottom: 20px;
}
.dm-feature-split__body:last-of-type { margin-bottom: 32px; }

/* ── 5. .dm-stat-row ─ 4-up proof stats (works standalone or inside split) ─── */
.dm-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dm-line);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-sm);
  overflow: hidden;
}
.dm-stat-row__item { background: var(--dm-surface); padding: 22px 18px; }
.dm-stat-row__num {
  font-family: var(--dm-font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--dm-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.dm-stat-row__label {
  font-family: var(--dm-font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dm-label-2);
  line-height: 1.4;
}

/* ── 6. .dm-pillar-trio ─ 3 numbered pillars (+ optional bullet points) ────── */
.dm-pillar-trio {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
  background: var(--dm-surface);
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
}
.dm-pillar-trio__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y) var(--dm-pad-x);
}
.dm-pillar-trio__head { max-width: 640px; margin-bottom: 56px; }
.dm-pillar-trio__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.dm-pillar-trio__intro { font-size: var(--dm-body); line-height: 1.7; color: var(--dm-muted); }
.dm-pillar-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.dm-pillar {
  border-top: 2px solid var(--dm-accent);
  padding-top: 24px;
}
.dm-pillar__num {
  font-family: var(--dm-font-mono);
  font-size: 12px;
  color: var(--dm-label-3);
  margin-bottom: 16px;
}
.dm-pillar__title {
  font-family: var(--dm-font-display);
  font-size: var(--dm-h3);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.dm-pillar__desc { font-size: 15px; line-height: 1.7; color: var(--dm-muted); margin-bottom: 18px; }
.dm-pillar__points { display: flex; flex-direction: column; gap: 9px; }
.dm-pillar__point {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--dm-muted);
}
.dm-pillar__point::before { content: '—'; color: var(--dm-eyebrow); font-weight: 700; }

/* ── 7. .dm-offerings ─ multi-card catalog with tag/short label ────────────── */
.dm-offerings {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-offerings__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y) var(--dm-pad-x);
}
.dm-offerings__head { max-width: 620px; margin-bottom: 52px; }
.dm-offerings__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.dm-offerings__intro { font-size: var(--dm-body); line-height: 1.7; color: var(--dm-muted); }
.dm-offerings__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--dm-line);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
}
.dm-offering {
  background: var(--dm-surface);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: background .18s ease;
}
.dm-offering:hover { background: var(--dm-bg); }
.dm-offering__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dm-offering__num { font-family: var(--dm-font-mono); font-size: 11px; letter-spacing: .1em; color: var(--dm-label-3); }
.dm-offering__tag {
  font-family: var(--dm-font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dm-eyebrow);
  background: var(--dm-tint);
  padding: 5px 11px;
  border-radius: var(--dm-pill);
}
.dm-offering__title {
  font-family: var(--dm-font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.dm-offering__desc { font-size: 15px; line-height: 1.7; color: var(--dm-muted); margin-bottom: 22px; flex: 1; }
.dm-offering__link {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-accent);
  transition: color .18s ease;
}
.dm-offering__link:hover { color: var(--dm-accent-hover); }

/* ── 8. .dm-cards-row ─ row of cards (e.g. 3 engagement models) ────────────── */
.dm-cards-row {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
  background: var(--dm-surface);
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
}
.dm-cards-row__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y-sm) var(--dm-pad-x);
}
.dm-cards-row__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 48px;
  max-width: 560px;
}
.dm-cards-row__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dm-card {
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-lg);
  padding: 32px;
  background: var(--dm-bg);
  transition: border-color .18s ease, background .18s ease;
}
.dm-card:hover { border-color: var(--dm-line-hover); }
.dm-card__title {
  font-family: var(--dm-font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.dm-card__meta {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--dm-label-2);
  margin-bottom: 18px;
}
.dm-card__desc { font-size: 15px; line-height: 1.7; color: var(--dm-muted); }

/* ── 9. .dm-principles-grid ─ 6 numbered belief/principle cards ────────────── */
.dm-principles-grid {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
  background: var(--dm-surface);
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
}
.dm-principles-grid__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y-sm) var(--dm-pad-x);
}
.dm-principles-grid__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 52px;
  max-width: 560px;
}
.dm-principles-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dm-line);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  overflow: hidden;
}
.dm-principle { background: var(--dm-surface); padding: 32px 30px; }
.dm-principle__num { font-family: var(--dm-font-mono); font-size: 12px; color: var(--dm-label-3); margin-bottom: 18px; }
.dm-principle__title {
  font-family: var(--dm-font-display);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.dm-principle__desc { font-size: 15px; line-height: 1.7; color: var(--dm-muted); }

/* ── 10. .dm-timeline ─ track-record rows (period / role / detail) ─────────── */
.dm-timeline {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-timeline__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y-sm) var(--dm-pad-x);
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 64px;
  align-items: start;
}
.dm-timeline__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.dm-timeline__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--dm-line);
}
.dm-timeline__period {
  font-family: var(--dm-font-mono);
  font-size: 12px;
  color: var(--dm-label-2);
  padding-top: 4px;
}
.dm-timeline__role {
  font-family: var(--dm-font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.dm-timeline__detail { font-size: 15px; line-height: 1.7; color: var(--dm-muted); }

/* ── 11. .dm-dark-panel ─ dark gradient feature panel, light-on-dark ───────── */
.dm-dark-panel {
  font-family: var(--dm-font-body);
}
.dm-dark-panel__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 100px var(--dm-pad-x);
}
.dm-dark-panel__card {
  background: var(--dm-panel-grad);
  border-radius: var(--dm-radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.dm-dark-panel__copy { position: relative; z-index: 2; }
.dm-dark-panel .dm-eyebrow,
.dm-dark-panel__eyebrow { color: var(--dm-on-dark-accent); }
.dm-dark-panel__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--dm-font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.dm-dark-panel__eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dm-on-dark-accent);
}
.dm-dark-panel__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--dm-on-dark);
  margin-bottom: 22px;
}
.dm-dark-panel__body {
  font-size: var(--dm-body);
  line-height: 1.7;
  color: var(--dm-on-dark-soft);
  max-width: 460px;
  margin-bottom: 32px;
}
.dm-dark-panel__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.dm-dark-panel__art { position: relative; z-index: 2; display: flex; justify-content: center; }
.dm-dark-panel__art img {
  width: 78%; max-width: 300px; opacity: .92;
  filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(201,184,232,.4));
}
/* light buttons on the dark panel */
.dm-btn--on-dark {
  color: #2E2140;
  background: var(--dm-on-dark);
  padding: 15px 28px;
}
.dm-btn--on-dark:hover { background: #E0D6F2; }
.dm-btn--ghost-dark {
  color: var(--dm-on-dark);
  background: transparent;
  padding: 15px 24px;
  border: 1px solid rgba(252, 251, 254, .32);
}
.dm-btn--ghost-dark:hover { background: rgba(252, 251, 254, .1); }

/* ── 12. .dm-news ─ featured item + list of recent ─────────────────────────── */
.dm-news {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
  background: var(--dm-surface);
  border-top: 1px solid var(--dm-line);
}
.dm-news__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y-sm) var(--dm-pad-x);
}
.dm-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.dm-news__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.dm-news__viewall {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-accent);
  transition: color .18s ease;
}
.dm-news__viewall:hover { color: var(--dm-accent-hover); }
.dm-news__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.dm-news__featured {
  display: block;
  background: var(--dm-tint-2);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-lg);
  padding: 40px;
  transition: border-color .18s ease;
}
.dm-news__featured:hover { border-color: var(--dm-line-hover); }
.dm-news__tagrow { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.dm-news__badge {
  font-family: var(--dm-font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-badge-fg);
  background: var(--dm-badge-bg);
  padding: 5px 11px;
  border-radius: var(--dm-pill);
}
.dm-news__date { font-family: var(--dm-font-mono); font-size: 11px; color: var(--dm-label); }
.dm-news__featured-title {
  font-family: var(--dm-font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.dm-news__blurb { font-size: 16px; line-height: 1.7; color: var(--dm-muted); }
.dm-news__item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--dm-line);
  transition: padding-left .18s ease;
}
.dm-news__item:hover { padding-left: 8px; }
.dm-news__item-tagrow { display: flex; gap: 12px; align-items: center; margin-bottom: 9px; }
.dm-news__item-tag {
  font-family: var(--dm-font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dm-eyebrow);
}
.dm-news__item-date { font-family: var(--dm-font-mono); font-size: 11px; color: var(--dm-label-3); }
.dm-news__item-title {
  font-family: var(--dm-font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dm-ink);
}

/* ── 13. .dm-cta-band ─ centered closing CTA band ──────────────────────────── */
.dm-cta-band {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
  background: var(--dm-bg);
}
.dm-cta-band--surface { background: var(--dm-surface); border-top: 1px solid var(--dm-line); }
.dm-cta-band__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: var(--dm-pad-y) var(--dm-pad-x);
  text-align: center;
}
.dm-cta-band__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: var(--dm-h2-lg);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.dm-cta-band__body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--dm-muted);
  max-width: 480px;
  margin: 0 auto 34px;
}
.dm-cta-band__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── 14. .dm-filter-row ─ category chips (Stories) ─────────────────────────── */
.dm-filter-row {
  font-family: var(--dm-font-body);
}
.dm-filter-row__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 0 var(--dm-pad-x) 36px;
}
.dm-filter-row__list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--dm-line);
  padding-bottom: 24px;
}
.dm-chip {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dm-eyebrow);
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  padding: 8px 15px;
  border-radius: var(--dm-pill);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.dm-chip:hover { border-color: var(--dm-line-hover); background: var(--dm-tint-2); }
.dm-chip--active { color: var(--dm-on-dark); background: var(--dm-accent); border-color: var(--dm-accent); }

/* ── 15. .dm-featured-card ─ 2-column featured story with metric trio ──────── */
.dm-featured-card {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-featured-card__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 0 var(--dm-pad-x) 28px;
}
.dm-featured-card__card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-xl);
  overflow: hidden;
  background: var(--dm-surface);
  transition: border-color .18s ease;
}
.dm-featured-card__card:hover { border-color: var(--dm-line-hover); }
.dm-featured-card__copy { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.dm-featured-card__tagrow { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.dm-featured-card__badge {
  font-family: var(--dm-font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dm-badge-fg); background: var(--dm-badge-bg);
  padding: 5px 11px; border-radius: var(--dm-pill);
}
.dm-featured-card__sector { font-family: var(--dm-font-mono); font-size: 11px; color: var(--dm-label); }
.dm-featured-card__title {
  font-family: var(--dm-font-display);
  font-size: var(--dm-h2);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.dm-featured-card__blurb { font-size: 16px; line-height: 1.7; color: var(--dm-muted); margin-bottom: 28px; max-width: 440px; }
.dm-featured-card__metrics { display: flex; gap: 40px; flex-wrap: wrap; }
.dm-featured-card__num {
  font-family: var(--dm-font-display);
  font-size: 34px; font-weight: 500; color: var(--dm-accent);
  line-height: 1; margin-bottom: 6px;
}
.dm-featured-card__metric-label {
  font-family: var(--dm-font-mono);
  font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-label-2);
}
.dm-featured-card__media {
  min-height: 340px;
  background: var(--dm-tint);
  border-left: 1px solid var(--dm-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dm-font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dm-label);
}
.dm-featured-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── 16. .dm-story-grid ─ grid of story cards ──────────────────────────────── */
.dm-story-grid {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-story-grid__inner {
  max-width: var(--dm-maxw);
  margin: 0 auto;
  padding: 28px var(--dm-pad-x) var(--dm-pad-y);
}
.dm-story-grid__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dm-story {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  background: var(--dm-surface);
  transition: border-color .18s ease;
}
.dm-story:hover { border-color: var(--dm-line-hover); }
.dm-story__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--dm-tint);
  border-bottom: 1px solid var(--dm-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dm-font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dm-label);
}
.dm-story__media img { width: 100%; height: 100%; object-fit: cover; }
.dm-story__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.dm-story__tagrow { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.dm-story__tag {
  font-family: var(--dm-font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-eyebrow);
}
.dm-story__sector { font-family: var(--dm-font-mono); font-size: 11px; color: var(--dm-label-3); }
.dm-story__title {
  font-family: var(--dm-font-display);
  font-size: 23px; font-weight: 500; line-height: 1.18;
  letter-spacing: -.01em; margin-bottom: 12px;
}
.dm-story__blurb { font-size: 14.5px; line-height: 1.65; color: var(--dm-muted); margin-bottom: 20px; flex: 1; }
.dm-story__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--dm-line); padding-top: 16px;
}
.dm-story__metric { font-family: var(--dm-font-display); font-size: 20px; font-weight: 500; color: var(--dm-accent); }
.dm-story__read {
  font-family: var(--dm-font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-accent);
}

/* ── 17. .dm-composer ─ Lab intake composer + prompt chips + resource rail ─── */
.dm-composer {
  font-family: var(--dm-font-body);
  color: var(--dm-ink);
}
.dm-composer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--dm-pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: stretch;
}
.dm-composer__main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 0; max-width: 720px; justify-self: center; width: 100%;
}
.dm-composer__status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--dm-font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dm-eyebrow); margin-bottom: 30px;
}
.dm-composer__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dm-accent);
  animation: labPulse 2.4s ease-in-out infinite;
}
.dm-composer__title {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.dm-composer__intro { font-size: 18px; line-height: 1.6; color: var(--dm-muted); margin-bottom: 36px; max-width: 540px; }
.dm-composer__box {
  border: 1px solid var(--dm-line-3);
  border-radius: 20px;
  background: var(--dm-surface);
  box-shadow: var(--dm-shadow);
  overflow: hidden;
}
.dm-composer__textarea {
  width: 100%; border: none; outline: none;
  padding: 22px 22px 8px;
  font-family: var(--dm-font-body);
  font-size: 16px; line-height: 1.6; color: var(--dm-ink);
  background: transparent; resize: none;
}
.dm-composer__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 16px;
}
.dm-composer__note { font-family: var(--dm-font-mono); font-size: 10px; letter-spacing: .06em; color: var(--dm-label); }
.dm-composer__send {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: var(--dm-font-body);
  font-size: 14px; font-weight: 600;
  color: var(--dm-btn-fg); background: var(--dm-btn-bg);
  padding: 11px 20px; border-radius: var(--dm-pill);
  transition: background .18s ease;
}
.dm-composer__send:hover { background: var(--dm-btn-bg-hover); }
.dm-composer__prompts { margin-top: 24px; }
.dm-composer__prompts-label {
  font-family: var(--dm-font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dm-label); margin-bottom: 14px;
}
.dm-composer__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-composer__chip {
  border: 1px solid var(--dm-line);
  cursor: pointer;
  background: var(--dm-surface);
  font-family: var(--dm-font-body);
  font-size: 13.5px; color: var(--dm-eyebrow);
  padding: 9px 16px; border-radius: var(--dm-pill);
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}
.dm-composer__chip:hover { border-color: var(--dm-line-hover); background: var(--dm-tint-2); }
.dm-composer__rail {
  border-left: 1px solid var(--dm-line);
  padding: 64px 0 64px 40px;
  display: flex; flex-direction: column; gap: 34px;
}
.dm-composer__rail-label {
  font-family: var(--dm-font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dm-label); margin-bottom: 18px;
}
.dm-composer__links { display: flex; flex-direction: column; gap: 8px; }
.dm-composer__link {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  background: var(--dm-surface);
  transition: border-color .18s ease, background .18s ease;
}
.dm-composer__link:hover { border-color: var(--dm-line-hover); background: var(--dm-bg); }
.dm-composer__link-num { font-family: var(--dm-font-mono); font-size: 11px; color: var(--dm-label-3); padding-top: 2px; }
.dm-composer__link-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--dm-ink); margin-bottom: 3px; }
.dm-composer__link-desc { display: block; font-size: 12.5px; line-height: 1.5; color: var(--dm-label-2); }
.dm-composer__rail-cta { border-top: 1px solid var(--dm-line); padding-top: 30px; margin-top: auto; }
.dm-composer__rail-cta p { font-size: 14px; line-height: 1.6; color: var(--dm-muted); margin-bottom: 16px; }

/* Inline Calendly scheduler below the chat (S21) */
.lab-calendly {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--dm-line);
}
.lab-calendly h2 {
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.01em;
  margin-bottom: 24px;
}

/* ── §18 Chat bubble UI (S24) ──────────────────────────────────────────────
   Presentation layer for the /lab intake chat (web/js/ai-tools/business-intake.js).
   The JS builds: .dm-chat-messages > .dm-msg.{assistant|user} > [img.dm-msg__avatar] +
   .dm-msg__text. Bubble fill/border/radius lives on .dm-msg__text so the avatar sits
   OUTSIDE the colored bubble. Input row mirrors the §17 .dm-composer idiom.            */
.dm-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px;
}
.dm-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 75%;
}
.dm-msg.assistant { align-self: flex-start; }
.dm-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.dm-msg__avatar {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}
.dm-msg__text {
  font-family: var(--dm-font-body);
  font-size: 15px;
  line-height: 1.55;
  padding: 11px 15px;
  border-radius: var(--dm-radius);
  white-space: pre-wrap;
  word-wrap: break-word;
}
/* Assistant: white surface, bordered, pointed bottom-left corner. */
.dm-msg.assistant .dm-msg__text {
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  color: var(--dm-ink);
  border-bottom-left-radius: 4px;
}
/* Visitor: filled accent bubble, light-on-dark text, pointed bottom-right corner. */
.dm-msg.user .dm-msg__text {
  background: var(--dm-accent);
  color: var(--dm-btn-fg);
  border-bottom-right-radius: 4px;
}
/* GH-29: inline booking CTA rendered inside an assistant chat bubble (renderBookingOffer). */
.dm-msg__text .dm-booking-cta {
  display: flex;        /* block-level → drops below the copy text regardless of preceding inline run */
  width: fit-content;
  margin-top: 12px;
}
/* S26: inline contact card / booking-close button stack rendered inside an assistant chat bubble
   (renderIntakeCard / renderBookingClose). Reuses the .dm-msg / .dm-msg__text container; the
   block-below-copy layout mirrors the .dm-booking-cta pattern so the card reads as part of the
   bubble. No restyle of the chat itself. */
.dm-msg__text .dm-intake-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.dm-msg__text .dm-intake-card input {
  border: 1px solid var(--dm-line);
  outline: none;
  background: var(--dm-surface);
  font-family: var(--dm-font-body);
  font-size: 15px;
  color: var(--dm-ink);
  padding: 10px 14px;
  border-radius: var(--dm-pill);
  transition: border-color .18s ease;
}
.dm-msg__text .dm-intake-card input:focus { border-color: var(--dm-accent); }
.dm-msg__text .dm-intake-card .dm-intake-card__send {
  width: fit-content;
  border: none;
  cursor: pointer;
  font-family: var(--dm-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-btn-fg);
  background: var(--dm-btn-bg);
  padding: 10px 22px;
  border-radius: var(--dm-pill);
  transition: background .18s ease;
}
.dm-msg__text .dm-intake-card .dm-intake-card__send:hover { background: var(--dm-btn-bg-hover); }
.dm-msg__text .dm-intake-card .dm-intake-card__later {
  width: fit-content;
  border: none;
  cursor: pointer;
  font-family: var(--dm-font-body);
  font-size: 13px;
  color: var(--dm-muted);
  background: transparent;
  padding: 2px 0;
  text-decoration: underline;
}
.dm-chat-input-row {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.dm-chat-input-row input,
.dm-chat-input-row textarea {
  flex: 1;
  border: 1px solid var(--dm-line);
  outline: none;
  background: var(--dm-surface);
  font-family: var(--dm-font-body);
  font-size: 15px;
  color: var(--dm-ink);
  padding: 12px 18px;
  border-radius: var(--dm-pill);
  transition: border-color .18s ease;
}
/* The reply box grows downward with wrapped text (JS caps the height, then it
   scrolls). resize:none — the height is driven by content, not a drag handle. */
.dm-chat-input-row textarea {
  resize: none;
  overflow-y: auto;
  line-height: 1.45;
  max-height: 140px;
  border-radius: 22px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.dm-chat-input-row input:focus,
.dm-chat-input-row textarea:focus { border-color: var(--dm-accent); }
.dm-chat-input-row button {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: var(--dm-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-btn-fg);
  background: var(--dm-btn-bg);
  padding: 12px 24px;
  border-radius: var(--dm-pill);
  transition: background .18s ease;
}
.dm-chat-input-row button:hover { background: var(--dm-btn-bg-hover); }

@media (max-width: 640px) {
  .dm-chat-messages { max-height: 380px; }
  .dm-msg { max-width: 88%; }
  .dm-chat-input-row input,
  .dm-chat-input-row textarea { min-height: 44px; }
  .dm-chat-input-row button { min-height: 44px; }
}

/* ── WI-1 cold-start "thinking / warming-up" affordance (S24) ──────────────
   business-intake.js adds .dm-msg--thinking to the in-flight assistant .dm-msg wrapper while a
   turn is awaiting its first delta. The class drives a churning brain avatar + animated dots, and
   is removed on the first delta / done / error. The static "Warming up…" copy (set by a JS timer)
   is the reduced-motion fallback, so the bubble is never blank.                                  */
@keyframes dmBrainChurn {
  0%, 100% { opacity: .55; transform: scale(1)    rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.08) rotate(8deg); }
}
@keyframes dmDots {
  0%   { content: "·";   }
  33%  { content: "··";  }
  66%  { content: "···"; }
  100% { content: "·";   }
}
.dm-msg--thinking .dm-msg__avatar { animation: dmBrainChurn 1.4s ease-in-out infinite; }
.dm-msg--thinking .dm-msg__text::after {
  content: "···";
  animation: dmDots 1.2s steps(1, end) infinite;
}

/* ════════ END DMX-RD-01 LUCID LIBRARY ══════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════════════
   DMX-RD-07 — RESPONSIVE + QA PASS
   ────────────────────────────────────────────────────────────────────────────
   The Lucid `.dm-*` section library (RD-01) was authored desktop-only — it has
   no @media rules. This block makes every `.dm-*` section responsive WITHOUT
   restructuring the hi-fi desktop layouts (rules only). Breakpoints follow the
   file's existing convention: 1024 (tablet) and 640 (phone). The nav hamburger
   owns 860 (RD-02) and is left untouched; nav/footer already carry their own 640
   rules and are insulated from the token overrides below.

   Strategy:
   • Multi-column GRIDS collapse: 3-up → 2-up @1024 → 1-up @640; 2-up → 1-up @640.
   • 2-column SPLIT layouts (hero, feature-split, timeline, news, dark-panel,
     featured-card, composer) stack to one column and drop their vertical rules
     in favor of horizontal ones where a divider is meaningful.
   • Section padding + the fixed-px sub-heads step down. H1/H2/H2-lg already use
     clamp() so they reflow on their own; only the fixed sizes need stepping.
   • Token override inside the @media cascades --dm-pad-x / --dm-pad-y to every
     section at once (smallest diff).
   • Tap targets: chips, links, sort select, send button → min-height 44px.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Homepage news/stories strip reconciliation (cross-story w/ RD-05) ──────────
   featured-stories.js now emits `.dm-story` cards into #featured-stories-grid,
   but that div keeps the legacy `.card-grid-3` class (gap:0, + a ≤640 flex
   horizontal-scroll built for the OLD `.story-card`). Scope the fix to the id so
   the new cards lay out like the /stories/ index and we don't disturb any other
   `.card-grid-3` usage. */
#featured-stories-grid.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) {
  #featured-stories-grid.card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Neutralize the legacy ≤640 flex/scroll-snap rule for this id specifically
     (it targets `.card-grid-3` and would otherwise win on this container). */
  #featured-stories-grid.card-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 24px;
  }
}

/* ── dm-chip active-state alias (found+fixed regression, RD-05 stories.js) ──────
   stories.js toggles `.active`, but the CSS only styled `.dm-chip--active`. After
   the first filter click the "All" chip stayed lit and the clicked chip didn't.
   Alias the two so the active visual follows the JS. CSS-only (stays out of
   RD-05's stories.js). */
.dm-chip.active {
  color: var(--dm-on-dark);
  background: var(--dm-accent);
  border-color: var(--dm-accent);
}

/* ════ TABLET ─ ≤1024px ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --dm-pad-y:    72px;
    --dm-pad-y-sm: 68px;
  }

  /* Hero: split → stacked, art under copy */
  .dm-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px var(--dm-pad-x) 56px;
  }
  .dm-hero__art { order: 2; }
  .dm-hero__art img { max-width: 440px; }

  /* Feature-split → stacked (keep media first; reverse variant unwinds too) */
  .dm-feature-split__inner,
  .dm-feature-split__inner--rev {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dm-feature-split__inner--rev .dm-feature-split__media { order: 0; }
  .dm-feature-split__media { max-width: 420px; }

  /* 3-up grids → 2-up */
  .dm-pillar-trio__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .dm-cards-row__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .dm-principles-grid__grid { grid-template-columns: repeat(2, 1fr); }
  .dm-story-grid__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Timeline: title above the rows */
  .dm-timeline__inner { grid-template-columns: 1fr; gap: 36px; }

  /* News featured + list → stacked */
  .dm-news__grid { grid-template-columns: 1fr; gap: 36px; }

  /* Dark panel + featured-card + composer → stacked */
  .dm-dark-panel__card { grid-template-columns: 1fr; gap: 36px; padding: 48px; }
  .dm-dark-panel__art { order: -1; }
  .dm-dark-panel__art img { max-width: 220px; }
  .dm-featured-card__card { grid-template-columns: 1fr; }
  .dm-featured-card__media { min-height: 220px; border-left: none; border-top: 1px solid var(--dm-line); order: -1; }
  .dm-featured-card__copy { padding: 40px; }

  .dm-composer__inner { grid-template-columns: 1fr; gap: 0; }
  .dm-composer__rail {
    border-left: none;
    border-top: 1px solid var(--dm-line);
    padding: 40px 0 56px;
  }
  .dm-composer__main { padding: 48px 0 40px; max-width: none; }
}

/* ════ PHONE ─ ≤640px ════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --dm-pad-x:    20px;
    --dm-pad-y:    56px;
    --dm-pad-y-sm: 52px;
    /* Step the fixed sub-head sizes down (clamped H1/H2/H2-lg flex already). */
    --dm-h3:       21px;
    --dm-body-lg:  17px;
  }

  /* Hero */
  .dm-hero__inner { padding: 48px var(--dm-pad-x) 44px; gap: 32px; }
  .dm-hero__art img { max-width: 320px; }
  .dm-hero__sub { margin-bottom: 28px; }

  /* Breadcrumb / callout padding trim */
  .dm-breadcrumb__inner { padding: 40px var(--dm-pad-x) 0; }
  .dm-callout__inner { padding: 48px var(--dm-pad-x); }

  /* ALL multi-column grids → single column */
  .dm-stat-row { grid-template-columns: repeat(2, 1fr); }
  .dm-pillar-trio__grid { grid-template-columns: 1fr; gap: 28px; }
  .dm-pillar-trio__head { margin-bottom: 40px; }
  .dm-offerings__grid { grid-template-columns: 1fr; }
  .dm-offerings__head { margin-bottom: 36px; }
  .dm-cards-row__grid { grid-template-columns: 1fr; gap: 16px; }
  .dm-cards-row__title { margin-bottom: 32px; }
  .dm-principles-grid__grid { grid-template-columns: 1fr; }
  .dm-principles-grid__title { margin-bottom: 36px; }
  .dm-story-grid__grid { grid-template-columns: 1fr; gap: 20px; }

  /* Sub-head step-downs not covered by the token override */
  .dm-offering__title { font-size: 22px; }
  .dm-principle__title { font-size: 20px; }
  .dm-card__title { font-size: 21px; }
  .dm-timeline__role { font-size: 19px; }
  .dm-featured-card__title { line-height: 1.14; }
  .dm-featured-card__num { font-size: 28px; }
  .dm-story__title { font-size: 20px; }
  .dm-news__featured-title { font-size: 24px; }
  .dm-offering { padding: 28px; }
  .dm-principle { padding: 26px 24px; }
  .dm-card { padding: 26px; }

  /* Timeline rows: period above detail */
  .dm-timeline__row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }

  /* Featured-card / dark-panel inner padding */
  .dm-featured-card__copy { padding: 32px; }
  .dm-featured-card__metrics { gap: 28px; }
  .dm-dark-panel__inner { padding: 64px var(--dm-pad-x); }
  .dm-dark-panel__card { padding: 36px 28px; }

  /* Composer: stack textarea bar gracefully, rail padding */
  .dm-composer__inner { padding: 0 var(--dm-pad-x); }
  .dm-composer__rail { padding: 36px 0 48px; }
  .dm-composer__intro { font-size: 16px; }
  .dm-composer__bar { flex-wrap: wrap; gap: 10px; }

  /* ── Tap targets ≥44px ─────────────────────────────────────────────────── */
  .dm-btn { min-height: 44px; }
  .dm-chip,
  .dm-composer__chip { min-height: 44px; }
  .dm-composer__send { min-height: 44px; }
  .stories-sort-select { min-height: 44px; }
  .dm-news__item { padding: 18px 0; min-height: 44px; }
  .dm-composer__link { padding: 16px; }
}

/* ════ REDUCED MOTION ════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .dm-hero__copy,
  .dm-composer__dot,
  .brand-marquee-track,
  .dm-msg--thinking .dm-msg__avatar,
  .dm-msg--thinking .dm-msg__text::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ════════ END DMX-RD-07 RESPONSIVE ══════════════════════════════════════════ */
