/* 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%);
  }
}


/* ==========================================================
   Hero: single banner picture (hero-banner.jpg, 1920x600) with a real "Shop Now" button.
   The stage keeps the picture's shape, so the button always sits exactly under the text.
   ========================================================== */
.el-hero.el-hero--single { height: auto; min-height: 0; max-height: none; aspect-ratio: 1920 / 600; background: #fdfdfd; color: #111; container-type: inline-size; }
.el-hero--single .el-scene { opacity: 1; visibility: visible; pointer-events: auto; }
.el-hero--single .el-scene::after { display: none; }
.el-hero-stage { position: absolute; inset: 0; width: 100%; height: 100%; container-type: inline-size; }
.el-hero-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: none; transform: none; transition: none; }
.el-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the button (placed where the old drawn button was) */
.el-scent-btn { position: absolute; left: 10.36%; top: 65.83%; width: 15.05%; height: 11.5%; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .9cqw; isolation: isolate; overflow: hidden;
    color: #fff; text-decoration: none; background: #000; border: 2px solid #000; box-sizing: border-box;
    font: 600 1.85cqw/1 "Poppins", sans-serif; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
    transition: color .35s ease, transform .35s ease, box-shadow .35s ease; animation: scentIn .9s .5s cubic-bezier(.2,.7,.2,1) both; }
.el-scent-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.el-scent-btn::after { content: ""; position: absolute; inset: -14px; }          /* bigger invisible tap area */
.el-scent-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.38) 50%, transparent 80%); transform: translateX(-140%); animation: scentShine 4.2s 2.2s ease-in-out infinite; }
.el-scent-ring { display: none; }
.el-scent-btn:hover, .el-scent-btn:focus-visible { color: #000; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.el-scent-btn:hover::before, .el-scent-btn:focus-visible::before { transform: scaleX(1); }
.el-scent-btn:hover .el-scent-shine { animation: none; opacity: 0; }
.el-scent-btn:active { transform: translateY(0) scale(.98); }
.el-scent-btn:focus-visible { outline: 2px solid #000; outline-offset: 5px; }
.el-scent-arrow { width: 0; height: 1.9cqw; flex: none; margin-left: -.9cqw; opacity: 0; transform: translateX(-.8cqw); transition: width .35s ease, margin .35s ease, opacity .3s ease, transform .35s ease; }
.el-scent-btn:hover .el-scent-arrow, .el-scent-btn:focus-visible .el-scent-arrow { width: 1.9cqw; margin-left: 0; opacity: 1; transform: none; }
.el-scent-label { display: inline-block; transition: letter-spacing .35s ease; }
.el-scent-btn:hover .el-scent-label { letter-spacing: .08em; }

@keyframes scentIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes scentShine { 0%, 55% { transform: translateX(-140%); } 100% { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) {
  .el-scent-btn, .el-scent-shine { animation: none !important; }
  .el-scent-btn::before, .el-scent-label, .el-scent-arrow { transition: none; }
}

@media (max-width: 700px) {
  /* phones: the whole banner is shown; the button sits under it, big and easy to tap */
  .el-hero.el-hero--single { aspect-ratio: auto; background: #fdfdfd; padding-bottom: 20px; container-type: normal; }
  .el-hero--single .el-scenes, .el-hero--single .el-scene { position: relative; inset: auto; }
  .el-hero-stage { position: relative; inset: auto; height: auto; container-type: normal; }
  .el-hero-stage img { position: static; height: auto; }
  .el-scent-btn { position: relative; left: auto; top: auto; width: max-content; height: auto; margin: 6px auto 0; padding: 15px 34px; gap: 10px; font-size: 14px; letter-spacing: .12em; }
  .el-scent-arrow { height: 14px; margin-left: 0; width: 14px; opacity: 1; transform: none; }
}
