/* ═══════════════════════════════════════════════════════════════
   DIGITAL HANDS — SITE CSS
   Shared across all pages. Single source of truth.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fonts ─── */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/SourceSans3-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/SourceSans3-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/SourceSans3-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/SourceSans3-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* ─── Tokens ─── */
:root {
  --navy: #051A39;
  --navy-deep: #020D1F;
  --navy-mid: #0A2547;
  --accent: #29D9A5;
  --accent-on-light: #29D9A5;
  --pillar-id: #29D9A5;     /* IDPM — green */
  --pillar-ai: #C792FF;     /* AISPM — purple */
  --pillar-cl: #5BD1FF;     /* CSDPM — blue */
  --pillar-tm: #FFB547;     /* TEM — amber */
  --light-bg: #f7f8fa;
  --light-divider: #E5E9EF;
  --text-light: #4B5563;
  --text-muted: #6B7280;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* ─── Layout primitives ─── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: 1440px; }
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--navy); color: #fff; }
.section-light { background: #fff; color: var(--navy); }
.section-grey { background: var(--light-bg); color: var(--navy); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #717B8A;
}
.section-light .eyebrow, .section-grey .eyebrow { color: #717B8A; }
.section-light .eyebrow.eyebrow-navy, .section-grey .eyebrow.eyebrow-navy { color: #717B8A; }

h1, .h1 { font-size: clamp(40px, 5.4vw, 84px); line-height: 0.98; letter-spacing: -0.03em; }
h2, .h2 { font-size: 42px; line-height: 1.02; letter-spacing: -0.025em; }
h3, .h3 { font-size: 24px; font-weight: 600; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
h4, .h4 { font-size: clamp(18px, 1.4vw, 22px); }

.accent-text { color: var(--accent); }
.section-light .accent-text, .section-grey .accent-text { color: var(--accent-on-light); }
.muted { color: rgba(255,255,255,0.65); }
.section-light .muted, .section-grey .muted { color: var(--text-light); }

.lead {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  font-family: var(--font-body);
  text-wrap: pretty;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--navy); }
/* Green (primary) buttons standardized to 40px height / 15px font — except in the nav bar */
.btn-primary { height: 40px; padding-top: 0; padding-bottom: 0; font-size: 15px; line-height: 1; }
.dh-nav .btn-primary { height: auto; padding: 10px 16px; font-size: 13px; line-height: normal; }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white 12%); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); height: 40px; padding: 0 22px; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost.btn-lg { height: 40px; padding: 0 22px; font-size: 15px; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-outline-dark { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn .arrow {
  width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Navigation ─── */
.dh-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.dh-nav.scrolled, .dh-nav.menu-open {
  background: rgba(5, 26, 57, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.dh-nav-row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.dh-logo { display: flex; align-items: center; }
.dh-logo img { height: 24px; width: auto; display: block; }
.dh-logo picture { display: flex; align-items: center; }
.dh-nav-links { display: flex; gap: 4px; flex: 1; }
.dh-nav-link {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.dh-nav-link:hover { color: var(--accent); }
.dh-nav-link.active { color: #fff; }
.dh-nav-link svg { transition: transform .2s; }
.dh-nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.dh-mm-col a, .dh-mobile-sub-group a { transition: color .15s ease; }
.dh-mm-col a:hover, .dh-mobile-sub-group a:hover { color: var(--accent) !important; }
/* Catch-all for React-rendered megamenu links on home pages (which use inline styles). */
header a[href]:not(.dh-nav-link):not(.dh-logo):not(.login):not(.btn):not(.btn-primary):not(.dh-explore-cyguard-link) {
  transition: color .15s ease;
}
header a[href]:not(.dh-nav-link):not(.dh-logo):not(.login):not(.btn):not(.btn-primary):not(.dh-explore-cyguard-link):hover {
  color: var(--accent) !important;
}
.dh-nav-cta { display: flex; align-items: center; gap: 18px; }
.dh-nav-cta a.login {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-display);
}

/* Mega menu */
.dh-megamenu {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: dh-fade-in .18s ease;
}
.dh-megamenu.open { display: block; }
.dh-megamenu-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px 36px;
  display: grid;
  gap: 48px;
}
.dh-megamenu-inner.cols-5 { grid-template-columns: repeat(5, 1fr); }
.dh-megamenu-inner.cols-4 { grid-template-columns: repeat(3, 1fr) 320px; }
.dh-megamenu-inner.cols-3 { grid-template-columns: 1.2fr 1fr 1fr; }
.dh-mm-col h5 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.dh-mm-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dh-mm-col a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dh-mm-col a:hover { color: var(--accent) !important; }
.dh-mm-badge {
  background: var(--accent);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}
.dh-mm-featured {
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.dh-mm-featured-title { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.3; margin: 12px 0 10px; }
.dh-mm-featured-desc { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.55; }
.dh-mm-featured-link { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* Mobile nav */
.dh-hamburger {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 5px;
}
.dh-hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.dh-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dh-hamburger.open span:nth-child(2) { opacity: 0; }
.dh-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.dh-mobile-drawer {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(5, 26, 57, 0.98);
  overflow-y: auto;
  z-index: 99;
  display: none;
  animation: dh-fade-in .2s ease;
}
.dh-mobile-drawer.open { display: block; }
.dh-mobile-drawer-inner { padding: 20px 24px 48px; }
.dh-mobile-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.dh-mobile-item > button, .dh-mobile-item > a {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 20px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dh-mobile-sub { display: none; padding-bottom: 20px; }
.dh-mobile-item.expanded .dh-mobile-sub { display: block; }
.dh-mobile-item.expanded > button svg { transform: rotate(180deg); }
.dh-mobile-sub-group { margin-bottom: 20px; }
.dh-mobile-sub-group h6 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dh-mobile-sub-group a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  padding: 6px 0;
}

/* ─── Sub-page hero ─── */
.subhero {
  position: relative;
  background: var(--navy);
  padding: 160px 0 96px;
  overflow: hidden;
}

/* Subhero with animated video background */
.subhero-video { background: #000; }
.subhero-video > .subhero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.72;
  filter: saturate(0.85) contrast(0.95);
  pointer-events: none;
}
.subhero-video > .subhero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,26,57,0.40) 0%, rgba(5,26,57,0.72) 100%),
    radial-gradient(ellipse at 20% 40%, rgba(5,26,57,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.subhero-video > .subhero-bg-glow,
.subhero-video > .subhero-motif { z-index: 2; }
.subhero-video > .container { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .subhero-video-bg { display: none; }
}
.subhero-bg-glow {
  position: absolute;
  right: -20%; top: 10%;
  width: 70%; height: 90%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 25%, transparent) 0%, transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}
.subhero-motif {
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
}
.subhero .container { position: relative; z-index: 2; }
.subhero h1 { color: #fff; max-width: 18ch; text-wrap: balance; margin-top: 18px; }
.subhero p.lead { color: rgba(255,255,255,0.72); margin-top: 24px; max-width: 60ch; }
.subhero-breadcrumb {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.subhero-breadcrumb a:hover { color: var(--accent); }
.subhero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ─── Card grids ─── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--light-bg);
  color: var(--navy);
  border-radius: 6px;
  padding: 28px;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(5,26,57,0.18); }
.card-dark {
  background: var(--navy);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}
.section-dark .card { background: rgba(255,255,255,0.04); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.section-dark .card:hover { box-shadow: 0 16px 40px -18px rgba(0,0,0,0.5); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.section-dark .card-icon { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.card h3 { font-size: 24px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
/* semibold subheadings */
.card p { font-size: 16px; line-height: 1.55; color: var(--text-light); }
.section-dark .card p { color: rgba(255,255,255,0.65); }
.card-tags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid var(--light-divider);
}
.section-dark .tag { background: #fff; border: none; color: var(--navy); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.tag { background: #fff; border: none; color: var(--navy); border-radius: 999px; padding: 5px 10px 5px 8px; }
.tag.idpm::before { background: #29D9A5; }
.tag.aispm::before { background: #051A39; }
.tag.csdpm::before { background: #0147FF; }
.tag.tem::before { background: #717B8A; }
.tag.idpm, .tag.aispm, .tag.csdpm, .tag.tem { color: var(--navy); }

/* ─── Stat blocks ─── */
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: 15px;
  line-height: 1.45;
  margin-top: 14px;
  max-width: 260px;
  font-weight: 500;
}
.stat .src {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.section-dark .stat .src { color: rgba(255,255,255,0.45); }

/* ─── Footer ─── */
.dh-footer {
  background: #051A39;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dh-footer-grid {
  display: grid;
  grid-template-columns: 245px repeat(5, minmax(0, 1fr));
  gap: 28px 32px;
}
.dh-footer-grid .dh-footer-brand img { height: 26px; }
.dh-footer-grid .dh-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 280px;
  color: rgba(255,255,255,0.55);
}
.dh-footer-grid .dh-footer-brand .badges { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.dh-footer-grid .dh-footer-brand .badges span {
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.75);
  cursor: default;
  transition: color .18s ease, border-color .18s ease;
  font-family: var(--font-display);
}
.dh-footer h5 {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.dh-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dh-footer a { color: rgba(255,255,255,0.6); font-size: 13.5px; transition: color .18s ease; }
.dh-footer a:hover { color: #fff; }
.dh-footer-grid .dh-footer-brand .badges span:hover { color: #fff; border-color: rgba(255,255,255,0.45); }
/* Footer social */
.dh-footer-social { display: flex; gap: 14px; margin-top: 24px; }
.dh-footer-social a {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: color .18s ease;
  border: none; background: transparent; padding: 0;
}
.dh-footer-social a:hover { color: #fff; background: transparent; }
.dh-footer-social a svg { width: 22px; height: 22px; display: block; }
.dh-footer-bottom {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dh-footer-bottom .copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.dh-footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.dh-footer-bottom .legal a { font-size: 12.5px; color: rgba(255,255,255,0.45); transition: color .18s ease; }
.dh-footer-bottom .legal a:hover { color: #fff; }
.dh-footer-gartner {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  font-family: var(--font-body);
  max-width: 100%;
}

/* ─── Lifecycle row ─── */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 64px;
}
.lifecycle::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 70%, transparent), color-mix(in oklab, var(--accent) 40%, transparent));
  z-index: 0;
}
.lifecycle-stage { position: relative; z-index: 1; text-align: center; }
.lifecycle-stage .circle {
  width: 112px; height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--accent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px var(--navy);
}
.lifecycle-stage .num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.lifecycle-stage h4 { font-size: 22px; font-weight: 700; margin-top: 22px; color: #fff; }
.lifecycle-stage p {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
}

/* ─── CTA section ─── */
.cta-section {
  background: rgb(5, 26, 57);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section .container { position: relative; z-index: 1; max-width: 880px; }
.cta-section h2 { margin: 18px 0 24px; text-wrap: balance; }
.cta-section .cta-buttons { display: flex; gap: 14px; margin-top: 40px; justify-content: center; flex-wrap: wrap; }

/* ─── Tables ─── */
.dh-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--light-divider);
}
.dh-table thead {
  background: var(--navy);
  color: #fff;
}
.dh-table thead th {
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.02em;
}
.dh-table thead th:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.dh-table tbody tr { border-top: 1px solid var(--light-divider); }
.dh-table tbody td {
  padding: 20px 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-light);
  vertical-align: top;
}
.dh-table tbody td:first-child {
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ─── Pill list ─── */
.pillar-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px;
}
.pillar-bar button, .pillar-bar a {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: background .18s ease;
}
.pillar-bar button.active, .pillar-bar a.active { background: var(--accent); color: var(--navy); }
.pillar-bar .code { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; opacity: 0.6; }
.pillar-bar .name { font-size: 17px; font-weight: 700; margin-top: 4px; }

/* ─── Animations ─── */
@keyframes dh-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes dh-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dh-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes dh-arrow-bounce { 0%,100% { transform: translateX(0); } 25% { transform: translateX(5px); } 50% { transform: translateX(0); } 75% { transform: translateX(5px); } }
.tag::before { animation: dh-blink 1.8s ease-in-out infinite; }

/* ─── Reveal on scroll (visible by default; JS arms the entrance animation) ─── */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.reveal.dh-armed { opacity: 0; transform: translateY(20px); }
.reveal.dh-armed.visible { opacity: 1; transform: translateY(0); }

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 64px 0; }
  .subhero { padding: 112px 0 56px; }
  .dh-nav-row { padding: 0 20px; }
  .dh-nav-links, .dh-nav-cta { display: none; }
  .dh-hamburger { display: flex; }
  .dh-megamenu { display: none !important; }
  .grid-cards, .grid-cards.cols-2, .grid-cards.cols-4 { grid-template-columns: 1fr; }
  .pillar-bar { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: 1fr; gap: 24px; }
  .lifecycle::before { display: none; }
  .dh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dh-footer-bottom { flex-direction: column; align-items: flex-start; }
  .dh-table { display: block; overflow-x: auto; }
}
@media (max-width: 900px) {
  /* Inline-styled grids (used heavily on services/platform/grc/partners pages) */
  main section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  /* Headlines: scale down so they fit narrow viewports */
  h1 { font-size: clamp(30px, 8vw, 44px) !important; line-height: 1.15 !important; }
  h2 { font-size: clamp(24px, 6.2vw, 34px) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(18px, 4.6vw, 22px) !important; }
  .subhero h1 { font-size: clamp(34px, 9vw, 48px) !important; }
  /* Make sure the React header sits below the iOS notch */
  header[role="banner"], #dh-nav-root header { padding-top: env(safe-area-inset-top, 0) !important; }
  /* Prevent horizontal scroll from oversized inline elements.
     Note: keep ONLY body here (not html) and use overflow-x: clip — Android
     Chrome turns position:fixed into position:absolute when ANY ancestor
     uses overflow:hidden, which breaks the mobile drawer. clip avoids that. */
  body { overflow-x: clip; }
  /* Hero / subhero padding tweaks */
  .subhero { padding-top: 100px !important; padding-bottom: 56px !important; }
  /* Tighten very large display copy + ensure buttons wrap */
  .subhero-cta { flex-wrap: wrap; gap: 12px !important; }
  .btn-lg { padding: 14px 22px !important; font-size: 15px !important; }
  /* Ensure images inside DH&You-style boxes stay reasonable */
  main section img { max-width: 100%; height: auto; }
}
@media (max-width: 480px) {
  .pillar-bar { grid-template-columns: 1fr; }
  .container { padding-left: 16px; padding-right: 16px; }
  .subhero h1 { font-size: clamp(30px, 9.5vw, 40px) !important; }
}


/* Pulse dot — pillar badges, console, etc. */
.dh-pulse-dot { position: relative; }
.dh-pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  animation: dh-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 0;
}
@keyframes dh-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
