:root {
  --green: #123e32;
  --green-deep: #09291f;
  --ivory: #f7f0df;
  --ivory-warm: #efe1c3;
  --marigold: #e8a51b;
  --magenta: #a52262;
  --gold: #a9843e;
  --ink: #17251f;
  --surface: #f7f0df;
  --story-surface: #e9d5ad;
  --rsvp-surface: #123e32;
  --hero-overlay: rgba(7, 29, 23, 0.45);
  --text-override: var(--ink);
  --script: Allura, "Segoe Script", cursive;
  --display: "Playfair Display", "Iowan Old Style", Georgia, "Noto Serif Gurmukhi", serif;
  --serif: "Libre Baskerville", Georgia, "Noto Serif Gurmukhi", serif;
  --sans: Jost, "Segoe UI", "Noto Sans Gurmukhi", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(14, 43, 34, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--green-deep); }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: var(--serif); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body.intro-locked { overflow: hidden; }
button, input, a { font: inherit; }
button, input, .eyebrow, .hero-venue, .scroll-cue, .family-ledger span, .event-meta, .event-map, .calendar-actions, .countdown small, .site-footer, .nav-panel { font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; background: var(--ivory); color: var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--magenta); font-size: .67rem; font-weight: 700; letter-spacing: .24em; line-height: 1.5; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; flex: 0 0 auto; background: currentColor; opacity: .72; }
h1, h2, h3, p { text-wrap: balance; }
h2 { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 5.2vw, 5.2rem); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; }

.hero { position: relative; width: 100%; height: 100svh; min-height: 100dvh; overflow: hidden; display: grid; place-items: center; isolation: isolate; color: var(--ivory); background: var(--green-deep); }
.hero::before { content: ""; position: absolute; z-index: -3; inset: -4%; background: linear-gradient(rgba(5,27,20,.55), rgba(5,27,20,.7)), url("../phulkari-nocturne/video/flow/references/pv-flow-hero-reference-1080x1920.png") center/cover; filter: blur(24px) saturate(.68); transform: scale(1.1); }
.hero-film { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: var(--green-deep); }
.hero-fallback { position: absolute; z-index: -2; inset: 0; opacity: 0; background: url("../phulkari-nocturne/video/flow/references/pv-flow-hero-reference-1080x1920.png") center/cover no-repeat; transition: opacity .6s ease; }
.hero.video-failed .hero-film, .hero.reduced-opening .hero-film { opacity: 0; }
.hero.video-failed .hero-fallback, .hero.reduced-opening .hero-fallback { opacity: 1; }
.hero-scrim { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,22,17,.12) 35%, var(--hero-overlay) 72%, rgba(5,22,17,.74) 100%); opacity: 0; transition: opacity 1.1s ease; }
.hero.hero-ready .hero-scrim { opacity: 1; }
.hero-stitch { position: absolute; z-index: 1; top: 0; bottom: 0; width: 14px; opacity: 0; background: repeating-linear-gradient(45deg, var(--marigold) 0 5px, var(--magenta) 5px 10px, var(--ivory) 10px 12px, var(--green) 12px 18px); mix-blend-mode: screen; pointer-events: none; transition: opacity .8s ease; }
.hero.hero-ready .hero-stitch { opacity: .68; }
.hero-stitch-left { left: 0; }
.hero-stitch-right { right: 0; transform: scaleX(-1); }
.curtain-trigger { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; color: var(--ivory); background: transparent; cursor: pointer; }
.curtain-monogram { position: absolute; left: 50%; top: 47%; width: min(72vw, 390px); height: clamp(170px, 22vw, 220px); display: flex; align-items: center; justify-content: center; gap: .02em; color: var(--ivory); transform: translate(-50%, -50%); font-family: var(--script); font-size: clamp(6rem, 13vw, 8rem); line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,.88), 0 0 36px rgba(232,165,27,.18); }
.curtain-initial { display: inline-block; font-weight: 400; }
.curtain-initial-left { animation: curtainInitialLeft 1.05s .18s cubic-bezier(.16,1,.3,1) both; }
.curtain-initial-right { animation: curtainInitialRight 1.05s .18s cubic-bezier(.16,1,.3,1) both; }
.curtain-ampersand { display: inline-block; margin: 0 -.03em; color: var(--marigold); font-family: var(--display); font-size: .34em; font-weight: 400; font-style: italic; animation: curtainAmpersand .7s .72s cubic-bezier(.16,1,.3,1) both; }
@keyframes curtainInitialLeft { from { opacity: 0; filter: blur(7px); transform: translate(-72px, -.2em); } to { opacity: 1; filter: blur(0); transform: translate(0, -.2em); } }
@keyframes curtainInitialRight { from { opacity: 0; filter: blur(7px); transform: translate(72px, .2em); } to { opacity: 1; filter: blur(0); transform: translate(0, .2em); } }
@keyframes curtainAmpersand { from { opacity: 0; transform: scale(.35) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.curtain-prompt { position: absolute; left: 50%; bottom: max(96px, calc(env(safe-area-inset-bottom) + 82px)); display: inline-flex; align-items: center; gap: 13px; padding: 12px 17px; border: 1px solid rgba(247,240,223,.38); background: rgba(5,27,20,.34); box-shadow: 0 10px 35px rgba(0,0,0,.2); transform: translateX(-50%); backdrop-filter: blur(5px); white-space: nowrap; text-transform: uppercase; font-family: var(--sans); font-size: .63rem; font-weight: 600; letter-spacing: .22em; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.curtain-trigger i { width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 5px rgba(232,165,27,.15); animation: tapPulse 1.8s ease-in-out infinite; }
.hero.is-playing .curtain-trigger, .hero.hero-ready .curtain-trigger { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes tapPulse { 0%,100% { transform: scale(.8); opacity: .65; } 50% { transform: scale(1.15); opacity: 1; } }
.hero-copy { position: absolute; z-index: 2; left: 50%; bottom: max(198px, calc(env(safe-area-inset-bottom) + 184px)); width: min(88vw, 680px); text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 0); transition: opacity .2s ease, visibility .2s; text-shadow: 0 2px 22px rgba(0,0,0,.68); }
.hero.hero-ready .hero-copy { opacity: 1; visibility: visible; }
.hero-copy .eyebrow { justify-content: center; color: var(--marigold); }
.hero-copy h1 { display: grid; justify-items: center; gap: 0; margin: 0; font-family: var(--script); font-size: clamp(3.5rem, 12vw, 6.45rem); font-weight: 400; line-height: .68; letter-spacing: 0; }
.hero-copy h1 b { margin: .15em 0 .1em; color: var(--marigold); font-family: var(--display); font-size: .3em; font-weight: 400; font-style: italic; }
.hero-date { margin: 29px 0 8px; font-family: var(--serif); font-size: clamp(1.25rem, 4vw, 1.65rem); font-style: italic; }
.hero-venue { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy > .eyebrow, .hero-copy > .hero-date, .hero-copy > .hero-venue, .hero-copy h1 > * { opacity: 0; }
.hero.hero-ready .hero-copy .eyebrow { animation: heroCopyRise .72s .08s cubic-bezier(.2,.8,.2,1) forwards; }
.hero.hero-ready .hero-copy h1 span:first-child { animation: heroNameReveal .95s .2s cubic-bezier(.16,1,.3,1) forwards; }
.hero.hero-ready .hero-copy h1 b { animation: heroCopyRise .7s .36s cubic-bezier(.2,.8,.2,1) forwards; }
.hero.hero-ready .hero-copy h1 span:last-child { animation: heroNameReveal .95s .48s cubic-bezier(.16,1,.3,1) forwards; }
.hero.hero-ready .hero-date { animation: heroCopyRise .78s .72s cubic-bezier(.2,.8,.2,1) forwards; }
.hero.hero-ready .hero-venue { animation: heroCopyRise .78s .86s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes heroNameReveal { from { opacity: 0; filter: blur(9px); transform: translateY(28px) scale(.96); } to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
@keyframes heroCopyRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; color: var(--ivory); opacity: 0; visibility: hidden; transform: translateX(-50%); transition: opacity .7s ease; text-decoration: none; text-transform: uppercase; white-space: nowrap; font-size: .65rem; font-weight: 700; letter-spacing: .16em; }
.hero.invite-open .scroll-cue { opacity: 1; visibility: visible; }
.scroll-cue i { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); animation: cue 1.7s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: rotate(45deg) translate(0); } 50% { transform: rotate(45deg) translate(4px,4px); } }

main { position: relative; background: var(--surface); }
.section { position: relative; padding: clamp(86px, 11vw, 170px) max(24px, calc((100vw - 1240px) / 2)); }
.textile-surface { background-color: var(--surface); background-image: url("../phulkari-nocturne/svg/pv-ivory-phulkari-paper.svg"); background-size: 256px; }
.section-heading { width: min(100%, 790px); margin-bottom: clamp(52px, 7vw, 90px); }
.section-heading > p:last-child { max-width: 620px; margin: 28px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.55; }
.families { position: relative; min-height: 900px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; background: linear-gradient(rgba(247,240,223,.16), rgba(247,240,223,.08)), url("../phulkari-nocturne/raster/pv-love-note-haveli-balconies-2048x1948.webp") center/cover no-repeat; }
.families::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(247,240,223,.26) 0 30%, transparent 68%); }
.stitch-rail { position: absolute; z-index: 2; top: 0; bottom: auto; left: 50%; width: min(68vw, 760px); height: 8px; transform: translateX(-50%); background: repeating-linear-gradient(90deg, var(--green) 0 28px, var(--marigold) 28px 48px, var(--magenta) 48px 66px, var(--gold) 66px 76px); }
.family-copy { position: relative; z-index: 1; width: min(100%, 850px); max-width: none; margin: auto; }
.family-copy .eyebrow { justify-content: center; }
.family-copy h2 { max-width: 820px; margin-inline: auto; }
.invitation-line { max-width: 680px; margin: 40px auto; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.72; }
.family-ledger { width: min(100%, 760px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0 auto; padding: 28px 0; border-top: 1px solid rgba(23,37,31,.27); border-bottom: 1px solid rgba(23,37,31,.27); }
.family-ledger div { display: grid; justify-items: center; gap: 9px; }
.family-ledger h3 { margin: 0 0 5px; color: var(--green); font-family: var(--script); font-size: clamp(2.7rem, 5vw, 4rem); font-weight: 400; line-height: .9; }
.family-ledger span { color: var(--magenta); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.family-ledger strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.32; }
.blessing { max-width: 620px; margin: 38px auto 0; color: var(--green); font-family: var(--serif); font-style: italic; font-size: 1.14rem; }

.programme { overflow: hidden; color: var(--ivory); background: var(--green); }
.programme .eyebrow { color: var(--marigold); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(24px, 2.8vw, 38px); }
.event-card { position: relative; min-height: 0; display: flex; flex-direction: column; color: var(--ivory); }
.event-image-frame { position: relative; width: min(82vw, 320px); overflow: hidden; align-self: center; margin-inline: auto; padding: 15px; border: 1px solid var(--gold); border-radius: 9px; background: linear-gradient(135deg, rgba(232,165,27,.2) 0 22px, transparent 22px) top left/50px 50px no-repeat, linear-gradient(225deg, rgba(165,34,98,.16) 0 22px, transparent 22px) top right/50px 50px no-repeat, var(--ivory); box-shadow: 0 20px 42px rgba(3,20,15,.32), inset 0 0 0 6px var(--ivory), inset 0 0 0 7px rgba(169,132,62,.56); }
.event-image-frame::before { content: ""; position: absolute; z-index: 4; inset: 8px; border: 1px solid rgba(169,132,62,.68); border-radius: 5px; pointer-events: none; }
.event-image-frame::after { content: ""; position: absolute; z-index: 6; top: 6px; left: 50%; width: 14px; height: 14px; border: 2px solid var(--marigold); background: var(--magenta); box-shadow: 0 0 0 4px var(--ivory); transform: translateX(-50%) rotate(45deg); pointer-events: none; }
.event-card:nth-child(even) .event-image-frame::after { background: var(--green); border-color: var(--magenta); }
.event-card img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; border: 5px solid var(--green); border-radius: 48% 48% 5px 5px / 10% 10% 5px 5px; outline: 1px solid var(--gold); outline-offset: -4px; box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px rgba(169,132,62,.74), 0 12px 24px rgba(18,62,50,.17); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .75s ease; }
.event-card.is-visible:hover img { transform: scale(1.012); filter: saturate(1.06); }
.event-card-content { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 12px 8px; text-align: center; }
.event-card h3 { margin: 0 0 12px; color: var(--marigold); font-family: var(--display); font-size: clamp(1.7rem, 2.35vw, 2.4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.event-meta { width: min(100%, 290px); display: grid; gap: 6px; margin: 0; padding: 12px 0; border-top: 1px solid rgba(232,165,27,.48); border-bottom: 1px solid rgba(232,165,27,.48); color: var(--ivory); font-size: .69rem; font-weight: 600; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }
.event-map { min-height: 40px; display: inline-flex; align-items: center; gap: 10px; margin-top: 11px; border-bottom: 1px solid var(--gold); color: var(--marigold); text-decoration: none; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.event-map::after { content: "↗"; color: var(--magenta); font-size: .95rem; }

.story-canvas { position: relative; min-height: 1100px; overflow: hidden; display: grid; grid-template-columns: minmax(280px,.72fr) minmax(500px,1.25fr); gap: clamp(44px, 7vw, 110px); padding: clamp(90px, 11vw, 170px) max(24px, calc((100vw - 1240px) / 2)); background: var(--story-surface) url("../phulkari-nocturne/raster/pv-couple-mustard-tree-canvas-1438x4096.webp") center/cover; }
.story-canvas::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,240,223,.94) 0 38%, rgba(247,240,223,.42) 65%, rgba(18,62,50,.15)); }
.story-heading, .story-visual, .photo-collage { position: relative; z-index: 1; }
.story-heading { align-self: center; max-width: 560px; }
.love-note { margin: 38px 0 0; padding: 30px 0 0; border-top: 1px solid rgba(23,37,31,.26); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); font-style: italic; line-height: 1.58; }
.story-visual { width: min(100%, 620px); align-self: center; justify-self: center; margin: 0; padding: clamp(10px, 1.4vw, 17px); border: 1px solid rgba(169,132,62,.58); background: rgba(247,240,223,.9); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.story-visual::before, .story-visual::after { content: ""; position: absolute; z-index: 2; width: 34px; height: 34px; border-color: var(--magenta); border-style: solid; pointer-events: none; }
.story-visual::before { top: 22px; left: 22px; border-width: 2px 0 0 2px; }
.story-visual::after { right: 22px; bottom: 22px; border-width: 0 2px 2px 0; }
.story-visual img { width: 100%; height: clamp(440px, 62vw, 780px); object-fit: cover; object-position: center; }
.photo-collage { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: repeat(12, 52px); gap: 18px; align-self: center; }
.photo-frame { position: relative; margin: 0; overflow: hidden; border: 8px solid var(--ivory); background: var(--ivory-warm); box-shadow: var(--shadow); }
.photo-frame::before, .photo-frame::after { content: ""; position: absolute; z-index: 2; width: 24px; height: 24px; border-color: var(--marigold); border-style: solid; pointer-events: none; }
.photo-frame::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.photo-frame::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame:nth-child(1) { grid-row: 1 / 8; }
.photo-frame:nth-child(2) { grid-row: 2 / 6; }
.photo-frame:nth-child(3) { grid-row: 8 / 13; }
.photo-frame:nth-child(4) { grid-row: 6 / 12; }
.story-botanical { position: absolute; z-index: 0; bottom: -140px; left: 20%; width: 340px; opacity: .32; mix-blend-mode: multiply; transform: rotate(-8deg); }

.gallery-section { overflow: hidden; background-color: var(--surface); background-image: radial-gradient(circle at 10% 16%, rgba(232,165,27,.12), transparent 24%), radial-gradient(circle at 88% 84%, rgba(165,34,98,.08), transparent 28%), url("../phulkari-nocturne/svg/pv-ivory-phulkari-paper.svg"); background-size: auto, auto, 300px; }
.gallery-section .section-heading { text-align: center; margin-inline: auto; }
.gallery-section .section-heading .eyebrow { justify-content: center; }
.gallery-section .photo-collage { width: min(100%, 980px); grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: auto; margin-inline: auto; }
.gallery-section .photo-frame { grid-row: auto !important; aspect-ratio: 4 / 5; }
.gallery-section .photo-collage[data-count="1"] { width: min(100%, 520px); grid-template-columns: 1fr; }

.venue-section { display: grid; place-items: center; overflow: hidden; background: linear-gradient(rgba(9,41,31,.52), rgba(9,41,31,.66)), url("../phulkari-nocturne/raster/pv-transition-phulkari-window-2048x1795.webp") center/cover no-repeat; }
.venue-card { width: min(100%, 720px); padding: clamp(44px, 7vw, 82px); border: 1px solid rgba(247,240,223,.62); color: var(--ivory); background: rgba(9,41,31,.78); box-shadow: 0 26px 70px rgba(3,20,15,.35); text-align: center; backdrop-filter: blur(5px); }
.venue-card .eyebrow { justify-content: center; color: var(--marigold); }
.venue-name { margin: 32px 0 4px; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.venue-location { margin: 0; color: rgba(247,240,223,.74); font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.venue-map { min-height: 48px; display: inline-flex; align-items: center; margin-top: 28px; padding: 0 20px; border: 1px solid var(--marigold); color: var(--green-deep); background: var(--marigold); font-family: var(--sans); font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

.guest-notes { background-color: #f2e4c9; background-image: radial-gradient(circle at 92% 8%, rgba(232,165,27,.14), transparent 32%), radial-gradient(circle at 8% 92%, rgba(165,34,98,.08), transparent 30%), linear-gradient(180deg, #faf3e5 0%, #efe0c2 100%); }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.note-card { min-height: 260px; padding: 34px; border: 1px solid rgba(169,132,62,.44); background: rgba(255,251,242,.9); box-shadow: 0 16px 38px rgba(59,42,20,.1); }
.note-card img { width: 54px; height: 54px; margin-bottom: 28px; }
.note-card h3 { margin: 0 0 13px; color: var(--green); font-family: var(--display); font-size: 1.68rem; font-weight: 500; letter-spacing: -.035em; }
.note-card p { margin: 0; line-height: 1.65; }
.transition-panel { position: relative; min-height: min(86vw, 860px); display: grid; place-items: center; overflow: hidden; color: var(--ivory); background: var(--green); }
.transition-panel picture, .transition-panel img { position: absolute; inset: 0; width: 100%; height: 100%; }
.transition-panel img { object-fit: cover; }
.transition-panel::after { content: ""; position: absolute; inset: 0; background: rgba(9,41,31,.33); }
.transition-panel p { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-size: clamp(2.65rem, 7vw, 6.5rem); line-height: .96; letter-spacing: -.05em; text-align: center; text-shadow: 0 4px 30px rgba(0,0,0,.5); }

.rsvp { isolation: isolate; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, rgba(247,240,223,.58), rgba(247,240,223,.76)), url("../phulkari-nocturne/raster/pv-love-note-haveli-balconies-2048x1948.webp") center/cover no-repeat; }
.rsvp::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at center, rgba(255,252,244,.14) 0 32%, transparent 68%); pointer-events: none; }
.rsvp::after { content: none; }
.rsvp-panel { position: relative; width: min(100%, 790px); margin: auto; padding: clamp(40px, 7vw, 82px); border: 1px solid rgba(169,132,62,.58); text-align: center; background: rgba(255,250,239,.88); box-shadow: 0 28px 80px rgba(59,42,20,.18), inset 0 0 0 7px rgba(247,240,223,.42); backdrop-filter: blur(5px); }
.rsvp-panel::before, .rsvp-panel::after { content: ""; position: absolute; width: 30px; height: 30px; border-color: var(--marigold); border-style: solid; opacity: .82; pointer-events: none; }
.rsvp-panel::before { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.rsvp-panel::after { right: 16px; bottom: 16px; border-width: 0 1px 1px 0; }
.rsvp-panel > img { width: 62px; margin: 0 auto 18px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); }
.rsvp-panel .eyebrow { justify-content: center; color: var(--magenta); }
.rsvp-panel > p:not(.eyebrow) { color: rgba(23,37,31,.78); }
.rsvp-stage { margin-top: 34px; }
.rsvp-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.choice-button { position: relative; min-width: 0; min-height: 96px; padding: 18px 14px; overflow: hidden; border: 1px solid rgba(18,62,50,.36); color: var(--green-deep); background: rgba(255,255,255,.46); cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.choice-button:hover { color: var(--ivory); border-color: var(--green); background: var(--green); transform: translateY(-3px); }
.choice-button strong, .choice-button span { display: block; }
.choice-button strong { line-height: 1.35; }
.choice-button span { margin-top: 7px; font-size: .72rem; line-height: 1.45; opacity: .78; }
.rsvp-form { display: grid; gap: 18px; text-align: left; }
.rsvp-form label { display: grid; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid rgba(18,62,50,.38); color: var(--ink); background: rgba(255,255,255,.62); border-radius: 0; }
.rsvp-actions { display: flex; gap: 12px; }
.rsvp-actions button { flex: 1; min-height: 50px; border: 1px solid var(--marigold); cursor: pointer; }
.rsvp-back { color: var(--green-deep); background: transparent; }
.rsvp-submit { color: var(--ivory); background: var(--green); font-weight: 700; }
.rsvp-note { min-height: 1.5em; margin: 12px 0 0; color: rgba(23,37,31,.7); font-size: .8rem; }
.rsvp-success { padding: 24px; border-top: 1px solid var(--marigold); border-bottom: 1px solid var(--marigold); font-family: var(--serif); font-size: 1.3rem; }
.edit-rsvp { min-height: 44px; margin-top: 14px; border: 0; border-bottom: 1px solid var(--green); color: var(--green); background: transparent; cursor: pointer; }

.calendar-band { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 28px; padding: clamp(72px, 8vw, 108px) max(24px, calc((100vw - 1240px) / 2)); color: var(--green-deep); background: linear-gradient(180deg, rgba(247,240,223,.79), rgba(247,240,223,.91)), url("../phulkari-nocturne/raster/pv-event-mehendi-vignette-724x974.webp") center 24%/cover no-repeat; text-align: center; }
.calendar-band::before { content: ""; position: absolute; z-index: -1; inset: 18px; border: 1px solid rgba(169,132,62,.42); pointer-events: none; }
.calendar-band::after { content: none; }
.calendar-band > div:first-child { display: grid; justify-items: center; }
.calendar-band .eyebrow { justify-content: center; margin-bottom: 12px; color: var(--magenta); }
.calendar-band h2 { max-width: 660px; font-size: clamp(2rem, 4vw, 4rem); }
.calendar-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.calendar-actions a { min-height: 52px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid var(--green); color: var(--green-deep); background: rgba(255,250,239,.62); text-decoration: none; text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .1em; transition: color .25s ease, background .25s ease, transform .25s ease; backdrop-filter: blur(3px); }
.calendar-actions a:first-child { color: var(--ivory); border-color: var(--green); background: var(--green); }
.calendar-actions a:hover { color: var(--green-deep); border-color: var(--marigold); background: var(--marigold); transform: translateY(-2px); }

.closing { min-height: 820px; display: grid; grid-template-columns: .7fr 1fr; align-items: center; gap: clamp(40px, 9vw, 150px); padding: clamp(90px, 12vw, 180px) max(24px, calc((100vw - 1240px) / 2)); color: var(--ivory); background: radial-gradient(circle at 22% 50%, rgba(232,165,27,.13), transparent 31%), var(--green-deep); }
.monogram { position: relative; display: grid; place-items: center; }
.monogram img { width: min(70vw, 390px); filter: brightness(1.6) saturate(.75); }
.monogram span { position: absolute; color: var(--ivory); font-family: var(--display); font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: .72; letter-spacing: -.08em; text-align: center; white-space: pre-line; }
.closing .eyebrow { color: var(--marigold); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(75px,1fr)); gap: 8px; margin: 45px 0; }
.countdown span { display: grid; padding: 16px 8px; border-top: 1px solid rgba(232,165,27,.5); border-bottom: 1px solid rgba(232,165,27,.5); text-align: center; }
.countdown strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; font-variant-numeric: tabular-nums; }
.countdown small { color: rgba(247,240,223,.66); text-transform: uppercase; font-size: .61rem; letter-spacing: .15em; }
.closing-blessing { max-width: 660px; color: rgba(247,240,223,.78); font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; }
.hashtag { color: var(--marigold); letter-spacing: .08em; }
.site-footer { padding: 25px; color: var(--ivory); background: #061a14; text-align: center; }
.site-footer a { display: inline-flex; align-items: center; gap: 10px; opacity: .75; text-decoration: none; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer img { width: 22px; height: 22px; object-fit: contain; }

.floating-controls { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.circle-button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(247,240,223,.48); border-radius: 50%; color: var(--ivory); background: rgba(9,41,31,.92); box-shadow: 0 10px 28px rgba(0,0,0,.2); cursor: pointer; }
#navToggle { gap: 4px; align-content: center; }
#navToggle span { width: 18px; height: 1px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
#navToggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#navToggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#navToggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-panel { position: absolute; right: calc(100% + 12px); bottom: 0; width: 220px; display: grid; padding: 10px; border: 1px solid rgba(232,165,27,.4); background: rgba(9,41,31,.97); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateX(8px); transition: .25s ease; }
.nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-panel a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(247,240,223,.1); color: var(--ivory); text-decoration: none; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.reveal-armed .reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal-armed .reveal-item.is-visible { opacity: 1; transform: none; }
.reveal-armed .event-card { opacity: 0; transform: translateX(-58px) scale(.97) rotate(-.45deg); transition: opacity .75s ease, transform 1s cubic-bezier(.16,1,.3,1); }
.reveal-armed .event-card:nth-child(even) { transform: translateX(58px) scale(.97) rotate(.45deg); }
.reveal-armed .event-card:nth-child(2), .reveal-armed .event-card:nth-child(5) { transition-delay: .12s; }
.reveal-armed .event-card:nth-child(3), .reveal-armed .event-card:nth-child(6) { transition-delay: .24s; }
.reveal-armed .event-card img { transform: scale(1.045); }
.reveal-armed .event-card.is-visible { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
.reveal-armed .event-card.is-visible img { transform: scale(1); }

@media (min-width: 780px) {
  .hero-film { width: 100%; left: 0; transform: none; object-fit: cover; box-shadow: none; }
  .hero-stitch { width: 16px; opacity: 0; }
  .hero.hero-ready .hero-stitch { opacity: .7; }
}

@media (max-width: 960px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-canvas { grid-template-columns: 1fr; }
  .story-canvas::before { background: rgba(247,240,223,.75); }
  .story-heading { max-width: 680px; }
  .photo-collage { width: min(100%, 720px); justify-self: center; }
  .calendar-band { justify-items: center; }
}

@media (max-width: 720px) {
  .hero-film { object-position: center; }
  .hero-stitch { width: 10px; }
  .eyebrow { letter-spacing: .18em; }
  .curtain-monogram { top: 45%; width: 82vw; height: 190px; font-size: clamp(5.3rem, 25vw, 6.8rem); }
  .curtain-prompt { bottom: max(92px, calc(env(safe-area-inset-bottom) + 78px)); }
  .hero-copy { bottom: max(176px, calc(env(safe-area-inset-bottom) + 160px)); }
  .hero-copy h1 { font-size: clamp(3.35rem, 16.5vw, 4.95rem); }
  .families { min-height: 780px; background-image: linear-gradient(rgba(247,240,223,.15), rgba(247,240,223,.08)), url("../phulkari-nocturne/raster/pv-love-note-haveli-balconies-1024x974.webp"); background-position: center; }
  .family-ledger { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 0; }
  .story-canvas { min-height: 0; }
  .photo-collage { grid-template-rows: repeat(13, 35px); gap: 10px; }
  .photo-frame { border-width: 5px; }
  .photo-frame:nth-child(1) { grid-row: 1 / 8; }
  .photo-frame:nth-child(2) { grid-row: 2 / 7; }
  .photo-frame:nth-child(3) { grid-row: 8 / 14; }
  .photo-frame:nth-child(4) { grid-row: 7 / 13; }
  .notes-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .note-card { min-height: 240px; padding: 24px 20px; }
  .note-card:nth-child(odd):last-child { width: calc(50% - 8px); grid-column: 1 / -1; justify-self: center; }
  .note-card img { width: 46px; height: 46px; margin-bottom: 20px; }
  .note-card h3 { font-size: 1.48rem; }
  .note-card p { font-size: .93rem; line-height: 1.55; }
  .transition-panel { min-height: 125vw; }
  .rsvp-panel { padding-inline: clamp(24px, 7vw, 42px); }
  .rsvp-choices { gap: 10px; }
  .choice-button { min-height: 106px; padding-inline: 9px; }
  .choice-button strong { font-size: .9rem; }
  .choice-button span { font-size: .66rem; }
  .calendar-actions { width: 100%; }
  .calendar-actions a { flex: 1; justify-content: center; }
  .closing { grid-template-columns: 1fr; text-align: center; }
  .closing-copy { display: grid; justify-items: center; }
  .countdown { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .countdown span { min-width: 0; padding: 13px 2px; }
  .countdown strong { font-size: clamp(1.55rem, 7.5vw, 2rem); line-height: 1.2; }
  .countdown small { font-size: clamp(.46rem, 2vw, .58rem); letter-spacing: .08em; white-space: nowrap; }
}

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