.top_opening[hidden],
html.top-opening-skip .top_opening {
  display: none !important;
}

.top_opening {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  overflow: hidden;
  color: #f4f1ea;
  pointer-events: auto;
  isolation: isolate;
}

.top_opening_panel {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: calc(50% + 1px);
  background: #292a2d;
  will-change: transform;
  transition: transform 620ms cubic-bezier(.76, 0, .24, 1);
}

.top_opening_panel--left {
  left: 0;
  transform-origin: left center;
}

.top_opening_panel--right {
  right: 0;
  transform-origin: right center;
}

.top_opening_content {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 240ms ease;
}

.top_opening.is-active .top_opening_content {
  opacity: 1;
}

.top_opening_brand {
  position: absolute;
  top: clamp(38px, 8vh, 84px);
  left: 50%;
  display: flex;
  gap: .72em;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .28em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.top_opening_brand span:last-child {
  opacity: .58;
}

.top_opening_stage {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.top_opening_photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 24vw, 350px);
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  opacity: 0;
  filter: blur(7px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  transform: translate3d(-50%, -50%, 0) scale(.16) rotate(0deg);
  transition:
    opacity 320ms ease,
    filter 420ms ease,
    transform 680ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, filter, transform;
}

.top_opening_photo.is-visible {
  opacity: 1;
  filter: blur(0);
  transform:
    translate3d(calc(-50% + var(--opening-x, 0vw)), calc(-50% + var(--opening-y, 0vh)), 0)
    scale(var(--opening-scale, .7))
    rotate(var(--opening-r, 0deg));
}

.top_opening_photo.is-current {
  z-index: 5;
}

.top_opening_photo.is-error {
  visibility: hidden;
}

.top_opening_photo.is-settled {
  opacity: .72;
}

.top_opening.is-focusing .top_opening_photo.is-settled {
  opacity: .24;
  filter: blur(1.5px);
  transform:
    translate3d(calc(-50% + var(--opening-x, 0vw)), calc(-50% + var(--opening-y, 0vh)), 0)
    scale(var(--opening-scale, .7))
    rotate(var(--opening-r, 0deg));
}

.top_opening_photo.is-hero {
  z-index: 10;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(-50%, -50%, 0) scale(1.42) rotate(0deg);
  transition-duration: 420ms, 420ms, 760ms;
}

.top_opening_footer {
  position: absolute;
  right: clamp(28px, 5vw, 76px);
  bottom: clamp(34px, 7vh, 70px);
  left: clamp(28px, 5vw, 76px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.top_opening_tagline {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .075em;
}

.top_opening_tagline span {
  display: block;
}

.top_opening_count {
  display: flex;
  gap: .42em;
  margin: 0;
  color: rgba(244, 241, 234, .66);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
}

.top_opening_skip {
  position: absolute;
  right: clamp(28px, 5vw, 76px);
  bottom: calc(clamp(34px, 7vh, 70px) + 34px);
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 6px;
  transform: translateY(12px);
  border: 0;
  border-bottom: 1px solid rgba(244, 241, 234, .48);
  background: transparent;
  color: rgba(244, 241, 234, .72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.top_opening_skip:hover,
.top_opening_skip:focus-visible {
  border-color: #f4f1ea;
  color: #f4f1ea;
  opacity: 1;
}

.top_opening_skip:focus-visible {
  outline: 1px solid rgba(244, 241, 234, .9);
  outline-offset: 6px;
}

.top_opening.is-leaving .top_opening_content {
  opacity: 0;
  transition-delay: 140ms;
}

.top_opening.is-leaving .top_opening_panel--left {
  transform: translate3d(-101%, 0, 0);
}

.top_opening.is-leaving .top_opening_panel--right {
  transform: translate3d(101%, 0, 0);
}

html.top-opening-active,
html.top-opening-active body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 767px) {
  .top_opening_brand {
    top: max(34px, calc(env(safe-area-inset-top) + 22px));
    font-size: 11px;
    letter-spacing: .22em;
  }

  .top_opening_stage {
    inset: 0;
  }

  .top_opening_photo {
    width: min(58vw, 240px);
    aspect-ratio: 4 / 5;
  }

  .top_opening_photo.is-visible {
    transform:
      translate3d(calc(-50% + var(--opening-sp-x, 0vw)), calc(-50% + var(--opening-sp-y, 0vh)), 0)
      scale(var(--opening-sp-scale, .62))
      rotate(var(--opening-sp-r, 0deg));
  }

  .top_opening.is-focusing .top_opening_photo.is-settled {
    transform:
      translate3d(calc(-50% + var(--opening-sp-x, 0vw)), calc(-50% + var(--opening-sp-y, 0vh)), 0)
      scale(var(--opening-sp-scale, .62))
      rotate(var(--opening-sp-r, 0deg));
  }

  .top_opening_photo.is-hero {
    transform: translate3d(-50%, -50%, 0) scale(1.32) rotate(0deg);
  }

  .top_opening_footer {
    right: 24px;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
    left: 24px;
  }

  .top_opening_skip {
    right: 24px;
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 64px));
  }

  .top_opening_tagline {
    font-size: clamp(16px, 5vw, 20px);
    line-height: 1.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_opening {
    display: none !important;
  }
}
