/* Ahaa Kalyanam - Pro design (gold & cream, parallax sections, photo shapes) + visual builder UI */
:root {
  --accent: #C5A059;
  --ink: #1f1a17;
  --cream: #FCFBF9;
  --night: #121014;
  --timer-font: 'Italiana', serif;
  --timer-size: 3rem;
  --display: 'Italiana', serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', cursive;
  --sans: 'Montserrat', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.hidden { display: none !important; }
span[data-k], b[data-k] { display: inline-block; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; color: #fff; transition: background .4s, padding .4s, box-shadow .4s; }
.nav.scrolled { background: rgba(18, 16, 20, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 11px 28px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.brand { font-family: var(--script); font-size: 32px; color: var(--accent); text-decoration: none; line-height: 1; }
.nav-links { display: flex; gap: 24px; align-items: center; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.nav-links a { text-decoration: none; opacity: .85; transition: .2s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.pill { border: 1px solid var(--accent); padding: 9px 18px; border-radius: 999px; color: var(--accent) !important; opacity: 1 !important; }
.pill.solid { background: var(--accent); color: #1b1408 !important; }
.menu-btn { display: none; background: none; border: 0; width: 34px; height: 28px; position: relative; cursor: pointer; z-index: 2; }
.menu-btn span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--accent); transition: .3s; }
.menu-btn span:nth-child(1) { top: 7px; } .menu-btn span:nth-child(2) { top: 13px; } .menu-btn span:nth-child(3) { top: 19px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; left: 0; right: 0; top: 0; flex-direction: column; gap: 22px; padding: 90px 20px 34px; background: rgba(18, 16, 20, .97); transform: translateY(-110%); transition: transform .45s; }
  .nav-links.open { transform: none; }
}

/* ---------- sections (parallax background + overlay) ---------- */
.section-wrapper { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 110px 0; }
.theme-dark { background: var(--night); color: #f6efe3; }
.theme-light { background: var(--cream); color: var(--ink); }
.parallax-bg { position: absolute; inset: 0; z-index: 0; background-attachment: fixed; background-size: cover; background-position: center; background-image: var(--bg-img); transition: clip-path 1.2s cubic-bezier(.77, 0, .175, 1), opacity 1.2s; }
@media (hover: none), (max-width: 860px) { .parallax-bg { background-attachment: scroll; } }
.parallax-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: background-color .3s; background-color: var(--bg-overlay, transparent); }
.content-wrapper { position: relative; z-index: 2; width: 100%; max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0 1.25rem; text-align: center; }

/* background scroll transitions */
.bg-trans-none { clip-path: none; opacity: 1; }
.bg-trans-fade { opacity: 0; } .bg-trans-fade.is-bg-visible { opacity: 1; }
.bg-trans-wipe-up { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); } .bg-trans-wipe-up.is-bg-visible { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.bg-trans-circle-in { clip-path: circle(0% at 50% 50%); } .bg-trans-circle-in.is-bg-visible { clip-path: circle(150% at 50% 50%); }
.bg-trans-curtains-h { clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%); } .bg-trans-curtains-h.is-bg-visible { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.bg-trans-diamond { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); } .bg-trans-diamond.is-bg-visible { clip-path: polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%); }

/* element scroll reveal */
.sr-item { opacity: 0; transition: opacity 1.2s cubic-bezier(.165, .84, .44, 1), transform 1.2s cubic-bezier(.165, .84, .44, 1); }
.sr-fade-up { transform: translateY(50px); }
.sr-zoom-in { transform: scale(.6); }
.sr-flip-x { transform: perspective(600px) rotateX(90deg); }
.sr-elastic-up { transition-duration: 1.5s; transition-timing-function: cubic-bezier(.68, -.55, .265, 1.55); transform: translateY(100px); }
.sr-perspective { transform: perspective(1000px) rotateX(-60deg) translateY(50px); transform-origin: center bottom; }
.sr-item.is-visible { opacity: 1; transform: none; }

/* ambient motion */
@keyframes animBreathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes animFloat { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(5px, -10px) rotate(1deg); } 66% { transform: translate(-5px, -5px) rotate(-1deg); } }
@keyframes animPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.anim-breathe { animation: animBreathe 6s ease-in-out infinite; }
.anim-float { animation: animFloat 8s ease-in-out infinite; }
.anim-pulse { animation: animPulse 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .sr-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .parallax-bg { clip-path: none !important; opacity: 1 !important; transition: none !important; }
  .anim-breathe, .anim-float, .anim-pulse { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- typography ---------- */
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 11vw, 128px); line-height: 1; letter-spacing: .02em; margin: .22em 0 .1em; }
.script { font-family: var(--script); color: var(--accent); font-size: clamp(42px, 7vw, 80px); line-height: 1.15; }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 70px); line-height: 1.1; margin: .25em 0 .1em; }
.lead { font-size: clamp(18px, 2.2vw, 23px); max-width: 42rem; opacity: .9; font-style: italic; margin: 10px auto; }
.quote { font-style: italic; font-size: clamp(26px, 3.6vw, 40px); color: var(--accent); margin: 18px 0 6px; }
.ornament { color: var(--accent); margin: 16px auto; }
.ornament svg { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; padding: 15px 28px; border-radius: 999px; border: 1px solid var(--accent); text-decoration: none; cursor: pointer; transition: .3s; background: transparent; color: inherit; }
.btn.gold { background: var(--accent); color: #1b1408; }
.btn.gold:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(197, 160, 89, .35); }
.btn.ghost:hover { background: rgba(197, 160, 89, .14); }
.btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.btn.wa:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn.sm { padding: 11px 18px; font-size: 10px; }
.btn:disabled { opacity: .6; cursor: wait; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* ---------- hero ---------- */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 20px; }
.countdown div { min-width: 88px; padding: 14px 10px 12px; border: 1px solid rgba(197, 160, 89, .45); border-radius: 16px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.countdown b { display: block; font-family: var(--timer-font); font-size: var(--timer-size); font-weight: 400; line-height: 1; }
.countdown small { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.countdown .done { font-family: var(--script); font-size: 44px; color: var(--accent); border: 0; background: none; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.chip { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.chip b { color: var(--accent); font-weight: 600; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 3; width: 24px; height: 40px; border: 1px solid rgba(197, 160, 89, .7); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- photos (shapes + effects + crop) ---------- */
.photo-container { position: relative; width: 100%; aspect-ratio: var(--ar, 3 / 4); }
.ph-clip { position: relative; width: 100%; height: 100%; overflow: hidden; background: #242426; }
.crop-layer { width: 100%; height: 100%; transform: scale(var(--zoom, 1)) translate(var(--dx, 0px), var(--dy, 0px)); transition: filter .6s; }
.photo-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: var(--fx, none); transition: filter .6s; }
body:not(.editing) .photo-container:hover .photo-img { filter: none; }
.fx-bw { --fx: grayscale(100%) contrast(110%); }
.fx-sepia { --fx: sepia(100%); }
.fx-blur { --fx: blur(6px); }
.fx-glow { --fx: brightness(1.2) drop-shadow(0 0 15px rgba(255, 255, 255, .8)); }
.fx-vintage { --fx: sepia(40%) contrast(130%) brightness(90%); }
.fx-contrast { --fx: contrast(160%); }
.fx-saturate { --fx: saturate(180%); }
.fx-invert { --fx: invert(100%); }
.fx-hue { --fx: hue-rotate(90deg); }

.shape-arch { --ar: 3 / 4; padding: 7px; background: #fff; border-radius: 50% 50% 14px 14px / 37.5% 37.5% 14px 14px; box-shadow: 0 25px 50px rgba(0, 0, 0, .18); }
.shape-arch .ph-clip { border-radius: 50% 50% 9px 9px / 37.5% 37.5% 9px 9px; }
.shape-slim { --ar: 5 / 8; padding: 6px; background: #fff; border-radius: 50% 50% 12px 12px / 31% 31% 12px 12px; box-shadow: 0 25px 50px rgba(0, 0, 0, .18); }
.shape-slim .ph-clip { border-radius: 50% 50% 8px 8px / 31% 31% 8px 8px; }
.shape-polaroid { --ar: 4 / 5; padding: 12px 12px 52px; background: #fff; border-radius: 4px; box-shadow: 0 15px 35px rgba(0, 0, 0, .18); }
.shape-polaroid::after { content: attr(data-cap); position: absolute; left: 10px; right: 10px; bottom: 12px; text-align: center; font-family: 'Dancing Script', cursive; font-size: 20px; color: #4a3f36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shape-square { --ar: 1 / 1; padding: 5px; background: #fff; border-radius: 6px; box-shadow: 0 15px 35px rgba(0, 0, 0, .15); }
.shape-square .ph-clip { border-radius: 3px; }
.shape-oval { --ar: 3 / 4; padding: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.shape-oval .ph-clip { border-radius: 50%; }
.shape-museum { --ar: 4 / 5; padding: 18px; background: #f4ecdb; border: 10px solid #3a2a1a; box-shadow: 0 0 0 2px var(--accent), 0 25px 50px rgba(0, 0, 0, .35); }
.shape-museum .ph-clip { box-shadow: inset 0 0 0 1px rgba(197, 160, 89, .6); }

.photo-container.missing .photo-img { opacity: 0; }
.photo-container.missing .ph-clip { background: linear-gradient(135deg, #2a2326, #3b302a); }
.photo-container.missing .ph-clip::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; color: rgba(255, 255, 255, .6); font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.8; }
.theme-light .photo-container.missing .ph-clip { background: linear-gradient(135deg, #f1e9dc, #e5d8c2); }
.theme-light .photo-container.missing .ph-clip::after { color: rgba(80, 55, 25, .55); }

/* ---------- glimpses ---------- */
.glimpses { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(18px, 4vw, 54px); align-items: center; width: 100%; margin-top: 44px; }
.glimpse { margin: 0; }
.glimpse figcaption { margin-top: 22px; }
.g-name { font-family: var(--script); color: var(--accent); font-size: clamp(34px, 4vw, 46px); line-height: 1.1; }
.g-about { font-size: 17px; opacity: .8; max-width: 22rem; margin: 6px auto 0; font-style: italic; }
@media (max-width: 760px) {
  .glimpses { grid-template-columns: 1fr 1fr; }
  .glimpse.center { grid-column: 1 / -1; order: -1; width: 78%; margin: 0 auto 10px; }
}

/* ---------- story timeline ---------- */
.story-intro { max-width: 46rem; font-size: clamp(18px, 2vw, 21px); opacity: .88; }
.timeline { position: relative; width: 100%; margin-top: 64px; display: flex; flex-direction: column; gap: 70px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--accent) 8%, var(--accent) 92%, transparent); }
.t-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.t-dot { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(197, 160, 89, .2); }
.t-photo { width: 100%; max-width: 300px; justify-self: end; }
.t-text { text-align: left; justify-self: start; max-width: 26rem; }
.t-item:nth-child(even) .t-photo { order: 2; justify-self: start; }
.t-item:nth-child(even) .t-text { order: 1; text-align: right; justify-self: end; }
.t-year { font-family: var(--display); font-size: 62px; line-height: 1; color: var(--accent); }
.t-place { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .78; margin-top: 6px; }
.t-title { font-family: var(--serif); font-size: 29px; font-weight: 600; margin: 10px 0 6px; line-height: 1.2; }
.t-text p { margin: 0; opacity: .85; }
.closing { margin-top: 70px; }
@media (max-width: 760px) {
  .timeline::before { left: 14px; }
  .t-dot { left: 14px; top: 0; margin-top: 4px; }
  .t-item, .t-item:nth-child(even) { grid-template-columns: 1fr; gap: 22px; padding-left: 40px; }
  .t-item .t-photo, .t-item:nth-child(even) .t-photo { order: 0; justify-self: start; max-width: 260px; }
  .t-item .t-text, .t-item:nth-child(even) .t-text { order: 1; text-align: left; justify-self: start; }
}

/* ---------- glass cards ---------- */
.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.theme-light .glass { background: #fff; border-color: rgba(197, 160, 89, .3); box-shadow: 0 24px 60px rgba(80, 55, 20, .1); }

/* ---------- events ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 30px; width: 100%; margin-top: 48px; }
.event { text-align: left; overflow: hidden; display: flex; flex-direction: column; }
.ev-head { padding: 30px 30px 6px; }
.ev-name { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 44px); line-height: 1.1; margin: 8px 0 0; }
.ev-rows { list-style: none; margin: 14px 0 0; padding: 0 30px; display: grid; gap: 12px; font-size: 18px; }
.ev-rows li { display: flex; gap: 14px; align-items: flex-start; }
.ev-rows i { color: var(--accent); flex: none; margin-top: 3px; }
.ev-map { width: 100%; height: 210px; border: 0; margin-top: 22px; filter: grayscale(.3) sepia(.15); }
.ev-btns { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px 30px 28px; }

/* ---------- gallery ---------- */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 40px; }
.tab { font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: inherit; cursor: pointer; }
.tab.active { background: var(--accent); color: #1b1408; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px; width: 100%; }
.g-item { margin: 0; transition: rotate .4s, scale .4s; }
.g-item:nth-child(3n+1) { rotate: -2.5deg; } .g-item:nth-child(3n+2) { rotate: 1.5deg; } .g-item:nth-child(3n) { rotate: -1deg; }
body:not(.editing) .g-item:hover { rotate: 0deg; scale: 1.03; cursor: zoom-in; }

/* ---------- videos ---------- */
.videos { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 44px; }
.video-card { flex: 1 1 420px; max-width: 720px; }
.video-card .frame { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #1a1517; display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.video-card .frame.vertical { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.video-card:has(.vertical) { flex: 0 1 360px; }
.video-card iframe, .video-card video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-card h4 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 16px 0 0; }
.soon { font-family: var(--script); font-size: 40px; color: var(--accent); }

/* ---------- RSVP ---------- */
.form-card { width: 100%; max-width: 840px; margin-top: 40px; padding: clamp(22px, 4vw, 46px); text-align: left; }
.step { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-size: 30px; font-weight: 400; margin: 6px 0 18px; }
.step small { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(197, 160, 89, .55), transparent); margin: 30px 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full { grid-column: 1 / -1; }
.form-card label.l { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.req { color: #ff9b8a; }
.form-card input:not([type=radio]):not([type=checkbox]), .form-card select, .form-card textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .25); color: inherit; font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .2s; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--accent); }
.form-card textarea { min-height: 92px; resize: vertical; }
.form-card select option { color: #111; }
.form-card input::placeholder, .form-card textarea::placeholder { color: rgba(255, 255, 255, .4); }
.theme-light .form-card input:not([type=radio]):not([type=checkbox]), .theme-light .form-card select, .theme-light .form-card textarea { background: #fff; border-color: rgba(0, 0, 0, .12); }
.theme-light .form-card input::placeholder, .theme-light .form-card textarea::placeholder { color: rgba(0, 0, 0, .35); }
.choices { display: flex; gap: 12px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; cursor: pointer; font-family: var(--sans); font-size: 14px; transition: .2s; }
.theme-light .choice { border-color: rgba(0, 0, 0, .12); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(197, 160, 89, .16); }
.choice input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.travel-box { display: none; margin-top: 18px; padding: 22px; border-radius: 16px; border: 1px dashed rgba(197, 160, 89, .55); }
.travel-box.show { display: block; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.msg { margin-top: 14px; font-family: var(--sans); font-size: 14px; min-height: 1em; }
.msg.err { color: #ff9b8a; } .msg.ok { color: #9be3a8; }
.thanks { text-align: center; padding: 20px 0; }
.thanks h3 { font-family: var(--script); color: var(--accent); font-size: 52px; font-weight: 400; margin: 0; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- travel + footer ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; width: 100%; margin-top: 44px; text-align: left; }
.info { padding: 26px; }
.info h4 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 8px; color: var(--accent); }
.info p { margin: 0; font-size: 17px; opacity: .85; }
.contact { margin-top: 34px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; }
.contact a { color: var(--accent); text-decoration: none; }
footer { margin-top: 80px; text-align: center; }
footer .brand { font-size: 46px; }
footer p { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin: 10px 0 0; }

.fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 90; transition: .3s; }
.fab:hover { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; background: rgba(10, 8, 10, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .section-wrapper { min-height: auto; padding: 96px 0; }
  #hero { min-height: 100vh; min-height: 100svh; }
  .countdown div { min-width: 70px; }
  .countdown b { font-size: 2.2rem; }
}

/* =================== VISUAL BUILDER (only with ?edit=1) =================== */
body.editing { padding-top: 52px; }
body.editing .nav { top: 52px; }
#bBar { position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 1000000; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #1e1e24; color: #fff; font-family: Inter, Montserrat, sans-serif; font-size: 12px; border-bottom: 1px solid #444; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.b-logo { font-weight: 700; letter-spacing: .08em; color: var(--accent); white-space: nowrap; }
.b-field { display: flex; align-items: center; gap: 6px; color: #aaa; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.b-field input[type=color] { width: 30px; height: 26px; border: 0; background: none; padding: 0; cursor: pointer; }
.b-status { margin-left: auto; font-size: 11px; color: #9be3a8; white-space: nowrap; }
.b-status.dirty { color: #f3c56b; }
.b-actions { display: flex; gap: 6px; }
#bBar button, .context-toolbar button { background: #2a2a35; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 7px 11px; font: 600 11px Inter, Montserrat, sans-serif; cursor: pointer; white-space: nowrap; }
#bBar button:hover, .context-toolbar button:hover { background: #3a3a48; }
#bBar button.gold, .context-toolbar button.gold { background: var(--accent); border-color: var(--accent); color: #1b1408; }
@media (max-width: 1000px) { #bBar { overflow-x: auto; } .b-field { display: none; } }

#hoverUi { position: absolute; display: none; z-index: 999999; background: #1e1e24; border: 1px solid #444; border-radius: 6px; box-shadow: 0 10px 25px rgba(0, 0, 0, .5); padding: 4px; gap: 4px; align-items: center; color: #fff; }
.hover-btn { font-size: 11px; padding: 6px 10px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: Inter, Montserrat, sans-serif; text-transform: uppercase; font-weight: 700; letter-spacing: .5px; user-select: none; }
.hover-btn:hover { background: #333; }
.hover-btn-drag { cursor: grab; touch-action: none; }
.hover-btn-drag:active { cursor: grabbing; }
.context-toolbar { position: absolute; display: none; background: #1e1e24; color: #fff; padding: 12px; border-radius: 8px; box-shadow: 0 15px 35px rgba(0, 0, 0, .6); z-index: 999999; gap: 12px; flex-wrap: wrap; align-items: flex-end; border: 1px solid #444; max-width: min(92vw, 760px); font-family: Inter, Montserrat, sans-serif; }
.context-toolbar > div { display: flex; flex-direction: column; }
.toolbar-label { font-size: 9px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; display: block; margin-bottom: 4px; white-space: nowrap; }
.toolbar-label b { color: #ddd; font-weight: 600; margin-left: 4px; }
.toolbar-input { background: #2a2a35; border: 1px solid #444; color: #fff; padding: 6px; border-radius: 4px; font-size: 11px; outline: none; }
input[type=color].toolbar-input { width: 46px; height: 30px; padding: 2px; }
.context-toolbar input[type=range] { width: 120px; accent-color: var(--accent); }
.context-toolbar .tb-btns { flex-direction: row; gap: 6px; }
.context-toolbar .tb-hint { flex-basis: 100%; font-size: 10px; color: #999; }
.section-bg-btn { position: absolute; top: 84px; left: 20px; z-index: 30; background: rgba(0, 0, 0, .6); color: #fff; padding: 8px 12px; border-radius: 6px; font: 600 11px Inter, Montserrat, sans-serif; cursor: pointer; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(4px); transition: .2s; }
.section-bg-btn:hover { background: var(--accent); border-color: var(--accent); color: #1b1408; }

.editing [data-k] { outline: 1px dashed transparent; outline-offset: 4px; transition: outline-color .2s; cursor: text; }
.editing [data-k]:hover { outline-color: var(--accent); }
.editing [data-k][contenteditable=true] { outline: 2px solid var(--accent); cursor: text; }
.editing .photo-container:hover { outline: 2px dashed var(--accent); outline-offset: 5px; }
.editing .photo-container.is-active { outline: 2px solid var(--accent); outline-offset: 5px; }
.editing .crop-layer { cursor: grab; touch-action: none; }
.editing .crop-layer:active { cursor: grabbing; }
.editing .missing .ph-clip::after { content: attr(data-label) '\A click to add'; white-space: pre; }
body.b-preview .section-bg-btn, body.b-preview #hoverUi, body.b-preview .context-toolbar { display: none !important; }
body.b-preview [data-k], body.b-preview .photo-container { outline: none !important; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: #1e1e24; color: #fff; padding: 12px 18px; border-radius: 10px; font: 500 13px Inter, Montserrat, sans-serif; opacity: 0; pointer-events: none; transition: .3s; z-index: 1000001; border: 1px solid #444; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- additions: hero arch, families, feature frame ---------- */
.hero-arch { width: min(300px, 70vw); margin: 18px auto 6px; }
.hero-arch .photo-container { box-shadow: 0 30px 60px rgba(60, 40, 10, .28); }
.theme-light .chip { border-color: rgba(197, 160, 89, .55); background: rgba(255, 255, 255, .6); }
.theme-light .countdown div { background: rgba(255, 255, 255, .55); }
#hero.theme-light .display { color: #17120f; }
#hero.theme-light .lead { color: #111; opacity: 1; font-family: 'Italiana', serif; font-style: normal; }
.events.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1060px) { .events.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.families { margin-top: 64px; width: 100%; }
.fam-title { font-size: clamp(32px, 4.4vw, 50px); }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 22px; }
.fam { padding: 24px 22px; border-top: 1px solid rgba(197, 160, 89, .55); border-bottom: 1px solid rgba(197, 160, 89, .55); }
.fam-names { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-top: 8px; line-height: 1.35; }
.fam-place { font-size: 16px; opacity: .75; font-style: italic; margin-top: 4px; }
.feature { width: min(460px, 82vw); margin: 34px auto 10px; }
.gold-border { border: 2px solid var(--accent) !important; background: rgba(20, 20, 22, .9) !important; }
.glimpses .glimpse.center { translate: 0 -24px; }
@media (max-width: 760px) { .glimpses .glimpse.center { translate: none; } }

/* ================= round 2 changes ================= */
/* Names: full, clear letters (no cut-off script) */
.names { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: var(--accent);
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.25; letter-spacing: .02em; padding: .08em .2em .14em; overflow: visible; margin: 0; }
.rsvp-names { font-size: clamp(32px, 4.8vw, 58px); margin: 10px 0 0; }
.display { line-height: 1.12; padding-bottom: .06em; }
.script, .title, .t-year { line-height: 1.25; padding-bottom: .08em; }

/* Photos bloom from black & white into full colour automatically as they scroll into view */
.photo-container:not(.color-in) .photo-img { filter: grayscale(1) contrast(1.04); }
.photo-container.color-in .photo-img { transition: filter 2.2s ease .25s; }

/* Event cards: artwork fills the space below the buttons */
.event { height: 100%; }
.ev-art { margin-top: auto; padding: 4px 22px 18px; }
.ev-art svg { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; overflow: visible; }
.ev-art .skin { fill: #e8c9a0; }
.ev-art .hair { fill: #2a1d18; }
.ev-art .kurta { fill: #fbf6ec; stroke: var(--accent); stroke-width: 1.2; }
.ev-art .veshti { fill: #fffdf8; stroke: var(--accent); stroke-width: 1.2; }
.ev-art .saree { fill: #8b1e3f; stroke: var(--accent); stroke-width: 1.2; }
.ev-art .pallu, .ev-art .border { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.ev-art .jasmine { fill: #fff; }
.ev-art .ring { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.ev-art .gem, .ev-art .twinkle, .ev-art .heart { fill: var(--accent); }
.ev-art .heart { fill: #c0506e; }
.ev-art .pillar { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; fill: none; }
.ev-art .roof { stroke: var(--accent); stroke-width: 2.5; fill: rgba(197, 160, 89, .12); }
.ev-art .garland, .ev-art .mala { fill: none; stroke: #e0902a; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1 5.5; }
.ev-art .tassel { stroke: #3f8a4a; stroke-width: 1.4; }
.ev-art .bud { fill: #fff6e0; stroke: #e0902a; stroke-width: .8; }
.ev-art .lamp { stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.ev-art .flame { fill: #f2a33a; }
.ev-art .string { fill: none; stroke: rgba(80, 60, 30, .5); stroke-width: 1; }
.ev-art .bulb { fill: #f4c96a; }
.ev-art .glass { fill: rgba(197, 160, 89, .18); stroke: var(--accent); stroke-width: 1.4; }
.ev-art .petal { fill: #e86a7f; opacity: 0; }
.ev-art .confetti:nth-of-type(3n) { fill: var(--accent); } .ev-art .confetti:nth-of-type(3n+1) { fill: #6aa2d8; }
.ev-art * { transform-box: fill-box; transform-origin: center; }
@keyframes artBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes artTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes artRise { 0% { opacity: 0; transform: translateY(18px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
@keyframes artSway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes artFlicker { 0%, 100% { transform: scaleY(1); opacity: 1; } 40% { transform: scaleY(1.25) translateY(-1px); opacity: .85; } 70% { transform: scaleY(.88); } }
@keyframes artFall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 12% { opacity: .95; } 100% { opacity: 0; transform: translateY(150px) rotate(220deg); } }
.ev-art .bob { animation: artBob 3s ease-in-out infinite; }
.ev-art .twinkle { animation: artTwinkle 2.2s ease-in-out infinite; }
.ev-art .rise { animation: artRise 3.2s ease-out infinite; }
.ev-art .sway { transform-origin: 50% 0%; animation: artSway 3.6s ease-in-out infinite; }
.ev-art .flame { transform-origin: 50% 100%; animation: artFlicker 1.1s ease-in-out infinite; }
.ev-art .petal { animation: artFall 4.2s linear infinite; }
.ev-art .groom, .ev-art .bride { transform-box: view-box; transform-origin: 0 0; }
@media (prefers-reduced-motion: reduce) { .ev-art * { animation: none !important; } .ev-art .petal { opacity: 0; } }

/* Gallery captions a little smaller so place · date fits */
.shape-polaroid::after { font-size: 19px; }

/* Footer (replaces the Travel & Stay section) */
.site-footer { background: var(--night); color: #f6efe3; text-align: center; padding: 64px 20px 90px; margin: 0; }
.site-footer .brand { font-size: 46px; }
.site-footer p { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin: 12px 0 0; }
.site-footer .contact { margin-top: 18px; }

/* round 3: photo backgrounds in Love Journey + Frames of Forever */
#story .content-wrapper, #memories .content-wrapper { text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6); }
#story .story-intro, #story .t-text p { opacity: 1; }
#story .t-text { background: rgba(18,14,16,.42); padding: 18px 22px; border-radius: 16px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* round 4: couple's names in an elegant script that never clips */
.names { font-family: 'Great Vibes', 'Pinyon Script', cursive; font-style: normal; font-weight: 400;
  font-size: clamp(54px, 8.4vw, 104px); line-height: 1.45; letter-spacing: .01em;
  display: inline-block; padding: .06em .45em .22em; margin: 0 auto; overflow: visible; white-space: nowrap;
  text-shadow: 0 2px 18px rgba(197, 160, 89, .22); }
@media (max-width: 420px) { .names { font-size: 15vw; padding: .06em .25em .22em; } }
#hero .names { color: #9a7432; text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 6px 22px rgba(154,116,50,.25); }

/* ================= round 5: phone + desktop backgrounds and layout ================= */
/* Background photo is one screen tall and stays pinned while the section scrolls over it.
   (Stretching it over a 4,000px-tall section was what made it look blurry on phones.) */
.section-wrapper { overflow: hidden; }
@supports (overflow: clip) { .section-wrapper { overflow: clip; } }
.parallax-bg { background: none !important; }
.parallax-bg .bg-pin { position: sticky; top: 0; width: 100%; height: min(100vh, 100%); height: min(100lvh, 100%);
  background-image: var(--bg-img); background-size: cover; background-repeat: no-repeat;
  background-position: var(--bg-pos, center center); }

/* Couple's names: elegant script with clear capital letters */
.names { font-family: 'Allura', 'Great Vibes', cursive; font-weight: 400; -webkit-text-stroke: .35px currentColor;
  font-size: clamp(60px, 9vw, 112px); line-height: 1.35; letter-spacing: .005em; padding: .04em .3em .16em; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .section-wrapper { padding: 82px 0 60px; min-height: auto; }
  #hero { min-height: 100svh; padding-top: 92px; }
  .content-wrapper { padding: 0 18px; }
  .nav, .nav.scrolled { padding: 12px 16px; }
  .brand { font-size: 28px; }
  .display { font-size: clamp(40px, 12.5vw, 60px); white-space: nowrap; margin: .2em 0 .05em; }
  .names { font-size: clamp(50px, 16vw, 72px); padding: .04em .18em .16em; }
  .hero-arch { width: min(230px, 60vw); margin: 10px auto 4px; }
  .lead { font-size: 17.5px; }
  .countdown { gap: 8px; margin: 18px 0 14px; }
  .countdown div { min-width: 0; flex: 1 1 0; max-width: 78px; padding: 10px 4px 8px; border-radius: 12px; }
  .countdown b { font-size: 1.8rem; }
  .countdown small { font-size: 8px; letter-spacing: .18em; }
  .chips { gap: 8px; }
  .chip { font-size: 9.5px; letter-spacing: .12em; padding: 7px 11px; }
  .cta { margin-top: 20px; gap: 10px; }
  .cta .btn { padding: 13px 20px; }
  .title { font-size: clamp(34px, 10vw, 46px); }
  .script { font-size: clamp(30px, 9vw, 44px) !important; }
  .quote { font-size: 23px; }
  .glimpses { gap: 14px; margin-top: 28px; }
  .glimpses .glimpse.center { width: 74%; }
  .timeline { margin-top: 40px; gap: 46px; }
  .t-item .t-photo { max-width: 210px; }
  .t-year { font-size: 44px; }
  .t-title { font-size: 24px; }
  #story .t-text { padding: 14px 16px; }
  .events { gap: 20px; margin-top: 28px; }
  .ev-head { padding: 22px 20px 4px; }
  .ev-rows { padding: 0 20px; font-size: 16.5px; }
  .ev-btns { padding: 16px 20px 18px; }
  .ev-map { height: 180px; }
  .feature { width: 78vw; margin: 20px auto 6px; }
  .tabs { margin: 18px 0 22px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .g-item:nth-child(3n+1) { rotate: -1.5deg; } .g-item:nth-child(3n+2) { rotate: 1deg; } .g-item:nth-child(3n) { rotate: -.6deg; }
  .shape-polaroid { padding: 7px 7px 34px; }
  .shape-polaroid::after { font-size: 14px; bottom: 9px; left: 6px; right: 6px; }
  .site-footer { padding: 48px 18px 70px; }
  .site-footer .brand { font-size: 38px; }
}
@media (max-width: 380px) {
  .countdown b { font-size: 1.5rem; }
  .chip { font-size: 9px; }
}

@media (max-width: 760px) { .names { font-size: clamp(46px, 13.5vw, 64px); } }

/* round 5b: hero legibility, nav over the light hero, gallery balance */
#hero .eyebrow { color: #7a5a22; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
#hero .lead { text-shadow: 0 1px 0 rgba(255,255,255,.65); }
.nav:not(.scrolled) { color: #3a2a14; }
.nav:not(.scrolled) .brand { color: #8a6526; }
.nav:not(.scrolled) .pill { color: #8a6526 !important; border-color: #8a6526; }
.nav:not(.scrolled) .menu-btn span { background: #8a6526; }
@media (min-width: 861px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; gap: 38px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-links a { color: #f6efe3; }
}
@media (max-width: 760px) {
  .display { font-size: clamp(36px, 11vw, 54px); }
  .gallery .g-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
}

/* ================= round 6: opening screen + music ================= */
html.intro-open, html.intro-open body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: opacity 1.1s ease, visibility 1.1s ease, transform 1.1s ease; }
.intro.leaving { opacity: 0; visibility: hidden; transform: scale(1.04); }
.intro-bg { position: absolute; inset: 0; background: #141012 url('../photos/hero-bg.jpg') center 40% / cover no-repeat; }
.intro-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(20,14,12,.35), rgba(12,9,8,.82) 75%); }
@media (max-width: 760px) { .intro-bg { background-image: url('../photos/hero-bg-m.jpg'); background-position: center 35%; } }
.intro-card { position: relative; z-index: 1; text-align: center; color: #f7efe1; max-width: 560px; width: 100%;
  padding: 44px 28px 34px; border: 1px solid rgba(197,160,89,.55); border-radius: 26px;
  background: rgba(18,13,12,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: introIn 1.4s cubic-bezier(.165,.84,.44,1) both; }
.intro-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(197,160,89,.28); border-radius: 20px; pointer-events: none; }
@keyframes introIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.intro-eyebrow { font-family: var(--sans); font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.intro-title { font-family: var(--display); font-size: clamp(34px, 7vw, 52px); letter-spacing: .04em; margin: 14px 0 0; line-height: 1.15; }
.intro .intro-names { color: #e3c27c; font-size: clamp(54px, 13vw, 92px); margin: 2px auto 0; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.intro-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 12px; color: var(--accent); }
.intro-rule span { width: 70px; height: 1px; background: currentColor; opacity: .8; }
.intro-rule i { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }
.intro-date { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .9; }
.intro-btn { margin-top: 28px; padding: 16px 32px; font-size: 11.5px; animation: introPulse 2.6s ease-in-out 1.6s infinite; }
.intro-btn .note { font-size: 15px; letter-spacing: 0; }
@keyframes introPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(197,160,89,.55); } 50% { box-shadow: 0 0 0 12px rgba(197,160,89,0); } }
.intro-skip { display: block; margin: 16px auto 0; background: none; border: 0; color: rgba(247,239,225,.7); font-family: var(--sans);
  font-size: 11px; letter-spacing: .12em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.intro-skip:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .intro-card, .intro-btn { animation: none; } }

/* Floating music button (bottom-left): spinning record + equaliser while playing */
.music-btn { position: fixed; left: 18px; bottom: 18px; z-index: 95; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(197,160,89,.6); cursor: pointer;
  background: rgba(18,14,16,.82); color: #f6efe3; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s, background .3s; font-family: var(--sans); }
.music-btn:hover { transform: translateY(-2px); }
.music-btn .disc { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #c5a059 0 18%, #1b1416 19% 22%, #2a2124 23% 40%, #1b1416 41% 44%, #2a2124 45% 62%, #1b1416 63% 66%, #2a2124 67% 100%);
  box-shadow: inset 0 0 0 1px rgba(197,160,89,.5); }
.music-btn .disc-dot { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #1b1416; }
.music-btn.on .disc { animation: discSpin 3.2s linear infinite; }
@keyframes discSpin { to { transform: rotate(360deg); } }
.music-text { display: flex; align-items: center; gap: 8px; }
.music-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2.5px; height: 4px; background: #f6efe3; border-radius: 1px; opacity: .55; }
.music-btn.on .eq i { opacity: 1; animation: eqBar .9s ease-in-out infinite; }
.music-btn.on .eq i:nth-child(2) { animation-delay: .2s; } .music-btn.on .eq i:nth-child(3) { animation-delay: .4s; } .music-btn.on .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eqBar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.music-btn:not(.on)::after { content: ''; position: absolute; left: 10px; right: auto; top: 50%; width: 24px; height: 2px; margin-top: -1px;
  background: rgba(246,239,227,.75); transform: rotate(-40deg); border-radius: 2px; }
.music-btn.err { display: none; }
@media (max-width: 760px) { .music-btn { left: 12px; bottom: 12px; padding-right: 12px; } .music-label { display: none; } }

/* The YouTube player itself: kept tiny while hidden, shown as a small card if a phone needs a direct tap */
.yt-box { position: fixed; left: 18px; bottom: 74px; z-index: 96; width: 1px; height: 1px; overflow: hidden; opacity: .01; pointer-events: none; }
.yt-box.show { width: min(320px, calc(100vw - 24px)); height: auto; opacity: 1; pointer-events: auto; overflow: visible;
  background: rgba(18,14,16,.92); border: 1px solid rgba(197,160,89,.6); border-radius: 16px; padding: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.yt-head { display: none; }
.yt-box.show .yt-head { display: flex; align-items: center; justify-content: space-between; color: #f6efe3; font: 600 11px var(--sans); letter-spacing: .08em; margin-bottom: 8px; }
.yt-head button { background: none; border: 0; color: #f6efe3; font-size: 20px; line-height: 1; cursor: pointer; }
.yt-box.show .yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.yt-box.show .yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 760px) { .yt-box { left: 12px; bottom: 66px; } }

/* ================= round 7: classic calligraphy names, centred, never overflowing ================= */
.names { font-family: 'Pinyon Script', 'Great Vibes', cursive !important; -webkit-text-stroke: 0 !important;
  font-weight: 400; letter-spacing: 0; line-height: 1.5; display: block; width: 100%; max-width: 100%;
  margin: 0 auto; padding: .02em 0 .14em; text-align: center; white-space: nowrap; overflow: visible;
  font-size: clamp(52px, 7.6vw, 96px); }
.intro-card { overflow: hidden; }
.intro .intro-names { font-size: clamp(40px, 8.4vw, 66px); margin: 6px auto 2px; }
.intro-title { font-size: clamp(30px, 6vw, 46px); }
.intro-date { letter-spacing: .22em; }
.rsvp-names { font-size: clamp(30px, 5vw, 54px); }
@media (max-width: 760px) { .names { font-size: clamp(40px, 12vw, 58px); } .intro .intro-names { font-size: clamp(36px, 11vw, 50px); } .intro-card { padding: 36px 18px 28px; } }

/* ================= round 8: A & A crest, monogram watermark, luminous names ================= */
.crest { margin: 0 auto 4px; line-height: 0; animation: crestIn 1.6s cubic-bezier(.165,.84,.44,1) both; }
.crest svg { width: clamp(84px, 9vw, 112px); height: auto; filter: drop-shadow(0 6px 18px rgba(80,55,20,.25)); }
@keyframes crestIn { from { opacity: 0; transform: scale(.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
.hero-mono { position: absolute; z-index: 1; left: 50%; top: 46%; transform: translate(-50%, -50%); pointer-events: none;
  font-family: 'Pinyon Script', cursive; font-size: clamp(260px, 42vw, 620px); line-height: 1; white-space: nowrap;
  color: rgba(255,255,255,.16); -webkit-text-stroke: 1px rgba(197,160,89,.28); letter-spacing: -.02em; }
.hero-mono span { font-size: .5em; vertical-align: .35em; margin: 0 .04em; }

/* Couple's names: luminous champagne-to-gold, slightly translucent, with room so no flourish is cut */
.names, #hero .names, .intro .intro-names {
  background: linear-gradient(100deg, rgba(255,248,232,.96) 0%, rgba(246,224,170,.92) 30%, rgba(214,174,96,.9) 55%, rgba(255,240,205,.94) 78%, rgba(226,190,120,.92) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 2px rgba(60,38,10,.35)) drop-shadow(0 8px 22px rgba(20,12,4,.35));
  padding: .18em .5em .32em; line-height: 1.55; overflow: visible; box-sizing: border-box;
  animation: nameShimmer 9s ease-in-out infinite; }
@keyframes nameShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .names { animation: none; } }
.display { position: relative; }

/* round 9: standing arch monogram (replaces round seal) */
.crest { margin: 0 auto 6px; }
.crest svg { width: clamp(70px, 6.6vw, 96px); height: auto; filter: drop-shadow(0 8px 18px rgba(80,55,20,.22)); }

/* round 10: darker, richer antique-gold names (readable, nothing cut) */
.names, #hero .names, .intro .intro-names {
  background: linear-gradient(100deg, #5c3d0c 0%, #8a5f1c 22%, #b0812f 45%, #7a5216 62%, #9c6f25 80%, #5c3d0c 100%) !important;
  background-size: 220% 100% !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: #6b4714 !important;
  filter: drop-shadow(0 1px 0 rgba(255,250,235,.9)) drop-shadow(0 0 10px rgba(255,248,230,.85)) drop-shadow(0 6px 14px rgba(40,25,5,.28)) !important;
  padding: .18em .5em .32em; line-height: 1.55; overflow: visible; }

/* round 11: deep maroon-brown names with thin gold edge + cream halo (clearly visible on any photo) */
.names, #hero .names {
  background: none !important; animation: none !important;
  -webkit-text-fill-color: #4a160a !important; color: #4a160a !important;
  -webkit-text-stroke: .7px #b8862e;
  filter: drop-shadow(0 0 1px #fffaf0) drop-shadow(0 0 6px rgba(255,250,238,.98)) drop-shadow(0 0 16px rgba(255,246,228,.9)) drop-shadow(0 3px 4px rgba(0,0,0,.25)) !important;
  padding: .18em .5em .32em; line-height: 1.55; overflow: visible; }
@keyframes crestIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* opening screen sits on a dark photo: keep its names bright gold so they stay readable there */
.intro .intro-names {
  background: none !important; -webkit-text-fill-color: #f0d28e !important; color: #f0d28e !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)) !important; }

/* round 12: new arch logo, fully-filled names, monogram never cut, event times on chips */
.crest svg { width: clamp(66px, 6vw, 92px); height: auto; }
.hero-mono { font-size: clamp(180px, 30vw, 430px) !important; top: 52% !important; color: rgba(255,255,255,.12) !important; -webkit-text-stroke: 0 !important; }
.names, #hero .names {
  -webkit-text-stroke: 0 !important; -webkit-text-fill-color: #4a160a !important; color: #4a160a !important;
  text-shadow: 0 0 .6px #4a160a, 0 0 .6px #4a160a !important;
  filter: drop-shadow(0 0 6px rgba(255,250,238,.98)) drop-shadow(0 0 16px rgba(255,246,228,.85)) !important;
  padding: .22em .6em .4em !important; line-height: 1.6 !important; overflow: visible !important; white-space: nowrap; }
#hero .content-wrapper { overflow: visible; }
.chip .t { opacity: .9; }
.video-card:has(.vertical) { flex: 0 1 380px; }
.video-card video { background: #f6efe3; }

/* round 13: contact persons */
.contacts-card { margin: 46px auto 0; padding: 24px 26px 26px; max-width: 640px; width: 100%; border-radius: 22px; background: rgba(255,255,255,.86); border: 1px solid rgba(197,160,89,.45); box-shadow: 0 18px 50px rgba(80,55,20,.12); }
.contacts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.contact-pill { display: flex; flex-direction: column; align-items: center; min-width: 210px; padding: 12px 20px; border-radius: 16px; text-decoration: none; border: 1px solid var(--accent); background: #fffaf0; color: #3a2a1e; transition: .25s; }
.contact-pill b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #6e1c16; }
.contact-pill span { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; color: #185654; }
.contact-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(197,160,89,.3); }
#contactsFoot { margin-top: 10px; font-size: 15px; } #contactsFoot a { color: var(--accent); text-decoration: none; }
