/* =========================================================
   BD-002 — ELEGANT MILESTONE
   Kiniththa Premium Digital Birthday Invitation
========================================================= */

:root {
  --black: #3b2730;
  --black-soft: #4a303b;
  --charcoal: #62424e;
  --charcoal-light: #815d68;

  --gold-dark: #9d6570;
  --gold: #c99482;
  --gold-light: #e8c2ae;
  --champagne: #f6dfd2;

  --cream: #fff9f6;
  --white: #ffffff;

  --text: #45343a;
  --muted: #806d73;

  --dark-text: rgba(255, 249, 246, 0.76);
  --dark-border: rgba(255, 232, 222, 0.16);
  --light-border: rgba(157, 101, 112, 0.20);

  --shadow-small: 0 15px 40px rgba(20, 15, 8, 0.09);
  --shadow-medium: 0 25px 70px rgba(20, 15, 8, 0.15);
  --shadow-large: 0 40px 110px rgba(0, 0, 0, 0.35);

  --radius-small: 14px;
  --radius-medium: 24px;
  --radius-large: 36px;

  --transition: 0.3s ease;
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background: var(--cream);
  color: var(--text);

  font-family:
    "Segoe UI",
    "Noto Sans Sinhala",
    Arial,
    sans-serif;

  line-height: 1.7;
}

body.invitation-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.section-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-label,
.small-label {
  color: var(--gold-dark);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 13px;

  color: var(--black-soft);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin: 18px auto 0;

  color: var(--muted);
  font-size: 1rem;
}

.light-heading .section-label {
  color: var(--gold-light);
}

.light-heading h2 {
  color: var(--white);
}

.light-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}


/* =========================
   CONTENT VISIBILITY
========================= */

.invitation-content {
  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.invitation-content.active {
  opacity: 1;
  visibility: visible;
}


/* =========================
   EXPIRED SCREEN
========================= */

.expired-screen {
  position: fixed;
  z-index: 9000;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 24px;

  background:
    radial-gradient(circle at top, rgba(215, 173, 88, 0.16), transparent 38%),
    linear-gradient(145deg, #060708, #17191d);
}

.expired-card {
  width: min(560px, 100%);
  padding: 58px 42px;

  border: 1px solid rgba(215, 173, 88, 0.25);
  border-radius: var(--radius-large);

  background: rgba(255, 255, 255, 0.05);
  color: var(--white);

  box-shadow: var(--shadow-large);

  text-align: center;
  backdrop-filter: blur(18px);
}

.expired-icon {
  color: var(--gold);
  font-size: 2rem;
}

.expired-card h1 {
  margin-top: 20px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.3rem);
  font-weight: 400;
  line-height: 1.12;
}

.expired-card > p:last-child {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.65);
}


/* =========================
   OPENING SCREEN
========================= */

.opening-screen {
  position: fixed;
  z-index: 8000;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 15%, rgba(215, 173, 88, 0.22), transparent 30%),
    radial-gradient(circle at 80% 85%, rgba(215, 173, 88, 0.13), transparent 35%),
    linear-gradient(145deg, #050607 0%, #111318 55%, #090a0c 100%);

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.opening-screen.closed {
  opacity: 0;
  visibility: hidden;
}

.opening-glow {
  position: absolute;

  border: 1px solid rgba(215, 173, 88, 0.12);
  border-radius: 50%;

  pointer-events: none;
}

.opening-glow-one {
  top: -220px;
  right: -180px;

  width: 620px;
  height: 620px;
}

.opening-glow-two {
  bottom: -260px;
  left: -180px;

  width: 560px;
  height: 560px;
}

.confetti-layer {
  position: absolute;
  inset: 0;

  overflow: hidden;
  pointer-events: none;
}

.confetti-layer span {
  position: absolute;

  color: var(--gold);
  opacity: 0.28;

  animation: floatConfetti 7s ease-in-out infinite;
}

.confetti-layer span:nth-child(1) {
  top: 10%;
  left: 9%;
  font-size: 1.4rem;
}

.confetti-layer span:nth-child(2) {
  top: 22%;
  left: 22%;
  animation-delay: -2s;
}

.confetti-layer span:nth-child(3) {
  top: 12%;
  right: 18%;
  animation-delay: -4s;
}

.confetti-layer span:nth-child(4) {
  top: 35%;
  right: 7%;
  font-size: 1.7rem;
  animation-delay: -1s;
}

.confetti-layer span:nth-child(5) {
  bottom: 18%;
  right: 14%;
  animation-delay: -5s;
}

.confetti-layer span:nth-child(6) {
  bottom: 8%;
  right: 32%;
  animation-delay: -3s;
}

.confetti-layer span:nth-child(7) {
  bottom: 15%;
  left: 10%;
  font-size: 1.6rem;
  animation-delay: -4.5s;
}

.confetti-layer span:nth-child(8) {
  bottom: 32%;
  left: 24%;
  animation-delay: -1.5s;
}

.confetti-layer span:nth-child(9) {
  top: 48%;
  left: 4%;
  animation-delay: -3.5s;
}

.confetti-layer span:nth-child(10) {
  top: 56%;
  right: 20%;
  animation-delay: -2.5s;
}

.confetti-layer span:nth-child(11) {
  top: 5%;
  left: 50%;
  animation-delay: -6s;
}

.confetti-layer span:nth-child(12) {
  bottom: 5%;
  left: 50%;
  animation-delay: -2.8s;
}

@keyframes floatConfetti {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-22px) rotate(130deg);
  }
}

.opening-card {
  position: relative;
  z-index: 5;

  width: min(560px, 100%);
  padding: 54px 42px 46px;

  overflow: hidden;

  border: 1px solid rgba(215, 173, 88, 0.34);
  border-radius: 38px;

  background:
    radial-gradient(circle at top, rgba(215, 173, 88, 0.10), transparent 38%),
    rgba(12, 13, 16, 0.88);

  color: var(--white);

  box-shadow:
    0 45px 120px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);

  text-align: center;
  backdrop-filter: blur(20px);
}

.opening-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;

  border: 1px solid rgba(215, 173, 88, 0.13);
  border-radius: 28px;

  content: "";
  pointer-events: none;
}

.brand-label,
.mini-brand {
  color: var(--gold-light);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.invited-label {
  margin-top: 28px;

  color: rgba(255, 255, 255, 0.52);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.opening-card h1 {
  margin-top: 10px;

  color: var(--white);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 6vw, 2.9rem);
  font-weight: 400;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin: 25px 0;
}

.gold-divider span {
  width: 72px;
  height: 1px;

  background: linear-gradient(90deg, transparent, rgba(215, 173, 88, 0.65));
}

.gold-divider span:last-child {
  background: linear-gradient(90deg, rgba(215, 173, 88, 0.65), transparent);
}

.gold-divider b {
  color: var(--gold);
  font-size: 1rem;
}

.opening-age-wrap {
  display: grid;
  place-items: center;

  width: 130px;
  height: 130px;
  margin: 0 auto;

  border: 1px solid rgba(215, 173, 88, 0.42);
  border-radius: 50%;

  background:
    radial-gradient(circle, rgba(215, 173, 88, 0.18), transparent 65%);

  box-shadow:
    0 0 50px rgba(215, 173, 88, 0.14),
    inset 0 0 0 8px rgba(215, 173, 88, 0.035);
}

.opening-age {
  color: var(--gold-light);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 1;
}

.opening-name {
  margin-top: 18px;

  color: var(--white);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 8vw, 4rem);
  font-style: italic;
  line-height: 1;
}

.opening-subtitle {
  margin-top: 12px;

  color: var(--gold);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.open-invitation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 54px;
  margin-top: 32px;
  padding: 13px 29px;

  border: 1px solid var(--gold);
  border-radius: 999px;

  background: var(--gold);
  color: var(--black);

  font-weight: 800;

  box-shadow: 0 14px 40px rgba(215, 173, 88, 0.22);

  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.open-invitation-button:hover {
  transform: translateY(-3px);
  background: var(--gold-light);
  box-shadow: 0 20px 50px rgba(215, 173, 88, 0.3);
}

.open-invitation-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.tap-note {
  margin-top: 17px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
}


/* =========================
   MUSIC BUTTON
========================= */

.music-button {
  position: fixed;
  z-index: 7000;
  right: 22px;
  bottom: 22px;

  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;

  border: 1px solid rgba(215, 173, 88, 0.65);
  border-radius: 50%;

  background: rgba(10, 11, 13, 0.88);
  color: var(--gold-light);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);

  backdrop-filter: blur(16px);
}

.music-button.playing {
  animation: musicPulse 1.8s ease-in-out infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(215, 173, 88, 0.34);
  }

  50% {
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.28),
      0 0 0 13px rgba(215, 173, 88, 0);
  }
}


/* =========================
   HERO
========================= */

.hero-section {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 100vh;
  padding: 105px 0 85px;

  overflow: hidden;

  background:
    radial-gradient(circle at 15% 15%, rgba(215, 173, 88, 0.17), transparent 30%),
    radial-gradient(circle at 82% 70%, rgba(215, 173, 88, 0.11), transparent 37%),
    linear-gradient(135deg, #060708 0%, #121419 52%, #090a0c 100%);

  color: var(--white);
}

.hero-section::before {
  position: absolute;
  inset: 0;

  opacity: 0.22;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 55px 55px;

  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.hero-content {
  max-width: 650px;
}

.hero-invited {
  margin-top: 25px;

  color: rgba(255, 255, 255, 0.53);

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero-age-line {
  display: flex;
  align-items: flex-start;

  margin-top: 15px;
}

.hero-age {
  color: var(--gold-light);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 12vw, 9.5rem);
  line-height: 0.88;
}

.hero-age-suffix {
  margin-top: 13px;
  margin-left: 7px;

  color: var(--gold);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-style: italic;
}

.celebrant-name {
  margin-top: 5px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.hero-birthday-label {
  margin-top: 12px;

  color: var(--gold);

  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero-divider {
  justify-content: flex-start;
  margin: 26px 0;
}

.hero-message {
  max-width: 600px;

  color: rgba(255, 255, 255, 0.70);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-style: italic;
}

.guest-card {
  width: min(420px, 100%);
  margin-top: 28px;
  padding: 17px 20px;

  border: 1px solid rgba(215, 173, 88, 0.28);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.045);

  backdrop-filter: blur(12px);
}

.guest-card p {
  color: rgba(255, 255, 255, 0.42);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.guest-card strong {
  display: block;
  margin-top: 4px;

  color: var(--gold-light);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;

  margin-top: 30px;
}

.primary-button,
.secondary-button,
.map-button,
.outline-button,
.rsvp-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px;

  font-weight: 800;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.primary-button {
  min-height: 52px;
  padding: 13px 24px;

  background: var(--gold);
  color: var(--black);

  box-shadow: 0 15px 40px rgba(215, 173, 88, 0.2);
}

.primary-button:hover {
  transform: translateY(-3px);
  background: var(--gold-light);
  box-shadow: 0 20px 50px rgba(215, 173, 88, 0.28);
}

.secondary-button {
  min-height: 52px;
  padding: 13px 24px;

  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.secondary-button:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 610px;
}

.birthday-emblem {
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 390px;
  height: 390px;

  border: 1px solid rgba(215, 173, 88, 0.32);
  border-radius: 50%;

  background:
    radial-gradient(circle, rgba(215, 173, 88, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.025);

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.4),
    inset 0 0 70px rgba(215, 173, 88, 0.05);

  text-align: center;
  backdrop-filter: blur(12px);
}

.birthday-emblem p {
  color: rgba(255, 255, 255, 0.52);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.birthday-emblem strong {
  color: var(--gold-light);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  font-weight: 400;
  line-height: 0.95;
}

.birthday-emblem > span {
  margin-top: 12px;

  color: var(--gold);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.emblem-ring {
  position: absolute;

  border: 1px solid rgba(215, 173, 88, 0.14);
  border-radius: 50%;

  pointer-events: none;
}

.emblem-ring-one {
  inset: -30px;
}

.emblem-ring-two {
  inset: -65px;

  border-style: dashed;

  animation: slowRotate 35s linear infinite;
}

@keyframes slowRotate {
  to {
    transform: rotate(360deg);
  }
}

.floating-note {
  position: absolute;
  z-index: 6;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 220px;
  padding: 14px 16px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;

  background: rgba(10, 11, 13, 0.78);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(16px);
}

.floating-note > span {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: rgba(215, 173, 88, 0.14);
  color: var(--gold-light);
}

.floating-note div {
  display: flex;
  flex-direction: column;
}

.floating-note strong {
  font-size: 0.82rem;
}

.floating-note small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.69rem;
}

.floating-note-one {
  top: 80px;
  left: -15px;
}

.floating-note-two {
  right: -15px;
  bottom: 95px;
}

.hero-orbit {
  position: absolute;

  border: 1px solid rgba(215, 173, 88, 0.07);
  border-radius: 50%;

  pointer-events: none;
}

.hero-orbit-one {
  top: -220px;
  right: -150px;

  width: 600px;
  height: 600px;
}

.hero-orbit-two {
  bottom: -300px;
  left: -220px;

  width: 620px;
  height: 620px;
}

.hero-sparkles span {
  position: absolute;
  z-index: 1;

  color: var(--gold);
  opacity: 0.28;

  animation: sparkleFloat 5s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1) {
  top: 15%;
  left: 6%;
}

.hero-sparkles span:nth-child(2) {
  top: 25%;
  right: 8%;
  animation-delay: -2s;
}

.hero-sparkles span:nth-child(3) {
  bottom: 19%;
  left: 12%;
  animation-delay: -4s;
}

.hero-sparkles span:nth-child(4) {
  bottom: 12%;
  right: 16%;
  animation-delay: -1s;
}

.hero-sparkles span:nth-child(5) {
  top: 48%;
  left: 47%;
  animation-delay: -3s;
}

.hero-sparkles span:nth-child(6) {
  top: 8%;
  left: 55%;
  animation-delay: -2.5s;
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-18px) scale(1.25);
    opacity: 0.55;
  }
}


/* =========================
   QUOTE
========================= */

.quote-section {
  padding: 110px 0;

  background:
    radial-gradient(circle at center, rgba(215, 173, 88, 0.10), transparent 45%),
    var(--cream);

  text-align: center;
}

.quote-mark {
  color: var(--gold);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 0.7;
}

.quote-section blockquote {
  max-width: 820px;
  margin: 20px auto 0;

  color: var(--black-soft);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-style: italic;
  line-height: 1.25;
}

.small-divider {
  margin-top: 32px;
  color: var(--gold-dark);
}


/* =========================
   EVENT DETAILS
========================= */

.event-section {
  padding: 110px 0;

  background: var(--white);
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  min-height: 240px;
  padding: 32px;

  border: 1px solid var(--light-border);
  border-radius: var(--radius-medium);

  background:
    radial-gradient(circle at top right, rgba(215, 173, 88, 0.11), transparent 35%),
    var(--cream);

  box-shadow: var(--shadow-small);

  text-align: center;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.event-card:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 173, 88, 0.5);
  box-shadow: var(--shadow-medium);
}

.event-icon {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;
  margin: 0 auto;

  border: 1px solid rgba(159, 116, 44, 0.25);
  border-radius: 50%;

  background: rgba(215, 173, 88, 0.10);
  color: var(--gold-dark);

  font-size: 1.2rem;
}

.event-card > p {
  margin-top: 22px;

  color: var(--gold-dark);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.event-card h3 {
  margin-top: 7px;

  color: var(--black-soft);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.event-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.map-button {
  width: max-content;
  min-height: 52px;
  margin: 38px auto 0;
  padding: 13px 24px;

  background: var(--black-soft);
  color: var(--white);

  box-shadow: var(--shadow-small);
}

.map-button:hover {
  transform: translateY(-3px);
  background: var(--gold-dark);
}


/* =========================
   COUNTDOWN
========================= */

.countdown-section {
  padding: 110px 0;

  overflow: hidden;

  background:
    radial-gradient(circle at 50% 0%, rgba(215, 173, 88, 0.15), transparent 38%),
    linear-gradient(145deg, #08090b, #17191d);

  color: var(--white);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.countdown-item {
  padding: 32px 18px;

  border: 1px solid rgba(215, 173, 88, 0.22);
  border-radius: var(--radius-medium);

  background: rgba(255, 255, 255, 0.035);

  text-align: center;

  backdrop-filter: blur(12px);
}

.countdown-item strong {
  display: block;

  color: var(--gold-light);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.countdown-item span {
  display: block;
  margin-top: 12px;

  color: rgba(255, 255, 255, 0.47);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.countdown-complete {
  margin-top: 30px;
  color: var(--gold-light);
  text-align: center;
}


/* =========================
   GALLERY
========================= */

.gallery-section {
  padding: 110px 0;

  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 18px;
}

.gallery-item {
  position: relative;

  overflow: hidden;

  border-radius: var(--radius-medium);

  background: var(--charcoal);

  box-shadow: var(--shadow-small);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(5) {
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;

  transition: transform 0.6s ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;

  opacity: 0;

  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.45));

  content: "";

  transition: opacity var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-placeholder {
  display: grid;
  place-items: center;

  height: 100%;
  padding: 25px;

  background:
    radial-gradient(circle at top, rgba(215, 173, 88, 0.18), transparent 42%),
    linear-gradient(145deg, #15171b, #272a31);

  color: var(--gold-light);
  text-align: center;
}

.gallery-placeholder span {
  font-size: 2rem;
}

.gallery-placeholder p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}


/* =========================
   TIMELINE
========================= */

.timeline-section {
  padding: 110px 0;

  background: var(--white);
}

.timeline-list {
  position: relative;

  max-width: 850px;
  margin: 0 auto;
}

.timeline-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 180px;

  width: 1px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(159, 116, 44, 0.35) 12%,
    rgba(159, 116, 44, 0.35) 88%,
    transparent
  );

  content: "";
}

.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 150px 35px 1fr;
  align-items: flex-start;
  gap: 15px;

  padding: 0 0 32px;
}

.timeline-time {
  padding-top: 17px;

  color: var(--gold-dark);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  text-align: right;
}

.timeline-dot {
  position: relative;
  z-index: 2;

  width: 15px;
  height: 15px;
  margin: 20px auto 0;

  border: 4px solid var(--white);
  border-radius: 50%;

  background: var(--gold);

  box-shadow: 0 0 0 1px rgba(159, 116, 44, 0.35);
}

.timeline-content {
  padding: 22px 24px;

  border: 1px solid var(--light-border);
  border-radius: 18px;

  background: var(--cream);
}

.timeline-content h3 {
  color: var(--black-soft);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.timeline-content p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}


/* =========================
   DRESS CODE
========================= */

.dress-code-section {
  padding: 0 0 110px;

  background: var(--white);
}

.dress-code-card {
  position: relative;

  max-width: 900px;
  margin: 0 auto;
  padding: 65px;

  overflow: hidden;

  border-radius: var(--radius-large);

  background:
    radial-gradient(circle at top right, rgba(215, 173, 88, 0.18), transparent 35%),
    linear-gradient(145deg, #090a0c, #1b1d22);

  color: var(--white);

  box-shadow: var(--shadow-large);

  text-align: center;
}

.dress-code-card::after {
  position: absolute;
  right: -110px;
  bottom: -120px;

  width: 320px;
  height: 320px;

  border: 1px solid rgba(215, 173, 88, 0.13);
  border-radius: 50%;

  content: "";
}

.dress-icon {
  color: var(--gold);
  font-size: 1.8rem;
}

.dress-code-card .section-label {
  margin-top: 18px;
  color: var(--gold);
}

.dress-code-card h2 {
  margin-top: 10px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 400;
}

.dress-code-card > p:not(.section-label) {
  max-width: 650px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.63);
}

.colour-dots {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
  gap: 12px;

  margin-top: 30px;
}

.colour-dots span {
  width: 36px;
  height: 36px;

  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.dot-black {
  background: #050505;
}

.dot-charcoal {
  background: #33363c;
}

.dot-gold {
  background: #c99a3d;
}

.dot-champagne {
  background: #ead7ac;
}


/* =========================
   RSVP
========================= */

.rsvp-section {
  padding: 110px 0;

  background:
    radial-gradient(circle at 20% 10%, rgba(215, 173, 88, 0.15), transparent 30%),
    linear-gradient(145deg, #07080a, #17191d);

  color: var(--white);
}

.rsvp-form {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px;

  border: 1px solid rgba(215, 173, 88, 0.22);
  border-radius: var(--radius-large);

  background: rgba(255, 255, 255, 0.045);

  box-shadow: var(--shadow-large);

  backdrop-filter: blur(16px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-top: 18px;
}

.form-grid .form-field {
  margin-top: 0;
}

.form-field > span {
  color: rgba(255, 255, 255, 0.65);

  font-size: 0.75rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  outline: none;

  background: rgba(255, 255, 255, 0.06);
  color: var(--white);

  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 12px 15px;
}

.form-field textarea {
  min-height: 130px;
  padding: 14px 15px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-field select option {
  background: var(--charcoal);
  color: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(215, 173, 88, 0.10);
}

.rsvp-submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 26px;
  padding: 13px 24px;

  border: 0;

  background: var(--gold);
  color: var(--black);

  box-shadow: 0 15px 40px rgba(215, 173, 88, 0.22);
}

.rsvp-submit-button:hover {
  transform: translateY(-3px);
  background: var(--gold-light);
}

.rsvp-submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.privacy-note {
  margin-top: 15px;

  color: rgba(255, 255, 255, 0.38);

  font-size: 0.69rem;
  text-align: center;
}


/* =========================
   ACTIONS
========================= */

.action-section {
  padding: 110px 0;

  background: var(--cream);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 320px;
  padding: 38px;

  border: 1px solid var(--light-border);
  border-radius: var(--radius-medium);

  background: var(--white);

  box-shadow: var(--shadow-small);
}

.action-icon {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  border-radius: 50%;

  background: rgba(215, 173, 88, 0.12);
  color: var(--gold-dark);

  font-size: 1.2rem;
}

.action-card h3 {
  margin-top: 25px;

  color: var(--black-soft);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.action-card p {
  margin-top: 12px;
  color: var(--muted);
}

.outline-button {
  min-height: 49px;
  margin-top: auto;
  padding: 12px 22px;

  border: 1px solid var(--black-soft);

  background: transparent;
  color: var(--black-soft);
}

.outline-button:hover {
  transform: translateY(-3px);
  background: var(--black-soft);
  color: var(--white);
}


/* =========================
   CLOSING
========================= */

.closing-section {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 680px;
  padding: 90px 20px;

  overflow: hidden;

  background:
    radial-gradient(circle at center, rgba(215, 173, 88, 0.17), transparent 42%),
    linear-gradient(145deg, #07080a, #16181c);

  color: var(--white);

  text-align: center;
}

.closing-section::before,
.closing-section::after {
  position: absolute;

  width: 430px;
  height: 430px;

  border: 1px solid rgba(215, 173, 88, 0.08);
  border-radius: 50%;

  content: "";
}

.closing-section::before {
  top: -220px;
  right: -150px;
}

.closing-section::after {
  bottom: -250px;
  left: -160px;
}

.closing-content {
  position: relative;
  z-index: 2;

  max-width: 760px;
}

.closing-content .section-label {
  color: var(--gold);
}

.closing-content h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 16px;

  margin-top: 20px;

  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.closing-content h2 span {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  font-style: italic;
}

.closing-content h2 small {
  color: var(--gold);
  font-size: 1.2rem;
  font-style: italic;
}

.closing-content h2 strong {
  color: var(--gold-light);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 400;
}

.closing-content > p:not(.section-label) {
  max-width: 620px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.63);
}

.closing-symbol {
  margin-top: 35px;
  color: var(--gold);
  font-size: 1.5rem;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 32px 20px;

  background: #050607;
  color: rgba(255, 255, 255, 0.48);

  text-align: center;
}

.site-footer p {
  font-size: 0.78rem;
}

.site-footer strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.site-footer small {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
}


/* =========================
   SCROLL REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   RESPONSIVE — TABLET
========================= */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-age-line,
  .hero-divider,
  .hero-actions {
    justify-content: center;
  }

  .guest-card {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

  .floating-note-one {
    left: 5%;
  }

  .floating-note-two {
    right: 5%;
  }

  .event-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .event-card:last-child {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-row: span 1;
  }
}


/* =========================
   RESPONSIVE — MOBILE
========================= */

@media (max-width: 700px) {
  .section-container {
    width: min(100% - 28px, 1120px);
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .opening-card {
    padding: 45px 24px 38px;
    border-radius: 30px;
  }

  .opening-card::before {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .opening-age-wrap {
    width: 112px;
    height: 112px;
  }

  .opening-age {
    font-size: 4rem;
  }

  .hero-section {
    min-height: auto;
    padding: 95px 0 75px;
  }

  .hero-age {
    font-size: clamp(5rem, 26vw, 7.5rem);
  }

  .celebrant-name {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .hero-message {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 460px;
  }

  .birthday-emblem {
    width: 280px;
    height: 280px;
  }

  .birthday-emblem strong {
    font-size: 6.8rem;
  }

  .emblem-ring-one {
    inset: -20px;
  }

  .emblem-ring-two {
    inset: -43px;
  }

  .floating-note {
    min-width: 180px;
    padding: 11px 13px;
  }

  .floating-note-one {
    top: 35px;
    left: 0;
  }

  .floating-note-two {
    right: 0;
    bottom: 35px;
  }

  .quote-section,
  .event-section,
  .countdown-section,
  .gallery-section,
  .timeline-section,
  .rsvp-section,
  .action-section {
    padding: 80px 0;
  }

  .event-card-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .event-card:last-child {
    grid-column: auto;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .timeline-list::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 20px 1fr;
    gap: 14px;
  }

  .timeline-time {
    grid-column: 2;
    padding-top: 0;
    text-align: left;
  }

  .timeline-dot {
    grid-row: 1 / span 2;
    grid-column: 1;
    margin-top: 5px;
  }

  .timeline-content {
    grid-column: 2;
  }

  .dress-code-section {
    padding-bottom: 80px;
  }

  .dress-code-card {
    padding: 50px 24px;
    border-radius: 28px;
  }

  .rsvp-form {
    padding: 26px 18px;
    border-radius: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 300px;
    padding: 30px 25px;
  }

  .closing-section {
    min-height: 570px;
  }

  .music-button {
    right: 16px;
    bottom: 16px;

    width: 52px;
    height: 52px;
  }
}


/* =========================
   RESPONSIVE — SMALL MOBILE
========================= */

@media (max-width: 430px) {
  .opening-screen {
    padding: 12px;
  }

  .opening-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .gold-divider span {
    width: 48px;
  }

  .opening-name {
    font-size: 2.8rem;
  }

  .hero-visual {
    min-height: 400px;
  }

  .birthday-emblem {
    width: 235px;
    height: 235px;
  }

  .birthday-emblem strong {
    font-size: 5.7rem;
  }

  .floating-note {
    min-width: 155px;
  }

  .floating-note strong {
    font-size: 0.72rem;
  }

  .floating-note small {
    font-size: 0.61rem;
  }

  .floating-note-one {
    top: 20px;
  }

  .floating-note-two {
    bottom: 20px;
  }

  .countdown-item {
    padding: 25px 10px;
  }

  .countdown-item strong {
    font-size: 2.7rem;
  }

  .gallery-grid {
    grid-auto-rows: 285px;
  }

  .closing-content h2 {
    gap: 9px;
  }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   BD-002 ELEGANT MILESTONE — FINAL THEME LAYER
========================================================= */

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 194, 174, 0.18), transparent 24%),
    var(--cream);
}

.opening-screen {
  background:
    radial-gradient(circle at 18% 20%, rgba(232, 194, 174, 0.22), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(201, 148, 130, 0.18), transparent 34%),
    linear-gradient(145deg, #2d1d24, #4a303b 56%, #6a4651);
}

.opening-card {
  border-color: rgba(232, 194, 174, 0.34);
  border-radius: 220px 220px 38px 38px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow:
    0 45px 110px rgba(28, 14, 20, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.opening-age {
  color: #f4d8ca;
  text-shadow: 0 12px 45px rgba(18, 8, 12, 0.38);
}

.opening-name,
.celebrant-name {
  font-style: italic;
  letter-spacing: -1px;
}

.open-invitation-button {
  background: linear-gradient(135deg, #e8c2ae, #c99482);
  color: #3b2730;
  box-shadow: 0 18px 45px rgba(201, 148, 130, 0.28);
}

.hero-section {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.09), transparent 25%),
    radial-gradient(circle at 84% 68%, rgba(232, 194, 174, 0.15), transparent 33%),
    linear-gradient(145deg, #3a2630, #5a3b47 58%, #76505a);
}

.hero-section::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
}

.birthday-emblem {
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.22), transparent 27%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.birthday-emblem::after {
  position: absolute;
  inset: 22px;

  border: 1px solid rgba(232, 194, 174, 0.22);
  border-radius: inherit;

  content: "";
  pointer-events: none;
}

.quote-section {
  background:
    radial-gradient(circle at center, rgba(201, 148, 130, 0.12), transparent 42%),
    linear-gradient(180deg, #fffaf7, #f9ede8);
}

.event-section,
.gallery-section,
.action-section {
  background:
    radial-gradient(circle at top right, rgba(232, 194, 174, 0.14), transparent 27%),
    var(--cream);
}

.event-card,
.dress-code-card,
.action-card {
  border-color: rgba(157, 101, 112, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 236, 231, 0.76));
}

.countdown-section,
.timeline-section,
.rsvp-section,
.closing-section {
  background:
    radial-gradient(circle at 15% 18%, rgba(232, 194, 174, 0.16), transparent 29%),
    radial-gradient(circle at 88% 74%, rgba(201, 148, 130, 0.13), transparent 34%),
    linear-gradient(145deg, #332129, #573944 58%, #704a55);
}

.countdown-item,
.timeline-content,
.rsvp-form {
  border-color: rgba(232, 194, 174, 0.17);
  background: rgba(255, 255, 255, 0.055);
}

.gallery-item {
  border-radius: 50% 50% 22px 22px;
  box-shadow: 0 24px 70px rgba(69, 45, 54, 0.14);
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
  border-radius: 22px 22px 50% 50%;
}

.timeline-dot {
  background: #e8c2ae;
  box-shadow: 0 0 0 8px rgba(232, 194, 174, 0.11);
}

.rsvp-submit-button,
.primary-button {
  background: linear-gradient(135deg, #e8c2ae, #c99482);
  color: #3b2730;
}

.rsvp-submit-button:hover,
.primary-button:hover {
  background: linear-gradient(135deg, #f4d8ca, #d9aa98);
}

.closing-section h2 strong {
  color: #f1ccba;
}

.site-footer {
  background: #2b1b22;
}

@media (max-width: 680px) {
  .opening-card {
    border-radius: 150px 150px 30px 30px;
  }

  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(5) {
    border-radius: 26px;
  }
}

/* =========================================================
   KINIRTHTHA TEXT VISIBILITY FIX V1
   Fixes low-contrast programme text and dress-code text.
========================================================= */

/* Programme / agenda cards are displayed on dark backgrounds. */
.timeline-content h3 {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.68) !important;
}

.timeline-content {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.035)
    ) !important;
}

/* The final theme uses a light dress-code card, so its text must be dark. */
.dress-code-card {
  color: #4a303b !important;
}

.dress-code-card h2 {
  position: relative;
  z-index: 2;

  color: #4a303b !important;
  text-shadow: none !important;
}

.dress-code-card > p:not(.section-label) {
  position: relative;
  z-index: 2;

  color: rgba(74, 48, 59, 0.74) !important;
}

.dress-code-card .section-label,
.dress-code-card .dress-icon {
  position: relative;
  z-index: 2;

  color: #9d6570 !important;
}

.dress-code-card .colour-dots {
  position: relative;
  z-index: 2;
}

@media (max-width: 680px) {
  .timeline-content h3 {
    font-size: 1.12rem;
  }

  .timeline-content p {
    font-size: 0.82rem;
    line-height: 1.7;
  }
}

/* =========================================================
   KINIRTHTHA THEMED OPENING EFFECTS
========================================================= */

.kiniththa-effect-layer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.9s ease;
}

.kiniththa-effect-layer.is-fading { opacity: 0; }

.kiniththa-effect-particle {
  position: absolute;
  display: block;
  width: var(--kfx-size);
  height: var(--kfx-size);
  opacity: 0;
  will-change: transform, opacity;
}

/* Floral rose petals */
.effect-rose-petals .kiniththa-effect-particle {
  border-radius: 80% 12% 80% 12%;
  background: linear-gradient(135deg, #fff6f3, #e8aeb0 58%, #b96872);
  box-shadow: 0 4px 12px rgba(125, 52, 64, 0.18);
  animation: kfx-fall var(--kfx-duration) cubic-bezier(.25,.65,.35,1) var(--kfx-delay) forwards;
}

/* Royal gold dust */
.effect-gold-sparkles .kiniththa-effect-particle {
  width: calc(var(--kfx-size) * .68);
  height: calc(var(--kfx-size) * .68);
  background: #f4d58a;
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
  filter: drop-shadow(0 0 8px rgba(244, 213, 138, .88));
  animation: kfx-gold-fall var(--kfx-duration) ease-in var(--kfx-delay) forwards;
}

/* Ivory butterflies */
.effect-ivory-butterflies .kiniththa-effect-particle {
  width: calc(var(--kfx-size) * 1.5);
  height: var(--kfx-size);
  animation: kfx-fly var(--kfx-duration) ease-in-out var(--kfx-delay) forwards;
}
.effect-ivory-butterflies .kiniththa-effect-particle::before,
.effect-ivory-butterflies .kiniththa-effect-particle::after {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border: 1px solid rgba(150, 137, 111, .55);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,225,207,.72));
  content: "";
  animation: kfx-wing .34s ease-in-out infinite alternate;
}
.effect-ivory-butterflies .kiniththa-effect-particle::before { left: 0; border-radius: 80% 20% 70% 30%; transform-origin: 100% 60%; }
.effect-ivory-butterflies .kiniththa-effect-particle::after { right: 0; border-radius: 20% 80% 30% 70%; transform-origin: 0 60%; }

/* Heritage lotus petals */
.effect-lotus-petals .kiniththa-effect-particle {
  width: calc(var(--kfx-size) * .78);
  height: calc(var(--kfx-size) * 1.35);
  border-radius: 75% 75% 42% 42%;
  background: linear-gradient(180deg, #fff2df, #d98f60 65%, #8f3f2a);
  box-shadow: 0 0 13px rgba(255, 183, 104, .28);
  animation: kfx-fall var(--kfx-duration) ease-in var(--kfx-delay) forwards;
}

/* Coastal fireflies */
.effect-coastal-fireflies .kiniththa-effect-particle {
  border-radius: 50%;
  background: #ffe9a6;
  box-shadow: 0 0 8px #ffe9a6, 0 0 20px rgba(113, 202, 215, .9), 0 0 34px rgba(52, 139, 163, .45);
  animation: kfx-rise-drift var(--kfx-duration) ease-out var(--kfx-delay) forwards;
}

/* Golden birthday balloons */
.effect-gold-balloons .kiniththa-effect-particle {
  width: calc(var(--kfx-size) * 1.05);
  height: calc(var(--kfx-size) * 1.28);
  border-radius: 52% 52% 48% 48%;
  background: radial-gradient(circle at 32% 25%, #fff5c7 0 8%, #e6b94b 30%, #9f6d13 100%);
  box-shadow: 0 7px 18px rgba(111, 69, 8, .25);
  animation: kfx-rise var(--kfx-duration) ease-out var(--kfx-delay) forwards;
}
.effect-gold-balloons .kiniththa-effect-particle::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: calc(var(--kfx-size) * 2.5);
  background: rgba(152, 112, 47, .5);
  content: "";
}

/* Champagne bubbles */
.effect-champagne-bubbles .kiniththa-effect-particle {
  border: 1px solid rgba(220, 164, 154, .8);
  border-radius: 50%;
  background: rgba(255, 244, 238, .14);
  box-shadow: inset 3px 3px 7px rgba(255,255,255,.72), 0 0 11px rgba(221, 164, 154, .35);
  animation: kfx-rise-drift var(--kfx-duration) ease-out var(--kfx-delay) forwards;
}

/* Neon light streaks */
.effect-neon-streaks .kiniththa-effect-particle {
  width: calc(var(--kfx-size) * .34);
  height: calc(var(--kfx-size) * 3.2);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff52d9, #865dff 54%, #35eaff);
  box-shadow: 0 0 9px #ff52d9, 0 0 21px rgba(53, 234, 255, .85);
  animation: kfx-neon-fall var(--kfx-duration) linear var(--kfx-delay) forwards;
}

/* Grand opening ribbons */
.effect-opening-ribbons .kiniththa-effect-particle {
  width: calc(var(--kfx-size) * .45);
  height: calc(var(--kfx-size) * 2.4);
  border-radius: 999px 999px 35% 35%;
  background: linear-gradient(180deg, #f9d789, #b88629 55%, #174a3c);
  box-shadow: 0 4px 10px rgba(23, 74, 60, .18);
  animation: kfx-ribbon-fall var(--kfx-duration) ease-in var(--kfx-delay) forwards;
}

/* Product reveal technology particles */
.effect-tech-particles .kiniththa-effect-particle {
  border: 1px solid rgba(100, 209, 255, .9);
  background: rgba(41, 153, 213, .13);
  box-shadow: 0 0 12px rgba(61, 196, 255, .75);
  animation: kfx-tech-fall var(--kfx-duration) linear var(--kfx-delay) forwards;
}
.effect-tech-particles .kiniththa-effect-particle:nth-child(3n) { border-radius: 50%; }
.effect-tech-particles .kiniththa-effect-particle:nth-child(4n) { transform: rotate(45deg); }

/* Conference network nodes */
.effect-network-nodes .kiniththa-effect-particle {
  border-radius: 50%;
  background: #73d8e6;
  box-shadow: 0 0 10px rgba(115, 216, 230, .8), 0 0 23px rgba(25, 92, 116, .45);
  animation: kfx-fly var(--kfx-duration) ease-in-out var(--kfx-delay) forwards;
}
.effect-network-nodes .kiniththa-effect-particle::after {
  position: absolute;
  top: 50%;
  right: 50%;
  width: calc(var(--kfx-size) * 4.5);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115,216,230,.52));
  content: "";
  transform: rotate(-18deg);
  transform-origin: right center;
}

@keyframes kfx-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0); }
  12% { opacity: var(--kfx-opacity); }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), 122vh, 0) rotate(var(--kfx-rotation)); }
}
@keyframes kfx-gold-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) scale(.25) rotate(0); }
  18% { opacity: var(--kfx-opacity); transform: translate3d(calc(var(--kfx-drift) * .16), 15vh, 0) scale(1.2) rotate(90deg); }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), 118vh, 0) scale(.45) rotate(var(--kfx-rotation)); }
}
@keyframes kfx-fly {
  0% { opacity: 0; transform: translate3d(-6vw, 0, 0) rotate(-8deg) scale(.7); }
  12% { opacity: var(--kfx-opacity); }
  55% { transform: translate3d(58vw, var(--kfx-flight-y), 0) rotate(7deg) scale(1); }
  100% { opacity: 0; transform: translate3d(124vw, calc(var(--kfx-flight-y) * -.3), 0) rotate(-6deg) scale(.82); }
}
@keyframes kfx-wing {
  from { transform: rotateY(18deg) rotateZ(-8deg); }
  to { transform: rotateY(72deg) rotateZ(9deg); }
}
@keyframes kfx-rise {
  0% { opacity: 0; transform: translate3d(0, 8vh, 0) rotate(0); }
  14% { opacity: var(--kfx-opacity); }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), -125vh, 0) rotate(var(--kfx-rotation)); }
}
@keyframes kfx-rise-drift {
  0% { opacity: 0; transform: translate3d(0, 6vh, 0) scale(.55); }
  20% { opacity: var(--kfx-opacity); }
  55% { transform: translate3d(calc(var(--kfx-drift) * -.35), -55vh, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), -125vh, 0) scale(.35); }
}
@keyframes kfx-neon-fall {
  0% { opacity: 0; transform: translate3d(0, -15vh, 0) rotate(36deg) scaleY(.5); }
  18% { opacity: var(--kfx-opacity); }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), 125vh, 0) rotate(36deg) scaleY(1.3); }
}
@keyframes kfx-ribbon-fall {
  0% { opacity: 0; transform: translate3d(0, -12vh, 0) rotate(0) skewY(-18deg); }
  15% { opacity: var(--kfx-opacity); }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), 124vh, 0) rotate(var(--kfx-rotation)) skewY(22deg); }
}
@keyframes kfx-tech-fall {
  0% { opacity: 0; transform: translate3d(0, -12vh, 0) rotate(0) scale(.3); }
  17% { opacity: var(--kfx-opacity); }
  60% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--kfx-drift), 120vh, 0) rotate(var(--kfx-rotation)) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .kiniththa-effect-layer { display: none !important; }
}


/* KINIRTHTHA SHARED GALLERY POLISH */
#galleryGrid .gallery-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 45px rgba(20, 24, 28, .10);
}
#galleryGrid .gallery-item::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.13));
  content: "";
  opacity: .48;
  pointer-events: none;
  transition: opacity .45s ease;
}
#galleryGrid .gallery-item img {
  display: block;
  width: 100%;
  max-width: none;
  transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .75s ease !important;
}
#galleryGrid .gallery-item:hover img { transform: scale(1.045); }
#galleryGrid .gallery-item:hover::before { opacity: .18; }
@media (max-width: 680px) {
  #galleryGrid { width: 100%; }
  #galleryGrid .gallery-item { min-height: 0 !important; box-shadow: 0 10px 28px rgba(20,24,28,.10); }
  #galleryGrid .gallery-item img { min-height: 0 !important; object-position: center center; }
}

/* KINIRTHTHA PREMIUM GALLERY — BD-002 ELEGANT MAGAZINE */
.gallery-grid { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; grid-template-rows: 250px 250px 235px !important; gap: 14px !important; }
.gallery-grid .gallery-item { min-height: 0 !important; height: auto !important; }
.gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
.gallery-grid .gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.gallery-grid .gallery-item:nth-child(3) { grid-column: 8 / 11; grid-row: 2; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: 11 / 13; grid-row: 2; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: 1 / 6; grid-row: 3; }
.gallery-grid .gallery-item:nth-child(6) { grid-column: 6 / 13; grid-row: 3; }
.gallery-grid .gallery-item img { height: 100% !important; object-fit: cover !important; }
@media (max-width: 680px) {
  .gallery-section { padding: 76px 0 !important; overflow: hidden; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: 340px 210px 180px 215px !important; gap: 9px !important; }
  .gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-grid .gallery-item:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
  .gallery-grid .gallery-item:nth-child(3) { grid-column: 1; grid-row: 3; }
  .gallery-grid .gallery-item:nth-child(4) { grid-column: 2; grid-row: 3; }
  .gallery-grid .gallery-item:nth-child(5) { grid-column: 1; grid-row: 4; }
  .gallery-grid .gallery-item:nth-child(6) { grid-column: 2; grid-row: 4; }
}

