/* Service-specific framing; motion remains optional and content stays in HTML. */
body.ps-page .ps-title { text-wrap:balance; max-width:19ch; }
body.ps-page .ps-hero :is(.ep-lead,.lead,.hero-lead) { text-wrap:pretty; }
body.ps-page .ps-hero-art { box-shadow:0 22px 65px #142b5120; }
body.ps-page .ps-hero-art figcaption { backdrop-filter:blur(12px); }
/* The heading already has its own entrance. Do not fade the entire first screen. */
body.ps-page .ps-hero .ep-animate-in { animation:none; opacity:1; }
body.open-classes-page .open-page-heading.ps-hero { margin-bottom:30px; }
body.open-classes-page .open-page-heading .ps-hero-copy > p { max-width:38ch; margin:24px 0 0; font-size:16px; line-height:1.8; color:#56667a; }
body.open-classes-page .open-page-heading .ps-hero-copy > p br { display:none; }
body.ps-page[data-ps-family=education] .ps-hero { background:linear-gradient(120deg,#f6f8ff 0%,#edf1ff 62%,#e2e8ff 100%)!important; }
body.ps-page[data-ps-family=education] :is(.ps-hero-art,.ep-hero-photo) { border-radius:90px 8px 40px 8px; overflow:hidden; border:8px solid #ffffffa6; outline:1px solid #cbd6f0; }
body.ps-page[data-ps-family=course] .ps-hero { background:linear-gradient(125deg,#faf8f2,#f5f1e7 68%,#ede9df)!important; }
body.ps-page[data-ps-family=course] .ps-hero-art { border-radius:8px 80px 8px 8px; border-bottom:8px solid #d8b07b; }
body.ps-page[data-ps-family=ai] .ps-hero:not(.scene,.site-scene-hero,.detail-scene,.aux-scene-hero,.lxp-scene-hero) { background:radial-gradient(ellipse at 83% 25%,#e2dfff,transparent 48%),linear-gradient(130deg,#f8f9ff,#f0effa)!important; }
body.ps-page[data-ps-family=ai] .ps-hero-art { border-radius:20px; border:8px solid #e0ddf2; transform:perspective(1100px) rotateY(-4deg); }
body.ps-page[data-ps-family=data] .ps-hero:not(.scene,.site-scene-hero,.detail-scene,.aux-scene-hero,.lxp-scene-hero) { background:linear-gradient(90deg,#dfece64a 1px,transparent 1px),linear-gradient(#dfece64a 1px,transparent 1px),linear-gradient(135deg,#f5faf6,#eaf4ee)!important; background-size:52px 52px,52px 52px,100% 100%!important; }
body.ps-page[data-ps-family=data] .ps-hero-art { border-radius:8px 8px 75px 8px; border:8px solid #ffffff9e; }
body.ps-page:is([data-ps-family=company],[data-ps-family=news],[data-ps-family=references]) .ps-hero { background:linear-gradient(115deg,#fbfaf5,#f3f1e9)!important; }
body.ps-page:is([data-ps-family=company],[data-ps-family=news],[data-ps-family=references]) .ps-hero-art { border-radius:4px; border:10px solid #fff; rotate:1.5deg; box-shadow:12px 16px 0 #e5e3d8,0 25px 55px #2b354518; }
body.ps-page[data-ps-family=instructors] .ps-hero-art { border-radius:100px 100px 12px 12px; background:#faefdf; }
body.ps-page[data-ps-family=utility] .ps-hero { background:radial-gradient(ellipse at 85% 15%,#e6eaff,transparent 60%),#f8fafc!important; }
body.ps-page .ps-chapters { box-shadow:0 8px 30px #172a4506; }
body.ps-page .ps-chapters a { position:relative; }
body.ps-page .ps-chapters a::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:var(--ps-accent); transform:scaleX(0); transform-origin:left; transition:transform .35s ease; }
body.ps-page .ps-chapters a[aria-current=true]::after { transform:scaleX(1); }
body.ps-page main.ps-main .ps-scroll-story--mission { --ps-scroll-first:#fff; --ps-scroll-second:#fff; --ps-scroll-paper:#fff; --ps-scroll-ink:#172a45; --ps-scroll-muted:#64758a; --ps-scroll-line:#dce3ec; }
body.ps-page .ps-scroll-story--mission .ps-scroll-media { border-radius:12px 90px 12px 12px; }
body.ps-page[data-ps-family=ai] .ps-scroll-story--detail { --ps-scroll-first:#201d38; --ps-scroll-second:#252442; }
body.ps-page[data-ps-family=data] .ps-scroll-story--detail { --ps-scroll-first:#143d38; --ps-scroll-second:#163f3a; }
body.ps-page[data-ps-family=data] .ps-scroll-story--detail .ps-scroll-media { border-radius:4px; outline:1px solid #ffffff3b; outline-offset:10px; }
body.ps-page[data-ps-family=education] .ps-scroll-story--detail .ps-scroll-media { border-radius:70px 10px 10px 10px; }
body.ps-page[data-ps-family=course] .ps-scroll-story--detail .ps-scroll-media { border-radius:10px 10px 70px 10px; }
body.ps-page .ps-scroll-story--detail .ps-scroll-orbit { opacity:.45; }
body.ps-page .ps-section--cards :is(.ep-card,.dsx-card,.open-card,.press-coverage-card) { position:relative; }
body.ps-page .ps-section--cards :is(.ep-card,.dsx-card,.open-card,.press-coverage-card)::before { content:''; display:block; position:absolute; top:0; left:0; right:0; height:3px; background:var(--ps-accent); transform:scaleX(0); transform-origin:left; transition:transform .4s; pointer-events:none; }
body.ps-page .ps-section--cards :is(.ep-card,.dsx-card,.open-card,.press-coverage-card):hover::before { transform:scaleX(1); }
@media(prefers-reduced-motion:no-preference) {
  body.ps-page:not(.ps-motion-paused) .ps-hero-art { animation:editorial-photo-open 1s cubic-bezier(.2,.7,.2,1) both; }
  body.ps-page:not(.ps-motion-paused) .ps-title { animation:editorial-title-open .8s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes editorial-photo-open { from { clip-path:inset(0 0 10% 8%); opacity:.7; translate:0 16px; } to { clip-path:inset(0); opacity:1; translate:0 0; } }
@keyframes editorial-title-open { from { opacity:.7; translate:0 16px; } to { opacity:1; translate:0 0; } }
@media(max-width:760px) {
  body.ps-page .ps-title { max-width:100%; }
  body.ps-page .ps-hero-art { transform:none!important; rotate:0deg!important; }
  body.ps-page[data-ps-family=education] :is(.ps-hero-art,.ep-hero-photo) { border-radius:44px 6px 22px 6px; border-width:5px; }
  body.ps-page:is([data-ps-family=company],[data-ps-family=news],[data-ps-family=references]) .ps-hero-art { box-shadow:6px 8px 0 #e5e3d8; }
}
@media(prefers-reduced-motion:reduce) { body.ps-page :is(.ps-title,.ps-hero-art,.ps-chapters a::after) { animation:none!important; transition:none!important; transform:none!important; rotate:0deg!important; } }
body.ps-page.ps-motion-paused :is(.ps-title,.ps-hero-art) { animation:none!important; clip-path:none!important; translate:none!important; opacity:1!important; }
