:root {
  --bg: #6c5671;
  --bg-deep: #d37f6f;
  --bg-soft: #c98f92;
  --bg-lilac: #8e6da7;
  --text: #fff4ee;
  --muted: rgba(255, 244, 238, 0.7);
  --shadow: rgba(74, 33, 43, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 198, 151, 0.54), transparent 30%),
    radial-gradient(circle at 83% 12%, rgba(187, 150, 225, 0.32), transparent 28%),
    radial-gradient(circle at 48% 38%, rgba(255, 223, 211, 0.12), transparent 34%),
    linear-gradient(125deg, var(--bg-deep) 0%, var(--bg-soft) 42%, var(--bg) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

.hero__video,
.hero__veil,
.hero__glow {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  opacity: 0.98;
}

.hero__veil {
  background:
    radial-gradient(circle at 26% 72%, rgba(255, 208, 170, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 247, 243, 0.03), rgba(103, 61, 77, 0.04)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.01), rgba(84, 47, 60, 0.12) 72%, rgba(60, 29, 41, 0.18) 100%);
  backdrop-filter: blur(10px);
}

.hero__glow {
  filter: blur(110px);
  opacity: 0.88;
  pointer-events: none;
  animation: glow-float 16s ease-in-out infinite;
}

.hero__glow--left {
  background: radial-gradient(circle at 16% 82%, rgba(255, 194, 143, 0.78), transparent 24%);
  animation-duration: 13s;
}

.hero__glow--right {
  background: radial-gradient(circle at 84% 12%, rgba(180, 145, 224, 0.48), transparent 24%);
  animation-duration: 18s;
  animation-direction: reverse;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: soft-light;
  opacity: 0.1;
  pointer-events: none;
  animation: grid-drift 24s linear infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  text-align: left;
  width: min(100%, 1280px);
  padding: 3rem;
  align-self: end;
  animation: content-drift 8s ease-in-out infinite;
}

.hero__eyebrow {
  margin: 0;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 400;
  color: var(--muted);
  text-shadow: 0 10px 30px var(--shadow);
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 8rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.065em;
  text-transform: lowercase;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow:
    0 0 22px rgba(255, 241, 233, 0.08),
    0 16px 48px rgba(72, 28, 39, 0.18);
}

@keyframes content-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes glow-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2.5%, -2.5%, 0) scale(1.08);
  }
}

@keyframes grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-40px, -30px, 0);
  }
}

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

  .hero__content {
    width: 100%;
    max-width: 100%;
    gap: 0.65rem;
    justify-items: center;
    text-align: center;
    align-self: center;
    padding:
      calc(1.5rem + env(safe-area-inset-top))
      1.1rem
      calc(1.5rem + env(safe-area-inset-bottom));
    animation: none;
  }

  .hero__eyebrow {
    font-size: clamp(1.1rem, 6vw, 1.45rem);
    line-height: 1.02;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(1.9rem, 11vw, 2.7rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
  }
}
