/* ==========================================================================
   Marine — WordPress layer (menus, slider, reveal, core services, content,
   pop-up, Elementor). Builds on tailwind.css + marine.css.
   ========================================================================== */

/* Admin bar offset for the fixed header */
.admin-bar .dm-header { top: 32px; }
.admin-bar .dm-mobile { top: calc(var(--dm-header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .dm-header { top: 46px; }
  .admin-bar .dm-mobile { top: calc(var(--dm-header-h) + 46px); }
}
@media (max-width: 600px) { .admin-bar .dm-header { top: 0; } #wpadminbar { position: fixed; } }

.skip-link:focus { position: fixed !important; left: 12px; top: 12px; z-index: 999; width: auto; height: auto; clip: auto; padding: 0.75rem 1rem; background: #fff; color: var(--dm-ink); box-shadow: 0 8px 24px rgba(10,28,51,.2); }

/* Services mega menu */
.dm-has-mega { position: relative; }
.dm-mega-wrap {
  position: absolute; left: 50%; top: 100%; width: 640px; padding-top: 0.75rem; z-index: 60;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity 0.22s var(--dm-ease), transform 0.22s var(--dm-ease), visibility 0.22s;
}
.dm-has-mega.is-open .dm-mega-wrap { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dm-has-mega.is-open .dm-nav-caret,
.dm-mnav-link[aria-expanded="true"] .dm-nav-caret { transform: rotate(180deg); }

/* Burger icon swap */
.dm-burger__close { display: none; }
.dm-burger[aria-expanded="true"] .dm-burger__open { display: none; }
.dm-burger[aria-expanded="true"] .dm-burger__close { display: block; }
.dm-mobile[hidden] { display: none; }
.dm-mobile.is-open { animation: dm-fade 0.3s var(--dm-ease); }
.dm-mobile .dm-mnav-link, .dm-mobile .dm-mnav-group { animation: dm-slide-in 0.4s var(--dm-ease) both; }
.dm-mnav-list { margin: 0; padding: 0; list-style: none; }
body.dm-lock { overflow: hidden; }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

/* Hero slider */
.dm-slide { opacity: 0; visibility: hidden; transition: opacity 1s var(--dm-ease), visibility 1s; }
.dm-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.dm-slide__img { transform: scale(1.08); transition: transform 8s linear; }
.dm-slide.is-active .dm-slide__img { transform: scale(1); }
.dm-slide__copy > * { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--dm-ease), transform 0.8s var(--dm-ease); }
.dm-slide.is-active .dm-slide__copy > * { opacity: 1; transform: none; }
.dm-slide.is-active .dm-slide__copy > *:nth-child(2) { transition-delay: 0.12s; }
.dm-slide.is-active .dm-slide__copy > *:nth-child(3) { transition-delay: 0.24s; }
.dm-slide.is-active .dm-slide__copy > *:nth-child(4) { transition-delay: 0.36s; }
.dm-hero [data-dot] .dm-dot-fill { width: 0; }
.dm-hero [data-dot][aria-selected="true"] .dm-dot-fill { animation: dm-dot var(--dm-hero-delay, 7s) linear forwards; }
.dm-hero.is-paused [data-dot][aria-selected="true"] .dm-dot-fill { animation-play-state: paused; }
.dm-hero:not([data-autoplay]) [data-dot][aria-selected="true"] .dm-dot-fill,
.dm-hero[data-autoplay="0"] [data-dot][aria-selected="true"] .dm-dot-fill { animation: none; width: 100%; }
@keyframes dm-dot { from { width: 0; } to { width: 100%; } }

/* Reveal on scroll (only when JS is running; content stays visible otherwise) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--dm-ease), transform 0.8s var(--dm-ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.elementor-editor-active [data-reveal], .elementor-editor-preview [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Our Core Services */
.dm-core__grid { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .dm-core__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.dm-core__card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: #fff; border: 1px solid var(--dm-line);
  box-shadow: 0 1px 2px rgba(10, 28, 51, 0.04), 0 18px 40px -26px rgba(12, 99, 174, 0.35);
  transition: transform 0.5s var(--dm-ease), box-shadow 0.5s var(--dm-ease);
}
.dm-core__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 2; background: linear-gradient(90deg, #0c63ae, #12b5c9, #e56f22); background-size: 200% 100%; animation: dm-flow 6s linear infinite; }
.dm-core__card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(18, 181, 201, 0.3), 0 26px 50px -24px rgba(12, 99, 174, 0.45); }
.dm-core__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.dm-core__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--dm-ease); }
.dm-core__card:hover .dm-core__media img { transform: scale(1.05); }
.dm-core__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 30, 70, 0.55), rgba(3, 30, 70, 0) 60%); }
.dm-core__icon { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 2; display: flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #0c63ae, #0a83af 55%, #12a9c4); box-shadow: 0 10px 24px -10px rgba(12, 99, 174, 0.8); }
.dm-core__num { position: absolute; right: 1rem; top: 0.9rem; z-index: 2; font-family: "Cabinet Grotesk", Manrope, sans-serif; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.85); }
.dm-core__body { display: flex; flex: 1; flex-direction: column; padding: 1.6rem 1.6rem 1.6rem; }
.dm-core__title { font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dm-ink); }
.dm-core__title a { transition: color 0.25s; }
.dm-core__title a:hover { color: var(--dm-ocean); }
.dm-core__desc { margin-top: 0.6rem; font-size: 0.95rem; font-weight: 600; line-height: 1.6; color: var(--dm-slate); }
.dm-core__list { margin: 1.1rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--dm-line); display: grid; gap: 0.6rem; }
.dm-core__list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.875rem; line-height: 1.45; color: var(--dm-ink); }
.dm-core__tick { margin-top: 0.1rem; display: inline-flex; width: 1.15rem; height: 1.15rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 5px; color: var(--dm-ocean); background: rgba(12, 99, 174, 0.1); }
.dm-core__more { margin-top: auto; padding-top: 1.4rem; }
.dm-core.bg-ice-50 .dm-core__card { border-color: #d7e5f2; }

/* Article / page content */
.dm-prose { color: var(--dm-slate); font-size: 1.05rem; line-height: 1.8; }
.dm-prose > * + * { margin-top: 1.25em; }
.dm-prose h2, .dm-prose h3, .dm-prose h4 { font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; color: var(--dm-ink); font-weight: 800; line-height: 1.25; margin-top: 2em; }
.dm-prose h2 { font-size: 1.75rem; } .dm-prose h3 { font-size: 1.35rem; } .dm-prose h4 { font-size: 1.1rem; }
.dm-prose a { color: var(--dm-ocean); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dm-prose a:hover { color: var(--dm-navy); }
.dm-prose ul, .dm-prose ol { padding-left: 1.4rem; } .dm-prose ul { list-style: disc; } .dm-prose ol { list-style: decimal; }
.dm-prose li + li { margin-top: 0.4em; } .dm-prose li::marker { color: var(--dm-ocean); }
.dm-prose blockquote { border-left: 3px solid var(--dm-sky); background: var(--dm-tint-2); padding: 1rem 1.4rem; font-weight: 600; color: var(--dm-ink); }
.dm-prose img, .dm-prose figure { max-width: 100%; height: auto; border-radius: 10px; }
.dm-prose figcaption, .wp-caption-text { margin-top: 0.5rem; font-size: 0.85rem; color: var(--dm-muted); text-align: center; }
.dm-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dm-prose th, .dm-prose td { border: 1px solid var(--dm-line); padding: 0.6rem 0.8rem; text-align: left; }
.dm-prose th { background: var(--dm-tint-2); color: var(--dm-ink); }
.dm-prose code { background: var(--dm-tint-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
.dm-prose strong { color: var(--dm-ink); }
.dm-prose-lite > * + * { margin-top: 1.25rem; }
.dm-prose-lite a { color: var(--dm-ocean); font-weight: 700; }
.dm-legal__body 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__body p + p { margin-top: 0.75rem; }
.dm-legal__body ul { margin: 0.75rem 0; padding-left: 1.25rem; list-style: disc; }
.dm-legal__body li { margin: 0.35rem 0; } .dm-legal__body li::marker { color: var(--dm-ocean); }
.dm-legal__lead-wrap > p:first-child { margin-top: 1.5rem; font-size: 1.08rem; color: var(--dm-ink); }
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; } .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.sticky, .bypostauthor, .gallery-caption, .wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Pagination */
.dm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.dm-pagination a, .dm-pagination span { display: inline-flex; min-width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; padding: 0 0.9rem; border: 1px solid var(--dm-line); border-radius: 9999px; font-size: 0.875rem; font-weight: 700; color: var(--dm-slate); transition: all 0.25s var(--dm-ease); }
.dm-pagination a:hover { color: var(--dm-ocean); background: #f3f8fc; }
.dm-pagination .current { color: #2f7fb3; background: rgba(18, 169, 196, 0.08); border-color: transparent; }
.dm-pagelinks { margin-top: 2rem; font-weight: 700; }

/* Quote pop-up */
.dm-quote[hidden] { display: none; }
.dm-quote.is-open { animation: dm-fade 0.3s var(--dm-ease); }
.dm-quote.is-open .dm-quote__panel { animation: dm-rise 0.45s var(--dm-ease); }
@keyframes dm-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.dm-form-success[hidden] { display: none; }

/* Forms */
.dm-invalid { border-color: #d32f2f !important; box-shadow: 0 0 0 1px #d32f2f !important; }
.dm-search .btn-primary { border-radius: 0; }

/* Elementor: let Marine sections run edge to edge */
.marine-elementor .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
.elementor-widget[class*="elementor-widget-marine-"] { margin-bottom: 0 !important; margin-block-end: 0 !important; }
.elementor-widget[class*="elementor-widget-marine-"] > .elementor-widget-container { padding: 0; margin: 0; }
.elementor-column-gap-no > .elementor-column > .elementor-element-populated:has(> .elementor-widget-wrap > [class*="elementor-widget-marine-"]) { padding: 0; }
.dm-fullwidth > .elementor { width: 100%; }
/* Pages without a banner start below the fixed header */
.dm-fullwidth > :first-child:not(.elementor), .page-template-full-width .dm-main > .dm-fullwidth > .elementor > :first-child:not(:has(.dm-hero, .dm-pagehero)) { padding-top: var(--dm-header-h); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .dm-slide__copy > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dm-slide__img { transform: none !important; transition: none !important; }
  .dm-core__card::before { animation: none; }
}

/* Utilities not present in the compiled design stylesheet */
.mb-12 { margin-bottom: 3rem; } .pb-3 { padding-bottom: 0.75rem; } .pb-8 { padding-bottom: 2rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Small phones: buttons never wider than the screen */
@media (max-width: 420px) {
	.btn-primary, .btn-outline, .btn-outline-light, .btn-ghost { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; letter-spacing: 0.08em; }
}

/* Card shine only on image cards — never on icon/text rows */
.shadow-card > div:first-child:not(.relative):not(.overflow-hidden)::after { display: none; }
@media (hover: none) { .dm-proj > div:first-child::after, .shadow-card > div:first-child::after { display: none; } }

/* Balanced grids: tile borders drawn per item, lone last card centred */
.dm-tiles > * { box-shadow: 0 0 0 1px rgb(223 231 239); }
@media (min-width: 640px) and (max-width: 1023.98px) {
	.dm-balance > :last-child:nth-child(2n+1) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.75rem); }
}
@media (min-width: 1024px) {
	.dm-balance > :last-child:nth-child(3n+1) { grid-column: 2; }
}

/* Core service cards — show the first N list items, reveal the rest on hover (mouse) or tap (touch). */
.dm-core__extra { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--dm-ease), opacity .35s ease; }
.dm-core__extra > .dm-core__list { min-height: 0; overflow: hidden; margin: 0; padding: .6rem 0 0; border-top: 0; }
.dm-core__toggle { align-self: flex-start; margin-top: .9rem; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 0; border-radius: 999px; font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--dm-ocean); background: rgba(12, 99, 174, .08); cursor: pointer; transition: background .25s, opacity .3s, max-height .35s, margin .35s, padding .35s; }
.dm-core__toggle:hover { background: rgba(12, 99, 174, .14); }
.dm-core__toggle:focus-visible { outline: 2px solid var(--dm-ocean); outline-offset: 2px; }
.dm-core__toggle svg { transition: transform .3s var(--dm-ease); }
.dm-core__card.is-open .dm-core__extra { grid-template-rows: 1fr; opacity: 1; }
.dm-core__card.is-open .dm-core__toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .dm-core__card.has-more:hover .dm-core__extra,
  .dm-core__card.has-more:focus-within .dm-core__extra { grid-template-rows: 1fr; opacity: 1; }
  .dm-core__card.has-more:hover .dm-core__toggle,
  .dm-core__card.has-more:focus-within .dm-core__toggle:not(:focus-visible) { opacity: 0; max-height: 0; margin-top: 0; padding-block: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .dm-core__extra, .dm-core__toggle, .dm-core__toggle svg { transition: none; } }

/* Core services heading — centred title, highlighted words, faint outlined watermark */
.dm-core__head { position: relative; max-width: 58rem; margin: 0 auto; padding-top: 2.5rem; text-align: center; }
.dm-core__wm { position: absolute; left: 50%; top: -2.2rem; transform: translateX(-50%); z-index: 0; pointer-events: none; user-select: none; white-space: nowrap; font: 900 clamp(5.5rem, 13vw, 9rem)/1 "Cabinet Grotesk", Manrope, system-ui, sans-serif; letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1.5px #e7eff7; }
.dm-core.bg-ice-50 .dm-core__wm { -webkit-text-stroke-color: #d9e6f2; }
.dm-core__head > :not(.dm-core__wm) { position: relative; z-index: 1; }
.dm-core__eyebrow { font: 700 .78rem/1 Manrope, system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--dm-ocean); }
.dm-core__heading { margin-top: 1.2rem; font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; color: var(--dm-ink); text-wrap: balance; }
.dm-core__heading em { font-style: normal; color: var(--dm-ocean); background: linear-gradient(90deg, #0c63ae, #12b5c9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dm-core__sub { margin: 1rem auto 0; max-width: 38rem; font-size: 1.05rem; font-weight: 500; line-height: 1.7; color: var(--dm-slate); }
@media (max-width: 639.98px) { .dm-core__br { display: none; } .dm-core__head { padding-top: 2rem; } .dm-core__wm { top: -1.2rem; } }

/* ==========================================================================
   Hero slider — "Depth Dive": the old photo zooms forward and blurs away, the
   next one comes into focus, headline letters sharpen one by one. Optional
   rising bubbles per slide.
   ========================================================================== */
.dm-hero[data-anim="depth"] .dm-slide { transition: none; }
.dm-hero[data-anim="depth"] .dm-slide.is-leaving { visibility: visible; z-index: 2; animation: dm-dive-fade 1.1s ease-in .15s both; }
.dm-hero[data-anim="depth"] .dm-slide.is-leaving .dm-slide__img { animation: dm-dive-out 1.2s cubic-bezier(.55, 0, .75, .2) both; }
.dm-hero[data-anim="depth"] .dm-slide__img { transform: none; transition: none; will-change: transform, filter; }
.dm-hero[data-anim="depth"] .dm-slide.is-active .dm-slide__img { animation: dm-dive-in 1.5s var(--dm-ease) .3s both, dm-dive-drift 9s linear 1.8s forwards; }
.dm-hero[data-anim="depth"] .dm-slide__copy > * { opacity: 1; transform: none; transition: none; }
.dm-hero[data-anim="depth"] .dm-slide.is-active .dm-slide__copy > :not(h1):not(h2) { animation: dm-dive-soft .8s ease-out both; }
.dm-hero[data-anim="depth"] .dm-slide.is-active .dm-slide__copy > :first-child:not(h1):not(h2) { animation-delay: .25s; }
.dm-hero[data-anim="depth"] .dm-slide.is-active .dm-slide__copy > p:not(:first-child):not(h1):not(h2) { animation-delay: .95s; }
.dm-hero[data-anim="depth"] .dm-slide.is-active .dm-slide__copy > div:not(h1):not(h2) { animation-delay: 1.1s; }
.dm-slide__copy .eyebrow { white-space: normal; }
@media (max-width: 479.98px) { .dm-slide__copy .eyebrow { letter-spacing: .18em; } }
.dm-hero[data-anim="depth"] .dm-slide:not(.is-active) .dm-slide__copy { opacity: 0; }
.dm-hero[data-anim="depth"] .dm-slide.is-leaving .dm-slide__copy { opacity: 1; }
.dm-hero .dm-w { display: inline-block; white-space: nowrap; }
.dm-hero .dm-ch { display: inline-block; white-space: pre; }
.dm-hero[data-anim="depth"] .dm-slide.is-active .dm-ch { animation: dm-dive-focus .7s ease-out calc(.45s + var(--i) * 22ms) both; }
@keyframes dm-dive-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes dm-dive-out { from { transform: scale(1); filter: blur(0); } to { transform: scale(1.35); filter: blur(14px); } }
@keyframes dm-dive-in { from { transform: scale(.86); filter: blur(10px) brightness(.6); } to { transform: scale(1); filter: blur(0) brightness(1); } }
@keyframes dm-dive-drift { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes dm-dive-soft { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes dm-dive-focus { from { opacity: 0; filter: blur(12px); transform: translateY(.25em) scale(1.3); } to { opacity: 1; filter: blur(0); transform: none; } }

/* Rising bubbles (only on slides that have them switched on) */
.dm-bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.dm-bubbles span { position: absolute; bottom: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .85), rgba(127, 216, 230, .28) 60%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.dm-slide.is-active .dm-bubbles span { animation: dm-bubble var(--d) ease-in var(--w) infinite; }
@keyframes dm-bubble { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .55; } 100% { transform: translate(var(--dx), calc(-100svh - 40px)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dm-hero[data-anim="depth"] .dm-slide { transition: opacity .6s ease, visibility .6s; }
  .dm-hero[data-anim="depth"] .dm-slide *, .dm-hero[data-anim="depth"] .dm-slide { animation: none !important; }
  .dm-hero[data-anim="depth"] .dm-slide.is-leaving { visibility: hidden; }
  .dm-hero[data-anim="depth"] .dm-slide:not(.is-active) .dm-slide__copy { opacity: 1; }
  .dm-bubbles { display: none; }
}

/* ==========================================================================
   Hero slider — "Sonar HUD" layout: centred copy, sonar rings, corner
   brackets, coordinate readout, depth gauge and labelled progress segments.
   ========================================================================== */
.dm-hero--sonar::before { display: none; }
.dm-hero--sonar .dm-hero-veil { background: radial-gradient(70% 70% at 50% 50%, rgba(4, 16, 34, .35), rgba(4, 16, 34, .86)); }
.dm-hero--sonar .dm-hero-veil2 { background: linear-gradient(0deg, rgba(4, 16, 34, .8), rgba(4, 16, 34, 0) 42%); }
.dm-hero--sonar .dm-slide > .shell { justify-content: center; }
.dm-hero--sonar .dm-slide__copy { max-width: 58rem; margin: 0 auto; text-align: center; padding-top: calc(var(--dm-header-h) + 1rem); padding-bottom: 5rem; }
.dm-hero--sonar .dm-slide__copy .eyebrow { justify-content: center; }
.dm-hero--sonar .dm-slide__copy .eyebrow::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.dm-hero--sonar .dm-slide__copy > p:not(:first-child) { margin-left: auto; margin-right: auto; }
.dm-hero--sonar .dm-slide__copy > div { justify-content: center; }
.dm-hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.dm-hud__ring { position: absolute; left: 50%; top: 52%; width: min(80vmin, 760px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(127, 216, 230, .35); transform: translate(-50%, -50%) scale(.2); opacity: 0; animation: dm-ping 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.dm-hud__ring:nth-child(2) { animation-delay: 1.5s; } .dm-hud__ring:nth-child(3) { animation-delay: 3s; }
@keyframes dm-ping { 0% { transform: translate(-50%, -50%) scale(.2); opacity: .8; } 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
.dm-hud__c { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(127, 216, 230, .7); }
.dm-hud__c--tl { left: 24px; top: calc(var(--dm-header-h) + 20px); border-left-width: 2px; border-top-width: 2px; }
.dm-hud__c--tr { right: 24px; top: calc(var(--dm-header-h) + 20px); border-right-width: 2px; border-top-width: 2px; }
.dm-hud__c--bl { left: 24px; bottom: 24px; border-left-width: 2px; border-bottom-width: 2px; }
.dm-hud__c--br { right: 24px; bottom: 24px; border-right-width: 2px; border-bottom-width: 2px; }
.dm-hud__read { position: absolute; top: calc(var(--dm-header-h) + 30px); font: 700 .7rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #7fd8e6; }
.dm-hud__read--l { left: 64px; } .dm-hud__read--r { right: 64px; text-align: right; }
.dm-hud__gauge { position: absolute; right: 36px; top: calc(var(--dm-header-h) + 90px); bottom: 120px; width: 12px; background: repeating-linear-gradient(to bottom, rgba(127, 216, 230, .5) 0 1px, transparent 1px 12px); }
.dm-hud__gauge b { position: absolute; right: 22px; transform: translateY(-50%); font: 700 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: #fff; white-space: nowrap; transition: top 1.4s var(--dm-ease); }
.dm-hud__gauge b::after { content: ""; position: absolute; right: -22px; top: 50%; width: 14px; height: 2px; background: #e56f22; box-shadow: 0 0 10px rgba(229, 111, 34, .8); }
.dm-hud__segs { position: absolute; z-index: 20; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 12px; }
.dm-hud__segs button { display: block; width: min(180px, 19vw); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: rgba(255, 255, 255, .55); transition: color .3s; }
.dm-hud__segs button[aria-selected="true"], .dm-hud__segs button:hover { color: #fff; }
.dm-hud__track { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.dm-hud__track .dm-dot-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #12b5c9, #e56f22); }
.dm-hud__lab { display: block; margin-top: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-hud__segs button:focus-visible { outline: 2px solid #7fd8e6; outline-offset: 4px; }
@media (max-width: 1023.98px) { .dm-hud__read, .dm-hud__gauge { display: none; } }
@media (max-width: 639.98px) {
  .dm-hud__lab { display: none; }
  .dm-hud__segs { bottom: 26px; gap: 8px; } .dm-hud__segs button { width: 18vw; padding: 10px 0; }
  .dm-hud__c { width: 20px; height: 20px; } .dm-hud__c--tl, .dm-hud__c--tr { top: calc(var(--dm-header-h) + 14px); }
  .dm-hud__c--tl, .dm-hud__c--bl { left: 14px; } .dm-hud__c--tr, .dm-hud__c--br { right: 14px; }
  .dm-hero--sonar .dm-slide__copy { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .dm-hud__ring { animation: none; opacity: 0; } .dm-hud__gauge b { transition: none; } }

/* Services mega menu — card layout when there are only a few services */
.dm-mega-wrap--rich { width: min(860px, 92vw); }
.dm-mega-wrap--rich .dm-mega__grid { grid-template-columns: repeat(var(--dm-mega-cols, 3), minmax(0, 1fr)); gap: .6rem; padding: 1rem; }
.dm-mega-wrap--rich { width: min(960px, 94vw); }
.dm-mega__card { display: flex; flex-direction: column; padding: .4rem; border-radius: 12px; border: 1px solid transparent; color: var(--dm-ink); transition: background .25s, border-color .25s; }
.dm-mega__card:hover { background: var(--dm-tint-2); border-color: var(--dm-line); }
.dm-mega__head { display: flex; flex-direction: column; gap: .5rem; padding: .6rem .6rem .7rem; border-radius: 9px; }
.dm-mega__subs { margin: .2rem 0 0; padding: .55rem 0 0; list-style: none; border-top: 1px solid var(--dm-line); }
.dm-mega__sub { display: block; padding: .32rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 600; line-height: 1.35; color: var(--dm-slate); transition: color .2s, background .2s; }
.dm-mega__sub:hover { color: var(--dm-ocean); background: rgba(12, 99, 174, .05); }
.dm-mega__sub.is-active { color: #2f7fb3; background: rgba(18, 169, 196, .07); font-weight: 700; }
.dm-mega__head:hover .dm-mega__title { color: var(--dm-ocean); }
.dm-mega__card.is-active { background: rgba(18, 169, 196, .06); border-color: rgba(18, 169, 196, .25); }
.dm-mega__icon { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: linear-gradient(150deg, #0c63ae, #0a83af 55%, #12a9c4); }
.dm-mega__title { margin-top: .2rem; font-weight: 800; font-size: .95rem; }
.dm-mega__card:hover .dm-mega__title, .dm-mega__card.is-active .dm-mega__title { color: var(--dm-ocean); }
.dm-mega__desc { font-size: .8rem; line-height: 1.5; color: var(--dm-slate); }

/* ==========================================================================
   Sub-service pages
   ========================================================================== */
.dm-sub__layout { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .dm-sub__layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.dm-sub__main { min-width: 0; }
.dm-sub__block { margin-top: 3.25rem; }
.dm-sub__h2 { font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--dm-ink); }
.dm-sub__checks { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .9rem 2rem; }
@media (min-width: 640px) { .dm-sub__checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-sub__checks li { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; font-weight: 600; line-height: 1.5; color: var(--dm-slate); }
.dm-sub__tick { margin-top: .1rem; display: inline-flex; width: 1.2rem; height: 1.2rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 5px; color: var(--dm-ocean); background: rgba(12, 99, 174, .1); }
.dm-sub__apps { margin: 1.4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.dm-sub__apps li { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid var(--dm-line); border-radius: 999px; background: #f6f9fc; font-size: .85rem; font-weight: 600; color: var(--dm-ink); }
.dm-sub__apps li svg { color: var(--dm-ocean); flex-shrink: 0; }
.dm-sub__steps { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 640px) { .dm-sub__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-sub__steps li { position: relative; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--dm-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 32px -26px rgba(12, 99, 174, .45); }
.dm-sub__num { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; color: #fff; background: linear-gradient(150deg, #0c63ae, #0a83af 55%, #12a9c4); }
.dm-sub__steps h3 { margin-top: .9rem; font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--dm-ink); }
.dm-sub__steps p { margin-top: .4rem; font-size: .88rem; line-height: 1.6; color: var(--dm-slate); }
.dm-sub__pair { display: grid; gap: 1rem; }
@media (min-width: 640px) { .dm-sub__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-sub__box { padding: 1.5rem; border-radius: 14px; background: var(--dm-tint-2, #f1f6fb); border: 1px solid var(--dm-line); }
.dm-sub__box h2 { display: flex; align-items: center; gap: .6rem; font-family: "Cabinet Grotesk", Manrope, system-ui, sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--dm-ink); }
.dm-sub__box h2 svg { color: var(--dm-ocean); }
.dm-sub__box ul { margin: 1rem 0 0; padding: 0 0 0 1.1rem; list-style: disc; display: grid; gap: .45rem; }
.dm-sub__box li { font-size: .88rem; line-height: 1.5; color: var(--dm-slate); }
.dm-sub__box li::marker { color: var(--dm-ocean); }
.dm-sub__pn { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--dm-line); display: grid; gap: 1rem; }
@media (min-width: 640px) { .dm-sub__pn { grid-template-columns: 1fr 1fr; } .dm-sub__pn a:last-child { text-align: right; } .dm-sub__pn a:last-child small { justify-content: flex-end; } }
.dm-sub__pn a { display: block; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--dm-line); transition: border-color .25s, background .25s; }
.dm-sub__pn a:hover { border-color: rgba(12, 99, 174, .35); background: #f6f9fc; }
.dm-sub__pn small { display: flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dm-ocean); }
.dm-sub__pn span { display: block; margin-top: .35rem; font-weight: 800; font-size: .95rem; color: var(--dm-ink); }
.dm-sub__aside { min-width: 0; }
@media (min-width: 1024px) { .dm-sub__aside { position: sticky; top: calc(var(--dm-header-h) + 24px); align-self: start; } }
.dm-sub__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 26px 50px -30px rgba(10, 28, 51, .55); }
.dm-sub__menu { margin-top: 1.5rem; border: 1px solid var(--dm-line); border-radius: 14px; overflow: hidden; background: #fff; }
.dm-sub__menu-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; font-weight: 800; color: var(--dm-ink); background: #f6f9fc; border-bottom: 1px solid var(--dm-line); }
.dm-sub__menu-head span { display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: linear-gradient(150deg, #0c63ae, #12a9c4); }
.dm-sub__menu-head:hover { color: var(--dm-ocean); }
.dm-sub__menu ul { margin: 0; padding: .4rem 0; list-style: none; }
.dm-sub__menu li a { display: block; padding: .6rem 1.2rem; border-left: 3px solid transparent; font-size: .86rem; font-weight: 600; line-height: 1.4; color: var(--dm-slate); transition: color .2s, background .2s; }
.dm-sub__menu li a:hover { color: var(--dm-ocean); }
.dm-sub__menu li a.is-active { color: #2f7fb3; background: rgba(18, 169, 196, .06); border-left-color: #12a9c4; font-weight: 700; }

/* Links from scope lists and core cards to sub-service pages */
.dm-core__link { color: inherit; transition: color .2s; }
.dm-core__link:hover, .dm-core__link:focus-visible { color: var(--dm-ocean); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(12, 99, 174, .35); }
.dm-scope-link { display: inline; color: inherit; transition: color .2s; }
.dm-scope-link:hover { color: var(--dm-ocean); }
.dm-scope-arrow { display: inline-block; width: .85rem; height: .85rem; margin-left: .15rem; vertical-align: -1px; color: var(--dm-ocean); opacity: .55; transition: transform .25s var(--dm-ease), opacity .25s; }
.dm-scope-link:hover .dm-scope-arrow { opacity: 1; transform: translateX(3px); }
.dm-mnav-sub--l2 { padding-left: 2.4rem !important; font-size: .84rem; opacity: .85; }
.dm-mega-wrap--rich .dm-mega { max-height: calc(100vh - var(--dm-header-h) - 40px); overflow-y: auto; }

/* "From the Field" photo strip */
.dm-field__grid { margin-top: 1.5rem; display: grid; gap: .9rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-field__item { position: relative; margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 5; background: #0a2346; }
.dm-field__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--dm-ease); }
.dm-field__item:hover img { transform: scale(1.05); }
.dm-field__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .8rem; font-size: .75rem; font-weight: 600; line-height: 1.4; color: #fff; background: linear-gradient(0deg, rgba(4, 16, 34, .85), rgba(4, 16, 34, 0)); }
@media (max-width: 639.98px) {
  .dm-field__grid { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
  .dm-field__item { scroll-snap-align: start; }
}

/* Certificates & permits strip (under client logos) */
.dm-certs { margin-top: 2.5rem; }
.dm-certs__title { text-align: center; font-size: 1rem; font-weight: 800; color: var(--dm-ink); }
.dm-certs__list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dm-certs__list li { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--dm-line); border-radius: var(--dm-radius, 10px); background: #fff; }
.dm-certs__list img { width: 3.25rem; height: 3.25rem; object-fit: contain; flex-shrink: 0; }
.dm-certs__icon { display: inline-flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; color: var(--dm-ocean); background: rgba(12, 99, 174, .08); }
.dm-certs__list strong { display: block; font-size: .92rem; color: var(--dm-ink); line-height: 1.35; }
.dm-certs__list small { display: block; margin-top: .15rem; font-size: .78rem; color: var(--dm-slate); }

/* Phone action bar: Call / Request a Quote, always in reach on small screens */
.dm-actionbar { display: none; }
@media (max-width: 767.98px) {
  .dm-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1.35fr; gap: .5rem; padding: .55rem max(.75rem, env(safe-area-inset-right, 0px)) calc(.55rem + env(safe-area-inset-bottom, 0px)) max(.75rem, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--dm-line); box-shadow: 0 -10px 30px -18px rgba(10, 28, 51, .35); transition: transform .3s var(--dm-ease); }
  .dm-actionbar a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border-radius: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .dm-actionbar__call { color: var(--dm-ink); border: 1px solid #c9d7e6; background: #fff; }
  .dm-actionbar__quote { color: #fff; background: linear-gradient(135deg, #e56f22, #f08a3e); }
  .dm-actionbar__quote:only-child { grid-column: 1 / -1; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body.dm-lock .dm-actionbar { transform: translateY(110%); }
}

/* ==========================================================================
   One typeface, one corner style
   Manrope everywhere (the logo tagline keeps its own face), sentence-case
   headings, and a single 10px radius for cards, panels, images and buttons.
   ========================================================================== */
:root { --dm-radius: 10px; --dm-radius-inner: 10px; --dm-radius-sm: 10px; }
.font-display, .dm-core__title, .dm-core__heading, .dm-sub__h2, .dm-sub__steps h3, .dm-sub__box h2, .dm-prose h2, .dm-prose h3, .dm-prose h4, .dm-legal__body h2 { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.015em; }
.dm-core__title { text-transform: none; letter-spacing: -0.01em; font-size: 1.35rem; }
.dm-core__card, .dm-sub__steps li, .dm-sub__box, .dm-sub__img, .dm-sub__menu, .dm-sub__pn a, .dm-field__item, .dm-mega, .dm-mega__card, .dm-mega__head, .dm-certs__list li, .shadow-card, .dm-proj { border-radius: var(--dm-radius); }
.btn-primary, .btn-outline, .btn-outline-light, .btn-outline-dark, .btn-ghost, .dm-actionbar a { border-radius: var(--dm-radius) !important; }
/* Hairline tile grids become separate rounded cards */
.grid.gap-px.bg-ice-200 { gap: 1rem; background: transparent; border: 0; }
.grid.gap-px.bg-ice-200 > * { border-radius: var(--dm-radius); overflow: hidden; box-shadow: 0 0 0 1px rgb(223 231 239); background: #fff; }
.dm-tiles { gap: 1.25rem !important; }
.dm-tiles > * { border-radius: var(--dm-radius); overflow: hidden; }
