.hero-carousel {
  display: flex;
  align-items: start;
  min-height: max(580px, 100svh);
  padding: calc(clamp(164px, calc(43svh + 76px), 556px) + 50px) var(--mast-pad) 40px;
  touch-action: pan-y pinch-zoom;
}
.hero-frames,
.hero-frame,
.hero-frame video {
  position: absolute;
  inset: 0;
}
.hero-frames { z-index: -2; overflow: hidden; }
.hero-frames::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(16 13 16 / .36), rgb(16 13 16 / .19) 28%, #100d1073 47%, #100d10b3 100%);
}
.hero-frame {
  z-index: auto;
  opacity: 0;
  transition: opacity .75s var(--ease);
}
.hero-frame.is-active { opacity: 1; }
.hero-frame img,
.hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-frame img { animation: none; }
.hero-frame video { opacity: 0; transition: opacity .35s var(--ease); }
.hero-carousel video.is-playing { opacity: 1; }
.hero-dock { width: min(100%, calc(var(--content-width) - 2 * var(--mast-pad))); margin-inline: auto; --hero-gap: 10px; --hero-columns: 8; }
.hero-stories {
  display: grid;
  grid-template-columns: repeat(var(--hero-columns), minmax(0, 1fr));
  gap: var(--hero-gap);
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.hero-story { grid-column: span 2; }
.hero-story a {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-block: 9px;
  color: #fff9f0;
  font: 550 clamp(13px, 1.05vw, 16px)/1.25 var(--sans);
  opacity: .58;
  transition: opacity .3s var(--ease);
}
.hero-story:is(.is-active, :hover, :focus-within) a { opacity: 1; }
.hero-story-title { min-width: 0; }
.hero-story-title > span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-category { font: 550 10px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hero-progress {
  display: block;
  width: 100%;
  height: 14px;
  padding: 0;
  border: 0;
  background: linear-gradient(#fff9f050, #fff9f050) center / 100% 1px no-repeat;
}
.hero-progress span { display: block; height: 1px; background: #fff9f0; transform: scaleX(0); transform-origin: left; }
.hero-previews {
  display: grid;
  grid-template-columns: repeat(var(--hero-columns), minmax(0, 1fr));
  gap: var(--hero-gap);
  margin-top: 8px;
}
.hero-preview {
  grid-row: 1;
  position: relative;
  aspect-ratio: 1.36;
  overflow: hidden;
  display: block;
}
.hero-preview:nth-child(1) { grid-column: 1; }
.hero-preview:nth-child(2) { grid-column: 3; }
.hero-preview:nth-child(3) { grid-column: 5; }
.hero-preview:nth-child(4) { grid-column: 7; }
.hero-preview img { height: 100%; object-fit: cover; }
.hero-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.hero-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 660px) {
  .hero-carousel { min-height: max(560px, 100svh); padding-top: calc(clamp(164px, calc(35svh + 76px), 356px) + 50px); }
  .hero-dock { --hero-columns: 4; }
  .hero-story-window { overflow: clip; overflow-clip-margin: 5px; }
  .hero-stories {
    width: calc(200% + var(--hero-gap));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transition: transform .65s var(--ease);
  }
  .hero-story { grid-column: auto; }
  .hero-carousel[data-story-pair="1"] .hero-stories {
    transform: translateX(calc(-50% - var(--hero-gap) / 2));
  }
  .hero-preview:nth-child(odd) { grid-column: 1; }
  .hero-preview:nth-child(even) { grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-frame, .hero-carousel video, .hero-story a, .hero-stories { transition: none; }
}
