:root {
  --ivory: #fbf6ec;
  --parchment: #f3e9d3;
  --cream: #f6eedc;
  --gold: #b8860a;
  --gold-light: #d8b25c;
  --gold-muted: #8a6a1f;
  --maroon: #7a1626;
  --maroon-mid: #5c1119;
  --maroon-deep: #3e0d12;
  --ink: #5a4a2e;
  --card: #fffdf8;
  --shadow: 0 14px 10px -8px rgba(90, 60, 20, 0.1), 0 12px 28px rgba(90, 60, 20, 0.18);
  --font-ui: "Poppins", sans-serif;
  --font-display: "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", serif;
  --font-te: "Peddana", "Ramabhadra", serif;
}

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

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  z-index: 400;
  background: var(--maroon-mid);
  color: var(--ivory);
  padding: 8px 12px;
}

/* Background texture */
.page {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 178, 92, 0.12), transparent 50%),
    var(--ivory);
}

.page::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184, 134, 10, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 40%, rgba(122, 22, 38, 0.05) 0 1px, transparent 1.5px);
  background-size: 28px 28px, 36px 36px;
}

.petals {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -8vh;
  animation: fallPetal linear infinite;
  filter: drop-shadow(0 2px 3px rgba(122, 22, 38, 0.2));
}

.section {
  position: relative;
  z-index: 1;
  padding: 64px 20px;
}

.section-tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
}

.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}

.te-title {
  font-family: var(--font-te);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--gold) 50%, var(--maroon) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.en-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 36px);
  color: var(--maroon);
  text-align: center;
  margin: 0 0 12px;
  font-weight: 500;
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 20px;
}

/* Intro / landing */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: #f6eedc;
  color: var(--maroon);
}

.intro.is-gone {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.intro-stage {
  position: relative;
  width: min(100%, calc(100dvh * 853 / 1844));
  height: min(100dvh, calc(100dvw * 1844 / 853));
  aspect-ratio: 853 / 1844;
  flex-shrink: 0;
  container-type: size;
}

.intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.intro-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 11.5% 7% 9%;
}

.intro-ganesha-wrap {
  position: relative;
  width: 62%;
  flex-shrink: 0;
  margin: 0 0 4px;
  animation: scaleIn 1.1s ease 0.2s both;
  transform-origin: center top;
}

.intro-ganesha {
  display: block;
  width: 100%;
  height: auto;
  filter: url(#knockout-black);
}

.intro-shubh {
  font-family: var(--font-te);
  font-size: clamp(32px, 11cqi, 44px);
  color: var(--maroon);
  line-height: 1.1;
  animation: fadeUp 0.8s ease 0.35s both;
}

.intro-sub {
  font-family: var(--font-te);
  font-size: clamp(16px, 5.2cqi, 20px);
  color: var(--maroon);
  margin: 2px 0 10px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s ease 0.45s both;
}

.intro-title {
  font-family: "Ramabhadra", var(--font-te);
  font-size: clamp(34px, 11.2cqi, 46px);
  font-weight: 700;
  color: var(--maroon);
  margin: 0 4px 8px;
  line-height: 1.2;
  animation: fadeUp 0.9s ease 0.6s both;
}

.intro-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 168px;
  margin-bottom: 8px;
  animation: fadeIn 0.8s ease 0.7s both;
}

.intro-flourish i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a44a, transparent);
}

.intro-flourish span {
  width: 7px;
  height: 7px;
  background: #c9a44a;
  transform: rotate(45deg);
}

.intro-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.9s ease 0.8s both;
}

.intro-names .script-name {
  font-size: clamp(40px, 12.5cqi, 54px);
  line-height: 1.08;
}

.heart-outline {
  width: 22px;
  height: 22px;
  margin: 4px 0;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
}

.intro-invite {
  margin-top: 8px;
  font-family: var(--font-te);
  font-size: clamp(16px, 4.8cqi, 19px);
  color: var(--maroon);
  animation: fadeUp 0.8s ease 0.95s both;
}

.intro-date {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-te);
  font-size: clamp(20px, 6cqi, 24px);
  color: var(--maroon);
  letter-spacing: 0.08em;
  animation: fadeUp 0.8s ease 1.05s both;
}

.gold-flower {
  width: 16px;
  height: 16px;
  fill: var(--gold-light);
}

.intro-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: clamp(12px, 3.6cqi, 14px);
  color: var(--maroon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease 1.15s both;
}

.intro-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intro-meta svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.intro-meta i {
  width: 1px;
  height: 14px;
  background: var(--gold);
  opacity: 0.7;
}

.intro-cta {
  margin-top: 16px;
  padding: 13px 34px;
  border: 1px solid #e4c36a;
  border-radius: 40px;
  background: linear-gradient(180deg, #e8cc78 0%, #c9a44a 48%, #b8860a 100%);
  color: #5c1119;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(138, 106, 31, 0.28);
  animation: fadeUp 0.9s ease 1.25s both, glow 2.8s ease-in-out 2.2s infinite;
}

.intro-cta:hover {
  transform: translateY(-2px);
}

.script-name {
  font-family: var(--font-te);
  font-size: clamp(42px, 11vw, 64px);
  color: var(--maroon);
  line-height: 1.15;
  font-weight: 400;
}

.heart {
  color: var(--gold);
  font-size: 22px;
}

/* Header / hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 16px 40px;
  text-align: center;
  background: #f3e9d3 url("assets/intro-bg.png") center top / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: url("assets/card-corner.svg") no-repeat center / contain;
  opacity: 0.45;
  pointer-events: none;
}

.hero::before { top: 70px; left: -10px; }
.hero::after { top: 70px; right: -10px; transform: scaleX(-1); }

.garlands {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
}

.garland {
  position: absolute;
  top: 0;
  width: 3px;
  background: repeating-linear-gradient(to bottom, #f4f0e6 0 8px, #e8d9b0 8px 10px);
  border-radius: 2px;
}

.garland::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 16px;
  background: #d4b05a;
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 2px 0 #8a6a1f;
}

.g-a { left: 14%; height: 64px; }
.g-b { left: 50%; height: 78px; transform: translateX(-50%); }
.g-c { right: 14%; height: 64px; }

.hero-deity {
  display: block;
  width: min(360px, 90vw);
  margin: 8px auto 6px;
  -webkit-mask-image: radial-gradient(ellipse 82% 86% at 50% 48%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 86% at 50% 48%, #000 70%, transparent 100%);
  filter: drop-shadow(0 10px 18px rgba(90, 60, 20, 0.22));
}

.hero-blessing {
  font-family: var(--font-te);
  font-size: 14px;
  color: var(--gold-muted);
  letter-spacing: 0.16em;
}

.hero-blessing.small {
  font-size: 14px;
  margin-bottom: 10px;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 8px;
}

.hero-names .script-name {
  font-size: clamp(44px, 11vw, 58px);
  line-height: 1.15;
}

.hero-names .heart {
  margin: 2px 0;
}

.te-line {
  margin: 4px 0 22px;
  font-family: var(--font-te);
  font-size: 16px;
}

.couple {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  animation: fadeUp 0.9s ease 0.1s both;
}

.portrait {
  width: 46%;
  max-width: 180px;
}

.frame {
  width: 100%;
  aspect-ratio: 5 / 6;
  height: auto;
  border-radius: 110px 110px 8px 8px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mono {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #6b1220, #4a0d14);
  color: var(--gold-light);
  font-family: var(--font-te);
  font-size: 64px;
}

.flowers {
  margin-top: 8px;
  font-size: 15px;
}

.meta-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.08em;
}

.meta-row svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.meta-row.venue-name {
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Blessing */
.blessing,
.events,
.countdown,
.story,
.invite {
  padding: 48px 20px 52px;
  text-align: center;
  overflow: hidden;
  background: #f3e9d3;
}

.blessing-bg,
.events-bg,
.countdown-bg,
.story-bg,
.invite-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

.blessing-inner,
.events-inner,
.countdown-inner,
.story-inner,
.invite-inner {
  position: relative;
  z-index: 1;
}

.blessing-ganesha {
  display: block;
  width: min(280px, 72%);
  margin: 0 auto 10px;
}

.blessing p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 300;
}

/* Events */
.events-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 16px;
}

.events-kicker i {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a44a, transparent);
}

.events-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.events-heading h2 {
  font-family: "Ramabhadra", var(--font-te);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
}

.events-heading .flourish {
  width: 52px;
  height: auto;
}

.events-heading .flourish.flip {
  transform: scaleX(-1);
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 300px;
  margin: 0 auto;
  align-items: start;
}

.event-card {
  position: relative;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  width: auto;
  margin: 0;
  border: 0;
  background: transparent;
  transition: transform 0.35s ease;
}

.event-card:hover {
  transform: translateY(-3px);
}

.event-frame {
  width: 100%;
  height: auto;
  display: block;
}

.event-card-body {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 18%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
}

.event-card.pellikuthuru .event-card-body {
  top: 48%;
  bottom: 15%;
  justify-content: space-evenly;
  gap: 2px;
}

.event-card.pellikuthuru h3 {
  width: 100%;
  margin: 0;
  text-align: center;
  transform: translateX(-0.15em);
}

.event-card.highlight {
  background: transparent;
  border: 0;
  color: var(--maroon);
  box-shadow: none;
}

.event-art {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  color: var(--gold);
  display: block;
}

.wedding-icon {
  width: 90%;
  max-height: none;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.event-card.highlight .event-card-body {
  top: 14%;
  bottom: 11%;
  left: 14%;
  right: 14%;
  justify-content: space-evenly;
  gap: 0;
}

.event-card.highlight .event-row {
  font-size: 15px;
}

.event-card h3 {
  font-family: "Ramabhadra", var(--font-te);
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--maroon);
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

.event-card.highlight h3 {
  color: var(--maroon);
}

.event-card hr {
  display: none;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: "Playfair Display", var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--maroon);
  line-height: 1;
}

.event-row span {
  line-height: 1;
  display: inline-block;
  padding-top: 1px;
}

.event-row svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
  display: block;
}

.event-rail {
  position: relative;
  max-width: 280px;
  margin: 18px auto 8px;
  height: 16px;
  display: flex;
  justify-content: space-between;
  padding: 0 18%;
}

.event-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  border-top: 1.5px solid rgba(184, 134, 10, 0.55);
}

.event-rail .dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold);
}

.event-rail .dot.dark {
  background: var(--maroon);
}

.event-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.event-foot i {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a44a, transparent);
}

.event-foot img {
  width: 64px;
  height: auto;
}

/* Countdown */
.countdown-inner {
  position: relative;
  z-index: 1;
}

.count-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.count-box {
  min-width: 78px;
  padding: 16px 8px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.count-box strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--maroon);
  font-weight: 500;
}

.count-box small {
  display: block;
  font-size: 10px;
  color: var(--gold-muted);
  letter-spacing: 0.16em;
  margin-top: 6px;
}

.ended {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--maroon);
}

.heart-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  max-width: 300px;
}

.heart-rule i {
  flex: 1;
  height: 1px;
  background: rgba(184, 134, 10, 0.5);
}

/* Story */
.timeline {
  max-width: 460px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6b1220, #4a0d14);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 20px;
  flex-shrink: 0;
}

.rail-line {
  width: 1px;
  flex: 1;
  min-height: 28px;
  background: rgba(184, 134, 10, 0.45);
}

.step-body {
  padding: 4px 0 18px;
}

.step-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--maroon);
  margin: 0 0 8px;
  font-weight: 500;
}

.step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 300;
}

/* Envelope */
.envelope {
  position: relative;
  display: block;
  width: min(420px, 92vw);
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.envelope-art {
  width: 100%;
  height: auto;
  display: block;
}

.envelope-card {
  position: absolute;
  left: 18%;
  top: 17.5%;
  width: 64%;
  height: 42%;
  object-fit: contain;
  object-position: center top;
  background: #fffdf8;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(40, 10, 10, 0.28);
  pointer-events: none;
}

.envelope:hover {
  transform: translateY(-4px);
}

.envelope.is-opening {
  animation: envelopeGlow 0.9s ease both;
}

.invite-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gold-muted);
  letter-spacing: 0.12em;
}

/* Invitation lightbox */
.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(20, 12, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

#invite-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 64px 12px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    #f7efdc url("assets/intro-bg.png") center top / cover no-repeat;
}

.modal-x,
.lb-nav {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(243, 228, 196, 0.4);
  background: transparent;
  color: #f3e4c4;
  font-size: 18px;
  cursor: pointer;
}

.modal-x {
  top: 20px;
  right: 20px;
}

#invite-modal .modal-x {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #6b1220;
  border: 2px solid var(--gold);
  color: #f3e4c4;
}

.lb-nav.prev {
  left: 12px;
}

.lb-nav.next {
  right: 12px;
}

.invite-sheet {
  width: min(400px, 100%);
  margin: 0 auto;
  background: #fffaf0;
  border: 3px solid var(--gold);
  box-shadow: 0 16px 40px rgba(90, 40, 20, 0.22);
  animation: fadeUp 0.45s ease both;
}

.invite-sheet img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery */
.gallery {
  background: var(--ivory);
}

.gallery[hidden] {
  display: none !important;
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.g-item {
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(90, 60, 20, 0.15);
  border: 0;
  padding: 0;
  background: none;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s ease;
}

.g-item:hover img {
  transform: scale(1.04);
}

.g-item.tall {
  grid-row: span 2;
}

.g-item.tall img {
  aspect-ratio: 3 / 5;
}

#lightbox-img {
  max-width: 88%;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Venue */
.venue {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 20px 80px;
  background: #f6eedc url("assets/venue-bg.png") center / cover no-repeat;
}

.venue-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vine {
  position: absolute;
  width: min(42vw, 280px);
  opacity: 0.92;
}

.vine-tl {
  top: -8px;
  left: -18px;
}

.vine-br {
  right: -18px;
  bottom: -8px;
  transform: rotate(180deg);
}

.rose-petal {
  position: absolute;
  width: 34px;
  opacity: 0.88;
}

.rp1 { top: 18%; left: 8%; width: 28px; transform: rotate(-28deg); }
.rp2 { top: 8%; right: 18%; width: 36px; transform: rotate(22deg); }
.rp3 { top: 42%; right: 6%; width: 30px; transform: rotate(-12deg); }
.rp4 { bottom: 16%; left: 10%; width: 38px; transform: rotate(40deg); }
.rp5 { bottom: 8%; right: 22%; width: 26px; transform: rotate(-50deg); }

.venue-head,
.venue-divider,
.venue-card,
.venue .cal-link {
  position: relative;
  z-index: 1;
}

.venue-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.venue-head h2 {
  font-family: var(--font-te);
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 400;
  color: var(--maroon);
  margin: 0;
  letter-spacing: 0.04em;
}

.venue-head .flourish {
  width: 72px;
}

.venue-head .flourish.flip {
  transform: scaleX(-1);
}

.venue-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 220px;
  margin: 0 auto 28px;
}

.venue-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a44a, transparent);
}

.venue-divider span {
  width: 7px;
  height: 7px;
  background: #c9a44a;
  transform: rotate(45deg);
}

.venue-card {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(201, 164, 74, 0.45);
  border-radius: 22px;
  padding: 42px 28px 32px;
  box-shadow: 0 18px 40px rgba(90, 60, 20, 0.12);
}

.filigree {
  position: absolute;
  width: 52px;
  opacity: 0.85;
  pointer-events: none;
}

.fg-tl { top: 10px; left: 10px; }
.fg-tr { top: 10px; right: 10px; transform: scaleX(-1); }
.fg-bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.fg-br { bottom: 10px; right: 10px; transform: scale(-1); }

.venue-card h3 {
  font-family: "Playfair Display", var(--font-serif);
  font-size: clamp(26px, 6vw, 32px);
  color: var(--maroon);
  margin: 8px 0 14px;
  font-weight: 600;
}

.venue-line {
  width: 64px;
  height: 1px;
  background: #d4b45c;
  margin: 0 auto 18px;
}

.venue-card p {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4338;
  margin: 0 0 26px;
  font-weight: 400;
}

.venue-card .pin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4b05a 0%, #b8860a 55%, #8a6a1f 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 16px rgba(138, 106, 31, 0.28);
}

.directions-btn svg {
  width: 16px;
  height: 16px;
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(138, 106, 31, 0.36);
}

.cal-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold-muted);
}

.family-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.family-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 220px;
  margin: 14px auto;
}

.family-rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a44a, transparent);
}

.family-rule span {
  width: 7px;
  height: 7px;
  background: #c9a44a;
  transform: rotate(45deg);
}

/* Hosts */
.hosts {
  position: relative;
  overflow: hidden;
  background: #f8f1de;
  padding: 48px 16px 56px;
}

.hosts-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1.5px solid #c9a44a;
  outline: 1px solid rgba(201, 164, 74, 0.45);
  outline-offset: -7px;
  border-radius: 10px;
  padding: 28px 14px 26px;
  box-shadow: 0 16px 36px rgba(90, 60, 20, 0.1);
}

.hosts-petal {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 28px;
  transform: rotate(-24deg);
  pointer-events: none;
}

.hosts-card h2 {
  font-family: var(--font-te);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 400;
  color: var(--maroon);
  margin: 8px 0 6px;
}

.hosts-pair {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 14px 4px 16px;
}

.hosts-frame {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  min-height: 230px;
  border-radius: 110px 110px 8px 8px;
  overflow: hidden;
  border: 2.5px solid #c4a05a;
  background: #000;
  box-shadow: 0 12px 22px rgba(90, 60, 20, 0.2);
}

.hosts-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

.hosts-names {
  font-family: var(--font-te);
  font-size: clamp(16px, 4.2vw, 20px);
  line-height: 1.55;
  color: var(--maroon);
  margin: 4px 8px 6px;
}

.hosts-place {
  font-family: var(--font-te);
  font-size: 15px;
  color: #2a241c;
  margin: 0 8px 4px;
}

/* Family members */
.members {
  position: relative;
  overflow: hidden;
  background: #fdf5e6;
  padding: 56px 16px 64px;
}

.members-card {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fffaf0;
  border: 1px solid rgba(201, 164, 74, 0.55);
  outline: 1px solid rgba(201, 164, 74, 0.35);
  outline-offset: -8px;
  border-radius: 6px;
  padding: 36px 28px 32px;
  box-shadow: 0 16px 36px rgba(90, 60, 20, 0.1);
}

.members-card h2 {
  font-family: "Playfair Display", var(--font-serif);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 600;
  color: var(--maroon);
  margin: 0 0 8px;
}

.members-card p {
  font-family: var(--font-te);
  font-size: clamp(16px, 3.8vw, 19px);
  line-height: 1.7;
  color: var(--maroon);
  margin: 0;
}

/* Final */
.final {
  padding: 80px 24px 70px;
  background: linear-gradient(180deg, var(--maroon-mid), var(--maroon-deep));
  text-align: center;
}

.final .script-name {
  color: #f3e4c4;
  font-size: clamp(40px, 9vw, 56px);
}

.final-date {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-light);
  margin-top: 12px;
  letter-spacing: 0.1em;
}

.final-love {
  margin-top: 26px;
  font-size: 14px;
  color: #e8d8b8;
  font-weight: 300;
}

.final-om {
  margin-top: 40px;
  font-family: var(--font-te);
  font-size: 18px;
  letter-spacing: 0.16em;
  background: linear-gradient(90deg, var(--gold-light) 0%, #f3e4c4 50%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Floaters */
.float-left,
.float-right {
  position: fixed;
  bottom: 22px;
  z-index: 150;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.page.is-open .float-left,
.page.is-open .float-right {
  display: flex;
}

.float-left {
  left: 18px;
}

.float-right {
  right: 18px;
  align-items: flex-end;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--maroon-mid);
  border: none;
  color: #f3e4c4;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fab.icon-fab {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.fab.icon-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fab.wa {
  background: transparent;
}

.fab[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 18px rgba(184, 140, 44, 0.35); }
  50% { box-shadow: 0 0 32px rgba(184, 140, 44, 0.65); }
}

@keyframes fallPetal {
  0% { transform: translateY(-8vh) translateX(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.85; }
  92% { opacity: 0.7; }
  100% { transform: translateY(108vh) translateX(var(--drift, 40px)) rotate(340deg); opacity: 0; }
}

@keyframes envelopeGlow {
  0% { transform: scale(1); }
  35% { transform: scale(0.96); }
  100% { transform: scale(0.96); }
}

@keyframes cardSlide {
  to { opacity: 1; transform: translateY(-28px) scale(1); }
}

@media (min-width: 560px) {
  .event-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 480px;
    gap: 14px;
  }

  .event-card h3 {
    font-size: clamp(15px, 3vw, 18px);
    margin: 0 0 8px;
  }

  .event-row {
    font-size: 12px;
    margin: 3px 0;
  }

  .event-card.highlight .event-row {
    font-size: 13px;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .portrait {
    max-width: none;
    width: 48%;
  }
  .frame {
    border-radius: 90px 90px 6px 6px;
  }
  .mono {
    font-size: 56px;
  }
  .hosts-card {
    max-width: none;
    padding: 24px 12px 22px;
  }
  .hosts-frame {
    min-height: 260px;
    border-radius: 120px 120px 8px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
