/* Hero heritage / vintage layer — overlays, parchment card, polaroid badges */

#hero .slider-content {
  position: relative;
  z-index: 4;
}

/* ── Background: warmth, vignette, grain ── */
#hero .hero-slideshow_video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      168deg,
      rgba(180, 130, 70, 0.14) 0%,
      rgba(120, 78, 42, 0.1) 42%,
      rgba(90, 58, 32, 0.16) 100%
    );
  mix-blend-mode: multiply;
}

#hero .hero-slideshow_video::after {
  background:
    radial-gradient(
      ellipse 78% 72% at 50% 46%,
      transparent 0%,
      transparent 48%,
      rgba(18, 10, 6, 0.38) 100%
    ),
    rgba(28, 16, 10, 0.22) !important;
}

#hero .lmyc-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Hero content — logo, title, copy (no parchment frame) ── */
.home-slideshow-section .slide_1.lmyc-hero-card {
  position: relative;
  box-sizing: border-box;
  width: fit-content;
  max-width: min(62rem, 96vw);
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-slideshow-section .slide_1.lmyc-hero-card::before,
.home-slideshow-section .slide_1.lmyc-hero-card::after {
  display: none !important;
  content: none !important;
}

.home-slideshow-section .lmyc-hero-card .lmyc-hero-title-wrap {
  width: 100%;
  max-width: 100%;
}

/* ── Title flourishes ── */
.lmyc-hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.lmyc-hero-flourish {
  display: block;
  width: min(11rem, 72vw);
  height: auto;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0.88;
}

.lmyc-hero-flourish svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Polaroid archival badges ── */
.lmyc-hero-polaroids {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.lmyc-hero-polaroid {
  position: absolute;
  margin: 0;
  padding: 0.45rem 0.45rem 2.1rem;
  background: #faf6ef;
  border: 1px solid rgba(210, 198, 178, 0.9);
  box-shadow:
    0 14px 32px rgba(20, 12, 6, 0.28),
    0 4px 10px rgba(20, 12, 6, 0.14);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lmyc-hero-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.04) saturate(0.92);
}

.lmyc-hero-polaroid__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.62rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(58, 48, 36, 0.72);
}

.lmyc-hero-polaroid--founder {
  width: clamp(9.5rem, 18vw, 13.5rem);
  top: calc(var(--header-height, 7rem) + 1.5rem);
  left: clamp(0.75rem, 3.5vw, 3.5rem);
  transform: rotate(-3deg);
  animation: lmyc-hero-polaroid-float 7s ease-in-out infinite;
}

.lmyc-hero-polaroid--community {
  width: clamp(10.5rem, 20vw, 15rem);
  bottom: 10%;
  right: clamp(0.75rem, 3.5vw, 3.5rem);
  transform: rotate(4deg);
  animation: lmyc-hero-polaroid-float 8.5s ease-in-out infinite reverse;
}

@media screen and (min-width: 990px) {
  .home-slideshow-section .slide_1.lmyc-hero-card {
    min-width: min(44rem, 90vw);
  }

  .lmyc-hero-polaroid--founder {
    width: clamp(13.5rem, 19vw, 18.5rem);
    top: calc(var(--header-height, 9rem) + 1.75rem);
    left: clamp(1.25rem, 4.5vw, 5rem);
  }

  .lmyc-hero-polaroid--community {
    width: clamp(15rem, 21vw, 20.5rem);
    bottom: 8%;
    right: clamp(1.25rem, 4.5vw, 5rem);
  }

  .lmyc-hero-polaroid__caption {
    font-size: 0.72rem;
  }
}

@media screen and (min-width: 1400px) {
  .home-slideshow-section .slide_1.lmyc-hero-card {
    min-width: 46rem;
  }

  .lmyc-hero-polaroid--founder {
    width: 20rem;
    top: calc(var(--header-height, 9rem) + 2rem);
    left: 5.5rem;
  }

  .lmyc-hero-polaroid--community {
    width: 22.5rem;
    right: 5.5rem;
  }
}

@keyframes lmyc-hero-polaroid-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--lmyc-polaroid-tilt, -3deg));
  }
  50% {
    transform: translateY(-8px) rotate(calc(var(--lmyc-polaroid-tilt, -3deg) + 1deg));
  }
}

.lmyc-hero-polaroid--founder {
  --lmyc-polaroid-tilt: -3deg;
}

.lmyc-hero-polaroid--community {
  --lmyc-polaroid-tilt: 4deg;
}

.home-slideshow-section .lmyc-hero-card .lmyc-hero-btn--secondary {
  background: #425936 !important;
  color: #fdf8f3 !important;
  border-color: #425936 !important;
  box-shadow: 0 8px 22px rgba(48, 61, 28, 0.22);
}

.home-slideshow-section .lmyc-hero-card .lmyc-hero-btn--secondary:hover,
.home-slideshow-section .lmyc-hero-card .lmyc-hero-btn--secondary:focus-visible {
  background: #303d1c !important;
  color: #fff !important;
  border-color: #303d1c !important;
}

/* ── Responsive ── */
@media screen and (max-width: 989px) {
  .lmyc-hero-polaroid--founder {
    width: clamp(8.5rem, 22vw, 11rem);
    top: calc(var(--header-height, 6rem) + 1rem);
    left: 0.5rem;
  }

  .lmyc-hero-polaroid--community {
    width: clamp(9.5rem, 24vw, 12.5rem);
    bottom: 8%;
    right: 0.5rem;
  }
}

@media screen and (max-width: 767px) {
  .lmyc-hero-polaroids {
    display: none;
  }

  .home-slideshow-section .slide_1.lmyc-hero-card {
    max-width: min(36rem, 96vw);
  }

  .lmyc-hero-flourish {
    width: min(9rem, 68vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-hero-polaroid {
    animation: none;
  }
}
