.phone { position: relative; height: 740svh; color: #fff9f1; font-family: Arial, sans-serif }
.phone-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: #201912 }
.phone-room, .phone-backdrop, .phone-room::after { position: absolute; inset: 0; width: 100%; height: 100% }
.phone-room { z-index: -1 }
.phone-backdrop { object-fit: cover; opacity: 0 }
.phone-backdrop.is-previous { opacity: 1 }
.phone-backdrop.is-current { z-index: 1; opacity: 1 }
.phone-room:has(.is-previous) .is-current { animation: phone-blend .32s ease-out both }
.phone-room::after {
  content: ""; z-index: 2;
  background: linear-gradient(0deg,#100d0bcc,transparent 30%),
    linear-gradient(90deg,#140f0bd9,#140f0b96 31%,#140f0b29 57%,transparent 68%);
}
@keyframes phone-blend { from { opacity: 0 } to { opacity: 1 } }

/* Keep the frame fixed while the four application views change inside it. */
.phone-device {
  position: absolute; left: 82.2%; top: 45.8%; transform: translate(-50%,-50%);
  height: min(63.1svh,35.5vw); aspect-ratio: 272 / 568; container-type: inline-size;
  border-radius: 15.1% / 7.2%; background: #181715; border: 1px solid #d2c3b5;
  box-shadow: .7vw 1vw 1.6vw #140e0aae;
}
.phone-screen { position: absolute; inset: 2% 3.8% 2.4%; margin: 0; visibility: hidden }
.phone-screen.is-current { visibility: visible }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12.4% / 5.72% }
.phone-screen figcaption {
  position: absolute; top: 106%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  color: #fbf3e8; font-size: max(.68rem,5.1cqw); text-shadow: 0 1px 3px #140f0b;
}
.phone-text {
  --type: min(1.4375vw,2.56svh);
  position: absolute; left: 5.3%; top: 51.3%; transform: translateY(-50%); width: 40%;
  font-size: var(--type); line-height: 1.28; color: #f1ece5;
}
.phone-copy h2 {
  margin: 0 0 .54em -.07em; color: #fff9f1; font-size: min(4.25vw,7.56svh);
  font-weight: 400; line-height: 1.07; letter-spacing: -.038em;
}
.phone-copy > p { max-width: 23.9em; margin: 0 }
.phone-copy > p + p { margin-top: .93em }
.phone-copy .phone-example { margin-top: 1.95em }
.phone-copy .phone-example + p { margin-top: .24em; max-width: 21em }
.phone-copy strong { color: #fff6e9 }
.phone-copy .phone-lead { font-size: 1.08em; max-width: 21em }
.climate-examples { list-style: none; padding: 0; margin: 1.95em 0 0; font-size: .956em }
.climate-examples li + li { margin-top: .72em }
.phone-note { display: block; margin-top: 2.9em; font-size: max(.68rem,.57em); color: #e6d8cb }
@media (prefers-reduced-motion: no-preference) {
  .phone-copy [data-beat] { transition: opacity .28s ease-out, translate .32s ease-out }
  .phone.touch-story .phone-copy[hidden] [data-beat],
  .phone-copy .awaiting-scroll { opacity: 0; translate: 0 .55rem }
}
.phone-scenes {
  position: absolute; left: 50%; top: 89.3%; transform: translateX(-50%); width: 49.6%;
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #fff5e76e;
}
.phone-scenes button {
  position: relative; border: 0; background: transparent; color: #ded5ca; text-align: center;
  padding: 1.14em .2em .65em; cursor: pointer; font: 400 max(.75rem,1.0625vw)/1.2 Arial,sans-serif;
}
.phone-scenes button:is([aria-pressed="true"],:hover) { color: #fffbf4 }
.phone-scenes button[aria-pressed="true"] { font-weight: 700 }
.phone-scenes button[aria-pressed="true"]::before {
  content: ""; position: absolute; top: -1px; inset-inline: 3%; height: 2px; background: #efc095;
}
.phone-scenes button:focus-visible { outline: 2px solid #efc095; outline-offset: 2px }
@media (prefers-reduced-motion: reduce) {
  .phone { height: 400svh }
  .phone-room:has(.is-previous) .is-current { animation: none }
}
