@charset "UTF-8";
/* ==========================================================================
   Hero slider
   Three photographs that cross-fade, each drifting slowly while it is on
   screen. Only opacity and transform are animated, so the browser can keep it
   on the compositor and the text above stays sharp.
   ========================================================================== */

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #14181a; /* shows while the first frame decodes */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.hero-slide.on { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(.4, 0, .2, 1);
}
/* the drift only runs on the slide that is actually visible */
.hero-slide.on img { animation: heroKen 9s linear forwards; }

@keyframes heroKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1.6%, 0); }
}

/* a scrim so white text stays readable over any photograph */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .26) 42%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(100deg, rgba(0, 0, 0, .40) 0%, rgba(0, 0, 0, 0) 58%);
}
body[dir="rtl"] .hero-slider::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .26) 42%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(260deg, rgba(0, 0, 0, .40) 0%, rgba(0, 0, 0, 0) 58%);
}

/* ------------------------------------------------------------- controls */
.hero-controls {
  position: absolute;
  z-index: 3;
  inset-block-end: 26px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}
body[dir="rtl"] .hero-controls { transform: translateX(50%); }

.hero-dots { display: flex; gap: 9px; }

.hero-dot {
  width: 34px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .34);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background-color .3s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .55); }

/* the active dot fills up, showing how long is left on this slide */
.hero-dot.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left center;
  animation: heroProgress var(--hero-interval, 6s) linear forwards;
}
body[dir="rtl"] .hero-dot.on::after { transform-origin: right center; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-slider.paused .hero-dot.on::after,
.hero-slider.paused .hero-slide.on img { animation-play-state: paused; }

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  transition: background-color .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.hero-arrow svg { width: 18px; height: 18px; }
body[dir="rtl"] .hero-arrow svg { transform: scaleX(-1); }

/* the caption names the space in the current photograph */
.hero-caption {
  position: absolute;
  z-index: 3;
  inset-block-end: 28px;
  inset-inline-end: 26px;
  color: rgba(255, 255, 255, .86);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.hero-caption span { transition: opacity .4s ease; }
.hero-caption.fading span { opacity: 0; }

@media (max-width: 760px) {
  .hero-arrow { display: none; }
  .hero-caption { display: none; }
  .hero-controls { inset-block-end: 18px; }
}

/* the hero paints its own scrim through .hero-slider, so suppress the generic one */
.hero:has(.hero-slider)::after { background: none; }
.hero:has(.hero-slider) h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img { transition: none; }
  .hero-slide.on img { animation: none; transform: scale(1.02); }
  .hero-dot.on::after { animation: none; transform: scaleX(1); }
}
