/* VAIL — cinematic perfume hero slideshow (replaces the old scroll hero).
   Only .el-* rules: no global resets, so the rest of the shop is unaffected. */
.el-hero {
  --el-white: #ffffff;
  --el-muted: #d3d0ca;
  --el-black: #050505;
}
.el-hero, .el-hero *, .el-hero *::before, .el-hero *::after { box-sizing: border-box; }
.el-hero h1, .el-hero p { margin: 0; padding: 0; }
.el-hero button { font: inherit; }
.el-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 88vh;
  height: 88svh;
  min-height: 600px;
  max-height: 950px;
  overflow: hidden;
  color: var(--el-white);
  background: var(--el-black);
}

.el-scenes,
.el-scene {
  position: absolute;
  inset: 0;
}

.el-scene {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.el-scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.el-scene img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) brightness(0.72);
  transform: scale(1.12);
  transition: transform 7s ease;
}

.el-scene.active img {
  transform: scale(1);
}

.el-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.53) 40%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.72) 0%,
      transparent 36%
    );
}

/* Header */

.el-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.el-logo {
  color: #fff;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 7px;
}

.el-header-label {
  font-size: 9px;
  letter-spacing: 3px;
  color: #e0ded9;
}

/* Scene text */

.el-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 10%;
  width: min(600px, 80%);
  opacity: 0;
  transform: translateY(calc(-50% + 25px));
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.el-scene.active .el-copy {
  opacity: 1;
  transform: translateY(-50%);
  transition-delay: 0.3s;
}

.el-kicker {
  display: block;
  color: var(--el-muted);
  font-size: 10px;
  letter-spacing: 4px;
  line-height: 1.8;
}

.el-copy h1 {
  margin: 24px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1px;
}

.el-copy h1 em {
  color: #d6d2cc;
  font-weight: 400;
}

.el-copy p {
  max-width: 390px;
  margin-bottom: 28px;
  color: #e0dedb;
  font-size: 13px;
  line-height: 1.9;
}

/* Call to action */

.el-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.el-button:hover {
  color: #000;
  background: #fff;
}

.el-button span {
  font-size: 16px;
}

/* Bottom information */

.el-footer {
  position: absolute;
  z-index: 5;
  left: 6%;
  right: 6%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 9px;
  letter-spacing: 2px;
}

.el-progress {
  width: 110px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.el-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.el-progress-bar.run {
  animation: el-progress-fill 6s linear forwards;
}

.el-hint {
  margin-left: auto;
}

/* Scene navigation dots */

.el-dots {
  position: absolute;
  z-index: 6;
  right: 6%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.el-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.el-dot.active {
  background: #fff;
  transform: scale(1.35);
}

.el-dot:focus-visible,
.el-button:focus-visible,
.el-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@keyframes el-progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Tablet and mobile */

@media (max-width: 700px) {
  .el-hero {
    height: 85vh;
    height: 85svh;
    min-height: 600px;
  }

  .el-header {
    padding: 22px 6%;
  }

  .el-logo {
    font-size: 19px;
    letter-spacing: 4px;
  }

  .el-header-label {
    max-width: 115px;
    font-size: 7px;
    line-height: 1.7;
    letter-spacing: 1.5px;
    text-align: right;
  }

  .el-scene img {
    object-position: 58% center;
  }

  .el-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.65) 48%,
        rgba(0, 0, 0, 0.15) 100%
      );
  }

  .el-copy {
    top: auto;
    bottom: 105px;
    left: 7%;
    width: 84%;
    transform: translateY(20px);
  }

  .el-scene.active .el-copy {
    transform: translateY(0);
  }

  .el-kicker {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .el-copy h1 {
    margin: 18px 0;
    font-size: clamp(38px, 9.5vw, 60px);
  }

  .el-copy p {
    max-width: 320px;
    font-size: 12px;
  }

  .el-button {
    padding: 14px 13px;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .el-footer {
    left: 6%;
    right: 6%;
    bottom: 22px;
    gap: 10px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .el-progress {
    width: 45px;
  }

  .el-dots {
    right: 6%;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .el-logo {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .el-header-label {
    font-size: 6px;
  }

  .el-copy h1 {
    font-size: 36px;
  }

  .el-footer {
    font-size: 7px;
    gap: 7px;
  }

  .el-progress {
    width: 30px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .el-scene,
  .el-scene img,
  .el-copy,
  .el-button {
    transition: none !important;
  }

  .el-progress-bar.run {
    animation: none;
    width: 100%;
  }
}

/* Fix: the shared overlay sat above the scene's text and dimmed it.
   The shading now lives inside each scene, underneath the text (copy has z-index:3). */
.el-overlay { display: none; }
.el-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.53) 40%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, transparent 36%);
}
@media (max-width: 700px) {
  .el-scene::after {
    background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.65) 48%, rgba(0,0,0,.15) 100%);
  }
}
