:root {
  --emerald: #8b2036;
  --emerald-2: #b34a5d;
  --cream: #fff8e8;
  --ivory: #fffdf5;
  --gold: #d5a32b;
  --gold-light: #f3d986;
  --maroon: #941c35;
  --ink: #741b30;
  --muted: #85645f;
  --blush: #f3c9c6;
  --blush-deep: #e6a4a4;
  --rose: #c85f6f;
  --green: #205c40;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
body.locked { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
.noise { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.invitation-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; color: var(--cream); background: radial-gradient(circle at 50% 38%, #11685a 0, #073f36 38%, #032a25 100%); transition: visibility 0s 1.45s; }
.invitation-gate.opened { visibility: hidden; }
.gate-pattern, .itinerary-backdrop { position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e9d49d' stroke-width='1'%3E%3Cpath d='M40 2C34 16 26 26 2 40c24 14 32 24 38 38 6-14 14-24 38-38C54 26 46 16 40 2Z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3C/g%3E%3C/svg%3E"); animation: drift 18s linear infinite; }
.gate-pattern::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(233,212,157,.45); box-shadow: inset 0 0 0 6px rgba(201,165,90,.08); }
.gate-content { position: relative; z-index: 3; width: min(88vw, 520px); padding: 44px 24px; text-align: center; }
.eyebrow, .kicker { margin: 0; font: 600 10px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.gate-content .eyebrow { color: var(--gold-light); }
.gate-content h1 { margin: 22px 0 18px; font-family: var(--serif); font-weight: 500; line-height: .82; }
.gate-content h1 span { display: block; font-size: clamp(58px, 16vw, 92px); }
.gate-content h1 small { display: block; margin: 18px 0 14px; color: var(--gold); font: 400 32px/1 var(--script); }
.gate-date { color: var(--gold-light); font: 500 12px/1.5 var(--serif); letter-spacing: .2em; }
.crescent-mark { position: relative; width: 58px; height: 58px; margin: 0 auto 26px; }
.crescent-mark i { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 30px rgba(233,212,157,.24); }
.crescent-mark i::after { content: ""; position: absolute; width: 53px; height: 53px; left: 12px; top: -4px; border-radius: 50%; background: #0b5246; }
.crescent-mark b { position: absolute; color: var(--gold-light); right: -5px; top: 4px; font-size: 15px; animation: twinkle 2s ease-in-out infinite; }
.crescent-mark.small { transform: scale(.72); margin-bottom: 12px; }
.open-button, .share-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 210px; margin-top: 22px; padding: 16px 24px; border: 1px solid var(--gold); border-radius: 999px; color: #18342e; background: var(--gold-light); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 12px 40px rgba(0,0,0,.24); overflow: hidden; }
.open-button svg, .outline-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.button-glow { position: absolute; inset: -2px; transform: translateX(-120%) skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shine 3.2s ease-in-out infinite; }
.tap-note { margin: 13px 0 0; color: rgba(255,255,255,.6); font: 400 10px/1 var(--sans); letter-spacing: .08em; }
.gate-lantern { position: absolute; top: -8px; width: 1px; height: 23vh; background: linear-gradient(var(--gold), rgba(201,165,90,.25)); transform-origin: top; animation: sway 4s ease-in-out infinite; z-index: 2; }
.gate-lantern::before { content: ""; position: absolute; left: -14px; bottom: -34px; width: 28px; height: 38px; border: 1px solid var(--gold); border-radius: 45% 45% 30% 30%; background: radial-gradient(circle, #ffd86a 0, #c5882c 30%, #6c401a 75%); box-shadow: 0 0 30px rgba(255,216,106,.38); }
.lantern-left { left: 12%; }
.lantern-right { right: 12%; height: 17vh; animation-delay: -1.6s; }
.gate-doors { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--emerald); box-shadow: 0 0 80px rgba(0,0,0,.45); opacity: 0; }
.door-left { left: 0; transform-origin: left; }
.door-right { right: 0; transform-origin: right; }
.opened .gate-content, .opened .gate-lantern { animation: fadeAway .55s ease forwards; }
.opened .door { opacity: 1; animation: openDoor 1.2s .25s cubic-bezier(.76,0,.24,1) forwards; }
.opened .door-right { --direction: 105%; }
.opened .door-left { --direction: -105%; }

main { opacity: 1; }
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; overflow: hidden; color: var(--cream); background: radial-gradient(circle at 50% 38%, #0a5a4c, var(--emerald) 58%, #032b26 100%); padding: max(32px, env(safe-area-inset-top)) 18px 72px; }
.hero::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(201,165,90,.34); border-radius: 180px 180px 10px 10px; pointer-events: none; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(240,218,158,.8) 0 1px, transparent 1.5px); background-size: 43px 43px; opacity: .25; mask-image: linear-gradient(to bottom, black, transparent 62%); }
.moon { position: absolute; right: 9%; top: 9%; width: 68px; height: 68px; border-radius: 50%; background: var(--gold-light); filter: drop-shadow(0 0 26px rgba(233,212,157,.3)); opacity: .75; }
.moon span { position: absolute; width: 64px; height: 64px; top: -7px; left: 14px; border-radius: 50%; background: #0a5145; }
.hero-copy { position: relative; z-index: 2; max-width: 660px; text-align: center; padding-top: 20px; }
.bismillah { margin: 0 0 9px; color: var(--gold-light); font: 400 22px/1.4 serif; }
.hero-copy .eyebrow { color: rgba(255,255,255,.66); font-size: 8px; }
.invite-line { max-width: 420px; margin: 24px auto 12px; color: rgba(255,255,255,.78); font: italic 17px/1.4 var(--serif); }
.hero-copy h2 { margin: 0; font: 500 clamp(48px, 13vw, 82px)/.78 var(--serif); }
.hero-copy h2 span { display: block; }
.hero-copy h2 em { display: block; margin: 10px 0 8px; color: var(--gold); font: 400 27px/1 var(--script); }
.arch-stage { position: relative; width: min(83vw, 510px); height: clamp(310px, 52svh, 540px); margin-top: -12px; }
.arch { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; border: 1px solid rgba(233,212,157,.5); border-radius: 50% 50% 8px 8px / 36% 36% 8px 8px; }
.arch-outer { width: 100%; height: 96%; }
.arch-middle { width: 90%; height: 88%; border-style: double; border-width: 4px; opacity: .55; }
.arch-inner { width: 80%; height: 81%; border-color: rgba(233,212,157,.3); }
.couple-halo { position: absolute; left: 50%; bottom: 5%; width: 65%; height: 65%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(233,212,157,.24), transparent 68%); filter: blur(3px); }
.couple { position: absolute; z-index: 2; left: 50%; bottom: -3%; transform: translateX(-50%); height: 94%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 25px 35px rgba(0,0,0,.35)); animation: breathe 5s ease-in-out infinite; }
.floor-glow { position: absolute; left: 15%; right: 15%; bottom: 0; height: 28px; border-radius: 50%; background: rgba(233,212,157,.2); filter: blur(15px); }
.hero-date { position: relative; z-index: 3; display: flex; align-items: center; gap: 16px; margin-top: -10px; text-align: center; }
.hero-date > div { display: flex; flex-direction: column; }
.hero-date strong { color: var(--gold-light); font: 600 28px/1 var(--serif); }
.hero-date span { font: 500 8px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hero-date > i { width: 1px; height: 32px; background: rgba(233,212,157,.48); }
.hero-date p { margin: 0; }
.hero-date p span { display: block; color: var(--gold-light); font-size: 12px; }
.hero-date p b { font: 500 22px/1 var(--serif); letter-spacing: .08em; }
.scroll-cue { position: absolute; z-index: 3; bottom: 16px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.58); text-decoration: none; font: 500 8px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 22px; background: var(--gold); animation: scrollPulse 1.8s ease-in-out infinite; }
.hanging { position: absolute; top: 0; z-index: 2; width: 1px; height: 115px; background: rgba(201,165,90,.55); transform-origin: top; animation: sway 4.5s ease-in-out infinite; }
.hanging i { position: absolute; left: -7px; bottom: -18px; width: 14px; height: 20px; border: 1px solid var(--gold); transform: rotate(45deg); background: rgba(255,202,84,.22); box-shadow: 0 0 18px rgba(255,209,102,.35); }
.hanging-one { left: 7%; }
.hanging-two { right: 8%; height: 155px; animation-delay: -1s; }
.hanging-three { left: 20%; height: 64px; animation-delay: -2s; }

.blessing { position: relative; padding: 78px 20px 72px; text-align: center; background: var(--cream); }
.section-ornament { display: flex; align-items: center; gap: 13px; width: min(280px, 75vw); margin: 0 auto 24px; color: var(--gold); }
.section-ornament::before, .section-ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.kicker { color: var(--maroon); }
.section-title { margin: 5px 0 12px; color: var(--ink); font: 600 clamp(46px, 12vw, 70px)/1 var(--serif); }
.section-intro { max-width: 520px; margin: 0 auto; color: var(--muted); font: 400 17px/1.7 var(--serif); }
.countdown { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 22px); max-width: 560px; margin: 46px auto 0; padding: 20px 14px; border-block: 1px solid rgba(201,165,90,.38); }
.countdown div { min-width: 48px; }
.countdown strong { display: block; color: var(--emerald); font: 600 clamp(28px, 8vw, 44px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font: 600 7px/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.countdown > b { color: var(--gold); font: 400 22px/1 var(--serif); }

.itinerary-section { position: relative; overflow: hidden; padding: 78px 18px 96px; color: var(--cream); background: var(--emerald); }
.itinerary-backdrop { opacity: .055; }
.section-heading { position: relative; text-align: center; margin-bottom: 36px; }
.itinerary-section .kicker { color: var(--gold-light); }
.itinerary-section .section-title { color: var(--cream); }
.day-card { position: relative; z-index: 1; width: min(100%, 650px); margin: 0 auto 26px; border: 1px solid rgba(233,212,157,.32); border-radius: 4px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: 0 24px 60px rgba(0,0,0,.18); overflow: hidden; backdrop-filter: blur(12px); }
.day-card header { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid rgba(233,212,157,.24); background: rgba(0,0,0,.08); }
.date-badge { display: grid; place-items: center; width: 62px; height: 68px; border: 1px solid var(--gold); }
.date-badge strong { font: 600 32px/1 var(--serif); }
.date-badge span { color: var(--gold-light); font: 600 8px/1 var(--sans); letter-spacing: .18em; }
.day-card header p { margin: 0; color: var(--gold-light); font: 600 8px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.day-card header h4 { margin: 2px 0 0; font: 500 27px/1.1 var(--serif); }
.day-number { position: absolute; right: 15px; color: rgba(255,255,255,.07); font: 600 72px/1 var(--serif); }
.events { position: relative; padding: 12px 18px 18px; }
.events::before { content: ""; position: absolute; left: 98px; top: 36px; bottom: 36px; width: 1px; background: linear-gradient(var(--gold), rgba(201,165,90,.15)); }
.events article { position: relative; display: grid; grid-template-columns: 65px 12px 1fr; gap: 14px; align-items: center; min-height: 76px; }
.events time { text-align: right; color: var(--gold-light); font: 600 17px/1 var(--serif); font-variant-numeric: tabular-nums; }
.events time small { font: 600 7px/1 var(--sans); letter-spacing: .08em; }
.event-dot { position: relative; z-index: 1; width: 9px; height: 9px; border: 2px solid var(--emerald); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.events h5 { margin: 0; color: var(--cream); font: 500 22px/1.1 var(--serif); }
.events h5 small { font-size: 14px; }
.events p { margin: 5px 0 0; color: rgba(255,255,255,.55); font: 400 10px/1.4 var(--sans); }
.events .highlight { margin: 4px -8px; padding: 3px 8px; border: 1px solid rgba(233,212,157,.22); background: rgba(201,165,90,.09); }
.events .highlight h5 { color: var(--gold-light); }

.venue { position: relative; min-height: 660px; display: grid; place-items: center; overflow: hidden; padding: 80px 20px 180px; text-align: center; background: radial-gradient(circle at 50% 25%, #fffaf0, #efe3c8 68%); }
.venue::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(201,165,90,.23); border-radius: 50%; }
.venue-card { position: relative; z-index: 2; width: min(100%, 520px); padding: 46px 24px; border: 1px solid rgba(201,165,90,.38); background: rgba(255,250,240,.72); box-shadow: 0 28px 90px rgba(80,55,23,.12); backdrop-filter: blur(12px); }
.venue-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px; border: 1px solid var(--gold); border-radius: 50%; }
.venue-icon svg { width: 30px; fill: none; stroke: var(--maroon); stroke-width: 1.6; }
.venue h3 { margin: 7px 0 8px; color: var(--emerald); font: 600 58px/1 var(--serif); }
.venue address { color: var(--muted); font: 400 16px/1.7 var(--serif); }
.outline-button { display: inline-flex; align-items: center; gap: 14px; margin-top: 25px; padding: 14px 22px; border: 1px solid var(--emerald); border-radius: 999px; color: var(--emerald); text-decoration: none; font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: .25s ease; }
.outline-button:hover { color: var(--cream); background: var(--emerald); }
.mountains { position: absolute; left: 0; right: 0; bottom: -2px; height: 230px; }
.mountains svg { width: 100%; height: 100%; }
.mountains path:first-child { fill: #789185; opacity: .25; }
.mountains path:last-child { fill: var(--emerald); }

.closing { position: relative; overflow: hidden; color: var(--cream); text-align: center; background: var(--emerald); }
.closing::before, .closing::after { content: ""; position: absolute; top: 0; width: 42%; height: 360px; background: linear-gradient(135deg, rgba(201,165,90,.13), transparent); clip-path: polygon(0 0, 100% 0, 0 100%); }
.closing::after { right: 0; transform: scaleX(-1); }
.closing-arch { position: relative; z-index: 1; width: min(92%, 620px); margin: 70px auto 50px; padding: 55px 25px 65px; border: 1px solid rgba(233,212,157,.42); border-radius: 50% 50% 0 0 / 25% 25% 0 0; }
.closing .bismillah { font-size: 24px; }
.closing-arch > p:not(.bismillah) { max-width: 400px; margin: 0 auto; color: rgba(255,255,255,.65); font: 400 16px/1.6 var(--serif); }
.closing h3 { margin: 24px 0; font: 500 clamp(42px, 12vw, 68px)/.98 var(--serif); }
.share-button { color: var(--emerald); margin-top: 10px; }
.share-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
footer { position: relative; z-index: 1; padding: 25px 20px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(233,212,157,.2); }
footer p { margin: 0 0 5px; color: var(--gold-light); font: 500 22px/1 var(--serif); }
footer p span { color: var(--maroon); }
footer small { color: rgba(255,255,255,.45); font: 500 8px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; color: var(--cream); background: #132f2a; font: 500 11px/1 var(--sans); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes drift { to { background-position: 80px 80px; } }
@keyframes twinkle { 50% { transform: scale(1.4); opacity: .5; } }
@keyframes shine { 0%, 48% { transform: translateX(-140%) skewX(-22deg); } 72%, 100% { transform: translateX(140%) skewX(-22deg); } }
@keyframes sway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes fadeAway { to { opacity: 0; transform: scale(.96); } }
@keyframes openDoor { to { transform: translateX(var(--direction)); } }
@keyframes breathe { 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes scrollPulse { 50% { transform: scaleY(.45); transform-origin: bottom; opacity: .4; } }

@media (min-width: 760px) {
  .hero { min-height: 960px; }
  .arch-stage { margin-top: -5px; }
  .itinerary-section { padding-inline: 30px; }
  .day-card { margin-bottom: 34px; }
  .events::before { left: 123px; }
  .events article { grid-template-columns: 88px 12px 1fr; gap: 18px; }
  .events time { font-size: 20px; }
  .events h5 { font-size: 25px; }
  .events p { font-size: 11px; }
}

@media (max-height: 740px) and (max-width: 560px) {
  .gate-content { transform: scale(.88); }
  .hero { min-height: 860px; }
}

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

/* Blush invitation edition — wax seal opening and pink Muslim wedding styling */
.invitation-gate {
  perspective: 1400px;
  color: var(--maroon);
  background:
    radial-gradient(circle at 50% 34%, rgba(255,253,245,.96), rgba(255,248,232,.88) 42%, rgba(243,201,198,.96) 100%),
    var(--blush);
  transition: visibility 0s 1.9s;
}
.gate-pattern {
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b94d61' stroke-width='1'%3E%3Cpath d='M45 2c-6 17-17 28-43 43 26 15 37 26 43 43 6-17 17-28 43-43C62 30 51 19 45 2Z'/%3E%3Cpath d='M45 18 72 45 45 72 18 45Z'/%3E%3Ccircle cx='45' cy='45' r='12'/%3E%3C/g%3E%3C/svg%3E");
}
.gate-pattern::after { inset: 10px; border-color: rgba(148,28,53,.42); box-shadow: inset 0 0 0 5px rgba(255,253,245,.5), inset 0 0 0 7px rgba(213,163,43,.22); }
.corner-floral { position: absolute; z-index: 1; width: 185px; height: 185px; opacity: .8; background: radial-gradient(ellipse at 15% 18%, #fff7e0 0 5%, transparent 6%), radial-gradient(ellipse at 28% 34%, #d98388 0 6%, transparent 7%), radial-gradient(ellipse at 50% 15%, #f4d18a 0 5%, transparent 6%), radial-gradient(ellipse at 18% 55%, #8e3144 0 5%, transparent 6%); filter: drop-shadow(0 12px 22px rgba(148,28,53,.14)); }
.corner-one { left: -35px; bottom: -35px; transform: rotate(-10deg); }
.corner-two { right: -35px; top: -35px; transform: rotate(170deg); }
.envelope-scene { position: relative; z-index: 3; width: min(88vw, 480px); height: min(78svh, 670px); min-height: 540px; filter: drop-shadow(0 30px 55px rgba(102,25,43,.2)); transform-style: preserve-3d; }
.envelope-card { position: absolute; z-index: 1; inset: 0 5% 11%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 58px 25px 180px; text-align: center; border: 1px solid rgba(148,28,53,.42); border-radius: 48% 48% 8px 8px / 15% 15% 8px 8px; color: var(--maroon); background: linear-gradient(180deg, #fffdf5, #fff8e8); box-shadow: inset 0 0 0 6px #fffdf5, inset 0 0 0 8px rgba(216,132,136,.45); overflow: hidden; }
.envelope-card::before, .envelope-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38px; background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(217,132,136,.22) 6px 7px), linear-gradient(180deg, rgba(243,201,198,.9), transparent 60%); }
.envelope-card::before { left: 0; border-right: 1px solid rgba(148,28,53,.18); }
.envelope-card::after { right: 0; border-left: 1px solid rgba(148,28,53,.18); transform: scaleX(-1); }
.envelope-card .bismillah { margin: 5px 0 12px; color: var(--maroon); font-size: 21px; }
.envelope-card .eyebrow { color: var(--muted); font-size: 8px; }
.envelope-card h1 { margin: 23px 0 17px; font-family: var(--serif); font-weight: 600; line-height: .78; }
.envelope-card h1 span { display: block; font-size: clamp(53px, 14vw, 78px); }
.envelope-card h1 small { display: block; margin: 18px 0 14px; color: var(--gold); font: 400 32px/1 var(--script); }
.envelope-card .gate-date { color: var(--maroon); font-size: 10px; font-weight: 700; }
.card-crescent { position: relative; width: 43px; height: 43px; margin-bottom: 3px; }
.card-crescent > span { position: absolute; inset: 0; border-radius: 50%; background: var(--maroon); }
.card-crescent > span::after { content: ""; position: absolute; width: 40px; height: 40px; left: 10px; top: -4px; border-radius: 50%; background: #fffdf5; }
.card-crescent b { position: absolute; top: 1px; right: -6px; color: var(--gold); }
.envelope-pocket { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 44%; border: 1px solid rgba(148,28,53,.32); border-radius: 5px 5px 12px 12px; background: linear-gradient(145deg, #edaeae, #f7d1cb 58%, #df9298); box-shadow: inset 0 0 0 5px rgba(255,253,245,.2); clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%); }
.envelope-pocket::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,253,245,.5); clip-path: inherit; }
.envelope-flap { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 45%; transform-origin: 50% 100%; border: 1px solid rgba(148,28,53,.32); background: linear-gradient(165deg, #f8d8d0, #eaa4a6); clip-path: polygon(0 100%, 50% 18%, 100% 100%); backface-visibility: hidden; }
.seal-area { position: absolute; z-index: 8; left: 50%; bottom: 23%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.wax-seal { position: relative; width: 105px; height: 105px; padding: 0; border: 0; border-radius: 47% 53% 49% 51% / 54% 44% 56% 46%; color: #f7d58a; background: radial-gradient(circle at 34% 28%, #bd4a5b 0, #97233b 48%, #6f1228 100%); box-shadow: 0 8px 13px rgba(82,12,30,.35), inset 0 2px 5px rgba(255,255,255,.3), inset 0 -7px 10px rgba(65,5,21,.38); cursor: pointer; transform: rotate(-3deg); transition: filter .2s ease; }
.wax-seal:hover { filter: brightness(1.08); }
.wax-seal::before, .wax-seal::after { content: ""; position: absolute; border-radius: 50%; background: #8f1d35; }
.wax-seal::before { width: 25px; height: 18px; left: -7px; top: 42px; transform: rotate(34deg); }
.wax-seal::after { width: 22px; height: 24px; right: -6px; bottom: 17px; transform: rotate(-18deg); }
.seal-rim { position: absolute; z-index: 1; inset: 11px; border: 2px double rgba(247,213,138,.72); border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(247,213,138,.12); }
.wax-seal strong { position: relative; z-index: 2; display: block; font: 600 27px/105px var(--serif); letter-spacing: -.04em; text-shadow: 0 1px 1px #4f0a1c; }
.wax-seal strong i { font: 400 17px/1 var(--script); }
.seal-crescent { position: absolute; z-index: 2; left: 22px; top: 22px; width: 17px; height: 17px; border-radius: 50%; background: #f7d58a; opacity: .9; }
.seal-crescent::after { content: ""; position: absolute; width: 16px; height: 16px; left: 5px; top: -3px; border-radius: 50%; background: #a52d43; }
.wax-seal em { position: absolute; z-index: 2; right: 23px; top: 21px; font: normal 11px/1 serif; }
.seal-area .tap-note { margin-top: 17px; color: var(--maroon); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; text-shadow: 0 1px rgba(255,255,255,.6); }
.seal-area .tap-note span { font-weight: 800; }
.seal-pressed .wax-seal { animation: stampPress .62s cubic-bezier(.2,.9,.25,1) forwards; }
.seal-pressed .envelope-card { animation: cardWake .9s .15s ease both; }
.opened .wax-seal { animation: sealBreak .72s cubic-bezier(.35,0,.2,1) forwards; }
.opened .seal-area .tap-note { opacity: 0; }
.opened .envelope-flap { animation: flapOpen 1s .15s cubic-bezier(.45,0,.2,1) forwards; }
.opened .envelope-pocket { animation: pocketDrop .85s .65s cubic-bezier(.45,0,.2,1) forwards; }
.opened .envelope-card { animation: cardRise 1.25s .45s cubic-bezier(.2,.75,.2,1) forwards; }
.invitation-gate .door { opacity: 0; background-color: var(--blush); background-image: linear-gradient(90deg, rgba(148,28,53,.12), transparent), url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 3C29 16 18 29 3 35c15 6 26 19 32 32 6-13 17-26 32-32C52 29 41 16 35 3Z' fill='none' stroke='%23b94d61' stroke-opacity='.25'/%3E%3C/svg%3E"); }
.opened .door { opacity: 1; animation-duration: 1.05s; animation-delay: .85s; }

.hero { color: var(--maroon); background: radial-gradient(circle at 50% 33%, #fffdf5 0, #fff7e8 34%, #f6d0ca 70%, #e9a7a8 100%); }
.hero::before { border-color: rgba(148,28,53,.42); box-shadow: inset 0 0 0 5px rgba(255,253,245,.52), inset 0 0 0 7px rgba(213,163,43,.18); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(90deg, rgba(148,28,53,.25) 1px, transparent 1px), linear-gradient(rgba(148,28,53,.25) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 62%); }
.stars { background-image: radial-gradient(circle, rgba(148,28,53,.65) 0 1px, transparent 1.5px); opacity: .22; }
.moon { background: var(--gold-light); opacity: .78; }
.moon span { background: #f6d0ca; }
.hero-copy .bismillah { color: var(--maroon); }
.hero-copy .eyebrow { color: rgba(116,27,48,.72); }
.invite-line { color: rgba(116,27,48,.76); }
.hero-copy h2 { color: var(--maroon); text-shadow: 0 2px rgba(255,255,255,.45); }
.hero-copy h2 em { color: var(--gold); }
.arch { border-color: rgba(148,28,53,.45); }
.arch-middle { border-color: rgba(213,163,43,.52); }
.arch-inner { border-color: rgba(148,28,53,.27); }
.couple-halo { background: radial-gradient(circle, rgba(255,253,245,.95), rgba(213,163,43,.12) 45%, transparent 72%); }
.hero-date strong, .hero-date p span { color: var(--maroon); }
.hero-date > i { background: rgba(148,28,53,.38); }
.scroll-cue { color: rgba(116,27,48,.62); }
.hanging { background: rgba(148,28,53,.43); }
.hanging i { border-color: var(--maroon); background: rgba(213,163,43,.42); box-shadow: 0 0 18px rgba(213,163,43,.32); }
.blessing { background: var(--ivory); }

.itinerary-section { color: var(--maroon); background: linear-gradient(180deg, #efb9b8, #f6d4cf 54%, #eeb5b6); }
.itinerary-backdrop { opacity: .13; }
.itinerary-section .kicker { color: var(--maroon); }
.itinerary-section .section-title { color: var(--maroon); }
.day-card { border-color: rgba(148,28,53,.3); background: rgba(255,253,245,.85); box-shadow: 0 24px 60px rgba(108,24,43,.14); }
.day-card header { border-bottom-color: rgba(148,28,53,.2); background: rgba(255,255,255,.3); }
.date-badge { border-color: var(--maroon); }
.date-badge span, .day-card header p, .events time { color: var(--maroon); }
.day-number { color: rgba(148,28,53,.08); }
.events::before { background: linear-gradient(var(--maroon), rgba(148,28,53,.12)); }
.event-dot { border-color: #fff8e8; background: var(--gold); box-shadow: 0 0 0 1px var(--maroon); }
.events h5 { color: var(--maroon); }
.events p { color: rgba(116,27,48,.62); }
.events .highlight { border-color: rgba(148,28,53,.2); background: rgba(148,28,53,.07); }
.events .highlight h5 { color: var(--maroon); }

.venue { background: radial-gradient(circle at 50% 25%, #fffdf5, #fbe2d9 68%); }
.mountains path:first-child { fill: #dfa4a5; opacity: .5; }
.mountains path:last-child { fill: #9e3147; }
.closing { color: var(--maroon); background: linear-gradient(180deg, #f3c6c3, #e8a5a8); }
.closing-arch { border-color: rgba(148,28,53,.42); background: rgba(255,253,245,.16); }
.closing .bismillah, .closing-arch > p:not(.bismillah), footer small { color: rgba(116,27,48,.72); }
.closing h3 { color: var(--maroon); }
.closing .crescent-mark i { background: var(--maroon); }
.closing .crescent-mark i::after { background: #efb8b8; }
footer { border-top-color: rgba(148,28,53,.22); }
footer p { color: var(--maroon); }
.share-button { color: #fff8e8; background: var(--maroon); border-color: var(--maroon); }
.petal { position: absolute; z-index: 4; top: -40px; width: 12px; height: 17px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #f8ded6, #c85f6f); opacity: .7; pointer-events: none; animation: petalFall var(--fall-duration, 9s) linear var(--fall-delay, 0s) infinite; }

@keyframes stampPress { 0% { transform: rotate(-3deg) scale(1); } 45% { transform: rotate(-3deg) scale(.83); box-shadow: 0 2px 4px rgba(82,12,30,.42), inset 0 4px 10px rgba(65,5,21,.38); } 72% { transform: rotate(-3deg) scale(1.08); } 100% { transform: rotate(-3deg) scale(1); } }
@keyframes cardWake { 50% { transform: translateY(-7px); } }
@keyframes sealBreak { 0% { transform: rotate(-3deg) scale(1); opacity: 1; } 36% { transform: rotate(6deg) scale(1.13); } 100% { transform: rotate(24deg) scale(.55) translate(80px, 80px); opacity: 0; } }
@keyframes flapOpen { 0% { transform: rotateX(0); } 100% { transform: rotateX(172deg); opacity: .35; } }
@keyframes pocketDrop { to { transform: translateY(115%); opacity: 0; } }
@keyframes cardRise { 0% { transform: translateY(0) scale(1); opacity: 1; } 55% { transform: translateY(-7%) scale(1.04); opacity: 1; } 100% { transform: translateY(-20%) scale(1.1); opacity: 0; } }
@keyframes petalFall { 0% { transform: translate3d(0,-10px,0) rotate(0); } 50% { transform: translate3d(var(--drift, 28px),48svh,0) rotate(190deg); } 100% { transform: translate3d(calc(var(--drift, 28px) * -.6),105svh,0) rotate(420deg); } }

@media (max-width: 420px) {
  .envelope-scene { width: 92vw; height: 76svh; min-height: 515px; }
  .envelope-card { padding-top: 45px; }
  .envelope-card h1 span { font-size: clamp(48px, 14vw, 62px); }
  .wax-seal { width: 96px; height: 96px; }
  .wax-seal strong { line-height: 96px; }
}

/* Interactive itinerary */
.events article {
  opacity: 0;
  cursor: pointer;
  outline: none;
  transform: translate3d(-32px, 18px, 0) rotate(-1.5deg);
  transition: opacity .68s ease, transform .78s cubic-bezier(.2,.8,.2,1), background-color .3s ease, box-shadow .3s ease;
  transition-delay: var(--event-delay, 0ms);
  border-radius: 10px;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.events article:nth-child(even) { transform: translate3d(32px, 18px, 0) rotate(1.5deg); }
.events article.event-visible { opacity: 1; transform: translate3d(0,0,0) rotate(0); }
.events article::before { content: ""; position: absolute; z-index: -1; inset: 5px -8px; border: 1px solid transparent; border-radius: 10px; transform: scale(.94); transition: .25s ease; }
.events article::after { content: ""; position: absolute; z-index: 4; inset: 4px -8px; border-radius: 10px; pointer-events: none; opacity: 0; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), rgba(213,163,43,.24), transparent); }
.events article:hover::before, .events article:focus-visible::before { border-color: rgba(148,28,53,.22); background: rgba(255,253,245,.28); transform: scale(1); }
.events article:focus-visible { box-shadow: 0 0 0 3px rgba(148,28,53,.16); }
.events article.event-celebrate { animation: eventPulse .8s cubic-bezier(.2,.8,.2,1); background: rgba(255,253,245,.6); box-shadow: 0 12px 30px rgba(116,27,48,.13); }
.events article.event-celebrate::before { border-color: var(--gold); transform: scale(1.02); box-shadow: inset 0 0 18px rgba(213,163,43,.13); }
.events article.event-celebrate::after { animation: eventShimmer .75s ease-out; }
.event-sparkle { position: absolute; z-index: 8; left: 50%; top: 50%; color: var(--gold); font: normal 13px/1 serif; pointer-events: none; text-shadow: 0 1px #fff; animation: sparkleFly .8s ease-out forwards; }

/* Generated Himachal venue artwork */
.venue { min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 80px 20px 0; }
.venue-card { flex: 0 0 auto; margin-bottom: 40px; }
.venue-art { position: relative; z-index: 2; width: min(1120px, calc(100vw - 28px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(148,28,53,.28); border-bottom: 0; border-radius: 48% 48% 0 0 / 18% 18% 0 0; box-shadow: 0 -12px 50px rgba(116,27,48,.12); background: #f6cbc7; }
.venue-art::before { content: ""; position: absolute; z-index: 2; inset: 9px 9px 0; border: 1px solid rgba(255,253,245,.7); border-bottom: 0; border-radius: inherit; pointer-events: none; }
.venue-art img { display: block; width: 100%; height: clamp(280px, 48vw, 610px); object-fit: cover; object-position: center; filter: saturate(.92) contrast(.98); transform: scale(1.025); transition: transform 8s cubic-bezier(.2,.7,.2,1); }
.venue-art.visible img { transform: scale(1); }
.venue-art span { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,248,232,.1), transparent 50%, rgba(116,27,48,.16)); }
.mountains { display: none; }

/* Original oud-inspired procedural soundtrack control */
.sound-toggle { position: fixed; z-index: 80; right: max(17px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(247,213,138,.7); border-radius: 50%; color: #f7d58a; background: radial-gradient(circle at 35% 25%, #ad3a50, var(--maroon)); box-shadow: 0 10px 26px rgba(82,12,30,.3); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(16px) scale(.85); transition: .35s ease; }
.sound-toggle.visible { opacity: 1; pointer-events: auto; transform: none; }
.sound-toggle::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(148,28,53,.22); border-radius: 50%; animation: soundRing 2.3s ease-out infinite; }
.sound-toggle svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .sound-off { display: none; }
.sound-toggle.muted .sound-on { display: none; }
.sound-toggle.muted .sound-off { display: block; }
.sound-toggle.muted::after { animation: none; opacity: 0; }

@keyframes eventPulse { 0% { transform: scale(1); } 35% { transform: scale(.975); } 62% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes eventShimmer { 0% { opacity: 0; transform: translateX(-120%) skewX(-20deg); } 20% { opacity: .82; } 100% { opacity: 0; transform: translateX(120%) skewX(-20deg); } }
@keyframes sparkleFly { 0% { opacity: 1; transform: translate(-50%,-50%) scale(.4) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1.25) rotate(160deg); } }
@keyframes soundRing { 0% { opacity: .55; transform: scale(.85); } 75%,100% { opacity: 0; transform: scale(1.35); } }

@media (max-width: 560px) {
  .venue { padding-inline: 10px; }
  .venue-card { width: calc(100% - 18px); }
  .venue-art { width: 100%; }
  .venue-art img { height: 310px; }
  .sound-toggle { width: 44px; height: 44px; }
}
