/* 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.6;
  color: var(--dm-charcoal);
  background: var(--dm-cream);
  -webkit-font-smoothing: antialiased;
}

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.18em;
  text-transform: uppercase;
  color: var(--dm-charcoal);
  margin-bottom: 20px;
}

h1, .dm-h1 {
  font-family: var(--dm-font-display);
  font-size: clamp(2.25rem, 3.4vw + 1rem, 3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--dm-near-black);
  text-wrap: balance;
}
h1 em, .dm-h1 em {
  font-style: italic;
  font-weight: 500;
}

h2, .dm-h2 {
  font-family: var(--dm-font-display);
  font-size: clamp(1.75rem, 1.6vw + 1rem, 2rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--dm-near-black);
}
h2 em, .dm-h2 em {
  font-style: italic;
  font-weight: 500;
}

h3, .dm-h3 {
  font-family: var(--dm-font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dm-near-black);
}

.dm-lede {
  max-width: var(--dm-measure);
  margin-top: 28px;
  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-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 { max-width: 13em; }
.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; }
.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 .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: 18em; }
.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; }
}
