.scene-hero,
.photo-section {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #26171e;
}

.scene-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  pointer-events: none;
}

.scene-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 50%;
}

.scene-hero::before,
.photo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.scene-hero .scene-backdrop {
  left: auto;
  width: min(93%, 1580px);
}

.scene-hero::before {
  background: linear-gradient(90deg, #21131c 4%, #21131cf5 24%, #21131cbf 40%, #21131c0d 67%);
}

.scene-hero .stage::before { content: none; }
.scene-hero .scan-label { background: #281822ed; }
.scene-hero .phone { right: 1%; }

.photo-section {
  --inset: clamp(22px, 3.25vw, 48px);
  margin-block: clamp(20px, 2.7vw, 42px);
  padding: var(--inset);
  border: 1px solid #573541;
  border-radius: 24px;
}

.photo-section .scene-heading h2 {
  margin: 0;
  text-wrap: balance;
}

.photo-section .scene-heading p {
  margin: 12px 0 0;
  max-width: 51ch;
  color: #f3dee6;
}

.photo-band .scene-backdrop {
  bottom: auto;
  height: clamp(235px, 26vw, 348px);
  mask-image: linear-gradient(#000 57%, transparent);
}

.photo-band .scene-backdrop img {
  width: min(100%, 930px);
  margin-left: auto;
  object-position: right 48%;
  mask-image: linear-gradient(90deg, transparent, #000 23%);
}

.photo-band::before {
  background: linear-gradient(90deg, #26171e 4%, #26171ef5 22%, #26171ec9 43%, #26171e0a 74%);
}

.photo-band .scene-heading {
  width: 60%;
  min-height: clamp(155px, 14.5vw, 210px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 24px;
}

.photo-band :is(.card,.panel,.stories article) {
  background: linear-gradient(120deg, #391f2dfa, #251820f4);
}

#compare.photo-section table { background: #281922; }
#compare.photo-section caption { color: #f4dce9; }

.photo-side .scene-backdrop {
  left: auto;
  width: 60%;
  max-height: 710px;
  mask-image: linear-gradient(#000 76%, transparent);
}

.photo-side .scene-backdrop img { object-position: 79% center; }
.photo-side::before {
  background: linear-gradient(90deg, #26171e 35%, #26171efd 44%, #26171eea 52%, #26171e80 66%, transparent 84%);
}

.photo-side .scene-heading,
.photo-side .steps,
.photo-side .scene-questions {
  max-width: 58%;
}

.photo-side .scene-heading { margin-bottom: 25px; }
.photo-side .steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.photo-side .steps article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 12px;
  padding: 14px 0 0;
}
.photo-side .steps span { grid-row: span 2; line-height: 1; }
.photo-side .steps h3 { margin: 0; }
.photo-side .steps p { grid-column: 2; margin: 7px 0 0; }
.photo-side .scene-questions summary { color: #fff5f9; }

.photo-ending {
  min-height: 240px;
  align-items: flex-start;
  justify-content: center;
  flex-flow: column nowrap;
  gap: 18px;
  margin-bottom: clamp(34px, 4.5vw, 68px);
}
.photo-ending .scene-backdrop { left: 13%; }
.photo-ending::before {
  background: linear-gradient(90deg, #321c29 6%, #321c29f2 31%, #321c29ae 51%, transparent 79%);
}
.photo-ending > div { max-width: 54%; }
.photo-ending .button { align-self: flex-start; }

@media (max-width: 700px) {
  .scene-hero { background: #24151d; }
  .scene-hero .hero-grid { display: block; }
  .scene-hero .intro { padding: 26px 0 0; }
  .scene-hero .stage {
    height: clamp(290px, 72vw, 410px);
    min-height: 0;
    width: min(100%, 510px);
    margin: auto;
  }
  .scene-hero .scene-backdrop {
    inset: auto 0 0;
    width: 100%;
    height: clamp(310px, 78vw, 440px);
  }
  .scene-hero .scene-backdrop img { object-position: 80% 53%; }
  .scene-hero::before {
    inset: auto 0 0;
    height: clamp(312px, 78vw, 442px);
    background: linear-gradient(#24151d 0%, #24151d80 12%, transparent 33%, transparent 89%, #21141b77);
  }
  .scene-hero .phone { right: 0; }
  .photo-section { --inset: clamp(17px, 4.5vw, 27px); border-radius: 17px; }
  .photo-section:is(.photo-band,.photo-side) .scene-backdrop {
    inset: 0 0 auto;
    width: 100%;
    height: 218px;
    mask-image: linear-gradient(#000 55%, transparent 100%);
  }
  .photo-section:is(.photo-band,.photo-side) .scene-backdrop img {
    width: 100%; object-position: 78% 48%; mask-image: none;
  }
  .photo-section:is(.photo-band,.photo-side)::before {
    background: linear-gradient(90deg, #26171efc 1%, #26171ee8 29%, #26171ea8 56%, #26171e1f 96%);
  }
  .photo-section:is(.photo-band,.photo-side) .scene-heading {
    max-width: none;
    width: 100%;
    min-height: 160px;
    margin: 0;
    padding: 10px 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .photo-section .scene-heading h2 { max-width: 70%; font-size: clamp(27px, 6.3vw, 39px); }
  .photo-section .scene-heading p { max-width: 78%; font-size: 15px; }
  .photo-side .steps, .photo-side .scene-questions { max-width: none; }
  .photo-side .steps article { grid-template-columns: 34px 1fr; gap: 0 8px; }
  .photo-side .steps span { font-size: 29px; }
  .photo-band .four .card { padding: clamp(11px, 3vw, 18px); }
  .photo-band .four .card h3 { overflow-wrap: anywhere; }
  .photo-ending { display: flex; min-height: 220px; }
  .photo-ending .scene-backdrop { left: 0; }
  .photo-ending .scene-backdrop img { object-position: 83% center; }
  .photo-ending > div { max-width: 79%; }
  .photo-ending::before { background: linear-gradient(90deg, #321c29fa, #321c29d9 40%, #321c296b 68%, transparent); }
}
