.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hero-height: clamp(610px, 85svh, 855px);
  --hero-text: #fcfaf6;
  --hero-accent: #eac09d;
  --hero-blue: #bcd5e6;
  min-height: var(--hero-height);
  background: #162622;
  color: var(--hero-text);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #0b1918f2 0%, #0e1c1bde 21%, #142420a6 45%, #17272126 68%, transparent 87%),
    linear-gradient(0deg, #101c1cdf, #101c1c37 22%, transparent 45%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: var(--hero-height);
  padding-block: clamp(56px, 8svh, 94px) clamp(98px, 13svh, 150px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(23px, 3.4vw, 47px);
  color: var(--hero-blue);
  font: 800 .71rem/1.45 var(--sans);
  text-transform: uppercase;
  letter-spacing: .19em;
}

.hero-kicker span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(3.75rem, 6.7vw, 7rem);
  line-height: .965;
  letter-spacing: -.057em;
}

.hero h1 span, .hero h1 em { display: block; }
.hero h1 em {
  margin-top: .085em;
  color: var(--hero-accent);
  font-weight: inherit;
}

.hero-description {
  max-width: min(100%, 43ch);
  margin-block: clamp(20px, 2.4vw, 31px) 25px;
  color: #f2eee7;
  font-size: clamp(.95rem, 1.17vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px clamp(15px, 2.3vw, 32px);
}

.hero-actions .text-link { color: var(--hero-text); }
.hero-actions .text-link:hover { color: var(--hero-accent); }

.hero-scroll {
  position: absolute;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #f0eee6;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero-scroll-line {
  width: 32px;
  height: 1px;
  background: #f3eee98a;
  transition: width .35s var(--ease), background .35s;
}

.hero-scroll svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.hero-scroll:hover .hero-scroll-line { width: 43px; background: var(--hero-blue); }
.hero-scroll:hover svg { transform: translateY(4px); }

.hero-figure {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photos {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  --hero-photo-scale: 1.035;
  --hero-photo-shift: 0px;
}

.hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.hero-picture.is-preparing { visibility: hidden; }

.hero-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 59%;
  transform: translateY(var(--hero-photo-shift)) scale(var(--hero-photo-scale));
}

.hero-picture[data-hero-picture="1"] img { object-position: 58% 58%; }
.hero-picture[data-hero-picture="2"] img { object-position: 62% 54%; }
.hero-picture[data-hero-opening] img { animation: hero-photo-settle 1.45s var(--ease); }

@keyframes hero-photo-settle {
  from { transform: translateY(var(--hero-photo-shift)) scale(calc(var(--hero-photo-scale) + .085)); }
}

.hero-caption {
  position: absolute;
  right: max(var(--gutter), calc((100% - 1320px) / 2));
  bottom: 25px;
  color: var(--hero-text);
  pointer-events: auto;
}

.hero-switcher {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid #fff5df63;
}

.hero-switcher[hidden], .hero-play[hidden] { display: none; }

.hero-counter {
  align-self: end;
  margin-bottom: 12px;
  color: #e4e8e5;
  font: 650 .74rem/1.25 var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-counter strong { color: var(--hero-text); font-size: 1.06rem; font-weight: 800; }
.hero-counter span { color: var(--hero-blue); }

.hero-scene-list {
  display: grid;
  grid-auto-columns: 82px;
  grid-auto-flow: column;
  gap: 9px;
}

.hero-scene {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 56px;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #f4f0e8;
  font-size: .67rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.hero-scene picture, .hero-scene img { display: block; }

.hero-scene img {
  width: 100%;
  height: 44px;
  object-fit: cover;
  object-position: 57% 47%;
  border: 1px solid #fcfaf66e;
  opacity: .78;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}

.hero-scene:hover img, .hero-scene[aria-pressed="true"] img {
  border-color: var(--hero-blue);
  opacity: 1;
}

.hero-scene[aria-pressed="true"] span { color: #fff; }

.hero-scene::before, .hero-scene::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--hero-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.hero-scene[aria-pressed="true"]::before { transform: scaleX(1); }
.hero[data-hero-playing] .hero-scene[aria-pressed="true"]::before { opacity: .26; }
.hero[data-hero-playing] .hero-scene[aria-pressed="true"]::after {
  animation: hero-timeline 6.5s linear both;
}

@keyframes hero-timeline { to { transform: scaleX(1); } }

.hero-play {
  display: grid;
  width: 44px;
  height: 44px;
  margin-top: -10px;
  place-items: center;
  border: 1px solid #fcfaf695;
  border-radius: 50%;
  background: #152724aa;
  color: var(--hero-text);
  cursor: pointer;
}

.hero-play:hover { background: var(--hero-text); color: var(--ink); }
.hero-play .hero-pause-icon,
.hero-play[aria-pressed="true"] .hero-play-icon { display: none; }
.hero-play[aria-pressed="true"] .hero-pause-icon { display: block; }
.hero :is(a, button):focus-visible { outline-color: #aad3ef; outline-offset: 4px; }

.hero-credit {
  padding-top: 9px;
  color: #f2eee7;
  font-size: .65rem;
  font-weight: 650;
  text-align: right;
}

.hero-enter { animation: hero-copy-enter .9s var(--ease) both; }
.hero-enter:nth-child(2) { animation-delay: .09s; }
.hero-enter:nth-child(3) { animation-delay: .16s; }
.hero-enter:nth-child(4) { animation-delay: .24s; }

@keyframes hero-copy-enter {
  from { opacity: .55; transform: translateY(15px); }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .hero h1 { font-size: clamp(3.65rem, 7.1vw, 5.4rem); }
  .hero::after {
    background:
      linear-gradient(90deg, #0d1a1af5 0%, #0f1c1ce0 22%, #16242194 54%, #1627230e 87%),
      linear-gradient(0deg, #111e1be8, transparent 37%);
  }
  .hero-picture img { object-position: 55% 59%; }
}

@media (max-width: 720px) {
  .hero {
    --hero-height: clamp(680px, calc(100svh - 93px), 830px);
  }
  .hero::after {
    background:
      linear-gradient(0deg, #111e1d 3%, #111e1df5 24%, #111e1da8 43%, #12211c22 63%, transparent 79%),
      linear-gradient(180deg, #0c1d1d9c, transparent 20%);
  }
  .hero-photos { inset: -35px 0 106px; }
  .hero-picture[data-hero-picture="0"] img { object-position: 50% 47%; }
  .hero-picture[data-hero-picture="1"] img { object-position: 49% 54%; }
  .hero-picture[data-hero-picture="2"] img { object-position: 49% 47%; }
  .hero-copy { justify-content: flex-end; padding-block: clamp(275px, 39svh, 369px) 37px; }
  .hero-kicker { margin-bottom: 14px; font-size: .62rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.3vw, 4.15rem); line-height: 1.005; }
  .hero h1 em { margin-top: .035em; }
  .hero-description { margin-block: 15px 16px; line-height: 1.6; font-size: .9rem; }
  .hero-actions .button { min-height: 48px; padding-inline: 15px; }
  .hero-scroll { display: none; }
  .hero-caption { top: 13px; right: var(--gutter); bottom: auto; }
  .hero-switcher {
    gap: 8px;
    min-height: 49px;
    padding: 4px 6px;
    border: 1px solid #fcfaf652;
    background: #12231fc7;
  }
  .hero-scene-list { grid-auto-columns: 44px; gap: 5px; }
  .hero-scene { min-height: 44px; align-content: center; padding: 0; }
  .hero-scene img { height: 34px; }
  .hero-scene span, .hero-counter, .hero-credit { display: none; }
  .hero-scene::before, .hero-scene::after { bottom: 0; }
  .hero-play { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter, .hero-picture[data-hero-opening] img { animation: none; }
  .hero-picture img { transform: none; }
  .hero-scroll-line, .hero-scroll svg, .hero-scene img { transition: none; }
  .hero-scroll:hover svg { transform: none; }
}
