:root {
  --bg: #050505;
  --text: #f2eee6;
  --icon: #f2eee6;
  --icon-hover: #c9a77b;
  --overlay-top: rgba(0, 0, 0, 0.34);
  --overlay-bottom: rgba(0, 0, 0, 0.56);
}

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

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

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.48)),
    url("assets/photonadirmohammedipointcom-web.jpg") 22% 8% / cover no-repeat;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 900ms ease, transform 1400ms ease;
}

.hero.is-ended .hero__photo {
  opacity: 1;
  transform: scale(1);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) contrast(1.03) brightness(0.74);
  transition: opacity 900ms ease;
}

.hero.is-ended .hero__video {
  opacity: 0;
}

.hero__video--mobile {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(to bottom, var(--overlay-top), var(--overlay-bottom));
}

.hero__content {
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  text-align: center;
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.78;
  font-family: "League Gothic", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.01em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.65);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-line--first,
.hero__title-line--second {
  font-size: clamp(5.8rem, 14vw, 13rem);
}

.hero__subtitle {
  margin: clamp(10px, 1.6vh, 16px) 0 0;
  color: var(--text);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  opacity: 0.82;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 30px);
  margin-top: clamp(30px, 4.2vh, 54px);
}

.socials__link {
  display: grid;
  place-items: center;
  width: clamp(32px, 2.7vw, 44px);
  aspect-ratio: 1;
  color: var(--icon);
  opacity: 0.94;
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.socials__link:hover,
.socials__link:focus-visible {
  transform: translateY(-3px) scale(1.05);
  opacity: 1;
  color: var(--icon-hover);
}

.socials__link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
  border-radius: 999px;
}

.socials__link svg {
  width: 100%;
  height: 100%;
}

.socials__link--instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials__link--x svg,
.socials__link--tiktok svg,
.socials__link--facebook svg,
.socials__link--mail svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 720px) {
  .hero__subtitle {
    margin-top: 10px;
    font-size: 0.78rem;
    letter-spacing: 0.045em;
    opacity: 0.8;
  }

  .hero__video--desktop {
    display: none;
  }

  .hero__video--mobile {
    display: block;
  }

  .hero__photo {
    background:
      linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.48)),
      url("assets/photonadirmohammedipointcom.jpg") 58% center / cover no-repeat;
  }

  .hero__content {
    justify-content: center;
    padding-inline: 20px;
  }

  .hero__video {
    object-position: 50% center;
  }

  .hero__title {
    line-height: 0.82;
    transform: translateY(-2vh);
  }

  .hero__title-line--first,
  .hero__title-line--second {
    font-size: clamp(4.5rem, 22vw, 8.5rem);
  }

  .socials {
    gap: 20px;
    margin-top: 34px;
  }

  .socials__link {
    width: 34px;
  }
}

@media (max-width: 430px) {
  .hero__title-line--first,
  .hero__title-line--second {
    font-size: clamp(4rem, 21vw, 6.7rem);
  }

  .socials {
    gap: 17px;
  }

  .socials__link {
    width: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .socials__link {
    transition: none;
  }
}
