/* Birthday video section V2 — isolated styles only */
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Playfair+Display:wght@600;700;800&display=swap');

.birthday-film,
.birthday-film * {
  box-sizing: border-box;
}

.birthday-film {
  --bf-wine: #79001f;
  --bf-gold: #c58b36;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(54px, 6vw, 82px) 22px clamp(72px, 8vw, 108px);
  background:
    radial-gradient(ellipse at 50% 85%, rgba(238,195,122,.2), transparent 34%),
    #fff8f1;
  color: var(--bf-wine);
  font-family: 'Playfair Display', Georgia, serif;
}

.birthday-film__inner {
  position: relative;
  z-index: 3;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.birthday-film__heading {
  position: relative;
  max-width: 1120px;
  margin: 0 auto clamp(32px, 3.8vw, 48px);
  text-align: center;
}

.birthday-film__crown {
  display: block;
  margin: 0 0 12px;
  color: #c58b36;
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1;
  text-shadow: 0 3px 12px rgba(197,139,54,.2);
}

.birthday-film__heading h2 {
  margin: 0;
  color: var(--bf-wine);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 4.35vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.birthday-film__heading h2 span {
  display: inline;
  font: inherit;
  color: inherit;
}

.birthday-film__heading h2 em {
  display: inline-block;
  margin-left: .12em;
  color: #b87927;
  font-family: 'Allura', 'Brush Script MT', cursive;
  font-size: 1.28em;
  font-weight: 400;
  font-style: normal;
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
}

.birthday-film__rule {
  display: block;
  width: min(210px, 34vw);
  height: 2px;
  margin: 19px auto 0;
  background: linear-gradient(90deg, transparent, #c58b36, transparent);
}

/* Video frame */
.birthday-film__stage {
  position: relative;
  z-index: 3;
  width: min(100%, 890px);
  margin: 0 auto;
  perspective: 1200px;
}

.birthday-film__halo {
  position: absolute;
  z-index: -1;
  left: 5%;
  right: 5%;
  bottom: -28px;
  height: 62px;
  border: 1px solid rgba(231,190,117,.78);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(231,190,117,.35), 0 0 55px rgba(231,190,117,.2);
  transform: rotateX(58deg);
}

.birthday-film__player {
  position: relative;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #d7a64f;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffe6a8, #bd812e 42%, #f4d28a 70%, #a96d24);
  box-shadow: 0 18px 42px rgba(76,36,16,.2),
              0 5px 0 rgba(139,82,25,.12),
              inset 0 1px 0 rgba(255,255,255,.8);
}

.birthday-film__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 17px;
  background: #210c0c;
  object-fit: cover;
}

/* Real HTML film strips: visible on both sides of the video frame */
.birthday-film__reel {
  position: absolute;
  z-index: 1;
  top: 54%;
  width: clamp(180px, 23vw, 330px);
  height: 82px;
  opacity: .62;
  pointer-events: none;
  border-top: 7px solid rgba(190,137,57,.7);
  border-bottom: 7px solid rgba(190,137,57,.7);
  background:
    repeating-linear-gradient(90deg,
      rgba(190,137,57,.78) 0 7px,
      transparent 7px 19px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg,
      rgba(190,137,57,.78) 0 7px,
      transparent 7px 19px) bottom / 100% 5px no-repeat,
    rgba(190,137,57,.12);
  filter: drop-shadow(0 5px 7px rgba(95,53,14,.12));
}

.birthday-film__reel-track {
  position: absolute;
  inset: 10px 0;
  display: block;
  background:
    repeating-linear-gradient(90deg,
      rgba(190,137,57,.46) 0 2px,
      transparent 2px 54px);
}

.birthday-film__reel--left {
  left: -78px;
  transform: rotate(-12deg);
  border-radius: 8px 42px 42px 8px;
}

.birthday-film__reel--right {
  right: -78px;
  transform: rotate(12deg);
  border-radius: 42px 8px 8px 42px;
}

/* Scroll reveal */
.birthday-film.has-reveal .birthday-reveal {
  opacity: 0;
  transform: translateY(38px) scale(.985);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.25,1);
}

.birthday-film.has-reveal .birthday-film__stage {
  transition-delay: .12s;
}

.birthday-film.has-reveal .birthday-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 760px) {
  .birthday-film {
    padding: 48px 15px 64px;
  }

  .birthday-film__heading {
    margin-bottom: 30px;
  }

  .birthday-film__heading h2 {
    font-size: clamp(27px, 6.8vw, 42px);
  }

  .birthday-film__heading h2 span {
    display: block;
  }

  .birthday-film__heading h2 em {
    margin: 5px 0 0;
  }

  .birthday-film__reel {
    top: 64%;
    width: 23vw;
    height: 48px;
    opacity: .35;
  }

  .birthday-film__reel--left { left: -92px; }
  .birthday-film__reel--right { right: -92px; }

  .birthday-film__player {
    padding: 5px;
    border-radius: 17px;
  }

  .birthday-film__video {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .birthday-film.has-reveal .birthday-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
