/* Shared responsive layer for the verified Design Nux documents. */
html,
body,
x-dc,
#dc-root,
#dc-root > .sc-host {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#dc-root *,
#dc-root *::before,
#dc-root *::after {
  box-sizing: border-box;
}

#dc-root [style*="display:grid"] > *,
#dc-root [style*="display:flex"] > * {
  min-width: 0;
}

.dn-mobile-menu {
  display: none;
}

@media (min-width: 901px) {
  header > div {
    flex-wrap: nowrap !important;
    gap: clamp(12px, 1.5vw, 28px) !important;
  }

  header nav {
    flex-wrap: nowrap !important;
    gap: clamp(10px, 1.15vw, 22px) !important;
  }

  header nav > * {
    flex: 0 0 auto;
  }

  /* Social links remain in the footer; removing them here keeps navigation on one row. */
  header nav + div > span:first-child {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  header > div > a:first-child > span:last-child {
    display: none !important;
  }
}

/* Header logos are CMS-managed and may be wide wordmarks rather than square marks. */
.dn-header-logo {
  width: clamp(128px, 11vw, 158px) !important;
  height: 45px !important;
  overflow: visible !important;
}

.dn-header-logo-image {
  position: static !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

header > div > a:first-child > span:last-child > span:last-child {
  color: var(--color-accent-2, #07a9e2) !important;
}

.dn-partnership-logo {
  width: 148px !important;
  height: 48px !important;
  overflow: visible !important;
}

.dn-partnership-logo-image {
  position: static !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.dn-partnership-card {
  transition: transform .32s cubic-bezier(.2,.75,.25,1), box-shadow .32s ease, filter .32s ease;
  will-change: transform;
}

.dn-partnership-card:hover {
  z-index: 2;
  transform: translateY(-10px) scale(1.018);
  box-shadow: 0 24px 44px rgba(7,20,48,.2);
  filter: saturate(1.06);
}

.dn-team-photo {
  transition: transform .32s cubic-bezier(.2,.75,.25,1), box-shadow .32s ease, border-color .32s ease;
  transform-origin: center;
  will-change: transform;
}

.dn-hero-reveal .dn-reveal-clip {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding: .06em 0 .08em;
  margin: -.06em 0 -.08em;
}

.dn-hero-reveal.is-prepared .dn-reveal-word {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(112%);
  transition:
    transform .82s cubic-bezier(.2,.72,.2,1),
    opacity .58s ease,
    filter .62s ease;
  transition-delay: calc(100ms + var(--dn-word-index) * 62ms);
  will-change: transform, opacity, filter;
}

.dn-hero-reveal.is-revealed .dn-reveal-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .dn-team-photo:hover {
    z-index: 2;
    transform: translateY(-9px) scale(1.018);
    box-shadow: 0 22px 42px rgba(7,20,48,.2);
    border-color: color-mix(in srgb, var(--color-accent) 34%, var(--color-divider)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dn-team-photo,
  .dn-hero-reveal .dn-reveal-word { transition: none; }
}

.dn-industry-tab {
  color: inherit;
  text-decoration: none;
}

.dn-industry-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.dn-footer-logo {
  width: 210px !important;
  height: 88px !important;
  overflow: visible !important;
  margin-bottom: 8px;
}

.dn-footer-logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.dn-footer-logo-image {
  position: static !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.dn-footer-logo-link + span {
  display: none !important;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

input,
select,
textarea,
button {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 900px) {
  header > div {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 11px 20px !important;
  }

  header > div > a:first-child {
    min-width: 0;
  }

  header nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0 !important;
    padding: 3px 0 2px;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 20px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  header nav + div {
    margin-left: auto;
  }

  [style*="grid-template-columns"][style*="repeat(5"],
  [style*="grid-template-columns"][style*="repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [style*="gap"][style*="56px"],
  [style*="gap"][style*="64px"],
  [style*="gap"][style*="48px"] {
    gap: 32px !important;
  }
}

@media (max-width: 720px) {
  html.dn-mobile-nav-active,
  html.dn-mobile-nav-active body {
    overflow: hidden !important;
  }

  header {
    position: sticky !important;
  }

  header.dn-mobile-nav-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  header.dn-mobile-nav-open::before {
    content: "";
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    display: block;
    background-color: #f5f5f6;
    opacity: 1;
    pointer-events: none;
  }

  header > div {
    position: relative;
    flex-wrap: nowrap !important;
    min-height: 66px;
  }

  header > div > a:first-child {
    margin-right: auto;
  }

  .dn-header-logo {
    width: 112px !important;
    height: 34px !important;
  }

  header nav {
    display: none !important;
  }

  header.dn-mobile-nav-open nav {
    position: fixed !important;
    top: 66px !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    z-index: 999 !important;
    display: flex !important;
    width: 100% !important;
    height: calc(100dvh - 66px) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 14px 20px 20px !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    overflow: auto;
    background: #f5f5f6 !important;
    background-color: #f5f5f6 !important;
    opacity: 1 !important;
    isolation: isolate;
    border-top: 1px solid var(--color-divider, #d9dde4);
    box-shadow: 0 18px 38px rgba(7, 20, 48, .16);
  }

  header.dn-mobile-nav-open nav > a,
  header.dn-mobile-nav-open nav > div > button {
    width: 100% !important;
    padding: 11px 4px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--color-divider, #d9dde4) !important;
  }

  header.dn-mobile-nav-open nav > div {
    position: static !important;
    width: 100%;
  }

  header.dn-mobile-nav-open nav > div > div {
    position: static !important;
    width: 100%;
    margin: 0 !important;
    box-shadow: none !important;
  }

  header nav + div {
    display: none !important;
  }

  .dn-mobile-menu {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 11px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-divider, #d9dde4);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text, #111);
    cursor: pointer;
  }

  .dn-mobile-menu span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  header.dn-mobile-nav-open .dn-mobile-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  header.dn-mobile-nav-open .dn-mobile-menu span:nth-child(2) { opacity: 0; }
  header.dn-mobile-nav-open .dn-mobile-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  [style*="max-width"][style*="1320px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  section[style*="padding"][style*="88px"],
  section[style*="padding"][style*="90px"],
  section[style*="padding"][style*="86px"],
  section[style*="padding"][style*="84px"],
  section[style*="padding"][style*="80px"],
  section[style*="padding"][style*="76px"] {
    padding-top: 56px !important;
  }

  section[style*="padding"][style*="64px"],
  section[style*="padding"][style*="60px"],
  section[style*="padding"][style*="58px"],
  section[style*="padding"][style*="56px"] {
    padding-top: 42px !important;
  }

  [style*="grid-template-columns"][style*="minmax"],
  [style*="grid-template-columns"][style*="1fr 1fr"],
  [style*="grid-template-columns"][style*="repeat(2"],
  [style*="grid-template-columns"][style*="repeat(3"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="grid-template-columns"][style*="repeat(4"],
  [style*="grid-template-columns"][style*="repeat(5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [style*="gap"][style*="72px"],
  [style*="gap"][style*="64px"],
  [style*="gap"][style*="56px"],
  [style*="gap"][style*="48px"],
  [style*="gap"][style*="44px"] {
    gap: 26px !important;
  }

  h1,
  h1[style] {
    max-width: 100% !important;
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 1.03 !important;
    overflow-wrap: anywhere;
  }

  h2,
  h2[style] {
    max-width: 100% !important;
    font-size: clamp(30px, 8.5vw, 38px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  h3,
  p,
  a,
  li {
    overflow-wrap: break-word;
  }

  h1,
  h2,
  h3,
  h1 span,
  h2 span,
  h3 span,
  p {
    white-space: normal !important;
  }

  [style*="height"][style*="460px"],
  [style*="height"][style*="440px"] {
    height: 290px !important;
    min-height: 290px !important;
  }

  [style*="height"][style*="380px"],
  [style*="height"][style*="360px"],
  [style*="height"][style*="340px"],
  [style*="height"][style*="320px"] {
    height: 250px !important;
    min-height: 250px !important;
  }

  [style*="height"][style*="280px"],
  [style*="height"][style*="260px"],
  [style*="height"][style*="250px"],
  [style*="height"][style*="240px"],
  [style*="height"][style*="230px"] {
    height: 220px !important;
    min-height: 0 !important;
  }

  [style*="position"][style*="sticky"][style*="top"] {
    position: static !important;
  }

  .input,
  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px !important;
  }

  textarea,
  textarea.input {
    min-height: 112px;
  }

  [style*="justify-content"][style*="space-between"] {
    flex-wrap: wrap !important;
  }

  footer [style*="padding"][style*="64px"][style*="44px"] {
    padding-top: 48px !important;
  }

  .dn-partnership-mosaic {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .dn-partnership-mark {
    width: 100% !important;
    min-height: 0;
    padding: 18px 20px !important;
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    text-align: left !important;
  }

  .dn-partnership-mark > span {
    grid-row: 1 / 3;
    margin: 0 !important;
  }

  .dn-pricing-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .dn-plan-tabs {
    position: static !important;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 72vw);
    gap: 0;
    width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .dn-plan-tabs::-webkit-scrollbar { display: none; }
  .dn-plan-tabs > button { scroll-snap-align: start; }
  .dn-plan-tabs > p { display: none; }

  .dn-service-list-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px !important;
    align-items: center !important;
  }

  .dn-service-list-tagline {
    grid-column: 2;
    text-align: left !important;
    margin-top: -5px;
  }

  .dn-service-list-row > .dn-service-list-tagline + span {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .dn-service-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .dn-service-hero-stats > div > div:first-child {
    font-size: clamp(28px, 9vw, 36px) !important;
    white-space: nowrap !important;
  }

  .dn-rail > * {
    flex-basis: min(82vw, 320px) !important;
    min-width: min(82vw, 320px) !important;
  }

  [style*="display:flex"][style*="gap:10px"][style*="font-size:14px"] {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  header > div {
    position: relative;
    padding: 10px 14px !important;
  }

  header > div > a:first-child [style*="letter-spacing"][style*=".2em"] {
    display: none !important;
  }

  header > div > a:first-child [style*="font-size"][style*="19px"] {
    font-size: 16px !important;
  }

  header nav + div { display: none !important; }

  [style*="max-width"][style*="1320px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1,
  h1[style] {
    font-size: clamp(34px, 10.5vw, 42px) !important;
  }

  h2,
  h2[style] {
    font-size: clamp(28px, 8.5vw, 34px) !important;
  }

  [style*="padding"][style*="30px"],
  [style*="padding"][style*="28px"],
  [style*="padding"][style*="26px"],
  [style*="padding"][style*="24px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .btn {
    white-space: normal !important;
    text-align: center;
  }
}
