:root {
  --ink: #f7f0e8;
  --gold: #d7ad68;
  --gold-soft: #f2d8a4;
  --rose: #cb7584;
  --deep: #130f16;
  --deep-2: #241927;
  --warm: #5d332a;
  --glass: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--deep);
  color: var(--ink);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.opening-screen.closed {
  opacity: 0;
  visibility: hidden;
}

.sunrise-bg,
.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sunrise-bg {
  background:
    radial-gradient(circle at 50% 72%, rgba(255,209,137,.45), transparent 15%),
    linear-gradient(180deg, #120f22 0%, #46314c 42%, #bb6f5d 70%, #e5aa76 100%);
}

.sun {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5cf 0%, #ffd792 35%, rgba(255,190,113,.1) 72%);
  left: 50%;
  top: 61%;
  transform: translate(-50%, -50%);
  filter: blur(.4px);
  animation: sunrise 7s ease-out forwards;
  box-shadow: 0 0 100px rgba(255,202,126,.75);
}

.sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 31%;
  background:
    linear-gradient(180deg, rgba(238,174,128,.45), rgba(17,24,40,.88)),
    repeating-linear-gradient(175deg, rgba(255,255,255,.08) 0 1px, transparent 1px 8px);
}

.horizon-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 28%;
  height: 18%;
  background: radial-gradient(ellipse, rgba(255,216,153,.48), transparent 65%);
  filter: blur(20px);
}

@keyframes sunrise {
  from { top: 79%; transform: translate(-50%, -50%) scale(.72); opacity: .3; }
  to { top: 61%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.opening-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(800px, calc(100% - 34px));
}

.opening-whisper {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  letter-spacing: .02em;
  animation: whisperSequence 4.1s forwards;
}

@keyframes whisperSequence {
  0% { opacity: 0; transform: translateY(16px); }
  22%, 62% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.opening-main {
  margin-top: -50px;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hidden-soft {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.hidden-soft.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.headphone-icon {
  font-size: 3.3rem;
  margin-bottom: 8px;
}

.opening-main h1,
.hero-copy h1,
.film-text h2,
.section-intro h2,
.prayer-content h2,
.final-card h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
}

.opening-main h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.opening-main > p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 18px 0 5px;
}

.opening-main > span {
  display: block;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
}

.cinema-button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(221,153,117,.92), rgba(163,72,86,.95));
  color: white;
  padding: 16px 27px;
  min-height: 56px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.cinema-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.cinema-button.secondary {
  display: inline-flex;
  margin-top: 28px;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,219,150,.8);
  box-shadow: 0 0 16px rgba(255,219,150,.9);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  from { transform: translateY(20px) scale(.7); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

.music-control {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(20,15,22,.68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 13px 8px 8px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

.music-control.visible {
  opacity: 1;
  pointer-events: auto;
}

.music-control button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #2a1b1e;
  cursor: pointer;
  font-size: 1.1rem;
}

.music-control span {
  font-size: .78rem;
  color: rgba(255,255,255,.76);
}

.cinematic-hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px max(24px, 7vw) 80px;
  overflow: hidden;
}

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(16,11,17,.88) 0%, rgba(16,11,17,.55) 45%, rgba(16,11,17,.25) 100%),
    url("assets/convite-montagem.png") center/cover no-repeat;
  transform: scale(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(215,173,104,.22), transparent 24rem),
    linear-gradient(180deg, transparent 65%, var(--deep) 100%);
}

.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  padding: 0 max(24px, 7vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-cta {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 850px;
}

.overline,
.chapter {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  color: var(--gold);
  font-weight: 800;
}

.hero-copy h1 {
  font-size: clamp(4rem, 8vw, 8.4rem);
  max-width: 1000px;
}

.hero-copy > p:not(.overline) {
  max-width: 670px;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 28px;
  height: 47px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 4px;
  margin: 9px auto;
  border-radius: 50%;
  background: white;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  from { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

.film-section {
  padding: 140px max(24px, 7vw);
}

.dark-section {
  background: linear-gradient(180deg, #130f16, #1b141f);
}

.warm-section {
  background:
    radial-gradient(circle at 15% 30%, rgba(173,91,70,.25), transparent 25rem),
    linear-gradient(180deg, #2a1a20, #4c2c2a);
}

.film-frame {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split-frame {
  display: grid;
  grid-template-columns: minmax(300px, .86fr) 1.14fr;
  gap: clamp(45px, 8vw, 110px);
  align-items: center;
}

.split-frame.reverse .portrait-cinema {
  order: 2;
}

.portrait-cinema {
  position: relative;
  border-radius: 6px 60px 6px 60px;
  overflow: hidden;
  min-height: 620px;
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.16);
}

.portrait-cinema::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,220,172,.34);
  z-index: 2;
  pointer-events: none;
}

.portrait-cinema img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.portrait-cinema:hover img {
  transform: scale(1.035);
}

.monique-photo img { object-position: center center; }
.adao-photo img { object-position: center 20%; }

.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,7,11,.75));
}

.portrait-cinema span {
  position: absolute;
  left: 40px;
  bottom: 36px;
  z-index: 3;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  color: var(--gold-soft);
}

.film-text h2,
.section-intro h2,
.prayer-content h2,
.final-card h2 {
  font-size: clamp(3.2rem, 6vw, 6.7rem);
  margin-bottom: 26px;
}

.film-text p,
.prayer-content p,
.section-intro p,
.final-card p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.film-text .lead,
.final-lead {
  color: white;
  font-size: 1.25rem;
}

.prayer-scene {
  min-height: 85svh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 90px 24px;
  background:
    linear-gradient(rgba(15,10,16,.64), rgba(15,10,16,.82)),
    url("assets/adao-enock.png") center 28%/cover no-repeat fixed;
}

.prayer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent, rgba(8,6,10,.55));
}

.prayer-content {
  position: relative;
  text-align: center;
  max-width: 850px;
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(18,12,20,.56);
  backdrop-filter: blur(16px);
}

.verses-section {
  padding: 140px max(24px, 7vw);
  background: #f6eee5;
  color: #2c2026;
}

.section-intro {
  width: min(900px, 100%);
  margin: 0 auto 70px;
  text-align: center;
}

.section-intro .chapter {
  color: #956d35;
}

.section-intro h2 {
  color: #2c2026;
}

.section-intro p {
  color: #765f68;
}

.verse-timeline {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.verse-card {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(78,48,58,.12);
  box-shadow: 0 22px 70px rgba(75,48,55,.08);
  overflow: hidden;
}

.verse-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(215,173,104,.24), transparent 65%);
}

.verse-number {
  color: #a07a43;
  font-size: .76rem;
  letter-spacing: .2em;
  font-weight: 800;
}

.verse-card blockquote {
  margin: 18px 0 15px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.07;
}

.verse-card cite {
  font-style: normal;
  color: #8a6873;
  font-weight: 700;
}

.destinations-section {
  padding: 140px max(24px, 7vw);
  background: #161116;
}

.section-intro.light h2 {
  color: white;
}

.section-intro.light p {
  color: rgba(255,255,255,.68);
}

.destination-grid {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(2, 340px);
  gap: 20px;
}

.destination-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.destination-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10,8,11,.86));
  transition: background .4s ease;
}

.destination-card:hover::before {
  background: linear-gradient(180deg, rgba(215,173,104,.08), rgba(10,8,11,.9));
}

.destination-ocean {
  grid-row: 1 / 3;
  background-image: url("https://images.unsplash.com/photo-1546026423-cc4642628d2b?auto=format&fit=crop&w=1500&q=88");
}

.destination-algarve {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1400&q=88");
}

.destination-alentejo {
  background-image: url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1400&q=88");
}

.destination-content {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.destination-content span {
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 800;
}

.destination-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  margin: 7px 0 7px;
}

.destination-content p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.final-scene {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 120px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(10, 17, 13, .45), rgba(16, 10, 15, .82)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1900&q=90") center/cover no-repeat fixed;
}

.final-card {
  position: relative;
  z-index: 3;
  width: min(1040px, 100%);
  text-align: center;
  padding: clamp(34px, 7vw, 85px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 110px rgba(0,0,0,.35);
}

.final-card h2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.final-card > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.answer-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 42px;
}

.answer {
  text-decoration: none;
  border-radius: 20px;
  padding: 24px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  transition: transform .25s ease, background .25s ease, border .25s ease;
}

.answer:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.13);
  border-color: rgba(255,217,159,.42);
}

.answer span,
.answer strong,
.answer small {
  display: block;
}

.answer span {
  font-size: 1.9rem;
  margin-bottom: 9px;
}

.answer strong {
  font-size: 1.03rem;
}

.answer small {
  color: rgba(255,255,255,.62);
  margin-top: 5px;
}

.contact-final {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.contact-final span,
.contact-final a {
  display: block;
}

.contact-final span {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--gold-soft);
}

.contact-final a {
  width: fit-content;
  margin: 8px auto 0;
  text-decoration: none;
  font-weight: 700;
}

footer {
  padding: 28px 20px;
  text-align: center;
  background: #0e0a0f;
  color: rgba(255,255,255,.56);
  font-size: .85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .split-frame,
  .answer-buttons {
    grid-template-columns: 1fr;
  }

  .split-frame.reverse .portrait-cinema {
    order: 0;
  }

  .destination-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .destination-ocean {
    grid-row: auto;
  }

  .destination-card {
    min-height: 380px;
  }

  .hero-backdrop {
    background-position: 62% center;
  }
}

@media (max-width: 560px) {
  .top-nav {
    height: 72px;
  }

  .nav-cta {
    display: none;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .cinematic-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .film-section,
  .verses-section,
  .destinations-section {
    padding: 95px 18px;
  }

  .portrait-cinema,
  .portrait-cinema img {
    min-height: 500px;
    height: 500px;
  }

  .prayer-scene {
    background-attachment: scroll;
  }

  .opening-main {
    margin-top: -20px;
  }

  .opening-main h1 {
    font-size: 3.4rem;
  }

  .music-control span {
    display: none;
  }
}


.final-nature-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,214,153,.24), transparent 23rem),
    linear-gradient(180deg, rgba(8,15,11,.12), rgba(19,12,18,.76));
}

.view-invite-button {
  margin-top: 28px;
  margin-bottom: 30px;
}

.whatsapp-heading {
  margin: 8px auto 22px;
  text-align: center;
}

.whatsapp-heading span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--gold-soft);
  font-weight: 700;
}

.whatsapp-heading p {
  margin: 4px 0 0;
  font-size: .95rem;
}

.answer-buttons {
  grid-template-columns: repeat(2, 1fr);
}

.answer.yes {
  background: rgba(120, 51, 71, .28);
}

.answer.coffee {
  background: rgba(151, 104, 51, .22);
}

.answer.pray {
  background: rgba(65, 79, 118, .24);
}

.answer.later {
  background: rgba(59, 96, 74, .24);
}

.direct-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: fit-content;
  margin: 30px auto 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: #238636;
  color: white;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.direct-whatsapp span {
  font-weight: 700;
}

.contact-final p {
  margin: 2px 0 0;
  font-size: .88rem;
}

.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8,6,9,.88);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
  overflow-y: auto;
}

.invite-modal.open {
  opacity: 1;
  visibility: visible;
}

.invite-modal-content {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1.15fr;
  background: #171117;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 35px 110px rgba(0,0,0,.5);
}

.invite-modal-content img {
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: cover;
  object-position: center;
}

.invite-modal-message {
  padding: clamp(30px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.invite-modal-message h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .98;
  margin: 0 0 25px;
}

.invite-modal-message p {
  color: rgba(255,255,255,.72);
  line-height: 1.8;
}

.invite-modal-message .cinema-button {
  width: fit-content;
  margin-top: 15px;
}

.invite-modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(15,10,16,.72);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 902;
}

@media (max-width: 860px) {
  .invite-modal-content {
    grid-template-columns: 1fr;
  }

  .invite-modal-content img {
    max-height: 62vh;
  }
}

@media (max-width: 560px) {
  .answer-buttons {
    grid-template-columns: 1fr;
  }

  .final-scene {
    background-attachment: scroll;
  }

  .invite-modal {
    padding: 12px;
  }

  .invite-modal-message {
    padding: 28px 22px;
  }
}


/* PREMIUM CINEMATIC EFFECTS */
.video-bg video {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:saturate(1.08) contrast(1.04); transform:scale(1.02);
}
.sunrise-video-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(7,6,15,.24),rgba(19,10,18,.38) 55%,rgba(7,13,19,.66));
}
.particles-3d { perspective:900px; }
.particle { will-change:transform,opacity; }
.particle.depth-1 { filter:blur(1.8px); opacity:.35!important; }
.particle.depth-2 { filter:blur(.7px); }
.particle.depth-3 { filter:none; box-shadow:0 0 24px rgba(255,219,150,.95); }

/* Apple-like section movement */
main section { view-transition-name:section; }
.reveal {
  opacity:0; transform:translateY(52px) scale(.975); filter:blur(8px);
  transition:opacity 1.15s cubic-bezier(.2,.8,.2,1),transform 1.15s cubic-bezier(.2,.8,.2,1),filter 1.15s ease;
}
.reveal.visible { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
.film-section,.verses-section,.destinations-section,.final-scene { overflow:clip; }

/* Typewriter Bible verses */
.verse-card blockquote { min-height:2.25em; }
.verse-card blockquote.typing::after { content:"|"; animation:caret .8s step-end infinite; color:#a07a43; }
@keyframes caret { 50% { opacity:0; } }

/* Rose petals */
.rose-petals { position:absolute; inset:-10% 0 0; z-index:2; pointer-events:none; overflow:hidden; }
.rose-petal {
  position:absolute; top:-12%; width:18px; height:24px;
  border-radius:70% 30% 70% 30%;
  background:linear-gradient(145deg,#c54862,#8b2541);
  box-shadow:0 4px 10px rgba(75,18,36,.25);
  opacity:.85; animation:petalFall linear forwards;
}
@keyframes petalFall {
  0% { transform:translate3d(0,-10vh,0) rotateX(0) rotateZ(0); opacity:0; }
  12% { opacity:.9; }
  100% { transform:translate3d(var(--drift),115vh,120px) rotateX(520deg) rotateZ(760deg); opacity:.15; }
}

/* Envelope opening */
.invite-modal { perspective:1400px; }
.envelope-stage { width:min(520px,90vw); text-align:center; transition:opacity .65s ease,transform .65s ease; }
.envelope-stage.hidden-envelope { opacity:0; transform:scale(.88); pointer-events:none; position:absolute; }
.envelope { position:relative; width:100%; aspect-ratio:1.55; margin:auto; transform-style:preserve-3d; }
.envelope-back,.envelope-front,.envelope-flap,.letter-preview { position:absolute; inset:0; }
.envelope-back { background:#b48262; border-radius:10px; box-shadow:0 35px 90px rgba(0,0,0,.5); }
.envelope-front { background:linear-gradient(145deg,#d1a17c,#a86f55); clip-path:polygon(0 25%,50% 68%,100% 25%,100% 100%,0 100%); z-index:4; }
.envelope-flap { background:linear-gradient(155deg,#e2b995,#b37b60); clip-path:polygon(0 0,100% 0,50% 68%); z-index:5; transform-origin:top; transition:transform 1.25s cubic-bezier(.2,.8,.2,1); }
.letter-preview { inset:9% 8% 8%; background:#fff8e9; color:#503832; z-index:2; display:grid; place-items:center; font-family:"Cormorant Garamond",serif; font-size:2.1rem; line-height:1.1; transition:transform 1.45s 1s cubic-bezier(.2,.8,.2,1); }
.letter-preview small { font:600 .9rem "DM Sans",sans-serif; color:#8b6860; }
.wax-seal { position:absolute; width:62px; height:62px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#d25a70,#7f2039 65%); color:#f8d8b2; display:grid; place-items:center; left:50%; top:47%; transform:translate(-50%,-50%); z-index:7; font:700 1.7rem "Cormorant Garamond",serif; box-shadow:0 8px 18px rgba(0,0,0,.25); transition:opacity .45s ease; }
.envelope.open .envelope-flap { transform:rotateX(180deg); z-index:1; }
.envelope.open .wax-seal { opacity:0; }
.envelope.open .letter-preview { transform:translateY(-54%) scale(1.04); }
.envelope-hint { color:rgba(255,255,255,.72); margin-top:24px; letter-spacing:.08em; }
.invite-modal-content { opacity:0; transform:translateY(28px) scale(.98); pointer-events:none; transition:opacity .8s ease,transform .8s ease; }
.invite-modal-content.show-letter { opacity:1; transform:none; pointer-events:auto; }

/* WhatsApp attention animation */
.whatsapp-pulse { animation:whatsappAttention 2.8s ease-in-out infinite; }
@keyframes whatsappAttention {
  0%,72%,100% { transform:translateX(0) scale(1); }
  76% { transform:translateX(-3px) rotate(-1deg); }
  80% { transform:translateX(3px) rotate(1deg) scale(1.02); }
  84% { transform:translateX(-2px); }
  88% { transform:translateX(2px); }
  92% { transform:translateX(0); }
}

/* Photo 3D parallax */
.portrait-3d { transform-style:preserve-3d; transition:transform .2s ease-out,box-shadow .35s ease; will-change:transform; }
.portrait-3d img { transform:translateZ(28px) scale(1.045); }
.portrait-3d span { transform:translateZ(48px); }
.portrait-3d:hover { box-shadow:0 42px 110px rgba(0,0,0,.46); }

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
