/* ============================================
   WICFLOW — Hero Section
   Full-viewport, content anchored to bottom
   ============================================ */

/* Breathing keyframe — subtle ±2% opacity pulse on overlay */
@keyframes hero-breathe {
  0%,  100% { opacity: 0.80; }
  50%        { opacity: 0.77; }
}

/* ── Section shell ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* anchor content to bottom */
  padding-top: 5rem;          /* clear fixed nav */
  padding-bottom: 3.5rem;
  min-height: 60svh;
  overflow: hidden;
  isolation: isolate;         /* new stacking context — keeps layers tidy */
}

/* ── Background image — ghostlike ────────────────────────── */
.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.18;
  z-index: -3;
  pointer-events: none;
  user-select: none;
}

/* ── Tinted overlay — #f7f7f5 at 90% with slow breathing ─── */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-primary);      /* #f7f7f5 */
  opacity: 0.80;
  animation: hero-breathe 25s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

/* ── Grain texture — lightweight CSS noise ─────────────── */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  /* Lightweight dot pattern instead of expensive feTurbulence */
  background-image: radial-gradient(circle, #000 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* ── Content block ────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 1;
}

/* ── Headline ──────────────────────────────────────────────── */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  max-width: 18em;
  margin: 0;
}

/* ── Sub-headline ─────────────────────────────────────────── */
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 40ch;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.6s var(--ease-out) 0.4s forwards;
}

/* ── CTA button ───────────────────────────────────────────── */
.hero__cta {
  margin-top: 2rem;
  padding: 1rem 1.25rem 1rem 2rem;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.hero__cta:hover {
  transform: translateY(-1px);
  background-color: #2a2a2c;
}

/* Arrow icon in white circle */
.hero__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-primary);     /* #f7f7f5 — off-white */
  border-radius: 50%;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.hero__cta:hover .hero__cta-icon {
  transform: translateX(2px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__headline {
    max-width: 14em;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-bottom: 4rem;
  }

  .hero__headline {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero__sub {
    font-size: 0.95rem;
    max-width: none;
  }

  .hero__cta {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__overlay {
    animation: none;
    opacity: 0.90;
  }
}
