/* ==========================================================================
   Dale Miles design system: components
   Taken verbatim from project/components/bundle.css in the design system,
   with one change: the Google Fonts @import at the top is removed, because
   the three faces are self-hosted in fonts.css instead. Nothing else here
   is edited, so a newer bundle from the system can be dropped in over this
   file after reapplying that one deletion.

   Site-specific additions, including every responsive rule, live in
   site.css, which loads after this.
   ========================================================================== */
/* Dale Miles components. Plain CSS on top of tokens.css. No 1px borders: separation is tone, shadow and space. */

.dm { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm p { margin: 0; }

/* Signature red full stop */
.dm-stop { color: var(--ember-500); }

/* Headings */
.dm-display, .dm-h1, .dm-h2, .dm-h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; text-wrap: balance; }
.dm-display { font-size: 76px; line-height: 1.02; letter-spacing: -0.035em; }
.dm-h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.dm-h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; }
.dm-h3 { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.dm-lead { font-size: 21px; line-height: 32px; color: var(--ink-muted); max-width: 60ch; }
.dm-body { font-size: 17px; line-height: 28px; color: var(--ink-muted); max-width: 64ch; }
.dm-small { font-size: 14px; line-height: 22px; color: var(--ink-subtle); }
.dm-mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Buttons */
.dm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 16px/24px var(--font-sans); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border: 0; border-radius: var(--radius-md);
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dm-btn:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.dm-btn-primary { background: var(--blue-600); color: var(--ink-inverse); box-shadow: var(--shadow-sm); }
.dm-btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.dm-btn-secondary { background: var(--mist-100); color: var(--ink); }
.dm-btn-secondary:hover { background: var(--sky-200); }
.dm-btn-outline { background: transparent; color: var(--blue-600); box-shadow: inset 0 0 0 2px var(--blue-600); }
.dm-btn-outline:hover { background: rgba(16, 84, 238, 0.06); color: var(--blue-700); box-shadow: inset 0 0 0 2px var(--blue-700); }
.dm-dark .dm-btn-outline { color: var(--blue-300); box-shadow: inset 0 0 0 2px var(--blue-300); }
.dm-dark .dm-btn-outline:hover { background: rgba(106, 155, 255, 0.1); color: var(--ink-inverse); box-shadow: inset 0 0 0 2px var(--ink-inverse); }
.dm-dark .dm-btn:focus-visible { outline-color: var(--blue-300); }
.dm-btn-sm { padding: 9px 16px; font-size: 15px; }
.dm-btn .dm-arrow { transition: transform .18s ease; }
.dm-btn:hover .dm-arrow, .dm-link:hover .dm-arrow { transform: translateX(3px); }

.dm-link {
  color: var(--blue-600); font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--sky-200);
  transition: text-decoration-color .18s ease, color .18s ease;
}
.dm-link:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.dm-link .dm-arrow { display: inline-block; }

/* Tag */
.dm-tag { display: inline-block; font: 500 13px/20px var(--font-sans); color: var(--ink); background: var(--sky-200); padding: 3px 10px; border-radius: var(--radius-sm); }

/* Site header */
.dm-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 32px; background: var(--paper); }
.dm-wordmark { font: 700 21px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.dm-nav { display: flex; gap: 32px; }
.dm-nav a { font-size: 15px; color: var(--ink-muted); text-decoration: none; padding: 6px 0; background: linear-gradient(var(--ember-500), var(--ember-500)) left bottom / 0 2px no-repeat; transition: color .18s ease, background-size .25s ease; }
.dm-nav a:hover { color: var(--ink); }
.dm-nav a[aria-current] { color: var(--ink); background-size: 100% 2px; }

/* Time overlap: the signature element */
.dm-overlap { background: var(--mist-50); border-radius: var(--radius-lg); padding: 32px; }
.dm-overlap-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.dm-overlap-now { font: 600 24px/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 6px; }
.dm-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--paper); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.dm-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-green); }
.dm-status[data-state="off"] i { background: var(--ink-subtle); }
.dm-tracks { position: relative; padding-top: 24px; display: grid; grid-template-columns: 148px 1fr 112px; row-gap: 6px; align-items: center; }
.dm-tracks .lbl { font-size: 14px; color: var(--ink-muted); padding-right: 16px; }
.dm-tracks .lbl.me { color: var(--ink); font-weight: 600; }
.dm-tracks .t { font-size: 14px; color: var(--ink); text-align: right; }
.dm-tracks .t span { color: var(--ink-subtle); margin-left: 6px; }
.dm-track { position: relative; height: 32px; }
.dm-track::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 3px; background: var(--mist-100); }
.dm-bar { position: absolute; top: 10px; height: 12px; border-radius: 6px; background: var(--navy-900); }
.dm-bar.me { background: var(--blue-600); }
.dm-band { position: absolute; top: 20px; bottom: -4px; background: var(--sky-200); border-radius: var(--radius-sm); opacity: .7; }
.dm-band-label { position: absolute; top: -24px; font: 500 12px/16px var(--font-mono); color: var(--ink); white-space: nowrap; }
.dm-nowline { position: absolute; top: 24px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ember-500); border-radius: 1px; }
.dm-nowline::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ember-500); }
.dm-axis { display: grid; grid-template-columns: 148px 1fr 112px; margin-top: 10px; }
.dm-axis div { position: relative; height: 16px; font: 400 12px/16px var(--font-mono); color: var(--ink-subtle); }
.dm-axis span { position: absolute; transform: translateX(-50%); }
.dm-axis span:first-child { transform: none; }
.dm-axis span:last-child { transform: translateX(-100%); }
.dm-overlap-foot { margin-top: 20px; }

/* Stats */
.dm-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: end; }
.dm-stat .num { font: 600 56px/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }
.dm-stat.lead .num { font-size: 96px; color: var(--blue-600); }
.dm-stat .num sup { font-size: .45em; vertical-align: .9em; color: var(--ember-500); margin-left: 2px; }
.dm-stat p { margin-top: 12px; font-size: 15px; line-height: 23px; color: var(--ink-muted); max-width: 30ch; }

/* Case study card */
.dm-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.dm-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,19,61,.04), 0 20px 48px rgba(0,19,61,.12); }
.dm-card-media { background: var(--navy-900); min-height: 280px; position: relative; }
.dm-card-body { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.dm-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-card ol { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.dm-card li { position: relative; padding-left: 20px; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.dm-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-500); }

/* Fields */
.dm-field { display: grid; gap: 8px; }
.dm-field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.dm-input { font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--mist-100); border: 0; border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: background-color .18s ease, box-shadow .18s ease; }
.dm-input::placeholder { color: var(--ink-subtle); }
.dm-input:hover { background: var(--mist-300); }
.dm-input:focus { outline: none; background: var(--paper); box-shadow: 0 0 0 2px var(--blue-600); }
textarea.dm-input { min-height: 132px; resize: vertical; }
.dm-dark .dm-field label { color: var(--ink-inverse); }
.dm-dark .dm-input { background: var(--navy-800); color: var(--ink-inverse); }
.dm-dark .dm-input::placeholder { color: var(--ink-inverse-muted); }
.dm-dark .dm-input:hover { background: var(--navy-700); }
.dm-dark .dm-input:focus { background: var(--navy-700); box-shadow: 0 0 0 2px var(--blue-300); }

/* Dark CTA band */
.dm-dark { background: var(--navy-900); color: var(--ink-inverse); }
.dm-cta { border-radius: var(--radius-xl); padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.dm-cta .dm-h2 { color: var(--ink-inverse); font-size: 48px; }
.dm-cta .dm-body { color: var(--ink-inverse-muted); }
.dm-person { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.dm-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sky-200); color: var(--navy-900); display: grid; place-items: center; font: 700 20px/1 var(--font-display); flex: none; overflow: hidden; }
.dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-person b { display: block; font-weight: 600; font-size: 16px; }
.dm-person span { font-size: 14px; color: var(--ink-inverse-muted); }
.dm-contact { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.dm-contact a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(106,155,255,.4); }
.dm-contact a:hover { text-decoration-color: currentColor; }
.dm-contact li { font-size: 16px; color: var(--ink-inverse-muted); }
.dm-form { background: var(--navy-800); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 20px; }
.dm-form .dm-input { background: var(--navy-900); }
.dm-form .dm-input:hover, .dm-form .dm-input:focus { background: var(--navy-700); }

/* Hero */
.dm-hero { padding: 96px 32px 64px; background: var(--paper); }
.dm-hero-copy { max-width: 880px; margin-bottom: 56px; }
.dm-hero-copy .dm-lead { margin-top: 28px; }
.dm-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Entrance: one fade on scroll, never looping */
@media (prefers-reduced-motion: no-preference) {
  .dm-reveal { animation: dm-fade .6s ease both; }
  @keyframes dm-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Section shell */
.dm-section { padding: 96px 48px; background: var(--paper); }
.dm-section.alt { background: var(--mist-50); }
.dm-section-head { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.dm-section-head .dm-body { margin: 0; }

/* Approach: editorial rows, no cards */
.dm-approach { display: grid; }
.dm-approach-row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 36px 0; }
.dm-approach-row + .dm-approach-row { box-shadow: inset 0 1px 0 var(--mist-100); }
.dm-approach-row .dm-h3 { font-size: 26px; font-weight: 700; }
.dm-approach-row .dm-body { max-width: 58ch; }
.dm-points { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 16px 0 0; padding: 0; }
.dm-points li { position: relative; padding-left: 14px; font-size: 15px; color: var(--ink); }
.dm-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-500); }
.dm-approach-row.featured { grid-template-columns: 1fr; background: var(--navy-900); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 16px; box-shadow: none; }

/* Case feature: big media, uneven stats, alternating sides */
.dm-case { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.dm-case + .dm-case { margin-top: 112px; }
.dm-case.flip { grid-template-columns: 5fr 6fr; }
.dm-case.flip .dm-case-media { order: 2; }
.dm-case-media { background: var(--mist-100); border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; position: relative; overflow: hidden; }
.dm-case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-case-media img.shot { inset: auto; top: 48px; left: 50%; width: 68%; height: auto; transform: translateX(-50%); border-radius: var(--radius-md); box-shadow: 0 2px 4px rgba(0,19,61,.06), 0 24px 56px rgba(0,19,61,.18); transition: transform .4s ease; }
.dm-case:hover .dm-case-media img.shot { transform: translateX(-50%) translateY(-6px); }
.dm-case-years { font: 400 13px/20px var(--font-mono); color: var(--ink-subtle); margin-bottom: 12px !important; }
.dm-case .dm-h2 { font-size: 36px; }
.dm-case .dm-body { margin-top: 18px; }
.dm-case-stats { display: flex; align-items: flex-end; gap: 28px; margin: 32px 0; }
.dm-case-stats div { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dm-case-stats b { display: block; font: 700 32px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; }
.dm-case-stats div:first-child b { font-size: 44px; color: var(--blue-600); }
.dm-soon { font-size: 15px; color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 8px; }
.dm-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mist-300); }

/* Experience: a rail, not a table */
.dm-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.dm-timeline::before { content: ""; position: absolute; left: 207px; top: 10px; bottom: 10px; width: 2px; background: var(--mist-100); border-radius: 1px; }
.dm-timeline li { position: relative; display: grid; grid-template-columns: 176px 1fr; gap: 64px; padding-bottom: 48px; }
.dm-timeline li::after { content: ""; position: absolute; left: 202px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--navy-900); }
.dm-timeline li.now::after { background: var(--ember-500); box-shadow: 0 0 0 4px var(--paper); }
.dm-when { font: 500 13px/20px var(--font-mono); color: var(--ink); text-align: right; }
.dm-when span { display: block; font-weight: 400; color: var(--ink-subtle); }
.dm-role { font: 700 22px/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.dm-org { font-size: 15px; font-weight: 500; color: var(--ink-muted); margin: 4px 0 12px !important; }
.dm-org .dm-tag { margin-left: 8px; font-size: 12px; padding: 1px 8px; vertical-align: 1px; }
.dm-timeline .dm-body { font-size: 16px; line-height: 26px; }
.dm-timeline li.past .dm-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Toolkit: open groups, filled chips */
.dm-toolkit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 56px; }
.dm-toolkit h3 { font: 700 18px/1.3 var(--font-display); color: var(--ink); margin: 0 0 16px; letter-spacing: -0.01em; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dm-chips li { font-size: 14px; line-height: 20px; color: var(--ink); background: var(--mist-100); padding: 6px 12px; border-radius: var(--radius-sm); }
.dm-chips li.core { background: var(--sky-200); font-weight: 500; }
.dm-section.alt .dm-chips li { background: var(--paper); }
.dm-section.alt .dm-chips li.core { background: var(--sky-200); }

/* Testimonials: one big voice, two supporting */
.dm-quotes { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.dm-quote-lead { margin: 0; }
.dm-quote-lead p { font: 600 30px/1.32 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.dm-quote-lead p::before { content: "\201C"; display: block; font: 700 96px/0.6 var(--font-display); color: var(--ember-500); margin-bottom: 16px; }
.dm-quote-side { display: grid; gap: 20px; }
.dm-quote { margin: 0; background: var(--paper); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.dm-quote p { font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.dm-cite { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-style: normal; }
.dm-cite .dm-avatar { width: 40px; height: 40px; font-size: 14px; }
.dm-cite b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.dm-cite span { font-size: 14px; color: var(--ink-subtle); }
