/* One device carries the change of format. Physical proportions: iPhone 16. */
.format-section{position:relative;background:var(--bg);padding-block:100px}
.format-sticky{position:relative}
.format-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.format-copy{position:relative;z-index:2;display:grid;gap:24px;text-align:center}
.format-caption h2{font-size:clamp(30px,5.5svh,52px);line-height:1.02;letter-spacing:-.04em}
.format-caption-long h2 br{display:none}
.format-caption p{margin:8px auto 0;font-size:clamp(15px,2svh,18px);line-height:1.4;color:var(--muted)}
.format-device-stage{position:relative;height:min(680px,78svh);min-width:0;isolation:isolate}
.iphone-device{--phone-width:300px;--phone-height:618.44px;--phone-bezel:9px;position:absolute;top:50%;left:50%;width:var(--phone-width);height:var(--phone-height);padding:var(--phone-bezel);border-radius:53px;background:#282a2c;box-shadow:inset 0 0 0 1px #707477,inset 0 0 0 3px #1c1d1e,inset 0 0 0 5px #45474a,0 28px 55px -28px #0006;transform:translate(-50%,-50%) rotate(-90deg) scale(.5)} /* taste-skill-ignore: physical device frame, explicitly requested. */
.iphone-screen{position:relative;width:100%;height:100%;overflow:hidden;border-radius:45px;background:#050505;isolation:isolate}
.format-media,.format-clip{position:absolute;inset:0}
/* Both clips are fixed to the glass. The landscape clip is mounted sideways inside the portrait frame. */
.format-clip-long{inset:auto;top:50%;left:50%;width:calc(var(--phone-height) - var(--phone-bezel) - var(--phone-bezel));height:calc(var(--phone-width) - var(--phone-bezel) - var(--phone-bezel));transform:translate(-50%,-50%) rotate(90deg)}
.format-media img,.format-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.format-clip-short,.iphone-device[data-format="short"] .format-clip-long{visibility:hidden}
.iphone-device[data-format="short"] .format-clip-short{visibility:visible}
.format-video{opacity:0;pointer-events:none}.format-video.is-ready{opacity:1}
.iphone-island{position:absolute;z-index:3;top:11px;left:50%;width:82px;height:24px;border-radius:20px;transform:translateX(-50%);background:#020202;box-shadow:inset 0 0 0 1px #ffffff09} /* taste-skill-ignore: actual iPhone hardware. */
.iphone-island i{position:absolute;right:9px;top:8px;width:8px;height:8px;border-radius:50%;background:#111820;box-shadow:inset 0 0 0 2px #171d28} /* taste-skill-ignore: camera lens. */
.iphone-home{position:absolute;z-index:3;bottom:8px;left:50%;width:94px;height:4px;border-radius:3px;background:#fff9;transform:translateX(-50%)}
.iphone-button{position:absolute;background:#393c3f;border-radius:2px;box-shadow:inset 0 0 0 1px #6a6e72} /* taste-skill-ignore: physical side controls. */
.iphone-action{left:-2px;top:97px;width:3px;height:22px}.iphone-volume-up{left:-2px;top:143px;width:3px;height:43px}.iphone-volume-down{left:-2px;top:197px;width:3px;height:43px}.iphone-power{right:-2px;top:160px;width:3px;height:66px}.iphone-camera{right:-2px;top:385px;width:3px;height:37px}
.format-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px;position:relative;z-index:3}
.format-playback{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--panel-raised);color:var(--text);transition:transform 180ms var(--ease)}
.format-playback:hover{transform:scale(1.06)}.format-playback:active{transform:scale(.94)}.format-playback svg{width:18px;height:18px}
.format-icon-pause{display:none}.format-playback[aria-pressed="true"] .format-icon-play{display:none}.format-playback[aria-pressed="true"] .format-icon-pause{display:block}
.format-source{position:absolute;z-index:4;top:50%;left:50%;transform:translate(139px,-62px) translateX(-100%)}
.format-shortcut{position:absolute;top:0;left:0;width:0;height:0;pointer-events:none}
.has-format-story .format-section{height:280svh;padding:0}
.has-format-story .format-sticky{position:sticky;top:0;height:100svh;padding:clamp(70px,10svh,94px) 0 max(56px,calc(env(safe-area-inset-bottom) + 48px));overflow:clip}
.has-format-story .format-layout{height:100%;min-height:0;grid-template-rows:clamp(63px,9svh,86px) minmax(0,1fr)}
.has-format-story .format-copy{display:block}
.has-format-story .format-caption{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;will-change:transform,opacity}
.has-format-story .format-caption-short{opacity:0;pointer-events:none}
.has-format-story .format-device-stage{height:100%;min-height:0}
.has-format-story .format-controls{position:absolute;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);margin:0}
.has-format-story .format-shortcut{top:calc((100% - 100svh)*.9 + 86px)}
@media(max-width:600px){
 .format-caption h2{font-size:clamp(28px,8vw,38px)}
 .has-format-story .format-sticky{padding-top:max(68px,env(safe-area-inset-top))}
 .has-format-story .format-layout{grid-template-rows:64px minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 .has-format-story .format-section{height:auto;padding-block:100px}
 .has-format-story .format-sticky{position:relative;height:auto;padding:0;overflow:visible}
 .has-format-story .format-copy{display:grid}
 .has-format-story .format-layout{height:auto;grid-template-rows:auto;gap:20px}
 .has-format-story .format-caption{position:static;opacity:1!important;transform:none!important;will-change:auto}
 .has-format-story .format-device-stage{height:min(78svh,850px)}
 .has-format-story .format-controls{position:relative;bottom:auto;left:auto;transform:none;margin-top:12px}
 .has-format-story .format-shortcut{top:0}
}

.format-section.is-near .iphone-device{will-change:transform}
