/* Preserve Home typography and copy; only the media layer changes. */
.home-motion { background: #142235; isolation: isolate; }
.home-motion #hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home-motion .hero-shade { z-index: 1; pointer-events: none; background: linear-gradient(90deg,#142235e0, #14223580 42%,transparent 70%); }
.home-motion .hero-copy { position: relative; z-index: 2; transition: opacity .45s ease, transform .6s ease; }
.home-motion.in-story .hero-copy { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.home-motion.in-story .hero-shade { opacity: 0; }
.story-tools { position: absolute; z-index: 4; bottom: 32px; left: var(--pad); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.home-motion .video-button { background: #101010d9; color: #f5f2e9; border-color: #d89c4866; }
.home-motion .video-button:hover, .home-motion .video-button:focus-visible { color: #edb875; background: #1c1710; }
.story-action { display: inline-flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; padding: 8px; }
.story-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-disc { display: grid; place-items: center; width: 26px; height: 26px; }
.story-play { width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; margin-left: 3px; }
.story-pause { display: none; width: 11px; height: 14px; border-inline: 3px solid currentColor; }
.home-motion.in-story:not(.paused) .story-play { display: none; }
.home-motion.in-story:not(.paused) .story-pause { display: block; }
#story-language { color: #c5bfb4; font-size: 12px; }
.story-reset { position: absolute; z-index: 4; bottom: 32px; right: var(--pad); min-height: 48px; }
.story-caption { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(120px,15vh,155px); width: min(840px,75%); font-size: clamp(22px,2.5vw,36px); font-weight: 400; line-height: 1.25; letter-spacing: -.015em; opacity: 0; transform: translateY(15px); transition: opacity .42s,transform .52s; pointer-events: none; text-wrap: balance; }
.story-caption.show { opacity: 1; transform: none; }
.story-caption .word { opacity: .25; color: #f3efe6; transition: opacity .12s,color .15s; white-space: nowrap; }
.story-caption .word.done { opacity: .65; }
.story-caption .word.now { opacity: 1; color: #fff; }
.story-caption .word.em { color: #e0a756; }
.story-meter { position: absolute; z-index: 3; top: 46%; right: var(--pad); height: 26px; display: flex; align-items: center; gap: 3px; opacity: 0; pointer-events: none; }
.story-meter i { width: 2px; height: 4px; background: #d89c48; }
.home-motion.in-story .story-meter { opacity: .74; }
.story-error { position: absolute; z-index: 4; bottom: 96px; left: var(--pad); max-width: 85%; color: #f9cba1; font-size: 14px; }
.home-motion [hidden] { display: none !important; }
.home-motion :focus-visible { outline-color: #edb875; }
@media (max-width: 800px) {
  .home-motion .hero-copy { align-self: start; padding-block: 120px 290px; }
  .home-motion .hero-shade { background: linear-gradient(180deg,#142235b8, #14223590 45%,transparent 75%); }
  .story-tools { bottom: 28px; gap: 10px; max-width: calc(100% - 2 * var(--pad)); }
  .home-motion.in-story .story-tools { bottom: 84px; }
  .story-reset { bottom: 24px; left: var(--pad); right: auto; }
  .story-caption { bottom: 170px; width: calc(100% - 2 * var(--pad)); font-size: clamp(20px,5.2vw,29px); }
  .story-meter { top: 100px; }
  .story-error { bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion *, .home-motion *::before, .home-motion *::after { transition: none !important; }
}
/* Approved Studio mesh and original story share a controlled handoff. */
.home-motion #art { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:1; transition:opacity 1.15s ease; }
.home-motion #hero-art { opacity:0; transition:opacity 1.15s ease; }
.home-motion.in-story #hero-art { opacity:1; }
.home-motion.in-story #art { opacity:0; }
.home-motion.in-story.returning #hero-art { opacity:0; transition-duration:.35s; }
.home-motion.in-story.returning #art { opacity:1; transition-duration:.35s; }
.home-motion.in-story:not(.sphere-ready):not(.returning) #hero-art { opacity:0; }
.home-motion.in-story:not(.sphere-ready):not(.returning) #art { opacity:1; }
.home-motion.in-story.sphere-ready:not(.returning) #hero-art,.home-motion.in-story.sphere-ready:not(.returning) #art { transition-duration:.3s; }
/* Keep the motion visible through the header without compromising navigation contrast. */
.home-page .site-header:not(.is-scrolled):not(.is-menu-open) { background: rgba(20,34,53,.78); }
.home-motion .hero-shade { background: linear-gradient(90deg,rgba(20,34,53,.97) 0%,rgba(20,34,53,.90) 45%,rgba(20,34,53,.72) 59%,transparent 82%); }
@media (max-width: 800px) {
  .home-motion .hero-shade { background: linear-gradient(180deg,rgba(20,34,53,.94) 0%,rgba(20,34,53,.83) 42%,rgba(20,34,53,.2) 72%,transparent 100%); }
}
.home-motion .story-sound .sound-on, #story-sound .sound-on { display:none; }
#story-sound[aria-pressed="true"] .sound-on { display:block; }
#story-sound[aria-pressed="true"] .sound-off { display:none; }
.hero-body p + p { margin-top: 14px; }
.story-caption[lang="es"] .word { white-space:normal; }
