/* Homepage hero slider — full-bleed cutout slides */

.hd-hero {
  --hd-ink: #f7fbff;
  --hd-muted: rgba(247, 251, 255, 0.72);
  position: relative;
  min-height: calc(100svh - var(--gg-stack-h, 72px));
  overflow: hidden;
  color: var(--hd-ink);
  background: #0b1824;
}

.hd-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hd-hero__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  z-index: 0;
}

.hd-hero__slide.is-active,
.hd-hero__slide.is-animating {
  visibility: visible;
  z-index: 1;
}

.hd-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hd-hero__bg img,
.hd-hero__bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hd-hero__bg img {
  object-fit: cover;
  object-position: 62% center;
  transform-origin: 60% 50%;
}

.hd-hero__fg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hd-hero__fg img {
  position: absolute;
  right: 3%;
  bottom: 0;
  height: 94%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(8, 18, 30, 0.18));
}

.hd-hero__slide--copy-right .hd-hero__fg img {
  right: auto;
  left: 2%;
  object-position: left bottom;
}

.hd-hero__slide--copy-right .hd-hero__bg {
  transform: scaleX(-1);
}

.hd-hero__slide--copy-right .hd-hero__bg img {
  object-position: 50% center;
  transform-origin: 50% 50%;
}

.hd-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.82) 0%, rgba(8, 18, 30, 0.5) 34%, rgba(8, 18, 30, 0.12) 58%, transparent 76%),
    linear-gradient(180deg, rgba(8, 18, 30, 0.18) 0%, transparent 18%, transparent 72%, rgba(8, 18, 30, 0.45) 100%);
}

.hd-hero__slide--light .hd-hero__veil {
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.72) 0%, rgba(247, 250, 252, 0.28) 36%, transparent 58%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.12) 0%, transparent 22%, transparent 78%, rgba(11, 24, 36, 0.08) 100%);
}

.hd-hero__slide--light.hd-hero__slide--copy-right .hd-hero__veil {
  background:
    linear-gradient(270deg, rgba(247, 250, 252, 0.88) 0%, rgba(247, 250, 252, 0.46) 36%, transparent 62%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.1) 0%, transparent 22%, transparent 78%, rgba(11, 24, 36, 0.06) 100%);
}

.hd-hero[data-theme="light"] {
  --hd-ink: #1e3a4c;
  --hd-muted: rgba(39, 71, 96, 0.72);
}

.hd-hero[data-theme="light"] .hd-hero__tag {
  color: #307bc4;
}

.hd-hero[data-theme="light"] .hd-hero__heading {
  color: #1e3a4c;
}

.hd-hero[data-theme="light"] .hd-hero__btn {
  color: #fff;
  background: #274760;
}

.hd-hero[data-theme="light"] .hd-hero__btn:hover,
.hd-hero[data-theme="light"] .hd-hero__btn:focus-visible {
  color: #fff;
  background: #1e3a4c;
}

.hd-hero[data-theme="light"] .hd-hero__more {
  color: #274760;
  border-bottom-color: rgba(39, 71, 96, 0.28);
}

.hd-hero[data-theme="light"] .hd-hero__more:hover,
.hd-hero[data-theme="light"] .hd-hero__more:focus-visible {
  color: #307bc4;
  border-color: #307bc4;
}

.hd-hero[data-theme="light"] .hd-hero__dir {
  color: #274760;
  border-color: rgba(39, 71, 96, 0.22);
  background: rgba(255, 255, 255, 0.55);
}

.hd-hero[data-theme="light"] .hd-hero__dir:hover,
.hd-hero[data-theme="light"] .hd-hero__dir:focus-visible {
  background: #fff;
  border-color: rgba(39, 71, 96, 0.4);
}

.hd-hero[data-theme="light"] .hd-hero__range {
  color: rgba(39, 71, 96, 0.62);
}

.hd-hero[data-theme="light"] .hd-hero__track {
  background: rgba(39, 71, 96, 0.16);
}

.hd-hero[data-theme="light"] .hd-hero__track span {
  background: #274760;
}

.hd-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 80rem;
  margin: 0 auto;
  min-height: calc(100svh - var(--gg-stack-h, 72px));
  padding: clamp(2.5rem, 8vh, 5.5rem) 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .hd-hero__inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .hd-hero[data-layout="copy-right"] .hd-hero__inner {
    padding-right: 3.25rem;
  }
}

.hd-hero__copy {
  width: min(100%, 34rem);
  max-width: 34rem;
  padding-top: 0.5rem;
}

.hd-hero[data-layout="copy-right"] .hd-hero__inner {
  align-items: flex-end;
}

.hd-hero[data-layout="copy-right"] .hd-hero__copy,
.hd-hero[data-layout="copy-right"] .hd-hero__bar {
  margin-left: auto;
}

.hd-hero--pending .hd-hero__copy,
.hd-hero--pending .hd-hero__bar {
  opacity: 0;
}

.hd-hero__tag {
  margin: 0 0 0.9rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #d2eaef;
}

.hd-hero__heading {
  margin: 0 0 1.15rem;
  font-family: "Figtree", "Poppins", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 4.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
}

.hd-hero__mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.hd-hero__word {
  display: inline-block;
  will-change: transform;
}

.hd-hero__lede {
  margin: 0 0 1.85rem;
  max-width: 28rem;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--hd-muted);
}

.hd-hero__lede-clip {
  display: block;
  overflow: hidden;
}

.hd-hero__lede-clip [data-slot="lede"] {
  display: block;
}

.hd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
}

.hd-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #274760;
  background: #fff;
  text-decoration: none;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease;
}

.hd-hero__btn:hover,
.hd-hero__btn:focus-visible {
  color: #274760;
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(8, 18, 30, 0.18);
  outline: none;
}

.hd-hero__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-hero__more:hover,
.hd-hero__more:focus-visible {
  color: #fff;
  border-color: #fff;
  outline: none;
}

.hd-hero__more i {
  font-size: 0.7rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-hero__more:hover i,
.hd-hero__more:focus-visible i {
  transform: translateX(5px);
}

.hd-hero__bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 34rem);
  padding-bottom: 0.35rem;
}

.hd-hero__dir {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, border-color 180ms ease;
}

.hd-hero__dir:hover,
.hd-hero__dir:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.hd-hero__num {
  display: inline-flex;
  overflow: hidden;
  min-width: 1.4rem;
  line-height: 1.2;
}

.hd-hero__range {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  min-width: 1.4rem;
}

.hd-hero__track {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hd-hero__track span {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

@media (max-width: 1023px) {
  .hd-hero__fg img {
    right: 0;
    height: 78%;
    max-width: 48%;
  }

  .hd-hero__slide--copy-right .hd-hero__fg img {
    right: auto;
    left: 0;
    height: 78%;
    max-width: 48%;
  }

  .hd-hero[data-layout="copy-right"] .hd-hero__inner {
    align-items: flex-start;
  }

  .hd-hero[data-layout="copy-right"] .hd-hero__copy,
  .hd-hero[data-layout="copy-right"] .hd-hero__bar {
    margin-left: 0;
  }

  .hd-hero__slide--light.hd-hero__slide--copy-right .hd-hero__veil {
    background:
      linear-gradient(90deg, rgba(247, 250, 252, 0.86) 0%, rgba(247, 250, 252, 0.42) 44%, transparent 70%),
      linear-gradient(180deg, rgba(247, 250, 252, 0.12) 0%, transparent 22%, transparent 70%, rgba(11, 24, 36, 0.08) 100%);
  }

  .hd-hero__copy {
    max-width: 22rem;
  }

  .hd-hero__heading {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hd-hero__lede {
    font-size: 0.92rem;
    max-width: 20rem;
  }

  .hd-hero__slide:not(.hd-hero__slide--light) .hd-hero__veil {
    background:
      linear-gradient(90deg, rgba(8, 18, 30, 0.88) 0%, rgba(8, 18, 30, 0.55) 48%, rgba(8, 18, 30, 0.2) 100%),
      linear-gradient(180deg, rgba(8, 18, 30, 0.2) 0%, transparent 24%, rgba(8, 18, 30, 0.55) 100%);
  }
}

@media (max-width: 767px) {
  .hd-hero[data-theme="light"] {
    --hd-muted: rgba(30, 58, 76, 0.88);
  }

  .hd-hero__inner {
    padding: 1.15rem 1.15rem calc(1.15rem + var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }

  .hd-hero[data-layout="copy-right"] .hd-hero__inner {
    align-items: stretch;
  }

  .hd-hero__copy,
  .hd-hero[data-layout="copy-right"] .hd-hero__copy,
  .hd-hero[data-layout="copy-right"] .hd-hero__bar {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .hd-hero__copy {
    position: relative;
    z-index: 4;
    padding-top: 2.15rem;
  }

  .hd-hero[data-theme="light"] .hd-hero__copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: -0.85rem -0.85rem auto;
    height: calc(100% + 1.8rem);
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.9) 0%, rgba(247, 250, 252, 0.55) 62%, transparent 100%);
  }

  .hd-hero__tag {
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
  }

  .hd-hero__heading {
    margin-bottom: 0.7rem;
    font-size: clamp(1.7rem, 7.6vw, 2.05rem);
  }

  .hd-hero__lede {
    margin-bottom: 1.15rem;
    max-width: 34rem;
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .hd-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hd-hero__fg img,
  .hd-hero__slide--copy-right .hd-hero__fg img {
    left: auto;
    right: -4%;
    bottom: 0;
    height: 66%;
    max-width: 92%;
    object-position: right bottom;
  }

  .hd-hero__slide--copy-right .hd-hero__fg img {
    height: 72%;
    max-width: none;
    right: -6%;
  }

  .hd-hero__slide--light .hd-hero__veil,
  .hd-hero__slide--light.hd-hero__slide--copy-right .hd-hero__veil {
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.55) 0%, rgba(247, 250, 252, 0.28) 22%, transparent 48%),
      linear-gradient(0deg, rgba(247, 250, 252, 0.2) 0%, transparent 18%),
      linear-gradient(90deg, rgba(247, 250, 252, 0.5) 0%, transparent 58%);
  }

  .hd-hero__bar,
  .hd-hero[data-layout="copy-right"] .hd-hero__bar {
    width: 100%;
    gap: 0.55rem;
    z-index: 4;
    padding-bottom: 0;
  }

  .hd-hero__dir {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) and (max-height: 720px) {
  .hd-hero__copy {
    padding-top: 1.35rem;
  }

  .hd-hero__lede {
    font-size: 0.81rem;
    margin-bottom: 0.9rem;
  }

  .hd-hero__fg img {
    height: 58%;
  }

  .hd-hero__slide--copy-right .hd-hero__fg img {
    height: 64%;
  }

  .hd-hero__heading {
    margin-bottom: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-hero__btn,
  .hd-hero__dir,
  .hd-hero__more,
  .hd-hero__more i,
  .hd-hero__track span {
    transition: none !important;
  }
}
