/* Homepage campaigns: native content first, progressively enhanced carousel. */
.ds-hero {
  --hero-interval: 11s;
  --hero-transition: 680ms;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--blue);
}

.ds-hero__stage {
  position: relative;
  order: 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}

.ds-hero__slide {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(490px, 37vw, 570px);
  color: #fff;
  background: var(--blue);
}

.ds-hero__slide + .ds-hero__slide {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ds-hero__picture,
.ds-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ds-hero__picture {
  display: block;
  overflow: hidden;
}

.ds-hero__image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus-x, 20%) var(--hero-focus-y, 50%);
}

/* The original site's angled slider layer uses 50% opacity. */
.ds-hero__shade {
  background: transparent;
}

.ds-hero__shade::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 76, 147, 0.5);
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 41% 100%);
  content: "";
}

.ds-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  padding-block: clamp(40px, 4.7vw, 66px);
}

.ds-hero__copy {
  width: 48%;
  max-width: 565px;
  padding-left: 10px;
  overflow-wrap: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 2px #363a3c;
}

.ds-hero__kicker {
  display: flex;
  align-items: center;
  margin: 0 0 17px;
  gap: 12px;
  color: var(--mist);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ds-hero__kicker::before {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--white);
  content: "";
}

.ds-hero__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.05rem, 3.45vw, 3.4rem);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.ds-hero__details {
  display: grid;
  padding: 0;
  margin: 0 0 29px;
  gap: 9px;
  list-style: none;
}

.ds-hero__details li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
  line-height: 1.52;
}

.ds-hero__details li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--white);
  content: "";
}

.ds-hero__link.button {
  min-height: 50px;
  padding: 13px 22px;
  border-color: var(--white);
  color: var(--white);
  background: var(--blue);
  gap: 16px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none;
}

.ds-hero__link::after {
  font-size: 1.25em;
  line-height: 0.8;
  content: "\2192";
  transition: transform 180ms ease;
}

.ds-hero__link.button:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.ds-hero__link:hover::after {
  transform: translateX(3px);
}

.ds-hero__link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 5px;
}

.ds-hero__toolbar {
  display: none;
  order: 2;
}

.ds-hero__progress { display: none; order: 1; height: 3px; flex: 0 0 3px; background: #c4ccd2; }
.ds-hero.is-enhanced.has-multiple .ds-hero__progress { display: block; }
.ds-hero__progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.ds-hero.is-rotating .ds-hero__progress span { animation: ds-hero-progress var(--hero-interval) linear both; }

.ds-hero.is-enhanced.has-multiple {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.ds-hero.is-enhanced.has-multiple .ds-hero__toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-height: 44px;
  padding-block: 0;
  gap: 12px;
}

.ds-hero__buttons {
  display: flex;
  align-items: center;
  padding-block: 0;
  gap: 4px;
  flex: 0 0 auto;
}

.ds-hero__buttons button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ds-hero__buttons [data-hero-toggle] {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.ds-hero__buttons svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.ds-hero__buttons svg[hidden] {
  display: none;
}

.ds-hero__buttons button:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.ds-hero__buttons button:focus-visible,
.ds-hero__topic:focus-visible {
  z-index: 1;
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.ds-hero__topics {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  flex: 0 1 220px;
}

.ds-hero__topic {
  position: relative;
  display: flex;
  width: 44px;
  min-width: 24px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 1 44px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
}

.ds-hero__indicator {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa6b0;
  transition: background-color 160ms ease, transform 160ms ease;
}

.ds-hero__topic:hover .ds-hero__indicator,
.ds-hero__topic.is-active .ds-hero__indicator {
  background: var(--blue);
  transform: scale(1.15);
}

.ds-hero.is-enhanced .ds-hero__stage {
  display: grid;
}

.ds-hero.is-enhanced .ds-hero__slide {
  grid-area: 1 / 1;
  border: 0;
}

.ds-hero.is-enhanced .ds-hero__slide:not(.is-active):not(.is-leaving),
.ds-hero.is-enhanced .ds-hero__slide[hidden] {
  display: none;
}

.ds-hero.is-enhanced .ds-hero__slide.is-active {
  z-index: 2;
}

.ds-hero.is-enhanced .ds-hero__slide.is-leaving {
  z-index: 1;
  pointer-events: none;
  animation: ds-hero-slide-out var(--hero-transition) cubic-bezier(0.3, 0.65, 0.3, 1) both;
}

.ds-hero.is-enhanced .ds-hero__slide.is-entering {
  animation: ds-hero-slide-in var(--hero-transition) cubic-bezier(0.22, 0.68, 0.25, 1) both;
}

.ds-hero[data-direction="prev"] .ds-hero__slide.is-leaving {
  animation-name: ds-hero-slide-out-reverse;
}

.ds-hero[data-direction="prev"] .ds-hero__slide.is-entering {
  animation-name: ds-hero-slide-in-reverse;
}

.ds-hero__slide.is-entering .ds-hero__kicker,
.ds-hero__slide.is-entering .ds-hero__title,
.ds-hero__slide.is-entering .ds-hero__details,
.ds-hero__slide.is-entering .ds-hero__link {
  animation: ds-hero-copy-in 430ms cubic-bezier(0.16, 0.7, 0.26, 1) both;
}

.ds-hero__slide.is-entering .ds-hero__kicker { animation-delay: 130ms; }
.ds-hero__slide.is-entering .ds-hero__title { animation-delay: 200ms; }
.ds-hero__slide.is-entering .ds-hero__details { animation-delay: 270ms; }
.ds-hero__slide.is-entering .ds-hero__link { animation-delay: 340ms; }

/* Keep the static company heading consistent after moving H1 below campaigns. */
.home .intro__grid h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

@keyframes ds-hero-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes ds-hero-slide-out {
  from { transform: translateX(0); }
  to { transform: translateX(-24%); }
}

@keyframes ds-hero-slide-in-reverse {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes ds-hero-slide-out-reverse {
  from { transform: translateX(0); }
  to { transform: translateX(24%); }
}

@keyframes ds-hero-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ds-hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (min-width: 1800px) {
  .ds-hero__copy {
    width: 51%;
  }
}

@media (max-width: 1050px) {
  .ds-hero__slide {
    min-height: 480px;
  }

  .ds-hero__copy {
    width: 53%;
    padding-left: 18px;
  }

  .ds-hero__title {
    font-size: clamp(1.95rem, 4vw, 2.6rem);
  }

  .ds-hero.is-enhanced.has-multiple .ds-hero__toolbar {
    padding-block: 0;
  }

  .ds-hero__buttons {
    padding: 0;
  }
}

@media (max-width: 700px) {
  .ds-hero__slide {
    display: grid;
    min-height: 0;
    grid-template-rows: auto 1fr;
    align-content: start;
    background: var(--blue);
  }

  .ds-hero__picture {
    position: relative;
    inset: auto;
    height: clamp(180px, 53vw, 265px);
    grid-row: 1;
    background: var(--mist);
  }

  .ds-hero__shade {
    height: clamp(180px, 53vw, 265px);
    background: linear-gradient(0deg, rgba(0, 76, 147, 0.26), transparent 40%);
  }

  .ds-hero__shade::after {
    display: none;
  }

  .ds-hero__content {
    align-items: flex-start;
    padding-block: 28px 33px;
    grid-row: 2;
  }

  .ds-hero__copy {
    width: 100%;
    max-width: none;
    padding-inline: 5px;
  }

  .ds-hero__kicker {
    margin-bottom: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .ds-hero__title {
    max-width: 570px;
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 6.5vw, 2.7rem);
    line-height: 1.1;
  }

  .ds-hero__details {
    margin-bottom: 24px;
    gap: 8px;
  }

  .ds-hero__details li {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .ds-hero__link.button {
    max-width: 100%;
    min-height: 48px;
    padding-inline: 18px;
    font-size: 0.86rem;
  }

  .ds-hero.is-enhanced.has-multiple .ds-hero__toolbar {
    padding: 0;
  }

  .ds-hero__buttons {
    padding: 0;
    gap: 4px;
  }

  .ds-hero__buttons button {
    width: 44px;
    height: 44px;
  }

  .ds-hero__buttons [data-hero-toggle] {
    font-size: 0.75rem;
  }

  .ds-hero__topics {
    width: auto;
    flex-basis: 220px;
    padding: 0;
  }

  .ds-hero__topic:focus-visible {
    outline-offset: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-hero *,
  .ds-hero *::before,
  .ds-hero *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .ds-hero__progress {
    display: none;
  }
}

@media print {
  .ds-hero__toolbar, .ds-hero__progress {
    display: none !important;
  }

  .ds-hero__stage,
  .ds-hero.is-enhanced .ds-hero__stage {
    display: block;
    overflow: visible;
  }

  .ds-hero__slide {
    break-inside: avoid;
  }

  .ds-hero__slide.is-leaving {
    display: none !important;
  }
}
