.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(32rem, 78vh, 44rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, #bfdbfe 0%, transparent 55%),
    linear-gradient(165deg, #dbeafe 0%, #eff6ff 42%, #f8fafc 100%);
  border-bottom: 1px solid color-mix(in oklab, var(--color-base-300) 100%, transparent);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: home-hero- ken 18s ease-out both;
}

.home-hero--photo {
  border-bottom-color: color-mix(in oklab, #93c5fd 55%, transparent);
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.72) 0%,
      rgba(239, 246, 255, 0.55) 42%,
      rgba(248, 250, 252, 0.82) 100%
    ),
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.28) 52%,
      rgba(191, 219, 254, 0.22) 100%
    );
}

.home-hero-inner {
  padding-top: 3.5rem;
  padding-bottom: 3.75rem;
}

@media (min-width: 640px) {
  .home-hero-inner {
    padding-top: 4.25rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-inner {
    padding-top: 5rem;
    padding-bottom: 5.25rem;
  }
}

.home-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.home-hero-brand {
  display: block;
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.65rem, 8vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--color-base-content);
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 40px rgba(248, 250, 252, 0.45);
}

.home-hero-tagline {
  display: block;
  max-width: 22rem;
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: color-mix(in oklab, var(--color-base-content) 72%, transparent);
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .home-hero-tagline {
    max-width: 28rem;
  }
}

.home-hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 10;
  max-width: min(18rem, 45vw);
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.3;
  text-align: right;
  color: color-mix(in oklab, var(--color-base-content) 42%, transparent);
}

.home-search {
  animation: home-search-in 0.8s ease both;
  animation-delay: 0.18s;
}

.home-search .input {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-search:focus-within .input {
  transform: translateY(-1px);
}

@keyframes home-hero-ken {
  from {
    transform: scale(1.12);
    filter: saturate(0.9);
  }
  to {
    transform: scale(1.06);
    filter: saturate(1);
  }
}

@keyframes home-search-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-photo,
  .home-search {
    animation: none !important;
  }

  .home-hero-photo {
    transform: scale(1.04);
  }

  .home-search:focus-within .input {
    transform: none;
  }
}
