/* ==========================================================
   Yuvraj & Diksha — additions on top of the Mehak base styles
   ========================================================== */

/* ---------- text monogram (Y & D) in the seals ---------- */
.mono {
  display: flex; align-items: baseline; justify-content: center; gap: .04em;
  font-family: var(--serif); font-weight: 700; color: var(--maroon);
  font-size: clamp(46px, 12vw, 60px); line-height: 1; letter-spacing: -.02em; margin-top: 4%;
}
.mono i { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--olive); font-size: .62em; margin: 0 .06em; }
.closing .seal .mono { font-size: clamp(38px, 9vw, 48px); }
.hero-seal {
  width: clamp(96px, min(13vw, 16vh), 124px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fffaf0, #f1e2c4);
  box-shadow: 0 0 0 5px rgba(217,187,131,.18), 0 0 0 6px rgba(176,138,78,.6), 0 16px 40px rgba(74,18,28,.18);
}
.hero-seal .mono { font-size: clamp(34px, min(4.6vw, 6vh), 44px); }

/* ---------- hero: our painted palace (frame edges visible on purpose) ---------- */
.hero { background-color: #f1ddb3; background-position: center 55%; }

/* ---------- event cards with painted tops ---------- */
.ev-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; }
.ev-card.art .ev-top {
  height: 200px;
  background: linear-gradient(180deg, rgba(42,10,16,.25), rgba(42,10,16,.55)), var(--art) center 42% / cover no-repeat;
}
.ev-venue {
  margin-top: 16px; padding: 0 18px; font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--ink-soft);
}
.ev-venue b {
  display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--maroon);
}
.ev-map {
  margin-top: 14px; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}

/* ---------- two venues ---------- */
.venues { display: grid; gap: clamp(28px, 4vw, 44px); }
.venue-info h3 { font-size: clamp(34px, 4vw, 48px); }
.venue-map { min-height: 360px; }

/* ---------- moments strip (native swipe, no scroll tricks) ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 62vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100vw - 1080px) / 2)) 18px;
  scroll-padding-inline: max(20px, calc((100vw - 1080px) / 2)); scrollbar-width: none; outline: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure {
  scroll-snap-align: start; margin: 0; padding: 8px 8px 0; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px; box-shadow: 0 18px 40px rgba(74,18,28,.10);
}
.strip img { width: 100%; aspect-ratio: 3/4; height: auto; object-fit: cover; object-position: center 30%; border-radius: 50% 50% 3px 3px / 30% 30% 3px 3px; }
.strip figcaption { padding: 12px 6px 14px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--maroon); }
.swipe-note { margin-top: 10px; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.swipe-note span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: none } 50% { transform: translateX(5px) } }
@media (min-width: 1100px) { .swipe-note { display: none; } }

/* ---------- RSVP in the closing ---------- */
.rsvp-btn { margin-top: 30px; }
.rsvp-btn[hidden] { display: none; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .ev-grid.two {
    grid-auto-flow: row; grid-template-columns: minmax(0, 340px); grid-auto-columns: auto; justify-content: center;
    overflow: visible; margin-inline: 0; padding: 6px 0 0; gap: 22px;
  }
  .ev-card.art .ev-top { height: 150px; }
  .ev-card h4 { font-size: 28px; }
  .ev-desc { font-size: 13.5px; }
  .venue-map { min-height: 260px; }
}
.closing-text { margin-bottom: 4px; }

/* ---------- Chapter One painting comes alive: drift, sunbeams, dust ---------- */
.ch-photo.alive { position: relative; overflow: hidden; }
.ch-photo.alive .beams, .ch-photo.alive .dust {
  position: absolute; inset: 8px; z-index: 2; pointer-events: none;
  border-radius: 50% 50% 2px 2px / 37.5% 37.5% 2px 2px; opacity: 0; transition: opacity 1.6s ease 1.6s;
}
.ch-photo.alive .beams {
  background:
    linear-gradient(118deg, transparent 14%, rgba(255,244,210,.55) 22%, transparent 30%),
    linear-gradient(118deg, transparent 33%, rgba(255,244,210,.45) 40%, transparent 47%),
    linear-gradient(118deg, transparent 50%, rgba(255,240,200,.25) 55%, transparent 61%);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, rgba(0,0,0,.6) 55%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 10%, rgba(0,0,0,.6) 55%, transparent 92%);
}
.ch-photo.alive .dust {
  background-image:
    radial-gradient(circle, rgba(255,248,225,.95) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255,248,225,.7) 0 .9px, transparent 1.4px),
    radial-gradient(circle, rgba(255,248,225,.8) 0 1.5px, transparent 2.2px);
  background-size: 47px 61px, 31px 43px, 83px 97px;
  background-position: 0 0, 13px 21px, 37px 7px;
  -webkit-mask-image: linear-gradient(118deg, transparent 8%, #000 25%, #000 55%, transparent 75%);
          mask-image: linear-gradient(118deg, transparent 8%, #000 25%, #000 55%, transparent 75%);
}
.visible .ch-photo.alive .beams, .ch-photo.alive.visible .beams { opacity: 1; animation: beams 7s ease-in-out 3s infinite alternate; }
.visible .ch-photo.alive .dust, .ch-photo.alive.visible .dust { opacity: .9; animation: dust 18s linear 1.6s infinite; }
.visible .ch-photo.alive img, .ch-photo.alive.visible img { animation: drift 18s ease-in-out 2.4s infinite alternate; }
@keyframes drift { from { transform: none; } to { transform: scale(1.09) translate(-2.5%, -1.5%); } }
@keyframes beams { 0% { opacity: .55; transform: translateX(-2%); } 50% { opacity: 1; } 100% { opacity: .7; transform: translateX(2%); } }
@keyframes dust {
  from { background-position: 0 0, 13px 21px, 37px 7px; }
  to   { background-position: 60px -180px, -40px -140px, 90px -240px; }
}
.offscreen .ch-photo.alive * { animation-play-state: paused; }
@media (max-width: 760px) { .ch-photo.alive .beams, .ch-photo.alive .dust { inset: 6px; } }
@media (prefers-reduced-motion: reduce) { .ch-photo.alive img, .ch-photo.alive .beams, .ch-photo.alive .dust { animation: none !important; } }

/* ---------- second venue: olive, mirrored, so the two venues read differently ---------- */
.venue-alt { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.venue-alt .venue-info { order: 2; background: var(--jaali), linear-gradient(160deg, #56622a, #343d17); background-size: 64px 64px, 100% 100%; }
.venue-alt .venue-map { order: 1; }
.venue-alt .btn-gold:hover { color: #343d17; }
@media (max-width: 900px) {
  .venue-alt { grid-template-columns: 1fr; }
  .venue-alt .venue-info { order: 1; }
  .venue-alt .venue-map { order: 2; }
}
.seal img { width: 84%; margin-top: 0; }
.hero-mono { width: clamp(130px, min(17vw, 22vh), 190px); }

/* ---------- Chapter One v2: pencil sketch -> watercolour wash (plays once) ---------- */
.ch-photo.alive > img:not(.sketch) { animation: none !important; }
.ch-photo.alive > img:not(.sketch) { clip-path: none; transform: none; }
.ch-photo.alive .sketch {
  position: absolute; inset: 8px; z-index: 2; width: calc(100% - 16px); height: calc(100% - 16px);
  object-fit: cover; object-position: center 30%; border-radius: 50% 50% 2px 2px / 37.5% 37.5% 2px 2px;
  filter: grayscale(1) contrast(1.55) brightness(1.18) sepia(.12);
  clip-path: none; transform: none; opacity: 0;
  -webkit-mask-image: linear-gradient(120deg, transparent 38%, #000 62%);
          mask-image: linear-gradient(120deg, transparent 38%, #000 62%);
  -webkit-mask-size: 320% 100%; mask-size: 320% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.ch-photo.alive > img:not(.sketch) { opacity: 0; transition: opacity .2s linear 1.2s; }
.visible .ch-photo.alive > img:not(.sketch) { opacity: 1; }
.visible .ch-photo.alive .sketch { animation: sketchIn .9s ease-out .2s forwards, wash 3.2s cubic-bezier(.45,0,.2,1) 1.6s forwards; }
@keyframes sketchIn { from { opacity: 0; filter: grayscale(1) contrast(2) brightness(1.5) blur(1px); } to { opacity: 1; } }
@keyframes wash { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
@media (max-width: 760px) { .ch-photo.alive .sketch { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); } }
@media (prefers-reduced-motion: reduce) { .ch-photo.alive .sketch { display: none; } .ch-photo.alive > img:not(.sketch) { opacity: 1; } }

/* ==========================================================
   POLISH PASS
   ========================================================== */

/* opening screen: content arrives one piece at a time, gold shine on the seal */
.gate-center > * { opacity: 0; animation: gateIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.gate-center > :nth-child(1) { animation-delay: .15s; }
.gate-center > :nth-child(2) { animation-delay: .35s; }
.gate-center > :nth-child(3) { animation-delay: .55s; animation-name: sealIn; animation-duration: 1.2s; }
.gate-center > :nth-child(4) { animation-delay: .95s; }
.gate-center > :nth-child(5) { animation-delay: 1.1s; }
.gate-center > :nth-child(6) { animation-delay: 1.3s; }
.gate-center > :nth-child(7) { animation-delay: 1.5s; }
.gate-center > :nth-child(8) { animation-delay: 1.8s; }
@keyframes gateIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sealIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.gate .gate-hint { animation: gateIn .9s ease 1.8s forwards, hintPulse 2.4s ease-in-out 2.7s infinite; }
.seal { overflow: visible; }
.seal::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,250,235,.85) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  mix-blend-mode: soft-light; animation: shine 5.5s ease-in-out 2s infinite;
}
@keyframes shine { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }

/* hero: a printed-card Hindi line */
.hero-deva { font-family: "Tiro Devanagari Hindi", serif; color: var(--olive); font-size: clamp(18px, 2.2vw, 22px); margin-top: 18px; letter-spacing: .02em; }
.hero-deva + .hero-date { margin-top: 6px; }

/* marigold torans hanging over the maroon bands */
.toran {
  position: relative; z-index: 3; height: 70px; margin-bottom: -70px; pointer-events: none;
  background: url("assets/orn/toran.svg") repeat-x 0 0 / 120px 92px;
  filter: drop-shadow(0 4px 4px rgba(40,10,10,.25));
  transform-origin: 50% 0; animation: toranSway 7s ease-in-out infinite;
}
@keyframes toranSway { 0%, 100% { transform: skewX(-.6deg); } 50% { transform: skewX(.6deg); } }
.band, .closing { padding-top: calc(clamp(60px, 8vw, 84px) + 34px); }
@media (max-width: 640px) { .toran { height: 58px; margin-bottom: -58px; background-size: 100px 77px; } }

/* event cards: painted tops drift slowly, icons glow like diyas */
.ev-card.art .ev-top { position: relative; overflow: hidden; background: none; }
.ev-card.art .ev-top::before {
  content: ""; position: absolute; inset: -6%;
  background: linear-gradient(180deg, rgba(42,10,16,.22), rgba(42,10,16,.55)), var(--art) center 42% / cover no-repeat;
  animation: kenburns 16s ease-in-out infinite alternate;
}
.ev-card.art .ev-icon { position: relative; z-index: 1; animation: diyaGlow 2.8s ease-in-out infinite; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translateY(-2%); } }
@keyframes diyaGlow {
  0%, 100% { box-shadow: 0 0 0 7px rgba(255,240,210,.07), 0 0 18px 2px rgba(255,190,90,.25); }
  50% { box-shadow: 0 0 0 7px rgba(255,240,210,.12), 0 0 30px 8px rgba(255,190,90,.45); }
}
.offscreen .ev-top::before, .offscreen .ev-icon { animation-play-state: paused; }

/* footer: monogram sign-off */
.foot-mono { width: 84px; height: auto; margin: 0 auto 10px; opacity: .95; }
.foot-love { display: block; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }

@media (prefers-reduced-motion: reduce) {
  .gate-center > *, .toran, .seal::after, .ev-card.art .ev-top::before, .ev-card.art .ev-icon { animation: none !important; opacity: 1 !important; }
}
.footer { padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom)); }


/* ==========================================================
   HERO — bright painted arch (its own scene, Mehak-style)
   ========================================================== */
.hero {
  background: #f6eedf url("assets/art/mandap-tall.webp") center 40% / cover no-repeat;
}
.hero::before {
  background: radial-gradient(ellipse 48% 40% at 50% 46%, rgba(251,245,234,.82) 0%, rgba(251,245,234,.45) 60%, rgba(251,245,234,0) 100%) !important;
}
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 1.2s ease; }
.hero.has-video .hero-media video { opacity: 1; }
.hero::before { z-index: 1; }
.hero-inner { position: relative; z-index: 2; }
.scroll-cue { z-index: 2; }
@media (max-width: 640px) {
  .hero::before { background: radial-gradient(ellipse 72% 36% at 50% 47%, rgba(251,245,234,.84) 0%, rgba(251,245,234,.5) 60%, rgba(251,245,234,0) 100%) !important; }
}
/* wide screens: the tall painting stands like a card on cream paper */
@media (min-aspect-ratio: 4/5) {
  .hero {
    background:
      url("assets/art/mandap-tall.webp") center / auto 100% no-repeat,
      var(--jaali), radial-gradient(ellipse at 50% 40%, #fbf5ea 0%, #f1e2c4 100%);
    background-size: auto 100%, 64px 64px, 100% 100%;
  }
  .hero-media { left: 50%; right: auto; width: calc(100svh * 9 / 16); transform: translateX(-50%); }
  .hero::before { background: radial-gradient(ellipse 22% 38% at 50% 46%, rgba(251,245,234,.82) 0%, rgba(251,245,234,.45) 60%, rgba(251,245,234,0) 100%) !important; }
}
/* phones: lift names/date clear of the peacock */
@media (max-width: 640px) {
  .hero { place-items: start center; padding-top: 11svh !important; }
  .hero-mono { width: 112px; margin-bottom: 10px; }
  .hero-names span { font-size: 54px; }
  .hero-date { margin-top: 10px; }
  .hero::before { background: radial-gradient(ellipse 74% 34% at 50% 34%, rgba(251,245,234,.86) 0%, rgba(251,245,234,.52) 60%, rgba(251,245,234,0) 100%) !important; }
}

.ev-grid.one { grid-template-columns: minmax(0, 380px); justify-content: center; }
@media (max-width: 700px) { .ev-grid.one { grid-auto-flow: row; grid-template-columns: minmax(0, 340px); overflow: visible; margin-inline: 0; padding: 6px 0 0; } }
/* wide screens: dedicated 16:9 painting */
@media (min-aspect-ratio: 4/5) {
  .hero { background: #f6eedf url("assets/art/mandap-wide.webp") center 45% / cover no-repeat !important; }
  .hero-media { left: 0; right: 0; width: auto; transform: none; }
  .hero::before { background: radial-gradient(ellipse 26% 40% at 50% 47%, rgba(251,245,234,.84) 0%, rgba(251,245,234,.48) 60%, rgba(251,245,234,0) 100%) !important; }
}

/* ==========================================================
   HERO TEXT NEVER OVERLAPS THE PEACOCK
   ========================================================== */
/* phones: everything in the top half (the tail opens in the lower half) */
@media (max-width: 640px) {
  .hero { place-items: start center; padding-top: 8svh !important; }
  .hero-mono { width: 92px; margin-bottom: 8px; }
  .hero-names { margin-top: 8px; }
  .hero-names span { font-size: 46px; }
  .hero-names em { font-size: 34px; margin: 2px 0; }
  .hero-deva { font-size: 17px; margin-top: 8px; }
  .hero-date { font-size: 17px; margin-top: 4px; }
  .hero::before { background: radial-gradient(ellipse 82% 30% at 50% 27%, rgba(251,245,234,.9) 0%, rgba(251,245,234,.6) 58%, rgba(251,245,234,0) 100%) !important; }
}
/* wide screens: text on the left, the peacock performs centre-right */
@media (min-aspect-ratio: 4/5) {
  .hero { place-items: center start; padding-left: clamp(32px, 6vw, 110px) !important; padding-right: 0 !important; }
  .hero-inner { max-width: 440px; width: 36vw; }
  .hero::before { background: radial-gradient(ellipse 30% 52% at 22% 50%, rgba(251,245,234,.92) 0%, rgba(251,245,234,.7) 55%, rgba(251,245,234,0) 100%) !important; }
  .hero .scroll-cue { left: calc(clamp(32px, 6vw, 110px) + min(220px, 18vw)); }
}

/* ==========================================================
   SHUBH VIVAH EDITION
   ========================================================== */

/* ---- opening: royal palace doors that swing open ---- */
.gate.doors { background: transparent; perspective: 1600px; }
.gate.doors::before { z-index: 3; background: radial-gradient(ellipse 62% 46% at 50% 50%, rgba(36,8,14,.86) 0%, rgba(36,8,14,.62) 55%, rgba(36,8,14,.12) 100%); transition: opacity .6s ease; }
.gate.doors::after { z-index: 4; }
.gate.doors .gate-center { z-index: 5; }
.door { position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden; z-index: 2; backface-visibility: hidden;
  transition: transform 1.5s cubic-bezier(.6,.02,.25,1) .25s, filter 1.5s ease .25s; will-change: transform; }
.door::before { content: ""; position: absolute; top: 0; bottom: 0; width: 199.2%; background: #4a121c url("assets/art/doors-768.webp") center / cover no-repeat; }
.door-l { left: 0; transform-origin: 0 50%; box-shadow: inset -10px 0 18px rgba(0,0,0,.35); }
.door-l::before { left: 0; }
.door-r { right: 0; transform-origin: 100% 50%; box-shadow: inset 10px 0 18px rgba(0,0,0,.35); }
.door-r::before { right: 0; }
@media (min-width: 900px) { .door::before { background-image: url("assets/art/doors.webp"); } }
/* warm light leaking through the seam */
.door-glow { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(180deg, rgba(255,214,140,0), rgba(255,226,170,.95) 50%, rgba(255,214,140,0));
  box-shadow: 0 0 22px 6px rgba(255,200,120,.45); animation: seamGlow 3.2s ease-in-out infinite; transition: opacity .4s ease; }
@keyframes seamGlow { 0%,100% { opacity: .55 } 50% { opacity: 1 } }
.gate.doors.opening { opacity: 1; visibility: visible; transition: visibility 0s 1.75s; pointer-events: none; }
.gate.doors.opening::before, .gate.doors.opening::after, .gate.doors.opening .door-glow { opacity: 0; }
.gate.doors.opening .gate-center { opacity: 0; transform: scale(.96); transition: opacity .45s ease, transform .45s ease; }
.gate.doors.opening .door-l { transform: rotateY(-98deg); filter: brightness(.7); }
.gate.doors.opening .door-r { transform: rotateY(98deg); filter: brightness(.7); }
@media (prefers-reduced-motion: reduce) { .door { transition: opacity .6s ease; } .gate.doors.opening .door { transform: none; opacity: 0; } }

/* ---- hero: sunlit mandap painting ---- */
.hero { background: #f4e9d4 url("assets/art/mandap-tall.webp") center bottom / cover no-repeat !important; }
@media (max-width: 640px) { .hero { background-image: url("assets/art/mandap-tall-768.webp") !important; } }
@media (min-aspect-ratio: 4/5) {
  .hero { background: #f4e9d4 url("assets/art/mandap-wide.webp") 20% center / cover no-repeat !important; }
}
@media (min-aspect-ratio: 4/5) and (max-width: 1400px) { .hero { background-image: url("assets/art/mandap-wide-1300.webp") !important; } }
.hero-media { overflow: hidden; }
/* the sacred fire breathes */
.havan-glow { position: absolute; left: 50%; top: 71.5%; width: 34vw; max-width: 200px; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,.55) 0%, rgba(255,170,70,.22) 40%, rgba(255,170,70,0) 70%);
  mix-blend-mode: screen; animation: havan 2.6s ease-in-out infinite; }
@media (min-aspect-ratio: 4/5) { .havan-glow { left: 68%; top: 70%; width: 14vw; max-width: 240px; } }
@keyframes havan { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.9) } 40% { opacity: 1; transform: translate(-50%,-52%) scale(1.06) } 70% { opacity: .75; transform: translate(-50%,-50%) scale(.97) } }
/* morning light slowly sweeping the courtyard */
.hero-media::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, rgba(255,247,226,0) 38%, rgba(255,247,226,.35) 50%, rgba(255,247,226,0) 62%);
  animation: sunSweep 11s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes sunSweep { 0% { transform: translateX(-45%) } 60%,100% { transform: translateX(45%) } }
.offscreen .havan-glow, .offscreen .hero-media::after { animation-play-state: paused; }

/* phones: text in the open cream sky above the mandap dome */
@media (max-width: 640px) {
  .hero { padding-top: 13svh !important; }
  .hero::before { background: radial-gradient(ellipse 80% 26% at 50% 28%, rgba(251,245,234,.75) 0%, rgba(251,245,234,.4) 60%, rgba(251,245,234,0) 100%) !important; }
}
/* wide: text in the empty left half, mandap on the right */
@media (min-aspect-ratio: 4/5) {
  .hero::before { background: radial-gradient(ellipse 34% 50% at 22% 50%, rgba(251,245,234,.8) 0%, rgba(251,245,234,.5) 55%, rgba(251,245,234,0) 100%) !important; }
}

/* ---- events: noon in ivory, night in maroon ---- */
.ev-card.night { background: linear-gradient(180deg, #5a1824 0%, #3a0f17 100%); border-color: rgba(217,187,131,.4); box-shadow: 0 22px 48px rgba(58,15,23,.28); }
.ev-card.night::after { border-color: rgba(217,187,131,.35); }
.ev-card.night h4 { color: #f6e7c8; }
.ev-card.night .ev-time { color: #f1c76d; }
.ev-card.night .ev-time small { color: #d9bb83; }
.ev-card.night .ev-desc { color: rgba(246,231,200,.82); }
.ev-card.night .ev-venue { color: rgba(246,231,200,.8); }
.ev-card.night .ev-venue b { color: #f6e7c8; }
.ev-card.night .ev-map { color: #f1c76d; border-color: rgba(241,199,109,.5); }
.ev-card.night .ev-top::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, rgba(58,15,23,0), #5a1824); }

/* phones: sky stretched painting anchored to the top; names on one line so the text stays above the dome */
@media (max-width: 640px) {
  .hero { background-position: center top !important; padding-top: 11svh !important; }
  .hero-mono { width: 78px; margin-bottom: 6px; }
  .hero-names { margin-top: 6px; line-height: 1; white-space: nowrap; }
  .hero-names span, .hero-names em { display: inline; }
  .hero-names span { font-size: clamp(36px, 11vw, 46px); }
  .hero-names em { font-size: clamp(30px, 9vw, 38px); margin: 0 .14em; }
  .hero-deva { margin-top: 6px; }
}
@media (max-width: 640px) { .havan-glow { top: 76%; width: 40vw; } }
.ev-card.night .ev-time { background: #3a0f17; border-color: rgba(241,199,109,.55); box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* wide screens: symmetrical mandap low in the centre, text centred in the sky above it */
@media (min-aspect-ratio: 4/5) {
  .hero { background-position: center bottom !important; place-items: start center !important; padding: 9svh 24px 0 !important; text-align: center; }
  .hero-inner { max-width: 900px; width: auto; margin: 0 auto; }
  .hero-mono { width: clamp(72px, 10vh, 104px); margin-bottom: 6px; }
  .hero-names { margin-top: 6px; line-height: 1; white-space: nowrap; }
  .hero-names span, .hero-names em { display: inline; }
  .hero-names span { font-size: clamp(48px, min(6vw, 9vh), 86px); }
  .hero-names em { font-size: clamp(38px, min(4.6vw, 7vh), 66px); margin: 0 .16em; }
  .hero-deva { margin-top: 6px; }
  .hero-date { margin-top: 4px; }
  .hero::before { background: radial-gradient(ellipse 36% 30% at 50% 26%, rgba(251,245,234,.7) 0%, rgba(251,245,234,.35) 60%, rgba(251,245,234,0) 100%) !important; }
  .hero .scroll-cue { left: 50% !important; }
  .havan-glow { left: 50%; top: 84%; width: 12vw; }
}
@media (min-aspect-ratio: 4/5) and (max-height: 780px) {
  .hero { padding-top: 5svh !important; }
  .hero-mono { width: 60px; margin-bottom: 2px; }
  .hero-names span { font-size: min(6vw, 8.5vh); }
  .hero-date { font-size: 18px; }
}
@media (min-aspect-ratio: 17/9) { .hero { background-position: center 22% !important; } .havan-glow { top: 90%; } }

/* phones: living mandap film over the matching painting */
.hero-media video { position: absolute; inset: 0; object-position: center top; }
.hero.has-video .havan-glow { display: none; }

/* ==========================================================
   HERO — slow breathing zoom (anchored on the mandap dome so the art never drifts into the text)
   ========================================================== */
.hero-media { background: inherit; transform-origin: 50% 46%; animation: heroZoom 18s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1) } to { transform: scale(1.08) } }
.offscreen .hero-media { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-media { animation: none; } }

/* ==========================================================
   INVITATION — a framed card
   ========================================================== */
.invite-card {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #fffaf1 0%, #f9f0e0 100%);
  border: 1px solid rgba(176,138,78,.55); outline: 1px solid rgba(176,138,78,.3); outline-offset: -11px;
  border-radius: 4px; padding: clamp(38px,5vw,52px) clamp(22px,4vw,44px) clamp(34px,4.5vw,46px);
  box-shadow: 0 26px 60px rgba(74,18,28,.09), 0 2px 8px rgba(74,18,28,.04);
}
.ic-corner { position: absolute; width: 30px; height: 30px; border: 1.5px solid var(--gold); pointer-events: none; }
.ic-corner::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.ic-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.ic-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.ic-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.ic-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.ic-corner.tl::after { top: 6px; left: 6px; } .ic-corner.tr::after { top: 6px; right: 6px; }
.ic-corner.bl::after { bottom: 6px; left: 6px; } .ic-corner.br::after { bottom: 6px; right: 6px; }
.invite-card .ganesha { width: 64px; margin: 0 auto 8px; }
.ic-invocation { font-family: "Tiro Devanagari Hindi", serif; font-size: 17px; color: var(--maroon); letter-spacing: .02em; }
.invite-card .invite-lead { margin-top: 14px; font-weight: 500; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.invite-lead b { font-weight: 700; color: var(--maroon); }
.ic-couple { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: clamp(10px, 3vw, 30px); margin-top: 30px; }
.ic-who h3 { font-family: var(--serif); font-weight: 700; color: var(--maroon); font-size: clamp(38px, 5vw, 56px); line-height: 1; letter-spacing: -.01em; }
.ic-rel { margin-top: 12px; font-size: 10px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.ic-par { margin-top: 5px; font-family: var(--serif); font-weight: 600; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.35; color: #3f1a22; }
.ic-amp { padding-top: 4px; }
.ic-amp span {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7a2433, #4a121c); color: #f1c76d;
  font-family: var(--script); font-size: 30px; line-height: 1; padding-top: 4px;
  box-shadow: 0 0 0 4px #fbf3e4, 0 0 0 5px rgba(176,138,78,.6), 0 8px 18px rgba(74,18,28,.22);
}
.ic-divider { width: 140px; height: auto; margin: 28px auto 8px; opacity: .9; }
.ic-date { font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 2vw, 22px); letter-spacing: .03em; color: var(--maroon); }
.ic-place { margin-top: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); }
@media (max-width: 420px) {
  .invite-card { padding-inline: 18px; }
  .ic-who h3 { font-size: 34px; }
  .ic-par { font-size: 15px; }
  .ic-amp span { width: 42px; height: 42px; font-size: 25px; }
  .ic-couple { gap: 8px; }
}

/* ==========================================================
   STORY — a classmates' scrapbook: taped photo cards on faint notebook lines
   ========================================================== */
#story { background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(176,138,78,.12) 35px 36px); padding-bottom: clamp(70px, 9vw, 110px); }
.story-book { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(20px, 2.4vw, 32px); max-width: 1180px; margin: clamp(34px, 5vw, 56px) auto 0; align-items: start; }
.st-card {
  position: relative; background: #fffdf8; padding: 12px 12px 22px; rotate: -1.6deg;
  box-shadow: 0 16px 36px rgba(74,18,28,.12), 0 2px 6px rgba(74,18,28,.06);
  transition: opacity 1s ease, transform 1s ease, rotate .6s ease, box-shadow .6s ease;
}
.st-card:nth-child(even) { rotate: 1.5deg; margin-top: 38px; }
.st-card:nth-child(3) { rotate: -.8deg; }
@media (hover: hover) { .st-card:hover { rotate: 0deg; box-shadow: 0 26px 50px rgba(74,18,28,.18); } }
.st-tape {
  position: absolute; top: -13px; left: 50%; z-index: 3; width: 92px; height: 26px; translate: -50% 0; rotate: -4deg;
  background: linear-gradient(180deg, rgba(232,206,150,.78), rgba(217,187,131,.7));
  box-shadow: 0 1px 3px rgba(74,18,28,.12);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0) ; mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0);
}
.st-card:nth-child(even) .st-tape { rotate: 3deg; }
.st-card .ch-photo { margin: 0; padding: 0; border: 0; background: none; border-radius: 2px; }
.st-card .ch-photo img { aspect-ratio: 4/5; border-radius: 2px; object-position: center 30%; }
.st-card .ch-photo.alive .sketch { inset: 0; width: 100%; height: 100%; border-radius: 2px; }
.st-body { position: relative; padding: 18px 6px 0; text-align: left; }
.st-no { position: absolute; right: 2px; top: 6px; font-family: var(--serif); font-weight: 700; font-size: 52px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(176,138,78,.65); }
.st-body h3 { margin-top: 8px; font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.05; color: var(--maroon); padding-right: 54px; }
.st-body p:last-child { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
@media (max-width: 1060px) {
  .story-book { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; row-gap: 46px; }
}
@media (max-width: 600px) {
  .story-book { grid-template-columns: minmax(0,1fr); row-gap: 40px; }
  .st-card { width: 88%; justify-self: start; }
  .st-card:nth-child(even) { justify-self: end; margin-top: 0; }
  .st-body h3 { font-size: 26px; }
}
/* wide screens: the living mandap film sits exactly where the painting does */
@media (min-aspect-ratio: 4/5) { .hero-media video { object-position: center bottom; } }
@media (min-aspect-ratio: 17/9) { .hero-media video { object-position: center 22%; } }
