.goal-carousel {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #252b48;
  color: #fff;
}
.goal-slide { position: absolute; inset: 0; }
.goal-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.goal-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgb(22 24 44 / 48%) 57%, rgb(22 24 44 / 96%) 100%);
  pointer-events: none;
}
.goal-slide.is-entering img { animation: reveal-goal 440ms ease-out; }
@keyframes reveal-goal { from { opacity: .65; transform: translateX(2%); } to { opacity: 1; transform: none; } }
.goal-caption {
  position: absolute;
  z-index: 1;
  inset-inline: clamp(20px, 4vw, 56px);
  bottom: 66px;
}
.goal-caption h2 { color: #fff; font-size: clamp(39px, 5vw, 73px); }
.goal-caption .goal-title-long { font-size: clamp(32px, 4.2vw, 60px); text-wrap: balance; }
.goal-caption p { max-width: 39ch; margin-top: 7px; color: #f6f3fc; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.45; }
.goal-caption a { display: inline-block; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 650; text-underline-offset: 4px; }
.goal-controls { position: absolute; z-index: 2; inset-inline: clamp(20px, 4vw, 56px); bottom: 12px; align-items: center; justify-content: space-between; gap: 8px; }
.goal-controls:not([hidden]), .goal-dots, .goal-actions { display: flex; }
.goal-actions { gap: 0; }
.goal-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  min-width: 30px;
  min-height: 42px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.goal-controls button:focus-visible, .goal-caption a:focus-visible { outline-color: #fff; outline-offset: 2px; }
.goal-dots button > span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid white; }
.goal-dots button[aria-current] > span { background: white; }
.goal-actions button { position: relative; width: 40px; font-size: 14px; }
.goal-actions button::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  pointer-events: none;
}
.goal-actions button:hover::before { background: rgb(255 255 255 / 15%); }
.goal-actions button > span { position: relative; }
.goal-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .goal-carousel { min-height: clamp(340px, 70vw, 480px); }
  .goal-caption h2 { font-size: clamp(38px, 8vw, 56px); }
}
@media (max-width: 360px) {
  .goal-dots button { min-width: 26px; }
  .goal-actions button { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .goal-slide.is-entering img { animation: none; }
}
