:root {
  --bg: #060806;
  --text: #fff8e8;
  --muted: rgba(255, 248, 232, 0.76);
  --line: rgba(255, 248, 232, 0.18);
  --gold: #f5c86a;
  --green: #103a26;
  --shadow: rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 200, 106, 0.14), transparent 34%),
    linear-gradient(135deg, #050605, #0d120c 48%, #040504);
  transition: opacity 900ms ease, visibility 900ms ease;
}

.enter-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.enter-content {
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.system-text {
  margin: 0;
  color: rgba(255, 248, 232, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  animation: pulse 2.4s ease-in-out infinite;
}

.enter-button {
  min-height: 56px;
  padding: 0 34px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 248, 232, 0.32);
  border-radius: 999px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 0 22px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 200, 106, 0.78);
  background: rgba(245, 200, 106, 0.12);
  box-shadow: 0 22px 80px rgba(245, 200, 106, 0.18), inset 0 0 22px rgba(255, 255, 255, 0.08);
  outline: none;
}

.experience {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -4;
  background: #111;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  background: #111;
}

.hero-media img {
  object-fit: cover;
  object-position: left center;
  transform: scale(1.06) translate3d(0, 0, 0);
  filter: saturate(1.04) contrast(1.04);
  animation: cinematicPush 20s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}

.experience.is-live .hero-media img {
  animation-play-state: running;
}

.cinema-vignette,
.light-sweep,
.film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema-vignette {
  z-index: -3;
  background:
    radial-gradient(circle at 24% 36%, rgba(245, 200, 106, 0.09), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.36)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 36%, rgba(0, 0, 0, 0.42));
}

.light-sweep {
  z-index: -2;
  opacity: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 248, 232, 0.16) 42%, transparent 62%);
  transform: translateX(-110%);
}

.experience.is-live .light-sweep {
  animation: sweep 4.8s ease 1.1s both;
}

.film-grain {
  z-index: -1;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px);
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: soft-light;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cinematicPush {
  from {
    transform: scale(1.08) translate3d(0, 0.8%, 0);
  }
  to {
    transform: scale(1.01) translate3d(1.2%, -0.6%, 0);
  }
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }
  24%,
  58% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.52;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .hero-media img {
    inset: 0 8px;
    width: auto;
    object-fit: contain;
    object-position: center center;
    animation-name: mobileCinematicPush;
  }

  .hero-media::before {
    display: block;
    background-image: url("assets/us-open-hype-mobile.webp");
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.1) brightness(0.7);
    transform: scale(1.1);
  }

  .cinema-vignette {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.04) 36%, rgba(0, 0, 0, 0.52)),
      radial-gradient(circle at 50% 17%, rgba(245, 200, 106, 0.08), transparent 34%);
  }
}

@keyframes mobileCinematicPush {
  from {
    transform: scale(1) translate3d(0, 0.4%, 0);
  }
  to {
    transform: scale(1) translate3d(0, -0.4%, 0);
  }
}

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