/* ============ Dheeraj & Nikshi — styles ============ */
:root {
  --blush: #F8C8D4; --lavender: #D9C6F0; --peach: #FFD8BE; --beige: #F3E6D3; --gold: #C9A24A;
  --gold-d: #9A7628; --gold-l: #F2DFA6; --white: #fff;
  --ink: #4A2E3A; --ink-soft: #7A5A67; --rose: #B03A62; --maroon: #7E1F3E;
  --glass: rgba(255, 255, 255, .55); --glass-b: rgba(255, 255, 255, .75);
  --shadow: 0 10px 30px rgba(var(--maroon-rgb), .10), 0 2px 8px rgba(var(--maroon-rgb), .06);
  --shadow-lg: 0 24px 60px rgba(var(--maroon-rgb), .18);
  /* theme tokens (overridden per preset in css/themes.css via <html data-theme="A|B|C|D">) */
  --blush-rgb: 248, 200, 212; --lav-rgb: 217, 198, 240; --peach-rgb: 255, 216, 190; --beige-rgb: 243, 230, 211; --gold-rgb: 201, 162, 74;
  --gold-d-rgb: 154, 118, 40; --maroon-rgb: 126, 31, 62; --rose-rgb: 176, 58, 98; --page-rgb: 255, 248, 245; --heart-rgb: 232, 106, 142;
  --heart: #E86A8E; --gold-hi: #D9B55E; --gold-lo: #A9832F; --gold-dd: #8C6A1E; --page: #FFF8F5;
  --hero-bg: radial-gradient(ellipse at 70% 45%, rgba(255, 255, 255, .9), transparent 55%), linear-gradient(160deg, #FDE3EA 0%, #F6E6F7 40%, #FFEBDD 75%, #F7EBDD 100%);
  --names-color: var(--maroon); --hero-ink: var(--ink); --hero-soft: var(--ink-soft); --hero-accent: var(--gold-d);
  --names-size: clamp(3.6rem, 9vw, 7.4rem); --names-ls: normal; --names-tt: none; --names-fw: 400; --names-lh: 1;
  --f-amp: var(--f-names); --amp-style: normal; --h-style: normal; --h-weight: 400; --h-scale: 1;
  --floral-filter: none; --orn-filter: none; --footer-bg: radial-gradient(ellipse at 50% 0%, #9A2A4F, #6E1733 60%, #4E0F24);
  --radius: 22px; --nav-h: 64px;
  /* COUPLE-NAME FONT — one-line switch. Any of these is preloaded-on-demand via the Google Fonts link in index.html:
     "Parisienne" (current) · "Pinyon Script" · "Alex Brush" · "Allura" · "Great Vibes" (previous) */
  --f-names: "Parisienne", "Great Vibes", cursive;
  --f-script: var(--f-names); --f-serif: "Playfair Display", Georgia, serif; --f-sans: "Poppins", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-sans); color: var(--ink); line-height: 1.65; font-size: 16px; overflow-x: hidden;
  background: var(--page);
  background-image: radial-gradient(circle at 10% 10%, rgba(var(--blush-rgb), .35), transparent 40%), radial-gradient(circle at 90% 30%, rgba(var(--lav-rgb), .35), transparent 40%), radial-gradient(circle at 20% 80%, rgba(var(--peach-rgb), .35), transparent 40%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); }
button, input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.section { position: relative; padding: clamp(64px, 8vw, 100px) 0; }
.eyebrow { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 500; color: var(--gold-d); margin: 0 0 6px; }
.script-title { font-family: var(--f-script); font-weight: var(--h-weight); font-style: var(--h-style); font-size: calc(clamp(2.5rem, 7vw, 4.6rem) * var(--h-scale)); line-height: 1.1; margin: 0 0 14px; color: var(--maroon);
  background: linear-gradient(135deg, var(--maroon), var(--rose) 60%, var(--gold-d)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: 0 .1em; word-spacing: .14em; }
.script-title.sm { font-size: 3rem; }
.subhead { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); margin: 64px 0 28px; }
.subhead::after { content: ""; display: block; width: 70px; height: 2px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.lead { font-size: 1.05rem; color: var(--ink-soft); margin: 0 auto 28px; max-width: 60ch; }
.note { font-size: .88rem; color: var(--ink-soft); min-height: 1.3em; margin: 10px 0 0; }
.glass { background: var(--glass); border: 1px solid var(--glass-b); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 500; font-size: .95rem; letter-spacing: .02em; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background .25s; white-space: nowrap; }
.btn--gold { color: #fff; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); box-shadow: 0 8px 20px rgba(var(--gold-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 1px rgba(100, 70, 10, .35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--gold-rgb), .5); }
.btn--ghost { color: var(--maroon); background: rgba(255, 255, 255, .6); border: 1.5px solid var(--gold); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.btn--mini { padding: 7px 14px; font-size: .82rem; background: rgba(255, 255, 255, .7); border: 1px solid rgba(var(--gold-rgb), .5); color: var(--ink); }
.btn--mini:hover { background: #fff; }
.btn--block { width: 100%; padding: 15px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(var(--page-rgb), .72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 4px 24px rgba(var(--maroon-rgb), .08); border-bottom: 1px solid rgba(255, 255, 255, .7); }
.nav__inner { height: 100%; width: min(1280px, 100% - 32px); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-family: var(--f-script); font-size: 2rem; color: var(--maroon); text-decoration: none; line-height: 1; }
.nav__brand span { color: var(--gold); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { width: 48px; height: 48px; filter: drop-shadow(0 2px 4px rgba(var(--maroon-rgb), .16)); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.06); }
.nav__brand .nav__word { font-family: var(--f-names); font-size: 1.55rem; color: var(--maroon); white-space: nowrap; display: none; }
.nav__brand .nav__word i { font-style: normal; color: var(--gold); }
@media (min-width: 1360px) { .nav__word { display: inline; } }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { display: block; padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 500; transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a.active { background: rgba(var(--blush-rgb), .55); color: var(--maroon); }
.nav__links a.nav__cta { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #fff; padding-inline: 18px; margin-left: 4px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .6); border-radius: 12px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 22px; height: 2px; background: var(--maroon); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav__toggle { display: flex; }
  .nav__links { position: fixed; top: var(--nav-h); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 20px;
    background: rgba(var(--page-rgb), .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); border: 1px solid #fff;
    transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden; transition: all .28s ease; max-height: calc(100vh - var(--nav-h) - 24px); overflow: auto; }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 11px 16px; font-size: 1rem; }
  .nav__links a.nav__cta { margin: 6px 0 0; text-align: center; }
  .nav { background: rgba(var(--page-rgb), .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 24px) 0 90px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--hero-bg); }
.hero__bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(var(--gold-rgb), .35) 1px, transparent 1.5px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%); mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%); }
.corner { position: absolute; width: clamp(110px, 16vw, 220px); opacity: .9; pointer-events: none; z-index: 0; }
.corner--tl { top: var(--nav-h); left: 0; }
.corner--tr { top: var(--nav-h); right: 0; transform: scaleX(-1); }
.hero__inner { width: min(1180px, 100% - 40px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 70px); align-items: center; position: relative; z-index: 1; }
.hero__text { text-align: center; }
.hero__names { font-family: var(--f-names); font-weight: var(--names-fw); font-size: var(--names-size); letter-spacing: var(--names-ls); text-transform: var(--names-tt); line-height: var(--names-lh); margin: 10px 0; color: var(--names-color); text-shadow: 0 4px 24px rgba(255, 255, 255, .9); }
.hero__names span { display: inline-block; }
.hero__names .amp { color: var(--gold); font-size: .7em; margin: 0 .08em; font-family: var(--f-amp); font-style: var(--amp-style); text-transform: none; letter-spacing: 0; }
.hero__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--hero-soft); margin: 0; }
.divider { margin: 18px auto 8px; width: min(300px, 80%); height: auto; }
.hero__date { font-family: var(--f-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .12em; color: var(--hero-ink); margin: 0; font-weight: 600; }
.hero__place { text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; color: var(--hero-accent); margin: 6px 0 26px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__photo { display: flex; justify-content: center; }
.arch { position: relative; width: min(420px, 78vw); aspect-ratio: 1086 / 1448; }
.arch::before { content: ""; position: absolute; inset: -14px; border-radius: 999px 999px 24px 24px; border: 2px solid var(--gold); opacity: .8; }
.arch::after { content: ""; position: absolute; inset: -24px; border-radius: 999px 999px 30px 30px; border: 1px solid rgba(var(--gold-rgb), .45); }
.arch__glow { position: absolute; inset: -12%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--blush-rgb), .95) 0%, rgba(var(--blush-rgb), .5) 40%, rgba(var(--lav-rgb), .0) 70%); filter: blur(10px); animation: glow 5s ease-in-out infinite alternate; }
.arch__img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 999px 999px 18px 18px; border: 6px solid #fff; outline: 3px solid var(--gold); box-shadow: var(--shadow-lg); }
.arch__garland { position: absolute; z-index: 3; top: -5.6%; left: -5%; width: 110%; max-width: none; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(150, 80, 0, .25)); }
.arch picture { display: block; height: 100%; }
@keyframes glow { to { transform: scale(1.06); opacity: .85; } }
.float-heart { position: absolute; color: var(--heart); font-size: 26px; animation: floaty 4s ease-in-out infinite; text-shadow: 0 4px 12px rgba(var(--heart-rgb), .4); z-index: 4; }
.float-heart.h1 { left: -34px; top: 38%; } .float-heart.h2 { right: -30px; top: 22%; font-size: 20px; animation-delay: -1.5s; color: var(--gold); } .float-heart.h3 { right: -18px; bottom: 16%; font-size: 30px; animation-delay: -2.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.spark { position: absolute; width: 16px; height: 16px; z-index: 4; background: radial-gradient(circle, #fff 0 20%, transparent 22%), conic-gradient(from 45deg, transparent 0 20%, #FFF3C4 20% 30%, transparent 30% 45%, #FFF3C4 45% 55%, transparent 55% 70%, #FFF3C4 70% 80%, transparent 80%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); background: linear-gradient(#fff, var(--gold-l)); animation: twinkle 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px #fff); }
.spark.s1 { top: 6%; left: -8%; } .spark.s2 { top: 55%; right: -12%; animation-delay: -.8s; width: 12px; height: 12px; } .spark.s3 { bottom: -4%; left: 8%; animation-delay: -1.4s; } .spark.s4 { top: 18%; right: 6%; animation-delay: -2s; width: 10px; height: 10px; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; z-index: 2; }
.scroll-cue span { width: 24px; height: 38px; border: 2px solid var(--gold); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; margin-top: 18px; }
  .arch { width: min(300px, 70vw); }
  .corner { width: 110px; opacity: .75; }
}

/* Scratch */
.section--scratch { background: linear-gradient(180deg, transparent, rgba(var(--beige-rgb), .45), transparent); }
.scratch { position: relative; width: min(440px, 100%); aspect-ratio: 11 / 7; margin: 0 auto; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.scratch::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(var(--gold-rgb), .6); border-radius: 16px; pointer-events: none; }
.scratch__reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #fff, #FDEFF3 60%, #F6E8F8); padding: 16px; }
.scratch__reveal img { width: 70px; height: auto; margin-bottom: 4px; }
.scratch__day { font-family: var(--f-script); font-size: 2.4rem; color: var(--rose); margin: 0; line-height: 1.1; }
.scratch__date { font-family: var(--f-serif); font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 700; color: var(--maroon); margin: 0; }
.scratch__time { font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-d); margin: 6px 0 0; }
.scratch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .8s ease; z-index: 2; }
.scratch__canvas.done { opacity: 0; pointer-events: none; }
.scratch__hint { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: clamp(10px, 2.5vw, 24px); margin-top: 20px; }
.cd { padding: clamp(18px, 3vw, 28px) 8px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.cd::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 50%); pointer-events: none; }
.cd__num { font-family: var(--f-serif); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; color: var(--maroon); font-variant-numeric: tabular-nums; }
.cd__lbl { margin-top: 8px; font-size: clamp(.65rem, 1.8vw, .8rem); text-transform: uppercase; letter-spacing: .2em; color: var(--gold-d); }
.just-married { font-family: var(--f-script); font-size: clamp(3.5rem, 10vw, 6rem); color: var(--rose); margin: 10px 0 0; animation: pop .8s ease both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Story */
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.story-card { padding: 30px 26px; text-align: center; position: relative; transition: transform .3s, box-shadow .3s; }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.story-card__num { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-family: var(--f-serif); color: #fff; background: linear-gradient(135deg, var(--blush), var(--rose)); box-shadow: 0 6px 14px rgba(var(--rose-rgb), .3); }
.story-card h3 { font-family: var(--f-serif); font-size: 1.3rem; margin: 0 0 8px; color: var(--maroon); }
.story-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.masonry { columns: 3 260px; column-gap: 18px; }
.m-item { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); background: var(--beige); border: 0; padding: 0; width: 100%; display: block; }
.m-item img { width: 100%; height: auto; transition: transform .6s ease; }
.m-item:hover img { transform: scale(1.05); }
.m-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 16px 12px; color: #fff; font-family: var(--f-serif); font-size: .95rem; text-align: left; background: linear-gradient(transparent, rgba(74, 30, 50, .65)); opacity: 0; transform: translateY(8px); transition: .35s; }
.m-item:hover figcaption, .m-item:focus-visible figcaption { opacity: 1; transform: none; }
.m-item--featured { border: 4px solid #fff; outline: 2px solid var(--gold); }
.m-item--featured figcaption { opacity: 1; transform: none; font-family: var(--f-script); font-size: 1.8rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(40, 18, 28, .92); display: flex; align-items: center; justify-content: center; padding: 60px 70px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; touch-action: pan-y; }
.lightbox img { max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pop .35s ease; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { color: #fff; font-family: var(--f-serif); margin-top: 12px; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); } .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* Timeline */
.section--events { background: linear-gradient(180deg, transparent, rgba(var(--lav-rgb), .22) 20%, rgba(var(--blush-rgb), .22) 80%, transparent); }
.timeline-wrap { position: relative; margin-top: 40px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 92px; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: rgba(var(--gold-rgb), .25); border-radius: 3px; }
.timeline__line span { position: absolute; inset: 0 0 auto; height: 100%; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--blush), var(--gold), var(--lavender)); border-radius: 3px; }
.t-item { position: relative; padding: 0 0 36px; min-width: 0; }
.t-item:nth-child(odd) { grid-column: 1; }
.t-item:nth-child(even) { grid-column: 2; }
.t-item__dot { position: absolute; top: 28px; right: -59px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(var(--blush-rgb), .6); display: grid; place-items: center; color: var(--rose); font-size: 12px; z-index: 1; }
.t-item:nth-child(even) .t-item__dot { left: -59px; right: auto; }
.t-item::after { content: ""; position: absolute; top: 40px; right: -46px; width: 40px; height: 2px; background: linear-gradient(90deg, rgba(var(--gold-rgb), .7), transparent); transform: scaleX(-1); }
.t-item:nth-child(even)::after { right: auto; left: -46px; transform: none; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .7)); }
.t-card { overflow: hidden; transition: transform .35s, box-shadow .35s; }
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.t-card__img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; background: var(--beige); }
.t-card__body { padding: 22px 24px 26px; }
.t-card__title { font-family: var(--f-script); font-size: 2.6rem; font-weight: 400; margin: 0; line-height: 1.1; color: var(--maroon); }
.t-card__blurb { margin: 4px 0 14px; color: var(--ink-soft); font-size: .95rem; }
.t-meta { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .93rem; }
.t-meta li { display: flex; gap: 10px; align-items: flex-start; }
.t-meta svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-d); }
.t-meta strong { font-weight: 600; }
.dress { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.dress > span:not(.dress__sw) { flex: 1 1 150px; min-width: 0; }
.dress__sw { display: inline-flex; }
.dress__sw i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.dress__sw i:first-child { margin-left: 0; }
.tba { display: inline-block; padding: 8px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--peach), var(--blush)); color: var(--maroon); font-weight: 500; font-size: .9rem; }
.t-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t-actions .btn { padding: 9px 16px; font-size: .84rem; }
.cal-menu { position: relative; }
.cal-menu__list { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px; display: none; }
.cal-menu.open .cal-menu__list { display: block; }
.cal-menu__list a, .cal-menu__list button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 10px; border: 0; background: none; text-decoration: none; color: var(--ink); font-size: .88rem; cursor: pointer; }
.cal-menu__list a:hover, .cal-menu__list button:hover { background: rgba(var(--blush-rgb), .4); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__line { left: 18px; }
  .t-item, .t-item:nth-child(odd), .t-item:nth-child(even) { grid-column: 1; grid-row: auto !important; padding: 0 0 32px 50px; }
  .t-item__dot, .t-item:nth-child(even) .t-item__dot { left: 5px; right: auto; }
  .t-item::after { display: none; }
}

/* Photo booth */
.booth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: clamp(16px, 3vw, 30px); }
.booth__stage { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--blush), var(--lavender)); aspect-ratio: 1; box-shadow: var(--shadow); }
.booth__stage canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.booth__empty { position: absolute; left: 50%; top: 44%; transform: translateX(-50%); margin: 0; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: .9rem; white-space: nowrap; pointer-events: none; }
.booth__controls { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ctrl-label { font-family: var(--f-serif); font-weight: 600; margin: 16px 0 8px; }
.ctrl-label small { font-family: var(--f-sans); font-weight: 400; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid rgba(var(--gold-rgb), .45); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .85rem; transition: .2s; }
.chip:hover { border-color: var(--gold); background: #fff; }
.chip[aria-checked="true"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #fff; border-color: transparent; }
.photo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo-wall figure { margin: 0; background: #fff; padding: 8px 8px 22px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); transition: transform .3s; }
.photo-wall figure:hover { transform: rotate(0) scale(1.04); }
.photo-wall img { border-radius: 3px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.empty { color: var(--ink-soft); font-style: italic; text-align: center; grid-column: 1 / -1; }
@media (max-width: 860px) { .booth { grid-template-columns: 1fr; } }

/* RSVP */
.section--rsvp { background: linear-gradient(180deg, transparent, rgba(var(--peach-rgb), .28), transparent); }
.rsvp, .rsvp-thanks { padding: clamp(22px, 4vw, 40px); position: relative; }
.rsvp::before, .rsvp-thanks::before { content: ""; position: absolute; top: -10px; left: -10px; width: 120px; height: 120px; background: url(../assets/illustrations/floral-corner.svg) no-repeat center / contain; pointer-events: none; }
.rsvp::after, .rsvp-thanks::after { content: ""; position: absolute; bottom: -10px; right: -10px; width: 120px; height: 120px; background: url(../assets/illustrations/floral-corner.svg) no-repeat center / contain; transform: rotate(180deg); pointer-events: none; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; position: relative; z-index: 1; }
.field label, .field legend { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(var(--gold-rgb), .35); background: rgba(255, 255, 255, .85); transition: border .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .18); }
.field.invalid input, .field.invalid .phone { border-color: #D14361 !important; }
.phone { display: flex; align-items: stretch; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(var(--gold-rgb), .35); background: rgba(255, 255, 255, .85); }
.phone span { padding: 12px 12px; background: rgba(var(--beige-rgb), .8); font-weight: 500; }
.phone input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0; }
.err { display: block; color: #C0284F; font-size: .8rem; min-height: 1.1em; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(var(--gold-rgb), .45); background: rgba(255, 255, 255, .75); font-size: .9rem; transition: .2s; }
.pill input:checked + span { background: linear-gradient(135deg, var(--blush), #F3B3C6); border-color: var(--rose); color: var(--maroon); font-weight: 500; box-shadow: 0 4px 12px rgba(var(--rose-rgb), .18); }
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.attend-only[hidden] { display: none; }
.rsvp-thanks { text-align: center; }
.rsvp-thanks img { margin: 0 auto 6px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Guests */
.guest-count { font-family: var(--f-serif); font-size: 1.2rem; color: var(--ink-soft); }
.guest-count span { font-size: 2.8rem; font-weight: 700; color: var(--maroon); display: inline-block; min-width: 1.5ch; vertical-align: -6px; margin-right: 6px; }
.guest-wall { list-style: none; padding: 0; margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.guest-wall li { padding: 10px 20px 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow); font-family: var(--f-serif); display: flex; align-items: center; gap: 8px; animation: pop .5s ease both; border: 1px solid #fff; }
.guest-wall li::before { content: "♥"; color: var(--heart); }

/* Venues */
.tabs { display: flex; justify-content: center; gap: 8px; margin: 26px auto 26px; flex-wrap: wrap; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.tab { border: 0; padding: 11px 24px; border-radius: 999px; cursor: pointer; background: transparent; font-weight: 500; transition: .25s; }
.tab[aria-selected="true"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #fff; box-shadow: 0 6px 16px rgba(var(--gold-rgb), .35); }
.venue { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.venue[hidden] { display: none; }
.venue__map { min-height: 380px; position: relative; background: linear-gradient(135deg, var(--beige), #FBEFF2); }
.venue__map::before { content: "📍 Loading map…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; }
.venue__map iframe { position: relative; z-index: 1; }
.venue__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.venue__info { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.venue__info h3 { font-family: var(--f-serif); font-size: 1.6rem; margin: 4px 0 10px; color: var(--maroon); }
.venue__when { font-weight: 500; color: var(--gold-d); margin: 0 0 12px; }
.venue__addr { color: var(--ink-soft); margin: 0 0 22px; }
@media (max-width: 560px) { .tabs { flex-wrap: nowrap; gap: 4px; } .tab { padding: 10px 16px; font-size: .9rem; } }
@media (max-width: 860px) { .venue { grid-template-columns: 1fr; } .venue__map, .venue__map iframe { min-height: 280px; } }

/* Hashtag */
.section--hashtag { background: linear-gradient(135deg, rgba(var(--blush-rgb), .55), rgba(var(--lav-rgb), .55) 50%, rgba(var(--peach-rgb), .55)); overflow: hidden; }
.section--hashtag::before, .section--hashtag::after { content: "♥"; position: absolute; font-size: 180px; color: rgba(255, 255, 255, .35); top: -30px; left: 4%; transform: rotate(-15deg); }
.section--hashtag::after { left: auto; right: 4%; top: auto; bottom: -40px; transform: rotate(15deg); }
.hashtag { word-spacing: .1em; font-family: var(--f-script); font-size: clamp(2.4rem, 9vw, 6rem); line-height: 1.2; margin: 6px 0 12px; word-break: break-word;
  background: linear-gradient(90deg, var(--maroon), var(--rose), var(--gold-d), var(--rose), var(--maroon)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 6s linear infinite; }
.hashtag--sm { font-size: clamp(2rem, 6vw, 3rem); }
@keyframes shine { to { background-position: 200% center; } }

/* Travel */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.info-card { padding: 28px 26px; transition: transform .3s, box-shadow .3s; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.info-card__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(135deg, var(--blush), var(--lavender)); color: var(--maroon); }
.info-card__icon svg { width: 28px; height: 28px; }
.info-card h3 { font-family: var(--f-serif); margin: 0 0 8px; font-size: 1.3rem; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.hotel-card { padding: 24px; border-style: dashed; border-color: rgba(var(--gold-rgb), .6); }
.hotel-card .badge { display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--peach); color: var(--maroon); margin-bottom: 10px; }
.hotel-card h3 { font-family: var(--f-serif); margin: 0 0 4px; font-size: 1.15rem; }
.hotel-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .cards-3, .story-cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { border-radius: 18px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: var(--f-serif); font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--maroon); font-size: 1.2rem; transition: transform .3s; font-family: var(--f-sans); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq__a p { margin: 0; }

/* Guestbook */
.gb-form { max-width: 640px; margin: 30px auto 40px; padding: 26px; }
.gb-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.gb-wall > * { flex: 1 1 260px; max-width: 340px; }
.gb-card { padding: 22px 22px 18px; position: relative; animation: floatcard 7s ease-in-out infinite; animation-delay: var(--d, 0s); background: rgba(255, 255, 255, .7); }
.gb-card:nth-child(3n+1) { background: linear-gradient(135deg, rgba(var(--blush-rgb), .55), rgba(255, 255, 255, .8)); }
.gb-card:nth-child(3n+2) { background: linear-gradient(135deg, rgba(var(--lav-rgb), .55), rgba(255, 255, 255, .8)); }
.gb-card:nth-child(3n) { background: linear-gradient(135deg, rgba(var(--peach-rgb), .6), rgba(255, 255, 255, .8)); }
.gb-card::before { content: "“"; position: absolute; top: -8px; left: 14px; font-family: var(--f-serif); font-size: 4rem; color: var(--gold); opacity: .5; line-height: 1; }
.gb-card p { margin: 10px 0 12px; font-size: .95rem; }
.gb-card cite { font-family: var(--f-script); font-size: 1.6rem; font-style: normal; color: var(--maroon); }
@keyframes floatcard { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }

/* Thank you */
.wreath { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin: 20px auto 30px; }
.wreath img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid #fff; outline: 3px solid var(--gold); outline-offset: 4px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.wreath::before { content: ""; position: absolute; inset: -18%; background: url(../assets/illustrations/wreath.svg) no-repeat center / contain; z-index: 2; pointer-events: none; }
.wreath::after { content: ""; position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--blush-rgb), .9), transparent 70%); z-index: 0; }
.thanks-note { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; }
.signoff { font-size: 1rem; color: var(--ink-soft); }
.signoff span { display: block; font-family: var(--f-script); font-size: 2.4rem; color: var(--maroon); }
.footer { text-align: center; padding: 34px 20px 40px; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid rgba(var(--gold-rgb), .25); background: rgba(255, 255, 255, .4); }
.footer p { margin: 4px 0; }
.credit span { color: var(--heart); }

/* Toast, canvases */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 40px); opacity: 0; z-index: 300; padding: 12px 22px; border-radius: 999px; background: rgba(74, 46, 58, .92); color: #fff; font-size: .92rem; transition: .35s; pointer-events: none; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
#petals, #confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#petals { z-index: 1; } #confetti { z-index: 400; }
main, .footer { position: relative; z-index: 2; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Section tints & decoration */
.section--guests { background: linear-gradient(180deg, transparent, rgba(var(--lav-rgb), .25), transparent); }
.section--travel { background: linear-gradient(180deg, transparent, rgba(var(--beige-rgb), .5) 30%, rgba(var(--beige-rgb), .5) 70%, transparent); }
.section--guestbook { background: linear-gradient(180deg, transparent, rgba(var(--blush-rgb), .28), transparent); }
.section--story::before, .section--thanks::before, .section--booth::before, .section--faq::before { content: ""; position: absolute; top: 10px; left: 0; width: clamp(90px, 12vw, 170px); aspect-ratio: 1; background: url(../assets/illustrations/floral-corner.svg) no-repeat center / contain; opacity: .7; pointer-events: none; }
.section--story::after, .section--thanks::after, .section--booth::after, .section--faq::after { content: ""; position: absolute; bottom: 10px; right: 0; width: clamp(90px, 12vw, 170px); aspect-ratio: 1; background: url(../assets/illustrations/floral-corner.svg) no-repeat center / contain; transform: rotate(180deg); opacity: .7; pointer-events: none; }

/* "Opening soon" cards (shown until BACKEND_URL is configured) */
.soon-card { position: relative; text-align: center; max-width: 640px; margin: 24px auto 0; padding: clamp(30px, 5vw, 48px) clamp(22px, 5vw, 48px); overflow: hidden; }
.soon-card::before { content: ""; position: absolute; top: -10px; left: -10px; width: 110px; height: 110px; background: url(../assets/illustrations/floral-corner.svg) no-repeat center / contain; pointer-events: none; }
.soon-card::after { content: ""; position: absolute; bottom: -10px; right: -10px; width: 110px; height: 110px; background: url(../assets/illustrations/floral-corner.svg) no-repeat center / contain; transform: rotate(180deg); pointer-events: none; }
.soon-card img { margin: 0 auto 8px; }
.soon-card__title { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.2rem); line-height: 1.15; margin: 0 0 10px; color: var(--maroon); word-spacing: .12em; }
.soon-card p { color: var(--ink-soft); margin: 0 auto 10px; max-width: 46ch; position: relative; z-index: 1; }
.soon-card__meta { font-size: .88rem; letter-spacing: .04em; }
.soon-card p.soon-card__heart, .soon-card__heart { font-size: 2rem; color: var(--heart); margin: 0 0 4px !important; animation: floaty 4s ease-in-out infinite; }
.soon-card--sm { max-width: 560px; }

/* Gallery layouts for very few photos (masonry only kicks in at 3+) */
.masonry.gallery--single, .masonry.gallery--pair { columns: auto; display: flex; justify-content: center; align-items: flex-start; gap: clamp(18px, 3vw, 32px); flex-wrap: wrap; }
.gallery--single .m-item { max-width: 440px; margin: 0; }
.gallery--pair .m-item { flex: 1 1 280px; max-width: 400px; margin: 0; }
.gallery--single .m-item--featured, .gallery--pair .m-item--featured { box-shadow: 0 0 0 10px rgba(255, 255, 255, .6), 0 0 60px 10px rgba(var(--blush-rgb), .8), var(--shadow-lg); }
.gallery--pair .m-item:not(.m-item--featured) { margin-top: clamp(0px, 4vw, 48px); }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
