/* Keep the existing scene filter and add a distinct color grade for every mood. */
html[data-phase=dawn]{--video-filter:sepia(.24) saturate(.85) hue-rotate(335deg);--video-tint:#f6a47e22}
html[data-phase=morning]{--video-filter:saturate(.9) brightness(1.06);--video-tint:#83dfff18}
html[data-phase=noon]{--video-filter:saturate(.85) sepia(.16) hue-rotate(165deg);--video-tint:#1254a333}
html[data-phase=afternoon]{--video-filter:sepia(.3) saturate(1.15) hue-rotate(335deg);--video-tint:#ffad7726}
html[data-phase=evening]{--video-filter:saturate(.85) hue-rotate(320deg);--video-tint:#6932a53b}
html[data-phase=night]{--video-filter:saturate(.72) hue-rotate(325deg);--video-tint:#130b453d}
.hero-video{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:0;filter:var(--video-filter);transition:filter 1.8s,opacity .4s}
.hero-video iframe{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;max-width:none;pointer-events:none}
.hero-video:after{content:'';position:absolute;inset:0;background:var(--video-tint);mix-blend-mode:color;transition:background 1.8s}
.hero.video-playing .hero-video{opacity:1}
html[data-phase] .hero.video-playing .hero-scene>img{opacity:0}
.hero-video-controls{position:absolute;right:var(--gutter);top:145px;z-index:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;max-width:calc(100% - 44px)}
.hero-media-toggle{position:relative;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:2px 10px;min-width:180px;min-height:64px;padding:10px 16px;border:2px solid transparent;border-radius:8px;color:#fff;background:linear-gradient(#101324,#101324) padding-box,linear-gradient(100deg,#91e2ff,#ff40ba,#ffd79c,#91e2ff) border-box;background-size:100% 100%,250% 100%;box-shadow:0 0 15px #65d4ff55,0 0 28px #ff40ba33;cursor:pointer;animation:sound-glow 3s ease-in-out infinite}
.hero-media-toggle[hidden]{display:none}
.hero-media-toggle svg{grid-row:1/3;width:27px;height:27px;fill:none;stroke:#91e2ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hero-media-toggle span{font:800 18px/1.1 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.08em;text-align:left}
.hero-media-toggle small{font:500 12px/1.2 'Space Grotesk',sans-serif;color:#d9e8ff;text-align:left;white-space:nowrap}
#hero-mute-toggle .sound-on-icon{display:none}
#hero-mute-toggle[aria-pressed=false] .sound-on-icon{display:block}
#hero-mute-toggle[aria-pressed=false] .sound-off-icon{display:none}
.hero-media-toggle:focus-visible{outline:3px solid #fff;outline-offset:4px}
#hero-video-status{grid-column:1/-1;justify-self:end;font:500 12px 'Barlow Condensed',sans-serif;color:var(--cream);background:var(--header-surface);padding:4px 8px;border-radius:4px}
#hero-video-status:empty{display:none}
@keyframes sound-glow{0%,100%{background-position:0 0,0% 50%;box-shadow:0 0 12px #65d4ff55,0 0 24px #ff40ba33}50%{background-position:0 0,100% 50%;box-shadow:0 0 22px #65d4ff88,0 0 36px #ff40ba66}}
@media(max-width:700px){
  .hero-video-controls{position:relative;inset:auto;grid-row:2;grid-column:1;align-self:start;justify-self:stretch;margin:18px 22px 0;max-width:none;gap:8px;pointer-events:none}
  .hero-media-toggle{min-width:0;min-height:64px;pointer-events:auto;padding:10px;grid-template-columns:24px 1fr;gap:2px 7px}
  .hero-media-toggle svg{width:23px;height:23px}
  .hero-media-toggle span{font-size:17px;letter-spacing:.05em}
  .hero-media-toggle small{font-size:10px}
  #hero-video-status{justify-self:start;background:#101324e8}
}
@media(max-width:360px){.hero-video-controls{margin-inline:16px}.hero-media-toggle{padding-inline:8px;gap:2px 6px}.hero-media-toggle span{font-size:16px;letter-spacing:.03em}}
@media(prefers-reduced-motion:reduce){.hero-video{transition:none}.hero-media-toggle{animation:none}}
