/* ==========================================================================
   DMOS — Light theme + navigation states
   Version V8 · Oct 3 2026
   Loaded after the compiled Tailwind bundle; every rule here is scoped to a
   dm-* class added in the V8 bundle, so nothing else in the theme is touched.
   ========================================================================== */
/* Logo tagline face — Barlow Semi Condensed 600 (SIL OFL), self-hosted */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"),
       url("fonts/barlow-semi-condensed-latin-600-normal.woff") format("woff");
}
:root {
  --dm-navy: #01215e;          /* DMOS logo navy */
  --dm-ink: #0a1c33;           /* headings */
  --dm-slate: #44566c;         /* body text */
  --dm-muted: #6b7f95;
  --dm-ocean: #0c63ae;         /* primary blue */
  --dm-ocean-dark: #0a5596;
  --dm-sky: #0a83af;           /* logo tagline blue */
  --dm-tint: #eaf3fc;          /* hover wash */
  --dm-tint-2: #f4f8fc;
  --dm-line: #dfe7ef;
  --dm-header-h: 84px;
  --dm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 639px) { :root { --dm-header-h: 72px; } }

body { background: #fff; }

/* ---------- Logo lockup (wordmark + tagline aligned to its full width) ---------- */
.dm-logo {
  display: inline-flex;
  flex-direction: column;
  width: 236px;
  container-type: inline-size;
  flex-shrink: 0;
}
.dm-logo__mark { display: block; width: 100%; height: auto; }
.dm-logo__tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.7cqw;
  font-family: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 600;
  font-size: 3.7cqw;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dm-sky);
}
.dm-logo--light .dm-logo__tag { color: #71daf7; }
.dm-logo__sep { opacity: 0.85; }
.dm-logo--footer { width: 272px; }
@media (max-width: 639px) { .dm-logo { width: 190px; } .dm-logo--footer { width: 250px; } }

/* ---------- Header ---------- */
.dm-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.dm-header__bar {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(10, 28, 51, 0.07);
  transition: box-shadow 0.4s var(--dm-ease), background-color 0.4s var(--dm-ease);
}
.dm-header.is-scrolled .dm-header__bar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(10, 28, 51, 0.04), 0 10px 30px -12px rgba(10, 28, 51, 0.18);
}
.dm-header__inner { display: flex; height: var(--dm-header-h); align-items: center; justify-content: space-between; gap: 1rem; }
.dm-header__brand { display: flex; align-items: center; border-radius: 6px; }

.dm-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1280px) { .dm-nav { display: flex; } }

/* Inactive (default) */
.dm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  color: var(--dm-slate);
  background-color: transparent;
  cursor: pointer;
  transition: color 0.25s var(--dm-ease), background-color 0.25s var(--dm-ease), box-shadow 0.25s var(--dm-ease);
}
/* Hover — feedback only */
.dm-nav-link:hover,
.dm-nav-link.is-open { color: var(--dm-ocean); background-color: var(--dm-tint); }
/* Active / current page — strongest signal */
.dm-nav-link.is-active {
  color: #fff;
  background-color: var(--dm-ocean);
  box-shadow: 0 6px 16px -6px rgba(12, 99, 174, 0.55);
}
.dm-nav-link.is-active:hover,
.dm-nav-link.is-active.is-open { color: #fff; background-color: var(--dm-ocean-dark); }
.dm-nav-link:focus-visible,
.dm-mnav-link:focus-visible,
.dm-mnav-sub:focus-visible,
.dm-mega__link:focus-visible,
.dm-foot-link:focus-visible,
.dm-side-link:focus-visible,
.dm-burger:focus-visible { outline: 2px solid var(--dm-sky); outline-offset: 2px; }
.dm-nav-caret { width: 0.875rem; height: 0.875rem; transition: transform 0.3s var(--dm-ease); }

/* Services mega menu */
.dm-mega {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--dm-line);
  background: #fff;
  box-shadow: 0 2px 4px rgba(10, 28, 51, 0.05), 0 28px 56px -20px rgba(10, 28, 51, 0.28);
}
.dm-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 1rem; padding: 1.1rem; }
.dm-mega__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.85rem; border-radius: 10px;
  border-left: 3px solid transparent;
  font-size: 0.875rem; font-weight: 600; color: var(--dm-slate);
  transition: color 0.25s var(--dm-ease), background-color 0.25s var(--dm-ease), border-color 0.25s var(--dm-ease);
}
.dm-mega__link:hover { color: var(--dm-ocean); background: var(--dm-tint-2); }
.dm-mega__link.is-active { color: var(--dm-ocean); background: var(--dm-tint); border-left-color: var(--dm-ocean); font-weight: 700; }
.dm-mega__arrow { width: 0.875rem; height: 0.875rem; opacity: 0; transform: translateX(-4px); transition: all 0.25s var(--dm-ease); }
.dm-mega__link:hover .dm-mega__arrow, .dm-mega__link.is-active .dm-mega__arrow { opacity: 1; transform: none; }
.dm-mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--dm-tint-2); border-top: 1px solid var(--dm-line); padding: 0.9rem 1.5rem; font-size: 0.75rem; font-weight: 600; color: var(--dm-muted); }
.dm-mega__all { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dm-ocean); transition: color 0.25s; }
.dm-mega__all:hover { color: var(--dm-navy); }

/* Burger */
.dm-burger {
  display: inline-flex; height: 44px; width: 44px; align-items: center; justify-content: center;
  border-radius: 9999px; color: var(--dm-ink);
  transition: background-color 0.25s var(--dm-ease), color 0.25s var(--dm-ease);
}
.dm-burger:hover { background: var(--dm-tint); color: var(--dm-ocean); }
.dm-burger[aria-expanded="true"] { background: var(--dm-ocean); color: #fff; }
@media (min-width: 1280px) { .dm-burger { display: none; } }

/* Mobile menu */
.dm-mobile {
  position: fixed; inset: var(--dm-header-h) 0 0 0; z-index: 40; overflow-y: auto;
  background: #fff; border-top: 1px solid var(--dm-line);
}
@media (min-width: 1280px) { .dm-mobile { display: none; } }
.dm-mnav-group { border-bottom: 1px solid var(--dm-line); }
.dm-mnav-link {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  margin: 4px 0; padding: 0.85rem 1rem; border-radius: 12px;
  border-left: 4px solid transparent;
  text-align: left; font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif;
  font-size: 1.15rem; font-weight: 800; color: var(--dm-ink);
  transition: color 0.25s var(--dm-ease), background-color 0.25s var(--dm-ease), border-color 0.25s var(--dm-ease);
}
a.dm-mnav-link { border-bottom: 0; }
.dm-mnav-link:hover { color: var(--dm-ocean); background: var(--dm-tint-2); }
.dm-mnav-link.is-active { color: var(--dm-ocean); background: var(--dm-tint); border-left-color: var(--dm-ocean); }
.dm-mnav-link .dm-nav-caret { width: 1.25rem; height: 1.25rem; color: var(--dm-ocean); }
.dm-mnav-sub {
  display: block; margin: 2px 0 2px 1rem; padding: 0.6rem 0.9rem; border-radius: 10px;
  border-left: 3px solid transparent;
  font-size: 0.9rem; font-weight: 600; color: var(--dm-slate);
  transition: color 0.25s var(--dm-ease), background-color 0.25s var(--dm-ease), border-color 0.25s var(--dm-ease);
}
.dm-mnav-sub:hover { color: var(--dm-ocean); background: var(--dm-tint-2); }
.dm-mnav-sub.is-active { color: var(--dm-ocean); background: var(--dm-tint); border-left-color: var(--dm-ocean); font-weight: 700; }
.dm-mobile__contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.875rem; font-weight: 600; color: var(--dm-slate); }
.dm-mobile__contact a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.25s; }
.dm-mobile__contact a:hover { color: var(--dm-ocean); }

/* ---------- Home hero: lighter veil ---------- */
.dm-hero-veil { background: linear-gradient(90deg, rgba(3, 30, 70, 0.74) 0%, rgba(3, 30, 70, 0.42) 48%, rgba(3, 30, 70, 0.06) 100%); }
.dm-hero-veil2 { background: linear-gradient(0deg, rgba(3, 30, 70, 0.45) 0%, rgba(3, 30, 70, 0) 38%); }

/* ---------- Inner page heroes: light ---------- */
.dm-pagehero { background: #f4f8fc; }
.dm-pagehero__img { opacity: 1; }
.dm-pagehero__veil {
  background:
    linear-gradient(90deg, #f6f9fd 0%, rgba(246, 249, 253, 0.96) 36%, rgba(246, 249, 253, 0.7) 58%, rgba(246, 249, 253, 0.12) 100%);
}
@media (max-width: 767px) {
  .dm-pagehero__veil { background: linear-gradient(180deg, rgba(246, 249, 253, 0.9), rgba(246, 249, 253, 0.97)); }
}
.dm-pagehero .text-white { color: var(--dm-ink); }
.dm-pagehero .text-white\/75 { color: var(--dm-slate); }
.dm-pagehero .text-white\/50 { color: var(--dm-muted); }
.dm-pagehero .text-marine-400 { color: var(--dm-ocean); }
.dm-pagehero .hover\:text-marine-400:hover { color: var(--dm-ocean); }

/* ---------- Statistics band: light ---------- */
.dm-stats { background: linear-gradient(180deg, #eef5fc 0%, #f7fafd 100%); border-top: 1px solid var(--dm-line); border-bottom: 1px solid var(--dm-line); }
.dm-stats .text-white { color: var(--dm-navy); }
.dm-stats .text-marine-400 { color: var(--dm-ocean); }
.dm-stats .lg\:border-white\/10 { border-color: var(--dm-line); }

.dm-floatbadge { background: linear-gradient(135deg, #0c63ae, #1590d8); }
.dm-floatbadge .text-marine-400 { color: #fff; }
.dm-floatbadge .text-white\/70 { color: rgba(255, 255, 255, 0.85); }

.dm-svc-icon { background: rgba(12, 99, 174, 0.92); color: #fff; }

/* Industries card hover → ocean, not near-black */
.dm-industry:hover { background-color: var(--dm-ocean) !important; border-color: var(--dm-ocean) !important; }
.dm-industry-fill { background-color: var(--dm-ocean); }
.group:hover .dm-tech-icon { background-color: var(--dm-ocean) !important; color: #fff !important; }

/* Home project cards: softer veil */
.dm-card-veil { background: linear-gradient(0deg, rgba(3, 30, 70, 0.86) 0%, rgba(3, 30, 70, 0.25) 55%, rgba(3, 30, 70, 0) 100%); }
.dm-card-bg { background-color: #0c3c6e; }

/* CTA band: bright ocean instead of navy */
.dm-cta-veil { background: linear-gradient(90deg, rgba(10, 85, 150, 0.94) 0%, rgba(12, 99, 174, 0.8) 50%, rgba(21, 144, 216, 0.45) 100%); }

/* Mission / Vision */
.dm-vision { background: linear-gradient(135deg, #0a83af 0%, #12a4c9 100%); }

/* ---------- Footer: light ---------- */
.dm-footer { background: linear-gradient(180deg, #f2f7fc 0%, #e9f1f9 100%); color: var(--dm-ink); border-top: 1px solid var(--dm-line); }
.dm-footer .text-white { color: var(--dm-ink); }
.dm-footer .text-white\/70, .dm-footer .text-white\/60 { color: var(--dm-slate); }
.dm-footer .text-white\/50 { color: var(--dm-muted); }
.dm-footer .text-marine-400 { color: var(--dm-ocean); }
.dm-footer .hover\:text-marine-400:hover { color: var(--dm-ocean); }
.dm-footer .border-white\/15 { border-color: #c9d6e3; background: #fff; }
.dm-footer .hover\:border-marine-400:hover { border-color: var(--dm-ocean); color: var(--dm-ocean); }
.dm-footer .border-white\/10 { border-color: #d5e0ea; }
.dm-foot-link {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  font-size: 0.875rem; font-weight: 600; color: var(--dm-slate);
  transition: color 0.25s var(--dm-ease), padding 0.25s var(--dm-ease);
}
.dm-foot-link::before {
  content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--dm-ocean);
  transition: width 0.25s var(--dm-ease), margin 0.25s var(--dm-ease);
}
.dm-foot-link:hover { color: var(--dm-ocean); }
.dm-foot-link.is-active { color: var(--dm-navy); font-weight: 800; }
.dm-foot-link.is-active::before { width: 12px; margin-right: 0.5rem; }

/* ---------- Quote modal ---------- */
.dm-overlay { background: rgba(6, 24, 48, 0.45); }
.dm-modal-head { background: linear-gradient(180deg, #f2f7fc, #eaf2fa); }
.dm-modal-head .text-white { color: var(--dm-ink); }
.dm-modal-head .text-marine-400 { color: var(--dm-ocean); }
.dm-modal-head .text-white\/70 { color: var(--dm-slate); }

/* ---------- About: "What we do" ---------- */
.dm-whatwedo {
  position: relative;
  display: grid; grid-template-columns: 11rem 1fr; margin-top: 2rem;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, #eaf5fd 0%, #f2fbfd 55%, #fff5ec 100%);
  box-shadow: 0 1px 2px rgba(10, 28, 51, 0.05), 0 18px 40px -22px rgba(12, 99, 174, 0.55);
  isolation: isolate;
}
.dm-whatwedo::before {
  content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1.5px; z-index: -1;
  background: linear-gradient(120deg, #0c63ae, #12b5c9 50%, #e56f22);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.dm-whatwedo__label {
  display: flex; flex-direction: column; justify-content: center; gap: 0.6rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(150deg, #0c63ae 0%, #0a83af 55%, #12a9c4 100%);
  color: #fff; font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; line-height: 1.1;
}
.dm-whatwedo__icon {
  display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #fff;
}
.dm-whatwedo__text {
  position: relative; display: flex; align-items: center;
  padding: 1.25rem 1.5rem 1.25rem 1.6rem;
  color: var(--dm-ink); font-weight: 700; font-size: 1.05rem; line-height: 1.55;
}
.dm-whatwedo__text::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #e56f22, #f59e0b);
}
@media (max-width: 560px) {
  .dm-whatwedo { grid-template-columns: 1fr; }
  .dm-whatwedo__label { flex-direction: row; align-items: center; justify-content: flex-start; }
  .dm-whatwedo__text::before { left: 1.5rem; right: auto; top: 0; bottom: auto; width: 40px; height: 3px; border-radius: 0 0 3px 3px; }
}

/* ---------- Projects: Project Experience cards ---------- */
.dm-proj { border: 1px solid var(--dm-line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 28, 51, 0.04); transition: box-shadow 0.4s var(--dm-ease), transform 0.4s var(--dm-ease); }
.dm-proj:hover { box-shadow: 0 2px 4px rgba(10, 28, 51, 0.05), 0 22px 44px -18px rgba(10, 28, 51, 0.22); transform: translateY(-3px); }
.dm-proj__badge { position: absolute; left: 14px; top: 14px; border-radius: 9999px; background: rgba(255, 255, 255, 0.95); padding: 0.35rem 0.8rem; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dm-ocean); box-shadow: 0 4px 12px rgba(10, 28, 51, 0.15); }
.dm-proj__eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dm-sky); }
.dm-proj__facts { margin-top: 1.1rem; border-top: 1px solid var(--dm-line); }
.dm-proj__row { display: grid; grid-template-columns: 6.75rem 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--dm-line); font-size: 0.875rem; line-height: 1.5; }
.dm-proj__row dt { font-weight: 800; color: var(--dm-ink); }
.dm-proj__row dd { color: var(--dm-slate); }

/* ---------- Admin sidebar (same nav-state language) ---------- */
.dm-admin-aside { background: #fff; border-right: 1px solid var(--dm-line); }
.dm-admin-aside .text-white { color: var(--dm-ink); }
.dm-admin-aside .border-navy-800 { border-color: var(--dm-line); }
.dm-admin-aside .text-marine-400 { color: var(--dm-ocean); }
.dm-admin-aside .hover\:text-white:hover { color: var(--dm-ocean); }
.dm-side-link {
  display: block; width: 100%; margin: 1px 0; padding: 0.5rem 0.75rem; border-radius: 8px;
  border-left: 3px solid transparent; text-align: left;
  font-size: 0.875rem; font-weight: 600; color: var(--dm-slate);
  transition: color 0.25s var(--dm-ease), background-color 0.25s var(--dm-ease), border-color 0.25s var(--dm-ease);
}
.dm-side-link:hover { color: var(--dm-ocean); background: var(--dm-tint-2); }
.dm-side-link.is-active { color: #fff; background: var(--dm-ocean); border-left-color: var(--dm-navy); box-shadow: 0 6px 16px -8px rgba(12, 99, 174, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .dm-nav-link, .dm-mnav-link, .dm-mnav-sub, .dm-mega__link, .dm-foot-link, .dm-side-link, .dm-proj { transition: none; }
}
.dm-industry:hover .group-hover\:text-marine-400 { color: #fff; }

/* Footer legal line + credit */
.dm-foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem; }
.dm-poweredby { display: inline-flex; align-items: center; gap: 0.3rem; padding-left: 1.5rem; border-left: 1px solid #c9d6e3; }
.dm-poweredby a { font-weight: 800; color: var(--dm-ocean); transition: color 0.25s var(--dm-ease); }
.dm-poweredby a:hover { color: #e56f22; }
@media (max-width: 639px) { .dm-poweredby { padding-left: 0; border-left: 0; width: 100%; justify-content: center; } }

/* ---------- Footer legal links + red credit ---------- */
.dm-foot-legal__link { position: relative; transition: color 0.25s var(--dm-ease); }
.dm-foot-legal__link:hover { color: var(--dm-ocean); }
.dm-foot-legal__link.is-active { color: var(--dm-navy); font-weight: 800; }
.dm-foot-legal__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--dm-ocean); }
.dm-poweredby a { color: #d32f2f !important; }
.dm-poweredby a:hover { color: #a61b1b !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Project summary ---------- */
.dm-proj__summary { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: var(--dm-slate); }

/* ---------- Legal pages ---------- */
.dm-legal { max-width: 52rem; color: var(--dm-slate); font-size: 1rem; line-height: 1.75; }
.dm-legal__meta { display: inline-flex; border-radius: 9999px; background: var(--dm-tint); padding: 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--dm-ocean); }
.dm-legal__lead { margin-top: 1.5rem; font-size: 1.08rem; color: var(--dm-ink); }
.dm-legal__toc { margin: 2rem 0 1rem; padding: 1.25rem 1.5rem; border: 1px solid var(--dm-line); border-radius: 14px; background: var(--dm-tint-2); }
.dm-legal__toc > p { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dm-sky); margin-bottom: 0.6rem; }
.dm-legal__toc ol { columns: 2; column-gap: 2rem; list-style: decimal; padding-left: 1.2rem; font-size: 0.9rem; }
.dm-legal__toc li { margin: 0.2rem 0; break-inside: avoid; }
.dm-legal__toc a { color: var(--dm-slate); font-weight: 600; transition: color 0.2s; }
.dm-legal__toc a:hover { color: var(--dm-ocean); }
.dm-legal__sec { padding-top: 2rem; scroll-margin-top: 110px; }
.dm-legal__sec h2 { font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--dm-ink); margin-bottom: 0.6rem; }
.dm-legal__sec p + p { margin-top: 0.75rem; }
.dm-legal__sec ul { margin: 0.75rem 0; padding-left: 1.25rem; list-style: disc; }
.dm-legal__sec li { margin: 0.35rem 0; }
.dm-legal__sec li::marker { color: var(--dm-ocean); }
@media (max-width: 639px) { .dm-legal__toc ol { columns: 1; } }

/* ==========================================================================
   Motion — subtle, technical, never in the way
   ========================================================================== */
@keyframes dm-scan { 0% { transform: translateY(-10%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(110vh); opacity: 0; } }
@keyframes dm-sonar { 0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.55; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes dm-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes dm-flow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes dm-drift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 56px 56px, 56px 56px; } }
@keyframes dm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63, 208, 224, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(63, 208, 224, 0); } }

/* Hero: sonar rings + scanning line */
.dm-hero::before, .dm-hero::after { content: ""; position: absolute; pointer-events: none; z-index: 5; }
.dm-hero::before {
  left: 78%; top: 55%; width: 70vmin; height: 70vmin; border-radius: 50%;
  border: 1px solid rgba(123, 227, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(123, 227, 238, 0.08) inset;
  animation: dm-sonar 5.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.dm-hero::after {
  left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 227, 238, 0.0) 10%, rgba(123, 227, 238, 0.65) 50%, rgba(123, 227, 238, 0) 90%, transparent);
  box-shadow: 0 0 18px 2px rgba(63, 208, 224, 0.35);
  animation: dm-scan 7s linear infinite;
}

/* Primary buttons: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-120%) skewX(-18deg); }
.btn-primary:hover::after { animation: dm-sheen 0.9s var(--dm-ease); }

/* Active nav pill: soft live pulse */
.dm-nav-link.is-active { animation: dm-pulse 2.8s ease-in-out infinite; }

/* "What we do": flowing gradient outline */
.dm-whatwedo::before { background-size: 200% 100%; background-image: linear-gradient(90deg, #0c63ae, #12b5c9, #e56f22, #12b5c9, #0c63ae); animation: dm-flow 6s linear infinite; }

/* Page hero accent line flows */
.dm-pagehero > div[aria-hidden="true"].h-1 { background-size: 200% 100%; animation: dm-flow 5s linear infinite; }

/* Statistics band: drifting survey grid */
.dm-stats > div[aria-hidden="true"]:first-child { animation: dm-drift 12s linear infinite; }

/* Cards: light sweep across imagery on hover */
.dm-proj > div:first-child::after,
.shadow-card > div:first-child::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: translateX(-140%) skewX(-18deg); }
.dm-proj:hover > div:first-child::after,
.shadow-card:hover > div:first-child::after { animation: dm-sheen 1s var(--dm-ease); }
.dm-proj:hover { box-shadow: 0 0 0 1px rgba(18, 181, 201, 0.35), 0 22px 44px -18px rgba(12, 99, 174, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .dm-hero::before, .dm-hero::after, .dm-nav-link.is-active, .dm-whatwedo::before,
  .dm-pagehero > div[aria-hidden="true"].h-1, .dm-stats > div[aria-hidden="true"]:first-child,
  .btn-primary:hover::after, .dm-proj:hover > div:first-child::after, .shadow-card:hover > div:first-child::after { animation: none !important; }
}

/* ---------- Home "Who We Are": compact ---------- */
.dm-intro { padding: 3.5rem 0; }
@media (min-width: 640px) { .dm-intro { padding: 4.5rem 0; } }
@media (min-width: 1024px) {
  .dm-intro { padding: 5rem 0; }
  .dm-intro > .shell { gap: 3.5rem; grid-template-columns: 1.15fr 0.85fr; }
}
.dm-intro h2 { margin-top: 1rem; }
.dm-intro .space-y-4 > * + * { margin-top: 0.75rem; }
.dm-intro .dm-whatwedo { margin-top: 1.5rem; }
.dm-intro dl { margin-top: 1.5rem; padding: 1.1rem 0; }
.dm-intro .btn-primary { margin-top: 1.5rem; }
.dm-intro__media { max-width: 400px; }
.dm-intro__img { aspect-ratio: 4 / 5; border-radius: 14px; }
@media (max-width: 1023px) { .dm-intro__media { max-width: 520px; margin: 0 auto; } .dm-intro__img { aspect-ratio: 16 / 10; } }
.dm-intro .space-y-4 { font-size: 1rem; line-height: 1.7; margin-top: 1.1rem; }
.dm-intro .dm-whatwedo__label { padding: 0.9rem 1.1rem; font-size: 1.05rem; }
.dm-intro .dm-whatwedo__text { padding: 0.9rem 1.25rem 0.9rem 1.4rem; font-size: 0.98rem; }
.dm-intro dl dd { font-size: 1.9rem; }
@media (min-width: 1024px) { .dm-intro__media { max-width: 380px; } }

/* ==========================================================================
   Navigation states — lighter active highlight (V12)
   inactive: neutral slate · hover: faint wash + blue text · active: light sky
   tint + soft outline + underline bar (strongest, but light and on-brand)
   ========================================================================== */
.dm-nav-link:hover,
.dm-nav-link.is-open { color: var(--dm-ocean); background-color: #f3f8fc; }
.dm-nav-link.is-active,
.dm-nav-link.is-active:hover,
.dm-nav-link.is-active.is-open {
  color: #0a5f9e;
  background: linear-gradient(180deg, #eaf6fe 0%, #dbeffc 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 131, 175, 0.22);
  animation: none;
}
.dm-nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #0c63ae, #12b5c9); transform: translateX(-50%);
  transition: width 0.3s var(--dm-ease);
}
.dm-nav-link.is-active::after { width: 18px; }

/* Services menu + mobile menu: same light active treatment */
.dm-mega__link.is-active,
.dm-mnav-link.is-active,
.dm-mnav-sub.is-active {
  color: #0a5f9e;
  background: linear-gradient(180deg, #eaf6fe 0%, #dbeffc 100%);
  border-left-color: #12a9c4;
  box-shadow: inset 0 0 0 1px rgba(10, 131, 175, 0.16);
}
.dm-mega__link:hover:not(.is-active),
.dm-mnav-link:hover:not(.is-active),
.dm-mnav-sub:hover:not(.is-active) { background: #f3f8fc; color: var(--dm-ocean); }
.dm-burger[aria-expanded="true"] { background: #dbeffc; color: #0a5f9e; }

/* CMS sidebar: same language */
.dm-side-link.is-active { color: #0a5f9e; background: linear-gradient(180deg, #eaf6fe, #dbeffc); border-left-color: #12a9c4; box-shadow: inset 0 0 0 1px rgba(10, 131, 175, 0.16); }

/* V13 — faded active state */
.dm-nav-link:hover:not(.is-active),
.dm-nav-link.is-open:not(.is-active) { color: var(--dm-ocean); background-color: transparent; }
.dm-nav-link.is-active,
.dm-nav-link.is-active:hover,
.dm-nav-link.is-active.is-open {
  color: #2b78ad;
  background: rgba(18, 169, 196, 0.07);
  box-shadow: inset 0 0 0 1px rgba(10, 131, 175, 0.1);
}
.dm-nav-link.is-active::after { opacity: 0.55; width: 16px; }
.dm-mega__link.is-active,
.dm-mnav-link.is-active,
.dm-mnav-sub.is-active {
  color: #2b78ad;
  background: rgba(18, 169, 196, 0.07);
  border-left-color: rgba(18, 169, 196, 0.5);
  box-shadow: none;
}
.dm-mega__link:hover:not(.is-active),
.dm-mnav-link:hover:not(.is-active),
.dm-mnav-sub:hover:not(.is-active) { background: transparent; color: var(--dm-ocean); }
.dm-burger[aria-expanded="true"] { background: rgba(18, 169, 196, 0.08); color: #2b78ad; }
.dm-side-link.is-active { color: #2b78ad; background: rgba(18, 169, 196, 0.07); border-left-color: rgba(18, 169, 196, 0.5); box-shadow: none; }
.dm-foot-legal__link.is-active, .dm-foot-link.is-active { color: #2b78ad; }

/* V14 — current page: transparent wash only, no edges */
.dm-nav-link.is-active,
.dm-nav-link.is-active:hover,
.dm-nav-link.is-active.is-open {
  color: #2f7fb3;
  background: rgba(18, 169, 196, 0.045);
  box-shadow: none;
}
.dm-nav-link.is-active::after { display: none; }
.dm-mega__link.is-active,
.dm-mnav-link.is-active,
.dm-mnav-sub.is-active,
.dm-side-link.is-active {
  color: #2f7fb3;
  background: rgba(18, 169, 196, 0.045);
  border-left-color: transparent;
  box-shadow: none;
}
.dm-burger[aria-expanded="true"] { background: rgba(18, 169, 196, 0.05); }
.dm-foot-link.is-active::before { display: none; }
.dm-foot-link.is-active::before, .dm-foot-legal__link.is-active::after { display: none; }
