:root {
  color-scheme: dark;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #151515;
}

* {
  box-sizing: border-box;
}

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

body {
  color: #fff;
  background: #151515;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
}

.hero__backdrop {
  position: absolute;
  z-index: -2;
  inset: -12px;
  background: url("assets/background.webp") left center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.025);
  animation: backdrop-in 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(5, 5, 5, 0.60);
}

.card {
  display: flex;
  min-height: 100svh;
  width: min(638px, calc(100% - 40px));
  padding: max(150px, 9vh) 0 28px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro h1,
.intro p,
footer p {
  margin: 0;
}

.intro h1 {
  color: #c6b174;
  font-size: clamp(3rem, 8vw, 4.75rem);
  font-weight: 100;
  line-height: 1.08;
  letter-spacing: 0.065em;
}

.intro p {
  margin-top: 8px;
  color: #f2f2f2;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 300;
  letter-spacing: 0.035em;
}

.rule {
  width: 50%;
  margin: 34px auto 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.27);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.socials a {
  display: grid;
  width: 40px;
  height: 40px;
  color: #777;
  background: #fff;
  border-radius: 50%;
  place-items: center;
  transition: color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: #2d2d2d;
  background: #c6b174;
  outline: none;
  transform: translateY(-2px);
}

.socials svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}

.socials svg .fill {
  fill: currentColor;
  stroke: none;
}

.platforms {
  margin-top: 106px;
}

.platforms img {
  display: block;
  height: auto;
}

.imdb {
  display: inline-block;
  transition: opacity 180ms ease;
}

.imdb img {
  width: 64px;
}

.music-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.music-links a {
  display: flex;
  width: 140.62px;
  height: 41px;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.music-links img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.music-links a:nth-child(2) {
  overflow: hidden;
  background: #000;
  border: 0;
  border-radius: 7px;
}

.music-links a:nth-child(2) img {
  width: 100px;
  height: auto;
}

.imdb:hover,
.imdb:focus-visible,
.music-links a:hover,
.music-links a:focus-visible {
  opacity: 0.78;
  outline: none;
  transform: translateY(-1px);
}

.email {
  display: inline-block;
  margin-top: 53px;
  font-size: 0.875rem;
  font-weight: 300;
  transition: color 180ms ease;
}

.email:hover,
.email:focus-visible {
  color: #c6b174;
  outline: none;
}

footer {
  width: 100%;
  margin-top: auto;
  padding-top: 48px;
  color: #ddd;
  font-size: 0.75rem;
  font-weight: 300;
}

footer p {
  opacity: 0.7;
  animation-name: rise-in-muted;
}

footer a {
  display: inline-block;
  margin-top: 30px;
}

footer img {
  display: block;
  width: 50px;
  height: auto;
}

.intro h1,
.intro p,
.rule,
.socials a,
.imdb,
.music-links a,
.email,
footer p,
footer a {
  animation: rise-in 760ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.intro h1 { animation-delay: 80ms; }
.intro p { animation-delay: 170ms; }
.rule { animation-delay: 260ms; }
.socials a:nth-child(1) { animation-delay: 340ms; }
.socials a:nth-child(2) { animation-delay: 410ms; }
.socials a:nth-child(3) { animation-delay: 480ms; }
.socials a:nth-child(4) { animation-delay: 550ms; }
.imdb { animation-delay: 680ms; }
.music-links a:nth-child(1) { animation-delay: 790ms; }
.music-links a:nth-child(2) { animation-delay: 880ms; }
.email { animation-delay: 990ms; }
footer p {
  animation-name: rise-in-muted;
  animation-delay: 1080ms;
}
footer a { animation-delay: 1170ms; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes rise-in-muted {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0.65;
    transform: scale(1.075);
  }

  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@media (max-height: 740px) and (min-width: 581px) {
  .platforms {
    margin-top: 74px;
  }

  .email {
    margin-top: 38px;
  }

}

@media (max-width: 580px) {
  .hero__backdrop {
    background-position: 42% center;
  }

  .card {
    width: min(88%, 410px);
  }

  .intro h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.35rem);
    letter-spacing: 0.035em;
  }

  .rule {
    width: 78%;
    margin-top: 28px;
  }

  .socials {
    gap: 14px;
  }

  .platforms {
    margin-top: 72px;
  }

  .music-links {
    gap: 12px;
    margin-top: 30px;
  }

  .email {
    margin-top: 44px;
  }
}

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