.hero-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

.hero-carousel {
  --hero-slides: 3;
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hero-track {
  display: flex;
  width: calc(var(--hero-slides) * 100%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-carousel[data-reduced-motion="true"] .hero-track {
  transition-duration: 0.01ms;
}

.hero-slide {
  flex: 0 0 calc(100% / var(--hero-slides));
  min-width: calc(100% / var(--hero-slides));
  display: flex;
  align-items: stretch;
  min-height: min(42vw, 340px);
  max-height: min(52vw, 500px);
  background: #ececec;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-slide__visual {
  flex: 1;
  position: relative;
  min-height: 320px;
}

.hero-slide__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.hero-slide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem max(var(--layout-gutter, clamp(0.9375rem, 2.85vw, 1.875rem)), env(safe-area-inset-right, 0))
    0.25rem max(var(--layout-gutter, clamp(0.9375rem, 2.85vw, 1.875rem)), env(safe-area-inset-left, 0));
  background: transparent;
}

.hero-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-toggle:hover {
  background: transparent;
  transform: translateY(-1px);
}

.hero-toggle:focus-visible {
  outline: 2px solid #c41e3a;
  outline-offset: 3px;
}

.hero-toggle__icon--play {
  display: none;
}

.hero-toggle[aria-pressed="false"] .hero-toggle__icon--pause {
  display: none;
}

.hero-toggle[aria-pressed="false"] .hero-toggle__icon--play {
  display: block;
}

.hero-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero-dot:hover {
  background: #333;
}

.hero-dot.is-active {
  background: #c41e3a;
  transform: scale(1.15);
}

.hero-dot:focus-visible {
  outline: 2px solid #c41e3a;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-slide {
    min-height: min(52vw, 260px);
    max-height: min(62vw, 340px);
  }

  .hero-slide__visual {
    min-height: 240px;
  }

  .hero-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-bottom: clamp(0.85rem, 3vw, 1.25rem);
  }

  .hero-slide {
    min-height: min(60vw, 240px);
    max-height: min(70vw, 320px);
  }

  .hero-slide__visual {
    min-height: 220px;
  }

  .hero-controls {
    padding-top: 0.55rem;
  }
}

/* Short phones / narrow landscape */
@media (max-width: 380px) {
  .hero-slide {
    min-height: min(58vw, 200px);
    max-height: min(68vw, 280px);
  }

  .hero-slide__visual {
    min-height: 180px;
  }
}
