/* ─────────────────────────────────────────────
   Krenil & Ishita · Wedding invitation
   Ivory · Gold · Blush
   ───────────────────────────────────────────── */

:root {
  --paper: #FBF6EC;
  --paper-2: #F5EBDA;
  --ivory: #FFFDF8;
  --blush: #F8E9E3;
  --blush-2: #EFD0C7;
  --rose: #C98F88;
  --rose-deep: #A8605F;
  --gold: #B38A3F;
  --gold-2: #D9BA74;
  --gold-3: #8C6828;
  --ink: #4A382B;
  --ink-2: #7B6756;
  --line: rgba(179, 138, 63, .45);
  --line-soft: rgba(179, 138, 63, .28);
  --foil: linear-gradient(115deg, #8C6828 0%, #B48C3C 22%, #D6B45E 44%, #B38A3F 64%, #94702C 84%, #8C6828 100%);
  /* Gujarati typography. --gu: running text. --gd: large headings. --gdt: short display lines (mantra, date, poem). */
  --gu: "Rasa", "Noto Serif Gujarati", "Shruti", "Gujarati Sangam MN", serif;
  --gd: var(--gu);  --gd-weight: 400;  --gd-scale: .9;
  --gdt: var(--gu); --gdt-weight: 500; --gdt-scale: .9;
  --en: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --noise: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--gu);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper) var(--noise);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }

a { color: inherit; }
ul { list-style: none; padding: 0; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.en { font-family: var(--en); }

.foil {
  color: var(--gold);
  background: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.eyebrow {
  font-family: var(--en);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--gold-3);
  line-height: 1.6;
}

.divider { width: 180px; height: 18px; margin: 14px auto 0; color: var(--gold); }
.ganesh { color: var(--gold); }

/* ───────────── Envelope ───────────── */
.envelope { display: none; }
.js .envelope {
  display: block;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100;
  overflow: hidden;
  perspective: 1800px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.envelope__pocket {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  transition: transform 1.3s cubic-bezier(.7, 0, .2, 1) 1s, opacity .5s ease 1.9s;
}
.envelope__pocket > svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.envelope__pocket::after,
.envelope__flap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--noise); pointer-events: none; }
.envelope__pocket::after { clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.envelope__flap::after { clip-path: polygon(0 0, 100% 0, 50% 100%); }

.envelope__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 56%;
  z-index: 2;
  transform-origin: 50% 0;
  transition: transform 1.15s cubic-bezier(.6, 0, .3, 1) .3s;
  filter: drop-shadow(0 7px 9px rgba(96, 66, 30, .2));
  will-change: transform;
}
.envelope__flap-shape { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.envelope__crest {
  position: absolute; left: 0; right: 0; top: 13%;
  text-align: center;
  color: var(--gold-3);
  font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(1.3rem * var(--gdt-scale)); line-height: 1.5;
}
.envelope__crest .ganesh { width: clamp(54px, 15vw, 76px); height: auto; aspect-ratio: 120 / 134; margin: 0 auto 6px; }

.envelope__text {
  position: absolute; left: 0; right: 0; top: calc(56% + 74px); bottom: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px max(26px, env(safe-area-inset-bottom));
  text-align: center;
}
.envelope__hint {
  font-size: .8rem; font-weight: 600; letter-spacing: .38em; text-indent: .38em; text-transform: uppercase;
  color: #7A5A22;
  animation: breathe 2.4s ease-in-out infinite;
}
.envelope__hint-gu { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.envelope__names {
  margin-top: auto;
  font-family: var(--script); font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.15;
  color: var(--gold-3);
}
.envelope__names span { font-family: var(--en); font-style: italic; font-size: .62em; color: var(--rose); margin: 0 .12em; }
.envelope__guest { margin-top: 4px; font-size: 1.04rem; font-weight: 500; color: var(--ink); }
@keyframes breathe { 50% { opacity: .55; } }

.seal {
  position: absolute; left: 50%; top: 56%;
  width: 104px; height: 104px; margin: -52px 0 0 -52px;
  z-index: 3;
  padding: 0; border: 0; background: none; border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s ease;
}
.seal:hover { transform: scale(1.04); }
.seal:active { transform: scale(.95); }
.seal:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }
.seal::before {
  content: ""; position: absolute; top: -6px; right: -6px; bottom: -6px; left: -6px; border-radius: 50%;
  border: 1px solid rgba(155, 61, 76, .55);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.seal__wax {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 47% 53% 51% 49% / 53% 48% 52% 47%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .34) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 50%, #B04A5A 0, #9B3D4C 52%, #7C2B39 82%, #6A232F 100%);
  box-shadow:
    0 10px 18px rgba(80, 24, 32, .36),
    0 2px 3px rgba(80, 24, 32, .4),
    inset 0 2px 2px rgba(255, 255, 255, .25),
    inset 0 -7px 10px rgba(60, 12, 20, .38);
}
.seal__wax::before, .seal__wax::after {
  content: ""; position: absolute; border-radius: 50%; background: #8E3544;
  box-shadow: inset 0 -3px 5px rgba(60, 12, 20, .35), 0 3px 5px rgba(80, 24, 32, .25);
  z-index: -1;
}
.seal__wax::before { width: 30px; height: 26px; left: -4px; bottom: 12px; }
.seal__wax::after { width: 24px; height: 26px; right: -3px; top: 14px; }
.seal__ring {
  position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px; border-radius: 50%;
  border: 1px solid rgba(60, 12, 20, .28);
  box-shadow: inset 0 3px 6px rgba(60, 12, 20, .45), 0 1px 0 rgba(255, 255, 255, .2);
  background: radial-gradient(circle at 40% 30%, #A64353, #8C3342 75%);
}
.seal__mono {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--script); font-size: 39px; line-height: 1;
  color: #CB6E7C;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3), 0 -1px 1px rgba(50, 8, 16, .85);
  padding-top: 4px;
}
.seal__mono i { font-family: var(--en); font-style: italic; font-size: .5em; margin: 0 2px 0 3px; opacity: .9; }

/* opening sequence */
.envelope.is-opening { cursor: default; }
.envelope.is-opening .seal { animation: seal-pop .75s cubic-bezier(.5, 0, .3, 1) forwards; pointer-events: none; }
.envelope.is-opening .seal::before { animation: none; opacity: 0; }
@keyframes seal-pop {
  0% { transform: scale(1); opacity: 1; }
  28% { transform: scale(.88); opacity: 1; }
  100% { transform: scale(1.5) rotate(-8deg); opacity: 0; }
}
.envelope.is-opening .envelope__flap { transform: rotateX(180deg); }
.envelope.is-opening .envelope__pocket { transform: translateY(104%); opacity: 0; }
.envelope.is-opening .envelope__text { opacity: 0; transition: opacity .5s ease; }

/* ───────────── Petals canvas ───────────── */
#petals { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(34px, 8vw, 60px) 18px 34px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(130% 46% at 50% 0%, #F6DDD5 0%, rgba(246, 221, 213, 0) 70%);
}
.hero__mandala {
  position: absolute; left: 50%; top: -6%;
  width: min(150vw, 900px); aspect-ratio: 1; transform: translateX(-50%);
  color: var(--gold); opacity: .14; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 40%, transparent 98%); mask-image: radial-gradient(circle closest-side, #000 40%, transparent 98%);
  animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

.arch-wrap { position: relative; width: min(100%, 480px); z-index: 2; }
.arch {
  position: relative;
  border-radius: 999px 999px 8px 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFEFB 0%, #FFFBF3 55%, #FBF2E2 100%);
  box-shadow: 0 34px 70px -38px rgba(122, 84, 40, .5), 0 0 0 7px rgba(255, 253, 248, .55);
  padding: clamp(38px, 11vw, 58px) clamp(20px, 6vw, 46px) clamp(116px, 32vw, 152px);
}
.arch::before {
  content: ""; position: absolute; top: 9px; right: 9px; bottom: 9px; left: 9px;
  border-radius: inherit; border: 1px solid var(--line-soft);
  pointer-events: none;
}
.arch::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; background: var(--noise); pointer-events: none; opacity: .8; }
.arch > * { position: relative; z-index: 1; }

.arch .ganesh { width: clamp(64px, 19vw, 88px); aspect-ratio: 120 / 134; height: auto; margin: 0 auto; }
.mantra { margin-top: 8px; font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(1.42rem * var(--gdt-scale)); line-height: 1.5; color: var(--gold-3); }
.shloka { margin-top: 4px; font-size: clamp(.76rem, 3.2vw, .88rem); font-weight: 400; line-height: 1.9; color: var(--ink-2); }
.arch .divider { margin-top: 16px; }

.hero__title { font-weight: 400; margin-top: 14px; }
.shubh {
  display: block;
  font-family: var(--en); font-weight: 500;
  font-size: clamp(1.3rem, 6.2vw, 1.85rem); line-height: 1.5;
  letter-spacing: .38em; text-indent: .38em; text-transform: uppercase;
  margin-bottom: 8px;
}
.names {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 2px;
  font-family: var(--script); font-size: clamp(3.8rem, 19.5vw, 5.8rem); line-height: .96;
  color: #7C5A24;
}
.names__a { transform: translateX(-.3em); }
.names__b { display: flex; align-items: baseline; gap: .1em; transform: translateX(.16em); }
.names__amp { font-family: var(--en); font-style: italic; font-size: .44em; line-height: 1; color: var(--rose); }

.gu-names {
  margin-top: 20px;
  font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(clamp(1.6rem, 7.2vw, 2rem) * var(--gdt-scale)); line-height: 1.5; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: .55em; flex-wrap: wrap;
}
.orn { width: 1em; height: 1em; flex: none; }

.date { margin: 18px auto 0; padding: 12px 6px 10px; width: fit-content; max-width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.date__gu { font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(clamp(1.42rem, 6.2vw, 1.7rem) * var(--gdt-scale)); color: var(--gold-3); line-height: 1.5; }
.date__en { font-size: .76rem; font-weight: 600; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--ink-2); line-height: 1.7; }

/* florals around the arch */
.floral { position: absolute; z-index: 3; width: clamp(112px, 33vw, 168px); aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(122, 84, 40, .14)); }
.floral--tl { left: clamp(-44px, -8vw, -26px); top: clamp(-26px, -4vw, -14px); animation: sway-a 9s ease-in-out infinite; transform-origin: 70% 70%; }
.floral--tr { right: clamp(-44px, -8vw, -26px); top: clamp(-26px, -4vw, -14px); animation: sway-b 10s ease-in-out infinite; transform-origin: 30% 70%; }
.floral--bl { left: clamp(-52px, -10vw, -30px); bottom: clamp(-58px, -11vw, -40px); animation: sway-c 11s ease-in-out infinite; transform-origin: 70% 30%; }
.floral--br { right: clamp(-52px, -10vw, -30px); bottom: clamp(-58px, -11vw, -40px); animation: sway-d 10s ease-in-out infinite; transform-origin: 30% 30%; }
@keyframes sway-a { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(1deg); } }
@keyframes sway-b { 0%, 100% { transform: scaleX(-1) rotate(-4deg); } 50% { transform: scaleX(-1) rotate(1deg); } }
@keyframes sway-c { 0%, 100% { transform: scaleY(-1) rotate(-3deg); } 50% { transform: scaleY(-1) rotate(2deg); } }
@keyframes sway-d { 0%, 100% { transform: scale(-1) rotate(-3deg); } 50% { transform: scale(-1) rotate(2deg); } }

.host { position: relative; z-index: 2; margin-top: clamp(64px, 14vw, 84px); }
.host__title { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(2.1rem * var(--gd-scale)); color: var(--gold-3); line-height: 1.4; margin-top: 2px; }
.host__names { margin-top: 6px; font-size: 1.14rem; font-weight: 500; line-height: 1.85; }
.host__addr { margin-top: 4px; font-size: .96rem; color: var(--ink-2); }
.host__tel { margin-top: 2px; font-size: 1.04rem; font-weight: 500; color: var(--gold-3); }
.host__tel a { text-decoration: none; border-bottom: 1px dotted var(--line); }

.scroll-cue {
  position: relative; z-index: 2;
  margin-top: 30px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase;
  color: var(--gold-3); text-decoration: none;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--gold), rgba(179, 138, 63, 0)); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* hero entrance (after the envelope opens) */
.js body:not(.opened) .hero [data-in] { opacity: 0; transform: translateY(16px); }
.js .hero [data-in] { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .13s + .25s); }

/* ───────────── Sections ───────────── */
.page { overflow: hidden; }
.section { position: relative; padding: clamp(84px, 13vw, 116px) 20px; text-align: center; }
.section--blush { background: linear-gradient(180deg, rgba(248, 233, 227, 0) 0, var(--blush) 90px, var(--blush) calc(100% - 90px), rgba(248, 233, 227, 0) 100%); }
.wrap { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.wrap--wide { max-width: 1000px; }

.sec-head { margin-bottom: clamp(34px, 7vw, 52px); }
.title { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(clamp(2.7rem, 11.5vw, 3.8rem) * var(--gd-scale)); line-height: 1.4; margin-top: 0; }
.title--script { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: 1.2; color: #7C5A24; margin-top: 6px; }
.title--script span { font-family: var(--en); font-style: italic; color: var(--rose); font-size: .6em; }

.section__mandala {
  position: absolute; left: 50%; top: 50%; width: min(150vw, 940px); aspect-ratio: 1; transform: translate(-50%, -50%);
  color: var(--gold); opacity: .13; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 35%, transparent 96%); mask-image: radial-gradient(circle closest-side, #000 35%, transparent 96%);
}
.section__floral { position: absolute; z-index: 1; width: clamp(140px, 38vw, 250px); aspect-ratio: 1; top: clamp(-84px, -14vw, -56px); pointer-events: none; }
.section__floral--r { right: clamp(-90px, -16vw, -60px); transform: rotate(18deg); }
.section__floral--l { left: clamp(-90px, -16vw, -60px); transform: scaleX(-1) rotate(18deg); }

.card {
  position: relative;
  background: linear-gradient(180deg, #FFFEFB, #FFFAF1);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 26px 54px -34px rgba(122, 84, 40, .5);
}
.card::before { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border: 1px solid var(--line-soft); border-radius: 3px; pointer-events: none; }

/* ───────────── Nimantran letter ───────────── */
.letter { padding: clamp(40px, 9vw, 64px) clamp(22px, 7vw, 60px); }
.corner { position: absolute; width: 44px; height: 44px; color: var(--gold); }
.corner--tl { left: 14px; top: 14px; }
.corner--tr { right: 14px; top: 14px; transform: scaleX(-1); }
.corner--bl { left: 14px; bottom: 14px; transform: scaleY(-1); }
.corner--br { right: 14px; bottom: 14px; transform: scale(-1); }

.letter__mantra { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(1.32rem * var(--gdt-scale)); line-height: 1.5; color: var(--gold-3); }
.letter__to { margin-top: 20px; font-size: 1.16rem; font-weight: 500; text-align: left; }
.letter__guest { color: var(--rose-deep); }  /* filled from ?to=Name in the link; empty otherwise */
.letter__body { margin-top: 16px; font-size: clamp(1.04rem, 4.3vw, 1.16rem); font-weight: 400; line-height: 2.05; text-wrap: pretty; }
.letter__couple { margin: 22px 0 20px; }
.letter__name { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(clamp(2.45rem, 11.4vw, 3.4rem) * var(--gd-scale)); line-height: 1.4; }
.letter__mid { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(1.5rem * var(--gdt-scale)); line-height: 1.4; color: var(--rose-deep); margin: 0; }
.letter__mid::before, .letter__mid::after { content: ""; width: clamp(28px, 10vw, 64px); height: 1px; background: var(--line); }

/* ───────────── Photos ───────────── */
.portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 4vw, 36px); max-width: 560px; margin: 0 auto; }
.portrait figcaption { margin-top: 14px; display: flex; flex-direction: column; line-height: 1.45; }
.portrait__gu { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(1.6rem * var(--gd-scale)); line-height: 1.4; }
.portrait__en { font-family: var(--script); font-size: 1.7rem; color: #7C5A24; line-height: 1.2; }

.frame {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
  padding: 7px;
  box-shadow: 0 24px 46px -30px rgba(122, 84, 40, .55);
}
.frame--arch { border-radius: 999px 999px 6px 6px; aspect-ratio: 5 / 7; }
.frame img { position: absolute; left: 7px; top: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: inherit; display: block; object-fit: cover; background: var(--blush-2); }
a.frame { display: block; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
a.frame:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; }

.frame--feature { aspect-ratio: 4 / 5; max-width: 560px; margin: clamp(26px, 7vw, 44px) auto 0; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 3vw, 20px); }
.gallery .frame--big { grid-column: span 2; aspect-ratio: 4 / 5; }
.gallery .frame--wide { grid-column: span 2; aspect-ratio: 3 / 2; }

/* full-width photo band */
.band {
  position: relative; overflow: hidden;
  height: clamp(360px, 92vw, 580px);
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center; color: #FFF9EC;
  background: #4A382B;
}
.band > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.band::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(180deg, rgba(48, 32, 20, .62) 0%, rgba(48, 32, 20, .3) 38%, rgba(48, 32, 20, .04) 70%); }
.band::after { content: ""; position: absolute; top: 12px; right: 12px; bottom: 12px; left: 12px; z-index: 2; border: 1px solid rgba(243, 223, 168, .6); pointer-events: none; }
.band__text { position: relative; z-index: 3; padding: clamp(38px, 9vw, 70px) 26px 0; text-shadow: 0 2px 20px rgba(30, 18, 8, .6); }
.band__line { font-family: var(--script); font-size: clamp(2.5rem, 10.5vw, 4rem); line-height: 1.15; color: #FFF6E2; }
.band__line span { display: inline-block; }

/* lightbox */
html.noscroll { overflow: hidden; }
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  background: rgba(38, 27, 19, .95);
  opacity: 0; transition: opacity .3s ease;
  touch-action: none; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; max-height: 84dvh; width: auto; height: auto; border: 6px solid var(--ivory); border-radius: 4px; background: var(--ivory); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.lightbox__btn {
  position: absolute; z-index: 1;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(243, 223, 168, .7); background: rgba(38, 27, 19, .6); color: #F3DFA8;
  font: 400 28px/1 var(--en); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__btn:focus-visible { outline: 2px solid #F3DFA8; outline-offset: 3px; }
.lightbox__close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__prev { left: 10px; top: 50%; margin-top: -23px; }
.lightbox__next { right: 10px; top: 50%; margin-top: -23px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); text-align: center; color: #F3DFA8; font: 600 .78rem/1 var(--en); letter-spacing: .3em; }

/* ───────────── Events ───────────── */
.events { position: relative; display: grid; grid-template-columns: 1fr; gap: 62px; max-width: 340px; margin: 0 auto; padding-top: 34px; }
.events::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(rgba(179, 138, 63, 0), var(--gold) 6%, var(--gold) 94%, rgba(179, 138, 63, 0)); opacity: .6; }
.event {
  position: relative;
  background: linear-gradient(180deg, #FFFEFB, #FFFAF1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 50px 18px 26px;
  box-shadow: 0 26px 54px -34px rgba(122, 84, 40, .5);
}
.event::before { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border: 1px solid var(--line-soft); border-radius: 3px; pointer-events: none; }
.event__badge {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--line), 0 10px 18px -8px rgba(122, 84, 40, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.event__day { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(2rem * var(--gd-scale)); color: var(--gold-3); line-height: 1.05; }
.event__mon { font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-indent: .28em; text-transform: uppercase; color: var(--ink-2); margin-top: -1px; }
.event__icon { width: 46px; height: 46px; margin: 0 auto 8px; color: var(--gold); }
.event__en { font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--rose-deep); line-height: 1.6; }
.event__title { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(2rem * var(--gd-scale)); color: var(--gold-3); line-height: 1.4; margin-top: 2px; }
.event__date { margin-top: 6px; font-size: 1.06rem; font-weight: 400; line-height: 1.7; }
.event__time { margin: 12px auto 0; width: fit-content; padding: 3px 18px 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 1.02rem; font-weight: 500; color: var(--gold-3); background: rgba(246, 228, 221, .5); }
.event--main { background: linear-gradient(180deg, #FFFEFB, #FBEFE6); border-color: var(--gold); }
.event--main .event__badge { background: linear-gradient(140deg, #C7A052, #F1DFA8 50%, #B8903F); border-color: #A47C34; }
.event--main .event__day { color: #5E4416; }
.event--main .event__mon { color: #5E4416; }

/* ───────────── Buttons ───────────── */
.actions { margin-top: clamp(36px, 7vw, 52px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 9px 22px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: rgba(255, 253, 248, .85);
  color: var(--gold-3); text-decoration: none;
  font-family: var(--en); font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 1.2;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--gold-3); color: #FFF9EC; transform: translateY(-2px); box-shadow: 0 12px 20px -12px rgba(122, 84, 40, .7); }
.btn:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; }
.btn--solid { background: linear-gradient(120deg, #B8903F, #E9D292 50%, #B8903F); background-size: 200% 100%; color: #4E3810; border-color: #A47C34; }
.btn--solid:hover { background: linear-gradient(120deg, #8C6828, #B8903F); color: #FFF9EC; }

/* ───────────── Venues ───────────── */
.venues { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin: 0 auto; }
.venue { padding: 36px 20px 32px; display: flex; flex-direction: column; align-items: center; }
.venue__title { margin-top: 4px; font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(1.85rem * var(--gd-scale)); color: var(--gold-3); line-height: 1.4; }
.venue__lines { margin: 8px 0 20px; font-size: 1.04rem; font-weight: 400; line-height: 1.85; }
.venue .btn { margin-top: auto; }
.venue--main { border-color: var(--gold); background: linear-gradient(180deg, #FFFEFB, #FBEFE6); }

/* ───────────── Family ───────────── */
.family { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin: 0 auto; }
.kin { padding: 34px 18px 30px; }
.kin__title { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(1.85rem * var(--gd-scale)); color: var(--gold-3); line-height: 1.4; }
.kin ul { margin-top: 12px; }
.kin li { font-size: 1.06rem; font-weight: 400; line-height: 1.95; }
.kin__gap { margin-top: 10px; padding-top: 10px; position: relative; }
.kin__gap::before { content: ""; position: absolute; top: 0; left: 50%; width: 46px; height: 1px; background: var(--line); transform: translateX(-50%); }

.kalrav {
  position: relative; overflow: hidden;
  max-width: 600px; margin: clamp(48px, 9vw, 72px) auto 0;
  padding: clamp(40px, 9vw, 56px) clamp(20px, 6vw, 48px);
  border-radius: 180px 180px 8px 8px / 110px 110px 8px 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #FBEDE7, #FFFBF4 70%);
  box-shadow: 0 26px 54px -34px rgba(122, 84, 40, .5);
}
.kalrav > * { position: relative; }
.kalrav__floral { position: absolute; width: 150px; height: 150px; right: -52px; bottom: -52px; opacity: .85; transform: rotate(200deg); }
.kalrav__title { margin-top: 2px; font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(2.2rem * var(--gd-scale)); line-height: 1.4; }
.kalrav__poem { margin-top: 12px; font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(clamp(1.36rem, 5.9vw, 1.62rem) * var(--gdt-scale)); line-height: 1.8; color: var(--ink); }
.kalrav__by { margin-top: 14px; font-size: 1rem; font-weight: 500; color: var(--rose-deep); line-height: 1.9; }

/* ───────────── Snehadhin ───────────── */
.couples { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 420px; margin: 0 auto; }
.couples li {
  display: flex; flex-direction: column; align-items: center;
  padding: 13px 12px 12px;
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 1.04rem; font-weight: 400; line-height: 1.8;
}
.couples li span + span { color: var(--ink); }
.couples li span + span::before { content: ""; display: block; width: 6px; height: 6px; margin: 4px auto 3px; background: var(--gold-2); transform: rotate(45deg); }

/* ───────────── Closing ───────────── */
.closing { padding-bottom: clamp(120px, 26vw, 150px); }
.closing .ganesh { width: 66px; height: auto; aspect-ratio: 120 / 134; margin: 0 auto 18px; }
.closing__line { font-family: var(--gdt); font-weight: var(--gdt-weight); font-size: calc(clamp(1.5rem, 6.5vw, 1.9rem) * var(--gdt-scale)); line-height: 1.7; }
.closing__names { margin-top: 18px; font-family: var(--script); font-size: clamp(3rem, 14vw, 5rem); line-height: 1.15; color: #7C5A24; }
.closing__names span { font-family: var(--en); font-style: italic; font-size: .56em; color: var(--rose); }
.closing__date { margin-top: 4px; font-size: 1.02rem; font-weight: 600; letter-spacing: .42em; text-indent: .42em; color: var(--gold-3); }
.closing__host { margin-top: 34px; font-size: 1.1rem; font-weight: 500; line-height: 1.85; }
.closing__host-gu { font-family: var(--gd); font-weight: var(--gd-weight); font-size: calc(1.9rem * var(--gd-scale)); color: var(--gold-3); line-height: 1.4; }
.closing__tel { color: var(--gold-3); }
.closing .actions { margin-top: 26px; }
.closing__floral { position: absolute; z-index: 1; width: clamp(160px, 44vw, 280px); aspect-ratio: 1; pointer-events: none; }
.closing__floral--l { left: clamp(-100px, -18vw, -70px); bottom: -26px; transform: scaleY(-1) rotate(10deg); }
.closing__floral--r { right: clamp(-100px, -18vw, -70px); top: -20px; transform: scaleX(-1) rotate(10deg); }

.footer { position: relative; z-index: 2; padding: 34px 20px 44px; text-align: center; }
.footer .divider { margin: 0 auto 16px; }
.footer p { font-size: .76rem; font-weight: 600; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--gold-3); }

/* ───────────── Scroll reveal ───────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ───────────── Larger screens ───────────── */
@media (min-width: 720px) {
  .events { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; max-width: none; gap: 66px 30px; }
  .events::before { display: none; }
  .event--main { grid-column: 1 / -1; justify-self: center; width: min(100%, 300px); }
  .venues, .family { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; align-items: stretch; }
  .couples { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; gap: 14px 18px; }
  .couples li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery .frame--big { grid-row: span 2; aspect-ratio: auto; }
  .gallery .frame--wide { aspect-ratio: auto; }
  .letter__to { text-align: center; }
}
@media (min-width: 1040px) {
  .events { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
  .event--main { grid-column: auto; width: auto; justify-self: stretch; }
  .event { padding-left: 12px; padding-right: 12px; }
  .event__title { font-size: calc(1.5rem * var(--gd-scale)); white-space: nowrap; }
  .event__en { font-size: .7rem; letter-spacing: .2em; text-indent: .2em; white-space: nowrap; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .hero [data-in] { transition-duration: .01s; transition-delay: 0s; transform: none; }
  .envelope__flap, .envelope__pocket { transition-duration: .3s; transition-delay: 0s; }
  .envelope.is-opening .envelope__flap { transform: none; opacity: 0; }
  .floral--tr { transform: scaleX(-1); }
  .floral--bl { transform: scaleY(-1); }
  .floral--br { transform: scale(-1); }
  #petals { display: none; }
}
