:root {
  --aiva-ink: #f3efe6;
  --aiva-muted-blue: #9eb3bd;
  --aiva-gold: #d8a961;
  --aiva-night: #05070a;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--aiva-ink);
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

.aiva-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 34vw);
  align-items: center;
  padding: clamp(2rem, 5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.aiva-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/aiva-landing-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.aiva-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 31% 58%, rgba(216, 169, 97, 0.13), transparent 26rem),
    linear-gradient(90deg, rgba(5, 7, 10, 0.03) 0%, rgba(5, 7, 10, 0.14) 42%, rgba(5, 7, 10, 0.68) 70%, rgba(5, 7, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.18) 0%, transparent 31%, rgba(5, 7, 10, 0.34) 100%);
}

.aiva-copy {
  grid-column: 2;
  justify-self: end;
  width: min(100%, 35rem);
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.7rem);
  padding: 0;
  text-align: left;
}

.aiva-logo {
  width: clamp(13rem, 19vw, 23rem);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 1.5rem rgba(158, 179, 189, 0.22))
    drop-shadow(0 1.4rem 2.1rem rgba(0, 0, 0, 0.44));
}

.aiva-kicker {
  margin: clamp(0.4rem, 1vw, 0.85rem) 0 0;
  color: var(--aiva-gold);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.52em;
  line-height: 1.45;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--aiva-ink);
  font-size: clamp(2.6rem, 4.5vw, 5.35rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.36);
}

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

  .aiva-hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding: clamp(1.2rem, 5vw, 2rem);
  }

  .aiva-hero::before {
    background-image: url("assets/aiva-landing-hero-mobile.jpg");
    background-position: center top;
  }

  .aiva-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.03) 0%, rgba(5, 7, 10, 0.14) 42%, rgba(5, 7, 10, 0.84) 74%, rgba(5, 7, 10, 0.96) 100%),
      linear-gradient(90deg, rgba(5, 7, 10, 0.02) 0%, rgba(5, 7, 10, 0.18) 100%);
  }

  .aiva-copy {
    grid-column: 1;
    justify-self: center;
    width: min(100%, 20rem);
    gap: 0.65rem;
    padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
    text-align: center;
  }

  .aiva-logo {
    width: clamp(9.2rem, 42vw, 13rem);
    justify-self: center;
  }

  .aiva-kicker {
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
    letter-spacing: 0.36em;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.3vw, 2.65rem);
    letter-spacing: -0.05em;
    line-height: 0.98;
    justify-self: center;
  }
}

@media (max-height: 620px) and (min-width: 901px) {
  .aiva-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .aiva-copy {
    gap: 0.9rem;
  }

  .aiva-logo {
    width: clamp(12rem, 16vw, 18rem);
  }

  h1 {
    font-size: clamp(2.8rem, 5vw, 5.2rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .aiva-copy {
    animation: aiva-rise 900ms ease-out both;
  }
}

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

@keyframes aiva-rise {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }

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