.oven-hero.hero-paper {
  isolation: isolate;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "pizza" "headline";
  justify-items: center;
  gap: 12px;
  height: auto;
  padding: 12px 0 16px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-paper .hero-photo-stage {
  grid-area: pizza;
  width: min(100%, 540px);
}

.oven-hero.hero-paper .oven-copy {
  grid-area: headline;
  align-items: center;
  padding: 0;
  text-align: center;
}

.hero-paper .oven-copy h1 {
  color: #960417;
}

.hero-paper .hero-menu-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hero-menu-action::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 7px 15px -4px rgb(187 105 22 / 45%);
  opacity: .5;
}

.hero-menu-action svg {
  width: 15px;
  height: 15px;
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-menu-action {
    transition: transform 140ms ease-out;
  }

  .hero-menu-action:active {
    transform: scale(.97);
  }

  .hero-menu-action.hint-shown svg {
    animation: forno-menu-hint 1.25s ease-in-out infinite;
  }

  .hero-menu-action.hint-shown::after {
    animation: forno-menu-glow 1s ease-in-out .6s 1;
  }

  .hero-menu-action.hint-paused svg,
  .hero-menu-action.hint-paused::after {
    animation-play-state: paused;
  }
}

@keyframes forno-menu-hint {
  0%, 48%, 100% { transform: translateY(0); }
  24% { transform: translateY(3px); }
}

@keyframes forno-menu-glow {
  50% { opacity: .95; }
}

.hero-paper .oven-plane,
.hero-paper.pizza-playing .oven-plane {
  animation: none;
  transform: none;
}

.hero-paper .oven-plane .pizza-lift {
  display: none;
}

.hero-paper .intro-active > img,
.hero-paper .intro-active > .pizza-steam {
  visibility: hidden;
}

.hero-paper .pizza-intro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hero-paper .pizza-intro.intro-loading {
  background: url('oven-first.webp') center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-paper.pizza-playing .oven-plane .oven-base {
    /* Keep the baked pizza and the lower ends of the cheese fixed. */
    clip-path: polygon(0 0, 62.4% 0, 62.4% 23%, 60.2% 29%,
      59.3% 38%, 55.9% 45%, 50% 50%, 100% 50%, 100% 100%, 0 100%);
  }

  .hero-paper.pizza-playing .oven-plane .pizza-lift {
    display: block;
    mask: none;
    /* Overlap the stationary edge slightly to cover subpixel movement at the join. */
    clip-path: polygon(61.6% 0, 100% 0, 100% 50.3%, 49.6% 50.3%,
      55.1% 44.7%, 58.5% 37.7%, 59.4% 28.7%, 61.6% 22.7%);
    transform-origin: 64% 50%;
    animation: forno-slice-drift 9s ease-in-out infinite;
  }
}

@keyframes forno-slice-drift {
  0%, 100% { transform: skewX(0) scaleY(1); }
  25% { transform: skewX(-.8deg) scaleY(1.024); }
  50% { transform: skewX(0) scaleY(1.032); }
  75% { transform: skewX(.8deg) scaleY(.984); }
}

@media (max-width: 600px) {
  .oven-hero.hero-paper {
    gap: 10px;
    padding: 4px 0 12px;
  }

  .hero-paper .oven-copy h1 {
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
    justify-content: center;
    column-gap: .23em;
    padding-inline: 5px;
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.24;
  }

  .hero-paper .hero-photo-stage {
    width: 95%;
  }

  .hero-paper .hero-menu-action {
    display: none;
  }
}

@media (max-width: 359px) {
  .hero-paper .oven-copy h1 {
    flex-direction: column;
  }
}
