/* Ritika weds Manas
   Type: Playfair Display (ceremony) · Karla (logistics) · Caveat (margin notes) · Mukta (Devanagari) */

:root {
  --paper: #FBF4E6;
  --ink: #1B2545;
  --ink-2: #3A4260;
  --pink: #D81B60;
  --pink-deep: #C2185B;
  --rose: #E0245E;
  --teal: #1FA7A0;
  --blue: #2B5FA6;
  --night: #14306E;
  --gold: #F7C531;
  --sun: #FFE14D;
  --butter: #FFF4CC;
  --red: #8A1220;
  --leaf: #2C6A2B;
  --note: #B03A2E;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --hindi: 'Mukta', 'Nirmala UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}
.js body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
section { position: relative; overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 8px; }

/* ---------- shared patterns ---------- */
.strip {
  background:
    linear-gradient(135deg, var(--teal) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(225deg, var(--teal) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(315deg, #F2B01E 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(45deg, #F2B01E 25%, transparent 25%) 0 0 / 22px 22px,
    var(--blue);
}
.strip--band { height: 22px; }
.dots { background: radial-gradient(#EAD9C0 1.2px, transparent 1.4px) 0 0 / 22px 22px, var(--paper); }
.ruled { background: repeating-linear-gradient(to bottom, transparent 0 39px, #D9E3F0 39px 40px), var(--paper); }
.red {
  color: var(--paper);
  background-color: var(--red);
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .15) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 5px);
}

.eyebrow {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-align: center;
}
.eyebrow i { font-style: normal; color: var(--pink-deep); }
.eyebrow--pink { color: var(--pink-deep); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--butter { color: var(--butter); }

.note { font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--note); }
.note--tilt { rotate: -2deg; }
.note--cream { color: var(--paper); max-width: 560px; font-size: 30px; }
.note--butter { color: var(--butter); font-size: 32px; }
.note--gold { color: var(--gold); font-size: 32px; }

.c-pink { color: var(--pink); }
.c-blue { color: var(--blue); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: translate .25s var(--ease), rotate .25s var(--ease), scale .15s, box-shadow .25s var(--ease);
}
.btn:hover { translate: 0 -3px; rotate: -1.5deg; box-shadow: 0 6px 0 rgba(0, 0, 0, .28); }
.btn:active { translate: 0 1px; scale: .96; box-shadow: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }

/* scroll progress, drawn like a pencil line */
.progress { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* confetti layer */
.fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; width: 12px; height: 16px; border-radius: 60% 40% 60% 40%; }

/* scroll reveals (only when JS is running, so the page is never blank without it) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* PARALLAX
   JS writes --py (scroll offset for this element) and, on [data-pointer] sections, --mx / --my (-0.5 to 0.5).
   --depth says how far a piece drifts with the pointer. */
[data-speed] {
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 0) * 1px), calc(var(--py, 0px) + var(--my, 0) * var(--depth, 0) * 1px), 0);
  will-change: transform;
}
.float { position: absolute; z-index: 0; pointer-events: none; height: auto; }

@keyframes swing { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- gate ---------- */
.gate { display: none; }
.js .gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.gate__door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--pink); transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); }
.gate__door--l { left: 0; border-right: 3px solid var(--butter); }
.gate__door--r { right: 0; border-left: 3px solid var(--butter); }
.gate__door::before {
  content: ''; position: absolute; inset: 0; opacity: .16;
  background: radial-gradient(#fff 1.4px, transparent 1.6px) 0 0 / 22px 22px;
}
.gate__door::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 22px;
  background:
    linear-gradient(135deg, var(--teal) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(225deg, var(--teal) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(315deg, #F2B01E 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(45deg, #F2B01E 25%, transparent 25%) 0 0 / 22px 22px,
    var(--blue);
}
.gate__door--l::after { left: 0; }
.gate__door--r::after { right: 0; }
.gate__card {
  position: relative; width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 36px 28px 30px; text-align: center;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .6s var(--ease), opacity .45s;
  animation: card-in .9s var(--ease) both;
}
.gate__title { font: 800 clamp(40px, 11vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; }
.gate__title em { color: var(--pink); }
.label { width: 100%; display: flex; flex-direction: column; }
.label div { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 2px dotted #B9C2D6; text-align: left; }
.label dt { flex: none; width: 84px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.label dd { font: 700 26px/1 var(--hand); color: var(--blue); }
.gate__note { font-size: 24px; rotate: -2deg; }
.gate.open .gate__door--l { transform: translateX(-101%); }
.gate.open .gate__door--r { transform: translateX(101%); }
.gate.open .gate__card { transform: scale(.8) rotate(4deg) translateY(40px); opacity: 0; }
.gate.open { pointer-events: none; }
.gate.gone { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: rotate(-1.5deg); } }

/* ---------- 01 hero ---------- */
.hero { padding: 14px; }
.hero__inner {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  min-height: calc(100vh - 28px);
  padding: 88px 18px 72px;
  border: 6px solid var(--rose);
}
.arch { position: absolute; top: 0; width: 24%; min-width: 92px; max-width: 220px; }
.arch--l { left: 0; }
.arch--r { right: 0; transform: scaleX(-1); }
.hero__title {
  max-width: 980px; text-align: center;
  font: 800 clamp(38px, 7.2vw, 92px)/1.04 var(--serif); letter-spacing: -.015em;
}
.hero__title em { font-style: italic; }
.hero__inner > :not(.float):not(.arch) { position: relative; z-index: 1; }

.float--m1 { top: 38%; left: 2%; width: clamp(44px, 6.5vw, 84px); --depth: 46; }
.float--m2 { top: 58%; right: 4%; width: clamp(34px, 4.6vw, 60px); --depth: -70; }
.float--m3 { top: 82%; left: 16%; width: clamp(26px, 3.4vw, 44px); --depth: 90; }
.float--lotus { top: 66%; left: 2%; width: clamp(64px, 9vw, 120px); rotate: -18deg; --depth: -40; }
.float--plane { top: 16%; right: 8%; width: clamp(64px, 9vw, 120px); rotate: 8deg; --depth: 110; }
.float--star { top: 44%; left: 12%; width: clamp(24px, 3vw, 40px); rotate: 12deg; --depth: -90; }
.float--star2 { top: 34%; right: 13%; width: clamp(18px, 2.2vw, 30px); rotate: -8deg; --depth: 60; }
.float--stamp {
  top: 93%; right: 5%; rotate: 14deg; --depth: 50;
  display: grid; place-items: center; align-content: center;
  width: clamp(72px, 9vw, 112px); aspect-ratio: 1;
  border: 3px double var(--note); border-radius: 50%; color: var(--note);
}
.float--stamp span { font: 800 clamp(24px, 3vw, 38px)/1 var(--serif); }
.float--stamp small { font: 700 clamp(16px, 2vw, 22px)/1 var(--hand); }

.duo { display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 4vw, 48px); width: 100%; max-width: 860px; margin-top: 14px; }
.kid { flex: 1 1 0; min-width: 0; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.kid--l { --tilt: -2.5deg; }
.kid--r { --tilt: 2.5deg; --d: .15s; }
.niche {
  position: relative; width: 100%; aspect-ratio: 340 / 470; overflow: hidden;
  background: #F6F5EB;
  border: 6px solid var(--rose);
  border-radius: 50% 50% 14px 14px / 24% 24% 14px 14px;
  box-shadow: 0 0 0 3px #C99A2E, 10px 12px 0 3px var(--ink);
  transform: perspective(900px) rotate(var(--tilt, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}
.niche--blue { border-color: var(--blue); }
.niche__art { position: absolute; left: 0; top: -8%; width: 100%; height: 124%; max-width: none; object-fit: cover; object-position: 50% 0; }
.kid figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.kid__name { font: 700 clamp(36px, 5vw, 50px)/1 var(--hand); }
.kid__most { font-size: 16px; color: var(--ink-2); max-width: 240px; }
.amp { align-self: flex-start; margin-top: clamp(60px, 14vw, 170px); font: italic 700 clamp(44px, 8vw, 110px)/1 var(--serif); color: #F2B01E; --d: .1s; }

.hero__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; text-align: center; }
.hero__weds { font: 700 clamp(28px, 3.6vw, 44px)/1.1 var(--serif); }
.hero__date { font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- 02 sky ---------- */
.sky {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 120px 20px 0; text-align: center;
  background: var(--night); color: var(--paper);
}
.sky__stars { position: absolute; inset: -160px -30px; pointer-events: none; }
.sky__stars--far { --depth: -14; }
.sky__stars--mid { --depth: -34; }
.sky__stars--near { --depth: -70; }
.sky__stars i { position: absolute; border-radius: 50%; background: var(--paper); animation: twinkle 3s ease-in-out infinite; }
.sky > :not(.sky__stars):not(.sky__shore):not(.sky__shoot) { position: relative; }
.sky__shoot { position: absolute; top: 16%; left: 72%; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--paper), transparent); rotate: -24deg; opacity: 0; animation: shoot 9s ease-in 2s infinite; }
@keyframes shoot { 0% { translate: 0 0; opacity: 0; } 4% { opacity: 1; } 14% { translate: -420px 190px; opacity: 0; } 100% { translate: -420px 190px; opacity: 0; } }
.sky__title { font: italic 700 clamp(56px, 12vw, 132px)/1 var(--serif); letter-spacing: -.01em; }
.sky__hi { font: 600 26px/1.4 var(--hindi); color: var(--gold); }
.sky__art { width: 100%; max-width: 860px; margin-top: 8px; overflow: visible; }
.sky__line, .sky__moon-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sky__moon-line, .sky__pen { opacity: 0; }
.js .sky__line { stroke-dashoffset: var(--draw, 1); }
.js .sky__moon-line { opacity: 1; stroke-dashoffset: var(--draw-moon, 1); }
.js .sky__moon-fill { opacity: var(--moon-fill, 0); }
.js .sky__pen.on { opacity: 1; }
.sky__sea { width: calc(100% + 40px); height: 190px; margin: -6px -20px 0; overflow: hidden; background: #173A80; }
.sky__sea span {
  display: block; width: 200%; height: 100%;
  background: repeating-linear-gradient(to bottom, #1F4A9C 0 6px, transparent 6px 22px), repeating-linear-gradient(90deg, transparent 0 60px, #173A80 60px 96px);
  animation: drift 14s linear infinite;
}
.sky__shore { position: absolute; left: 0; bottom: -60px; width: 100%; height: 170px; max-width: none; }
@keyframes drift { to { transform: translateX(-96px); } }

/* ---------- 03 time table ---------- */
.table { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 0 20px 100px; }
.garland, .toran { width: 100%; height: 100px; background: url(../img/toran.svg) repeat-x center top / 113px 100px; }
.garland { margin: -6px 0 0; }
.head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.head__title { font: 800 clamp(44px, 8vw, 84px)/1.05 var(--serif); letter-spacing: -.015em; }
.slots {
  list-style: none; padding: 0; width: 100%; max-width: 760px;
  background: #fff; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
.slots li + li { border-top: 2px dashed #B9C2D6; }
.slots a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 4px 16px;
  padding: 18px 22px; color: var(--ink); text-decoration: none;
  transition: background-color .25s, padding-left .25s var(--ease);
}
.slots a:hover, .slots a:focus-visible { background: var(--gold); padding-left: 34px; }
.slots b { font: 800 30px/1 var(--serif); color: var(--pink-deep); }
.slots__what { font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--serif); }
.slots__when { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- scenes (one event each) ---------- */
.scene {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: 100vh; padding: 130px 20px 110px; text-align: center;
}
.scene__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.scene__title { font: 800 clamp(52px, 9.5vw, 116px)/1 var(--serif); letter-spacing: -.015em; }
.scene__title--it { font-style: italic; font-weight: 700; letter-spacing: 0; }
.scene__title--gold { font-style: italic; font-weight: 700; color: var(--sun); font-size: clamp(46px, 7vw, 84px); }
.scene__time, .scene__date { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.scene__loc { max-width: 400px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.scene__loc b { display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.plant { position: absolute; z-index: 0; bottom: -34px; width: clamp(130px, 22vw, 300px); height: auto; pointer-events: none; }
.plant--l, .plant--bl { left: -2%; }
.plant--r { right: -2%; scale: -1 1; }
.cluster { position: absolute; z-index: 0; width: clamp(130px, 21vw, 290px); height: auto; pointer-events: none; }
.cluster--tl { top: -8px; left: -8px; scale: 1 -1; }   /* a drooping spray from the top corner */
.cluster--br { bottom: -8px; right: -8px; scale: -1 1; } /* rising from the bottom corner */

/* 04 haldi */
.haldi { padding-top: 170px; padding-bottom: 0; justify-content: flex-end; }
.toran { position: absolute; top: 0; left: 0; z-index: 2; }
.string { --u: 92px; position: absolute; top: 26px; z-index: 2; width: calc(var(--u) / 2); height: calc(var(--u) * 5); }
.string span { position: relative; display: block; height: 100%; background: url(../img/string.svg) repeat-y center top / calc(var(--u) / 2) var(--u); transform-origin: 50% 0; animation: swing 5s ease-in-out infinite; }
.string span::after { content: ''; position: absolute; left: 50%; top: 100%; width: calc(var(--u) * .46); height: calc(var(--u) * .64); margin: -4px 0 0 calc(var(--u) * -.23); background: url(../img/bell.svg) center / contain no-repeat; }
.string--l { left: max(2.5%, 8px); }
.string--r { right: max(2.5%, 8px); height: calc(var(--u) * 4); }
.string--r span { animation-duration: 6.5s; animation-direction: reverse; }
.panel {
  position: relative; z-index: 1; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: min(600px, 100%); padding: 130px 28px 170px;
  background: var(--pink); color: #fff;
  border-radius: 300px 300px 0 0 / 210px 210px 0 0;
  box-shadow: 0 0 0 7px var(--paper), 0 0 0 11px var(--pink);
}
.panel > :not(.petals):not(.panel__haldi) { position: relative; z-index: 1; }
.panel__haldi { position: absolute; bottom: 22px; left: 50%; width: 210px; margin-left: -105px; height: auto; }
.petals { position: absolute; inset: 0; pointer-events: none; }
.petals i { position: absolute; top: -24px; width: 12px; height: 17px; border-radius: 60% 40% 60% 40%; background: #F29F05; opacity: .9; animation: fall 8s linear infinite; }
.petals i:nth-child(1) { left: 8%; animation-delay: 0s; }
.petals i:nth-child(2) { left: 22%; animation-delay: -2.2s; background: #FFE14D; }
.petals i:nth-child(3) { left: 38%; animation-delay: -4.1s; animation-duration: 10s; }
.petals i:nth-child(4) { left: 52%; animation-delay: -1.2s; background: #FFE08A; }
.petals i:nth-child(5) { left: 66%; animation-delay: -5.4s; animation-duration: 9s; background: #FFE14D; }
.petals i:nth-child(6) { left: 78%; animation-delay: -3.3s; }
.petals i:nth-child(7) { left: 90%; animation-delay: -6.1s; animation-duration: 11s; background: #FFE08A; }
.petals i:nth-child(8) { left: 46%; animation-delay: -7.5s; animation-duration: 12s; }
@keyframes fall { to { transform: translate3d(40px, 900px, 0) rotate(520deg); } }

/* 05 sangeet */
.sangeet { padding-bottom: 0; }
.sparkle {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .55) 2px, transparent 3px) 0 0 / 92px 92px, radial-gradient(rgba(247, 197, 49, .6) 2px, transparent 3px) 46px 46px / 92px 92px, radial-gradient(rgba(240, 111, 166, .6) 2.5px, transparent 3.5px) 20px 60px / 138px 138px;
  animation: lights 7s linear infinite;
}
@keyframes lights { to { background-position: 92px 92px, 138px 138px, 158px 198px; } }
.hang { position: absolute; z-index: 0; top: -20px; right: 17%; width: clamp(84px, 12vw, 150px); pointer-events: none; }
.hang--b { right: 3%; top: -70px; width: clamp(62px, 8.5vw, 110px); }
.hang img { width: 100%; height: auto; transform-origin: 50% 0; animation: swing 4s ease-in-out infinite; }
.hang--b img { animation-duration: 5.5s; animation-direction: reverse; }
.road { position: relative; z-index: 1; align-self: stretch; height: 150px; margin: 30px -20px 0; border-bottom: 3px dashed rgba(251, 244, 230, .45); }
.auto { position: absolute; left: 0; bottom: 2px; width: clamp(130px, 18vw, 230px); padding: 0; background: none; border: 0; cursor: pointer; transform: translateX(34vw); }
.js .auto { transform: translateX(-270px); }
.js .road.live .auto { animation: drive 7.5s linear infinite; }
.auto::before { content: ''; position: absolute; left: -16px; bottom: 18%; width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 244, 230, .55); box-shadow: -16px -5px 0 2px rgba(251, 244, 230, .32), -38px -1px 0 5px rgba(251, 244, 230, .16); animation: puff .45s ease-in-out infinite alternate; }
@keyframes drive { from { transform: translateX(-270px); } to { transform: translateX(100vw); } }
@keyframes puff { from { opacity: .35; translate: 4px 0; } to { opacity: 1; translate: -4px -3px; } }
.auto img { width: 100%; height: auto; animation: putt .32s ease-in-out infinite alternate; }
.auto.honk img { animation: honk .5s var(--spring); }
.auto__honk { position: absolute; left: 50%; top: -34px; translate: -50% 0; font: 700 30px/1 var(--hand); color: var(--gold); white-space: nowrap; opacity: 0; }
.auto.honk .auto__honk { animation: pom .9s var(--ease); }
@keyframes putt { to { translate: 0 -3px; } }
@keyframes honk { 30% { scale: 1.12 .92; } 60% { scale: .95 1.06; } }
@keyframes pom { 0% { opacity: 0; translate: -50% 10px; } 25% { opacity: 1; } 100% { opacity: 0; translate: -50% -34px; } }

/* 06 shaadi: the signpost */
.shaadi { gap: 26px; }
.post { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; width: min(460px, 100%); padding: 34px 0 70px; }
.post__pole { position: absolute; top: 0; bottom: 0; left: 50%; width: 24px; margin-left: -12px; border-radius: 12px 12px 0 0; background: #7A4A1E; box-shadow: inset -7px 0 0 rgba(0, 0, 0, .22); }
.board { position: relative; --tilt: 0deg; transform-origin: 50% 0; text-align: center; }
.js .board.reveal { opacity: 0; transform: rotate(-18deg) translateY(-18px); transition: opacity .5s, transform .9s var(--spring); transition-delay: var(--d, 0s); }
.js .board.reveal.in, .board { transform: rotate(var(--tilt)); }
.js .board.reveal.in { opacity: 1; }
.js .board.reveal.in:hover, .board:hover { transform: rotate(calc(var(--tilt) + 2.5deg)); transition-delay: 0s; }
.board:nth-child(4) { --d: .15s; }
.board:nth-child(5) { --d: .3s; }
.board:nth-child(6) { --d: .45s; }
.board--names { padding: 16px 54px 20px; background: #FBF4D6; border: 7px solid var(--pink-deep); border-radius: 26px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.board--names h2 { font: italic 700 clamp(34px, 5.4vw, 48px)/1.05 var(--serif); color: var(--pink-deep); }
.board--names span { display: block; font-size: .62em; }
.board--date { padding: 14px 34px; background: #FBF4D6; color: var(--pink-deep); border-radius: 16px; outline: 2px dashed var(--pink-deep); outline-offset: -8px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); font-size: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.board--date b { display: block; font-size: 38px; line-height: 1; letter-spacing: .02em; }
.board--feast { --tilt: -4deg; padding: 18px 34px; background: var(--pink); color: #fff; border: 3px solid var(--paper); outline: 2px dashed var(--paper); outline-offset: -9px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); font-size: 19px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.board--feast { max-width: 100%; }
.board--feast b { display: block; font-size: clamp(20px, 5.4vw, 26px); letter-spacing: .06em; }
.board--loc { max-width: 380px; padding: 14px 26px 16px; background: #FBF4D6; color: var(--ink); border: 6px solid var(--pink-deep); border-radius: 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); font-size: 15px; font-weight: 700; line-height: 1.45; }
.board--loc b { display: block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); }
.board__pin { position: absolute; left: -16px; top: -30px; width: 40px; animation: pin 1.6s ease-in-out infinite; }
@keyframes pin { 50% { translate: 0 -8px; } }
.cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.toast { flex: 1 1 100%; min-height: 28px; font: 700 26px/1 var(--hand); color: var(--gold); }

/* ---------- 07 doha ---------- */
.doha { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 110px 16px; background: var(--gold); }
.doha > :not(.splash) { position: relative; z-index: 1; }
.splash { position: absolute; aspect-ratio: 1; pointer-events: none; }
.splash--a { top: 4%; left: 4%; width: min(46vw, 480px); background: #FFE27A; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.splash--b { bottom: 2%; right: 4%; width: min(38vw, 400px); background: #B9CF45; border-radius: 42% 58% 40% 60% / 60% 44% 56% 40%; }
.leaf { position: relative; width: 100%; max-width: 980px; display: grid; place-items: center; padding: clamp(56px, 9vw, 96px) 12%; }
.leaf svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: calc((var(--t, .5) - .5) * -9deg); transition: scale .8s var(--ease); }
.leaf:hover svg { scale: 1.03; }
.leaf p { position: relative; text-align: center; font: 600 clamp(19px, 3vw, 38px)/1.7 var(--hindi); color: var(--paper); }

/* ---------- 08 last bell: countdown cards ---------- */
.count { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.count div {
  min-width: 104px; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink);
}
.count b { font: 800 clamp(40px, 6vw, 56px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.count b.tick { animation: tick .4s var(--ease); }
.count span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
@keyframes tick { from { transform: translateY(-8px); opacity: .3; } to { transform: none; opacity: 1; } }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 10px; }
  .hero__inner { padding: 84px 10px 64px; min-height: 0; }
  .niche { border-width: 4px; box-shadow: 0 0 0 2px #C99A2E, 6px 7px 0 2px var(--ink); }
  .kid__most { font-size: 14px; }
  .float--stamp, .float--star2, .float--lotus { display: none; }
  .float--plane { top: 13%; right: 24%; width: 52px; }
  .float--m1 { top: auto; bottom: 26px; left: 5%; }
  .float--m2 { top: auto; bottom: 150px; right: 3%; }
  .float--m3 { top: 30%; left: 2%; }
  .float--star { top: auto; bottom: 34px; left: auto; right: 8%; }
  .slots a { grid-template-columns: 44px 1fr; padding: 16px; }
  .slots__when { grid-column: 2; }
  .scene { padding: 110px 16px 90px; }
  .haldi { padding-top: 120px; padding-bottom: 0; }
  .sangeet { padding-bottom: 0; }
  .panel { padding: 110px 20px 160px; border-radius: 200px 200px 0 0 / 150px 150px 0 0; }
  .plant { width: 110px; bottom: -20px; }
  .haldi .plant { display: none; }
  .road { height: 120px; }
  .board--names { padding: 14px 34px 18px; }
  .count div { min-width: 74px; padding: 14px 8px; }
  .cta .btn { flex: 1 1 100%; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .board.reveal { opacity: 1; transform: rotate(var(--tilt)); }
  [data-speed] { transform: none; }
  .js .sky__line { stroke-dashoffset: 0; }
  .petals { display: none; }
}

/* ---------- curtain: a pinned section holds still while the next slides over it ---------- */
.js .pin { position: sticky; top: var(--pin, 0px); }
.pin.covered { visibility: hidden; }
.edge { position: relative; height: 22px; margin: -22px 0 -1px; pointer-events: none; filter: drop-shadow(0 -6px 6px rgba(27, 37, 69, .25)); }
.edge--paper { background: radial-gradient(circle at 50% 100%, var(--paper) 21.5px, transparent 22px) 0 0 / 44px 22px repeat-x; }
.edge--red { background: radial-gradient(circle at 50% 100%, var(--red) 21.5px, transparent 22px) 0 0 / 44px 22px repeat-x; }
.edge--gold { background: radial-gradient(circle at 50% 100%, var(--gold) 21.5px, transparent 22px) 0 0 / 44px 22px repeat-x; }
.palace, .strip--band { position: relative; }

/* signpost details */
.post__top { position: absolute; z-index: 1; top: -28px; left: 50%; width: 56px; height: auto; margin-left: -28px; }
.board__lotus { position: absolute; bottom: -12px; width: 58px; height: auto; }
.board__lotus--l { left: -24px; rotate: -26deg; }
.board__lotus--r { right: -24px; rotate: 26deg; }
.board__dholak { position: absolute; right: -50px; bottom: -24px; width: 78px; height: auto; }

/* ---------- 08 the palace gate ---------- */
.palace { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 110px 12px 56px; }
.palace > :not(.float) { position: relative; z-index: 1; }
.palace__m--a { top: 7%; left: 3%; width: clamp(44px, 6vw, 80px); }
.palace__m--b { top: 26%; right: 4%; width: clamp(34px, 4.5vw, 56px); }
.palace__gate { --wall: #D9785F; --shade: #B9523F; width: 100%; max-width: 1040px; container-type: inline-size; }
.palace__head { position: relative; }
.palace__art { width: 100%; height: auto; margin-bottom: -1px; }
.palace__bell { position: absolute; left: 50%; top: 55%; width: 6%; min-width: 30px; height: auto; margin-left: -3%; transform-origin: 50% 0; animation: swing 3.2s ease-in-out infinite; }
/* the wall carries on below the arch; the hard-stop bands continue the painted frame and the arch trim */
.palace__body {
  margin: 0 4%; padding: 0 7%;
  background-color: var(--wall);
  background-image: linear-gradient(90deg,
    transparent 3.26%, var(--paper) 3.26% 3.7%, transparent 3.7% 4.7%, var(--paper) 4.7% 4.86%, transparent 4.86% 5.76%,
    var(--shade) 5.76% 6.74%, var(--paper) 6.74% 7.62%, transparent 7.62% 92.38%, var(--paper) 92.38% 93.26%, var(--shade) 93.26% 94.24%,
    transparent 94.24% 95.14%, var(--paper) 95.14% 95.3%, transparent 95.3% 96.3%, var(--paper) 96.3% 96.74%, transparent 96.74%);
}
.palace__hall {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 0 16px 60px; text-align: center;
  background: var(--night); color: var(--paper);
  border-inline: 7px solid var(--paper);
  border-inline-width: .8cqw;
  box-shadow: inset 8px 0 0 var(--shade), inset -8px 0 0 var(--shade);
  box-shadow: inset .9cqw 0 0 var(--shade), inset -.9cqw 0 0 var(--shade);
}
.palace__toran { align-self: stretch; height: 72px; margin: 0 -16px 8px; background: url(../img/toran.svg) repeat-x center top / 81px 72px; }
.palace__title { font: italic 700 clamp(32px, 6vw, 76px)/1.08 var(--serif); }
.palace__door { display: none; }
.js .palace__door {
  display: block; position: absolute; z-index: 3; top: 0; bottom: 0; width: 50%;
  background-color: var(--teal);
  background-image: radial-gradient(#F7C531 3px, #8A5A16 3.6px, transparent 4.2px);
  background-size: 46px 46px;
  box-shadow: inset 0 0 0 6px #157F7A, inset 0 0 0 9px #F7C531;
  backface-visibility: hidden; pointer-events: none;
}
.palace__door--l { left: 0; transform-origin: 0 50%; transform: perspective(1400px) rotateY(calc(var(--open, 0) * 104deg)); }
.palace__door--r { right: 0; transform-origin: 100% 50%; transform: perspective(1400px) rotateY(calc(var(--open, 0) * -104deg)); }
.palace__plinth { position: relative; margin: 0 2%; height: 22px; background: var(--shade); border-top: 4px solid var(--paper); }
.palace__plinth::after { content: ''; position: absolute; left: -2.2%; right: -2.2%; top: 100%; height: 16px; background: var(--wall); border-top: 3px solid var(--paper); }
.palace__foot { margin-top: 26px; font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-align: center; }

@media (max-width: 640px) {
  .string { --u: 68px; }
  .garland, .toran { height: 80px; background-size: 90px 80px; }
  .haldi { padding-top: 140px; }
  .cluster { width: 118px; }
  .board__dholak { right: -22px; width: 60px; }
  .board__lotus { width: 44px; }
  .board__lotus--l { left: -14px; }
  .board__lotus--r { right: -14px; }
  .palace { padding: 90px 6px 48px; }
  .palace__hall { padding: 0 8px 44px; gap: 20px; }
  .palace__toran { height: 54px; margin: 0 -8px 4px; background-size: 61px 54px; }
  .palace .count { gap: 6px; flex-wrap: nowrap; }
  .palace .count div { min-width: 0; flex: 1 1 0; padding: 10px 2px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .palace .count b { font-size: clamp(22px, 7vw, 30px); }
  .palace .count { align-self: stretch; }
  .palace .count span { font-size: 10px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .auto { transform: translateX(34vw); }
  .js .palace__door { display: none; }
}

/* ---------- UI/UX audit pass ---------- */
:focus-visible { outline-color: var(--ink); }
.sky :focus-visible, .red :focus-visible, .panel :focus-visible, .palace__hall :focus-visible { outline-color: #fff; }
.slots a:focus-visible { outline-offset: -5px; }
[data-speed] { will-change: auto; }
.covered * { animation-play-state: paused !important; }
.js .btn.reveal.in { transition: opacity .9s var(--ease), transform .9s var(--ease), translate .25s var(--ease), rotate .25s var(--ease), scale .15s, box-shadow .25s var(--ease); transition-delay: 0s; }
.hero__inner { min-height: calc(100svh - 28px); }
.scene { min-height: 100svh; }
.hero__date { margin-bottom: 0; font-size: clamp(18px, 4.6vw, 24px); letter-spacing: .08em; }
.hero__venue { margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.garland { width: calc(100% + 40px); margin: -6px -20px 0; }
.slots a { grid-template-columns: 52px 1fr auto auto; }
.slots a::after { content: '→'; font-size: 22px; font-weight: 700; color: var(--pink-deep); transition: translate .25s var(--ease); }
.slots a:hover::after { translate: 5px 0; }
.slots b { font-size: 24px; }
.slots__when { font-size: 16px; letter-spacing: .06em; }
.table__venue { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; font-size: 18px; font-weight: 700; text-align: center; }
.scene__date { margin-top: -8px; }
.scene__loc { margin-top: 2px; }
.scene .note { margin-top: 8px; }
.gate__note, .toast { font-size: 28px; }
.gate__card { border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); }
@media (max-width: 640px) {
  .slots a { grid-template-columns: 40px 1fr auto; }
  .slots b { grid-row: 1 / span 2; }
  .slots a::after { grid-column: 3; grid-row: 1 / span 2; }
  .string { height: calc(var(--u) * 2.5); }
  .string--r { height: calc(var(--u) * 2); }
  .hang--a { right: 3%; width: 64px; }
  .hang--b { display: none; }
}

/* ---------- Sangeet and Shaadi: violet checks, after the reference, in our own textile ---------- */
.violet { color: var(--paper); background-color: #6A3E9E; isolation: isolate; }
.checks { position: absolute; inset: -160px 0; z-index: -1; pointer-events: none; background: url(../img/checks.svg) 0 0 / 180px 180px; }
.checks::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 5px); }
.sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sparks i { position: absolute; width: var(--s, 28px); aspect-ratio: 1; background: url(../img/sparkle.svg) center / contain no-repeat; animation: glint 3.6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.sparks i:nth-child(1) { top: 9%; left: 6%; --s: 34px; }
.sparks i:nth-child(2) { top: 15%; right: 8%; --s: 56px; --dl: -1.1s; }
.sparks i:nth-child(3) { top: 37%; left: 3%; --s: 22px; --dl: -2.3s; }
.sparks i:nth-child(4) { top: 47%; right: 4%; --s: 30px; --dl: -.6s; }
.sparks i:nth-child(5) { top: 63%; left: 11%; --s: 44px; --dl: -1.8s; }
.sparks i:nth-child(6) { top: 74%; right: 13%; --s: 24px; --dl: -2.9s; }
.sparks i:nth-child(7) { top: 27%; left: 29%; --s: 16px; --dl: -.3s; }
.sparks i:nth-child(8) { top: 86%; right: 31%; --s: 20px; --dl: -1.4s; }
@keyframes glint { 0%, 100% { opacity: .35; scale: .62; rotate: 0deg; } 50% { opacity: 1; scale: 1; rotate: 22deg; } }
.violet .eyebrow--gold { color: var(--butter); }
.violet :focus-visible { outline-color: #fff; }
.edge--violet { background: radial-gradient(circle at 50% 100%, #6A3E9E 21.5px, transparent 22px) 0 0 / 44px 22px repeat-x; }
.road { height: 210px; }
.auto { width: clamp(150px, 22vw, 280px); }
@keyframes drive { from { transform: translateX(-300px); } to { transform: translateX(100vw); } }
.js .auto { transform: translateX(-300px); }
@media (max-width: 640px) {
  .checks { background-size: 132px 132px; }
  .sparks i:nth-child(n+7) { display: none; }
  .road { height: 160px; }
}
@media (prefers-reduced-motion: reduce) { .sparks i { opacity: .8; } }

/* ---------- round 5: the auto faces left like the painting and drives right to left ---------- */
.auto { transform: translateX(34vw); }
.js .auto { transform: translateX(100vw); }
@keyframes drive { from { transform: translateX(100vw); } to { transform: translateX(-320px); } }
.auto::before { left: auto; right: -16px; box-shadow: 16px -5px 0 2px rgba(251, 244, 230, .32), 38px -1px 0 5px rgba(251, 244, 230, .16); }
@keyframes puff { from { opacity: .35; translate: -4px 0; } to { opacity: 1; translate: 4px -3px; } }
@media (prefers-reduced-motion: reduce) { .js .auto { transform: translateX(34vw); } }

/* ---------- QA pass ---------- */
.js body.locked .skip { display: none; }
.kbd .pin { position: relative; top: auto; }
.kbd .pin.covered { visibility: visible; }

/* the redrawn thali gets a little more presence */
.panel { padding-bottom: 196px; }
.panel__haldi { width: 252px; margin-left: -126px; bottom: 20px; }
@media (max-width: 640px) {
  .panel { padding-bottom: 170px; }
  .panel__haldi { width: 214px; margin-left: -107px; }
}

/* the traced auto is taller than the first drawing */
.road { height: 250px; }
.auto { width: clamp(150px, 20vw, 260px); }
@media (max-width: 640px) { .road { height: 170px; } }

/* ---------- the families: one arched invitation card on a teal ground ---------- */
.family {
  display: flex; flex-direction: column; align-items: center;
  padding: 150px 16px 0; text-align: center;
  background: #0E6F6B; color: var(--paper); isolation: isolate;
}
.family > :not(.float):not(.buti):not(.family__bell):not(.family__rangoli) { position: relative; z-index: 1; }
.buti { position: absolute; inset: -160px 0; z-index: -1; pointer-events: none; opacity: .7; background: url(../img/buti.svg) 0 0 / 120px 120px; }
.edge--teal { background: radial-gradient(circle at 50% 100%, #0E6F6B 21.500px, transparent 22px) 0 0 / 44px 22px repeat-x; }
/* a large rangoli turning slowly behind the card's arch */
.family__rangoli { position: absolute; z-index: -1; top: -90px; left: 50%; width: min(1180px, 170vw); margin-left: calc(min(1180px, 170vw) / -2); pointer-events: none; }
.family__rangoli img { width: 100%; height: auto; animation: turn-slow 140s linear infinite; }
@keyframes turn-slow { to { rotate: 360deg; } }
.family__m--a { top: 30%; left: 3%; width: clamp(40px, 5.400vw, 70px); --depth: 40; }
.family__m--b { top: 66%; right: 3%; width: clamp(32px, 4.200vw, 54px); --depth: -60; }
.family__bell { position: absolute; top: 0; z-index: 0; width: clamp(34px, 4.400vw, 52px); padding-top: clamp(40px, 7vw, 96px); transform-origin: 50% 0; animation: swing 4.200s ease-in-out infinite; }
.family__bell::before { content: ''; position: absolute; top: 0; left: 50%; width: 2.500px; height: calc(100% - 40px); margin-left: -1.250px; background: #C8962E; }
.family__bell img { position: relative; width: 100%; height: auto; }
.family__bell--l { left: 6%; }
.family__bell--r { right: 6%; padding-top: clamp(24px, 4.600vw, 60px); animation-duration: 5.100s; animation-direction: reverse; }

/* the card: cream paper, arched like the frames on the first page, ringed in gold */
.invite {
  width: 100%; max-width: 1000px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 12px 12px / 270px 270px 12px 12px;
  box-shadow: 0 0 0 8px #0E6F6B, 0 0 0 11px var(--gold), 16px 18px 0 11px #0A4B48;
}
.invite__arch { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 58px 24px 34px; }
.invite__ganesh { width: clamp(150px, 22vw, 220px); }
.invite__ganesh img { width: 100%; height: auto; }
.invite__om { margin-top: 6px; font: 700 clamp(14px, 1.800vw, 17px)/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pink-deep); }
.invite__bless { max-width: 560px; font: italic 700 clamp(22px, 3vw, 34px)/1.25 var(--serif); }
.invite__band { height: 16px; }
.invite__houses { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0 clamp(12px, 3vw, 36px); padding: 44px clamp(16px, 4vw, 52px) 8px; }
.house { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.house:last-child { --d: .15s; }
.house__name { margin-bottom: 6px; font: 800 clamp(36px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -.015em; }
.house__list { width: 100%; display: flex; flex-direction: column; }
.house__list div { padding: 14px 0; border-top: 2px dotted #B9C2D6; }
.house__list dt { margin-bottom: 5px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-deep); }
.house__list dd { font: 700 clamp(18px, 2vw, 21px)/1.35 var(--serif); }
.house__list dd.plain { font: 400 17px/1.45 var(--sans); }
/* the two houses are joined by a marigold garland, with "weds" strung on it */
.invite__weds { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.invite__weds span { flex: 1; width: 34px; min-height: 46px; background: url(../img/string.svg) repeat-y center top / 34px 68px; }
.invite__weds b { display: grid; place-items: center; width: 88px; aspect-ratio: 1; border-radius: 50%; background: var(--pink); color: #fff; font: italic 700 26px/1 var(--serif); box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--gold); rotate: -6deg; }
.invite__line { max-width: 660px; margin: 30px auto 0; padding: 0 22px; font: italic 700 clamp(18px, 2.200vw, 24px)/1.45 var(--serif); }
/* tear-off RSVP slips: a perforated line with a punched notch at each end */
.invite__rsvp { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; background: var(--butter); border-top: 3px dashed var(--ink); }
.invite__rsvp::before, .invite__rsvp::after { content: ''; position: absolute; z-index: 2; top: -16px; width: 30px; height: 30px; border-radius: 50%; background: #0E6F6B; border: 3px solid var(--ink); }
.invite__rsvp::before { left: -18px; }
.invite__rsvp::after { right: -18px; }
.slip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px clamp(16px, 3vw, 36px) 30px; }
.slip + .slip { border-left: 3px dashed var(--ink); --d: .15s; }
.slip__stamp { position: absolute; z-index: 1; top: -30px; right: 9%; display: grid; place-items: center; width: 62px; aspect-ratio: 1; background: var(--butter); border: 3px double var(--note); border-radius: 50%; color: var(--note); font: 800 14px/1 var(--serif); letter-spacing: .06em; rotate: 14deg; }
.slip__title { font: 700 13px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); }
.slip__names { max-width: 400px; font-size: 17px; line-height: 1.5; }
.slip__tel { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.slip__tel .btn { gap: 8px; padding: 0 20px; font-size: 15px; letter-spacing: .03em; text-transform: none; }
.invite__close { padding: 22px 16px 24px; border-top: 3px solid var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.family :focus-visible { outline-color: var(--ink); }

/* a ledge of lit diyas along the bottom */
.family__ledge { --w: clamp(42px, 5.400vw, 66px); align-self: stretch; display: flex; justify-content: space-around; align-items: flex-start; height: 44px; margin: 110px -16px 0; padding: 0 5%; background: #0A4B48; border-top: 4px solid #C8962E; }
.diya { position: relative; width: var(--w); margin-top: calc(var(--w) * -.560 - 4px); }
.diya::before { content: ''; position: absolute; left: 50%; bottom: 62%; width: 170%; aspect-ratio: 1; margin-left: -85%; border-radius: 50%; background: rgba(255, 226, 122, .1); box-shadow: 0 0 0 14px rgba(255, 226, 122, .05); }
.diya__bowl { position: relative; width: 100%; height: auto; }
.diya__flame { position: absolute; left: 50%; bottom: 76%; width: 32%; height: auto; margin-left: -16%; transform-origin: 50% 100%; animation: flicker 1.300s ease-in-out infinite alternate; }
.diya:nth-child(2n) .diya__flame { animation-duration: 1.700s; animation-delay: -.6s; }
.diya:nth-child(3n) .diya__flame { animation-duration: 1.100s; animation-delay: -.3s; }
@keyframes flicker { 0% { scale: 1 1; rotate: -3deg; } 50% { scale: .9 1.12; rotate: 3deg; } 100% { scale: 1.06 .94; rotate: -1deg; } }

@media (max-width: 760px) {
  .family { padding: 120px 12px 0; }
  .invite { border-radius: 50% 50% 10px 10px / 150px 150px 10px 10px; box-shadow: 0 0 0 5px #0E6F6B, 0 0 0 8px var(--gold), 8px 10px 0 8px #0A4B48; }
  .invite__arch { padding: 44px 16px 26px; }
  .invite__houses { grid-template-columns: minmax(0, 1fr); padding: 30px 16px 4px; }
  .invite__weds { flex-direction: row; margin: 16px 0; }
  .invite__weds span { width: auto; height: 30px; min-height: 0; background: url(../img/marigold.svg) repeat-x center / 30px 30px; }
  .invite__weds b { width: 76px; font-size: 23px; }
  .invite__rsvp { grid-template-columns: minmax(0, 1fr); }
  .slip + .slip { border-left: 0; border-top: 3px dashed var(--ink); }
  .slip__tel .btn { flex: 1 1 100%; }
  .invite__rsvp::before { left: -16px; }
  .invite__rsvp::after { right: -16px; }
  .family__bell--l { left: 2%; }
  .family__bell--r { right: 2%; }
  .family__ledge { margin: 80px -12px 0; }
  .diya:nth-child(n+6) { display: none; }
  .buti { background-size: 96px 96px; }
}
