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

:root {
  --red: #e10600;
  --red-dark: #a80400;
  --black: #0a0a0a;
  --gray-900: #141414;
  --gray-600: #6b6b6b;
  --gray-400: #a3a3a3;
  --white: #ffffff;
  --overlay: rgba(0, 0, 0, 0.62);
  --overlay-edge: rgba(0, 0, 0, 0.78);
  --font-racing: "Racing Mega Race", "Bebas Neue", sans-serif;
}

@font-face {
  font-family: "Racing Mega Race";
  src: url("assets/fonts/RacingMegaRace-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Barlow", system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gray-900);
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(270deg);
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      var(--overlay-edge) 0%,
      var(--overlay) 35%,
      var(--overlay) 65%,
      var(--overlay-edge) 100%
    ),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 52rem;
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem 3rem;
}

.hero__title {
  font-family: var(--font-racing);
  font-size: clamp(2.5rem, 12vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.85);
  margin-bottom: 0;
  text-transform: uppercase;
  display: block;
}

.hero__tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.hero__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 52rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero__soon {
  font-family: "Russo One", "Barlow Condensed", sans-serif;
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.9);
  margin-bottom: 1.25rem;
}

.hero__soon-accent {
  color: var(--red);
}

.hero__rule {
  width: 4rem;
  height: 3px;
  background: var(--red);
  margin: 0 auto 1.25rem;
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.5rem;
}

.hero__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__contact-item:hover {
  color: var(--red);
}

.hero__contact-item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  fill: currentColor;
}

.hero__contact-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--gray-600);
  display: none;
}

@media (min-width: 640px) {
  .hero__contact-divider {
    display: block;
  }
}

/* Mobile Responsiveness Optimizations (Applied strictly to mobile viewports) */
@media (max-width: 639px) {
  .hero__video {
    min-width: 100vh;
    min-height: 100vw;
    width: max(100vh, 177.78vw);
    height: max(100vw, 177.78vh);
  }

  .hero__content {
    padding: 2rem 0.75rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero__title {
    font-size: clamp(1.5rem, 9.2vw, 3.2rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__tagline {
    font-size: clamp(0.75rem, 3.2vw, 1.1rem);
    letter-spacing: clamp(0.1em, 1.5vw, 0.2em);
    margin-top: 0.35rem;
  }

  .hero__center {
    top: 56%;
    padding: 0 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero__soon {
    font-size: clamp(1.6rem, 7.5vw, 2.5rem);
    margin-bottom: 0.85rem;
  }

  .hero__rule {
    margin-bottom: 1rem;
  }

  .hero__contact {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero__contact-item {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    padding: 0.35rem 0.65rem;
    max-width: 100%;
  }
}

/* Adjust center block on short height mobile screens to prevent overlap */
@media (max-width: 639px) and (max-height: 680px) {
  .hero__content {
    padding-top: 1.25rem;
  }

  .hero__center {
    top: 58%;
  }

  .hero__soon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero__rule {
    margin-bottom: 0.75rem;
  }
}
