.panel-hero {
  --opening-progress: 1;
  --opening-title-opacity: 0;
}
.panel-hero.is-animated[data-state="inicio"] {
  --opening-progress: 0;
  --opening-title-opacity: 1;
}
.panel-hero.is-animated { min-height: 210svh; }
.panel-stage { background: var(--ink); }
.feature {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 46% 54%;
  background: radial-gradient(ellipse at 0% 25%, #76332a, transparent 78%), #471412;
}
.feature-image { grid-column: 2; min-width: 0; min-height: 0; position: relative; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #471412 0%, transparent 19%), linear-gradient(0deg, #360b0870, transparent 26%);
}
.feature-copy {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  padding: 30px 0 32px var(--gutter);
  position: relative;
  z-index: 1;
}
.feature-copy h1 {
  margin: 20px 0 24px;
  font-size: clamp(4.6rem, 9.1vw, 10.6rem);
  letter-spacing: -.06em;
  white-space: nowrap;
}
.feature-copy > p:not(.eyebrow) { max-width: 30ch; }
.feature-copy .button { margin-top: 28px; }
.panel-hero.is-animated[data-state="inicio"] .feature-copy { opacity: 0; visibility: hidden; }
.panel-hero.is-animated .feature-copy { transition: opacity 620ms ease-out 360ms; }
.panel-hero.is-animated[data-state="inicio"] .feature-copy { transition-delay: 0s; }

.panel {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  background: #481613;
}
.panel-left {
  --panel-photo: url("assets/producto-0.webp");
  left: 0;
  transform: translateX(calc(-101% * var(--opening-progress)));
}
.panel-right {
  --panel-photo: url("assets/producto-1.webp");
  right: 0;
  transform: translateX(calc(101% * var(--opening-progress)));
  background: #90613d;
}
.panel-hero.is-animated .panel { transition: transform 1250ms cubic-bezier(.45, 0, .2, 1); }
.panel-hero.is-animated[data-state="inicio"] .panel { transition-duration: 720ms; }
.panel::before {
  content: "";
  position: absolute;
  inset: -36px;
  background: var(--panel-photo) center / cover;
  filter: blur(32px);
  opacity: .56;
}
.panel img {
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(100%, calc((100svh - var(--header)) * .66));
  height: 82%;
  transform: translateX(-50%);
  object-fit: cover;
  mask-image: linear-gradient(transparent, black 12% 86%, transparent),
    linear-gradient(90deg, transparent, black 13% 87%, transparent);
  mask-composite: intersect;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #2b0a09c7, transparent 29%, transparent 60%, #2b0a0960);
}
.panel-left::after { border-right: 1px solid #f4ddbb5e; }
.panel-label {
  position: absolute;
  z-index: 1;
  bottom: clamp(28px, 6vh, 68px);
  color: var(--ivory) !important;
  margin: 0 !important;
}
.panel-left .panel-label { left: var(--gutter); }
.panel-right .panel-label { right: var(--gutter); text-align: right; }
.opening {
  position: absolute;
  z-index: 3;
  inset: 6% 16px auto;
  justify-self: center;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 16px 30px 20px;
  text-align: center;
  opacity: var(--opening-title-opacity);
  pointer-events: none;
  isolation: isolate;
  text-shadow: 0 2px 16px #260908;
}
.opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -36px;
  background: radial-gradient(ellipse, #260908eb 18%, #360b08a8 49%, transparent 75%);
}
.opening-title {
  margin-top: 4px;
  font: 600 clamp(2.8rem, 6vw, 6.8rem)/.93 var(--serif);
  letter-spacing: -.055em;
}
.panel-cue {
  position: absolute;
  z-index: 3;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 7px;
  white-space: nowrap;
  opacity: var(--opening-title-opacity);
}
.panel-cue > span:last-child { font: 1.45rem/1 var(--serif); }
.panel-hero.is-animated .opening,
.panel-hero.is-animated .panel-cue { transition: opacity 260ms ease-out; }
.panel-hero.is-animated[data-state="inicio"] :is(.opening, .panel-cue) {
  transition-delay: 420ms;
}
@media (max-width: 740px) {
  .panel-hero.is-animated { min-height: 172svh; }
  .feature { grid-template-columns: 1fr; grid-template-rows: 54% 46%; }
  .feature-image { grid-row: 1; grid-column: 1; }
  .feature-image img { object-position: center 61%; }
  .feature-image::after { background: linear-gradient(0deg, #471412 0%, transparent 23%); }
  .feature-copy {
    grid-row: 2;
    align-self: start;
    padding: 0 var(--gutter);
    text-align: center;
    margin-top: -10px;
  }
  .feature-copy > p:not(.eyebrow) { margin-inline: auto; }
  .feature-copy h1 { font-size: clamp(3rem, 11.5vw, 5.5rem); margin-block: 11px 15px; }
  .feature-copy h1 br { display: none; }
  .feature-copy .button { margin-top: 18px; }
  .panel-label { bottom: 15%; font-size: .55rem; letter-spacing: .09em; }
  .panel-left .panel-label { left: 13px; }
  .panel-right .panel-label { right: 13px; }
  .opening { top: 5%; padding: 12px 18px 15px; }
  .opening-title { font-size: clamp(1.72rem, 7.8vw, 3.4rem); }
  .opening .eyebrow, .panel-cue .eyebrow { font-size: .54rem; letter-spacing: .1em; }
}

@media (max-width: 740px), (max-width: 1100px) and (orientation: portrait) {
  .panel img {
    top: 12%;
    width: 100%;
    height: 72%;
    mask-image: linear-gradient(transparent, black 11% 85%, transparent);
  }
  .panel::after {
    background: linear-gradient(0deg, #2b0a09 0%, #2b0a0940 19%, transparent 32% 69%, #2b0a093d 84%, #2b0a09d9 100%);
  }
}
