/* Approved hero preview. TODO: replace Source Serif 4 only when licensed Canela is supplied. */
.dgx-approved-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.dgx-approved-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/images/minimalist_glass_architecture_in_white_space.png') right top / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .dgx-approved-scene::before {
    background-attachment: fixed;
  }
}

.dgx-approved-hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: 100%;
  padding: clamp(128px, 9.4vw, 154px) 0 66px;
  background: transparent;
}

.dgx-approved-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/images/hero-network-background-1200.png') left top / auto 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.48;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 75px, transparent 400px);
  mask-image: linear-gradient(to right, #000 0, #000 75px, transparent 400px);
  pointer-events: none;
}

.dgx-metric-ticker {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: 0;
  margin-inline: 0;
  border: 1px solid rgba(18, 63, 130, 0.45);
  border-radius: 0;
  background: transparent;
  color: #123f82;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.dgx-metric-ticker::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: 1;
  border: 1px solid rgba(18, 63, 130, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.dgx-metric-ticker::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 0;
  z-index: 1;
  width: 58px;
  height: 2px;
  background: #d4af37;
  pointer-events: none;
}

.dgx-metric-ticker__viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.dgx-metric-ticker__track {
  display: flex;
  width: max-content;
  animation: dgx-metric-scroll 56s linear infinite;
  animation-play-state: paused;
}

.dgx-metric-ticker.is-ready .dgx-metric-ticker__track {
  animation-play-state: running;
}

.dgx-metric-ticker__set {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  height: 52px;
}

.dgx-metric-ticker__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding-inline: 18px;
  border-right: 1px solid rgba(18, 63, 130, 0.22);
  white-space: nowrap;
}

.dgx-metric-ticker__value {
  color: #16895b;
  font: 700 14px/1 'Instrument Sans', sans-serif;
  font-variant-numeric: tabular-nums;
}

.dgx-metric-ticker__label {
  color: #123f82;
  font: 650 15px/1.1 'Instrument Sans', sans-serif;
}

@keyframes dgx-metric-scroll {
  to { transform: translateX(-50%); }
}

.dgx-metric-ticker:hover .dgx-metric-ticker__track,
.dgx-metric-ticker:focus-within .dgx-metric-ticker__track {
  animation-play-state: paused;
}

.dgx-approved-scene > #services {
  position: relative;
  z-index: 1;
  background: transparent;
}

.dgx-approved-scene > #services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom,
    #fff 0%,
    rgba(255, 255, 255, 0.74) 12%,
    rgba(255, 255, 255, 0.78) 27%,
    rgba(255, 255, 255, 0.9) 43%,
    #fff 62%,
    #fff 100%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.dgx-approved-scene > #services > .max-w-7xl {
  position: relative;
  z-index: 1;
}

.dgx-approved-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.dgx-approved-hero__copy {
  min-width: 0;
}

.dgx-approved-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  color: #285485;
  font: 500 11px/1.4 'Instrument Sans', sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.dgx-approved-hero__eyebrow span {
  flex: 0 0 54px;
  height: 2px;
  background: #d4af37;
}

.dgx-approved-hero h1 {
  max-width: 600px;
  margin: 0;
  color: #142b53;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(30px, 2.5vw, 41px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.dgx-approved-hero h1 span {
  color: #9d700f;
}

.dgx-approved-hero h1 .hero-animated-slot {
  position: relative;
  display: inline-block;
  isolation: isolate;
  vertical-align: baseline;
  white-space: nowrap;
  font-family: inherit;
  font-weight: inherit;
}

.dgx-approved-hero h1 .hero-animated-width-reference {
  display: inline-block;
  visibility: hidden;
  white-space: nowrap;
}

.dgx-approved-hero h1 .hero-animated-current {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
}

.dgx-approved-hero h1 .hero-animated-word {
  position: relative;
  z-index: 2;
  display: inline-block;
  white-space: nowrap;
}

.dgx-approved-hero h1 .hero-highlight-line {
  position: absolute;
  bottom: 0.07em;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 0.24em;
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.58);
  transform: scaleX(1);
  transform-origin: left center;
  pointer-events: none;
}

.dgx-approved-hero__lead {
  max-width: 545px;
  margin: 38px 0 0;
  color: #2a4969;
  font: 400 clamp(15px, 1.25vw, 17px)/1.6 'Instrument Sans', sans-serif;
}

.dgx-approved-hero__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .dgx-approved-hero__copy { transform: translateY(-12px); }
  .dgx-approved-dashboard-image { transform: translateY(-16px); }
}

@media (min-width: 1051px) {
  .dgx-approved-hero {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: calc(100svh - 66px);
    padding-bottom: 12px;
  }
  .dgx-approved-hero__lead { margin-top: 40px; }
  .dgx-approved-hero__actions { margin-top: 46px; }
}

@media (min-width: 1051px) and (max-height: 740px) {
  .dgx-approved-hero { padding-top: 108px; }
  .dgx-approved-hero__copy { transform: none; }
  .dgx-approved-hero__eyebrow { margin-bottom: 28px; }
  .dgx-approved-hero__lead { margin-top: 34px; }
  .dgx-approved-hero__actions { margin-top: 40px; }
}

.dgx-utility-right > .dgx-utility-link + .dgx-utility-link,
.dgx-utility-right > .dgx-utility-contact-link + .dgx-utility-contact-link {
  position: relative;
}

.dgx-utility-right > .dgx-utility-link + .dgx-utility-link::before,
.dgx-utility-right > .dgx-utility-contact-link + .dgx-utility-contact-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -0.5rem;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(-50%);
  pointer-events: none;
}

.dgx-approved-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 0 27px;
  border-radius: 999px;
  font: 600 16px/1 'Instrument Sans', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.dgx-approved-hero__button:hover {
  transform: translateY(-2px);
}

.dgx-approved-hero__button:focus-visible {
  outline: 3px solid #3277a9;
  outline-offset: 3px;
}

.dgx-approved-hero__button--primary {
  border: 1px solid #d4af37;
  background: #d4af37;
  color: #142b53;
  box-shadow: 0 8px 18px rgba(125, 88, 22, 0.14);
}

.dgx-approved-hero__button--primary:hover {
  background: #e0be55;
}

.dgx-approved-hero__button--secondary {
  border: 1px solid #142b53;
  background: rgba(255, 255, 255, 0.83);
  color: #142b53;
}

.dgx-approved-hero__button--secondary:hover {
  background: #fff;
}

.dgx-approved-hero__credentials {
  max-width: 500px;
  margin-top: 46px;
}

@media (min-width: 1051px) {
  .dgx-approved-hero__credentials { margin-top: 66px; }
}

@media (min-width: 1051px) and (max-height: 740px) {
  .dgx-approved-hero__credentials { margin-top: 58px; }
}

.dgx-approved-hero__credentials p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #45638a;
  font: 500 10px/1.3 'Instrument Sans', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dgx-approved-hero__credentials p::before,
.dgx-approved-hero__credentials p::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(41, 86, 132, 0.25);
}

.dgx-approved-hero__credential-logos {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 17px;
}

.dgx-approved-hero__credential-logos img {
  display: block;
  width: min(24%, 88px);
  min-width: 0;
  height: 62px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.76;
  transition: filter 240ms ease, opacity 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .dgx-approved-hero__credential-logos img:hover {
    filter: none;
    opacity: 1;
  }
}

.dgx-approved-dashboard-image {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, clamp(680px, 48vw, 780px));
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.dgx-approved-dashboard-image::before {
  content: '';
  position: absolute;
  inset: -55px;
  z-index: 0;
  border-radius: 50px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.58) 55%, rgba(255, 255, 255, 0.18) 80%, transparent 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 55%, rgba(0, 0, 0, 0.82) 69%, rgba(0, 0, 0, 0.38) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 55%, rgba(0, 0, 0, 0.82) 69%, rgba(0, 0, 0, 0.38) 84%, transparent 100%);
  pointer-events: none;
}

/* Frame the dashboard panel while excluding the source image's blue outer halo. */
.dgx-approved-dashboard-image__frame {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1334 / 978;
  overflow: hidden;
  border: 1px solid rgba(198, 207, 219, 0.7);
  border-radius: 18px;
  background: #f8fbfd;
  box-shadow: 0 14px 32px rgba(48, 56, 66, 0.09);
  cursor: zoom-in;
}

.dgx-approved-dashboard-image__frame:focus-visible {
  outline: 3px solid #d4af37;
  outline-offset: 4px;
}

.dgx-approved-dashboard-image__frame img {
  position: absolute;
  left: -4.1979%;
  top: -6.2372%;
  display: block;
  width: 108.2459%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .dgx-approved-scene::before { opacity: 0.24; }
  .dgx-approved-hero::before {
    background-size: auto 90%;
    background-position: left -15px center;
    opacity: 0.25;
    -webkit-mask-image: linear-gradient(to right, #000 0, transparent 300px);
    mask-image: linear-gradient(to right, #000 0, transparent 300px);
  }

  .dgx-approved-hero__inner {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .dgx-approved-hero__copy {
    max-width: 650px;
  }

  .dgx-approved-hero__desktop-break { display: none; }
  .dgx-approved-hero h1 { font-size: clamp(31px, 4.5vw, 41px); }
}

@media (min-width: 900px) and (max-width: 1050px) {
  .dgx-approved-hero {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: calc(100svh - 66px);
    padding: 120px 0 12px;
  }
  .dgx-approved-hero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: calc(100% - 40px);
    max-width: none;
    gap: 12px;
  }
  .dgx-approved-hero__copy { max-width: none; }
  .dgx-approved-hero h1 { font-size: 34px; line-height: 1.1; }
  .dgx-approved-hero__lead { margin-top: 36px; }
  .dgx-approved-hero__actions { gap: 10px; margin-top: 38px; }
  .dgx-approved-hero__button { min-height: 46px; padding: 0 16px; font-size: 14px; }
  .dgx-approved-hero__credentials { margin-top: 46px; }
  .dgx-approved-dashboard-image {
    width: 100%;
    max-width: none;
  }
  .dgx-approved-dashboard-image::before {
    inset: -28px -28px -28px 5px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .dgx-metric-ticker { margin-top: 0; }
  .dgx-metric-ticker__set { height: 48px; }
  .dgx-metric-ticker__item { gap: 8px; padding-inline: 12px; }
  .dgx-metric-ticker__label { font-size: 13px; }
  .dgx-metric-ticker__value { font-size: 12px; }
  .dgx-approved-hero { padding: 114px 0 40px; }
  .dgx-approved-hero::before {
    background-size: auto 100%;
    background-position: left -60px top;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(to right, #000 0, transparent 135px);
    mask-image: linear-gradient(to right, #000 0, transparent 135px);
  }
  .dgx-approved-hero__inner { width: calc(100% - 32px); gap: 29px; }
  .dgx-approved-hero__eyebrow { margin-bottom: 19px; font-size: 9px; letter-spacing: 0.17em; }
  .dgx-approved-hero__eyebrow span { flex-basis: 27px; }
  .dgx-approved-hero h1 { font-size: clamp(29px, 7.2vw, 35px); line-height: 1.12; }
  .dgx-approved-hero__lead { margin-top: 24px; font-size: 15px; }
  .dgx-approved-hero__actions { gap: 14px; margin-top: 30px; }
  .dgx-approved-hero__button { flex: 1 1 100%; min-height: 47px; }
  .dgx-approved-hero__credentials { margin-top: 34px; }
  .dgx-approved-hero__credentials p { font-size: 9px; letter-spacing: 0.12em; }
  .dgx-approved-hero__credential-logos { gap: 6px; }
  .dgx-approved-hero__credential-logos img { width: min(24%, 80px); height: 50px; }
  .dgx-approved-scene::before { opacity: 0.06; }
  .dgx-approved-dashboard-image::before { inset: -22px; }
  .dgx-approved-dashboard-image__frame { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .dgx-metric-ticker__viewport { overflow-x: auto; }
  .dgx-metric-ticker__track,
  .dgx-metric-ticker.is-ready .dgx-metric-ticker__track { animation: none; }
  .dgx-metric-ticker__set { min-width: 0; }
  .dgx-metric-ticker__set[aria-hidden='true'] { display: none; }
  .dgx-approved-hero__credential-logos img { transition: none; }
  .dgx-approved-hero__button { transition: none; }
  .dgx-approved-hero__button:hover { transform: none; }
}
