*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
}

@media (max-width: 767px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}

body.modal-open {
  overflow: hidden;
}

.hero {
  display: flex;
  justify-content: center;
}

.hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  line-height: 0;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .hero {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    height: -webkit-fill-available;
  }

  .hero__image-wrap {
    height: 100%;
  }

  .hero__image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

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

.hotspot {
  --hotspot-size: clamp(2rem, 5vw, 3rem);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--hotspot-size);
  height: var(--hotspot-size);
  margin: calc(var(--hotspot-size) / -2) 0 0 calc(var(--hotspot-size) / -2);
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #e31e24;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.5);
  animation: hotspot-bounce 2s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  transform: scale(1.12);
  box-shadow: 0 0 0 8px rgba(227, 30, 36, 0.25);
  outline: none;
}

.hotspot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes hotspot-bounce {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.85;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #111;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.25s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .modal__panel {
    padding: 0.5rem;
    border-radius: 10px;
  }
}

/* ESPA banner */
.espa-banner {
  position: fixed;
  z-index: 20;
  pointer-events: none;
}

.espa-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .espa-banner {
    right: 0;
    bottom: 0;
    width: 35%;
  }
}

@media (max-width: 767px) {
  .espa-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}
