:root {
  --gold: #a9823f;
  --gold-dark: #7a5d2b;
  --ivory: #fbf6ed;
  --ink: #42372e;
  --paper: rgba(252, 247, 238, 0.94);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink); background: var(--ivory); }
a { color: inherit; }
main { width: min(100%, 820px); margin: 0 auto; overflow: hidden; box-shadow: 0 0 50px rgba(57, 44, 28, .12); }
.art-section { position: relative; line-height: 0; background: var(--ivory); }
.art-section img { display: block; width: 100%; height: auto; }
.scroll-cue { position: absolute; left: 34%; right: 34%; bottom: 1.5%; height: 10%; z-index: 2; }
.map-hotspot { position: absolute; left: 34%; right: 34%; bottom: 5%; height: 8%; z-index: 4; border-radius: 8px; }

.music-toggle { position: fixed; z-index: 50; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); border: 1px solid rgba(169,130,63,.55); background: rgba(251,246,237,.92); color: var(--gold-dark); border-radius: 999px; padding: 10px 14px; font: 600 15px/1 "Cormorant Garamond", serif; box-shadow: 0 8px 24px rgba(51,38,22,.16); backdrop-filter: blur(8px); cursor: pointer; }
.music-icon { font-size: 20px; margin-right: 5px; }
.music-toggle.playing .music-icon { display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }

.countdown-section, .rsvp-section, .faq-section, .thank-you-section { min-height: 100svh; position: relative; display: grid; place-items: center; padding: 48px 20px; overflow: hidden; }
.section-art, .rsvp-bg, .faq-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.section-art { background-image: url("assets/page4.png"); }
.section-art::after, .rsvp-bg::after, .faq-bg::after { content:""; position:absolute; inset:0; background:rgba(251,246,237,.30); }
.countdown-card { position: relative; width: min(94%, 690px); padding: clamp(30px, 8vw, 70px) 18px; text-align: center; border: 1px solid rgba(169,130,63,.25); background: rgba(251,246,237,.88); box-shadow: 0 18px 65px rgba(74,53,26,.12); backdrop-filter: blur(5px); }
.eyebrow { margin: 0 0 8px; color: var(--gold-dark); font-size: clamp(15px, 3vw, 22px); letter-spacing: .24em; text-transform: uppercase; }
.countdown-card h2 { margin: 0; color: var(--gold); font-size: clamp(56px, 13vw, 108px); font-weight: 400; font-style: italic; }
.ornament { color: var(--gold); margin: 15px 0 28px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.countdown-grid div { border-left: 1px solid rgba(169,130,63,.28); }
.countdown-grid div:first-child { border-left: 0; }
.countdown-grid strong { display: block; color: var(--gold-dark); font-size: clamp(38px, 9vw, 74px); font-weight: 400; font-variant-numeric: tabular-nums; }
.countdown-grid span { display:block; font-size: clamp(12px, 2.5vw, 17px); letter-spacing:.12em; text-transform:uppercase; color:var(--gold-dark); }

.rsvp-bg { background-image: linear-gradient(rgba(251,246,237,.20), rgba(251,246,237,.20)), url("assets/page7.png"); filter: saturate(.75); }
.rsvp-shell { position: relative; width: min(100%, 650px); background: var(--paper); border: 1px solid rgba(169,130,63,.45); padding: clamp(28px, 7vw, 58px); text-align: center; box-shadow: 0 24px 70px rgba(69,50,25,.17); }
.deadline { margin: 0 0 15px; color: var(--gold-dark); letter-spacing: .18em; font-size: clamp(18px, 4vw, 26px); }
.rsvp-shell h2, .faq-shell h2 { margin: 0; font-size: clamp(72px, 17vw, 130px); font-weight: 400; letter-spacing: .10em; color: var(--gold-dark); }
.intro { font-size: clamp(21px, 4vw, 30px); margin: 12px auto 30px; max-width: 450px; }
.rsvp-form { text-align: left; }
.rsvp-form label, .rsvp-form legend { display: block; text-align: center; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em; font-size: 18px; font-weight: 600; }
.field-help { text-align: center; margin: 5px 0 10px; font-size: 17px; font-style: italic; }
textarea, select { width: 100%; border: 1px solid rgba(169,130,63,.5); background: rgba(255,253,248,.82); color: var(--ink); border-radius: 8px; padding: 14px; font: 19px "Cormorant Garamond", serif; }
fieldset { border: 0; padding: 24px 0; margin: 0; }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.choice { position:relative; cursor:pointer; }
.choice input { position:absolute; opacity:0; }
.choice span { display:grid; place-items:center; min-height:92px; border:1px solid rgba(169,130,63,.55); border-radius:9px; background:rgba(255,253,248,.72); color:var(--gold-dark); font-size:19px; letter-spacing:.08em; transition:.2s ease; }
.choice input:checked + span { background:#a9823f; color:white; box-shadow:0 7px 22px rgba(112,79,31,.23); }
.rsvp-form select { margin: 10px 0 24px; text-align:center; }
.rsvp-form button { width:100%; border:0; border-radius:8px; padding:17px 20px; color:white; background:linear-gradient(135deg,#b9934d,#8b672e); text-transform:uppercase; letter-spacing:.15em; font:600 21px "Cormorant Garamond", serif; cursor:pointer; box-shadow:0 9px 25px rgba(104,75,31,.25); }
.form-note { text-align:center; font-size:14px; opacity:.72; margin-bottom:0; }
.honeypot { position:absolute !important; left:-9999px !important; }

.faq-bg { background-image: url("assets/page7.png"); filter:saturate(.75); }
.faq-shell { position:relative; width:min(100%,680px); background:rgba(251,246,237,.90); border:1px solid rgba(169,130,63,.30); padding:clamp(24px,6vw,48px); box-shadow:0 25px 70px rgba(67,46,20,.13); }
.bismillah { text-align:center; color:var(--gold-dark); font-size:clamp(25px,6vw,42px); margin-bottom:6px; }
.faq-shell h2 { text-align:center; font-size:clamp(64px,14vw,100px); }
.faq-shell > .eyebrow { text-align:center; margin-bottom:24px; }
.faq-list details { margin:10px 0; border:1px solid rgba(169,130,63,.42); border-radius:8px; background:rgba(255,253,248,.88); }
.faq-list summary { padding:16px 45px 16px 18px; cursor:pointer; list-style:none; position:relative; color:var(--gold-dark); font-size:clamp(17px,3.4vw,22px); letter-spacing:.06em; text-transform:uppercase; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after { content:"⌄"; position:absolute; right:18px; top:12px; font-size:25px; transition:.2s; }
.faq-list details[open] summary::after { transform:rotate(180deg); top:19px; }
.faq-list p { margin:0; padding:0 18px 18px; font-size:19px; line-height:1.45; }
.contact { text-align:center; font-size:18px; margin:26px 0 0; }

.thank-you-section { padding:0; min-height:100svh; background:#111; }
.thank-you-section > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.photo-shade { position:absolute; inset:0; background:linear-gradient(to bottom,rgba(16,16,15,.18),rgba(16,16,15,.08) 40%,rgba(16,16,15,.74)); }
.thank-you-copy { position:relative; align-self:end; text-align:center; color:white; padding:55px 26px max(52px,env(safe-area-inset-bottom)); text-shadow:0 2px 18px rgba(0,0,0,.36); }
.thank-you-copy .eyebrow { color:#f7dfaa; }
.thank-you-copy h2 { margin:8px auto 14px; max-width:620px; font-size:clamp(48px,11vw,90px); font-weight:400; font-style:italic; line-height:.92; }
.thank-you-copy > p { max-width:550px; margin:0 auto 24px; font-size:clamp(20px,4vw,29px); }
.signature { font-size:20px; color:#f7e8c9; }
.signature span { font-size:clamp(38px,8vw,62px); font-style:italic; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 520px) {
  main { box-shadow:none; }
  .countdown-section, .rsvp-section, .faq-section { padding:28px 12px; }
  .countdown-card { width:100%; }
  .countdown-grid { grid-template-columns:repeat(2,1fr); row-gap:25px; }
  .countdown-grid div:nth-child(3) { border-left:0; }
  .choice-grid { grid-template-columns:1fr; }
  .music-label { display:none; }
  .music-toggle { width:48px; height:48px; padding:0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* Animated birds on the welcome page */
.bird-flight { position:absolute; z-index:3; pointer-events:none; display:flex; gap:12px; opacity:0; }
.bird-flight span { width:28px; height:14px; display:block; background-repeat:no-repeat; background-size:contain; background-position:center; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 36'%3E%3Cpath d='M3 24 C15 9 27 11 40 24 C53 11 65 9 77 24 C62 17 53 21 40 31 C27 21 18 17 3 24Z' fill='%23ffffff' fill-opacity='.82'/%3E%3C/svg%3E"); filter:drop-shadow(0 2px 3px rgba(80,95,105,.16)); animation:birdWing 1.6s ease-in-out infinite alternate; }
.bird-flight span:nth-child(2){ transform:scale(.72); animation-delay:.25s; }
.bird-flight span:nth-child(3){ transform:scale(.52); animation-delay:.5s; }
.bird-flight-one { top:13%; left:-22%; animation:flyAcross 18s linear 1.5s infinite; }
.bird-flight-two { top:21%; left:-18%; transform:scale(.62); animation:flyAcross 24s linear 9s infinite; }
@keyframes flyAcross { 0%{transform:translateX(0) translateY(12px);opacity:0} 8%{opacity:.9} 48%{transform:translateX(62vw) translateY(-15px);opacity:.9} 92%{opacity:.75} 100%{transform:translateX(1250px) translateY(-34px);opacity:0} }
@keyframes birdWing { from{height:10px; transform:translateY(2px)} to{height:17px; transform:translateY(-2px)} }

/* Keep live FAQ content clean and readable without duplicated artwork text. */
.faq-bg { background-image:url("assets/faq-clean-bg.jpg"); filter:none; }
.faq-bg::after { background:rgba(251,246,237,.05); }
.faq-shell { background:#fbf6ed; }

/* Final page uses the approved full-page artwork. */
.thank-you-art img { width:100%; height:auto; display:block; }
.form-note, .contact { display:none !important; }

/* Tap-to-enter layer allows browsers to start music after a real guest interaction. */
body.entry-open { overflow: hidden; }
.entry-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 22px;
  background:
    linear-gradient(rgba(251,246,237,.30), rgba(251,246,237,.48)),
    url("assets/page1.png") center / cover no-repeat;
  transition: opacity .9s ease, visibility .9s ease;
}
.entry-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-card {
  width: min(92%, 560px);
  padding: clamp(30px, 8vw, 58px) 24px;
  text-align: center;
  color: var(--gold-dark);
  border: 1px solid rgba(169,130,63,.48);
  background: rgba(251,246,237,.90);
  box-shadow: 0 24px 80px rgba(52,38,22,.22);
  backdrop-filter: blur(8px);
}
.entry-ornament { font-size: 26px; color: var(--gold); }
.entry-bismillah { margin: 10px 0 18px; font-size: clamp(27px, 7vw, 43px); }
.entry-card h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(48px, 12vw, 84px); line-height: .95; }
.entry-card h1 span { display: inline-block; padding: 0 .08em; font-size: .55em; color: var(--gold); }
.entry-card > p:not(.entry-bismillah) { max-width: 390px; margin: 24px auto; font-size: clamp(18px, 4vw, 24px); }
.entry-card button {
  border: 1px solid rgba(122,93,43,.72); border-radius: 999px;
  padding: 14px 25px; color: white;
  background: linear-gradient(135deg,#b9934d,#8b672e);
  text-transform: uppercase; letter-spacing: .13em;
  font: 600 18px "Cormorant Garamond", serif; cursor: pointer;
  box-shadow: 0 10px 28px rgba(104,75,31,.25);
}

/* RSVP uses a clean artwork background so FAQ text cannot show through. */
.rsvp-bg {
  background-image: url("assets/faq-clean-bg.jpg") !important;
  background-position: center;
  filter: none !important;
}
.rsvp-bg::after { background: rgba(251,246,237,.16) !important; }
.rsvp-shell { background: #fbf6ed !important; isolation: isolate; }
.rsvp-status { min-height: 1.5em; margin: 14px 0 0; text-align: center; font-size: 17px; }
.rsvp-status.success { color: #4d6a42; }
.rsvp-status.error { color: #8a3f35; }
.rsvp-form button[disabled] { opacity: .65; cursor: wait; }

/* Elegant opening envelope */
.entry-overlay {
  perspective: 1400px;
  overflow: hidden;
}
.entry-stage {
  width: min(94vw, 620px);
  text-align: center;
  color: var(--gold-dark);
  position: relative;
}
.entry-kicker,
.entry-prompt,
.entry-music-note {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.entry-kicker { font-size: clamp(13px, 2.6vw, 17px); margin-bottom: 24px; }
.entry-prompt { margin-top: 24px; font-size: clamp(14px, 3vw, 18px); }
.entry-music-note { margin-top: 8px; font-size: clamp(12px, 2.4vw, 15px); opacity: .72; letter-spacing: .12em; text-transform: none; }
.envelope {
  --env-w: min(82vw, 520px);
  --env-h: calc(var(--env-w) * .62);
  position: relative;
  display: block;
  width: var(--env-w);
  height: var(--env-h);
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: envelopeFloat 4.2s ease-in-out infinite;
}
.envelope:focus-visible { outline: 3px solid rgba(169,130,63,.65); outline-offset: 12px; border-radius: 18px; }
.envelope-shadow {
  position: absolute; left: 9%; right: 9%; bottom: -8%; height: 15%;
  background: rgba(64,44,24,.2); filter: blur(18px); border-radius: 50%;
  transform: translateZ(-30px);
}
.envelope-back,
.envelope-pocket,
.envelope-flap {
  position: absolute; inset: 0; border: 1px solid rgba(142,105,52,.5);
  box-shadow: 0 18px 42px rgba(58,39,20,.18);
}
.envelope-back {
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.75), transparent 36%),
    linear-gradient(145deg,#f8efe0,#e9d7bc);
  border-radius: 5px;
}
.envelope-pocket {
  z-index: 5;
  clip-path: polygon(0 18%,50% 66%,100% 18%,100% 100%,0 100%);
  background: linear-gradient(155deg,#f5e8d4 0 48%,#ead7b9 49% 100%);
  border-radius: 5px;
}
.envelope-pocket::before,
.envelope-pocket::after {
  content:""; position:absolute; inset:0; opacity:.42; pointer-events:none;
}
.envelope-pocket::before { background: linear-gradient(35deg, transparent 49.4%, rgba(150,112,58,.36) 50%, transparent 50.6%); }
.envelope-pocket::after { background: linear-gradient(-35deg, transparent 49.4%, rgba(150,112,58,.36) 50%, transparent 50.6%); }
.envelope-flap {
  z-index: 8;
  height: 62%;
  transform-origin: top center;
  clip-path: polygon(0 0,100% 0,50% 100%);
  background: linear-gradient(180deg,#fbf3e7,#ead8bd);
  border-radius: 5px 5px 0 0;
  backface-visibility: hidden;
  transition: transform 1.05s cubic-bezier(.2,.75,.25,1), z-index 0s linear .52s;
}
.invitation-card {
  position: absolute; z-index: 3; left: 7%; right: 7%; top: 9%; height: 82%;
  display: grid; align-content: center; justify-items: center; gap: 8px;
  padding: 18px; color: var(--gold-dark);
  border: 1px solid rgba(169,130,63,.45);
  background:
    linear-gradient(rgba(251,246,237,.95),rgba(251,246,237,.95)),
    radial-gradient(circle at 20% 10%,#fff,transparent 40%);
  box-shadow: 0 10px 30px rgba(80,55,28,.14);
  transition: transform 1.15s cubic-bezier(.17,.82,.24,1), opacity .7s ease;
}
.invitation-card strong { font-size: clamp(34px, 7.6vw, 62px); font-weight:400; font-style:italic; line-height:.95; }
.invitation-card strong em { color:var(--gold); font-size:.62em; font-style:normal; padding:0 .08em; }
.invitation-card small { font-size:clamp(14px,2.8vw,18px); letter-spacing:.16em; text-transform:uppercase; }
.invitation-card .entry-bismillah { font-size:clamp(22px,5vw,34px); }
.card-ornament { color:var(--gold); }
.wax-seal {
  position:absolute; z-index:12; left:50%; top:47%; width:88px; height:88px;
  transform:translate(-50%,-50%); border-radius:50%;
  display:grid; place-items:center;
  background:
    radial-gradient(circle at 35% 28%,rgba(255,255,255,.22),transparent 20%),
    radial-gradient(circle at 50% 55%,#8c2430 0 54%,#641621 56% 69%,#8f2b36 70%);
  color:#e8c583; box-shadow:0 8px 16px rgba(66,20,24,.32), inset 0 0 0 3px rgba(224,184,117,.28);
  transition: transform .55s cubic-bezier(.25,.75,.3,1), opacity .45s ease;
}
.wax-seal::before { content:""; position:absolute; inset:9px; border:1px solid rgba(238,207,150,.48); border-radius:50%; }
.wax-seal span { font:600 19px/1 "Cormorant Garamond",serif; letter-spacing:.08em; }
.wax-seal i { font-size:.72em; padding:0 2px; }
.entry-stage.opening .envelope { animation:none; }
.entry-stage.opening .wax-seal { transform:translate(-50%,-50%) scale(.2) rotate(24deg); opacity:0; }
.entry-stage.opening .envelope-flap { transform:rotateX(178deg); z-index:2; transition-delay:.2s, .72s; }
.entry-stage.opening .invitation-card { transform:translateY(-68%) scale(1.03); z-index:10; }
.entry-stage.opening .entry-prompt,
.entry-stage.opening .entry-music-note,
.entry-stage.opening .entry-kicker { opacity:0; transition:opacity .35s ease; }
@keyframes envelopeFloat { 0%,100%{transform:translateY(0) rotateX(0)} 50%{transform:translateY(-9px) rotateX(1deg)} }

/* Gentle page movement and decorative motion */
.art-section > img { transition: transform 8s ease-out, filter 1s ease; transform-origin:center; }
.art-section.in-view > img { transform: scale(1.018); }
.details-section .map-hotspot { animation: mapGlow 2.8s ease-in-out infinite; }
@keyframes mapGlow { 50% { box-shadow:0 0 0 10px rgba(169,130,63,0); background:rgba(169,130,63,.05); } }
.countdown-card.visible,
.rsvp-shell.visible,
.faq-shell.visible { animation: gentleRise .9s ease both; }
@keyframes gentleRise { from{opacity:0; transform:translateY(24px) scale(.985)} to{opacity:1; transform:none} }
.faq-list details { transition:transform .28s ease, box-shadow .28s ease; }
.faq-list details:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(75,52,25,.08); }
.music-toggle { transition:transform .25s ease, background .25s ease; }
.music-toggle:hover { transform:translateY(-2px); }

.floating-petals { position:fixed; inset:0; z-index:45; pointer-events:none; overflow:hidden; }
.floating-petals i {
  position:absolute; top:-8%; width:14px; height:20px; opacity:0;
  border-radius:80% 20% 70% 30%;
  background:linear-gradient(135deg,rgba(244,184,178,.85),rgba(255,226,215,.35));
  filter:blur(.1px); animation:petalFall 15s linear infinite;
}
.floating-petals i:nth-child(1){left:8%;animation-delay:1s;animation-duration:17s}
.floating-petals i:nth-child(2){left:24%;animation-delay:8s;animation-duration:19s;transform:scale(.75)}
.floating-petals i:nth-child(3){left:43%;animation-delay:4s;animation-duration:21s;transform:scale(.55)}
.floating-petals i:nth-child(4){left:62%;animation-delay:12s;animation-duration:18s}
.floating-petals i:nth-child(5){left:79%;animation-delay:6s;animation-duration:20s;transform:scale(.7)}
.floating-petals i:nth-child(6){left:93%;animation-delay:15s;animation-duration:22s;transform:scale(.5)}
body.entry-open .floating-petals { opacity:.25; }
@keyframes petalFall {
  0%{transform:translate3d(0,-10vh,0) rotate(0deg);opacity:0}
  8%{opacity:.55}
  50%{transform:translate3d(35px,50vh,0) rotate(230deg);opacity:.48}
  100%{transform:translate3d(-25px,112vh,0) rotate(520deg);opacity:0}
}
@media (max-width:520px){
  .wax-seal{width:72px;height:72px}
  .entry-stage.opening .invitation-card{transform:translateY(-62%) scale(1.02)}
}
@media (prefers-reduced-motion: reduce){
  .envelope,.floating-petals i{animation:none!important}
}


/* Full-screen invitation envelope */
.entry-overlay {
  inset: 0;
  padding: 0;
  background: #f7efe4;
  perspective: 1800px;
}
.full-envelope {
  position: relative;
  display: block;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--gold-dark);
  background: #f8f0e5;
  transform-style: preserve-3d;
}
.full-envelope:focus-visible { outline: 3px solid rgba(169,130,63,.7); outline-offset: -6px; }
.envelope-paper,
.envelope-bottom,
.envelope-left,
.envelope-right,
.envelope-top-flap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.envelope-paper {
  z-index: 1;
  background:
    linear-gradient(rgba(252,247,239,.15),rgba(252,247,239,.15)),
    url("assets/faq-clean-bg.jpg") center/cover no-repeat;
  filter: saturate(.9) brightness(1.03);
}
.envelope-bottom {
  z-index: 3;
  top: 37%;
  background:
    linear-gradient(rgba(250,242,231,.82),rgba(241,225,202,.92)),
    url("assets/faq-clean-bg.jpg") center 62%/cover no-repeat;
  clip-path: polygon(0 100%,0 28%,50% 62%,100% 28%,100% 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.7);
  transition: transform 1.1s cubic-bezier(.2,.75,.25,1), opacity .8s ease;
}
.envelope-left,
.envelope-right {
  z-index: 4;
  top: 34%;
  bottom: 0;
  background: linear-gradient(145deg,rgba(250,241,227,.97),rgba(230,210,180,.95));
  transition: transform 1s cubic-bezier(.2,.75,.25,1), opacity .8s ease;
}
.envelope-left { clip-path: polygon(0 0,56% 50%,0 100%); }
.envelope-right { clip-path: polygon(100% 0,44% 50%,100% 100%); }
.envelope-top-flap {
  z-index: 7;
  height: 58%;
  transform-origin: top center;
  clip-path: polygon(0 0,100% 0,50% 100%);
  background:
    linear-gradient(rgba(253,248,240,.88),rgba(239,222,198,.92)),
    url("assets/faq-clean-bg.jpg") center top/cover no-repeat;
  box-shadow: 0 14px 35px rgba(68,44,24,.16);
  backface-visibility: hidden;
  transition: transform 1.15s cubic-bezier(.2,.75,.25,1), z-index 0s linear .6s;
}
.full-wax-seal {
  position: absolute;
  z-index: 10;
  left: 50%; top: 49%;
  width: clamp(96px,14vw,154px);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%,rgba(255,255,255,.28),transparent 18%),
    radial-gradient(circle,#d99a96 0 55%,#b86d70 57% 71%,#8f4c55 72% 100%);
  color: #fff1cc;
  box-shadow: 0 12px 28px rgba(83,46,45,.28), inset 0 0 0 4px rgba(255,239,208,.28);
  animation: sealGlow 4.6s ease-in-out infinite;
  transition: transform .55s ease, opacity .45s ease;
}
.full-wax-seal::before { content:""; position:absolute; inset:12%; border:1px solid rgba(255,241,212,.55); border-radius:50%; }
.full-wax-seal span { font:600 clamp(21px,3.2vw,34px)/1 "Cormorant Garamond",serif; letter-spacing:.14em; }
.full-wax-seal i { font-size:.7em; padding:0 .08em; }
.open-copy,
.music-copy {
  position: absolute;
  z-index: 11;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  color: #6f5831;
  transition: opacity .35s ease, transform .35s ease;
}
.open-copy { bottom: 7.6%; font-size: clamp(22px,3.5vw,34px); font-style: italic; letter-spacing:.06em; }
.music-copy { bottom: 4.5%; font-size: clamp(13px,1.8vw,17px); letter-spacing:.12em; opacity:.72; }
.invitation-reveal {
  position: absolute;
  z-index: 2;
  left: 50%; top: 52%;
  width: min(78vw,720px);
  min-height: 46vh;
  transform: translate(-50%,-16%) scale(.94);
  opacity: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 48px 28px;
  color: var(--gold-dark);
  border: 1px solid rgba(169,130,63,.42);
  background: rgba(252,247,239,.96);
  box-shadow: 0 26px 80px rgba(65,44,24,.18);
  transition: transform 1.2s cubic-bezier(.17,.82,.24,1), opacity .7s ease;
}
.reveal-bismillah { font-size: clamp(28px,5vw,50px); }
.invitation-reveal strong { font-size: clamp(46px,9vw,90px); line-height:.95; font-weight:400; font-style:italic; }
.invitation-reveal strong em { color:var(--gold); font-size:.58em; font-style:normal; }
.invitation-reveal small { font-size:clamp(15px,2vw,21px); letter-spacing:.18em; text-transform:uppercase; }
.entry-overlay.opening .full-wax-seal { transform:translate(-50%,-50%) scale(.2) rotate(18deg); opacity:0; }
.entry-overlay.opening .envelope-top-flap { transform:rotateX(179deg); z-index:0; }
.entry-overlay.opening .envelope-left { transform:translateX(-35%); opacity:.2; }
.entry-overlay.opening .envelope-right { transform:translateX(35%); opacity:.2; }
.entry-overlay.opening .envelope-bottom { transform:translateY(34%); opacity:.25; }
.entry-overlay.opening .open-copy,
.entry-overlay.opening .music-copy { opacity:0; transform:translateX(-50%) translateY(10px); }
.entry-overlay.opening .invitation-reveal { opacity:1; transform:translate(-50%,-52%) scale(1); z-index:9; }
@keyframes sealGlow { 0%,100%{filter:brightness(1); transform:translate(-50%,-50%) scale(1)} 50%{filter:brightness(1.08); transform:translate(-50%,-50%) scale(1.025)} }
@media (max-width: 600px) {
  .envelope-top-flap { height: 52%; }
  .envelope-bottom { top: 34%; }
  .envelope-left,.envelope-right { top: 31%; }
  .full-wax-seal { top: 46%; }
  .open-copy { bottom: 7%; }
  .music-copy { bottom: 3.8%; }
  .invitation-reveal { width: 86vw; min-height: 38vh; top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .full-wax-seal { animation:none!important; }
}

/* v6 — refined full-screen floral envelope opening */
.entry-overlay {
  background: #f8f1e7;
}
.full-envelope {
  font-family: "Cormorant Garamond", Georgia, serif;
  background:
    linear-gradient(rgba(252,248,241,.13), rgba(252,248,241,.13)),
    url("assets/page1.png") center/cover no-repeat;
}
.envelope-paper {
  background:
    linear-gradient(rgba(252,247,239,.34), rgba(252,247,239,.34)),
    url("assets/page1.png") center/cover no-repeat;
  filter: saturate(.78) brightness(1.09) contrast(.94);
}
.envelope-bottom {
  background:
    linear-gradient(rgba(250,241,227,.76),rgba(236,217,190,.9)),
    url("assets/page2.png") center 66%/cover no-repeat;
  filter: saturate(.82) brightness(1.05);
}
.envelope-left,
.envelope-right {
  background:
    linear-gradient(145deg,rgba(253,247,237,.88),rgba(231,209,178,.9)),
    url("assets/page2.png") center/cover no-repeat;
  background-blend-mode: soft-light;
}
.envelope-top-flap {
  background:
    linear-gradient(rgba(253,248,240,.7),rgba(239,222,198,.83)),
    url("assets/page2.png") center top/cover no-repeat;
  filter: saturate(.86) brightness(1.06);
}
.full-envelope::after {
  content: "";
  position: absolute;
  inset: 2.2%;
  z-index: 8;
  pointer-events: none;
  border: 1px solid rgba(169,130,63,.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.full-wax-seal {
  width: clamp(104px,14vw,160px);
  background:
    radial-gradient(circle at 32% 26%,rgba(255,255,255,.3),transparent 18%),
    radial-gradient(circle,#dca3a2 0 55%,#c17c7d 57% 71%,#9d5960 72% 100%);
  color: #fff3d4;
  box-shadow: 0 12px 30px rgba(83,46,45,.25), inset 0 0 0 4px rgba(255,239,208,.3);
}
.full-wax-seal span {
  font-size: clamp(23px,3.1vw,35px);
  font-weight: 500;
  letter-spacing: .1em;
}
.open-copy {
  bottom: 6.8%;
  font-size: clamp(25px,3.8vw,38px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .025em;
  color: #725b36;
  text-shadow: 0 1px rgba(255,255,255,.55);
}
.music-copy,
.invitation-reveal {
  display: none !important;
}
.entry-overlay.opening .envelope-top-flap {
  transform: rotateX(179deg);
  z-index: 0;
}
.entry-overlay.opening .envelope-left {
  transform: translateX(-18%);
  opacity: .38;
}
.entry-overlay.opening .envelope-right {
  transform: translateX(18%);
  opacity: .38;
}
.entry-overlay.opening .envelope-bottom {
  transform: translateY(20%);
  opacity: .48;
}
.entry-overlay.opening .full-envelope {
  animation: envelopeExit 1.45s cubic-bezier(.22,.75,.22,1) forwards;
}
@keyframes envelopeExit {
  0%,55% { opacity: 1; filter: none; }
  100% { opacity: 0; filter: blur(5px); }
}
@media (max-width:600px) {
  .full-envelope::after { inset: 3%; }
  .open-copy { bottom: 5.7%; }
  .full-wax-seal { top: 46%; width: 92px; }
}

/* v7 — fully sealed envelope on first load */
.entry-overlay:not(.opening) .envelope-paper {
  background:
    linear-gradient(rgba(252,248,241,.20), rgba(252,248,241,.20)),
    url("assets/page2.png") center/cover no-repeat;
  filter: saturate(.78) brightness(1.10) contrast(.92);
}
.entry-overlay:not(.opening) .envelope-bottom {
  z-index: 4;
  top: 42%;
  clip-path: polygon(0 0, 50% 43%, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
}
.entry-overlay:not(.opening) .envelope-left,
.entry-overlay:not(.opening) .envelope-right {
  z-index: 5;
  top: 33%;
  bottom: 0;
  opacity: 1;
}
.entry-overlay:not(.opening) .envelope-left {
  clip-path: polygon(0 0, 55% 49%, 0 100%);
}
.entry-overlay:not(.opening) .envelope-right {
  clip-path: polygon(100% 0, 45% 49%, 100% 100%);
}
.entry-overlay:not(.opening) .envelope-top-flap {
  z-index: 8;
  height: 58%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: rotateX(0deg);
  background:
    linear-gradient(rgba(253,248,240,.76), rgba(239,222,198,.86)),
    url("assets/page2.png") center top/cover no-repeat;
  filter: saturate(.80) brightness(1.08);
}
.entry-overlay:not(.opening) .full-wax-seal {
  z-index: 12;
  top: 57.5%;
}
.entry-overlay:not(.opening) .open-copy {
  z-index: 12;
}
@media (max-width:600px) {
  .entry-overlay:not(.opening) .envelope-top-flap { height: 55%; }
  .entry-overlay:not(.opening) .full-wax-seal { top: 54%; }
}

/* v8 — truly opaque, fully sealed envelope before opening */
.entry-overlay:not(.opening) {
  background: #f7efe4 !important;
}
.entry-overlay:not(.opening) .full-envelope {
  background: #f7efe4 !important;
  isolation: isolate;
}
/* The solid paper sheet prevents any website artwork or text from showing through. */
.entry-overlay:not(.opening) .envelope-paper {
  z-index: 2 !important;
  opacity: 1 !important;
  background:
    linear-gradient(rgba(251,246,237,.18), rgba(251,246,237,.18)),
    url("assets/faq-clean-bg.jpg") center/cover no-repeat !important;
  filter: saturate(.84) brightness(1.025) contrast(.96) !important;
}
.entry-overlay:not(.opening) .envelope-bottom {
  z-index: 5 !important;
  top: 40% !important;
  opacity: 1 !important;
  clip-path: polygon(0 0, 50% 44%, 100% 0, 100% 100%, 0 100%) !important;
  background:
    linear-gradient(145deg, rgba(248,237,218,.98), rgba(232,210,179,.99)),
    url("assets/faq-clean-bg.jpg") center 72%/cover no-repeat !important;
  background-blend-mode: soft-light !important;
  filter: none !important;
}
.entry-overlay:not(.opening) .envelope-left,
.entry-overlay:not(.opening) .envelope-right {
  z-index: 6 !important;
  top: 31% !important;
  bottom: 0 !important;
  opacity: 1 !important;
  background:
    linear-gradient(145deg, rgba(251,243,230,.99), rgba(226,202,169,.99)),
    url("assets/faq-clean-bg.jpg") center/cover no-repeat !important;
  background-blend-mode: soft-light !important;
  filter: none !important;
}
.entry-overlay:not(.opening) .envelope-left {
  clip-path: polygon(0 0, 58% 49%, 0 100%) !important;
}
.entry-overlay:not(.opening) .envelope-right {
  clip-path: polygon(100% 0, 42% 49%, 100% 100%) !important;
}
.entry-overlay:not(.opening) .envelope-top-flap {
  z-index: 9 !important;
  height: 57% !important;
  opacity: 1 !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%) !important;
  transform: rotateX(0deg) !important;
  background:
    linear-gradient(rgba(252,247,238,.20), rgba(240,223,198,.30)),
    url("assets/faq-clean-bg.jpg") center top/cover no-repeat !important;
  filter: saturate(.84) brightness(1.025) contrast(.96) !important;
  box-shadow: 0 16px 34px rgba(85,58,31,.16) !important;
}
.entry-overlay:not(.opening) .full-wax-seal {
  z-index: 12 !important;
  top: 55.5% !important;
}
.entry-overlay:not(.opening) .open-copy {
  z-index: 13 !important;
  bottom: 5.5% !important;
}
/* Hide the real website completely until the envelope interaction begins. */
body.entry-open > main,
body.entry-open > .music-toggle,
body.entry-open > .floating-petals {
  visibility: hidden;
}
body.entry-open .entry-overlay {
  visibility: visible;
}
body.entry-open .entry-overlay.opening ~ main,
body.entry-open .entry-overlay.opening ~ .music-toggle,
body.entry-open .entry-overlay.opening ~ .floating-petals {
  visibility: hidden;
}
@media (max-width: 600px) {
  .entry-overlay:not(.opening) .envelope-top-flap { height: 54% !important; }
  .entry-overlay:not(.opening) .full-wax-seal { top: 52.5% !important; }
  .entry-overlay:not(.opening) .open-copy { bottom: 4.8% !important; }
}

/* v9 — final fixes: opaque sealed envelope, clean live sections, full closing page */
body.entry-open { overflow: hidden; }
.entry-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: block !important;
  opacity: 1;
  visibility: visible;
  background: #f7efe4 !important;
  overflow: hidden;
}
.full-envelope {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  cursor: pointer;
  background: #f8f1e7 url("assets/faq-clean-bg.jpg") center/cover no-repeat !important;
  isolation: isolate;
  perspective: 1600px;
}
/* Closed state is a completely opaque floral paper surface. */
.entry-overlay:not(.opening) .envelope-paper {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  opacity: 1 !important;
  background: #f8f1e7 url("assets/faq-clean-bg.jpg") center/cover no-repeat !important;
  filter: none !important;
}
/* Hide the old pocket geometry while sealed so there are no gaps or text showing through. */
.entry-overlay:not(.opening) .envelope-bottom,
.entry-overlay:not(.opening) .envelope-left,
.entry-overlay:not(.opening) .envelope-right {
  display: none !important;
}
/* A single solid closed flap, matching the paper theme. */
.entry-overlay:not(.opening) .envelope-top-flap {
  display: block !important;
  position: absolute !important;
  z-index: 4 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 58% !important;
  opacity: 1 !important;
  transform: none !important;
  transform-origin: top center !important;
  clip-path: polygon(0 0,100% 0,50% 100%) !important;
  background:
    linear-gradient(rgba(252,248,241,.16),rgba(238,220,195,.34)),
    url("assets/faq-clean-bg.jpg") center top/cover no-repeat !important;
  filter: none !important;
  box-shadow: 0 16px 38px rgba(80,56,30,.14) !important;
}
/* Lower envelope panel keeps the full screen visually closed. */
.entry-overlay:not(.opening) .full-envelope::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background:
    linear-gradient(155deg,rgba(250,241,226,.96),rgba(231,207,176,.98)),
    url("assets/faq-clean-bg.jpg") center bottom/cover no-repeat;
  background-blend-mode: soft-light;
  clip-path: polygon(0 0,50% 34%,100% 0,100% 100%,0 100%);
}
.entry-overlay:not(.opening) .full-envelope::after {
  content: "" !important;
  position: absolute !important;
  z-index: 10 !important;
  inset: 2.2% !important;
  border: 1px solid rgba(169,130,63,.34) !important;
  pointer-events: none;
}
.entry-overlay:not(.opening) .full-wax-seal {
  display: grid !important;
  z-index: 12 !important;
  top: 54% !important;
  opacity: 1 !important;
}
.entry-overlay:not(.opening) .open-copy {
  display: block !important;
  z-index: 13 !important;
  bottom: 5.2% !important;
}
/* Opening animation: reveal the pocket only after the guest taps. */
.entry-overlay.opening .envelope-paper { opacity: 1 !important; }
.entry-overlay.opening .envelope-bottom,
.entry-overlay.opening .envelope-left,
.entry-overlay.opening .envelope-right { display: block !important; }
.entry-overlay.opening .envelope-top-flap {
  transform: rotateX(178deg) !important;
  transition: transform 1.05s cubic-bezier(.2,.75,.25,1) !important;
}
.entry-overlay.opening .full-envelope::before { opacity: 0; transition: opacity .7s ease .25s; }
.entry-overlay.opening { animation: overlayFade 1.45s ease .45s forwards; }
@keyframes overlayFade { to { opacity:0; visibility:hidden; } }

/* RSVP and FAQ use clean backdrops, never artwork containing baked-in text. */
.rsvp-bg,
.faq-bg {
  background: #f8f2e8 url("assets/faq-clean-bg.jpg") center/cover no-repeat !important;
  filter: none !important;
}
.rsvp-bg::after,
.faq-bg::after { background: rgba(251,246,237,.08) !important; }
.rsvp-shell,
.faq-shell { background: rgba(251,246,237,.97) !important; }

/* Full-height closing artwork with no extra blank region. */
.thank-you-art {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  background: #f7efe4;
}
.thank-you-art img {
  width: 100% !important;
  min-height: 100svh !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}

.rsvp-status { min-height: 1.4em; text-align:center; margin:14px 0 0; font-size:18px; }
.rsvp-status.success { color:#52704c; }
.rsvp-status.error { color:#9b3e3e; }
.rsvp-form button:disabled { opacity:.65; cursor:wait; }

@media (max-width:600px) {
  .entry-overlay:not(.opening) .envelope-top-flap { height: 55% !important; }
  .entry-overlay:not(.opening) .full-wax-seal { top: 51.5% !important; }
  .entry-overlay:not(.opening) .open-copy { bottom: 4.5% !important; }
  .thank-you-art img { object-position:center top !important; }
}

/* v11 — seamless envelope handoff: never reveal page content during opening. */
.entry-overlay,
.entry-overlay.opening {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transition: none !important;
  background: #f7efe4 !important;
}
.entry-overlay.opening .full-envelope {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.entry-overlay.opening .invitation-reveal {
  display: none !important;
  opacity: 0 !important;
}
body.entry-open main,
body.entry-open .music-toggle,
body.entry-open .floating-petals {
  visibility: hidden !important;
}
.entry-overlay.is-gone {
  display: none !important;
}

/* v12 — seamless entry and fully typeset schedule */
body.entry-open main,
body.entry-open .music-toggle,
body.entry-open .floating-petals {
  visibility: hidden !important;
}
.entry-overlay {
  opacity: 1 !important;
  transition: none !important;
}
.entry-overlay.opening,
.entry-overlay.is-gone {
  transition: none !important;
}
.entry-overlay.opening .envelope-top-flap,
.entry-overlay.opening .envelope-left,
.entry-overlay.opening .envelope-right,
.entry-overlay.opening .envelope-bottom,
.entry-overlay.opening .full-wax-seal,
.entry-overlay.opening .full-envelope,
.entry-overlay.opening .open-copy {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.schedule-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(54px, 8vw, 88px) clamp(18px, 5vw, 42px);
  background: #faf5ec;
}
.schedule-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(251,247,239,.83), rgba(251,247,239,.91)),
    url('assets/page5.png') center/cover no-repeat;
  transform: scale(1.015);
}
.schedule-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 58px) clamp(20px, 5vw, 48px);
  background: rgba(255,252,246,.9);
  border: 1px solid rgba(169,130,63,.34);
  box-shadow: 0 16px 42px rgba(75,52,25,.12);
  backdrop-filter: blur(4px);
}
.schedule-kicker {
  margin: 0;
  text-align: center;
  color: var(--gold-dark);
  font-size: clamp(17px, 3.6vw, 26px);
  letter-spacing: .23em;
  font-weight: 500;
}
.schedule-shell > h2 {
  margin: 2px 0 4px;
  text-align: center;
  color: var(--gold-dark);
  font-size: clamp(64px, 14vw, 104px);
  line-height: .95;
  font-weight: 400;
  font-style: italic;
}
.schedule-ornament {
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  margin: 12px 0 18px;
}
.schedule-intro {
  max-width: 520px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: clamp(18px, 3.4vw, 25px);
  line-height: 1.45;
}
.schedule-list {
  position: relative;
}
.schedule-list::before {
  content: '';
  position: absolute;
  left: 31.5%;
  top: 21px;
  bottom: 21px;
  width: 1px;
  background: rgba(169,130,63,.65);
}
.schedule-row {
  display: grid;
  grid-template-columns: 27% 9% 64%;
  align-items: center;
  min-height: 118px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(169,130,63,.17);
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row time {
  display: block;
  padding-right: 8px;
  color: var(--gold-dark);
  text-align: right;
  white-space: nowrap;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 5.4vw, 40px);
  font-weight: 500;
  font-style: normal;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}
.schedule-dot {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(251,247,239,.95);
}
.schedule-row > div { padding-left: 12px; }
.schedule-row h3 {
  margin: 0 0 5px;
  color: var(--gold-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 4vw, 29px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.05;
}
.schedule-row p {
  margin: 0;
  font-size: clamp(16px, 3.1vw, 21px);
  line-height: 1.32;
}
@media (max-width: 560px) {
  .schedule-section { padding-inline: 10px; }
  .schedule-shell { padding-inline: 14px; }
  .schedule-list::before { left: 32%; }
  .schedule-row { grid-template-columns: 27% 10% 63%; min-height: 108px; }
  .schedule-row time { font-size: clamp(21px, 6vw, 31px); }
  .schedule-row > div { padding-left: 7px; }
  .schedule-row h3 { letter-spacing: .03em; }
}

/* v13 — approved illustrated schedule format */
.schedule-art { position: relative; background: #fbf6ed; }
.schedule-art > img { width: 100%; height: auto; display: block; }
.schedule-time-overlay {
  position: absolute;
  left: 20.8%;
  width: 18%;
  transform: translateY(-50%);
  text-align: center;
  color: #8c692f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 4.55vw, 38px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .005em;
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.time-speeches { top: 58.25%; }
.time-cake { top: 68.35%; }
.time-dancing { top: 78.55%; }
.time-farewell { top: 88.45%; }
@media (max-width: 520px) {
  .schedule-time-overlay { font-size: clamp(18px, 5.2vw, 27px); }
}


/* Final refinements: embossed floral wax seal matching the invitation artwork. */
.full-wax-seal,
.entry-overlay:not(.opening) .full-wax-seal {
  width: clamp(108px, 18vw, 156px) !important;
  height: clamp(108px, 18vw, 156px) !important;
  background: url("assets/floral-wax-seal.png") center / cover no-repeat !important;
  border: 0 !important;
  box-shadow: 0 13px 30px rgba(91, 62, 44, .24), 0 0 0 4px rgba(255, 248, 235, .35) !important;
  overflow: visible;
}
.full-wax-seal::before {
  content: "" !important;
  position: absolute !important;
  inset: -3px !important;
  border: 1px solid rgba(196, 152, 105, .38) !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 18px rgba(255,255,255,.22) !important;
}
.full-wax-seal span { display: none !important; }
.full-wax-seal::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.34) 44%, transparent 62%);
  transform: translateX(-120%);
  animation: sealShimmer 5.5s ease-in-out infinite 1.3s;
  pointer-events: none;
}
@keyframes sealShimmer {
  0%, 66%, 100% { transform: translateX(-120%); opacity: 0; }
  74% { opacity: .8; }
  88% { transform: translateX(120%); opacity: 0; }
}

/* The RSVP relies on the names field only; party size is intentionally omitted. */
.rsvp-form textarea { margin-bottom: 2px; }

/* v18 — combined opening invitation: page one and page two in one concise hero. */
.combined-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(30px, 6vw, 72px) 18px;
  background: #f8f2e8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/faq-clean-bg.jpg") center / cover no-repeat;
  transform: scale(1.015);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,252,246,.12) 0 30%, rgba(255,252,246,.32) 62%, rgba(255,252,246,.2));
}
.hero-card {
  width: min(88vw, 660px);
  min-height: min(80svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(34px, 7vw, 72px) clamp(24px, 6vw, 64px);
  color: #6f5735;
  background: rgba(255, 251, 244, .88);
  border: 1px solid rgba(178, 137, 70, .48);
  border-radius: 26px 26px 18px 18px;
  box-shadow: 0 22px 60px rgba(89, 61, 36, .18), inset 0 0 0 7px rgba(255,255,255,.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-bismillah {
  margin: 0 0 10px;
  color: #9a742f;
  font-size: clamp(24px, 5.2vw, 40px);
  line-height: 1.4;
}
.hero-ornament { color: #b38b43; font-size: 18px; margin-bottom: 12px; }
.hero-card h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: .9;
  color: #5e4a37;
}
.hero-card h1 span {
  font-size: clamp(58px, 12vw, 104px);
  font-style: italic;
}
.hero-card h1 em {
  margin: .16em 0 .12em;
  color: #b38b43;
  font-size: clamp(30px, 6vw, 50px);
  font-style: normal;
  font-weight: 400;
}
.hero-divider {
  width: min(230px, 48%);
  height: 1px;
  margin: clamp(24px, 4vw, 36px) 0 22px;
  background: linear-gradient(90deg, transparent, #b38b43 18% 82%, transparent);
  position: relative;
}
.hero-divider::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 0 10px;
  background: #fbf7ef;
  color: #b38b43;
  font-size: 12px;
}
.hero-copy {
  margin: 0;
  font-size: clamp(21px, 4.5vw, 32px);
  line-height: 1.38;
}
.hero-copy em { color: #9b7433; }
.hero-small-ornament { color: #b38b43; font-size: 22px; margin: 22px 0 10px; }
.hero-tagline {
  margin: 0;
  font-size: clamp(17px, 3.5vw, 24px);
  font-style: italic;
  letter-spacing: .02em;
}
.hero-scroll {
  margin-top: 18px;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #9c773a;
  text-decoration: none;
  border: 1px solid rgba(179,139,67,.42);
  background: rgba(255,255,255,.5);
  animation: heroArrow 2.3s ease-in-out infinite;
}
.hero-scroll span { font-size: 29px; line-height: 1; transform: translateY(-3px); }
@keyframes heroArrow { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }
@media (max-width: 520px) {
  .combined-hero { padding-inline: 10px; }
  .hero-card { width: 92vw; min-height: 77svh; padding-inline: 20px; border-radius: 20px; }
  .hero-copy { font-size: clamp(19px, 5vw, 25px); }
}

/* v19 — restore the original scenic welcome background while preserving the concise combined invitation. */
.combined-hero {
  min-height: 100svh;
  background: #dce9ef;
  padding: clamp(28px, 5vw, 64px) 16px;
}
.hero-bg {
  background-image:
    linear-gradient(rgba(247,243,235,.14), rgba(247,243,235,.18)),
    url("assets/page1.png");
  background-position: center center;
  background-size: cover;
  filter: saturate(.92) brightness(1.03);
  transform: scale(1.03);
  animation: heroScenicDrift 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,252,246,.02) 0 24%, rgba(255,252,246,.13) 52%, rgba(245,239,228,.25) 100%),
    linear-gradient(to bottom, rgba(255,255,255,.05), rgba(249,244,235,.10));
}
.hero-card {
  width: min(88vw, 650px);
  min-height: min(79svh, 790px);
  padding: clamp(34px, 7vw, 68px) clamp(24px, 6vw, 58px);
  background:
    linear-gradient(rgba(255,251,244,.955), rgba(255,251,244,.955)),
    radial-gradient(circle at 30% 12%, rgba(255,255,255,.8), transparent 42%);
  border: 1px solid rgba(178,137,70,.55);
  border-radius: 14px;
  box-shadow:
    0 28px 75px rgba(57,43,30,.24),
    0 4px 14px rgba(89,61,36,.12),
    inset 0 0 0 5px rgba(255,255,255,.25);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  animation: invitationFloat 6.5s ease-in-out infinite;
}
.hero-divider::after { background: #fdf8ef; }
.hero-scroll { background: rgba(255,251,244,.8); box-shadow: 0 7px 20px rgba(80,57,31,.10); }
@keyframes invitationFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes heroScenicDrift {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.065) translate3d(0,-5px,0); }
}
@media (max-width: 520px) {
  .combined-hero { padding: 18px 9px; }
  .hero-bg { background-position: center center; }
  .hero-card {
    width: 92vw;
    min-height: 78svh;
    padding: 28px 20px 30px;
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card, .hero-bg { animation: none !important; }
}

/* v20 — original scenic opening restored, with concise invitation wording layered directly on the artwork. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.combined-hero {
  min-height: clamp(980px, 142svh, 1500px);
  display: block;
  padding: 0;
  overflow: hidden;
  background: #dce9ef;
}
.combined-hero .hero-bg {
  inset: 0;
  background-image: url("assets/page1.png");
  background-position: center top;
  background-size: cover;
  filter: none;
  transform: none;
  animation: scenicBreath 22s ease-in-out infinite alternate;
}
.combined-hero .hero-bg::after {
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 48%,
    rgba(253,249,241,.05) 58%,
    rgba(253,249,241,.18) 70%,
    rgba(253,249,241,.34) 83%,
    rgba(253,249,241,.10) 100%);
}
.hero-scenic-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 69%;
  transform: translateX(-50%);
  width: min(86vw, 720px);
  text-align: center;
  color: #6a5138;
  padding: 30px 34px 28px;
  text-shadow: 0 1px 0 rgba(255,255,255,.82), 0 2px 8px rgba(255,255,255,.55);
}
.hero-scenic-copy::before {
  content: "";
  position: absolute;
  inset: -12px -20px -18px;
  z-index: -1;
  background: radial-gradient(ellipse at center,
    rgba(255,251,243,.92) 0%,
    rgba(255,251,243,.78) 48%,
    rgba(255,251,243,.34) 72%,
    rgba(255,251,243,0) 100%);
  filter: blur(2px);
}
.hero-scenic-copy .hero-divider {
  margin: 0 auto 18px;
}
.hero-scenic-copy .hero-divider::after {
  background: rgba(255,251,243,.9);
}
.hero-scenic-copy .hero-copy {
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.32;
  color: #6b5139;
}
.hero-scenic-copy .hero-copy em { color: #9a7332; }
.hero-scenic-copy .hero-small-ornament { margin: 16px 0 6px; }
.hero-scenic-copy .hero-tagline {
  font-size: clamp(17px, 2.7vw, 24px);
  color: #745a3d;
}
.hero-scenic-copy .hero-scroll {
  margin: 14px auto 0;
  background: rgba(255,251,244,.86);
}
@keyframes scenicBreath {
  from { transform: scale(1.001); }
  to { transform: scale(1.018); }
}
@media (max-width: 760px) {
  .combined-hero { min-height: 150svh; }
  .combined-hero .hero-bg {
    background-size: auto 100%;
    background-position: center top;
  }
  .hero-scenic-copy {
    top: 68.5%;
    width: 92vw;
    padding: 24px 14px 22px;
  }
  .hero-scenic-copy .hero-copy {
    font-size: clamp(19px, 5vw, 26px);
  }
}
@media (max-width: 420px) {
  .combined-hero { min-height: 148svh; }
  .hero-scenic-copy { top: 67.5%; }
}
@media (prefers-reduced-motion: reduce) {
  .combined-hero .hero-bg { animation: none !important; }
}

/* v21 — centered invitation wording beneath the names on the scenic hero */
.combined-hero {
  min-height: clamp(1040px, 146svh, 1535px);
}
.hero-scenic-copy,
.hero-scenic-copy.visible {
  left: 50% !important;
  right: auto !important;
  top: 68.25% !important;
  transform: translateX(-50%) !important;
  width: min(84%, 640px) !important;
  margin: 0 !important;
  padding: 24px 20px 26px !important;
  text-align: center !important;
}
.hero-scenic-copy::before {
  inset: -8px -18px -14px !important;
  background: radial-gradient(ellipse at center,
    rgba(255,251,243,.90) 0%,
    rgba(255,251,243,.74) 50%,
    rgba(255,251,243,.28) 76%,
    rgba(255,251,243,0) 100%) !important;
}
.hero-scenic-copy .hero-divider {
  width: min(58%, 300px);
  margin: 0 auto 14px !important;
}
.hero-scenic-copy .hero-copy {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(21px, 3.25vw, 31px) !important;
  line-height: 1.28 !important;
  text-wrap: balance;
}
.hero-scenic-copy .hero-small-ornament {
  margin: 13px 0 4px !important;
  font-size: 25px;
}
.hero-scenic-copy .hero-tagline {
  margin: 0 auto;
  font-size: clamp(17px, 2.5vw, 22px) !important;
  line-height: 1.25;
  font-style: italic;
}
.hero-scenic-copy .hero-scroll {
  margin: 12px auto 0 !important;
}
@media (max-width: 760px) {
  .combined-hero { min-height: 148svh; }
  .hero-scenic-copy,
  .hero-scenic-copy.visible {
    top: 67.2% !important;
    width: 90% !important;
    padding: 18px 10px 20px !important;
  }
  .hero-scenic-copy .hero-copy {
    font-size: clamp(18px, 4.9vw, 24px) !important;
    line-height: 1.27 !important;
  }
  .hero-scenic-copy .hero-tagline {
    font-size: clamp(16px, 4.2vw, 20px) !important;
  }
}
@media (max-width: 420px) {
  .combined-hero { min-height: 150svh; }
  .hero-scenic-copy,
  .hero-scenic-copy.visible { top: 66.8% !important; }
}

/* v23 — approved first-page artwork used directly, with no duplicate live text overlay */
.welcome-art {
  position: relative;
  line-height: 0;
  background: #f8f2e8;
}
.welcome-art > img {
  display: block;
  width: 100%;
  height: auto;
}
.welcome-scroll-hotspot {
  position: absolute;
  z-index: 8;
  left: 30%;
  right: 30%;
  bottom: 2%;
  height: 11%;
  border-radius: 999px;
}
.welcome-art .bird-flight-one { top: 7%; }
.welcome-art .bird-flight-two { top: 12%; }

/* v24 — full floral envelope opener based on the approved reference. */
body.entry-open { overflow: hidden !important; }
body.entry-open main,
body.entry-open .music-toggle,
body.entry-open .floating-petals {
  visibility: hidden !important;
}
body.entry-open.site-ready main,
body.entry-open.site-ready .music-toggle,
body.entry-open.site-ready .floating-petals {
  visibility: visible !important;
}

.floral-envelope-entry {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: block !important;
  overflow: hidden !important;
  background: #efe5d7 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
.floral-envelope-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #efe5d7;
  perspective: 1800px;
  isolation: isolate;
}
.floral-envelope-button:focus-visible {
  outline: 3px solid rgba(171,132,68,.75);
  outline-offset: -6px;
}
.reference-envelope,
.reference-flap,
.entry-invitation-sheet {
  position: absolute;
  inset: 0;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform, opacity;
}
.reference-envelope {
  z-index: 2;
  background-image: url('assets/envelope-opening-reference.png');
  transform: scale(1.005);
}
.reference-flap {
  z-index: 5;
  background-image: url('assets/envelope-opening-reference.png');
  pointer-events: none;
}
.reference-flap-left { clip-path: polygon(0 38%, 50% 64%, 0 100%); }
.reference-flap-right { clip-path: polygon(100% 38%, 50% 64%, 100% 100%); }
.reference-flap-bottom { clip-path: polygon(0 100%, 50% 61%, 100% 100%); }
.reference-seal {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 62.2%;
  width: clamp(118px, 17vw, 205px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 14px 28px rgba(89,57,25,.16);
  animation: sealBreath 3.2s ease-in-out infinite;
}
.reference-seal::after {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(255,255,255,.30), transparent 37%);
  opacity: .55;
}
.tap-seal-copy {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: max(2.5%, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(250,244,235,.82);
  color: #8c6a31;
  font: italic 500 clamp(17px, 2.7vw, 24px)/1.2 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(77,51,24,.10);
  animation: promptFloat 2.5s ease-in-out infinite;
}
.entry-invitation-sheet {
  z-index: 4;
  inset: auto 50% 0 auto;
  width: min(94vw, 820px);
  height: min(92svh, 1180px);
  transform: translate(50%, 72%) scale(.91);
  transform-origin: center bottom;
  border-radius: 28px 28px 0 0;
  background-image: url('assets/page1.png');
  box-shadow: 0 -22px 60px rgba(65,44,23,.24);
  opacity: 0;
}
@keyframes sealBreath {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.035); }
}
@keyframes promptFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.floral-envelope-entry.opening .tap-seal-copy {
  opacity: 0;
  transition: opacity .22s ease;
}
.floral-envelope-entry.opening .reference-seal {
  animation: none;
  transform: translate(-50%,-50%) scale(.15) rotate(18deg);
  opacity: 0;
  transition: transform .42s cubic-bezier(.3,.8,.3,1), opacity .28s ease;
}
.floral-envelope-entry.opening .reference-flap-left {
  transform: translate(-42%, 20%) rotate(-8deg);
  opacity: .18;
  transition: transform 1.15s cubic-bezier(.2,.8,.2,1) .15s, opacity .9s ease .4s;
}
.floral-envelope-entry.opening .reference-flap-right {
  transform: translate(42%, 20%) rotate(8deg);
  opacity: .18;
  transition: transform 1.15s cubic-bezier(.2,.8,.2,1) .15s, opacity .9s ease .4s;
}
.floral-envelope-entry.opening .reference-flap-bottom {
  transform: translateY(55%);
  opacity: .08;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .2s, opacity .75s ease .45s;
}
.floral-envelope-entry.opening .reference-envelope {
  transform: translateY(25%) scale(1.03);
  opacity: .16;
  transition: transform 1.35s cubic-bezier(.22,.75,.22,1) .22s, opacity .8s ease .65s;
}
.floral-envelope-entry.opening .entry-invitation-sheet {
  opacity: 1;
  transform: translate(50%, 0) scale(1);
  transition: transform 1.35s cubic-bezier(.16,.82,.22,1) .18s, opacity .28s ease .12s;
}
.floral-envelope-entry.finishing {
  opacity: 0;
  transition: opacity .28s ease !important;
  pointer-events: none;
}

@media (max-aspect-ratio: 3/4) {
  .reference-envelope,
  .reference-flap { background-size: cover; background-position: center top; }
  .reference-seal { top: 62%; width: clamp(112px, 23vw, 175px); }
  .entry-invitation-sheet { width: 100vw; height: 100svh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-seal,
  .tap-seal-copy { animation: none !important; }
  .floral-envelope-entry.opening .reference-flap,
  .floral-envelope-entry.opening .reference-envelope,
  .floral-envelope-entry.opening .entry-invitation-sheet,
  .floral-envelope-entry.opening .reference-seal { transition-duration: .01ms !important; }
}

/* v25 — sealed top flap before opening */
.reference-top-flap {
  position: absolute;
  z-index: 7;
  inset: 0 0 auto 0;
  height: 66%;
  display: block;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  backface-visibility: hidden;
  background:
    linear-gradient(rgba(255,250,242,.10), rgba(232,210,178,.18)),
    url('assets/faq-clean-bg.jpg') center top / cover no-repeat;
  box-shadow: 0 18px 34px rgba(84,56,29,.16);
  will-change: transform, opacity;
  pointer-events: none;
}
.reference-top-flap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 88%, rgba(255,255,255,.16), transparent 34%);
}
.floral-envelope-entry:not(.opening) .entry-invitation-sheet {
  opacity: 0 !important;
  visibility: hidden !important;
}
.floral-envelope-entry.opening .reference-top-flap {
  transform: rotateX(178deg);
  opacity: .08;
  transition:
    transform 1.1s cubic-bezier(.2,.78,.2,1) .1s,
    opacity .42s ease .7s;
}
.floral-envelope-entry.opening .entry-invitation-sheet {
  visibility: visible !important;
}
@media (max-aspect-ratio: 3/4) {
  .reference-top-flap { height: 64%; }
}
@media (prefers-reduced-motion: reduce) {
  .floral-envelope-entry.opening .reference-top-flap { transition-duration: .01ms !important; }
}

/* v26 — fully closed floral envelope matching the approved mockup. */
.floral-envelope-button {
  background: #eadfce !important;
}
.reference-envelope {
  z-index: 2 !important;
  background-image: url('assets/closed-floral-envelope.png') !important;
  background-size: cover !important;
  background-position: center !important;
  transform: none !important;
  opacity: 1 !important;
}
/* The closed artwork already includes the side and lower folds. */
.floral-envelope-entry:not(.opening) .reference-flap-left,
.floral-envelope-entry:not(.opening) .reference-flap-right,
.floral-envelope-entry:not(.opening) .reference-flap-bottom {
  display: none !important;
}
/* Recreate the top flap from the same closed artwork so it can fold open naturally. */
.reference-top-flap {
  z-index: 7 !important;
  height: 58% !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%) !important;
  background: url('assets/closed-floral-envelope.png') center top / cover no-repeat !important;
  box-shadow: 0 18px 34px rgba(84,56,29,.18) !important;
}
.reference-top-flap::after {
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(226,198,160,.08)) !important;
}
/* Invisible interaction target aligned with the visible seal in the artwork. */
.reference-seal {
  left: 50% !important;
  top: 58.2% !important;
  width: clamp(132px, 18vw, 210px) !important;
  box-shadow: none !important;
}
.reference-seal::after {
  inset: 1% !important;
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.24), transparent 38%) !important;
  opacity: .45 !important;
}
/* Keep the prompt perfectly centered below the seal. */
.tap-seal-copy {
  left: 50% !important;
  bottom: 6.5% !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: calc(100vw - 36px) !important;
  text-align: center !important;
  padding: 9px 20px !important;
  background: rgba(250,244,235,.92) !important;
  box-shadow: 0 8px 22px rgba(77,51,24,.13) !important;
}
@keyframes promptFloatCentered {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}
.tap-seal-copy { animation: promptFloatCentered 2.5s ease-in-out infinite !important; }

/* During opening, reveal the existing invitation while the flap folds away. */
.floral-envelope-entry.opening .reference-envelope {
  transform: translateY(22%) scale(1.025) !important;
  opacity: .12 !important;
  transition: transform 1.35s cubic-bezier(.22,.75,.22,1) .2s, opacity .78s ease .62s !important;
}
.floral-envelope-entry.opening .reference-top-flap {
  transform: rotateX(178deg) !important;
  opacity: .06 !important;
  transition: transform 1.05s cubic-bezier(.2,.78,.2,1) .08s, opacity .4s ease .68s !important;
}
.floral-envelope-entry.opening .tap-seal-copy {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px) !important;
  transition: opacity .2s ease, transform .2s ease !important;
}

@media (max-aspect-ratio: 3/4) {
  .reference-envelope { background-size: cover !important; background-position: center !important; }
  .reference-top-flap { height: 56% !important; background-position: center top !important; }
  .reference-seal { top: 57.8% !important; width: clamp(118px, 25vw, 180px) !important; }
  .tap-seal-copy { bottom: 5.5% !important; }
}

/* v27 — the closed-envelope artwork already contains the centered prompt. */
.tap-seal-copy { display: none !important; }

/* v28 — clean, perfectly aligned closed-envelope artwork.
   The approved image already contains the complete flap, wax seal and prompt,
   so no extra visible layers are placed over it before the tap. */
.floral-envelope-entry:not(.opening) .reference-top-flap,
.floral-envelope-entry:not(.opening) .reference-seal,
.floral-envelope-entry:not(.opening) .reference-flap,
.floral-envelope-entry:not(.opening) .entry-invitation-sheet {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.floral-envelope-entry:not(.opening) .reference-envelope {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background-image: url('assets/closed-floral-envelope.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* Keep the whole screen clickable while preserving a single clean seal. */
.floral-envelope-button::after {
  content: '';
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 58.2%;
  width: clamp(150px, 20vw, 230px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
/* Opening is intentionally seamless: the complete envelope lowers while the
   existing invitation page rises from it. This avoids any cut or misaligned seal. */
.floral-envelope-entry.opening .reference-top-flap,
.floral-envelope-entry.opening .reference-seal,
.floral-envelope-entry.opening .reference-flap {
  display: none !important;
}
.floral-envelope-entry.opening .reference-envelope {
  visibility: visible !important;
  transform: translateY(28%) scale(1.02) !important;
  opacity: 0 !important;
  transition: transform 1.3s cubic-bezier(.2,.78,.2,1), opacity .72s ease .46s !important;
}
.floral-envelope-entry.opening .entry-invitation-sheet {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate(50%, 0) scale(1) !important;
  transition: transform 1.3s cubic-bezier(.16,.82,.22,1) .08s, opacity .3s ease .06s !important;
}
@media (max-aspect-ratio: 3/4) {
  .floral-envelope-entry:not(.opening) .reference-envelope {
    background-size: cover !important;
    background-position: center center !important;
  }
  .floral-envelope-button::after { top: 58%; width: clamp(126px, 27vw, 188px); }
}

/* v29 — refreshed first invitation page only. The opening envelope remains unchanged. */
.welcome-art {
  overflow: hidden;
  background: #f8f0e5;
  isolation: isolate;
}
.welcome-art > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  transform-origin: 50% 42%;
  animation: welcomeBreath 14s ease-in-out infinite alternate;
  will-change: transform, filter;
}
.welcome-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 30%, rgba(255,255,255,.20), transparent 17%),
    radial-gradient(circle at 78% 28%, rgba(255,244,216,.14), transparent 18%),
    linear-gradient(115deg, transparent 36%, rgba(255,255,255,.14) 49%, transparent 62%);
  background-size: auto, auto, 220% 100%;
  mix-blend-mode: screen;
  animation: welcomeLightSweep 12s ease-in-out infinite;
}
.welcome-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .30;
  background-image:
    radial-gradient(circle, rgba(255,244,199,.9) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.6px);
  background-position: 17% 24%, 81% 41%;
  background-size: 150px 170px, 190px 210px;
  animation: welcomeSparkle 8s ease-in-out infinite alternate;
}
.welcome-art .bird-flight { z-index: 4; }
.welcome-art .welcome-scroll-hotspot { z-index: 5; }

@keyframes welcomeBreath {
  0% { transform: scale(1.002) translate3d(0,0,0); filter: saturate(.98) brightness(1); }
  100% { transform: scale(1.018) translate3d(0,-.18%,0); filter: saturate(1.035) brightness(1.015); }
}
@keyframes welcomeLightSweep {
  0%, 22% { background-position: 0 0, 0 0, 180% 0; opacity: .30; }
  55% { opacity: .62; }
  82%, 100% { background-position: 0 0, 0 0, -80% 0; opacity: .28; }
}
@keyframes welcomeSparkle {
  from { transform: translate3d(0,0,0); opacity: .16; }
  to { transform: translate3d(7px,-9px,0); opacity: .38; }
}

@media (max-width: 700px) {
  .welcome-art > img { animation-duration: 16s; }
  .welcome-art::after { opacity: .20; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-art > img,
  .welcome-art::before,
  .welcome-art::after { animation: none !important; }
}


/* v30 — unified Arabic calligraphy and final typography refinements */
.faq-shell .bismillah {
  font-family: "Amiri", "Noto Naskh Arabic", serif !important;
  font-size: clamp(28px, 5.4vw, 46px) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #75551f !important;
  text-align: center !important;
  direction: rtl;
  margin: 0 auto 12px !important;
}

/* Final schedule fit: preserve original proportions and show the complete artwork */
.schedule-art {
  background: #fbf6ed;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.schedule-art > img,
.schedule-art.in-view > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transform: none !important;
}
@media (min-width: 821px) {
  .schedule-art > img,
  .schedule-art.in-view > img {
    width: 94%;
    margin: 18px auto;
  }
}

/* v39 — complete portrait schedule artwork, shown without stretching or cropping */
.schedule-art {
  min-height: 100svh;
  padding: 12px;
  box-sizing: border-box;
  background: #fbf6ed;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.schedule-art > img,
.schedule-art.in-view > img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100svh - 24px) !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transform: none !important;
}
@media (max-width: 820px) {
  .schedule-art {
    min-height: auto;
    padding: 0;
    overflow: visible;
  }
  .schedule-art > img,
  .schedule-art.in-view > img {
    width: 100% !important;
    max-height: none !important;
  }
}

/* v40 — full-width schedule with original proportions */
.schedule-art,
.schedule-art.in-view {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: #fbf6ed;
}
.schedule-art > img,
.schedule-art.in-view > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  transform: none !important;
}
