.hero-image[data-hero-gallery] { background-image: none; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; opacity: 0; transition: opacity .55s ease; }
.hero-scene.is-current { opacity: 1; z-index: 1; }
.hero-scene.is-under { opacity: 1; transition: none; }
.hero-image[data-hero-gallery]::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg,#080b11ef, #080b11c0 24%, #080b114d 38%, transparent 53%); }
.hero-scene-controls { position: absolute; right: var(--gutter); bottom: 1rem; display: grid; grid-template-columns: minmax(0,1fr) 44px 44px; align-items: center; width: min(100% - 2 * var(--gutter), 306px); padding: .45rem .55rem .2rem; border: 1px solid #f3dd9d38; border-radius: 12px; background: #10151cf5; color: #fff; box-shadow: 0 10px 28px #0006; }
.hero-scene-controls[hidden] { display: none; }
.hero-scene-controls button { min-width: 0; height: 44px; border: 0; border-radius: 6px; background: transparent; color: #e8e1cd; cursor: pointer; }
.hero-scene-controls button:is(:hover,:focus-visible) { background: #ffffff14; }
.hero-scene-controls button:focus-visible { outline: 2px solid #f6c84c; outline-offset: -2px; }
.hero-song-title { grid-column: 1 / -1; min-width: 0; padding-inline: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 700; letter-spacing: .01em; }
.hero-scene-nav { min-width: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: center; margin-right: .25rem; }
.hero-scene-step { display: grid; place-items: center; padding: 0 .22rem; }
.hero-scene-step::before { content: ""; width: 100%; height: 3px; border-radius: 2px; background: #a5a199; }
.hero-scene-step[aria-current="true"]::before { height: 5px; background: #f6c84c; }
.hero-media-button { display: grid; place-items: center; padding: 0; }
.hero-media-button[data-hero-sound] { border-inline-start: 1px solid #f3dd9d20; }
.hero-play-icon,.hero-sound-icon { position: relative; width: 17px; height: 17px; display: block; }
.hero-play-icon { width: 12px; height: 14px; border-inline: 3px solid currentColor; }
[data-paused="true"] .hero-play-icon { width: 13px; border: 0; background: currentColor; clip-path: polygon(7% 0,100% 50%,7% 100%); }
.hero-sound-icon::before { content: ""; position: absolute; inset: 2px 6px 2px 0; background: currentColor; clip-path: polygon(0 33%,40% 33%,100% 0,100% 100%,40% 67%,0 67%); }
.hero-sound-icon::after { content: ""; position: absolute; inset: 3px 0 3px 8px; border: solid currentColor; border-width: 0 2px 0 0; border-radius: 50%; }
[data-hero-sound][aria-pressed="false"] .hero-sound-icon::after { inset: 0 3px 0 auto; width: 2px; border: 0; border-radius: 0; transform: rotate(39deg); background: currentColor; }
@media (max-width: 1279px) {
  .modern-hero:has([data-hero-gallery]) { min-height: 0; }
  .modern-hero:has([data-hero-gallery]) .hero-layout { min-height: 0; padding-block: 1.7rem 1.8rem; }
  .hero-image[data-hero-gallery] { position: relative; height: clamp(198px,61vw,390px); z-index: 0; }
  .hero-image[data-hero-gallery]::after { background: linear-gradient(0deg,#080b1199,transparent 25%); }
  .hero-scene { object-position: 94% 48%; }
  .hero-scene-controls { position: relative; inset: auto; margin: .65rem var(--gutter) 0 auto; box-shadow: none; }
}
@media (min-width: 641px) and (max-width: 1279px) {
  .hero-image[data-hero-gallery] { height: auto; aspect-ratio: 2 / 1; }
  .modern-hero:has([data-hero-gallery]) .hero-copy { width: 100%; }
}
@media (max-width: 640px) {
  .hero-image[data-hero-gallery] { height: clamp(180px, 60vw, 390px); }
  .hero-image[data-hero-gallery] .hero-scene { object-position: right center; }
  .hero-scene-controls { width: calc(100% - 2 * var(--gutter)); max-width: 380px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .hero-scene { transition: none; } }
@media (min-width: 1280px) {
  .hero-scene:is([data-tv], [data-hero-film]) {
    object-fit: contain;
    object-position: right center;
    background: #080b11;
  }
  .modern-hero:has([data-hero-gallery]) .hero-copy h1 { font-size: clamp(76px, 6.1vw, 116px); }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  .modern-hero:has([data-hero-gallery]) .hero-copy { width: min(30vw, 440px); }
  .modern-hero:has([data-hero-gallery]) .hero-actions { display: grid; width: min(100%, 310px); gap: .7rem; }
}
.hero-tv-light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-image[data-hero-gallery]::after { z-index: 3; }
.hero-demo {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(.65rem, 2vw, 1.25rem);
  border: 1px solid #334458;
  border-radius: 14px;
  background: #0b111c;
  color: #fff;
}
.hero-demo::backdrop { background: #05080de8; }
.hero-demo-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.hero-demo-heading h2 { margin: 0; font-size: clamp(1.1rem, 3vw, 1.55rem); }
.hero-demo-heading button { cursor: pointer; min-width: 44px; min-height: 44px; border: 1px solid #56637a; border-radius: 8px; color: #fff; background: #1a2534; font-size: 1.5rem; }
.hero-demo-heading button:focus-visible, .hero-demo video:focus-visible { outline: 2px solid #f6c84c; outline-offset: 3px; }
.hero-demo-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 255px); gap: clamp(.75rem, 2vw, 1.35rem); }
.hero-demo video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; max-height: 68dvh; border-radius: 10px; background: #05080d; }
.hero-demo-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .65rem; color: #c1cbd9; font-size: .85rem; }
.hero-demo-feedback button { padding: .6rem .75rem; border: 1px solid #56637a; border-radius: 8px; background: #162230; color: #fff; font: inherit; cursor: pointer; }
.hero-demo-chapters { list-style: none; display: grid; align-content: start; gap: .4rem; margin: 0; padding: 0; }
.hero-demo-chapters button { width: 100%; padding: .6rem .75rem; border: 1px solid #334458; border-radius: 8px; background: #101b29; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.hero-demo-chapters button[aria-current='step'] { border-color: #eac453; background: #262317; }
.hero-demo-chapters strong, .hero-demo-chapters span { display: block; }
.hero-demo-chapters span { margin-top: .2rem; color: #c1cbd9; font-size: .84rem; line-height: 1.35; }
.hero-demo button:focus-visible { outline: 2px solid #f6c84c; outline-offset: 2px; }
@media (max-width: 720px) { .hero-demo-content { grid-template-columns: 1fr; } }
html:has(.hero-demo[open]) { overflow: hidden; }
