:root {
  --background: #020303;
  --foreground: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #020303;
}

.hero__image,
.hero__shade,
.hero__glow,
.transition-screen {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  animation: image-arrival 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s ease;
}

.hero__shade {
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.48) 28%,
      rgba(0, 0, 0, 0.03) 58%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 40%, rgba(0, 0, 0, 0.32));
}

.hero__glow {
  z-index: -2;
  opacity: 0.42;
  background: radial-gradient(
    circle at 59% 51%,
    rgba(255, 54, 47, 0.22),
    transparent 31%
  );
  animation: heart-breath 4.8s ease-in-out infinite;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: clamp(32px, 7.8vw, 150px);
  z-index: 2;
  width: min(500px, 42vw);
  transform: translateY(-50%);
}

.hero__eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  animation: content-arrival 1s 0.15s ease both;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6.4vw, 112px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: nowrap;
  animation: content-arrival 1.1s 0.25s ease both;
}

.hero__tagline {
  margin: 25px 0 40px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(15px, 1.18vw, 20px);
  font-weight: 300;
  letter-spacing: 0.015em;
  animation: content-arrival 1.1s 0.38s ease both;
}

.enter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-width: 176px;
  padding: 14px 17px 14px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  backdrop-filter: blur(14px);
  cursor: pointer;
  animation: content-arrival 1.1s 0.5s ease both;
  transition: border-color 0.35s ease, background 0.35s ease,
    transform 0.35s ease;
}

.enter-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.2), transparent 70%);
  transform: translateX(-115%);
  transition: transform 0.7s ease;
}

.enter-button:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.enter-button:hover::before {
  transform: translateX(115%);
}

.enter-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

.enter-button__arrow {
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.35s ease;
}

.enter-button:hover .enter-button__arrow {
  transform: translateX(3px);
}

.hero__edition {
  position: absolute;
  right: clamp(26px, 3vw, 58px);
  bottom: 30px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.transition-screen {
  z-index: 5;
  display: grid;
  place-items: center;
  background: #020303;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.62s ease 0.18s;
}

.transition-screen p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.42em;
  transform: translateY(44px);
}

.transition-screen__heart {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff322d;
  box-shadow: 0 0 20px #ff322d, 0 0 70px rgba(255, 50, 45, 0.8);
  animation: dot-pulse 1.7s ease-in-out infinite;
}

.is-entering .hero__content,
.is-entering .hero__edition {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.is-entering .hero__image {
  animation: none;
  filter: brightness(0.68) saturate(1.2);
  transform: scale(1.16);
}

.is-entering .transition-screen {
  opacity: 1;
  pointer-events: auto;
}

@keyframes image-arrival {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes content-arrival {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heart-breath {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.58;
    transform: scale(1.05);
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .hero__image {
    object-position: 61% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.87) 90%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent);
  }

  .hero__content {
    top: auto;
    left: 26px;
    bottom: 52px;
    width: calc(100% - 52px);
    transform: none;
  }

  .hero__eyebrow {
    margin-bottom: 15px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .hero__tagline {
    margin: 17px 0 26px;
    font-size: 14px;
  }

  .hero__edition {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
