/* Donnelson & Myers Co — isolated mini-site tokens and chrome */
:root {
  --dm-near-black: #1C1C1A;
  --dm-charcoal: #3D3D3A;
  --dm-cream: #F7F5F0;
  --dm-ivory: #FAF8F4;
  --dm-warm-light: #EDEBE6;
  --dm-warm-beige: #D4C9B8;
  --dm-sage: #5C6B5A;
  --dm-soft-sage: #8A9A86;

  --dm-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --dm-font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --dm-radius-btn: 6px;
  --dm-radius-card: 8px;
  --dm-header-h: 112px;
  --dm-space: 8px;
  --dm-measure: 42rem;
  --dm-wrap: 70rem;
  --dm-section-y: clamp(64px, 8vw, 96px);
  --dm-gutter: clamp(20px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--dm-font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dm-charcoal);
  background: var(--dm-cream);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--dm-near-black);
  outline-offset: 3px;
}

.dm-wrap {
  width: min(var(--dm-wrap), calc(100% - 2 * var(--dm-gutter)));
  margin-inline: auto;
}

.dm-measure { max-width: var(--dm-measure); }

.dm-skip {
  position: absolute;
  left: var(--dm-gutter);
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--dm-near-black);
  color: var(--dm-cream);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--dm-radius-btn);
  transform: translateY(-120%);
}
.dm-skip:focus {
  transform: translateY(0);
}

.dm-kicker {
  font-family: var(--dm-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dm-charcoal);
  margin-bottom: 14px;
}

h1, .dm-h1 {
  font-family: var(--dm-font-body);
  font-size: clamp(1.75rem, 1.8vw + 1rem, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--dm-near-black);
  text-wrap: pretty;
}
h1 em, .dm-h1 em {
  font-style: italic;
  font-weight: 500;
}

h2, .dm-h2 {
  font-family: var(--dm-font-body);
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--dm-near-black);
}
h2 em, .dm-h2 em {
  font-style: italic;
  font-weight: 500;
}

h3, .dm-h3 {
  font-family: var(--dm-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--dm-near-black);
}

.dm-lede {
  max-width: var(--dm-measure);
  margin-top: 18px;
  line-height: 1.65;
}

.dm-caption {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dm-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: var(--dm-radius-btn);
  border: 0;
  background: var(--dm-near-black);
  color: var(--dm-cream);
  text-decoration: none;
  cursor: pointer;
}
.dm-btn:hover { background: var(--dm-charcoal); }
.dm-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.dm-link {
  color: var(--dm-sage);
  text-decoration: none;
}
.dm-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dm-arch {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 50% 50% 8px 8px / 42% 42% 8px 8px;
}
.dm-arch-portrait {
  width: min(168px, 42vw);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 84px 84px 6px 6px;
}
.dm-arch-wide {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 36% 36% 6px 6px / 20% 20% 6px 6px;
}
.dm-face { object-position: 50% 18%; }

/* Header */
.dm-header {
  height: var(--dm-header-h);
  display: flex;
  align-items: center;
  overflow: visible;
  background: var(--dm-cream);
  border-bottom: 1px solid var(--dm-warm-light);
  position: relative;
}
.dm-header-inner {
  width: min(var(--dm-wrap), calc(100% - 2 * var(--dm-gutter)));
  margin-inline: auto;
  height: var(--dm-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dm-logo { flex: 0 0 auto; }
.dm-logo img {
  width: 160px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.dm-logo-foot img {
  width: 120px;
  height: 52px;
}

.dm-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.dm-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--dm-charcoal);
  text-decoration: none;
}
.dm-nav a:hover { color: var(--dm-near-black); }
.dm-nav a[aria-current="page"]:not(.dm-btn) { color: var(--dm-near-black); }
.dm-nav .dm-btn,
.dm-nav .dm-btn[aria-current="page"] { color: var(--dm-cream); }

.dm-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 0 0 44px;
}
.dm-menu-btn span,
.dm-menu-btn span::before,
.dm-menu-btn span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--dm-near-black);
  position: absolute;
  left: 12px;
  border-radius: 1px;
}
.dm-menu-btn span { top: 21px; }
.dm-menu-btn span::before { content: ""; top: -6px; }
.dm-menu-btn span::after { content: ""; top: 6px; }

.dm-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--dm-header-h);
  background: var(--dm-cream);
  border-top: 1px solid var(--dm-warm-light);
  padding: 16px var(--dm-gutter) 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 50;
}
.dm-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dm-charcoal);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.dm-menu a[aria-current="page"]:not(.dm-btn) { color: var(--dm-near-black); }
.dm-menu .dm-btn,
.dm-menu .dm-btn[aria-current="page"] { color: var(--dm-cream); width: 100%; }
.dm-menu.is-open { display: flex; }

@media (max-width: 879px) {
  .dm-logo img { width: 140px; height: 61px; }
  .dm-nav { display: none; }
  .dm-menu-btn { display: block; }
}
@media (min-width: 880px) {
  .dm-menu,
  .dm-menu.is-open { display: none; }
}

/* Footer */
.dm-footer {
  background: var(--dm-cream);
  border-top: 1px solid var(--dm-warm-light);
  padding: 48px 0 40px;
}
.dm-footer-nav {
  display: flex;
  gap: 24px;
  margin: 24px 0 16px;
  font-size: 0.9375rem;
}
.dm-footer-nav a {
  color: var(--dm-charcoal);
  text-decoration: none;
  font-weight: 500;
}
.dm-footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dm-footer-legal {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
}
.dm-footer-legal a {
  color: var(--dm-charcoal);
  text-decoration: none;
}
.dm-footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dm-foot-note,
.dm-copy {
  font-size: 0.9375rem;
  font-weight: 400;
  max-width: var(--dm-measure);
  color: var(--dm-charcoal);
}
.dm-copy { margin-top: 16px; }

@media (max-width: 879px) {
  .dm-footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* Sections */
.dm-section { padding: var(--dm-section-y) 0; }
.dm-band { background: var(--dm-ivory); }
.dm-hero { padding: 56px 0 64px; }
.dm-hero-grid { display: grid; gap: 28px; align-items: center; }
.dm-hero h1,
.dm-blog-hero h1 {
  font-family: var(--dm-font-display);
  font-size: clamp(2.6rem, 4vw + 1rem, 3.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: wrap;
}
.dm-hero h1 { max-width: 9.4em; }
.dm-hero .dm-btn { margin-top: 28px; }
.dm-hero-arch {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: 55% 50%;
  border-radius: 32px 32px 8px 8px / 40% 40% 8px 8px;
}
@media (min-width: 880px) {
  .dm-hero { padding: 64px 0 72px; }
  .dm-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px 72px;
    align-items: center;
  }
  .dm-hero-arch {
    width: 320px;
    height: 420px;
    margin-inline: auto 0;
    border-radius: 160px 160px 8px 8px;
  }
  .dm-hero .dm-lede { max-width: 34rem; }
}

.dm-care {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 56px;
  align-items: start;
}
.dm-care .dm-arch-portrait {
  margin: 0;
  grid-row: 1 / span 3;
}
.dm-care h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
}
.dm-care-copy p + p { margin-top: 16px; }

.dm-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--dm-warm-light);
}
.dm-outcomes li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--dm-warm-light);
}
.dm-ico {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  color: var(--dm-near-black);
  display: block;
}
.dm-outcomes h3 {
  grid-column: 2;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.dm-outcomes p {
  grid-column: 2;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.dm-section-intro {
  margin-top: 16px;
  max-width: var(--dm-measure);
}
.dm-arch-wide-follow { display: none; }

@media (min-width: 880px) {
  .dm-outcomes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    margin-top: 40px;
  }
  .dm-outcomes li { padding: 22px 0; }
  .dm-outcomes h3 { font-size: 1.375rem; }
  .dm-outcomes p { font-size: 1.0625rem; }
  .dm-arch-wide-follow { display: block; margin-top: 48px; }
}

.dm-steps {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  counter-reset: dm-step;
}
.dm-steps > div::before {
  counter-increment: dm-step;
  content: counter(dm-step, decimal-leading-zero);
  display: block;
  font-family: var(--dm-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dm-charcoal);
  margin-bottom: 12px;
}
.dm-steps h3 { margin-bottom: 10px; }
@media (min-width: 800px) {
  .dm-steps { grid-template-columns: 1fr 1fr 1fr; gap: 40px 48px; }
}

.dm-people {
  display: grid;
  gap: 48px;
}
@media (min-width: 800px) {
  .dm-people { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.dm-person .dm-arch-portrait {
  width: min(160px, 42vw);
  margin-bottom: 20px;
}
.dm-person h2,
.dm-person h3 { margin-bottom: 0; }
.dm-person h2 a,
.dm-person h3 a { color: inherit; text-decoration: none; }
.dm-person h2 a:hover,
.dm-person h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dm-person .dm-role {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  margin: 8px 0 12px;
}
.dm-person p + p { margin-top: 12px; }
.dm-close h2 {
  margin-bottom: 20px;
  max-width: 16em;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
}
.dm-close .dm-btn { margin-top: 28px; }
.dm-meet { margin-top: 40px; }

.dm-story p { max-width: var(--dm-measure); }
.dm-story p + p { margin-top: 18px; }
.dm-story .dm-arch-wide { margin-top: 40px; }
.dm-values {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  padding-top: 8px;
}
.dm-values > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
}
.dm-values .dm-ico {
  grid-row: 1;
  margin-top: 4px;
}
.dm-values h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.dm-values p {
  grid-column: 2;
  margin: 0;
}
@media (min-width: 800px) {
  .dm-values { grid-template-columns: 1fr 1fr 1fr; gap: 40px 48px; margin-top: 40px; }
  .dm-values h3 { font-size: 1.375rem; }
}

/* Talk */
.dm-talk {
  display: grid;
  gap: 48px;
  padding: 48px 0 var(--dm-section-y);
}
@media (min-width: 880px) {
  .dm-talk { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
}
.dm-talk .dm-lede,
.dm-talk p { margin-top: 16px; }

.dm-form-card {
  background: var(--dm-ivory);
  border: 1px solid var(--dm-warm-beige);
  border-radius: 16px;
  padding: 28px;
}
.dm-form { display: grid; gap: 4px; position: relative; }
.dm-field { margin: 0 0 20px; }
.dm-field-box { position: relative; }
.dm-field input,
.dm-field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--dm-warm-beige);
  border-radius: 12px;
  background: var(--dm-ivory);
  color: var(--dm-near-black);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dm-field textarea {
  min-height: 140px;
  padding-top: 20px;
  resize: vertical;
}
.dm-field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background: var(--dm-ivory);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--dm-charcoal);
  pointer-events: none;
  transform-origin: left center;
  transition: top 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.dm-field:has(textarea) label { top: 20px; transform: none; }
.dm-field input::placeholder,
.dm-field textarea::placeholder { color: transparent; }
.dm-field input:focus::placeholder,
.dm-field textarea:focus::placeholder { color: var(--dm-charcoal); opacity: 0.55; }
.dm-field input:hover,
.dm-field textarea:hover { border-color: var(--dm-charcoal); }
.dm-field input:focus,
.dm-field textarea:focus,
.dm-field input:focus-visible,
.dm-field textarea:focus-visible {
  outline: none;
  border-color: var(--dm-sage);
  border-width: 2px;
  padding: 15px;
}
.dm-field:has(textarea) textarea:focus,
.dm-field:has(textarea) textarea:focus-visible { padding-top: 19px; }
.dm-field:focus-within label,
.dm-field.is-filled label,
.dm-field:has(input:not(:placeholder-shown)) label,
.dm-field:has(textarea:not(:placeholder-shown)) label {
  top: 0;
  transform: translateY(-50%) scale(0.78);
  color: var(--dm-charcoal);
  font-weight: 600;
}
.dm-field:focus-within label { color: var(--dm-sage); }
.dm-field-support {
  display: block;
  margin: 4px 16px 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--dm-charcoal);
  opacity: 0.72;
}
.dm-field-error {
  display: none;
  margin: 4px 16px 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #8B1E1E;
}
.dm-field.is-invalid .dm-field-support { display: none; }
.dm-field.is-invalid .dm-field-error { display: block; }
.dm-field.is-invalid input,
.dm-field.is-invalid textarea {
  border-color: #8B1E1E;
}
.dm-field.is-invalid label { color: #8B1E1E; }
.dm-form .dm-btn { width: 100%; margin-top: 4px; }
.dm-form-error {
  font-size: 0.88rem;
  color: #8B1E1E;
  background: #F8E8E4;
  border: 1px solid #E8C4BE;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}
.dm-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dm-success[hidden],
.dm-form[hidden] { display: none; }
.dm-success { outline: none; }
.dm-success h3 { margin-bottom: 12px; }
.dm-success p { margin-bottom: 24px; }

.dm-thanks { padding: 48px 0 var(--dm-section-y); }
.dm-thanks .dm-btn { margin-top: 24px; }

.dm-reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .dm-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms ease;
  }
  .dm-reveal.is-in { opacity: 1; transform: none; }
  .dm-menu {
    transition: opacity 150ms ease;
  }
}

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

@media (max-width: 799px) {
  .dm-form .dm-btn { width: 100%; }
  .dm-arch-wide { height: 152px; }
  .dm-care {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px 16px;
  }
  .dm-care .dm-arch-portrait {
    width: 88px;
    grid-row: 1;
  }
  .dm-care h2 { grid-column: 2; }
  .dm-care-copy {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  .dm-person {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .dm-person .dm-arch-portrait {
    width: 88px;
    grid-row: 1 / 5;
    margin-bottom: 0;
  }
  .dm-people { gap: 32px; }
  .dm-story .dm-arch-wide { margin-top: 28px; }
}

.dm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blog catalog */
.dm-blog-hero {
  padding: 52px 0 36px;
}
.dm-blog-hero h1 { max-width: 8.4em; }
.dm-blog-hero .dm-lede { max-width: 36rem; }
.dm-blog-catalog { padding-bottom: 64px; }

.dm-blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-bottom: 1px solid var(--dm-warm-light);
  margin: 8px 0 24px;
}
.dm-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.dm-blog-filters a {
  display: inline-flex;
  align-items: center;
  padding: 14px 12px 12px;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--dm-charcoal);
}
.dm-blog-filters a:hover { color: var(--dm-near-black); }
.dm-blog-filters a.is-on {
  color: var(--dm-near-black);
  border-bottom-color: var(--dm-near-black);
}
.dm-blog-search input {
  width: min(220px, 100%);
  height: 40px;
  border: 1px solid var(--dm-warm-beige);
  border-radius: var(--dm-radius-btn);
  padding: 0 12px;
  background: var(--dm-ivory);
  color: var(--dm-near-black);
}
.dm-blog-chip {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dm-charcoal);
}
.dm-blog-more, a.dm-blog-more {
  display: inline-flex;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dm-sage);
  text-decoration: none;
}
a.dm-blog-more:hover, .dm-blog-card:hover .dm-blog-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dm-blog-featured {
  display: grid;
  gap: 24px;
  align-items: stretch;
  margin: 0 0 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dm-warm-light);
}
.dm-blog-featured-copy h2 {
  margin: 12px 0;
  max-width: 22rem;
  font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem);
}
.dm-blog-featured-copy h2 a { text-decoration: none; }
.dm-blog-featured-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 36% 36% 8px 8px / 22% 22% 8px 8px;
}
.dm-blog-grid {
  display: grid;
  gap: 20px;
  margin: 8px 0 48px;
}
.dm-blog-card[hidden], .dm-blog-featured[hidden] { display: none !important; }
.dm-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--dm-warm-light);
  border-radius: var(--dm-radius-card);
  background: var(--dm-ivory);
  padding: 22px 22px 24px;
}
.dm-blog-card:hover { border-color: var(--dm-warm-beige); }
.dm-blog-card h2 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
}
.dm-blog-card-meta, .dm-blog-featured .dm-blog-card-meta {
  font-size: 0.82rem;
  color: var(--dm-charcoal);
}
.dm-blog-card-excerpt {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dm-blog-empty, .dm-blog-empty-filter { padding: 48px 0 80px; }

.dm-founder-card {
  display: grid;
  gap: 24px;
  align-items: start;
  margin-top: 12px;
}

@media (min-width: 880px) {
  .dm-blog-featured {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 48px;
  }
  .dm-blog-featured-media img {
    height: 100%;
    min-height: 280px;
    border-radius: 160px 160px 8px 8px;
  }
  .dm-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-founder-card { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; }
}

/* Blog article */
.dm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--dm-charcoal);
  margin-bottom: 20px;
}
.dm-crumbs a { color: var(--dm-sage); text-decoration: none; }
.dm-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dm-article { padding: 40px 0 0; }
.dm-article-head { max-width: var(--dm-measure); margin-bottom: 28px; }
.dm-article-head h1 { max-width: var(--dm-measure); }
.dm-article-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.dm-author-faces {
  position: relative;
  width: 52px;
  height: 36px;
  flex-shrink: 0;
}
.dm-author-faces a {
  position: absolute;
  top: 0;
  display: block;
}
.dm-author-faces a:first-child { left: 0; z-index: 1; }
.dm-author-faces a:last-child { left: 16px; z-index: 2; }
.dm-author-chip {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
  border: 2px solid var(--dm-cream);
  display: block;
}
.dm-article-meta { font-size: 0.9rem; }
.dm-article-meta a { color: var(--dm-near-black); text-decoration: none; font-weight: 500; }
.dm-article-byline {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--dm-charcoal);
}
.dm-article-stage { padding: 0; }
.dm-article-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}
.dm-article-lede {
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: var(--dm-measure);
  color: var(--dm-near-black);
}
.dm-takeaways {
  border-top: 1px solid var(--dm-warm-light);
  border-bottom: 1px solid var(--dm-warm-light);
  padding: 20px 0;
  margin: 0 0 28px;
}
.dm-takeaways h2 { font-size: 1.15rem; margin-bottom: 10px; }
.dm-takeaways ul { padding-left: 1.15rem; }
.dm-takeaways li { margin: 6px 0; }
.dm-article-prose {
  max-width: var(--dm-measure);
  overflow-wrap: break-word;
  line-height: 1.7;
}
.dm-article-prose h2,
.dm-article-faq h2,
.dm-related h2,
.dm-article-howto h2 {
  font-size: 1.35rem;
  margin: 32px 0 10px;
}
.dm-article-prose p + p { margin-top: 16px; }
.dm-article-prose a,
.dm-related a { color: var(--dm-sage); }
.dm-article-figure { margin: 24px 0; }
.dm-article-howto,
.dm-article-faq,
.dm-related {
  max-width: var(--dm-measure);
  margin-top: 36px;
}
.dm-faq-item { padding: 16px 0; border-bottom: 1px solid var(--dm-warm-light); }
.dm-faq-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.dm-related ul { list-style: none; }
.dm-related li { padding: 8px 0; border-bottom: 1px solid var(--dm-warm-light); }
.dm-article-rail { display: flex; flex-direction: column; gap: 12px; }
.dm-share-bar,
.dm-toc,
.dm-rail-cta {
  border: 1px solid var(--dm-warm-light);
  border-radius: var(--dm-radius-card);
  padding: 14px 16px;
  background: var(--dm-ivory);
}
.dm-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.dm-share-bar button,
.dm-share-bar a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dm-near-black);
  text-decoration: none;
  cursor: pointer;
}
.dm-toc-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dm-toc ol { list-style: none; }
.dm-toc a {
  display: inline-block;
  padding: 4px 0;
  color: var(--dm-charcoal);
  text-decoration: none;
  font-size: 0.88rem;
}
.dm-toc a:hover { color: var(--dm-near-black); text-decoration: underline; text-underline-offset: 3px; }
.dm-rail-cta h2 { font-size: 1.15rem; margin-bottom: 8px; }
.dm-rail-cta p { font-size: 0.9rem; margin-bottom: 16px; }
.dm-rail-cta .dm-btn { width: 100%; }

@media (min-width: 960px) {
  .dm-article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
  }
  .dm-article-rail {
    position: sticky;
    top: 24px;
  }
}

.dm-home-faq { max-width: var(--dm-measure); }
.dm-home-faq .dm-faq-item:first-child { border-top: 1px solid var(--dm-warm-light); }

/* Founder hello — Intercom-style prompt, not a live chat */
.dm-hello {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--dm-font-body);
  animation: dm-hello-in 0.38s ease;
}
@keyframes dm-hello-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.dm-hello-card {
  width: min(320px, calc(100vw - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  background: var(--dm-ivory);
  border: 1px solid var(--dm-warm-light);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(28, 28, 26, 0.12);
  padding: 14px 14px 12px;
}
.dm-hello-card[hidden] { display: none !important; }
.dm-hello-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dm-hello-faces {
  position: relative;
  width: 52px;
  height: 36px;
  flex-shrink: 0;
}
.dm-hello-faces img {
  position: absolute;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--dm-ivory);
}
.dm-hello-faces img:first-child { left: 0; z-index: 1; }
.dm-hello-faces img:last-child { left: 16px; z-index: 2; }
.dm-hello-who { font-size: 0.82rem; line-height: 1.25; }
.dm-hello-who strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dm-near-black);
}
.dm-hello-who span { color: var(--dm-charcoal); font-size: 0.72rem; }
.dm-hello-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--dm-charcoal);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.dm-hello-x:hover { background: var(--dm-warm-light); color: var(--dm-near-black); }
.dm-hello-msg {
  font-size: 0.92rem;
  color: var(--dm-near-black);
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.dm-hello-reply {
  display: flex;
  align-items: center;
  border: 1px solid var(--dm-warm-beige);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--dm-charcoal);
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 44px;
}
.dm-hello-reply:hover { border-color: var(--dm-charcoal); color: var(--dm-near-black); }
.dm-hello-launch {
  position: relative;
  width: 68px;
  height: 48px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  overflow: visible;
}
.dm-hello-launch img {
  position: absolute;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--dm-cream);
  box-shadow: 0 8px 20px rgba(28, 28, 26, 0.16);
}
.dm-hello-launch img:first-child { left: 0; z-index: 1; }
.dm-hello-launch img:last-of-type { left: 20px; z-index: 2; }
.dm-hello-ping {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid var(--dm-cream);
  border-radius: 50%;
  z-index: 3;
}
.dm-hello-ping::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: dm-hello-ping 1.6s ease-out 2;
}
.dm-hello-launch:focus-visible { outline: 2px solid var(--dm-near-black); outline-offset: 3px; }
@keyframes dm-hello-ping {
  from { opacity: 0.7; transform: scale(0.6); }
  to { opacity: 0; transform: scale(1.4); }
}
@media (max-width: 640px) {
  body:has(.dm-hello) {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .dm-hello {
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .dm-hello-launch { width: 60px; height: 44px; }
  .dm-hello-launch img { width: 44px; height: 44px; }
  .dm-hello-launch img:last-of-type { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-hello, .dm-hello-card { animation: none; }
  .dm-hello-ping::after { animation: none; }
}
@media print { .dm-hello { display: none !important; } }
