/* Replace these relative asset URLs with HTTPS URLs to use a different image host. */
@font-face {
  font-family: "Invitation Hindi";
  src: url("assets/fonts/invitation-hindi.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Invitation Latin";
  src: url("assets/fonts/invitation-latin.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Invitation Latin";
  src: url("assets/fonts/invitation-latin-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff9ee;
  --white: #fffdf8;
  --ink: #392921;
  --muted: #6d5347;
  --wine: #6a382d;
  --gold: #a47a45;
  --line: #d5b88f;
  --serif: "Invitation Latin", Georgia, serif;
  --hindi: "Invitation Hindi", "Noto Serif Devanagari", serif;
  --sans: system-ui, -apple-system, sans-serif;
  --header-height: 0px;
  --layout: min(1100px, 88vw);
  --silk-texture: url("/__l5e/assets-v1/3be68b2a-0661-4745-b073-4f735281fd38/wedding-silk-drape.jpg");
  --floral-image: url("/__l5e/assets-v1/7bf6d1e6-6225-4579-ba4b-e08e7c046839/wedding-florals.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 0; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #794431;
  outline-offset: 5px;
}
::selection { background: #e7c5a4; color: #3f2920; }
.icons, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flower {
  width: 65px;
  height: 35px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.hindi { font-family: var(--hindi); }
.layout { width: var(--layout); margin-inline: auto; }
.section-space { padding-block: clamp(70px, 11svh, 135px); }
.fill-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.skip-link {
  position: fixed;
  z-index: 90;
  top: -80px;
  left: 18px;
  background: var(--white);
  padding: 14px 18px;
  font: 13px var(--sans);
}
.skip-link:focus { top: 14px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding-inline: max(24px, 4.25vw);
  background: #fff9eeed;
  border-bottom: 1px solid #d5b88f45;
  color: var(--ink);
}
.monogram {
  font-size: 30px;
  letter-spacing: -.075em;
  line-height: 1;
  min-width: 48px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.monogram i { font-size: .65em; color: #8d5d3b; font-weight: 400; margin-inline: .14em; }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.header-nav > a, .sound-control {
  font: 600 10px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-nav > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.sound-control {
  position: fixed;
  z-index: 60;
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  gap: 8px;
  padding-inline: 12px;
  border: 1px solid #c9a77d8c;
  border-radius: 100px;
  background: #fffdf6;
  color: var(--wine);
  min-width: 96px;
  justify-content: center;
}
.equalizer { display: flex; gap: 2px; align-items: center; height: 12px; }
.equalizer i { display: block; width: 2px; height: 3px; background: #95603c; border-radius: 2px; }
.sound-control[aria-pressed="true"] i { animation: equalize 900ms ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { animation-delay: -.6s !important; }
.equalizer i:nth-child(3) { animation-delay: -.25s !important; }
@keyframes equalize { to { height: 12px; } }
.reading-progress {
  position: fixed;
  z-index: 55;
  width: 100%;
  height: 2px;
  top: 0;
  left: 0;
  background: #b57f47;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}
html:not(.js) .sound-control, html:not(.js) #add-calendar { display: none; }

/* A forward camera move passes through two independent hinged door leaves. */
.stage { position: relative; min-height: max(580px, 100svh); overflow: hidden; isolation: isolate; }
.has-motion .pinned .stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.has-motion .entrance { height: 218svh; }
.has-motion .couple { height: 185svh; }
.entrance-stage {
  --gate-x: 68%;
  --gate-y: 51%;
  --gate-width: min(38vw, 46svh, 465px);
  --camera: 0;
  background: #f1dfc4;
}
.garden-camera { position: absolute; inset: 0; overflow: hidden; }
.garden-camera img { object-position: 50% 55%; transform: scale(1.03); }
.gate {
  position: absolute;
  left: var(--gate-x);
  top: var(--gate-y);
  width: var(--gate-width);
  aspect-ratio: 2 / 3;
  transform: translate(calc(-50% - var(--camera) * 18vw), -50%) scale(calc(1 + var(--camera) * 2.85));
  transform-origin: 50% 53%;
  z-index: 2;
  pointer-events: none;
}
.has-motion .gate, .has-motion .garden-camera img, .has-motion .gate-leaf { will-change: transform; }
.gate-wall, .gate-opening, .gate-moulding {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 2px 2px / 27% 27% 2px 2px;
}
.gate-wall {
  box-shadow:
    0 0 0 6px #f7e7cd,
    0 0 0 7px #d5b282,
    0 0 0 13px #fff5e1,
    0 0 0 14px #e5cba7,
    0 0 0 90vmax var(--paper);
}
.gate-opening { overflow: hidden; perspective: 900px; perspective-origin: 50% 48%; }
.gate-leaf {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50.16%;
  background: #dcc193;
  backface-visibility: hidden;
  transform-origin: left center;
  border-right: 1px solid #926c3d;
  box-shadow: inset 0 0 8px #62452f6d;
}
.gate-leaf.right { inset: 0 0 0 auto; transform-origin: right center; }
.door-wood { object-position: center; }
.gate-leaf.left .door-wood { object-position: 29% center; }
.gate-leaf.right .door-wood { object-position: 71% center; transform: scaleX(-1); }
.gate-leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 2px 0 6px #533c2033, inset -2px 0 6px #533c2044;
  pointer-events: none;
}
.door-ring {
  position: absolute;
  z-index: 1;
  top: 62%;
  right: 9%;
  width: 18px;
  height: 23px;
  border: 3px solid #a9783d;
  border-top-color: #846037;
  border-bottom-color: #f1d39c;
  border-radius: 50%;
  box-shadow: 0 2px 3px #61432555, inset 0 1px 2px #5730167a;
}
.door-ring::before {
  content: "";
  display: block;
  position: absolute;
  top: -6px;
  left: 50%;
  width: 6px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #b88e54;
  box-shadow: inset 1px 1px 1px #f6dca4;
}
.right .door-ring { right: auto; left: 9%; }
.gate-moulding { box-shadow: inset 0 0 0 1px #af8a5e, inset 0 2px 14px #69441e35; }
.cover-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--floral-image) center / cover;
  mask-image: linear-gradient(90deg, #000 0%, transparent 21%, transparent 86%, #000 100%);
  opacity: .71;
  pointer-events: none;
}
.cover-border {
  position: absolute;
  z-index: 3;
  inset: 24px 3.75vw 24px;
  border: 1px solid #d6b9948c;
  pointer-events: none;
}
.cover-border::after { content: ""; position: absolute; inset: 5px; border: 1px solid #dac5a254; }
.cover-title {
  position: absolute;
  z-index: 5;
  top: 39%;
  left: 25.8%;
  width: 42vw;
  transform: translateX(-50%);
  text-align: center;
}
.cover-kicker { font-size: 19px; line-height: 1.6; color: var(--wine); }
.cover-title h1 { font-weight: 400; font-size: clamp(54px, min(7.3vw, 13svh), 112px); line-height: .99; letter-spacing: -.07em; white-space: nowrap; }
.cover-title h1 i { font-weight: 400; color: #9b693e; }
.cover-date {
  margin-top: 13px;
  color: var(--muted);
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.open-invitation {
  position: absolute;
  z-index: 6;
  top: calc(39% + clamp(144px, 23svh, 217px));
  left: 25.8%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 7px 8px 7px 19px;
  border: 1px solid #c7a67c;
  border-radius: 100px;
  background: #fffaf2;
  color: var(--wine);
  white-space: nowrap;
  font: 650 10px/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.open-label { text-align: left; }
.open-label small {
  display: block;
  margin-top: 4px;
  font: 400 10px/1 var(--sans);
  letter-spacing: .025em;
  text-transform: none;
  color: var(--muted);
}
.open-icon, .garden-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2e3cc;
  transition: background-color .2s ease;
}
.open-icon .icon, .garden-next .icon { width: 16px; height: 16px; }
.open-invitation:hover .open-icon, .garden-next:hover { background: #e9cbaa; }
.garden-welcome { display: none; }
.has-motion .garden-welcome {
  display: flex;
  align-items: end;
  justify-content: center;
  position: absolute;
  z-index: 5;
  inset: 0;
  padding: 0 22px max(5.5svh, 30px);
  pointer-events: none;
  opacity: 0;
}
.welcome-note {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 18px 32px;
  border: 1px solid #e9c79a;
  background: #fff9ecef;
  color: #583528;
  box-shadow: 0 10px 50px #704b3030;
}
.welcome-note .flower { width: 42px; height: 25px; }
.welcome-note p { font-size: clamp(19px, 2vw, 26px); line-height: 1.55; }
.garden-next { min-width: 44px; min-height: 44px; }
.garden-welcome.ready .garden-next { pointer-events: auto; }
.petals {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
.has-motion .petals { display: block; }

/* Light fills the niche while an outline follows its arch. */
.scene {
  --art: 1;
  --copy: 1;
  --trace: 1;
  --gleam: 0;
}
.trace {
  fill: none;
  stroke: #a5763d;
  stroke-width: 1;
  pointer-events: none;
}
.trace path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--trace));
  vector-effect: non-scaling-stroke;
}
.blessing { background: #fffdf8; }
.blessing-layout {
  display: grid;
  grid-template-columns: .87fr 1fr;
  align-items: center;
  gap: clamp(54px, 8vw, 124px);
  max-width: 1010px;
}
.blessing-image {
  position: relative;
  overflow: hidden;
  width: min(100%, 405px);
  aspect-ratio: 2 / 3;
  justify-self: center;
  background: radial-gradient(ellipse at 50% 88%, #feead4, #f3dec1 70%);
  border: 1px solid #d6b88e;
  box-shadow: 0 0 0 9px #fffdf8, 0 0 0 10px #e8d8bd;
}
.blessing-arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
  stroke: #f7d6a1;
  filter: drop-shadow(0 1px 1px #6c4818a3);
  opacity: .86;
}
.blessing-light {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(120deg, transparent 42%, #fff9dd7d 50%, transparent 57%);
  opacity: var(--gleam);
  pointer-events: none;
  transform: translateX(calc(-30% + var(--art) * 60%));
}
.has-motion .blessing-image img {
  clip-path: inset(calc((1 - var(--art)) * 100%) 0 0);
  transform: translateY(calc((1 - var(--art)) * 3%));
}
.blessing-copy .flower { margin-bottom: 24px; }
.blessing-copy h2 { font-weight: 400; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.55; color: var(--wine); }
.ornamental-rule { height: 1px; width: 68px; background: #c49b68; display: inline-block; position: relative; margin: 22px 0; }
.ornamental-rule::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); background: #fff9ee; border: 1px solid #c49b68; }
.blessing-copy .verse { font-size: clamp(14px, 1.45vw, 19px); color: #685044; line-height: 2.15; }

/* Full-size silk panels slide off the frame. Their texture is never squashed. */
.couple-stage { display: grid; place-items: center; background: #f0d9be; }
.couple-background { position: absolute; inset: 0; }
.couple-background .fill-image { object-position: center 54%; }
.couple-light { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #fff9e94f, transparent 77%); pointer-events: none; }
.names-card {
  --bloom: 1;
  --names: 1;
  position: relative;
  margin: max(75px, 12svh) 0 35px;
  width: min(86vw, 560px);
  z-index: 3;
  text-align: center;
  padding: clamp(28px, 5.7svh, 56px) clamp(15px, 4vw, 42px);
  background: #fffaf0f5;
  border: 1px solid #b88c52;
  box-shadow: 0 18px 60px #7d4e302f;
}
.names-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid #c79f6a70; pointer-events: none; }
.names-card .flower {
  margin-bottom: 13px;
  opacity: var(--bloom);
  transform: translateY(calc((1 - var(--bloom)) * 22px)) rotate(calc((1 - var(--bloom)) * -22deg));
}
.names-card h2 {
  font-weight: 400;
  color: var(--wine);
  opacity: var(--names);
  transform: translateY(calc((1 - var(--names)) * 15px));
}
.names-label { color: #84563f; font-size: 17px; line-height: 1.8; margin-bottom: 13px; }
.names-card h2 span { display: block; }
.names-card .bride { font-size: clamp(38px, 5vw, 69px); line-height: 1.53; }
.names-card .groom { font-size: clamp(31px, 3.8vw, 52px); line-height: 1.55; }
.names-card .sang { font-size: 18px; color: #8c613f; line-height: 1.8; }
.names-card .ornamental-rule { margin-block: 18px 15px; }
.names-date { font-size: clamp(14px, 1.65vw, 19px); color: #614739; line-height: 1.55; }
.curtain, .curtain-cue { display: none; }
.has-motion .curtain {
  display: block;
  position: absolute;
  z-index: 6;
  width: 50.2%;
  height: 100%;
  top: 0;
  overflow: hidden;
  background: #cf9490;
  pointer-events: none;
  will-change: transform, clip-path;
}
.curtain-left { left: 0; }
.curtain-right { right: 0; }
.curtain .silk { object-position: right center; }
.curtain-left .silk { object-position: 68% center; }
.curtain-right .silk { object-position: 68% center; transform: scaleX(-1); }
.curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -7px 0 22px #67342d44;
}
.curtain-right::after { box-shadow: inset 7px 0 22px #67342d44; }
.has-motion .curtain-cue {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 8;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #fff8ebd9;
  border: 1px solid #e7c094;
  border-radius: 50%;
  color: #784b34;
  pointer-events: none;
}

/* The programme opens with a drawn rule and working links to all four events. */
.programme { background: #fffaf1; }
.programme-intro { margin-bottom: clamp(27px, 5svh, 54px); }
.programme-heading {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 17px;
}
.programme-heading::after {
  position: absolute;
  content: "";
  bottom: 0;
  inset-inline: 0;
  height: 1px;
  background: #c2a17a;
  transform-origin: left;
  transform: scaleX(var(--art));
}
.programme-heading h2 { font-size: clamp(38px, 5.5vw, 76px); font-weight: 400; color: var(--wine); line-height: 1.35; }
.programme-heading span { margin-bottom: .5em; font-size: clamp(16px, 2vw, 25px); font-style: italic; color: var(--muted); }
.ceremony-jumps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #e3cdb0; }
.ceremony-jumps a {
  display: grid;
  gap: 3px;
  padding: 15px 12px 16px;
  text-align: center;
  color: var(--wine);
  border-right: 1px solid #e3cdb0;
  font: 600 12px/1.4 var(--sans);
}
.ceremony-jumps a:last-child { border-right: 0; }
.ceremony-jumps time { color: var(--muted); font-weight: 400; font-size: 11px; }
.ceremony-jumps a:hover { background: #faeddc; }
.ceremony-jumps a:focus-visible { outline-offset: -4px; }
.has-motion .ceremony-jumps a {
  opacity: calc(.65 + .35 * var(--copy));
  transform: translateY(calc((1 - var(--copy)) * 8px));
}

.event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(45px, 8vw, 126px);
  padding: 24px 0 clamp(45px, 8svh, 86px);
  border-bottom: 1px solid #e3cdb0;
}
.event + .event { padding-top: clamp(45px, 8svh, 86px); }
.event:last-child { padding-bottom: 0; border-bottom: 0; }
.event-art {
  position: relative;
  width: min(100%, 393px);
  justify-self: center;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #f4e5d0;
  box-shadow: 0 0 0 6px #fffaf1, 0 0 0 7px #e2c8a2;
  border: 1px solid #e2c8a2;
}
.event-art picture { display: block; }
.event-art img { object-position: center; }
.event-day {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px 17px;
  color: #694e39;
  font-size: clamp(14px, 1.7vw, 18px);
}
.event-day b { font-family: var(--serif); font-size: 2.22em; font-weight: 400; line-height: 1; padding-inline-end: 3px; color: #8d5638; }
.event-day span { font-size: .76em; border-left: 1px solid #c4a480; padding-left: 16px; }
.event h3 { font-weight: 400; font-size: clamp(35px, 4.8vw, 67px); color: var(--wine); line-height: 1.5; margin-top: 15px; }
.event h3 span { display: block; font-size: .52em; line-height: 1.8; }
.event-english { font-size: clamp(16px, 1.9vw, 24px); font-style: italic; color: var(--muted); margin-top: 3px; }
.has-motion .blessing-copy, .has-motion .event-copy {
  opacity: calc(.6 + var(--copy) * .4);
  transform: translateY(calc((1 - var(--copy)) * 22px));
}

/* Tilak: lift a sealed paper flap and let the gold catch the light. */
.tilak .event-art { perspective: 960px; }
.letter-flap, .thali-glint, .mandap-matte, .mandap-lustre, .silk-veil, .vidaai-horizon { display: none; }
.has-motion .letter-flap {
  display: grid;
  place-items: center;
  z-index: 2;
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform: rotateX(calc(var(--art) * -116deg));
  backface-visibility: hidden;
  opacity: calc(1 - var(--art) * .52);
  background: linear-gradient(135deg, #fff5e4, #f0d9b5);
  border: 1px solid #c5a470;
  box-shadow: inset 0 0 0 9px #fdf3e2, inset 0 0 0 10px #c5a47085;
}
.letter-flap::before, .letter-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.letter-flap::before { background: linear-gradient(148deg, #fff8eb 55%, #d0ae7d18); clip-path: polygon(0 0, 100% 0, 50% 56%); }
.letter-flap::after { background: #b9925e; height: 1px; top: 56%; inset-inline: 14%; opacity: .45; }
.wax-stamp {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 59px;
  aspect-ratio: 1;
  border-radius: 46% 54% 52% 48% / 48% 48% 52% 52%;
  margin-top: 16%;
  background: radial-gradient(circle at 34% 25%, #b77261, #844032 88%);
  outline: 1px solid #713429;
  box-shadow: 0 5px 12px #5a2e2145, inset 0 0 0 5px #a15c49;
}
.wax-stamp .flower { width: 40px; height: 23px; stroke: #f7d8ac; }
.has-motion .tilak img { transform: translateY(calc((1 - var(--art)) * 12%)) scale(calc(1.05 - var(--art) * .05)); }
.has-motion .thali-glint, .has-motion .mandap-lustre {
  display: block;
  position: absolute;
  inset: -24% -45%;
  opacity: var(--gleam);
  transform: translateX(calc(-42% + var(--art) * 84%));
  background: linear-gradient(118deg, transparent 39%, #fff6df80 49%, transparent 59%);
  pointer-events: none;
}

/* Mehendi: an iris opens while a fine outline curls around the edge. */
.mehendi .event-art {
  grid-column: 2;
  grid-row: 1;
  border-color: #a4ac89;
  background: #e7e9db;
  box-shadow: 0 0 0 6px #fffaf1, 0 0 0 7px #b6bd9f;
}
.mehendi .event-copy { grid-column: 1; grid-row: 1; }
.mehendi h3 { color: #39462f; }
.has-motion .mehendi img {
  clip-path: ellipse(calc(4% + var(--art) * 79%) calc(4% + var(--art) * 79%) at 50% 51%);
}
.henna-stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #fae9a9;
  stroke-width: 1.6;
  opacity: .81;
  filter: drop-shadow(0 1px 1px #47391e7f);
}

/* The wedding gets a wide, expanding arch with its date on a separate plaque. */
.wedding { position: relative; display: block; }
.wedding .event-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3e1d0;
}
.has-motion .mandap-matte {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: calc(1 - var(--exit, 0));
  pointer-events: none;
}
.mandap-aperture {
  width: calc(12% + var(--art) * 103%);
  height: calc(20% + var(--art) * 84%);
  border-radius: 50% 50% 1px 1px / 36% 36% 1px 1px;
  border: 2px solid #e7b789;
  box-shadow: 0 0 0 6px #fff7e6, 0 0 0 7px #d1a67f, 0 0 0 80vw #fff2e2;
}
.has-motion .wedding img { transform: scale(calc(1.09 - .09 * var(--art))); }
.wedding .event-copy {
  position: absolute;
  z-index: 1;
  bottom: calc(clamp(45px, 8svh, 86px) + 24px);
  left: 24px;
  max-width: calc(100% - 48px);
  padding: clamp(14px, 3vw, 27px);
  background: #fffaf0f3;
  border: 1px solid #bd956a;
  box-shadow: 0 8px 32px #4e372d26;
}
.wedding h3 { margin-top: 9px; font-size: clamp(31px, 4.4vw, 61px); line-height: 1.35; }

/* Vidaai: light silk moves across the scene as the doli comes into view. */
.vidaai .event-art { border-color: #d6b7a5; background: #f5e6dc; }
.vidaai .event-copy { align-self: center; }
.has-motion .vidaai img { transform: translateX(calc((1 - var(--art)) * -4%)) scale(calc(1.075 - var(--art) * .075)); }
.has-motion .silk-veil {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff1e691, #fff3e6dd), var(--silk-texture) left center / cover;
  mask-image: linear-gradient(90deg, transparent, #000 24%);
  transform: translateX(calc(-14% + var(--art) * 119%));
  pointer-events: none;
}
.has-motion .vidaai-horizon {
  display: block;
  position: absolute;
  inset: 6px;
  border: 1px solid #ffefddc5;
  pointer-events: none;
  clip-path: inset(0 calc((1 - var(--trace)) * 100%) 0 0);
}

/* The location card draws a decorative route ending in a pin. */
.venue { padding-block: clamp(55px, 8svh, 94px); background: #f6e8d8; border-block: 1px solid #dcc1a2; }
.venue-content {
  display: grid;
  grid-template-columns: minmax(130px, .65fr) 1fr;
  align-items: center;
  column-gap: clamp(20px, 4vw, 62px);
  row-gap: 16px;
}
.venue-route { width: 88%; max-width: 260px; justify-self: start; }
.route-line { stroke-width: 2; stroke-linecap: round; }
.route-start { fill: #ba8d57; stroke: none; }
.route-pin {
  fill: var(--wine);
  stroke: none;
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: translateY(calc((1 - var(--copy)) * -20px)) scale(calc(.8 + .2 * var(--copy)));
  opacity: var(--copy);
}
.venue .label { color: #845039; font-size: 15px; margin-bottom: 7px; }
.venue h2 { color: var(--wine); font-size: clamp(29px, 4vw, 54px); font-weight: 400; line-height: 1.42; }
.venue .address { color: var(--muted); font-size: clamp(15px, 1.8vw, 20px); line-height: 1.8; }
.venue-host {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  margin-top: 21px;
  color: var(--wine);
}
.venue-host .flower { width: 43px; height: 25px; flex: 0 0 43px; }
.venue-host-copy { display: grid; gap: 2px; padding-left: 13px; border-left: 1px solid #c9a77d; }
.venue-host-copy > span { font-size: 14px; color: #845039; }
.venue-host strong { font-size: 21px; font-weight: 400; line-height: 1.4; }
.has-motion .venue-address { transform: translateX(calc((1 - var(--art)) * -18px)); }
.venue .outline-button { grid-column: 2; justify-self: start; min-height: 52px; background: var(--wine); color: #fff9ed; border-color: var(--wine); }
.venue .outline-button:hover { background: #824839; }

.primary-button, .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 13px 20px;
  border: 1px solid var(--wine);
  font: 600 12px/1.35 var(--sans);
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.primary-button { background: var(--wine); color: #fff9ed; }
.primary-button:hover { background: #824839; }
.outline-button { background: #fffaf354; border-color: #ba936d; color: var(--wine); }
.outline-button:hover { background: #f4e1c9; }
.primary-button .icon, .outline-button .icon { width: 17px; height: 17px; }
.primary-button[aria-disabled="true"], .outline-button[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }

/* A bloom of petals leads to the only action at the end of the story. */
.finale {
  position: relative;
  min-height: max(660px, 91svh);
  padding: max(72px, 10svh) 18px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #f7ead9;
}
.finale-florals { position: absolute; inset: 0; z-index: -2; background: var(--floral-image) center 64% / cover; }
.has-motion .finale-florals { transform: scale(calc(1.08 - .08 * var(--art))); }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, #fffdf448, transparent 67%); }
.finale-card {
  position: relative;
  z-index: 5;
  width: min(92vw, 640px);
  padding: clamp(32px, 7svh, 66px) clamp(16px, 5vw, 58px) clamp(32px, 5svh, 50px);
  text-align: center;
  border: 1px solid #cba573;
  background: #fffaf0f2;
  box-shadow: 0 13px 55px #9c6e4040;
}
.finale-card .flower { margin-bottom: 11px; }
.has-motion .finale-card {
  transform: perspective(900px) translate3d(0, calc((1 - var(--art)) * 36px), 0) rotateX(calc((1 - var(--art)) * 13deg));
}
.finale-frame {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  opacity: .72;
}
.finale-card h2 { color: var(--wine); font-size: clamp(24px, 3.5vw, 44px); font-weight: 400; line-height: 1.6; }
.finale-names { color: var(--wine); font-size: clamp(38px, 4.7vw, 62px); line-height: 1.55; margin-top: 8px; letter-spacing: -.03em; }
.finale-names span { font-size: .46em; letter-spacing: 0; color: #885839; padding-inline: .32em; }
.finale-date { font: 600 11px/1.5 var(--sans); color: var(--muted); margin-top: 10px; letter-spacing: .08em; text-transform: uppercase; }
.finale-card .primary-button { margin-top: 28px; min-width: min(225px, 100%); min-height: 53px; }
.replay { display: flex; align-items: center; justify-content: center; width: fit-content; gap: 7px; padding: 10px 0; margin: 18px auto 0; font: 11px/1.5 var(--sans); color: #735243; }
.replay .icon { width: 16px; height: 16px; }
.replay:hover { text-decoration: underline; text-underline-offset: 4px; }

.invitation-contact {
  padding: 36px 18px max(36px, env(safe-area-inset-bottom));
  background: #fffaf1;
  color: var(--ink);
}
.invitation-contact-card {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  border: 1px solid #d5b88f;
  background: #fffdf8;
  text-align: center;
}
.invitation-contact-card p { color: var(--wine); font-size: 20px; line-height: 1.6; }
.invitation-contact-card .primary-button { min-height: 44px; padding-inline: 20px; }

.calendar-dialog {
  border: 1px solid #cda778;
  width: min(92vw, 473px);
  max-height: 92svh;
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  padding: 34px;
  box-shadow: 0 24px 100px #39211855;
  font: 13px/1.5 var(--sans);
}
.calendar-dialog::backdrop { background: #3e2a2260; backdrop-filter: blur(7px); }
.close-form { position: absolute; top: 13px; right: 13px; }
.close-dialog {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wine);
  font-size: 24px;
}
.close-dialog:hover { background: #f5e5d2; }
.calendar-dialog h2 { font: 400 clamp(30px, 5vw, 42px)/1.1 var(--serif); color: var(--wine); margin-right: 28px; }
.calendar-intro { color: var(--muted); margin-top: 11px; margin-bottom: 19px; }
.calendar-dialog fieldset { padding: 0; margin: 0; border: 0; }
.calendar-event {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  border-top: 1px solid #e7d5bd;
  cursor: pointer;
}
.calendar-event time { margin-left: auto; font-size: 11px; color: var(--muted); }
.calendar-event input { width: 17px; height: 17px; margin: 0; accent-color: var(--wine); }
.calendar-event:has(input:checked) { font-weight: 650; color: var(--wine); }
.calendar-status { color: var(--muted); font-size: 11px; min-height: 17px; margin: 8px 0 10px; }
.calendar-actions { display: grid; gap: 8px; }
.calendar-footnote { margin-top: 14px; color: var(--muted); font-size: 11px; text-align: center; }
html.dialog-open { overflow: hidden; }

@media (max-width: 750px) {
  :root { --header-height: 0px; --layout: min(580px, 86vw); --floral-image: url("/__l5e/assets-v1/46b5fe11-9616-492e-920b-6216fefc772c/wedding-florals-portrait.jpg"); }
  .sound-control { font-size: 9px; letter-spacing: .07em; }
  .sound-control { min-height: 38px; min-width: 102px; padding-inline: 10px; }
  .entrance-stage {
    --gate-x: 50%;
    --gate-y: 57%;
    --gate-width: min(67vw, 30.8svh, 352px);
  }
  .gate { transform: translate(-50%, -50%) scale(calc(1 + var(--camera) * 2.85)); }
  .cover-title { left: 50%; width: 92vw; top: max(14px, 11.4svh); }
  .cover-title h1 { font-size: clamp(55px, 13.9vw, 79px); }
  .cover-date { margin-top: 11px; font-size: 9px; }
  .cover-kicker { font-size: 17px; }
  .cover-border { inset: 10px 12px 13px; }
  .cover-atmosphere { mask-image: linear-gradient(90deg, #000, transparent 18%, transparent 82%, #000); }
  .open-invitation { left: 50%; top: auto; bottom: max(25px, 6.3svh); }
  .gate-wall {
    box-shadow:
      0 0 0 4px #f7e7cd,
      0 0 0 5px #d5b282,
      0 0 0 9px #fff5e1,
      0 0 0 10px #e5cba7,
      0 0 0 90vmax var(--paper);
  }
  .garden-camera img { object-position: 50% 56%; }
  .door-ring { width: 14px; height: 18px; }
  .blessing-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .blessing-image { width: min(87%, 355px); }
  .blessing-copy .flower { width: 53px; margin-bottom: 9px; }
  .blessing-copy h2 { font-size: clamp(23px, 5.35vw, 38px); }
  .blessing-copy .verse { font-size: clamp(13px, 3.5vw, 18px); }
  .ornamental-rule { margin-block: 13px; }
  .names-card { margin-top: max(55px, 8svh); padding-block: 30px; }
  .names-card .flower { height: 31px; margin-bottom: 8px; }
  .names-card .names-label { font-size: 15px; margin-bottom: 12px; }
  .names-card .bride { font-size: clamp(32px, 10.1vw, 60px); }
  .names-card .groom { font-size: clamp(28px, 7.4vw, 46px); }
  .names-card .sang { font-size: 15px; }
  .names-card .ornamental-rule { margin-block: 13px 12px; }
  .names-date { font-size: 14px; }
  .couple-background img { object-position: 50% 46%; }
  .programme-heading { flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 10px; }
  .programme-heading h2 { font-size: clamp(29px, 9vw, 55px); }
  .programme-heading span { font-size: 18px; }
  .ceremony-jumps a { padding: 11px 3px 12px; font-size: 10px; }
  .ceremony-jumps time { font-size: 10px; }
  .event { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .event-art { width: min(100%, 375px); margin-inline: auto; }
  .event-day { gap: 11px; }
  .event-day span { padding-left: 10px; }
  .event h3 { margin-top: 10px; font-size: clamp(30px, 8.6vw, 53px); line-height: 1.45; }
  .event-english { font-size: 17px; }
  .wedding .event-art { width: min(100%, 430px); aspect-ratio: 2 / 3; }
  .wedding .event-copy { position: relative; left: auto; bottom: auto; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .venue-content { grid-template-columns: 1fr; justify-items: start; gap: 17px; }
  .venue-route { width: min(55%, 200px); }
  .venue .outline-button { grid-column: auto; }
  .venue h2 { font-size: clamp(26px, 7.4vw, 43px); }
  .venue .label { margin-bottom: 3px; }
  .finale { min-height: 650px; padding-block: 80px; }
  .finale-card { width: min(87vw, 610px); padding-block: 34px 27px; background: #fffaf0f2; }
  .finale-date { font-size: 9px; }
  .calendar-dialog { padding: 27px 22px; }
  .invitation-contact { padding-inline: 14px; }
  .invitation-contact-card { flex-direction: column; }
  .invitation-contact-card p { font-size: 18px; }
}
@media (max-height: 700px) and (max-width: 750px) {
  .cover-title h1 { font-size: clamp(47px, 8.5svh, 61px); }
  .cover-title { top: 12px; }
  .entrance-stage { --gate-y: 57%; --gate-width: min(67vw, 30svh, 345px); }
}
@media (max-height: 560px) and (min-width: 751px) {
  .entrance-stage { --gate-width: min(36vw, 43svh); }
  .cover-title { top: 35%; }
  .open-invitation { top: calc(35% + 152px); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .header, .sound-control, .reading-progress, .skip-link, .entrance, .curtain, .curtain-cue, .petals, .finale-florals, .venue a, .calendar-dialog, #add-calendar, .replay { display: none !important; }
  body, .programme, .blessing, .venue, .finale { background: white; }
  .has-motion .pinned, .has-motion .stage, .stage, .finale { min-height: 0 !important; height: auto !important; position: static !important; }
  .couple-background, .couple-light, .event-art, .blessing-image, .venue-route, .ceremony-jumps { display: none !important; }
  .layout, .names-card, .finale-card { width: 100%; }
  .blessing-layout, .event, .venue-content { display: block; }
  .section-space, .event, .venue, .finale { padding: 20px 0 !important; }
  .event, .names-card, .finale-card { break-inside: avoid; }
  .wedding .event-copy { position: static; box-shadow: none; }
  .event-copy, .blessing-copy, .names-card, .finale-card { opacity: 1 !important; transform: none !important; box-shadow: none; }
}
