/* A normal, accessible gallery until the scroll enhancement is available. */
.phone-story { position: relative; }
.phone-pane { position: relative; }
.preview-feedback { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 32px); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 16px; background: rgb(0 0 0 / 88%); color: var(--white); text-align: center; pointer-events: none; }
.preview-feedback[hidden], .preview-retry[hidden] { display: none; }
.preview-message { font-size: 12px; line-height: 1.5; }
.preview-spinner { display: none; width: 24px; height: 24px; border: 2px solid rgb(245 245 247 / 20%); border-top-color: var(--white); border-radius: 50%; }
.is-loading .preview-spinner { display: block; animation: preview-spin 900ms linear infinite; }
.preview-retry { min-height: 44px; padding: 0 10px; border: 0; border-radius: 4px; color: var(--white); background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; pointer-events: auto; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .preview-feedback.is-loading { animation: preview-loader-in 180ms var(--ease-out) 180ms both; }
}
@keyframes preview-loader-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .is-loading .preview-spinner { animation: none; } }
.phone-copy, .phone-selector, .phone-speaker, .phone-home, .phone-backdrop { display: none; }
.phone-fallback-label { margin-top: 16px; font-size: 18px; letter-spacing: -.02em; }
.phone-controls { margin-top: 24px; text-align: center; }
.phone-skip { z-index: 3; }
.phone-story.is-phone-ready { height: 470svh; }
.is-phone-ready .phone-pin { position: sticky; top: 64px; height: calc(100svh - 64px); min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-block: 28px 12px; }
.is-phone-ready .phone-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.is-phone-ready .phone-copy { display: block; text-align: left; }
.phone-copy .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.phone-labels { display: grid; margin-top: 24px; }
.phone-label { grid-area: 1 / 1; align-self: center; font-size: clamp(30px, 3.8vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; opacity: 0; }
.phone-label[data-active="true"] { opacity: 1; }
.phone-hint { margin-top: 28px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.phone-hint span { display: inline-block; margin-left: 8px; }
.is-phone-ready .phone-device { position: relative; width: min(340px, 34vw, calc((100svh - 160px) * .49)); aspect-ratio: 1 / 2.04; padding: 8px; border-radius: 48px; border: 1px solid #a3a3a6; background: linear-gradient(120deg, #77777c, #171719 15%, #4e4e52 48%, #111113 76%, #89898e); box-shadow: inset 0 0 0 2px #2d2d30, inset 0 0 0 4px #080809, 0 32px 64px rgb(0 0 0 / 60%); }
.is-phone-ready .phone-device::before, .is-phone-ready .phone-device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #757579; }
.is-phone-ready .phone-device::before { left: -3px; top: 22%; height: 13%; }
.is-phone-ready .phone-device::after { right: -3px; top: 28%; height: 10%; }
.is-phone-ready .phone-screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; isolation: isolate; background: #080808; }
.is-phone-ready .phone-feed { display: flex; flex-direction: column; gap: 0; height: 100%; width: 100%; max-width: none; will-change: transform; }
.is-phone-ready .phone-pane { position: relative; flex: 0 0 100%; height: 100%; min-height: 0; overflow: hidden; }
.is-phone-ready .phone-pane .edit-tile { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: #080808; transform: none; transition: none; }
.is-phone-ready .phone-pane .edit-tile:focus-visible { outline-offset: -8px; border-radius: 36px; }
.is-phone-ready .phone-pane video { position: relative; z-index: 1; object-fit: contain; transform: none; transition: none; }
.is-phone-ready .phone-backdrop { display: block; position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(24px); opacity: .45; transform: none; transition: none; pointer-events: none; }
.is-phone-ready .phone-fallback-label { display: none; }
.is-phone-ready .phone-speaker { display: block; position: absolute; z-index: 2; top: 18px; left: 50%; width: 24%; height: 19px; transform: translateX(-50%); border-radius: 12px; background: #030303; box-shadow: inset 0 1px 1px rgb(255 255 255 / 9%); pointer-events: none; }
.is-phone-ready .phone-speaker::after { content: ""; position: absolute; right: 9px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #15171e; }
.is-phone-ready .phone-home { display: block; position: absolute; z-index: 2; bottom: 17px; left: 50%; transform: translateX(-50%); width: 28%; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 65%); pointer-events: none; }
.is-phone-ready .phone-selector { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; }
.phone-selector button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.phone-selector button span { display: block; width: 18px; height: 2px; background: var(--muted); transform: scaleX(.55); transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.phone-selector button[aria-current="true"] span { background: var(--white); transform: scaleX(1); }
.is-phone-ready .phone-controls { margin-top: 12px; height: 44px; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) { .phone-selector button:hover span { background: var(--white); } }
@media (max-width: 700px) {
  .phone-story.is-phone-ready { height: 470svh; }
  .is-phone-ready .phone-pin { top: 60px; height: calc(100svh - 60px); padding-block: 14px 4px; }
  .is-phone-ready .phone-layout { display: flex; flex-direction: column; gap: 16px; }
  .is-phone-ready .phone-copy { text-align: center; width: 100%; }
  .phone-copy .eyebrow { font-size: 10px; }
  .phone-labels { margin-top: 8px; }
  .phone-label { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; }
  .phone-hint { display: none; }
  .is-phone-ready .phone-device { width: min(280px, 70vw, calc((100svh - 240px) * .49)); padding: 6px; border-radius: 36px; }
  .is-phone-ready .phone-screen { border-radius: 30px; }
  .is-phone-ready .phone-speaker { top: 13px; height: 15px; }
  .is-phone-ready .phone-speaker::after { top: 5px; right: 7px; width: 5px; height: 5px; }
  .is-phone-ready .phone-home { bottom: 13px; }
  .is-phone-ready .phone-selector { flex-direction: row; align-items: center; height: 28px; }
  .phone-selector button { width: 38px; }
  .is-phone-ready .phone-controls { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce), (max-height: 500px) {
  .phone-story.is-phone-ready { height: auto; }
}
@media print {
  .phone-story.is-phone-ready { height: auto; }
  .is-phone-ready .phone-pin { position: static; height: auto; }
  .is-phone-ready .phone-layout { display: block; }
  .is-phone-ready .phone-copy, .is-phone-ready .phone-selector, .phone-controls, .is-phone-ready .phone-speaker, .is-phone-ready .phone-home { display: none; }
  .is-phone-ready .phone-device { width: auto; aspect-ratio: auto; padding: 0; border: 0; background: none; }
  .is-phone-ready .phone-screen { overflow: visible; }
  .is-phone-ready .phone-feed { transform: none !important; display: grid; height: auto; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .is-phone-ready .phone-pane .edit-tile { aspect-ratio: 3 / 4; height: auto; }
  .is-phone-ready .phone-fallback-label { display: block; }
}
