/* V10: theme-driven layout variants. Editorial remains completely unchanged. */
html:not([data-ph-layout="editorial"]) .project-card,
html:not([data-ph-layout="editorial"]) .skill,
html:not([data-ph-layout="editorial"]) .project-art,
html:not([data-ph-layout="editorial"]) .contact__panel {border-radius:var(--ph-card-radius,4px)}
html[data-ph-layout="brutalist"]{--max:1600px;--gutter:clamp(16px,4vw,85px)}
html[data-ph-layout="brutalist"] .hero h1{font-weight:900;letter-spacing:-.085em;text-transform:uppercase}
html[data-ph-layout="brutalist"] .hero__monolith{border-radius:0;transform:translate(-50%,-50%) rotate(-6deg)}
html[data-ph-layout="brutalist"] .project-card{border:2px solid var(--text);box-shadow:8px 8px 0 var(--wine)}
html[data-ph-layout="swiss"]{--max:1320px;--gutter:clamp(20px,6vw,100px)}
html[data-ph-layout="swiss"] .hero h1{letter-spacing:-.06em;font-weight:700}
html[data-ph-layout="swiss"] .project-card{box-shadow:none;border:1px solid var(--line)}
html[data-ph-layout="swiss"] .hero__monolith{border-radius:7px;transform:translate(-50%,-50%) rotate(0)}
html[data-ph-layout="cinematic"]{--max:1550px;--gutter:clamp(20px,5.8vw,110px)}
html[data-ph-layout="cinematic"] .hero h1{letter-spacing:-.073em}
html[data-ph-layout="cinematic"] .hero__monolith{filter:drop-shadow(0 25px 45px rgba(0,0,0,.25))}
html[data-ph-layout="cinematic"] .project-card{background:var(--surface);box-shadow:0 28px 80px rgba(0,0,0,.15)}
html[data-ph-layout="soft"]{--max:1380px;--gutter:clamp(20px,5.4vw,110px)}
html[data-ph-layout="soft"] .hero h1{letter-spacing:-.05em;font-weight:700}
html[data-ph-layout="soft"] .hero__monolith{border-radius:50% 45% 45% 50% / 40% 55% 45% 60%}
html[data-ph-layout="soft"] .project-card{border-radius:var(--ph-card-radius,16px)}
html:not([data-ph-layout="editorial"]) section:not(.hero){scroll-margin-top:90px}
html:not([data-ph-layout="editorial"]) .container{max-width:var(--max)}
html:not([data-ph-layout="editorial"]) .section-heading{padding-block:calc(1.5rem * var(--ph-space-scale,1))}
html[data-ph-motion="minimal"] .hero__orbit{animation:none!important}
html[data-ph-motion="gentle"] .hero__orbit{animation-duration:26s!important}
html[data-ph-motion="cinematic"] .hero__monolith{transition:transform 1.2s cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){html[data-ph-layout] *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Motion personality: scrub-driven sections and the user's reduced-motion setting stay intact. */
html[data-ph-layout] .reveal{transition-duration:var(--ph-reveal-duration,.85s)}
html[data-ph-layout] body.is-ready .hero .mask-line>span{animation-duration:var(--ph-hero-duration,1.2s)}
html[data-ph-motion="bold"] .reveal:not(.is-visible){transform:translateY(65px) scale(.97)}
html[data-ph-motion="minimal"] .reveal:not(.is-visible){transform:translateY(9px)}
html[data-ph-motion="cinematic"] .reveal:not(.is-visible){transform:translateY(58px) scale(.96);filter:blur(3px)}
html[data-ph-motion="cinematic"] .reveal.is-visible{filter:blur(0)}
html[data-ph-motion="gentle"] .reveal:not(.is-visible){transform:translateY(18px) scale(.99)}
html[data-ph-layout="soft"] .nav-cta,html[data-ph-layout="soft"] .filter,html[data-ph-layout="soft"] .submit-button{border-radius:999px}
html[data-ph-layout="brutalist"] .nav-cta,html[data-ph-layout="brutalist"] .filter,html[data-ph-layout="brutalist"] .submit-button{border-radius:0;border-width:2px}
html[data-ph-layout="swiss"] .nav-cta{border-radius:2px}
@media(prefers-reduced-motion:reduce){html[data-ph-motion] .reveal{filter:none!important;transform:none!important}}
