/* Home hero — full-bleed kids fashion composition */

:root {
  --hh-ink: #1c1814;
  --hh-soft: #f7f0ea;
  --hh-rose: #e86a5c;
  --hh-rose-deep: #c94f42;
  --hh-sky: #8eb8c4;
  --hh-mint: #b8d4c8;
  --hh-butter: #f0d9a8;
}

.home-hero {
  --hh-header: 7.5rem;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2.5rem;
  min-height: calc(100svh - var(--hh-header));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--hh-ink);
  isolation: isolate;
}

body:has(.home-hero) {
  overflow-x: clip;
}

.home-hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(240, 217, 168, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(184, 212, 200, 0.5) 0%, transparent 50%),
    linear-gradient(155deg, #f6e8df 0%, #e8d4c8 42%, #c9dce2 100%);
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.home-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-hero__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  animation: hhKen 18s ease-in-out infinite alternate;
  filter: saturate(0.92) contrast(0.98);
}

.home-hero__slide.is-active .home-hero__slide-img {
  animation-play-state: running;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(246, 232, 223, 0.92) 0%,
      rgba(246, 232, 223, 0.72) 38%,
      rgba(246, 232, 223, 0.28) 68%,
      rgba(201, 220, 226, 0.35) 100%
    ),
    linear-gradient(to top, rgba(28, 24, 20, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.home-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
  animation: hhFloat 9s ease-in-out infinite;
}

.home-hero__orb--a {
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  top: 12%;
  right: 8%;
  background: radial-gradient(circle at 35% 35%, var(--hh-butter), transparent 70%);
  animation-delay: 0s;
}

.home-hero__orb--b {
  width: min(28vw, 200px);
  height: min(28vw, 200px);
  bottom: 18%;
  left: 6%;
  background: radial-gradient(circle at 40% 40%, var(--hh-mint), transparent 70%);
  animation-delay: -3s;
  animation-duration: 11s;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5rem);
  max-width: 1200px;
}

.home-hero__brand {
  font-family: var(--font-display, "Gantari", sans-serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--hh-ink);
  opacity: 0;
  animation: hhRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.home-hero__headline {
  font-family: var(--font-display, "Gantari", sans-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  opacity: 0;
  animation: hhRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.home-hero__lead {
  font-family: var(--font-body, "Gantari", sans-serif);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: rgba(28, 24, 20, 0.78);
  opacity: 0;
  animation: hhRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body, "Gantari", sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--hh-rose);
  padding: 0.85rem 1.45rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  opacity: 0;
  animation: hhRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.home-hero__cta:hover {
  background: var(--hh-rose-deep);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-hero__cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.home-hero__cta:hover .home-hero__cta-arrow {
  transform: translateX(4px);
}

.home-hero__dots {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-hero .hero-dot,
.home-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 24, 20, 0.28);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.home-hero .hero-dot.is-active,
.home-hero__dot.is-active {
  background: var(--hh-rose);
  transform: scale(1.25);
}

@keyframes hhRise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hhKen {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}

@keyframes hhFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -18px);
  }
}

@media (max-width: 640px) {
  .home-hero {
    --hh-header: 9.5rem;
    align-items: end;
    min-height: calc(100svh - var(--hh-header));
  }

  .home-hero__veil {
    background:
      linear-gradient(
        to top,
        rgba(246, 232, 223, 0.95) 0%,
        rgba(246, 232, 223, 0.75) 45%,
        rgba(246, 232, 223, 0.35) 100%
      );
  }

  .home-hero__brand {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .home-hero__dots {
    flex-direction: row;
    right: auto;
    left: clamp(1.25rem, 5vw, 2rem);
    bottom: clamp(1rem, 3vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__brand,
  .home-hero__headline,
  .home-hero__lead,
  .home-hero__cta,
  .home-hero__slide-img,
  .home-hero__orb {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .home-hero__slide {
    transition: none;
  }
}
