/* ══════════════════════════════════════════════════════════
   South Indian wedding invitation — one continuous sheet of
   ivory paper, antique gold foil, maroon silk. Mobile only.
   ══════════════════════════════════════════════════════════ */
:root {
  --paper: #f4e4ca;
  --ivory: #f7ebd2;
  --cream: #f3e2c0;
  --gold: #b88932;
  --gold-deep: #8c621d;
  --gold-light: #e2c58a;
  --maroon: #651522;
  --burgundy: #4a0e18;
  --ink: #3a2418;
  --ink-soft: #6a4b35;
  --foil: linear-gradient(100deg, #7d5518 0%, #b88932 22%, #e3c584 40%, #a87a2a 58%, #d6b46c 76%, #7d5518 100%);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  --script: 'Pinyon Script', 'Great Vibes', cursive;
  --names: 'Cormorant Garamond', 'Cormorant', Georgia, serif; /* couple names + initials: clear upright serif, no script (client revision) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(44px, 12.5vw, 56px);
  /* 1% of the small viewport. Older Android browsers, WhatsApp/Instagram in-app views and iOS < 15.4 do not
     know svh and would drop every rule using it (hero text jumping to the top, the couple at full size):
     they get 1vh here, then js/app.js measures the real visible height for them */
  --sv: 1vh;
  color-scheme: light;
}
@supports (height: 1svh) { :root { --sv: 1svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-sealed, html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background-color: var(--paper);
  /* handmade paper: fine fibre noise over the ivory */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.boot { position: fixed; inset: 0; z-index: 99; background: #3a0b13 center / cover no-repeat; }

/* the sheet: one column, warm unevenness printed into the paper as it runs down */
.invitation {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: clip;
  background:
    radial-gradient(60% 9% at 50% 13%, rgba(255, 249, 235, .75), transparent 70%),
    radial-gradient(70% 7% at 0% 28%, rgba(222, 186, 128, .18), transparent 70%),
    radial-gradient(60% 8% at 100% 45%, rgba(222, 186, 128, .16), transparent 70%),
    radial-gradient(70% 7% at 50% 60%, rgba(255, 249, 235, .6), transparent 70%),
    radial-gradient(60% 8% at 0% 76%, rgba(222, 186, 128, .16), transparent 70%);
}

/* ── typography ───────────────────────────────────────── */
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--caps);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.foil, .script-title, .names .name, .family-person, .c-day, .save-date, .monogram span {
  background: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.script-title {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(54px, 16vw, 66px);
  line-height: 1.15;
  padding: 0 .15em;
}
.prose { margin: 14px auto; font-size: 18px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.prose.small { font-size: 16.5px; color: var(--ink-soft); }

.ico { width: 28px; height: 28px; display: block; overflow: visible; }

/* ── sections ─────────────────────────────────────────── */
.sec { position: relative; padding: 18px 0 8px; }
.sec-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), 320px);
  margin: 0 auto;
  text-align: center;
}
.sec-inner.wide { width: min(100% - 40px, 380px); }
.sec-head { margin-bottom: 18px; }
.lotus-orn { display: inline-block; }
.ico-lotus { width: 38px; height: 38px; margin: 0 auto 6px; }
.sec-head h2 {
  margin: 0;
  font-family: var(--caps);
  font-weight: 500;
  font-size: clamp(18px, 5.2vw, 21px);
  letter-spacing: .2em;
  line-height: 1.35;
  color: var(--maroon);
  text-transform: uppercase;
}
.sec-sub { margin: 8px auto 0; max-width: 270px; font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }

/* gold thread between sections: the sheet continues, nothing closes */
.gold-thread { display: flex; flex-direction: column; align-items: center; height: 104px; margin: 6px auto; width: 20px; }
.gold-thread i { flex: 1; width: 1px; background: linear-gradient(rgba(184, 137, 50, 0), rgba(184, 137, 50, .7)); }
.gold-thread i:last-child { background: linear-gradient(rgba(184, 137, 50, .7), rgba(184, 137, 50, 0)); }
.ico-thread { width: 16px; height: 11px; margin: 5px 0; }

.gold-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto; width: 190px; }
.gold-divider i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(184, 137, 50, 0), rgba(184, 137, 50, .8)); }
.gold-divider i:last-child { background: linear-gradient(90deg, rgba(184, 137, 50, .8), rgba(184, 137, 50, 0)); }
.ico-mini { width: 26px; height: 17px; }

.mandala { position: absolute; left: 50%; top: 50%; width: 270px; height: 270px; transform: translate(-50%, -50%); opacity: .13; stroke-width: .7; pointer-events: none; z-index: -1; }

/* ── side garlands: carved pillar slices with jasmine, entering from the edges ── */
.vine {
  position: absolute;
  z-index: 1;
  width: clamp(70px, 21vw, 104px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent);
  will-change: transform;
}
.vine img { width: 100%; height: 100%; object-fit: cover; }
.vine-l { left: 0; }
.vine-r { right: 0; }
.vine-l img { object-position: left top; }
.vine-r img { object-position: right top; }
.vine-soft { opacity: .6; }

/* ══ intro ═══════════════════════════════════════════════ */
.intro { position: fixed; inset: 0; z-index: 100; background: #3a0b13; transition: opacity 1.3s ease .45s, background-color .3s; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.7s cubic-bezier(.45, 0, .2, 1); }
/* hand-off: tilt the final arch frame down onto the hero's temple, then dissolve */
html.is-open .intro { background-color: transparent; }
html.is-open .intro-video { transform: translateY(9%) scale(1.08); }
.intro-tap { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.intro-glow {
  position: absolute; left: 50%; top: 47.6%; width: 34vmin; height: 34vmin; max-width: 200px; max-height: 200px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 140, .38), rgba(255, 214, 140, 0) 65%);
  animation: seal 2.6s ease-in-out infinite; pointer-events: none;
}
.intro.is-playing .intro-glow { opacity: 0; animation: none; transition: opacity .4s; }
@keyframes seal { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.85); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.intro-bloom { position: absolute; inset: -20%; background: radial-gradient(closest-side, rgba(255, 238, 200, .95), rgba(255, 220, 160, 0)); opacity: 0; pointer-events: none; }
html.is-open .intro { opacity: 0; pointer-events: none; }
html.is-open .intro-bloom { animation: bloom 1.6s ease-out; }
@keyframes bloom { 0% { opacity: 0; } 35% { opacity: .55; } 100% { opacity: 0; } }

/* ══ hero ════════════════════════════════════════════════ */
.hero { position: relative; }
.hero-stage {
  position: relative;
  height: 100vh; height: calc(100 * var(--sv));
  min-height: 620px;
  overflow: hidden;
}
.hero-arch {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 80%, rgba(0, 0, 0, .55) 90%, transparent 100%);
  mask-image: linear-gradient(#000 80%, rgba(0, 0, 0, .55) 90%, transparent 100%);
}
.hero-bell { position: absolute; top: calc(5.5 * var(--sv)); height: calc(23 * var(--sv)); z-index: 2; }
.hero-bell.bell-l { left: 13%; }
.hero-bell.bell-r { right: 13%; }
.bell img { height: 100%; width: auto; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
.bell-r img { animation-delay: -3.2s; }
@keyframes sway { 0%, 100% { transform: rotate(1.4deg); } 50% { transform: rotate(-1.4deg); } }

.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; top: calc(11.5 * var(--sv)); text-align: center; padding: 0 64px; }
.ico-kalasha { width: min(48px, calc(5.8 * var(--sv))); height: min(48px, calc(5.8 * var(--sv))); margin: 0 auto; stroke-width: 1.1; }
.invocation { margin: 0 0 min(10px, calc(1.2 * var(--sv))); font-style: italic; font-size: 13.5px; letter-spacing: .06em; color: var(--gold-deep); }
.names { margin: 2px 0 0; font-weight: 400; line-height: 1; }
.names .name {
  display: block;
  font-family: var(--names);
  font-weight: 700; /* client, 2026-10-28: larger and bolder */
  font-size: min(17vw, calc(8.2 * var(--sv)), 74px);
  letter-spacing: .02em;
  line-height: 1.1;
  padding: 0 .2em;
  filter: drop-shadow(0 1px 0 rgba(255, 248, 230, .8));
}
.names .amp { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: min(30px, calc(3.6 * var(--sv))); line-height: 1; color: var(--maroon); }
.tagline { margin: min(8px, calc(1 * var(--sv))) 0 0; font-style: italic; font-size: 17px; color: var(--ink-soft); }
.hero-divider { margin: min(10px, calc(1.2 * var(--sv))) auto min(8px, calc(1 * var(--sv))); width: 170px; }
.hero-date { margin: 0; font-family: var(--caps); color: var(--maroon); display: flex; flex-direction: column; gap: 2px; }
.hero-date span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.hero-date b { font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.hero-date em { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; color: var(--ink-soft); }

.hero-couple-wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(6 * var(--sv)); display: flex; justify-content: center; pointer-events: none; }
/* --couple-fit (js/app.js) is the room left between the date and the bottom, so the couple never meets the text */
.hero-couple { height: min(calc(32 * var(--sv)), var(--couple-fit, 100vh)); position: relative; transition: opacity 1.8s ease 1.1s, transform 2.4s var(--ease) 1.1s; }
.hero-couple img { height: 100%; width: auto; filter: drop-shadow(0 12px 14px rgba(74, 14, 24, .25)); }
.hero-couple::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -6px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74, 30, 14, .28), transparent); z-index: -1; }
html.is-sealed .hero-couple { opacity: 0; transform: translateY(22px); }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  font-family: var(--caps); font-size: 9px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep);
  transition: opacity 1.2s ease 2.6s;
}
.scroll-cue i { width: 1px; height: 24px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html.is-sealed .scroll-cue { opacity: 0; }


/* staggered entrance of the hero words once the doors have opened */
.h-in { opacity: 0; transform: translateY(14px); filter: blur(3px); }
html.is-open .h-in { opacity: 1; transform: none; filter: none; transition: opacity 1.4s ease, transform 1.6s var(--ease), filter 1.4s ease; transition-delay: calc(.7s + var(--h) * .13s); }

/* petals */
.petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -4%; width: calc(9px * var(--s)); height: calc(12px * var(--s));
  border-radius: 70% 0 70% 0; opacity: 0;
  background: radial-gradient(ellipse at 30% 30%, #b8323f, #7a1424 70%);
  animation: fall var(--d) linear var(--delay) infinite;
}
html.is-sealed .petal { animation-play-state: paused; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translate3d(22px, calc(52 * var(--sv)), 0) rotate(160deg); }
  90% { opacity: .7; }
  100% { transform: translate3d(-12px, calc(104 * var(--sv)), 0) rotate(320deg); opacity: 0; }
}

/* ══ welcome ═════════════════════════════════════════════ */
.welcome { padding-top: 34px; }
.welcome .eyebrow { margin-top: 2px; }
.welcome-mandala { width: 300px; height: 300px; top: 40%; }
.pair { margin: 4px 0 0; display: flex; flex-direction: column; align-items: center; }
.pair-name { font-family: var(--caps); font-size: 21px; letter-spacing: .26em; color: var(--maroon); text-transform: uppercase; padding-left: .26em; }
.pair-weds { font-family: var(--script); font-size: 30px; line-height: 1; color: var(--gold); margin: 2px 0; }

/* ══ story ═══════════════════════════════════════════════ */
.arch-window { margin: 6px auto 30px; width: 236px; position: relative; }
.arch-window::before {
  content: ''; position: absolute; inset: -9px; border: 1px solid rgba(184, 137, 50, .65);
  border-radius: 130px 130px 8px 8px; pointer-events: none;
}
.arch-window-img { height: 318px; border-radius: 118px 118px 4px 4px; overflow: hidden; box-shadow: 0 18px 30px -18px rgba(74, 14, 24, .55); }
.arch-window-img img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { position: relative; padding-bottom: 26px; }
.chapter + .chapter::before { content: ''; display: block; width: 1px; height: 34px; margin: 0 auto 14px; background: linear-gradient(rgba(184, 137, 50, 0), rgba(184, 137, 50, .75)); }
.medallion {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fbf3e2, #f1dfbf);
  box-shadow: 0 0 0 1px rgba(184, 137, 50, .8), 0 0 0 4px var(--paper), 0 0 0 5px rgba(184, 137, 50, .35);
}
.medallion .ico { width: 30px; height: 30px; }
.chapter h3 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 31px; line-height: 1.2; color: var(--maroon); }
.when { margin: 0; font-family: var(--caps); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.chapter .prose { margin-top: 8px; }

/* ══ families ════════════════════════════════════════════ */
.family { padding: 4px 0; }
.family-person { margin: 2px 0 0; font-family: var(--names); font-weight: 600; font-size: 44px; letter-spacing: .02em; line-height: 1.2; padding: 0 .2em; }
.family-rel { margin: 0; font-style: italic; font-size: 16px; color: var(--ink-soft); }
.family-parents { margin: 6px 0 0; font-family: var(--caps); font-size: 13.5px; letter-spacing: .07em; line-height: 1.75; color: var(--maroon); }
.family-gp { margin: 8px auto 0; max-width: 250px; font-style: italic; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.family-amp { position: relative; height: 120px; display: grid; place-items: center; }
.family-amp span { font-family: var(--serif); font-style: italic; font-size: 52px; color: var(--gold); line-height: 1; }
.amp-mandala { width: 120px; height: 120px; opacity: .22; }

/* ══ events ══════════════════════════════════════════════ */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; position: relative; text-align: left; }
.timeline::before { content: ''; position: absolute; left: 26px; top: 20px; bottom: 30px; width: 1px; background: linear-gradient(rgba(184, 137, 50, 0), rgba(184, 137, 50, .7) 8%, rgba(184, 137, 50, .7) 92%, rgba(184, 137, 50, 0)); }
.t-item { position: relative; padding: 0 0 26px 70px; min-height: 64px; }
.t-medal {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 53px; height: 53px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fbf3e2, #f1dfbf);
  box-shadow: 0 0 0 1px rgba(184, 137, 50, .8), 0 0 0 4px var(--paper);
}
.t-medal .ico { width: 28px; height: 28px; }
.t-date { margin: 2px 0 2px; font-family: var(--caps); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.t-name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.15; color: var(--maroon); }
.t-venue { margin: 2px 0 0; font-style: italic; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.t-text { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.t-item.is-main .t-medal { background: radial-gradient(circle at 50% 35%, #7c1d2c, #4a0e18); box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--paper), 0 0 0 5px rgba(184, 137, 50, .5), 0 8px 18px -6px rgba(74, 14, 24, .5); }

/* ══ ceremony ════════════════════════════════════════════ */
.ceremony { padding-top: 10px; }
.shrine { position: relative; width: min(100%, 290px); aspect-ratio: 3 / 4; margin: 0 auto; }
.temple-arch { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 1.3; overflow: visible; }
.temple-arch .arch-inner { stroke-width: .7; }
.shrine::before { /* the warm glow inside the sanctum */
  content: ''; position: absolute; inset: 14% 8% 0; border-radius: 45% 45% 0 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 246, 225, .95), rgba(255, 246, 225, 0) 70%);
}
.shrine-copy { position: relative; padding-top: 25%; }
.shrine-copy .ico-kalasha { width: 40px; height: 40px; }
.c-weekday { margin: 6px 0 0; font-family: var(--caps); font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: var(--maroon); padding-left: .36em; }
.c-day { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 104px; line-height: .95; }
.c-month { margin: 0; font-family: var(--caps); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--maroon); padding-left: .3em; }
.c-div { width: 150px; margin: 10px auto 6px; }
.c-time { margin: 0; font-style: italic; font-size: 19px; color: var(--ink); }
.c-muhurtham { margin: 4px auto 0; max-width: 200px; font-family: var(--caps); font-size: 9.5px; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; color: var(--gold-deep); }
.shrine-bell { position: absolute; top: 4%; height: 46%; z-index: 2; }
.shrine-bell.bell-l { left: -15%; }
.shrine-bell.bell-r { right: -15%; }

.deepam { position: relative; width: min(100%, 300px); margin: -6px auto 0; }
.deepam img { width: 100%; height: auto; }
.flame {
  position: absolute; width: calc(30px * var(--s, 1)); height: calc(40px * var(--s, 1)); transform: translate(-50%, -58%);
  border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 120, .75), rgba(255, 170, 60, .25) 55%, rgba(255, 170, 60, 0));
  animation: flicker 2.3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.37s);
}
@keyframes flicker {
  0% { opacity: .55; transform: translate(-50%, -58%) scale(.9, .95); }
  35% { opacity: .95; transform: translate(-50%, -58%) scale(1.06, 1.1); }
  70% { opacity: .7; transform: translate(-50%, -58%) scale(.96, 1); }
  100% { opacity: 1; transform: translate(-50%, -58%) scale(1.04, 1.06); }
}
.ceremony .prose { margin-top: 8px; }

/* ══ venue ═══════════════════════════════════════════════ */
.venue-frame { position: relative; margin: 8px auto 20px; width: 100%; height: 300px; border-radius: 150px 150px 4px 4px; overflow: hidden; box-shadow: 0 20px 32px -20px rgba(74, 14, 24, .6); }
.venue-frame::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(240, 214, 160, .8); border-radius: 142px 142px 2px 2px; pointer-events: none; }
.venue-frame img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; object-position: 50% 50%; } /* the banquet aisle centred: chandeliers, flower stand and arches; the photographer's corner mark falls outside the arch; extra height for the parallax drift */
.venue-name { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--maroon); }
.venue-addr { margin: 6px auto 20px; max-width: 260px; font-style: italic; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }

/* ══ countdown ═══════════════════════════════════════════ */
.clock { display: flex; justify-content: center; align-items: flex-start; gap: clamp(6px, 2.4vw, 12px); }
.clock-unit { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.clock-n { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 12vw, 48px); line-height: 1; color: var(--maroon); font-variant-numeric: tabular-nums lining-nums; }
.clock-l { margin-top: 6px; font-family: var(--caps); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.clock-dot { width: 5px; height: 5px; margin-top: 20px; background: var(--gold); transform: rotate(45deg); opacity: .8; }
.clock-done { font-style: italic; }

/* ══ gallery ═════════════════════════════════════════════ */
.plates { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 12px; }
.plate {
  position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--cream);
  border-radius: 3px; box-shadow: 0 14px 24px -16px rgba(74, 14, 24, .55);
}
.plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.plate.is-in img { transform: scale(1); }
.plate::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(240, 214, 160, .7); border-radius: inherit; pointer-events: none; }
.plate-arch { grid-column: span 2; justify-self: center; width: 78%; aspect-ratio: 4 / 5; border-radius: 999px 999px 3px 3px; }
.plate-arch::after { border-radius: 999px 999px 2px 2px; }
.plate-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.plate-tall { grid-row: span 2; }
.plate-square { aspect-ratio: 1; }
.plate-tall + .plate-square { margin-top: 0; }

.viewer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; flex-direction: column; background: rgba(36, 8, 13, .94); opacity: 0; transition: opacity .35s ease; }
.viewer.is-on { opacity: 1; }
.viewer-img { max-width: 92vw; max-height: 74vh; border-radius: 3px; box-shadow: 0 0 0 1px rgba(226, 197, 138, .5); }
.viewer-cap { margin: 14px 24px 0; text-align: center; font-style: italic; font-size: 16px; color: #ecd9b4; }
.viewer-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--gold-light); cursor: pointer; }
.viewer-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; background: rgba(74, 14, 24, .5); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.viewer-nav .ico { width: 20px; height: 20px; }
.viewer-nav.prev { left: 8px; }
.viewer-nav.prev .ico { transform: scaleX(-1); }
.viewer-nav.next { right: 8px; }

/* ══ save the date ═══════════════════════════════════════ */
.save-date { margin: 4px 0 20px; display: flex; justify-content: center; align-items: center; gap: 12px; font-family: var(--caps); font-weight: 500; font-size: clamp(30px, 9.5vw, 38px); letter-spacing: .08em; }
.save-date i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); opacity: .75; }

/* ══ buttons ═════════════════════════════════════════════ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: linear-gradient(180deg, #7a1c2b, #55101b);
  box-shadow: inset 0 0 0 3px #62141f, inset 0 0 0 4px rgba(226, 197, 138, .45), 0 10px 20px -12px rgba(74, 14, 24, .8);
  color: #efd7a3; text-decoration: none; cursor: pointer;
  font-family: var(--caps); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .3s ease;
}
.btn::after { /* slow foil glint */
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 233, 180, .28), transparent);
  transform: skewX(-18deg); animation: glint 6.5s ease-in-out infinite;
}
@keyframes glint { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn:active { transform: scale(.98); }
.ico-btn { width: 17px; height: 17px; stroke: #efd7a3; stroke-width: 2.2; }
.btn-ghost { background: transparent; color: var(--maroon); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-ghost .ico-btn { stroke: var(--maroon); }

/* ══ forms ═══════════════════════════════════════════════ */
.field { display: block; margin: 0 0 16px; text-align: center; }
.field > span { display: block; margin-bottom: 4px; font-family: var(--caps); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(184, 137, 50, .6); border-radius: 0;
  padding: 8px 4px; background: transparent; text-align: center;
  font-family: var(--serif); font-size: 19px; color: var(--ink);
}
.field textarea { text-align: left; border: 1px solid rgba(184, 137, 50, .5); border-radius: 6px; padding: 12px 14px; background: rgba(255, 250, 238, .5); resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(106, 75, 53, .55); font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 250, 238, .6); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--maroon); }
.stepper { display: inline-flex; align-items: center; gap: 18px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(184, 137, 50, .7); background: rgba(255, 250, 238, .5); color: var(--maroon); font-size: 20px; line-height: 1; cursor: pointer; }
.stepper output { min-width: 26px; font-size: 26px; font-weight: 500; color: var(--maroon); }
.rsvp-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.rsvp-actions .btn { min-width: 230px; }
.rsvp-note { margin: 16px 0 0; font-style: italic; font-size: 15px; color: var(--ink-soft); }
.wish-form .btn { margin-top: 4px; }

/* ══ getting there ═══════════════════════════════════════ */
.folds { text-align: left; }
.fold { border-top: 1px solid rgba(184, 137, 50, .35); }
.fold:last-child { border-bottom: 1px solid rgba(184, 137, 50, .35); }
.fold summary { display: flex; align-items: center; gap: 14px; padding: 14px 2px; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .ico { width: 26px; height: 26px; flex: none; }
.fold summary span { flex: 1; font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.fold-mark { position: relative; width: 12px; height: 12px; }
.fold-mark::before, .fold-mark::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transition: transform .3s ease; }
.fold-mark::after { transform: rotate(90deg); }
.fold[open] .fold-mark::after { transform: rotate(0); }
.fold-body { padding: 0 2px 16px 40px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.fold-body p { margin: 0; }
.fold-body a { display: inline-block; margin-top: 8px; font-family: var(--caps); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }

/* ══ contact ═════════════════════════════════════════════ */
.seals { display: flex; justify-content: center; gap: 24px; }
.seal { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.seal .ico {
  box-sizing: content-box; width: 24px; height: 24px; padding: 16px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #7c1d2c, #4a0e18);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--paper), 0 0 0 5px rgba(184, 137, 50, .45), 0 10px 18px -8px rgba(74, 14, 24, .6);
  stroke: #ecd3a0; stroke-width: 2;
}
.seal span { font-family: var(--caps); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--maroon); }

/* ══ gifting ═════════════════════════════════════════════ */
.gifting .prose { margin-top: 0; }
.gift-panel { margin: 20px auto 0; padding: 16px 0 4px; animation: unfold .6s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.gift-upi { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 21px; font-weight: 600; color: var(--maroon); }
.copy { width: 36px; height: 36px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.copy .ico { width: 20px; height: 20px; }
.copy.is-done { animation: done .6s ease; }
@keyframes done { 50% { transform: scale(1.25); } }
.gift-name { margin: 2px 0 0; font-style: italic; font-size: 15px; color: var(--ink-soft); }

/* ══ wishes ══════════════════════════════════════════════ */
.wishes-lamp { width: min(100%, 250px); margin: 0 auto 6px; }

/* ══ thank you + finale ══════════════════════════════════ */
.thanks { padding-bottom: 0; }
.thanks .script-title { margin-top: 2px; }
.thanks-heart .ico { width: 24px; height: 24px; margin: 6px auto 0; stroke: var(--maroon); fill: rgba(101, 21, 34, .12); }
.signoff { margin: 12px auto 0; max-width: 250px; font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; line-height: 1.7; text-transform: uppercase; color: var(--gold-deep); }
.finale { position: relative; margin-top: -10px; aspect-ratio: 941 / 1032; }
.finale::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(40, 12, 6, 0), rgba(40, 12, 6, .45)); pointer-events: none; }
.finale img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, .6) 14%, #000 34%);
  mask-image: linear-gradient(transparent, rgba(0, 0, 0, .6) 14%, #000 34%);
}
.diya-glow {
  position: absolute; width: calc(34px * var(--s, 1)); height: calc(34px * var(--s, 1)); transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 208, 120, .7), rgba(255, 170, 60, 0));
  animation: flicker2 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.41s);
}
@keyframes flicker2 { 0% { opacity: .35; transform: translate(-50%, -50%) scale(.85); } 100% { opacity: .9; transform: translate(-50%, -50%) scale(1.1); } }
.credit { margin: 22px 0 0; text-align: center; font-family: var(--caps); font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); opacity: .75; }
.credit a { text-decoration: none; }

/* ══ music + gold dust ═══════════════════════════════════ */
.music {
  position: fixed; z-index: 50; right: 14px; bottom: max(14px, env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #7c1d2c, #4a0e18);
  box-shadow: 0 0 0 3px rgba(244, 228, 202, .9), 0 0 0 4px rgba(184, 137, 50, .5), 0 10px 20px -8px rgba(74, 14, 24, .7);
  opacity: 0; transform: translateY(10px); transition: opacity .8s ease 1.6s, transform .8s ease 1.6s;
}
.music.is-shown { opacity: 1; transform: none; }
.music .ico { width: 20px; height: 20px; stroke: #ecd3a0; stroke-width: 2.2; }
.music .bars { position: absolute; bottom: 9px; display: flex; gap: 2px; height: 7px; align-items: flex-end; opacity: 0; }
.music .bars i { width: 2px; height: 3px; background: var(--gold-light); }
.music.is-playing .ico { transform: translateY(-3px) scale(.85); }
.music.is-playing .bars { opacity: 1; }
.music.is-playing .bars i { animation: eq 1s ease-in-out infinite alternate; }
.music.is-playing .bars i:nth-child(2) { animation-delay: -.4s; }
.music.is-playing .bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { to { height: 7px; } }
.music:not(.is-playing)::after { content: ''; position: absolute; width: 26px; height: 1.5px; background: var(--gold-light); transform: rotate(-40deg); }

.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ══ scroll reveal ═══════════════════════════════════════ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ══ reduced motion: everything present, nothing drifting ═ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .petals, .intro-glow, .btn::after { display: none; }
  .flame, .diya-glow { opacity: .75; }
  [data-reveal], .h-in { opacity: 1; transform: none; filter: none; }
}

/* a little more air on the larger phones */
@media (min-width: 410px) {
  .sec-inner { width: min(100% - 2 * var(--gutter), 330px); }
  .hero-copy { padding: 0 72px; }
}
/* desktop is not the target: show the phone-width sheet centred on deeper paper */
@media (min-width: 600px) {
  body { background-color: #e9d5b3; }
  .invitation { box-shadow: 0 0 60px rgba(74, 14, 24, .12); background-color: var(--paper); }
  .hero-stage { max-height: 960px; }
}
@media (min-width: 600px) {
  .intro-video { left: 50%; width: min(100vw, 56.25vh); transform: translateX(-50%); }
  .intro-glow { display: none; }
}
/* short phones (SE / older Androids): lighter hero so the couple never meets the date */
@media (max-height: 700px) {
  .hero-copy { top: calc(9 * var(--sv)); }
  .invocation { display: none; }
  .hero-couple { height: min(calc(29 * var(--sv)), var(--couple-fit, 100vh)); }
  .hero-couple-wrap { bottom: calc(4.5 * var(--sv)); }
  .hero-divider { margin: 4px auto; }
  .hero-date b { font-size: 14px; }
}

/* ══════════════════════════════════════════════════════════
   Round two: personal touches, South Indian motifs, utilities
   ══════════════════════════════════════════════════════════ */

/* foil catches the light: a slow sheen travels across gold lettering */
.names .name, .script-title, .c-day, .save-date, .family-person, .monogram span { animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* text keeps a soft paper halo so garlands never fight the words */
.sec-inner::before {
  content: ''; position: absolute; inset: -12px -30px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(244, 228, 202, .78), rgba(244, 228, 202, .5) 70%, rgba(244, 228, 202, 0));
}

/* regional blessing in the hero */
.regional { margin: 0 0 min(8px, calc(1 * var(--sv))); font-family: var(--regional, serif), var(--serif); font-weight: 500; font-size: min(22px, calc(2.7 * var(--sv))); letter-spacing: .04em; color: var(--maroon); }

/* intro: the guest's name on the doors, buffering state, skip */
.intro-guest {
  position: absolute; left: 0; right: 0; top: 61%; margin: 0; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #efd9a8; text-shadow: 0 2px 10px rgba(30, 4, 8, .85);
  animation: guest-in 1.6s ease .4s both; transition: opacity .5s ease;
}
.intro-guest small { font-family: var(--caps); font-size: 9.5px; letter-spacing: .36em; text-transform: uppercase; opacity: .85; }
.intro-guest span { max-width: 80vw; font-family: var(--script); font-size: clamp(28px, 8.6vw, 36px); line-height: 1.2; color: #f3dca8; }
@keyframes guest-in { from { opacity: 0; transform: translateY(8px); } }
.intro.is-playing .intro-guest { opacity: 0; }
.intro-wait {
  position: absolute; left: 0; right: 0; top: 58%; margin: 0; text-align: center; opacity: 0; pointer-events: none;
  font-family: var(--caps); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: #efd9a8;
}
.intro.is-loading .intro-wait { opacity: 1; animation: breathe 1.4s ease-in-out infinite; }
.intro.is-loading .intro-glow { opacity: 1; animation: seal 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.intro-skip {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(226, 197, 138, .55);
  background: rgba(40, 8, 14, .35); color: #efd9a8; cursor: pointer;
  font-family: var(--caps); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.intro-skip.is-shown { opacity: .8; pointer-events: auto; }
html.is-open .intro-skip { opacity: 0; }
.intro.is-skipped { transition: opacity .8s ease; }
html.is-open .intro.is-skipped .intro-video { transform: none; transition: none; }

/* monogram */
.monogram { position: relative; width: 108px; height: 108px; margin: 4px auto 2px; display: flex; align-items: center; justify-content: center; }
.monogram-ring { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 1; }
.monogram span { position: relative; font-family: var(--names); font-weight: 600; font-size: 40px; line-height: 1; padding: 0 .06em; }
.intro-guest span.amp-i, .dear span.amp-i { font-family: var(--serif); font-style: italic; font-size: .72em; padding: 0 .1em; }
.monogram .mono-a { transform: translate(4px, -6px); }
.monogram .mono-b { transform: translate(-4px, 8px); }
.monogram i { width: 1px; height: 46px; background: linear-gradient(transparent, var(--gold), transparent); transform: rotate(24deg); }
.welcome .invocation { margin: 0 0 4px; }
.dear { margin: 14px 0 -4px; font-style: italic; font-size: 19px; color: var(--ink-soft); }
.dear span { font-family: var(--script); font-style: normal; font-size: 30px; color: var(--maroon); padding: 0 .1em; }

/* kolam */
.kolam { display: block; overflow: visible; stroke-width: .9; }
.gold-thread.is-kolam { height: 132px; width: 44px; }
.thread-kolam { width: 34px; height: 34px; margin: 6px 0; }
.clock { position: relative; }
.clock-kolam, .save-kolam { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; opacity: .16; pointer-events: none; }
.clock-kolam { width: 170px; height: 170px; }
.save-wrap { position: relative; }
.save-kolam { width: 150px; height: 150px; top: 42%; }
.clock-n.roll { animation: roll .55s var(--ease); }
@keyframes roll { from { opacity: 0; transform: translateY(-40%); filter: blur(2px); } }

/* story: numbered chapters with a ribboned date */
.chapter-no { position: absolute; left: -6px; top: -4px; font-family: var(--serif); font-weight: 500; font-size: 58px; line-height: 1; opacity: .2; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.when span { display: inline-flex; align-items: center; gap: 8px; }
.when span::before, .when span::after { content: ''; width: 18px; height: 1px; background: rgba(184, 137, 50, .6); }

/* families: an arch cameo with the initial */
.cameo {
  display: grid; place-items: center; width: 54px; height: 68px; margin: 0 auto 12px;
  border-radius: 27px 27px 4px 4px;
  background: radial-gradient(circle at 50% 30%, #7c1d2c, #4a0e18);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--paper), 0 0 0 5px rgba(184, 137, 50, .45), 0 10px 18px -8px rgba(74, 14, 24, .55);
}
.cameo span { font-family: var(--names); font-weight: 600; font-size: 32px; line-height: 1; color: #ecd3a0; transform: translateY(3px); }

/* events: status, attire, actions */
.t-status { display: inline-block; margin-left: 8px; padding: 2px 8px 1px; border-radius: 999px; background: var(--maroon); color: #f3dfb4; font-size: 8px; font-weight: 600; letter-spacing: .18em; vertical-align: 1px; }
.t-item.is-past { opacity: .55; }
.t-item.is-past .t-status { background: transparent; color: var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(184, 137, 50, .6); }
.t-item.is-next .t-medal::after, .t-item.is-today .t-medal::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--gold); animation: halo 2.6s ease-out infinite;
}
@keyframes halo { from { opacity: .8; transform: scale(.85); } to { opacity: 0; transform: scale(1.25); } }
.t-dress { margin: 6px 0 0; font-size: 14.5px; font-style: italic; color: var(--ink); }
.t-dress span { margin-right: 8px; font-family: var(--caps); font-style: normal; font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.t-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; }
.t-actions a, .t-actions button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--caps); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none;
}
.ico-xs { width: 15px; height: 15px; stroke-width: 2; }

/* gallery: plates wipe open from below */
.plate[data-reveal] { clip-path: inset(22% 0 0 0); transform: none; transition: clip-path 1.4s var(--ease) var(--d, 0ms), opacity 1s ease var(--d, 0ms); }
.plate[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.viewer-count { margin: 6px 0 0; font-family: var(--caps); font-size: 10px; letter-spacing: .3em; color: var(--gold-light); opacity: .8; }

/* lamps cast a warm pool on the paper */
.deepam { isolation: isolate; }
.deepam::before {
  content: ''; position: absolute; left: 6%; right: 6%; bottom: -2%; height: 30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 196, 110, .38), rgba(255, 196, 110, 0));
  animation: flicker2 3.4s ease-in-out infinite alternate;
}

/* finale monogram over the evening sky */
.finale-mono { position: absolute; left: 50%; top: 13%; width: 96px; height: 96px; margin: 0; transform: translateX(-50%); }
.finale-mono span { font-size: 36px; }
.thanks-share { margin-top: 20px; }

/* quick menu */
.menu-btn {
  position: fixed; z-index: 50; right: 72px; bottom: max(14px, env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #fbf3e2, #efdcb9);
  box-shadow: 0 0 0 3px rgba(244, 228, 202, .9), 0 0 0 4px rgba(184, 137, 50, .5), 0 10px 20px -8px rgba(74, 14, 24, .55);
  opacity: 0; transform: translateY(10px); transition: opacity .8s ease 1.9s, transform .8s ease 1.9s;
}
.menu-btn.is-shown { opacity: 1; transform: none; }
.menu-btn .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.sheet { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; background: rgba(36, 8, 13, 0); transition: background .35s ease; }
.sheet.is-on { background: rgba(36, 8, 13, .45); }
.sheet-card {
  position: relative; width: min(100%, 480px); margin: 0 auto; padding: 34px 26px max(22px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; text-align: center;
  background: var(--paper); box-shadow: 0 -1px 0 var(--gold), 0 -20px 40px -20px rgba(36, 8, 13, .6);
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.sheet.is-on .sheet-card { transform: none; }
.sheet-kolam { position: absolute; left: 50%; top: -22px; width: 44px; height: 44px; padding: 5px; transform: translateX(-50%); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px rgba(184, 137, 50, .6); }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 10px 0 18px; text-align: left; }
.sheet-links a { padding: 12px 2px; border-bottom: 1px solid rgba(184, 137, 50, .28); font-family: var(--caps); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); text-decoration: none; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions > * {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  border: 1px solid rgba(184, 137, 50, .7); border-radius: 999px; background: none; cursor: pointer; text-decoration: none;
  font-family: var(--caps); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon);
}
.sheet-close { position: absolute; top: 6px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; color: var(--gold-deep); cursor: pointer; }

@media (max-height: 700px) {
  .regional { font-size: min(17px, calc(2.5 * var(--sv))); margin-bottom: 2px; }
  .hero-date em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plate[data-reveal] { clip-path: none; }
}

/* groom-side copy: the family's own words on each event — subtitle, verse, timing rows */
.t-name { overflow-wrap: anywhere; }
.t-sub { margin: 3px 0 0; font-style: italic; font-size: 16.5px; line-height: 1.4; color: var(--maroon); }
.t-verse { margin: 8px 0 0; padding-left: 12px; border-left: 1px solid rgba(184, 137, 50, .55); font-style: italic; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.t-details { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.t-details div { display: flex; align-items: baseline; gap: 7px; }
.t-details dt { font-family: var(--caps); font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.t-details dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--maroon); }
.t-item .t-venue { margin-top: 6px; }
.t-name .amp-i { font-family: var(--serif); font-style: italic; font-size: .62em; padding: 0 .12em; }

/* ── Pooja & Deepak ─────────────────────────────────────── */
/* the shloka on the closed doors (opening slide only). .intro-frame is the film's own picture: the film is
   9:16 and covers the screen, so the frame is sized the same way and the shloka keeps its place on the doors
   (below the jasmine garlands, above the Ganesh seal) on any phone, tablet or desktop column */
.intro { container-type: size; }
.intro-frame { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); pointer-events: none; container-type: size; }
@supports (width: 1cqw) {
  .intro-frame { width: max(100cqw, 56.25cqh); height: max(100cqh, 177.78cqw); }
  @media (min-width: 600px) { .intro-frame { width: min(100cqw, 56.25cqh); height: 100cqh; } }
}
.intro-shloka {
  position: absolute; left: 18%; right: 18%; top: 17%; height: 19%; margin: 0;
  display: flex; flex-direction: column; justify-content: center; gap: .15em; text-align: center;
  font-family: 'Noto Serif Devanagari', var(--serif); font-weight: 500;
  font-size: clamp(14px, 4.4vw, 20px); line-height: 1.55; letter-spacing: .01em; color: #f3dca8;
  text-shadow: 0 1px 2px rgba(30, 0, 8, .75), 0 0 14px rgba(40, 4, 12, .55);
  transition: opacity .6s ease;
}
@supports (width: 1cqw) { .intro-shloka { font-size: clamp(14px, 2.5cqh, 24px); } }
.intro-shloka span { display: block; text-wrap: balance; }
.intro.is-playing .intro-shloka { opacity: 0; }

/* the client's pictures, each whole: the illustration on its own (2:3), the two paintings side by side (3:4) */
.plate-portrait { grid-column: span 2; justify-self: center; width: 88%; aspect-ratio: 2 / 3; }
.plate-pair { aspect-ratio: 3 / 4; }

/* one picture in Moments: nothing to page through in the viewer */
.viewer.is-single .viewer-nav, .viewer.is-single .viewer-count { display: none; }

/* the swipe cue (client, 2026-10-30): a small card low on the hero's left, beside the couple and clear of the round
   buttons on the right. It is kept in the visible screen on short phones, where the hero runs taller than the screen */
.swipe-cue {
  position: absolute; z-index: 4; left: 8px; bottom: max(12px, calc(100% - 100 * var(--sv) + 12px)); width: 88px; padding: 7px 4px 8px;
  display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; line-height: 1.25;
  background: rgba(255, 248, 232, .92); border: 1px solid rgba(184, 137, 50, .75); border-radius: 14px;
  box-shadow: 0 6px 14px -6px rgba(74, 14, 24, .45); font-family: var(--caps); color: var(--maroon);
  transition: opacity .8s ease 1.6s, transform .8s var(--ease) 1.6s;
}
.swipe-cue b { font-weight: 600; font-size: 10.5px; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; }
.swipe-cue small { font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.swipe-arrows { position: relative; display: block; width: 14px; height: 16px; margin-bottom: 3px; animation: swipe-up 1.7s ease-in-out infinite; }
.swipe-arrows i { position: absolute; left: 2px; width: 10px; height: 10px; border-top: 2px solid var(--maroon); border-left: 2px solid var(--maroon); transform: rotate(45deg); }
.swipe-arrows i:first-child { top: 1px; }
.swipe-arrows i:last-child { top: 7px; opacity: .55; }
@keyframes swipe-up { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-3px); } }
html.is-sealed .swipe-cue { opacity: 0; transform: translateY(10px); }
.swipe-cue.is-gone { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
@media (prefers-reduced-motion: reduce) { .swipe-arrows { animation: none; } }

/* ── Deepak & Pooja, groom side (client, 2026-11-03) ─────────── */
/* no "Wedding Festivities" heading: the lone wedding card sits closer under the stitch */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.events .sec-inner { padding-top: 6px; }
.events .timeline { margin-top: 0; }
/* firmer event, venue and family text on phones: a step heavier and darker, the hierarchy kept */
.t-date { font-size: 11px; font-weight: 600; color: #7a5410; }
.t-name { font-weight: 700; }
.t-details dt { font-size: 9px; font-weight: 600; color: #7a5410; }
.t-details dd { font-weight: 700; }
.t-venue { font-style: normal; font-weight: 600; color: #3d2418; }
.venue-name { font-weight: 700; }
.venue-addr { font-style: normal; font-weight: 500; color: #4a3226; }
.family-rel { font-weight: 500; color: #4a3226; }
.family-parents { font-size: 14px; font-weight: 600; }
.family-gp { font-weight: 500; color: #4a3226; }
.signoff { font-weight: 600; }
