/* Approved Grain B exports: all framing and atmosphere remain CSS-only. */
.hero.couple-hero {
  display: grid;
  grid-template-columns: 40% 60%;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  background: #fff;
  isolation: isolate;
}
.couple-hero .hero-photo {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  margin-left: auto;
  min-height: 0;
  position: relative;
  aspect-ratio: 20480 / 10759;
  height: auto;
  max-height: none;
}
.couple-hero .hero-photo > img {
  display: block;
  position: absolute;
  width: 94%;
  max-width: none;
  left: 12%;
  top: -11.4vw;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.couple-hero .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Preserve the approved white atmosphere in the expanded media frame.
     Solid white under the copy; the feather ends before either face. */
  background: linear-gradient(90deg,
    #fff 0%,
    #fff 30%,
    rgba(255,255,255,.99) 33%,
    rgba(255,255,255,.94) 36%,
    rgba(255,255,255,.84) 39%,
    rgba(255,255,255,.69) 42%,
    rgba(255,255,255,.53) 45%,
    rgba(255,255,255,.33) 48%,
    rgba(255,255,255,.17) 51%,
    rgba(255,255,255,.06) 54%,
    rgba(255,255,255,.006) 57%,
    rgba(255,255,255,0) 60%);
  /* Clear the phone and lower interaction, retaining white under copy. */
  mask-image:
    linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.95) 34%,
      rgba(0,0,0,.8) 38%, rgba(0,0,0,.35) 42%, transparent 46%),
    linear-gradient(180deg, #000 49%, transparent 57%);
  mask-composite: add;
}
.couple-hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  z-index: 1;
  padding: 44px 0 44px clamp(32px, 5vw, 96px);
  background: transparent;
}
.couple-hero .hero-copy .eyebrow {
  font-size: clamp(.625rem, .85vw, .85rem);
  letter-spacing: .15em;
}
.couple-hero .hero-copy h1 {
  font-size: clamp(3rem, 5.3vw, 6.5rem);
  line-height: 1.05;
  margin: 24px 0;
}
.couple-hero .hero-copy > p {
  max-width: 370px;
  padding-right: 14px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}
.couple-hero .hero-copy .button {
  min-height: 48px;
  padding: 14px 28px;
  margin-top: 28px;
  font-size: 1.125rem;
}
.couple-hero .hero-note {
  margin-top: 20px;
  font-size: clamp(.75rem, 1vw, .9375rem);
  line-height: 1.5;
}
@media (min-width: 901px) {
  /* Keep the unchanged sticky header from obscuring the original photo. */
  .hero.couple-hero { margin-top: var(--header-height, 94px); }
}
@media (max-width: 900px) {
  .hero.couple-hero {
    --couple-photo-height: 150vw;
    --couple-copy-overlap: min(36vw, 180px);
    --couple-cta-inset: min(24vw, 108px);
    --couple-cta-height: max(44px, calc(1.40625rem + 22px));
    --couple-note-space: calc(1.21875rem + 12px);
    --couple-download-space: max(0px, calc(var(--couple-cta-height) + var(--couple-note-space) - var(--couple-cta-inset) + 32px));
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    padding-bottom: 32px;
    /* Match the warm ivory at the approved PNG edges. */
    background: #faf3ef;
  }
  .couple-hero .hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 24px 0;
  }
  .couple-hero .hero-copy .eyebrow { font-size: .625rem; letter-spacing: .12em; }
  .couple-hero .hero-copy h1 { font-size: clamp(2.875rem, 12vw, 4.5rem); margin: 12px 0; }
  .couple-hero .hero-copy > p { max-width: 470px; padding: 0; font-size: 1.0625rem; line-height: 1.55; }
  .couple-hero .hero-copy .button {
    order: 2;
    min-height: 44px;
    padding: 10px 18px;
    /* Option A: normal-flow link nestled into the baked lower-left ivory fade. */
    margin-top: calc(var(--couple-photo-height) - var(--couple-copy-overlap) - var(--couple-cta-inset));
  }
  .couple-hero .hero-note { order: 3; font-size: .8125rem; margin-top: 12px; }
  .couple-hero .hero-photo {
    position: absolute;
    display: block;
    z-index: 0;
    left: 0;
    bottom: var(--couple-download-space);
    width: 100%;
    height: var(--couple-photo-height);
    aspect-ratio: auto;
    margin: 0;
    pointer-events: none;
  }
  .couple-hero .hero-photo::after { content: none; display: none; background: none; mask: none; -webkit-mask: none; }
  .couple-hero .hero-photo > img {
    /* The approved 1024 x 1536 PNG contains the finished atmosphere. */
    width: 100%;
    left: 0;
    top: 0;
    height: auto;
    object-fit: contain;
  }
}
