.wedding-program {
 margin:auto;width:min(100%,1440px);padding:0 clamp(22px,5.7vw,96px) clamp(48px,6vw,104px);
}
.event-run {--edge:#ad8249;}
.event-spread {
 position:relative;display:grid;grid-template-columns:minmax(0,1.36fr) minmax(0,.86fr);
 grid-template-areas:"art heading" "art notes";column-gap:clamp(34px,6.7vw,116px);
 padding-block:clamp(42px,5.2vw,88px);border-top:1px solid #c5a97d88;
}
.event-run:nth-child(even) > .event-spread {
 grid-template-columns:minmax(0,.86fr) minmax(0,1.36fr);
 grid-template-areas:"heading art" "notes art";
}
#sangeet {--edge:#795674} #varmala {--edge:#ae676b} #pheras {--edge:#8c6e44} #gala {--edge:#6d404e}
.event-heading {grid-area:heading;align-self:end;}
.event-heading .date-line {font:600 .79rem/1.4 var(--sans);color:#755638;letter-spacing:.17em;display:flex;align-items:center;gap:12px;}
.event-heading .date-line::before {content:"";width:28px;height:1px;background:var(--edge);}
.event-heading h3 {font:400 clamp(2.7rem,5.05vw,5.7rem)/1.03 var(--serif);letter-spacing:-.046em;margin:.24em 0 .18em;text-wrap:balance;}
.event-heading .event-time {font:italic clamp(1.47rem,2.3vw,2.2rem)/1.18 var(--italic);color:var(--rose);}
.event-visual {grid-area:art;position:relative;align-self:center;isolation:isolate;aspect-ratio:1.23;overflow:hidden;border-radius:2px;background:#e3d3bd;box-shadow:0 13px 32px -18px #45283166;}
.event-visual picture,.event-poster,.event-performance,.event-performance iframe {position:absolute;inset:0;width:100%;height:100%;border:0;display:block;}
.event-poster {object-fit:cover;}
.event-performance {pointer-events:none;opacity:0;}
.event-visual.ready .event-performance {opacity:1;}
.guest-notes {grid-area:notes;align-self:start;margin-top:20px;}
.guest-notes .event-description {font-family:Spectral,Georgia,serif;font-size:clamp(1rem,1.35vw,1.24rem);line-height:1.55;max-width:34ch;}
.guest-notes .attire-palette {margin-top:clamp(14px,1.7vw,26px);}
.art-actions {position:absolute;right:13px;bottom:13px;display:none;gap:6px;}
.has-scenes .art-actions {display:flex;}
.art-actions button,.viewer-bar button,.viewer-nav button {
 border:1px solid #f7ebe567;background:#2c1d2bd6;color:#fff7e9;border-radius:28px;padding:0 14px;min-width:44px;min-height:44px;
 font:500 .9rem var(--sans);display:inline-flex;justify-content:center;align-items:center;gap:6px;
}
.art-actions .open-art {padding:0;}
.open-art svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.art-actions button:hover,.art-actions button:focus-visible {background:#352234;}
#art-viewer {margin:auto;inset:0;max-width:100%;padding:clamp(12px,3vw,36px);background:#211820f5;}
#art-viewer[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
.viewer-bar,.viewer-nav {display:flex;align-items:center;justify-content:space-between;gap:15px;}
.viewer-nav {justify-content:center;} .viewer-bar h2 {font-size:clamp(1.3rem,4vw,2.8rem);}
.viewer-image {max-width:100%;width:100%;height:100%;object-fit:contain;}
@media (max-width:740px) {
 .wedding-program {padding-inline:clamp(18px,5vw,34px);padding-bottom:35px;}
 .event-spread,.event-run:nth-child(even) > .event-spread {grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "art" "notes";padding:32px 0;gap:0;}
 .event-heading {margin-bottom:17px;}
 .event-heading .date-line {font-size:.77rem;}
 .event-heading h3 {font-size:clamp(2.1rem,8vw,3.7rem);margin:.13em 0 .12em;}
 .event-heading .event-time {font-size:clamp(1.3rem,5vw,1.8rem);}
 .event-visual {aspect-ratio:1/1.08;width:100%;}
 .guest-notes {margin-top:15px;}
 .guest-notes .event-description {max-width:43ch;font-size:1.05rem;line-height:1.48;}
 .guest-notes .attire-palette {margin-top:11px;}
 .guest-notes .attire-palette span {width:32px;}
 .art-actions {bottom:9px;right:9px;}
}
@media print {
 .wedding-program{padding:0}
 .event-spread,.event-run:nth-child(even) > .event-spread{display:grid;grid-template-columns:140px 1fr;grid-template-areas:"art heading" "art notes";padding:10px 0;break-inside:avoid;}
 .event-poster{display:block}.event-performance,.art-actions{display:none!important}
 .event-heading h3{font-size:24px}.guest-notes{margin:2px 0;}
}

/* One stage holds every celebration. Each is a quiet page that dissolves into the next,
   with its painted set reduced to soft light behind the couple. */
#haldi   {--page:#fbf3e0;--accent:#8a4a12;}
#sangeet {--page:#f5eff4;--accent:#553a78;}
#varmala {--page:#fbefea;--accent:#8b3f58;}
#pheras  {--page:#fbeee1;--accent:#8c3423;}
#gala    {--page:#eff0f3;--accent:#243f63;}
#haldi .event-visual   {--set:url(haldi/backdrop.webp);}
#sangeet .event-visual {--set:url(sangeet/backdrop.webp);}
#varmala .event-visual {--set:url(varmala/backdrop.webp);}
#pheras .event-visual  {--set:url(pheras/backdrop.webp);}
#gala .event-visual    {--set:url(gala/backdrop.webp);}

@media screen and (prefers-reduced-motion:no-preference) {
 .has-scenes .wedding-program {
  --stage:calc(100svh - var(--mast));--track:clamp(560px,105svh,1050px);
  display:grid;grid-template:1fr / 1fr;width:100%;padding:0;
  height:calc(var(--stage) + var(--scenes,5) * var(--track));
 }
 .has-scenes .event-run {
  grid-area:1 / 1;align-self:start;position:sticky;top:var(--mast);height:var(--stage);
  background:var(--page);opacity:var(--in,0);visibility:hidden;pointer-events:none;
 }
 .has-scenes .event-run:first-child {--in:1;}
 .has-scenes .event-run.on {will-change:opacity;}
 /* The last celebration fades into the paper before the stage lets go. */
 .has-scenes .wedding-program::after {content:"";grid-area:1 / 1;align-self:end;z-index:1;height:clamp(90px,16svh,150px);background:linear-gradient(#fbf4e800,var(--paper) 94%);box-shadow:0 2px 0 var(--paper);pointer-events:none;}
 .has-scenes .event-run:first-child,.has-scenes .event-run.on {visibility:visible;}
 .has-scenes .event-run.front {pointer-events:auto;}
 /* A small spray hangs from the header in each top corner, as it does over the itinerary.
    It needs the header to hang from, so it shows only while the stage is pinned beneath it. */
 .has-scenes .event-run::before,.has-scenes .event-run::after {
  content:"";position:absolute;top:0;width:clamp(60px,16vw,170px);aspect-ratio:3 / 2;
  background:url(../art/rose-spray.webp) left bottom/contain no-repeat;opacity:0;transition:opacity .3s;pointer-events:none;
 }
 .has-scenes .pinned .event-run::before,.has-scenes .pinned .event-run::after {opacity:var(--words,1);}
 .has-scenes .event-run::before {left:0;transform:scaleY(-1);}
 .has-scenes .event-run::after {right:0;transform:scale(-1);}
 .has-scenes .event-run > .event-spread {
  z-index:1;display:grid;grid-template:auto auto minmax(0,1fr) / minmax(0,1fr);height:100%;padding:0;border:0;text-align:center;
 }
 .has-scenes .event-heading,.has-scenes .guest-notes {align-self:auto;margin:0;opacity:var(--words,1);}
 .has-scenes .event-heading {grid-area:1 / 1;padding:clamp(18px,3.6svh,36px) 22px 0;}
 .has-scenes .guest-notes {grid-area:2 / 1;padding:clamp(8px,1.5svh,16px) 26px 0;}
 .has-scenes .event-heading .date-line {justify-content:center;color:var(--accent);}
 .has-scenes .event-heading .date-line::before {content:none;}
 .has-scenes .event-heading h3 {font-size:clamp(2.2rem,min(9.6vw,6.2svh),3.6rem);margin:.16em 0 .08em;}
 .has-scenes .event-heading .event-time {font-size:clamp(1.3rem,min(5.4vw,3.4svh),1.9rem);color:var(--accent);}
 .has-scenes .guest-notes .event-description {margin-inline:auto;max-width:33ch;font-size:clamp(1rem,2.2svh,1.12rem);line-height:1.5;color:#4a3a3c;}
 .has-scenes .guest-notes .attire-palette {margin:clamp(8px,1.6svh,16px) auto 0;}

 .has-scenes .event-visual {
  grid-area:3 / 1;place-self:stretch;container-type:size;width:auto;aspect-ratio:auto;
  margin-top:clamp(4px,1svh,12px);border-radius:0;box-shadow:none;background:none;
 }
 .has-scenes .event-visual picture {display:none;}
 /* The sets are stored already blurred, so nothing is filtered while the page scrolls. */
 .has-scenes .event-visual::before {
  --veil:linear-gradient(var(--page) 6%,transparent 50%);
  content:"";position:absolute;inset:-28px;
  background:var(--veil),linear-gradient(#fff8ec24,#fff8ec24),var(--set) center 12%/cover no-repeat;
 }
 .has-scenes .event-visual::after {content:"";position:absolute;inset:auto 0 0;height:2px;background:var(--accent);transform:scaleX(var(--turn,0));transform-origin:left;pointer-events:none;}
 /* Words and figures step aside while the two sets blend, so no two couples overlap. */
 .has-scenes .event-visual.ready .event-performance,.has-scenes .art-actions {opacity:var(--words,1);}
 .has-scenes .still-only .event-visual picture {display:block;-webkit-mask-image:linear-gradient(transparent,#000 34%);mask-image:linear-gradient(transparent,#000 34%);}
 /* Play is a small round control resting on the progress line, clear of the couple. */
 .has-scenes .art-actions {inset:auto auto 14px 14px;}
 .has-scenes .art-actions .open-art,.has-scenes .art-actions .control-text {display:none;}
 .has-scenes .art-actions .play-event {width:42px;min-width:0;min-height:0;height:42px;padding:0;border-radius:50%;border-color:color-mix(in srgb,var(--accent) 38%,transparent);background:#fffaf0b8;color:var(--accent);font-size:.95rem;}
 .has-scenes .art-actions .play-event:hover,.has-scenes .art-actions .play-event:focus-visible {background:#fffaf0;}

 @media (min-width:900px) and (min-aspect-ratio:6/5) {
  .has-scenes .event-run > .event-spread {
   grid-template:1fr auto auto 1fr / minmax(0,1fr) minmax(0,1.08fr);column-gap:clamp(24px,4vw,72px);
   max-width:1320px;margin-inline:auto;padding-inline:clamp(32px,6vw,96px);text-align:left;
  }
  .has-scenes .event-heading {grid-area:2 / 1;padding:0;}
  .has-scenes .guest-notes {grid-area:3 / 1;padding:clamp(12px,2svh,24px) 0 0;}
  .has-scenes .event-visual {grid-area:1 / 2 / -1 / 3;margin:0;}
  .has-scenes .event-visual::before {--veil:radial-gradient(ellipse 51% 60% at 50% 57%,transparent 30%,var(--page) 90%);}
  .has-scenes .art-actions {inset:auto auto 5% 15%;}
  .has-scenes .event-heading .date-line {justify-content:flex-start;}
  .has-scenes .event-heading h3 {font-size:clamp(2.8rem,min(5.2vw,10svh),5.4rem);}
  .has-scenes .event-heading .event-time {font-size:clamp(1.5rem,min(2.4vw,4.6svh),2.4rem);}
  .has-scenes .guest-notes .event-description {margin-inline:0;max-width:34ch;font-size:clamp(1.05rem,min(1.35vw,2.6svh),1.3rem);}
  .has-scenes .guest-notes .attire-palette {margin-inline:0;}
 }
}
html.has-scenes {overflow-anchor:none;}
