#page-hero {
  background: var(--h-dark);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-video.is-active {
  opacity: 1;
}
.hero-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(10, 10, 10, 0.85) 100%),
    rgba(0, 0, 0, 0.15);
}
.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  opacity: 0.022;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-logo {
  width: 65%;
  max-width: 53vw;
  filter: drop-shadow(0 0 36px color-mix(in srgb, var(--accent) 22%, transparent));
  opacity: 0;
  transform: translateY(60px);
  animation: logoIn 1s var(--ease) 0.6s forwards;
}
.btn-hero-gold,
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1;
  padding: 13px 24px;
  color: #111;
  border: none;
  border-radius: 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-hero-gold {
  background: var(--accent);
  color: var(--on-accent);
  opacity: 0;
  translate: 0 20px;
  animation: heroBtnIn 0.6s var(--ease) 1.3s forwards;
}
.btn-hero-ghost {
  background: var(--accent-contrast);
  color: var(--accent-contrast-ink);
  opacity: 0;
  translate: 0 20px;
  animation: heroBtnIn 0.6s var(--ease) 1.45s forwards;
}
@keyframes heroBtnIn {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.btn-icon-side {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-text-side {
  display: flex;
  align-items: center;
}
@media (hover: hover) {
  .btn-hero-gold:hover,
  .btn-hero-ghost:hover {
    transform: translateY(-2px);
  }
  .btn-hero-gold:hover {
    background: var(--accent-strong);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  }
  .btn-hero-ghost:hover {
    background: var(--accent-contrast-hover);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  }
}
@media (max-width: 500px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (orientation: portrait) and (max-width: 600px) {
  .hero-logo {
    width: 91%;
    max-width: 74vw;
  }
}
@media (min-width: 1024px) {
  .hero-logo {
    width: 55%;
    max-width: 45vw;
  }
  .btn-hero-gold,
  .btn-hero-ghost {
    gap: 12px;
    padding: 17px 31px;
    border-radius: 23px;
    font-size: 0.94rem;
  }
  .btn-icon-side svg {
    width: 21px;
    height: 21px;
  }
}
.slide-hero-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--h-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#page-hero.slide-hero-active .slide-hero-video {
  opacity: 1;
}
#page-hero.slide-hero-active .hero-content {
  transition: transform 0.55s var(--ease), opacity 0.4s ease;
  transform: translateY(52px);
  opacity: 0;
  pointer-events: none;
}
#page-hero.slide-hero-active .hero-ov,
#page-hero.slide-hero-active .hero-grain {
  transition: opacity 0.4s ease;
  opacity: 0;
}
body.slide-hero-lock .menu-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.slide-hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.slide-hero-overlay.active {
  pointer-events: auto;
}
