/* CJ Hero Section — scoped styles (adapted from the original standalone export) */

/* Registered so the per-product accent colour eases between products instead
   of snapping when the copy swaps mid-transition. */
@property --bz-accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #efe4ce;
}

.benzzer-cinema-hero-wrap {
  --bz-accent: #efe4ce;
  --ivory: #f7f2e8;
  --muted: rgba(247, 242, 232, 0.58);
  --line: rgba(255, 255, 255, 0.19);
  --bz-serif: 'Cormorant Garamond', 'Bodoni MT', 'Times New Roman', serif;
  --bz-sans: 'Montserrat', 'Avenir Next', 'Segoe UI', sans-serif;
  position: relative;
  width: 100%;
  color: var(--ivory);
  font-family: var(--bz-sans);
}

.benzzer-cinema-hero-wrap * { box-sizing: border-box; }
.benzzer-cinema-hero-wrap button,
.benzzer-cinema-hero-wrap a { -webkit-tap-highlight-color: transparent; }
.benzzer-cinema-hero-wrap button { color: inherit; font: inherit; }

.cinema-hero {
  position: relative;
  display: grid;
  min-height: calc(var(--bz-vh, 1svh) * 100);
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(circle at 50% 44%, #17211b 0, #050908 45%, #020303 100%);
  transition: --bz-accent 700ms ease;
}

.cinema-frame {
  position: relative;
  width: 100%;
  height: calc(var(--bz-vh, 1svh) * 100);
  overflow: hidden;
  background-color: #050907;
  background-image: var(--bz-poster, url('../images/scene-torzin.jpg'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
}

.journey-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity var(--bz-fade, 150ms) ease;
}

.video-active { opacity: 1; }

.frame-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, transparent 18%, transparent 63%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.32) 100%);
}

/* ---------- Header ---------- */

.minimal-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 11.5%;
  padding: 0 3.2%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 300ms ease;
}

.minimal-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: white;
  font-family: var(--bz-serif);
  font-size: clamp(12px, 1.25vw, 21px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.benzzer-cinema-hero-wrap .minimal-brand:hover,
.benzzer-cinema-hero-wrap .minimal-brand:focus { color: white; text-decoration: none; }

.minimal-mark {
  display: grid;
  width: clamp(27px, 2.3vw, 39px);
  height: clamp(27px, 2.3vw, 39px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  font-size: 0.9em;
  letter-spacing: 0;
}

.benzzer-cinema-hero-wrap .minimal-logo {
  display: block;
  width: auto;
  max-width: min(42vw, 260px);
  height: var(--bz-logo-h, 36px);
  object-fit: contain;
}

.house-line,
.frame-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(6px, 0.55vw, 9px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.house-line { justify-self: center; }

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

/* Menu button — only shown up to 1024px. Reset hard: themes (Kadence) paint
   every <button> with their own background, padding and shadow. */
.benzzer-cinema-hero-wrap .hero-menu-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(4, 9, 7, 0.3);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: border-color 220ms ease, background 220ms ease;
}

.benzzer-cinema-hero-wrap .hero-menu-toggle:hover,
.benzzer-cinema-hero-wrap .hero-menu-toggle:focus-visible {
  border-color: var(--bz-accent);
  background: color-mix(in srgb, var(--bz-accent) 18%, rgba(4, 9, 7, 0.4));
  box-shadow: none;
  color: #fff;
}

.hero-menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: top 320ms cubic-bezier(0.4, 0, 0.2, 1), transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-menu-toggle span:nth-child(1) { top: calc(50% - 3.5px); }
.hero-menu-toggle span:nth-child(2) { top: calc(50% + 3.5px); }
.menu-open .hero-menu-toggle span:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.menu-open .hero-menu-toggle span:nth-child(2) { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Menu (desktop: inline in the header's centre column) ---------- */

.hero-nav {
  position: absolute;
  z-index: 11;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  height: 11.5%;
  transform: translateX(-50%);
}

.benzzer-cinema-hero-wrap .hero-menu,
.benzzer-cinema-hero-wrap .hero-menu .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benzzer-cinema-hero-wrap .hero-menu {
  display: flex;
  gap: clamp(18px, 2.4vw, 42px);
}

.benzzer-cinema-hero-wrap .hero-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.benzzer-cinema-hero-wrap .hero-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--bz-sans);
  font-size: clamp(8px, 0.62vw, 10px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 220ms ease;
}

.benzzer-cinema-hero-wrap .hero-menu a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--bz-accent);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.benzzer-cinema-hero-wrap .hero-menu a:hover,
.benzzer-cinema-hero-wrap .hero-menu a:focus-visible,
.benzzer-cinema-hero-wrap .hero-menu .current-menu-item > a {
  color: #fff;
  text-decoration: none;
}

.benzzer-cinema-hero-wrap .hero-menu a:hover::after,
.benzzer-cinema-hero-wrap .hero-menu a:focus-visible::after,
.benzzer-cinema-hero-wrap .hero-menu .current-menu-item > a::after { transform: scaleX(1); }

.benzzer-cinema-hero-wrap .hero-menu .sub-menu {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 50%;
  min-width: 190px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(4, 9, 7, 0.74);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(14px);
  transform: translate(-50%, 6px);
  transition: opacity 220ms ease, transform 260ms ease, visibility 0s linear 260ms;
}

.benzzer-cinema-hero-wrap .hero-menu li:hover > .sub-menu,
.benzzer-cinema-hero-wrap .hero-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 220ms ease, transform 260ms ease;
}

.benzzer-cinema-hero-wrap .hero-menu .sub-menu a {
  display: block;
  padding: 8px 20px;
  letter-spacing: 0.18em;
  text-align: center;
}

.benzzer-cinema-hero-wrap .hero-menu .sub-menu a::after { display: none; }

.hero-nav-tagline { display: none; }

@media (min-width: 1025px) {
  /* The menu takes the header's centre column; keep the grid slot. */
  .has-menu .house-line { visibility: hidden; }
}

/* ---------- Product copy ---------- */

.product-minimal {
  position: absolute;
  z-index: 8;
  bottom: 9.2%;
  left: 4.1%;
  width: 25%;
  animation: bzCopyArrive 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Once the first transition runs, JS drives opacity/blur frame-by-frame from
   the video's playhead; a filled animation would override those inline styles. */
.is-driven .product-minimal { animation: none; }

.is-transitioning .product-minimal,
.is-transitioning .orbit-product,
.is-transitioning .console-name,
.is-transitioning .frame-count { will-change: opacity, filter; }

.minimal-edition {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--bz-accent);
  font-size: clamp(6px, 0.55vw, 9px);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.minimal-edition::before {
  width: clamp(18px, 2.1vw, 36px);
  height: 1px;
  background: currentColor;
  content: '';
}

.product-minimal h1 {
  margin: 0;
  color: #fffaf1;
  font-family: var(--bz-serif);
  font-size: clamp(28px, 4.25vw, 71px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.36);
}

.minimal-character {
  margin: 8px 0 6px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--bz-serif);
  font-size: clamp(11px, 1.2vw, 20px);
  font-style: italic;
  line-height: 1.15;
}

.minimal-notes {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(5px, 0.48vw, 8px);
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.minimal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 22px;
  border: 1px solid var(--bz-accent);
  border-radius: 999px;
  color: var(--ivory);
  font-size: clamp(6px, 0.55vw, 9px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.minimal-cta:hover {
  background: var(--bz-accent);
  color: #0a0f0c;
  transform: translateY(-1px);
}

.chapter-rail {
  position: absolute;
  z-index: 9;
  top: 50%;
  right: 3.4%;
  display: grid;
  gap: 8px;
  width: 1px;
  transform: translateY(-50%);
}

.chapter-rail span {
  display: block;
  width: 1px;
  height: clamp(10px, 1.2vw, 20px);
  background: rgba(255, 255, 255, 0.25);
  transition: height 350ms ease, background 350ms ease, box-shadow 350ms ease;
}

.chapter-rail .chapter-active {
  height: clamp(22px, 2.8vw, 46px);
  background: var(--bz-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--bz-accent) 38%, transparent);
}

/* ---------- Scent console ---------- */

.scent-console {
  position: absolute;
  z-index: 12;
  bottom: 4.1%;
  left: 50%;
  display: grid;
  grid-template-columns: auto 38px 108px 38px auto;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.orbit-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(4, 9, 7, 0.3);
  cursor: pointer;
  font-size: 15px;
  backdrop-filter: blur(14px);
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, transform 220ms ease;
}

.orbit-button::before {
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-radius: inherit;
  content: '';
  transition: border-color 220ms ease, transform 320ms ease;
}

.orbit-button:hover {
  border-color: var(--bz-accent);
  background: color-mix(in srgb, var(--bz-accent) 18%, rgba(4, 9, 7, 0.4));
  color: var(--bz-accent);
}

.orbit-button:hover::before { border-color: color-mix(in srgb, var(--bz-accent) 38%, transparent); transform: scale(1.08); }
.orbit-previous:hover { transform: translateX(-3px); }
.orbit-next:hover { transform: translateX(3px); }
.orbit-button:disabled { cursor: wait; opacity: 0.45; }

.orbit-core {
  position: relative;
  display: grid;
  width: 108px;
  height: 44px;
  padding: 6px 10px 5px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 7, 5, 0.38);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.orbit-core:hover {
  border-color: color-mix(in srgb, var(--bz-accent) 58%, transparent);
  background: color-mix(in srgb, var(--bz-accent) 12%, rgba(2, 7, 5, 0.48));
}

.orbit-core:disabled { cursor: wait; }

.orbit-product {
  font-family: var(--bz-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.05;
}

.orbit-core small {
  overflow: hidden;
  width: 88px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 5px;
  letter-spacing: 0.16em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.console-name {
  width: clamp(44px, 6vw, 100px);
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--bz-serif);
  font-size: clamp(7px, 0.6vw, 10px);
  letter-spacing: 0.12em;
}

.console-previous { text-align: right; }
.console-next { text-align: left; }

.console-playing .orbit-core::before {
  position: absolute;
  inset: -6px;
  border: 1px solid transparent;
  border-top-color: var(--bz-accent);
  border-right-color: color-mix(in srgb, var(--bz-accent) 35%, transparent);
  border-radius: 50%;
  content: '';
  animation: bzComposeOrbit 1.1s linear infinite;
}

.film-loading {
  position: absolute;
  z-index: 20;
  right: 4%;
  bottom: 4.5%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 6px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.film-loading span {
  width: 23px;
  height: 1px;
  background: var(--bz-accent);
  animation: bzLoadingPulse 1.2s ease-in-out infinite;
}

@keyframes bzCopyArrive {
  from { opacity: 0; filter: blur(5px); transform: translateY(11px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes bzComposeOrbit { to { transform: rotate(360deg); } }
@keyframes bzLoadingPulse { 50% { opacity: 0.25; transform: scaleX(0.45); } }

/* ---------- Menu (up to 1024px: full-screen overlay behind a menu button) ---------- */

@media (max-width: 1024px) {
  .benzzer-cinema-hero-wrap .hero-menu-toggle { display: block; }

  .hero-nav {
    z-index: 40;
    inset: 0;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 104px 8% max(28px, calc(env(safe-area-inset-bottom) + 20px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(3, 6, 5, 0.8);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(18px) saturate(1.1);
    transform: none;
    transition: opacity 360ms ease, visibility 0s linear 360ms;
  }

  .menu-open .hero-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 360ms ease;
  }

  .menu-open .minimal-header {
    z-index: 45;
    border-bottom-color: transparent;
  }

  /* margin-block:auto centres the list when it fits and top-aligns it (still
     scrollable) when it doesn't — flex centring would clip the top instead. */
  .benzzer-cinema-hero-wrap .hero-menu {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-block: auto;
  }

  .benzzer-cinema-hero-wrap .hero-menu > li {
    opacity: 0;
    filter: blur(4px);
    text-align: center;
    transform: translateY(14px);
    transition: opacity 420ms ease, filter 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu-open .hero-menu > li {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition-delay: calc(80ms + var(--bz-i, 0) * 55ms);
  }

  .benzzer-cinema-hero-wrap .hero-menu > li > a {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--bz-serif);
    font-size: clamp(26px, 7vw, 40px);
    font-weight: 400;
    letter-spacing: 0.08em;
  }

  .benzzer-cinema-hero-wrap .hero-menu > li > a::after { bottom: 4px; }

  .benzzer-cinema-hero-wrap .hero-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 10px;
    border: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    backdrop-filter: none;
    transform: none;
  }

  .benzzer-cinema-hero-wrap .hero-menu .sub-menu a {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .hero-nav-tagline {
    display: block;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-align: center;
    text-transform: uppercase;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 740px) {
  .cinema-hero {
    min-height: calc(var(--bz-vh, 1svh) * 100);
    background: #020504;
  }

  .cinema-frame {
    width: 100%;
    height: calc(var(--bz-vh, 1svh) * 100);
    min-height: calc(var(--bz-vh, 1svh) * 100);
    background-image: var(--bz-poster-mobile, url('../images/scene-torzin-mobile.jpg'));
    box-shadow: none;
  }

  .journey-video { object-fit: cover; }

  .frame-vignette {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 18%, transparent 62%, rgba(0, 0, 0, 0.74) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, transparent 24%, transparent 76%, rgba(0, 0, 0, 0.16) 100%);
  }

  .minimal-header {
    grid-template-columns: 1fr auto;
    height: max(74px, 10.5%);
    padding: max(10px, env(safe-area-inset-top)) 5% 0;
  }
  .house-line { display: none; }
  .minimal-brand { font-size: clamp(11px, 3.4vw, 15px); gap: 8px; }
  .minimal-mark { width: 29px; height: 29px; }
  .benzzer-cinema-hero-wrap .minimal-logo { height: calc(var(--bz-logo-h, 36px) * 0.8); max-width: 52vw; }
  .frame-count { font-size: 7px; }
  .header-tools { gap: 12px; }
  .benzzer-cinema-hero-wrap .hero-menu-toggle { width: 38px; height: 38px; }
  .hero-nav { padding-top: 96px; }

  .product-minimal {
    bottom: max(13.5%, calc(env(safe-area-inset-bottom) + 104px));
    left: 6%;
    width: 66%;
  }

  .minimal-edition { margin-bottom: 8px; font-size: 7px; }
  .product-minimal h1 { font-size: clamp(39px, 13vw, 58px); }
  .minimal-character { margin: 6px 0 7px; font-size: clamp(13px, 4vw, 18px); }
  .minimal-notes { max-width: 245px; font-size: 6px; line-height: 1.55; }
  .minimal-cta { margin-top: 12px; padding: 8px 18px; font-size: 7px; }

  .scent-console {
    bottom: max(3.2%, calc(env(safe-area-inset-bottom) + 12px));
    grid-template-columns: 38px 108px 38px;
    gap: 8px;
  }
  .console-name { display: none; }
  .orbit-button { width: 38px; height: 38px; font-size: 13px; }
  .orbit-core { width: 108px; height: 44px; }
  .orbit-product { font-size: 13px; }
  .orbit-core small { width: 88px; font-size: 5px; }
  .chapter-rail { right: 4%; gap: 7px; }
  .film-loading { right: 6%; bottom: max(4.2%, calc(env(safe-area-inset-bottom) + 18px)); }
}

@media (prefers-reduced-motion: reduce) {
  .benzzer-cinema-hero-wrap *,
  .benzzer-cinema-hero-wrap *::before,
  .benzzer-cinema-hero-wrap *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
