/* PRERANA ICS — mobile reliability + scroll performance overrides */
html,body{width:100%;max-width:100%;overflow-x:hidden}
img,svg,video,canvas,iframe{max-width:100%}
*,*::before,*::after{box-sizing:border-box}
@media (max-width:820px){
  body{overscroll-behavior-x:none}
  .wrap{width:100%;max-width:100%;padding-left:16px;padding-right:16px}
  .pb-grid,.hero-grid,.lib-wrap,.split{grid-template-columns:1fr!important}
  .pb-art{order:-1;max-width:520px;width:100%;margin:0 auto}
  .pbanner{padding:42px 0 50px}
  .pbanner h1,.hero h1{font-size:clamp(2rem,9vw,3rem)!important;line-height:1.08}
  .pbanner p,.hero-sub{font-size:1rem;line-height:1.65}
  .hero{padding:54px 0 86px}
  .hero-grid{gap:26px}
  .hero-art,.fan,.orb,.st-wrap{max-width:100%;margin-left:auto;margin-right:auto}
  .three,.tracks,.courses,.feats,.quotes,.res-grid,.fac-grid,.stat-cards{grid-template-columns:1fr!important}
  .cd-grid{grid-template-columns:1fr 1fr!important}
  .cd{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .cd:nth-child(2n){border-right:0}
  .cd:last-child{grid-column:1/-1}
  .jobs{grid-template-columns:1fr!important}
  .filters{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px;scrollbar-width:none}
  .filters::-webkit-scrollbar{display:none}
  .filters>*{flex:0 0 auto}
  .lib-wrap{gap:20px!important}
  .lib-toc{display:block!important;overflow-x:auto;white-space:nowrap;position:static!important;padding:14px!important}
  .lib-toc a{display:inline-block!important;margin:4px 4px 4px 0}
  .lib-facts{padding:4px 12px!important;overflow-x:auto}
  .lib-tbl{min-width:620px}
  .tbl-wrap{max-width:100%;overflow-x:auto}
  .panel{min-width:0}
  .btn{max-width:100%;white-space:normal;text-align:center}
  .cta{overflow:hidden}
  .mobile-menu{overflow-y:auto!important;-webkit-overflow-scrolling:touch}
  /* kill expensive decorative motion on touch devices */
  .atm-grid,.atm-contour,.orb-ring,.st-grid .st,.book-obj,.hero-atmos,.cursor-glow{animation:none!important}
  .rf,.pb-pop,.rise{animation:none!important;opacity:1!important;transform:none!important}
  .ticker-track{animation-duration:90s!important}
}
@media (max-width:480px){
  .wrap{padding-left:14px;padding-right:14px}
  .pbanner{padding:34px 0 42px}
  .hero{padding:44px 0 72px}
  .cd-grid{grid-template-columns:1fr!important}
  .cd,.cd:nth-child(2n){border-right:0}
  .cd:last-child{grid-column:auto}
  .lib-sec h2{font-size:1.42rem}
  .lib-sec h3{font-size:1.02rem}
  .lib-tbl{font-size:.82rem}
  .lib-tbl th,.lib-tbl td{padding:8px 9px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
