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

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: start;
  background-image: url("assets/landing-image.jpg");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(520px, 760px);
  gap: clamp(72px, 11vw, 190px);
  align-items: start;
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: 66px clamp(44px, 5.5vw, 86px) 0;
}

.hero__title {
  display: grid;
  gap: 0.02em;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.2rem;
  font-weight: 700;
  line-height: 0.88;
  text-shadow: 0 4px 18px rgb(20 55 82 / 0.22);
}

.hero__title span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: title-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__title span:nth-child(2) {
  animation-delay: 0.18s;
}

.hero__subtitle {
  font-size: 0.68em;
  font-weight: 300;
}

.hero__subtitle em {
  font-style: italic;
  font-weight: 300;
}

.hero__logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 4px;
  opacity: 0;
  filter: drop-shadow(0 7px 18px rgb(28 64 84 / 0.2));
  transform: translateY(14px);
  animation: logo-in 1.1s ease forwards;
  animation-delay: 1.15s;
}

@media (max-width: 1200px) {
  .hero__content {
    grid-template-columns: minmax(170px, 260px) minmax(420px, 1fr);
    gap: 64px;
  }

  .hero__title {
    font-size: 4.8rem;
  }
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
    padding-top: 38px;
  }

  .hero__title {
    order: 1;
    font-size: 4rem;
  }

  .hero__logo {
    order: 2;
    width: min(54vw, 250px);
    justify-self: center;
    margin-top: 0;
  }
}

@keyframes title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .hero {
    min-height: 100svh;
    background-position: center top;
  }

  .hero__content {
    width: 100%;
    padding: 36px 20px;
  }

  .hero__title {
    font-size: 2.85rem;
  }

  .hero__logo {
    width: min(54vw, 220px);
  }
}

@media (max-width: 360px) {
  .hero__title {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title span,
  .hero__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
