/* Photographic craft sequence. Camera moves are finite, bounded and pausable. */
.oh-bake-theatre .oh-theatre-heading {
  margin-bottom: 32px;
}
.oh-bake-theatre .oh-theatre-heading > p:first-child {
  font-size: 14px;
  letter-spacing: 0.12em;
}
.oh-bake-theatre .oh-theatre-heading h2 {
  font-size: clamp(48px, 7vw, 92px);
}
.oh-bake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
.oh-bake-scene {
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 1/1.04;
  overflow: hidden;
  color: #fff0da;
  background: #221711;
  border: 1px solid #846c54;
  box-shadow: 0 20px 45px -25px #42301a70;
}
.oh-craft-photographs {
  position: absolute;
  inset: 0;
}
.oh-craft-photographs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease;
}
.oh-craft-photographs [data-stage-photo="0"] {
  object-position: 45% 50%;
}
.oh-craft-photographs [data-stage-photo="1"] {
  object-position: 54% 48%;
}
.oh-craft-photographs [data-stage-photo="2"] {
  object-position: 78% 28%;
  transform: scale(1.3);
  transform-origin: 80% 20%;
}
.oh-craft-photographs [data-stage-photo="3"] {
  object-position: 50% 50%;
}
.oh-bake-scene[data-stage="0"] [data-stage-photo="0"],
.oh-bake-scene[data-stage="1"] [data-stage-photo="1"],
.oh-bake-scene[data-stage="2"] [data-stage-photo="2"],
.oh-bake-scene[data-stage="3"] [data-stage-photo="3"] {
  opacity: 1;
}
.oh-bake-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    #160e0bcc,
    transparent 28%,
    transparent 56%,
    #160e0bf2
  );
}
.oh-craft-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 82% 24%, #fbb36526, transparent 47%);
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.oh-bake-scene[data-stage="2"] .oh-craft-light {
  opacity: 1;
}
.oh-bake-stage-label {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.oh-bake-scene figcaption {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: left;
}
.oh-bake-scene figcaption strong {
  display: block;
  max-width: 390px;
  font:
    400 clamp(25px, 3vw, 38px) / 1.12 Georgia,
    serif;
}
.oh-bake-scene figcaption span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #e6cfb2;
}
.oh-bake-steps {
  display: grid;
  border-top: 1px solid #b49a7a;
}
.oh-bake-steps button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #b49a7a;
  background: none;
  color: #3b2920;
  padding: 18px 10px;
  min-height: 90px;
}
.oh-bake-steps button > span:first-child {
  font-size: 14px;
  padding-top: 5px;
  color: #87513b;
}
.oh-bake-steps strong {
  display: block;
  font:
    400 clamp(23px, 2.5vw, 30px) / 1.2 Georgia,
    serif;
}
.oh-bake-steps small {
  display: block;
  margin-top: 6px;
  color: #6b5140;
  font-size: 14px;
  line-height: 1.5;
}
.oh-bake-steps button[aria-pressed="true"] {
  background: #e8d8bc;
}
.oh-bake-steps button[aria-pressed="true"] strong {
  color: #8b3427;
}
.oh-bake-steps button:focus-visible,
.oh-recipe-play:focus-visible {
  outline: 2px solid #8b3427;
  outline-offset: 4px;
}
.oh-recipe-selection {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.oh-recipe-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.oh-recipe-play {
  border: 1px solid #644631;
  background: #3b2920;
  color: #fff0da;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 650;
  border-radius: 2px;
}
.oh-recipe-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  text-underline-offset: 4px;
  color: #5f392b;
}
.oh-recipe-note {
  font-size: 14px;
  line-height: 1.65;
  color: #6b5140;
  margin: 18px 0 0;
}
.oh-recipe-trace {
  position: absolute;
  z-index: 2;
  inset: 56px 20px auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
}
.oh-recipe-trace span {
  height: 2px;
  overflow: hidden;
  background: #fff4;
}
.oh-recipe-trace span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #ffe5b5;
  transform: scaleX(var(--oh-stage-progress, 0));
  transform-origin: left;
}
#oh-pizza-art [data-topping] {
  transition: opacity 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .oh-bake-scene[data-stage="0"] [data-stage-photo="0"],
  .oh-bake-scene[data-stage="1"] [data-stage-photo="1"],
  .oh-bake-scene[data-stage="3"] [data-stage-photo="3"] {
    animation: oh-photo-camera 3.6s ease-out both paused;
  }
  .oh-bake-scene[data-visible="true"][data-playing="true"]
    .oh-craft-photographs
    img {
    animation-play-state: running;
  }
}
@keyframes oh-photo-camera {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.075);
  }
}
@media (max-width: 760px) {
  .oh-bake-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .oh-bake-scene {
    aspect-ratio: 1;
  }
  .oh-bake-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid #b49a7a;
  }
  .oh-bake-steps button {
    grid-template-columns: 1fr;
    gap: 6px;
    border-right: 1px solid #b49a7a;
    padding: 14px;
    align-content: start;
  }
  .oh-bake-steps strong {
    font-size: 23px;
  }
  .oh-bake-stage-label {
    font-size: 12px;
    left: 14px;
    right: 14px;
    top: 14px;
  }
  .oh-recipe-trace {
    inset: 42px 14px auto;
  }
  .oh-bake-scene figcaption {
    bottom: 18px;
    left: 18px;
    right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .oh-bake-theatre *,
  #oh-pizza-art [data-topping] {
    animation: none !important;
    transition: none !important;
  }
  .oh-recipe-play {
    display: none;
  }
}
