/* Shared polish for the Cinematic demos (Nov 6 2026). Load after the site's own site.css.
   1. Page transitions: while the music is on, softnav.js swaps pages in place and they cross-fade (Chrome, Edge, Safari 18+).
      No cross-document @view-transition: every link is x.html, which the host redirects to /x, and a redirect cancels it.
   2. Headlines arrive: each page's h1 rises in, and its italic second line comes into focus a beat later.
      On the home page they wait behind the opening screen (gate.js) and play when it lifts.
   3. The sound button on pages without a hero: a dark pill bottom-right on desktop, a small toggle beside the menu on phones. */
::view-transition-old(root){animation:.32s cubic-bezier(.4,0,1,1) both cine-out}
::view-transition-new(root){animation:.5s cubic-bezier(.22,.61,.36,1) .08s both cine-in}
@keyframes cine-out{to{opacity:0}}
@keyframes cine-in{from{opacity:0;transform:translateY(10px)}}

main h1{animation:cine-up 1.1s cubic-bezier(.22,.61,.36,1) .12s both}
main h1>em{animation:cine-focus 1.4s cubic-bezier(.22,.61,.36,1) .5s both}
@keyframes cine-up{from{opacity:0;transform:translateY(28px)}}
@keyframes cine-focus{from{opacity:0;filter:blur(10px)}}
html.gate-on main h1,html.gate-on main h1>em{animation-play-state:paused}

.snd-head{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:40;padding:9px 16px;font:inherit;font-size:13px;letter-spacing:.04em;color:#f1ede6;background:rgba(18,19,20,.88);border:1px solid rgba(241,237,230,.28);border-radius:999px;cursor:pointer;white-space:nowrap;box-shadow:0 6px 20px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.snd-head:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media (max-width:860px){
  .snd-head,.snd-head[aria-pressed=true]{position:static;display:inline-flex;align-items:center;margin-left:auto;margin-right:0;min-height:44px;padding:0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:inherit;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .snd-head[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}
  .head.open-menu .snd-head,.head.open .snd-head{visibility:hidden}
}
/* small phones: "SOUND" and an on/off dot (the full words stay as its accessible name) */
@media (max-width:420px){
  .snd-head,.snd-head[aria-pressed=true]{font-size:0;letter-spacing:0;padding:0 8px;min-width:44px;justify-content:center;text-decoration:none}
  .snd-head::before{content:"Sound";font-size:11px;letter-spacing:.12em}
  .snd-head::after{content:"";width:7px;height:7px;margin-left:7px;border-radius:50%;border:1px solid currentColor;box-sizing:border-box}
  .snd-head[aria-pressed=true]::after{background:currentColor}
}
@media (prefers-reduced-motion:reduce){
  main h1,main h1>em{animation:none}
}
