/* Photo slideshow as full-bleed background behind the hero text (English site). */
.hero-has-slider {
  isolation: isolate;
  background: var(--matcha-deep);
  color: #fff;
  padding: 150px 0 120px;
}
.hero-has-slider .enso { display: none; }
.hero-has-slider .container { position: relative; z-index: 2; }
.hero-has-slider .hero-inner { max-width: 40em; }
.hero-has-slider .eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero-has-slider h1 { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.hero-has-slider .lead { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.hero-has-slider .btn-primary { background: var(--paper); color: var(--ink); }
.hero-has-slider .btn-primary:hover { background: #fff; }
.hero-has-slider .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.hero-has-slider .btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }

.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-slide[data-pos="room"] img { object-position: 60% 50%; }
.hero-slide[data-pos="paris-serve"] img { object-position: 50% 35%; }
.hero-slide[data-pos="paris-room"] img { object-position: 50% 38%; }
.hero-slide[data-pos="lesson"] img { object-position: 50% 30%; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 16, 0.74) 0%, rgba(16, 20, 16, 0.5) 45%, rgba(16, 20, 16, 0.16) 100%);
}

.hero-dots { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.hero-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}
.hero-dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.hero-dot.is-active::before { background: #fff; transform: scale(1.25); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 50%; }

@media (max-width: 860px) {
  .hero-has-slider { padding: 100px 0 80px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(16, 20, 16, 0.6) 0%, rgba(16, 20, 16, 0.5) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
