/* Shared motion language for approved V1 and experimental V2. */
:root{--motion-press:160ms;--motion-control:320ms;--motion-panel:420ms;--motion-cinema:1100ms;--motion-curve:cubic-bezier(.2,.72,.22,1);--ease:var(--motion-curve)}
html[data-theme] :is(.theme-toggle,.menu-toggle,.show-more,.storyboard-tools button,.case-toggle,.work-story){transition:color var(--motion-control),background var(--motion-control),border-color var(--motion-control),opacity var(--motion-control),transform var(--motion-control) var(--motion-curve)}
html[data-theme] :is(.theme-toggle,.menu-toggle,.show-more,.storyboard-tools button,.case-toggle,.work-story):active{transform:scale(.97);transition-duration:var(--motion-press)}
html[data-theme] .hero-cinema .hero-watch{transition:background var(--motion-control),transform var(--motion-control) var(--motion-curve),box-shadow var(--motion-control)}
.work .frame:before,.play-glass{transition:opacity var(--motion-control),transform var(--motion-panel) var(--motion-curve),background var(--motion-panel),box-shadow var(--motion-panel)}
.show-more:after{transition:transform var(--motion-panel) var(--motion-curve)}
.more-cue{transition:transform var(--motion-panel) var(--motion-curve),background var(--motion-control),border-color var(--motion-control)}
.client-mark{transition:transform 600ms var(--motion-curve)}
html[data-theme] .storyboard-frame.is-active{animation-duration:var(--motion-cinema)}
.film-dialog[open],.film-dialog[open]::backdrop{animation-duration:var(--motion-panel)}
/* Reserve every phrase's height so typing cannot move the gallery. */
.type-line .type-sizer{display:grid;grid-area:1/1;visibility:hidden;pointer-events:none}
.type-sizer>span{grid-area:1/1}
.type-line .type-display{grid-area:1/1}
.type-line .type-pause{grid-area:1/2}
/* The same silhouette and palette as desktop hover, triggered by a real button. */
html[data-theme] button.client{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;border-radius:0;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
html[data-theme] button.client:hover{background:transparent;box-shadow:none}
html[data-theme] .client.is-tapped .client-mark{transform:translateY(-3px) scale(1.07)}
html[data-theme] .client.is-tapped .client-color{opacity:1}
html[data-theme] .client.is-tapped .client-color:after{opacity:1;animation:client-tap-palette 3.2s ease-in-out 1 both;animation-play-state:running}
@keyframes client-tap-palette{0%,100%{background-position:0% 50%}45%,60%{background-position:100% 50%}}
html[data-theme] .client.is-tapped:after{opacity:1;transform:none}
html[data-theme] .client:focus-visible{outline:2px solid var(--brand-yellow);outline-offset:-3px;border-radius:8px}
@media(prefers-reduced-motion:reduce){html[data-theme] .client.is-tapped .client-mark{transform:none}html[data-theme] .client.is-tapped .client-color:after{animation:none;background-position:50% 50%}}

@media(prefers-reduced-motion:reduce){html[data-theme] :is(.theme-toggle,.menu-toggle,.show-more,.show-more:after,.more-cue,.hero-watch,.play-glass,.client-mark,.work .frame:before){transition:none;transform:none}html[data-theme] .storyboard-frame.is-active,.film-dialog[open],.film-dialog[open]::backdrop{animation:none}}
