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

.home-has-intro {
  overflow: hidden;
}

.home-has-intro.is-intro-complete {
  overflow: initial;
}

.home-has-intro .site-header,
.home-has-intro .hero,
.home-has-intro .site-footer {
  visibility: hidden;
}

.home-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f3ec;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 1.22s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.2s ease;
}

.home-intro::before,
.home-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  will-change: transform;
}

.home-intro::before {
  z-index: 2;
  background: #595754;
  transition: transform 1.18s cubic-bezier(0.76, 0, 0.24, 1);
}

.home-intro::after {
  z-index: 3;
  background: #252525;
  transform: translateY(100%);
  transition: transform 1.26s cubic-bezier(0.76, 0, 0.24, 1);
}

.home-intro__fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.18) 62%, rgba(10, 10, 10, 0.42) 100%);
  opacity: 0;
  transition: opacity 0.85s ease;
}

.home-intro__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(246, 243, 236, 1), rgba(233, 228, 219, 1));
  opacity: 1;
  transition: opacity 0.75s ease;
}

.home-intro__name-wrap {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 24px;
  text-align: center;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  animation: intro-name-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.95s ease;
}

.home-intro__eyebrow {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.44);
  transition: color 1s ease;
}

.home-intro__name {
  font-family: "TrashHand", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #111111;
  text-shadow: none;
  transition: color 1.05s ease, transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.home-has-intro.is-intro-dark .home-intro::after {
  transform: translateY(0);
  transition-delay: 0.18s;
}

.home-has-intro.is-intro-dark .home-intro::before {
  transform: translateY(0);
  transition-delay: 0s;
}

.home-has-intro.is-intro-dark .home-intro,
.home-has-intro.is-intro-opening .home-intro {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.94) 0%, rgba(8, 8, 8, 0.98) 100%);
}

.home-has-intro.is-intro-dark .home-intro__eyebrow,
.home-has-intro.is-intro-dark .home-intro__name {
  color: #f3efe8;
}

.home-has-intro.is-intro-dark .home-intro__veil {
  opacity: 0;
}

.home-has-intro.is-intro-opening .home-intro__fade {
  opacity: 1;
}

.home-has-intro.is-intro-opening .home-intro {
  transform: translateY(-100%);
  transition-delay: 0.18s;
}

.home-has-intro.is-intro-opening .home-intro::before {
  transform: translateY(-100%);
  transition-delay: 0s;
}

.home-has-intro.is-intro-opening .home-intro::after {
  transform: translateY(-100%);
  transition-delay: 0.1s;
}

.home-has-intro.is-intro-opening .home-intro__name-wrap {
  transform: translateY(-10vh) scale(0.94);
  opacity: 0;
}

.home-has-intro.is-intro-opening .site-header,
.home-has-intro.is-intro-opening .hero,
.home-has-intro.is-intro-opening .site-footer,
.home-has-intro.is-intro-complete .site-header,
.home-has-intro.is-intro-complete .hero,
.home-has-intro.is-intro-complete .site-footer {
  visibility: visible;
}

.home-has-intro.is-intro-complete .home-intro {
  visibility: hidden;
  opacity: 0.001;
  transition: opacity 0.01s linear, visibility 0.01s step-end;
}

.hero {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.94) 0%, rgba(8, 8, 8, 0.98) 100%);
}

.hero-image {
  width: 100%;
  min-height: 100vh;
  background-image: var(--hero-image-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transform: scale(1);
}

.hero-guard {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.16), rgba(8, 8, 8, 0.1));
}

@keyframes intro-name-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 768px) {
  .home-intro__eyebrow {
    font-size: 0.56rem;
    letter-spacing: 0.26em;
  }

  .home-intro__name {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-has-intro {
    overflow: initial;
  }

  .home-intro {
    display: none;
  }

  .home-has-intro .site-header,
  .home-has-intro .hero,
  .home-has-intro .site-footer {
    opacity: 1;
  }
}
