/* pc-flow: card-flow scrolling for paisty.com. 2026-11-16.
   Built to stay still on iPhone Safari:
   - stacking is plain position:sticky (no scroll handlers, no per-frame JS);
   - motion is transform/opacity only (translate, opacity), on the compositor;
   - scroll-driven animations where supported, one-shot IntersectionObserver otherwise;
   - no 100vh anywhere (heights come from a 100svh probe), no backdrop-filter on cards;
   - prefers-reduced-motion gets flat, unstacked sections. */
@supports (overflow-x:clip){html,body{overflow-x:clip}}
html.pc-on .pc-host{padding:8px 0 28px}
html.pc-on .pc-card{position:sticky;top:var(--pc-top,96px);z-index:1;
  width:min(1180px,calc(100% - 24px));margin:0 auto 24px;padding:clamp(48px,8svh,96px) 0;
  border:1px solid var(--line);border-top:1px solid var(--line);border-radius:28px;
  background:var(--paper);box-shadow:0 -16px 40px rgba(0,0,0,.07),0 1px 0 rgba(0,0,0,.02);
  transform:translateZ(0);contain:paint}
html.pc-on .pc-card.dark{background:var(--ink);border-color:var(--ink);box-shadow:0 -16px 44px rgba(0,0,0,.22)}
@media (max-width:640px){html.pc-on .pc-card{width:calc(100% - 14px);border-radius:20px;margin-bottom:16px;padding:44px 0}}

@keyframes pc-rise{from{opacity:.15;transform:translate3d(0,36px,0)}to{opacity:1;transform:none}}
@supports (animation-timeline:view()){
  html.pc-on.pc-sda .pc-rise{animation:pc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 40%}
}
html.pc-on.pc-io .pc-rise{opacity:0;transform:translate3d(0,36px,0);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
html.pc-on.pc-io .pc-rise.pc-seen{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html.pc-on .pc-card{position:relative;top:auto!important;transform:none}
  html.pc-on .pc-rise,html.pc-on.pc-io .pc-rise,html.pc-on.pc-sda .pc-rise{animation:none!important;opacity:1!important;transform:none!important;transition:none!important}
}
@media print{html.pc-on .pc-card{position:static;box-shadow:none}}
