.hero-carousel { position: relative; isolation: isolate; overflow: clip; background: var(--bg); }
.hero-carousel-slides { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Every slide remains in layout, so rotation never moves the next section. */
.hero-carousel .hero-carousel-slide {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 100svh;
  padding-bottom: 125px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  touch-action: pan-y;
  transition: opacity .65s ease, visibility 0s linear .65s;
}
.hero-carousel .hero-carousel-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition-delay: 0s; }
.hero-carousel .hero-carousel-slide > img.hero-media {
  width: 100%;
  height: 114%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  background: none;
}
.hero-carousel .hero :is(h1, h2) {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 6.7vw, 6.9rem);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 1020px;
  text-wrap: balance;
}
.hero-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1200px, calc(100% - 48px));
  transform: translateX(-50%);
}
.hero-carousel-controls[hidden] { display: none; }
.hero-carousel > .hero-scroll { z-index: 2; pointer-events: none; }
.hero-carousel-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.hero-carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 7, 6, .5);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.hero-carousel-controls button:hover { border-color: var(--gold); color: var(--gold); }
.hero-carousel-controls :is(.hero-carousel-prev, .hero-carousel-next) { font-size: 1.55rem; line-height: 1; }
.hero-carousel-controls [data-hero-dot] { min-width: 44px; width: 44px; border: 0; background: transparent; }
.hero-carousel-controls [data-hero-dot]::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--gold); border-radius: 50%; background: transparent; transition: background-color .2s ease, transform .2s ease; }
.hero-carousel-controls [data-hero-dot][aria-current="true"]::before { background: var(--gold); transform: scale(1.3); }
.hero-carousel-controls .hero-carousel-toggle { position: relative; min-width: 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; }
.hero-carousel-toggle-icon { width: 14px; font-size: .85rem; line-height: 1; }
.hero-carousel-toggle-label { display: none; }
.hero-carousel-progress { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke-width: 1.6; }
.hero-carousel-progress-track { stroke: var(--line); }
.hero-carousel-progress-value { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.hero-carousel-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.theme-light .hero-carousel-controls button { background: rgba(244, 242, 236, .72); }
.theme-light .hero-carousel-controls [data-hero-dot] { background: transparent; }
@media (max-width: 760px) {
  .hero-carousel .hero-carousel-slide { padding-bottom: 105px; }
  .hero-carousel .hero-carousel-slide > img.hero-media { object-position: 58% center; }
  .hero-carousel .hero :is(h1, h2) { font-size: clamp(3.05rem, 14vw, 4.35rem); }
  .hero-carousel-controls { bottom: 24px; width: calc(100% - 32px); gap: 6px; }
}
@media (max-width: 420px) {
  .hero-carousel .hero :is(h1, h2) { font-size: clamp(2.72rem, 13.8vw, 3.4rem); }
  .hero-carousel-controls { width: calc(100% - 16px); gap: 2px; }
  .hero-carousel-controls [data-hero-dot] { min-width: 36px; width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .hero-carousel-slide { transition: none; }
}
