.oboxia-hero-carousel {
  position: relative;
  isolation: isolate;
}

.hero-carousel {
  --hero-safe-right: 3.125rem;
  position: relative;
  width: calc(100% - var(--hero-safe-right));
  aspect-ratio: 1 / 1;
  overflow: visible;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 78% 18%, rgba(150, 213, 244, 0.34), transparent 34%),
    linear-gradient(145deg, #f7f2ff 0%, #f9f8f6 48%, #eef8fd 100%);
  box-shadow: 0 24px 70px rgba(35, 26, 52, 0.13);
}

.hero-carousel__viewport,
.hero-slide {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hero-carousel__viewport {
  overflow: visible;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.is-exiting {
  opacity: 0;
}

.hero-slide [data-motion] {
  opacity: 0;
  transform: translate3d(var(--enter-x, 0), var(--enter-y, 12px), 0) scale(var(--enter-scale, 0.98));
  filter: blur(4px);
  transition:
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
    filter 220ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

.hero-slide.is-active [data-motion] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.hero-slide.is-exiting [data-motion] {
  opacity: 0;
  transform: translate3d(var(--exit-x, -4px), var(--exit-y, 0), 0) scale(0.99);
  filter: blur(4px);
  transition-delay: var(--exit-delay, 0ms);
}

.hero-slide__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-slide__photo img,
.hero-slide__site img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-slide__photo img {
  object-fit: cover;
  object-position: center;
}

.hero-slide__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(252, 251, 249, 0.72) 0%, transparent 31%),
    linear-gradient(0deg, rgba(20, 17, 27, 0.38) 0%, transparent 42%);
  pointer-events: none;
}

.hero-slide__eyebrow,
.hero-slide__site,
.hero-slide__stat {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(30, 24, 43, 0.16);
}

.hero-slide__eyebrow {
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  color: #201a27;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-slide__eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f2dbd, #91d5f4);
  box-shadow: 0 0 0 0.28rem rgba(111, 45, 189, 0.1);
}

.hero-slide--sangare {
  background: #102d3e;
}

.hero-slide--sangare .hero-slide__photo img {
  object-position: center;
}

.hero-slide--sangare .hero-slide__photo::after {
  background:
    linear-gradient(90deg, rgba(10, 38, 55, 0.94) 0%, rgba(10, 38, 55, 0.76) 42%, rgba(10, 38, 55, 0.42) 100%),
    linear-gradient(0deg, rgba(7, 28, 41, 0.75) 0%, transparent 55%);
}

.hero-slide--sangare .hero-slide__eyebrow-dot {
  background: #c9942f;
  box-shadow: 0 0 0 0.28rem rgba(201, 148, 47, 0.14);
}

.hero-slide--sicot {
  background: #17363e;
}

.hero-slide--sicot .hero-slide__photo img {
  object-position: center 24%;
}

.hero-slide--sicot .hero-slide__photo::after {
  background:
    linear-gradient(90deg, rgba(9, 75, 78, 0.62) 0%, rgba(9, 75, 78, 0.18) 48%, transparent 78%),
    linear-gradient(0deg, rgba(7, 38, 44, 0.58) 0%, transparent 52%);
}

.hero-slide--sicot .hero-slide__eyebrow-dot {
  background: #41bdb8;
  box-shadow: 0 0 0 0.28rem rgba(65, 189, 184, 0.14);
}

.hero-slide--menuilys {
  background: #3b2a1b;
}

.hero-slide--menuilys .hero-slide__photo img {
  object-position: center;
}

.hero-slide--menuilys .hero-slide__photo::after {
  background:
    linear-gradient(90deg, rgba(50, 34, 20, 0.78) 0%, rgba(50, 34, 20, 0.28) 45%, rgba(50, 34, 20, 0.08) 78%),
    linear-gradient(0deg, rgba(32, 22, 14, 0.68) 0%, transparent 56%);
}

.hero-slide--menuilys .hero-slide__eyebrow-dot {
  background: #a7bd50;
  box-shadow: 0 0 0 0.28rem rgba(167, 189, 80, 0.16);
}

.hero-slide__portrait {
  position: absolute;
  z-index: 2;
  right: -0.5rem;
  bottom: 0;
  width: 58%;
  height: 91%;
  pointer-events: none;
}

.hero-slide__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-18px 20px 28px rgba(5, 22, 32, 0.3));
}

.hero-slide__brand {
  position: absolute;
  z-index: 4;
  top: 1rem;
  left: 5rem;
  width: 8.25rem;
  padding: 0.5rem 0.68rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(4, 22, 32, 0.2);
}

.hero-slide__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slide__brand--sicot {
  width: 9.4rem;
  padding: 0.58rem 0.7rem;
}

.hero-slide__brand--menuilys {
  width: 8.8rem;
  padding: 0.48rem 0.64rem;
}

.hero-slide__site {
  left: clamp(-2.6rem, -3vw, -1.1rem);
  bottom: clamp(-2rem, -2.4vw, -0.85rem);
  width: 64%;
  padding: 0.38rem;
  overflow: hidden;
  border-radius: 1.15rem;
  box-shadow: 0 22px 54px rgba(30, 24, 43, 0.22);
}

.hero-slide__site-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.86rem;
  background: #fff;
}

.hero-slide__site img {
  object-fit: cover;
  object-position: top center;
}

.hero-slide__site-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.7rem 0.38rem;
  color: #201a27;
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-slide__site-label span:last-child {
  color: #6f2dbd;
}

.hero-slide__stats {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: 1.05rem;
  width: 33.5%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.hero-slide__stat {
  position: relative;
  min-width: 0;
  padding: 0.7rem 0.42rem;
  border-radius: 0.9rem;
  text-align: center;
}

.hero-slide__stat--primary {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.82rem 0.72rem;
  text-align: left;
}

.hero-slide__stat strong {
  display: block;
  color: #17131d;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.hero-slide__stat--primary strong {
  color: #6f2dbd;
  font-size: 1.5rem;
}

.hero-slide__stat span {
  display: block;
  margin-top: 0.28rem;
  color: #746e7a;
  font-size: 0.54rem;
  line-height: 1.15;
}

.hero-slide__stat--primary span {
  margin-top: 0;
  color: #413949;
  font-size: 0.67rem;
  font-weight: 700;
}

.hero-slide__stat--primary small {
  margin-left: auto;
  padding: 0.25rem 0.38rem;
  border-radius: 999px;
  color: #fff;
  background: #102d3e;
  font-family: "Outfit", sans-serif;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-slide__stat:nth-child(2) strong { color: #1199a7; }
.hero-slide__stat:nth-child(3) strong { color: #e85d36; }
.hero-slide__stat:nth-child(4) strong { color: #6f2dbd; }

.hero-slide__site--sangare .hero-slide__site-label span:last-child,
.hero-slide__stats--sangare .hero-slide__stat--primary strong {
  color: #b88018;
}

.hero-slide__stats--sangare .hero-slide__stat:nth-child(2) strong { color: #167d93; font-size: 0.92rem; }
.hero-slide__stats--sangare .hero-slide__stat:nth-child(3) strong { color: #b88018; }
.hero-slide__stats--sangare .hero-slide__stat:nth-child(4) strong { color: #102d3e; }

.hero-slide__site--sicot .hero-slide__site-label span:last-child,
.hero-slide__stats--sicot .hero-slide__stat--primary strong {
  color: #118d91;
}

.hero-slide__stats--sicot .hero-slide__stat--primary small {
  background: #118d91;
}

.hero-slide__stats--sicot .hero-slide__stat:nth-child(2) strong { color: #168fb5; }
.hero-slide__stats--sicot .hero-slide__stat:nth-child(3) strong { color: #118d91; }
.hero-slide__stats--sicot .hero-slide__stat:nth-child(4) strong { color: #536aa3; }
.hero-slide__stats--sicot .hero-slide__stat:nth-child(3) span { font-size: 0.47rem; }

.hero-slide__site--menuilys .hero-slide__site-label span:last-child,
.hero-slide__stats--menuilys .hero-slide__stat--primary strong {
  color: #7f9630;
}

.hero-slide__stats--menuilys .hero-slide__stat--primary small {
  background: #4b3521;
}

.hero-slide__stats--menuilys .hero-slide__stat:nth-child(2) strong { color: #6f8c2e; }
.hero-slide__stats--menuilys .hero-slide__stat:nth-child(3) strong { color: #b57b2d; }
.hero-slide__stats--menuilys .hero-slide__stat:nth-child(4) strong { color: #4b3521; }

.hero-carousel__controls {
  position: absolute;
  z-index: 10;
  right: 1rem;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(32, 26, 39, 0.16);
  transform: translateY(-50%);
}

.hero-carousel__button,
.hero-carousel__dot {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.hero-carousel__button {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #403848;
  transition:
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
    color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel__button:hover {
  color: #6f2dbd;
  background: rgba(111, 45, 189, 0.09);
  transform: translateY(-1px);
}

.hero-carousel__button:active {
  transform: scale(0.97);
}

.hero-carousel__button:focus-visible,
.hero-carousel__dot:focus-visible {
  outline: 2px solid #6f2dbd;
  outline-offset: 2px;
}

.hero-carousel__button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-carousel__dots {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.28rem 0;
}

.hero-carousel__dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border-radius: 999px;
  background: #c9c3cf;
  transition:
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel__dot[aria-current="true"] {
  background: #6f2dbd;
  transform: scale(1.05);
}

.hero-carousel__status {
  position: absolute;
  z-index: 6;
  left: 1rem;
  top: 1rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(24, 20, 31, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Outfit", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-carousel.is-instant .hero-slide [data-motion] {
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}

@media (max-width: 639px) {
  .hero-carousel {
    border-radius: 1.5rem;
  }

  .hero-slide__site {
    left: -0.7rem;
    bottom: -0.9rem;
    width: 70%;
  }

  .hero-slide__brand {
    left: 4.5rem;
    width: 7rem;
  }

  .hero-slide__portrait {
    right: -0.8rem;
    width: 64%;
    height: 88%;
  }

  .hero-slide__stats {
    width: 30%;
    gap: 0.3rem;
  }

  .hero-slide__stat {
    padding: 0.58rem 0.22rem;
  }

  .hero-slide__stat--primary {
    padding: 0.68rem 0.4rem;
  }

  .hero-carousel__controls {
    right: 0.65rem;
  }

}

/* Close the partner-logo grid after its final LinkedIn cell. */
[class~="border-y"][class~="border-border"][class~="bg-surface"] > div > ul > li:last-child {
  border-right: 1px solid var(--border);
}

/* Client proof: the person leads, the dashboard supports the story. */
.case-study--featured-client .case-study-client {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: min(100%, 20rem);
  padding: 0.45rem 1.15rem 0.45rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.case-study-client__portrait {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  border: 2px solid #9bdef4;
  border-radius: 50%;
  background: linear-gradient(145deg, #183545, #4c6c7a);
  box-shadow: 0 0 0 0.28rem rgba(155, 222, 244, 0.11);
}

.case-study-client__portrait img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center 5%;
}

.case-study-client__identity {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.case-study-client__identity strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}

.case-study-client__identity small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.case-study--featured-client .case-study-metric {
  position: relative;
  overflow: hidden;
  min-height: 5.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.06));
}

.case-study--featured-client .case-study-metric::after {
  content: "";
  position: absolute;
  right: -1.3rem;
  bottom: -1.3rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--metric-accent);
  opacity: 0.08;
}

.case-study-metric__value {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.case-study-metric__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--metric-accent) 48%, transparent);
  border-radius: 0.8rem;
  color: var(--metric-accent);
  background: color-mix(in srgb, var(--metric-accent) 13%, transparent);
}

.case-study-metric__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-study--featured-client .case-study-metric:last-child .case-study-metric__value {
  gap: 0.45rem;
  font-size: 1.22rem;
  white-space: nowrap;
}

.case-study--featured-client .case-study-metric:last-child .case-study-metric__icon {
  width: 2rem;
  height: 2rem;
}

.case-study-media {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.case-study-media__card {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.065);
}

.case-study-media__frame {
  height: 10.75rem;
  overflow: hidden;
  background: #eef0f2;
}

.case-study-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.case-study-media__card--site .case-study-media__frame img {
  object-position: 42% top;
}

.case-study-media__card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  font-weight: 700;
}

.case-study-media__card figcaption small {
  color: #9bdef4;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .case-study--featured-client .case-study-client {
    width: 100%;
    border-radius: 1.4rem;
  }

  .case-study-client__portrait {
    width: 3.8rem;
    height: 3.8rem;
  }

  .case-study-media {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide [data-motion],
  .hero-slide,
  .hero-carousel__button,
  .hero-carousel__dot {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    filter: none !important;
  }
}

/* Responsive hero: a dedicated, non-overlapping proof carousel. */
@media (max-width: 1023px) {
  .oboxia-hero-carousel {
    width: 100%;
    max-width: 38rem;
    margin-inline: auto;
  }

  .hero-carousel {
    --hero-safe-right: 0rem;
    width: 100%;
    height: clamp(30rem, calc(62.5vw + 15rem), 41rem);
    aspect-ratio: auto;
    overflow: hidden;
    border: 1px solid rgba(111, 45, 189, 0.1);
    border-radius: 1.5rem;
    background:
      radial-gradient(circle at 84% 8%, rgba(150, 213, 244, 0.28), transparent 32%),
      linear-gradient(155deg, #faf7ff 0%, #fcfbf9 54%, #f2f9fc 100%);
    box-shadow: 0 1.25rem 3.5rem rgba(35, 26, 52, 0.12);
  }

  .hero-carousel__viewport {
    inset: 0.75rem 0.75rem 4.75rem;
    overflow: hidden;
    border-radius: 1.05rem;
  }

  .hero-slide {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.65rem;
    background: transparent !important;
  }

  .hero-slide__photo,
  .hero-slide__portrait,
  .hero-slide__brand,
  .hero-slide__eyebrow {
    display: none !important;
  }

  .hero-slide__site,
  .hero-slide__stats {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .hero-slide__site {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 0.35rem;
    border: 1px solid rgba(111, 45, 189, 0.09);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.8rem 2rem rgba(30, 24, 43, 0.13);
  }

  .hero-slide__site-frame {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0.72rem;
  }

  .hero-slide__site img {
    object-fit: cover;
    object-position: top center;
  }

  .hero-slide__site-label {
    min-height: 2.35rem;
    padding: 0.55rem 0.6rem 0.25rem;
    font-size: 0.68rem;
  }

  .hero-slide__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hero-slide__stat {
    min-height: 3.7rem;
    padding: 0.65rem 0.3rem;
    border: 1px solid rgba(111, 45, 189, 0.07);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.45rem 1.15rem rgba(30, 24, 43, 0.09);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-slide__stat--primary {
    grid-column: 1 / -1;
    min-height: 3rem;
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
  }

  .hero-slide__stat strong {
    font-size: 1.05rem;
  }

  .hero-slide__stat--primary strong {
    font-size: 1.4rem;
  }

  .hero-slide__stat span {
    font-size: 0.58rem;
  }

  .hero-slide__stat--primary span {
    font-size: 0.72rem;
  }

  .hero-slide__stat--primary small {
    font-size: 0.48rem;
  }

  .hero-carousel__status {
    display: none;
  }

  .hero-carousel__controls {
    inset: auto auto 0.65rem 50%;
    flex-direction: row;
    gap: 0.2rem;
    min-height: 3rem;
    padding: 0.2rem 0.35rem;
    transform: translateX(-50%);
  }

  .hero-carousel__button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-carousel__button:hover {
    transform: none;
  }

  .hero-carousel__button:active {
    transform: scale(0.97);
  }

  .hero-carousel__dots {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.65rem 0.4rem;
  }

  .hero-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .hero-carousel__button[data-toggle] {
    display: none;
  }
}

@media (max-width: 359px) {
  .hero-carousel__viewport {
    inset-inline: 0.6rem;
  }

  .hero-slide__site-label {
    font-size: 0.62rem;
  }

  .hero-slide__stat--primary {
    padding-inline: 0.65rem;
  }

  .hero-slide__stat strong {
    font-size: 0.95rem;
  }

  .hero-slide__stat span {
    font-size: 0.53rem;
  }
}
