:root {
  --rose-dark: #6f433f;
  --rose: #a86f70;
  --rose-light: #d9a7a4;

  --blush: #f6e8e5;
  --cream: #fffaf5;
  --cream-dark: #f1dfd6;

  --green: #4d6555;
  --gold: #bd9360;

  --white: #ffffff;
  --text: #4f423e;
  --muted: #806f69;

  --border: rgba(111, 67, 63, 0.15);

  --shadow-small: 0 12px 35px rgba(92, 61, 56, 0.09);
  --shadow-large: 0 30px 80px rgba(80, 47, 44, 0.18);

  --radius: 24px;
  --transition: 0.3s ease;
}


* {
  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;
}


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


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


button {
  cursor: pointer;
}


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


[hidden] {
  display: none !important;
}


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


.invitation-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}


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


/* OPENING SCREEN */

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

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

  padding: 22px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.8),
      transparent 35%
    ),
    linear-gradient(145deg, #f7e8e4, #d6a6a3);

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


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


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

  width: min(520px, 100%);
  padding: 58px 38px;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 34px;

  background: rgba(255, 250, 245, 0.83);

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

  text-align: center;

  backdrop-filter: blur(18px);
}


.brand-label,
.mini-brand {
  color: var(--rose-dark);

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


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

  color: var(--muted);

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


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

  color: var(--rose-dark);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 400;
}


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

  margin: 27px 0;
}


.opening-divider span,
.floral-divider span {
  width: 72px;
  height: 1px;

  background: rgba(111, 67, 63, 0.26);
}


.opening-divider b,
.floral-divider b {
  color: var(--rose);
  font-size: 1.1rem;
}


.opening-couple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: var(--rose-dark);

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


.opening-couple small {
  color: var(--gold);
  font-style: italic;
}


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

  min-height: 53px;
  margin-top: 35px;
  padding: 13px 28px;

  border: 0;
  border-radius: 999px;

  background: var(--rose-dark);
  color: var(--white);

  font-weight: 700;

  box-shadow: 0 15px 35px rgba(111, 67, 63, 0.27);

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


.open-invitation-button:hover {
  transform: translateY(-3px);
  background: #5c3633;
}


.tap-note {
  margin-top: 17px;

  color: var(--muted);

  font-size: 0.72rem;
}


.flower {
  position: absolute;

  color: rgba(111, 67, 63, 0.16);

  font-size: 12rem;
  line-height: 1;

  pointer-events: none;
}


.flower-one {
  top: -40px;
  left: -45px;
  transform: rotate(-25deg);
}


.flower-two {
  top: 5%;
  right: -50px;
  transform: rotate(20deg);
}


.flower-three {
  bottom: -60px;
  left: -40px;
  transform: rotate(20deg);
}


.flower-four {
  right: -35px;
  bottom: -40px;
  transform: rotate(-20deg);
}


/* EXPIRED SCREEN */

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

  display: grid;
  place-items: center;

  padding: 20px;

  background: var(--blush);
}


.expired-card {
  max-width: 560px;
  padding: 55px 35px;

  border-radius: 30px;

  background: var(--white);

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

  text-align: center;
}


.small-flower {
  color: var(--rose);
  font-size: 2.2rem;
}


.small-label {
  margin-top: 12px;

  color: var(--gold);

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


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

  color: var(--rose-dark);

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


.expired-card p:last-child {
  margin-top: 17px;
  color: var(--muted);
}


/* MUSIC */

.music-button {
  position: fixed;
  z-index: 1500;
  top: 18px;
  right: 18px;

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

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

  background: var(--rose-dark);
  color: var(--white);

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

  font-size: 1.1rem;
}


.music-button.playing {
  animation: musicSpin 4s linear infinite;
}


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


/* HERO */

.hero-section {
  position: relative;

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

  min-height: 100vh;
  padding: 100px 20px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.8),
      transparent 37%
    ),
    linear-gradient(145deg, #f8ece9, #d7aaa8);

  text-align: center;
}


.hero-content {
  position: relative;
  z-index: 3;

  max-width: 780px;
}


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

  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}


.couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 19px;

  color: var(--rose-dark);

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


.couple-names small {
  margin: 20px 0;

  color: var(--gold);

  font-size: 2rem;
  font-style: italic;
}


.hero-message {
  max-width: 560px;
  margin: 0 auto;

  color: var(--muted);

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


.guest-card {
  display: inline-flex;
  flex-direction: column;

  min-width: min(380px, 100%);
  margin-top: 35px;
  padding: 18px 25px;

  border: 1px solid rgba(111, 67, 63, 0.2);
  border-radius: 17px;

  background: rgba(255, 255, 255, 0.4);
}


.guest-card p {
  color: var(--muted);

  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


.guest-card strong {
  margin-top: 3px;

  color: var(--rose-dark);

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


.scroll-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 34px;

  color: var(--rose-dark);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}


.hero-flower {
  position: absolute;

  color: rgba(111, 67, 63, 0.1);

  font-size: 24rem;
  line-height: 1;

  pointer-events: none;
}


.hero-flower-left {
  bottom: -130px;
  left: -160px;

  transform: rotate(-20deg);
}


.hero-flower-right {
  top: -140px;
  right: -150px;

  transform: rotate(20deg);
}


/* SHARED */

.section-heading {
  max-width: 700px;
  margin: 0 auto 52px;

  text-align: center;
}


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

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


.section-heading h2,
.dress-code-card h2 {
  margin-top: 11px;

  color: var(--rose-dark);

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


.section-heading > p:last-child {
  margin-top: 16px;

  color: var(--muted);
}


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


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


/* QUOTE */

.quote-section {
  padding: 110px 20px;

  background: var(--cream);
  text-align: center;
}


.quote-mark {
  color: var(--rose-light);

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


.quote-section blockquote {
  max-width: 760px;
  margin: 35px auto 0;

  color: var(--rose-dark);

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


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


/* EVENT */

.event-section {
  padding: 110px 0;

  background: var(--blush);
}


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


.event-card {
  padding: 34px 25px;

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

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

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

  text-align: center;
}


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

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

  border: 1px solid rgba(168, 111, 112, 0.26);
  border-radius: 50%;

  color: var(--rose);
}


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

  color: var(--gold);

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


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

  color: var(--rose-dark);

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


.event-card small {
  display: block;

  margin-top: 7px;

  color: var(--muted);
}


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

  min-height: 52px;
  padding: 13px 24px;

  border-radius: 999px;

  font-weight: 700;

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


.map-button {
  display: flex;

  width: max-content;
  margin: 34px auto 0;

  background: var(--rose-dark);
  color: var(--white);
}


.map-button:hover,
.rsvp-submit-button:hover {
  transform: translateY(-3px);
  background: #593532;
}


/* COUNTDOWN */

.countdown-section {
  padding: 110px 0;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.08),
      transparent 35%
    ),
    linear-gradient(145deg, #5f3b38, #8f5b5b);

  color: var(--white);
}


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

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


.countdown-item {
  padding: 26px 15px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 21px;

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

  text-align: center;
}


.countdown-item strong {
  display: block;

  color: #f2d3c4;

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


.countdown-item span {
  display: block;

  margin-top: 10px;

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

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


.countdown-complete {
  margin-top: 30px;
  text-align: center;
}


/* GALLERY */

.gallery-section {
  padding: 110px 0;

  background: var(--cream);
}


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


.gallery-item {
  position: relative;

  min-height: 430px;
  overflow: hidden;

  border-radius: var(--radius);

  background:
    linear-gradient(145deg, #ead1cc, #b98281);

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


.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
  min-height: 330px;
}


.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;

  object-fit: cover;

  transition: transform 0.6s ease;
}


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


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

  min-height: inherit;
  padding: 25px;

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

  text-align: center;
}


.gallery-placeholder span {
  display: block;
  font-size: 3rem;
}


.gallery-placeholder p {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
}


/* TIMELINE */

.timeline-section {
  padding: 110px 0;

  background: var(--blush);
}


.timeline-list {
  position: relative;

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


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

  width: 1px;

  background: rgba(168, 111, 112, 0.32);

  content: "";
}


.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 50px;

  padding: 0 0 38px;
}


.timeline-time {
  color: var(--rose-dark);

  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}


.timeline-dot {
  position: absolute;
  top: 5px;
  left: 98px;

  width: 15px;
  height: 15px;

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

  background: var(--rose);
}


.timeline-content {
  padding: 23px 25px;

  border: 1px solid var(--border);
  border-radius: 19px;

  background: rgba(255, 255, 255, 0.7);
}


.timeline-content h3 {
  color: var(--rose-dark);

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


.timeline-content p {
  margin-top: 8px;

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


/* DRESS CODE */

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

  background: var(--cream);
}


.dress-code-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 58px 35px;

  border: 1px solid var(--border);
  border-radius: 30px;

  background:
    radial-gradient(
      circle at top right,
      rgba(217, 167, 164, 0.25),
      transparent 35%
    ),
    var(--white);

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

  text-align: center;
}


.dress-icon {
  display: block;

  color: var(--rose);
  font-size: 2rem;
}


.dress-code-card .section-label {
  display: block;
  margin-top: 17px;
}


.dress-code-card p:last-child {
  max-width: 560px;
  margin: 17px auto 0;

  color: var(--muted);
}


/* RSVP */

.rsvp-section {
  padding: 110px 0;

  background:
    linear-gradient(145deg, #5f3b38, #8f5b5b);

  color: var(--white);
}


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

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;

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

  backdrop-filter: blur(14px);
}


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


.form-field {
  display: block;
  margin-bottom: 20px;
}


.form-field > span {
  display: block;

  margin-bottom: 8px;

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

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


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

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;

  outline: none;

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


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


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


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


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


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #efc7b8;
}


.rsvp-submit-button {
  width: 100%;

  border: 0;

  background: #efc7b8;
  color: var(--rose-dark);
}


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

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

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


/* ACTIONS */

.action-section {
  padding: 100px 0;

  background: var(--cream);
}


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


.action-card {
  padding: 42px 30px;

  border: 1px solid var(--border);
  border-radius: 26px;

  background: var(--white);

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

  text-align: center;
}


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

  color: var(--rose-dark);

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


.action-card p {
  max-width: 430px;
  margin: 12px auto 0;

  color: var(--muted);
}


.outline-button {
  margin-top: 25px;

  border: 1px solid rgba(111, 67, 63, 0.3);

  background: transparent;
  color: var(--rose-dark);
}


.outline-button:hover {
  transform: translateY(-3px);

  background: var(--rose-dark);
  color: var(--white);
}


.contact-button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* CLOSING */

.closing-section {
  display: grid;
  place-items: center;

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

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.72),
      transparent 36%
    ),
    linear-gradient(145deg, #f6e7e3, #d7aaa8);

  text-align: center;
}


.closing-content h2 {
  display: flex;
  flex-direction: column;

  margin-top: 20px;

  color: var(--rose-dark);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 400;
  line-height: 0.9;
}


.closing-content h2 small {
  margin: 18px 0;

  color: var(--gold);

  font-size: 1.7rem;
  font-style: italic;
}


.closing-content > p:not(.section-label) {
  max-width: 520px;
  margin: 28px auto 0;

  color: var(--muted);

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


.closing-flower {
  margin-top: 28px;

  color: var(--rose);
  font-size: 2rem;
}


/* FOOTER */

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

  background: var(--rose-dark);
  color: rgba(255, 255, 255, 0.72);

  text-align: center;
}


.site-footer strong {
  color: #f0cfc4;

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


.site-footer small {
  display: block;
  margin-top: 5px;
}


/* REVEAL */

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

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


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


/* RESPONSIVE */

@media (max-width: 800px) {
  .event-card-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    min-height: 390px;
  }

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

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


@media (max-width: 560px) {
  .opening-card {
    padding: 45px 22px;
  }

  .opening-divider span {
    width: 45px;
  }

  .flower {
    font-size: 8rem;
  }

  .hero-section {
    min-height: 850px;
  }

  .couple-names {
    font-size: 4rem;
  }

  .hero-flower {
    font-size: 16rem;
  }

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

  .event-card {
    padding: 28px 20px;
  }

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

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

  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    min-height: 330px;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;

    padding-left: 30px;
  }

  .timeline-time {
    text-align: left;
  }

  .timeline-dot {
    left: 0;
  }

  .rsvp-form {
    padding: 28px 20px;
  }

  .action-card {
    padding: 35px 20px;
  }

  .contact-button-grid {
    flex-direction: column;
  }

  .contact-button-grid .outline-button {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

/* =========================================================
   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 — KF-001 FLORAL EDITORIAL */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 230px) !important;
  gap: 14px !important;
}
.gallery-grid .gallery-item { min-height: 0 !important; height: auto !important; border-radius: 18px !important; }
.gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 4; }
.gallery-grid .gallery-item:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
.gallery-grid .gallery-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: 6 / 13; grid-row: 2; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: 6 / 10; grid-row: 3; }
.gallery-grid .gallery-item:nth-child(6) { grid-column: 10 / 13; grid-row: 3; }
.gallery-grid .gallery-item img { min-height: 0 !important; height: 100% !important; object-fit: cover !important; }
@media (max-width: 680px) {
  .gallery-section { padding: 78px 0 !important; overflow: hidden; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: 340px 190px 220px 190px !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; grid-row: 2; }
  .gallery-grid .gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-grid .gallery-item:nth-child(4) { grid-column: 1 / 3; 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; }
  .gallery-grid .gallery-item { border-radius: 13px !important; }
}

