/* Insurance agencies (plan.md, the niche pages). Layout E: the clip in a wide inset frame (two calm clips in the kit's
   rotate), `fastreply` over the frame's lower left edge, under the faces, the words centered under it. The outcomes,
   the tour, the questions and the close are shared (design\components.css, "the niche pages"). Tokens only. */

/* ---------- the header ---------- */
.ish { padding-block: clamp(1.25rem, .75rem + 2vh, 2.25rem) clamp(3.5rem, 2rem + 6vh, 6rem); }
.ish__frame { position: relative; height: 480px; border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-l); }
.ish__media { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

/* the kit's header (kit.md), as it gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }

.ish__stop { top: 16px; right: 16px; }
/* the reply card half over the frame's lower left edge, below the faces (the lowest ends at 62% of the frame); the
   words beside it, under the frame */
.scene.ish__scene { position: absolute; z-index: 3; left: clamp(16px, 3vw, 40px); top: 330px; width: 400px; }
.ish__words { margin: 2.5rem 0 0 calc(clamp(16px, 3vw, 40px) + 400px + clamp(2rem, 1rem + 3vw, 4.5rem)); max-width: 44rem; text-align: left; }
.ish__words .ph__title { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.5rem); }
.ish__words.ph--center .ph__title, .ish__words.ph--center .ph__line { margin-inline: 0; }
.ish__words.ph--center .ph__cta, .ish__words.ph--center .ph__note { justify-content: flex-start; }
@media (max-width: 1099.98px) {
  .ish__words { margin: 13rem auto 0; max-width: 46rem; text-align: center; }
  .ish__words.ph--center .ph__title, .ish__words.ph--center .ph__line { margin-inline: auto; }
  .ish__words.ph--center .ph__cta, .ish__words.ph--center .ph__note { justify-content: center; }
}

/* ---------- the close: the family small at the door, so the phone's photo is square, the card under their faces ---------- */
@media (max-width: 899.98px) {
  .ins-close .closer__media, .ins-close .closer__over { aspect-ratio: 1; }
}

/* ---------- the phone ---------- */
@media (max-width: 759.98px) {
  .ish__frame { height: 380px; }
  .scene.ish__scene { left: 12px; right: 12px; bottom: auto; top: 252px; width: auto; }
  .ish__words { margin-top: 12.5rem; }
}
