.sl-hero--held-phone .sl-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "scene" "quote";
  gap: 18px;
}
.sl-hero--held-phone .sl-hero__quote { justify-self: center; width: min(100%, 34rem); }
.sl-hero--held-phone .sl-hero__time { font-size: clamp(2.35rem, 10vw, 4.2rem); }
.sl-hero--held-phone .sl-hero__lede { margin-bottom: 14px; }
.sl-hero--held-phone .phone-hero {
  position: relative;
  display: grid;
  width: min(100%, 660px);
  grid-area: scene;
  justify-self: center;
  justify-content: stretch;
  margin: 0;
}
.phone-hero__frame {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1;
  touch-action: pan-y pinch-zoom;
}
.phone-hero__drawing, .phone-hero__front {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.phone-hero__front { z-index: 2; }
/* The corners follow the case in the original 1200 × 1200 illustration.
   The foreground carries the original hand and ink over the glass. */
.phone-hero__screen {
  position: absolute;
  z-index: 1;
  top: 12.083333%;
  left: 23.5%;
  width: 33.333333%;
  height: 70%;
  display: block;
  overflow: hidden;
  /* App-yellow backing and edge (same geometry as before): nothing dark can
     show around a capture, while one loads, or during a crossfade. */
  background: #fde68a linear-gradient(#f3dc84, #fee88c 18%, #fee88c);
  border: 1px solid #f6df82;
  border-radius: 8% / 4%;
  transform-origin: top left;
  transform: rotate(-2.2deg) skewX(-6deg);
  transform: perspective(100cqw) matrix3d(.940493,-.037155,.213353,0,-.084438,.915739,.001446,0,0,0,1,0,0,0,0,1);
}
.phone-hero__slide {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.phone-hero__slide[hidden] { display: none; }
.phone-hero__slide:focus-visible { outline: 3px solid #2b3a34; outline-offset: -4px; }
/* The 900 × 1957 captures (≈.46) are a hair taller than the glass (≈.476).
   Fill the glass edge to edge, undistorted: cover trims only ≈3% of the
   height, mostly the empty strip below the content, never the status bar.
   The untouched original opens via tap-to-enlarge. */
.phone-hero__screen .phone-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  background: #fee88c;
  user-select: none;
  -webkit-user-drag: none;
}
/* With JS, slides are stacked and crossfaded: the incoming capture (already
   decoded) fades in on top of the outgoing one, which stays fully opaque
   underneath until the fade ends, so the backing never shows through. */
.phone-hero__screen.is-stacked .phone-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.phone-hero__screen.is-stacked .phone-hero__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.phone-hero__screen.is-stacked .phone-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .phone-hero__screen.is-stacked .phone-hero__slide.is-active { transition: opacity .45s ease-out; }
  .phone-hero__screen.is-stacked .phone-hero__slide.is-entering { opacity: 0; transition: none; }
}
.phone-hero__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  margin-top: -2%;
  color: #2b3a34;
  font: 600 .91rem/1.3 Poppins, sans-serif;
  text-align: center;
}
.phone-hero__controls { display: flex; align-items: center; gap: 2px; }
.phone-hero__controls[hidden] { display: none; }
.phone-hero__controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  background: #fefbe8;
  color: #2b3a34;
  border: 1.5px solid #2b3a34;
  border-radius: 50%;
  font: 500 1.8rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.phone-hero__controls button:hover { background: #ffe78d; }
.phone-hero__controls button:focus-visible { outline: 3px solid #2b3a34; outline-offset: 3px; }
.phone-hero__index { min-width: 3.2em; font-size: .8rem; font-variant-numeric: tabular-nums; }
.phone-hero__label { max-width: 100%; }

@media (max-width: 599px) {
  .sl-hero--held-phone .phone-hero { width: min(100vw - 12px, 480px); }
  .sl-hero--held-phone .sl-hero__inner { row-gap: 12px; }
  /* Controls and label on separate rows; the label always reserves two
     lines, so long and short labels never change the caption's height. */
  .phone-hero__caption { flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 0 8px; }
  .phone-hero__label {
    display: flex; align-items: flex-start; justify-content: center;
    min-height: 2.6em; /* 2 × line-height 1.3 */
  }
}
@media (min-width: 680px) {
  .sl-hero--held-phone .sl-hero__inner {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-areas: "copy scene" "quote scene";
    align-items: end;
    gap: 18px clamp(14px, 3.3vw, 48px);
  }
  .sl-hero--held-phone .sl-hero__quote { align-self: start; justify-self: start; }
  .sl-hero--held-phone .phone-hero { align-self: center; }
  .sl-hero--held-phone .sl-hero__time { font-size: clamp(4rem, 7.7vw, 7rem); }
}
