* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: #080808;
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

.feature-carousel {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #f5f4f2;
}

.diagnosis-feature {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #f8f7f6;
}

.feature-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.feature-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.feature-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.feature-media img,
.feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-slide--modern .feature-media img {
  object-position: center;
}

.modern-copy {
  position: absolute;
  top: 3%;
  left: 50%;
  width: min(94%, 660px);
  text-align: center;
  transform: translateX(-50%);
}

.modern-copy h1,
.slide-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.modern-copy p {
  margin: 12px 0 0;
  color: #292929;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
}

.capacity-shade,
.diagnosis-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.capacity-shade {
  background: linear-gradient(90deg, rgb(255 255 255 / 92%) 0%, rgb(255 255 255 / 78%) 32%, transparent 68%);
}

.slide-copy {
  position: absolute;
  z-index: 1;
  width: min(39%, 540px);
}

.capacity-copy {
  top: 50%;
  left: 10.8%;
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 4px;
  color: #3a3a3a;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 700;
}

.capacity-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.capacity-copy > p:last-child,
.diagnosis-copy > p {
  margin: 14px 0 0;
  color: #333;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.45;
}

.diagnosis-feature .feature-media img {
  object-position: center;
}

.diagnosis-shade {
  background: linear-gradient(90deg, rgb(255 255 255 / 80%) 0%, rgb(255 255 255 / 56%) 31%, transparent 56%);
}

.diagnosis-copy {
  top: 50%;
  left: 10%;
  width: min(33%, 470px);
  transform: translateY(-50%);
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 54px;
  height: 76px;
  padding: 0;
  place-items: center;
  color: #343434;
  border: 0;
  background: rgb(255 255 255 / 36%);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 150ms ease;
}

.carousel-arrow:hover {
  background: rgb(255 255 255 / 72%);
}

.carousel-arrow--previous {
  left: 0;
}

.carousel-arrow--next {
  right: 0;
}

.carousel-arrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.carousel-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px rgb(0 0 0 / 55%);
  cursor: pointer;
}

.carousel-dot.is-active {
  border-color: #a50034;
  background: #a50034;
}

@media (max-width: 767px) {
  .feature-carousel {
    height: 100svh;
    min-height: 600px;
  }

  .diagnosis-feature {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    gap: 18px;
    padding: 8% 7% 20px;
  }

  .feature-slide--modern .feature-media img {
    object-position: center;
  }

  .modern-copy {
    top: 3.5%;
    width: calc(100% - 28px);
  }

  .modern-copy h1,
  .slide-copy h2 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }

  .modern-copy p {
    max-width: 360px;
    margin: 8px auto 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .capacity-shade {
    background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 88%) 39%, rgb(255 255 255 / 5%) 78%);
  }

  .capacity-copy {
    top: 7%;
    left: 7%;
    width: 86%;
    transform: none;
  }

  .eyebrow {
    font-size: 1.05rem;
  }

  .capacity-copy h2 {
    max-width: 440px;
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .capacity-copy > p:last-child,
  .diagnosis-copy > p {
    margin-top: 10px;
    font-size: 0.93rem;
    line-height: 1.4;
  }

  .diagnosis-feature .feature-media {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 538;
  }

  .diagnosis-feature .feature-media img {
    object-fit: contain;
    object-position: center;
  }

  .diagnosis-shade {
    display: none;
  }

  .diagnosis-copy {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: 100%;
    transform: none;
  }

  .carousel-arrow {
    width: 40px;
    height: 58px;
    background: rgb(255 255 255 / 55%);
  }

  .carousel-arrow--previous {
    left: 0;
  }

  .carousel-arrow--next {
    right: 0;
  }

  .carousel-controls {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
