.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: 7.5rem;
  padding-bottom: 4.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  background-color: transparent;
  transition: background-color 0.35s ease;
}

/* Fills any sub-pixel gap during layer crossfades (avoids white body showing through) */
.home-hero.is-expanded {
  background-color: #071417;
}

.home-hero__state-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.home-hero__state-bg--default {
  opacity: 1;
  background: linear-gradient(to bottom right, #f9fafb 0%, #ffffff 100%);
}

.home-hero__state-bg--expanded {
  opacity: 0;
  pointer-events: none;
  /* Solid base under photo crossfades so inactive slides at opacity 0 never reveal white */
  background-color: #071417;
  /* Stable composited layer during opacity swaps (reduces full-section flash on some GPUs) */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.home-hero.is-expanded .home-hero__state-bg--default {
  opacity: 0;
  z-index: 0;
}

.home-hero.is-expanded .home-hero__state-bg--expanded {
  opacity: 1;
  z-index: 1;
}

.home-hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.home-hero__bg-image.is-active {
  z-index: 1;
  opacity: 1;
}

/* Outgoing slide paints above the incoming one while both fade — avoids a 1-frame “hole” to the white page */
.home-hero__bg-image.is-exiting {
  z-index: 2;
}

.home-hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__bg-grad {
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.home-hero__container {
  position: relative;
  z-index: 10;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .home-hero__container {
    max-width: var(--container-max);
    padding: 0 var(--gutter);
  }
}

.home-hero__heading-wrap,
.home-hero__bottom {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-hero__bottom {
  transform: translateY(20px);
}

.home-hero__heading-wrap.is-visible,
.home-hero__bottom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero__heading-wrap {
  margin-bottom: 2rem;
}

.home-hero__heading {
  margin: 0;
  color: #0c2226;
  /* HeroCarousel (NewHomePage): text-[64px] leading-[1.1] tracking-tight */
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  transition: color 0.5s ease, filter 0.5s ease;
}

.home-hero.is-expanded .home-hero__heading {
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #52e081 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 2px #194247);
}

.home-hero__stage {
  min-height: 300px;
  position: relative;
}

.home-hero__default {
  position: relative;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  max-height: 820px;
  overflow: hidden;
  pointer-events: auto;
  will-change: opacity, transform;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    visibility 0s linear 0s;
}

.home-hero.is-expanded .home-hero__default {
  opacity: 0;
  transform: scale(0.95);
  max-height: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    visibility 0s linear 0.5s;
}

.home-hero__blur {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.home-hero__blur--green {
  top: 0;
  left: 4rem;
  width: 8rem;
  height: 8rem;
  background: rgba(82, 224, 129, 0.2);
  filter: blur(48px);
}

.home-hero__blur--teal {
  bottom: 3rem;
  left: 3rem;
  width: 10rem;
  height: 10rem;
  background: rgba(51, 112, 119, 0.3);
  filter: blur(40px);
}

.home-hero__row {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: 1.5rem 0;
  /* Allow hover lift to render — clip horizontally only */
  overflow-x: hidden;
  overflow-y: visible;
  /* Prevent layout dip while inactive ↔ active width/height swap (stops hero + below sections jumping) */
  min-height: 420px;
}

.home-hero__track {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.home-hero__card {
  position: relative;
  flex-shrink: 0;
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transform-origin: 50% 50%;
  color: inherit;
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.45s ease,
    transform 0.4s ease,
    width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-hero__card:focus {
  outline: none;
}

.home-hero__card:focus-visible {
  outline: 2px solid #337077;
  outline-offset: 3px;
}

.home-hero__card:hover {
  transform: translateY(-4px) scale(1.02);
}

.home-hero__card.is-active {
  width: 360px;
  height: 420px;
  background: transparent;
}

.home-hero__card:not(.is-active) {
  width: 225px;
  height: 280px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(140, 161, 163, 0.2);
}

.home-hero__card:not(.is-active):hover {
  border-color: rgba(51, 112, 119, 0.1);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Avoid native button press “flash” / transform jump on click */
.home-hero__card:not(.is-active):active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(140, 161, 163, 0.2);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.home-hero__card.is-active:active {
  background: transparent;
  transform: none;
}

.home-hero__card-active {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.home-hero__card.is-active .home-hero__card-active {
  opacity: 1;
  transform: scale(1);
}

.home-hero__card-active-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__card-active-grad {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.home-hero__card-active-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #071417 0%, rgba(7, 20, 23, 0.5) 50%, transparent 100%);
}

.home-hero__card-active-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  text-align: left;
}

.home-hero__card-active-copy {
  text-align: left;
  width: 100%;
}

.home-hero__card-active-tag {
  margin: 0 0 1rem;
  color: #d1d5dc;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

.home-hero__card-active-title {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
}

.home-hero__card-active-desc {
  margin: 0;
  color: #d1d5dc;
  font-size: 16px;
  line-height: 1.625;
  font-weight: 400;
}

.home-hero__card-small {
  position: absolute;
  inset: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.55s ease, transform 0.55s ease;
  text-align: left;
}

.home-hero__card.is-active .home-hero__card-small {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.home-hero__card-small-media {
  height: 165px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.home-hero__card-small-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.home-hero__card-small-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 66, 71, 0.75);
}

.home-hero__card-small-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.home-hero__card-small-body-inner {
  padding: 12px;
}

.home-hero__card-small-tag {
  margin: 0 0 0.5rem;
  color: #337077;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

.home-hero__card-small-title {
  display: block;
  margin: 0;
  color: #0c2226;
  /* HeroCarousel inactive: text-lg → 18px */
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

.home-hero__expanded {
  position: relative;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: 0;
  transform: scale(0.95);
  will-change: opacity, transform;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    visibility 0s linear 0.5s;
}

.home-hero.is-expanded .home-hero__expanded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 860px;
  transform: scale(1);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    visibility 0s linear 0s;
}

.home-hero__expanded-shell {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.home-hero__expanded-left {
  flex: 1;
  max-width: 42rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s,
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s;
}

.home-hero.is-expanded .home-hero__expanded-left {
  opacity: 1;
  transform: translateY(0);
}

.home-hero__expanded-left.is-content-swapping {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.32s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-hero__expanded-tag {
  margin: 0 0 1rem;
  color: #52e081;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.home-hero__expanded-title {
  margin: 0 0 1.5rem;
  color: #ecfae5;
  /* HeroCarousel: text-5xl → 48px */
  font-size: 48px;
  line-height: 1.25;
  font-weight: 500;
}

.home-hero__expanded-desc {
  margin: 0 0 2rem;
  color: #d1d5dc;
  /* HeroCarousel: text-xl → 20px */
  font-size: 20px;
  line-height: 1.625;
  font-weight: 400;
}

.home-hero__expanded-right {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s;
}

.home-hero.is-expanded .home-hero__expanded-right {
  opacity: 1;
}

.home-hero__expanded-right.is-cards-swapping {
  opacity: 0.35;
  transition: opacity 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-hero__expanded-card.is-card-enter {
  animation: homeHeroExpandedCardIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: var(--hero-card-enter-delay, 0s);
}

@keyframes homeHeroExpandedCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-hero__expanded-card {
  width: 220px;
  height: 280px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.home-hero__expanded-card:focus {
  outline: none;
}

.home-hero__expanded-card:focus-visible {
  outline: 2px solid rgba(82, 224, 129, 0.65);
  outline-offset: 2px;
}

.home-hero__expanded-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05) translateY(-4px);
}

.home-hero__expanded-card:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02) translateY(-2px);
}

.home-hero__expanded-card-media {
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.home-hero__expanded-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.home-hero__expanded-card-tint {
  position: absolute;
  inset: 0;
  background: rgba(25, 66, 71, 0.6);
}

.home-hero__expanded-card-tag {
  display: block;
  margin: 0 0 0.5rem;
  color: #52e081;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.home-hero__expanded-card-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

.home-hero__bottom {
  margin-top: 2.75rem;
  transition-delay: 0.4s;
}

.home-hero__pager {
  display: none;
}

.home-hero__description {
  margin: 0 0 2.5rem;
  max-width: 44rem;
  color: #4b5563;
  /* HeroCarousel bottom copy: text-[24px] */
  font-size: 24px;
  line-height: 1.625;
  font-weight: 400;
  transition: color 0.5s ease;
}

.home-hero.is-expanded .home-hero__description {
  color: #ffffff;
}

.home-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* HeroCarousel: px-8 py-4 rounded-full */
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-hero__btn--primary {
  background: #194247;
  color: #ffffff;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.home-hero__btn--primary:hover {
  background: #0c2226;
  box-shadow:
    0 20px 25px -5px rgba(25, 66, 71, 0.2),
    0 8px 10px -6px rgba(25, 66, 71, 0.12);
}

.home-hero.is-expanded .home-hero__btn--primary {
  background: #52e081;
  color: #194247;
}

.home-hero.is-expanded .home-hero__btn--primary:hover {
  background: rgba(82, 224, 129, 0.9);
}

.home-hero__btn--secondary {
  border: 2px solid #d1d5db;
  color: #374151;
  background: transparent;
}

.home-hero__btn--secondary:hover {
  border-color: #337077;
  background: #f9fafb;
}

.home-hero.is-expanded .home-hero__btn--secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.home-hero.is-expanded .home-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .home-hero {
    padding-top: 6.75rem;
    padding-bottom: 4.25rem;
  }

  .home-hero__container {
    max-width: 58rem;
    padding: 0 1.5rem;
  }

  .home-hero__heading {
    /* Slightly below Figma 64px on laptop — keeps wrap readable */
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .home-hero__card.is-active {
    width: 340px;
    height: 420px;
  }

  .home-hero__card:not(.is-active) {
    width: 210px;
    height: 270px;
  }

  .home-hero__expanded-shell {
    flex-direction: column;
    gap: 1.25rem;
  }

  .home-hero__expanded-title {
    font-size: 40px;
    line-height: 1.1;
  }

  .home-hero__description {
    font-size: 22px;
    line-height: 1.7;
  }

  .home-hero__expanded-right {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .home-hero__expanded-right::-webkit-scrollbar {
    display: none;
  }

  .home-hero__expanded-card {
    width: 210px;
    height: 270px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .home-hero__container {
    /* max-width: 393px; */
    padding: 0 var(--gutter);
  }

  .home-hero__heading {
    font-size: 40px;
    line-height: 42px;
    letter-spacing: -1.6px;
    font-weight: 500;
  }

  .home-hero__heading-wrap {
    margin-bottom: 0.75rem;
  }

  .home-hero__stage {
    min-height: 0;
  }

  .home-hero__expanded-shell {
    gap: 24px;
  }

  .home-hero__expanded-left {
    max-width: 345px;
  }

  .home-hero__expanded-tag {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1em;
  }

  .home-hero__expanded-title {
    font-size: 36px;
    line-height: 38px;
    margin-bottom: 0.75rem;
    font-weight: 500;
  }

  .home-hero__expanded-desc {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 0;
  }

  .home-hero__row,
  .home-hero__expanded-right {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 5px;
    padding-left: 0;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 24px;
  }

  .home-hero__track {
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-hero.is-reordering .home-hero__row {
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .home-hero.is-reordering .home-hero__card,
  .home-hero.is-reordering .home-hero__card-active,
  .home-hero.is-reordering .home-hero__card-small {
    transition: none !important;
  }

  .home-hero.is-reordering .home-hero__card:not(.is-active) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-hero__row {
    min-height: 360px;
  }

  .home-hero__row::-webkit-scrollbar,
  .home-hero__expanded-right::-webkit-scrollbar {
    display: none;
  }

  .home-hero__card {
    scroll-snap-align: center;
    transition:
      border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-hero__card-active,
  .home-hero__card-small {
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-hero__card.is-active {
    scroll-snap-align: start;
    width: 300px;
    height: 360px;
  }

  .home-hero__card:not(.is-active) {
    width: 240px;
    height: 300px;
  }

  .home-hero__expanded-card {
    width: 240px;
    height: 300px;
    padding: 24px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .home-hero__bg-image {
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-hero.is-expanded .home-hero__expanded {
    transition:
      opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      max-height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .home-hero__expanded-left.is-content-swapping {
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-hero__expanded-right.is-cards-swapping {
    opacity: 0.55;
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-hero__expanded-card.is-card-enter {
    animation: homeHeroExpandedCardInMobile 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--hero-card-enter-delay, 0s);
  }

  @keyframes homeHeroExpandedCardInMobile {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.97);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .home-hero__expanded-card-media {
    height: 116px;
  }

  .home-hero__description {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
    max-width: 345px;
  }

  .home-hero__bottom {
    margin-top: 2.25rem;
  }

  .home-hero__pager {
    width: 345px;
    height: 39.98px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 31.99px;
    margin: 24px 0 0;
  }

  .home-hero__pager-btn {
    width: 39.98px;
    height: 39.98px;
    border: 0;
    background: transparent;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .home-hero__pager-chevron {
    width: 10px;
    height: 10px;
    border-top: 2px solid #8ca1a3;
    border-right: 2px solid #8ca1a3;
    display: inline-block;
  }

  .home-hero__pager-chevron--left {
    transform: rotate(-135deg);
  }

  .home-hero__pager-chevron--right {
    transform: rotate(45deg);
  }

  .home-hero__pager-count {
    width: 59px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 24px;
    font-weight: 700;
  }

  /* Default (light) mobile — matches Figma + home-testimonials arrow tone */
  .home-hero__pager-current {
    color: #337077;
  }

  .home-hero__pager-divider,
  .home-hero__pager-total {
    color: #0c2226;
  }

  /* Expanded / dark hero: keep high-contrast pager (was previous green-on-dark) */
  .home-hero.is-expanded .home-hero__pager-chevron {
    border-top-color: rgba(255, 255, 255, 0.55);
    border-right-color: rgba(255, 255, 255, 0.55);
  }

  .home-hero.is-expanded .home-hero__pager-current {
    color: #52e081;
  }

  .home-hero.is-expanded .home-hero__pager-divider,
  .home-hero.is-expanded .home-hero__pager-total {
    color: #e7ecea;
  }

  .home-hero__actions {
    width: 100%;
    gap: 16px;
    flex-direction: column;
  }

  .home-hero__btn {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 2rem;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 9999px;
  }

  .home-hero__btn--secondary {
    border-width: 2px;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .home-hero__card {
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }

    .home-hero.is-reordering .home-hero__card {
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }
  }
}

/* Desktop (lg+) — ~32px shorter section; tablet/mobile breakpoints unchanged */
@media (min-width: 1025px) {
  .home-hero {
    padding-top: 7.25rem;
    padding-bottom: 4.25rem;
  }

  .home-hero__row {
    min-height: 400px;
    padding: 1.25rem 0.5rem;
  }

  .home-hero__card.is-active {
    height: 400px;
  }

  .home-hero__card:not(.is-active) {
    height: 268px;
  }

  .home-hero__card-small-media {
    height: 158px;
  }

  .home-hero__default {
    max-height: 800px;
  }

  .home-hero.is-expanded .home-hero__expanded {
    max-height: 840px;
  }

  .home-hero__expanded-card {
    height: 268px;
  }

  .home-hero__expanded-card-media {
    height: 102px;
  }
}

@media (max-width: 480px) {
  .home-hero__container {
    padding: 0 var(--gutter);
  }

  .home-hero__heading {
    font-size: 34px;
    line-height: 38px;
  }

  .home-hero__pager {
    width: 100%;
  }
}
