.hero {
  padding: 0;
  background: var(--color-paper);
}

.hero__frame {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  background: #0f172a;
  overflow: hidden;
  --hero-panel-height: 12rem;
  --hero-open-space: calc(100% - var(--hero-panel-height));
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__video[data-fit="contain"] {
  object-fit: contain;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), transparent 30%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.6), transparent 36%);
  pointer-events: none;
}

.hero__indicator-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-open-space);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(1rem, 2vw, 2rem);
  pointer-events: none;
}

.hero__rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.hero-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.hero-indicator__dial {
  position: relative;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--color-white) var(--progress, 0deg), rgba(255, 255, 255, 0.18) 0deg),
    rgba(15, 23, 42, 0.28);
}

.hero-indicator__dial::before {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
}

.hero-indicator__time {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-white);
}

.hero-indicator__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}

.hero__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem) 1.75rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
}

.hero__panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.25fr);
  gap: 3rem;
  width: min(100%, 76rem);
  margin-inline: auto;
  justify-content: center;
  align-items: start;
}

.hero__panel-title,
.hero__panel-copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  width: 100%;
  max-width: 40rem;
}

.hero__panel-title {
  justify-self: end;
  padding-left: clamp(1rem, 2.4vw, 2.5rem);
}

.hero__panel-copy {
  justify-self: start;
}

.hero__panel h1 {
  margin: 0;
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.3vw + 0.55rem, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--color-white);
  white-space: pre-line;
}

.hero__body {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 960px) {
  .hero__frame {
    min-height: 46rem;
    --hero-panel-height: 15rem;
  }

  .hero__panel {
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero__panel-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__panel-title,
  .hero__panel-copy {
    justify-self: stretch;
    max-width: none;
    padding-left: 0;
  }

  .hero__rail {
    gap: 0.85rem;
  }
}

@media (max-width: 700px) {
  .hero__frame {
    min-height: 41rem;
    --hero-panel-height: 16rem;
  }

  .hero__indicator-zone {
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
    padding-right: 0;
  }

  .hero__rail {
    flex-direction: row;
  }

  .hero__panel-inner {
    gap: 1.25rem;
  }

  .hero__video[data-fit="contain"] {
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-indicator__dial {
    transition: none;
  }
}
