/* =========================================================
   Kiniththa
   KF-004 — SINHALA HERITAGE WEDDING INVITATION
========================================================= */


/* =========================================================
   01. DESIGN VARIABLES
========================================================= */

:root {
  --maroon-deep: #2f080d;
  --maroon-dark: #4b1118;
  --maroon: #6d1f27;
  --maroon-soft: #8e3940;

  --gold-dark: #8d6726;
  --gold: #bc9140;
  --gold-light: #dec27f;
  --gold-pale: #f0deb0;

  --ivory: #f7f0df;
  --ivory-soft: #fffaf0;
  --parchment: #ecdfc3;
  --parchment-dark: #d8c49a;

  --brown: #3d2920;
  --brown-soft: #6f5a49;

  --white: #ffffff;
  --black: #180b0d;

  --text: #4b382d;
  --muted: #857262;

  --border:
    rgba(141, 103, 38, 0.2);

  --border-strong:
    rgba(188, 145, 64, 0.48);

  --shadow-small:
    0 15px 40px rgba(54, 22, 16, 0.12);

  --shadow-medium:
    0 25px 70px rgba(54, 22, 16, 0.2);

  --shadow-large:
    0 45px 120px rgba(30, 8, 10, 0.4);

  --transition:
    0.35s ease;
}


/* =========================================================
   02. RESET
========================================================= */

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


html {
  scroll-behavior: smooth;
}


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

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

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

  line-height: 1.75;
}


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


::selection {
  background: var(--maroon);
  color: var(--white);
}


/* =========================================================
   03. SHARED STYLES
========================================================= */

.heritage-container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}


.section-kicker {
  color: var(--gold-dark);

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


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

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


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


.heritage-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  margin: 28px 0;
}


.heritage-divider span {
  width: 80px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}


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


/* =========================================================
   04. EXPIRED SCREEN
========================================================= */

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

  display: grid;
  place-items: center;

  padding: 22px;

  background:
    radial-gradient(
      circle at center,
      rgba(188, 145, 64, 0.15),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      var(--maroon-deep),
      #160407
    );
}


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

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

  background:
    radial-gradient(
      circle at top right,
      rgba(188, 145, 64, 0.13),
      transparent 32%
    ),
    var(--ivory);

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

  text-align: center;
}


.heritage-emblem {
  display: grid;
  place-items: center;

  width: 88px;
  height: 88px;
  margin: 0 auto 28px;

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

  outline: 1px solid rgba(188, 145, 64, 0.28);
  outline-offset: 8px;

  background: var(--maroon);
  color: var(--gold-light);

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

  font-size: 1.45rem;
  letter-spacing: 2px;
}


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

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.35;
}


.expired-card > p:last-child {
  color: var(--muted);
}


/* =========================================================
   05. OPENING SCREEN
========================================================= */

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

  display: grid;
  place-items: center;

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

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(222, 194, 127, 0.2),
      transparent 31%
    ),
    radial-gradient(
      circle at 10% 15%,
      rgba(255, 255, 255, 0.05),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      #28070b,
      #651b23 52%,
      #240508
    );

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


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


.opening-pattern {
  position: absolute;
  inset: 0;

  opacity: 0.17;

  background-image:
    linear-gradient(
      45deg,
      rgba(222, 194, 127, 0.08) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(222, 194, 127, 0.08) 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      rgba(222, 194, 127, 0.08) 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      rgba(222, 194, 127, 0.08) 75%
    );

  background-position:
    0 0,
    0 18px,
    18px -18px,
    -18px 0;

  background-size: 36px 36px;
}


.opening-lotus {
  position: absolute;

  color: rgba(222, 194, 127, 0.09);

  font-family:
    Georgia,
    serif;

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

  pointer-events: none;
}


.lotus-one {
  top: -145px;
  left: -135px;

  transform: rotate(18deg);
}


.lotus-two {
  right: -155px;
  bottom: -155px;

  transform: rotate(-20deg);
}


.opening-language-switch {
  position: absolute;
  z-index: 10;
  top: 22px;
  right: 24px;

  display: flex;

  border: 1px solid rgba(222, 194, 127, 0.45);

  background: rgba(29, 5, 8, 0.42);

  backdrop-filter: blur(12px);
}


.language-button {
  min-width: 75px;
  padding: 10px 14px;

  border: 0;

  background: transparent;
  color: rgba(255, 255, 255, 0.6);

  font-size: 0.68rem;
  font-weight: 700;

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


.language-button.active {
  background: var(--gold);
  color: var(--maroon-deep);
}


.heritage-scroll {
  position: relative;
  z-index: 4;

  width: min(650px, 100%);

  filter:
    drop-shadow(
      0 38px 65px rgba(19, 2, 5, 0.55)
    );
}


.scroll-rod {
  position: relative;
  z-index: 3;

  width: calc(100% + 50px);
  height: 25px;
  margin-left: -25px;

  border: 1px solid rgba(81, 47, 12, 0.7);
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #f0d78e,
      #ad7d2d 45%,
      #704615
    );

  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.35),
    0 8px 15px rgba(30, 5, 8, 0.35);
}


.scroll-rod::before,
.scroll-rod::after {
  position: absolute;
  top: 50%;

  width: 38px;
  height: 38px;

  border: 1px solid #5d390f;
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #f1d88f,
      #9d6b22 68%,
      #57330e
    );

  content: "";

  transform: translateY(-50%);
}


.scroll-rod::before {
  left: -16px;
}


.scroll-rod::after {
  right: -16px;
}


.scroll-rod span {
  position: absolute;
  inset: 5px 40px;

  border-top: 1px solid rgba(255, 255, 255, 0.25);
}


.scroll-paper {
  position: relative;

  max-height: calc(100vh - 110px);
  padding: 53px 55px;

  overflow-y: auto;

  border-right: 1px solid rgba(117, 77, 27, 0.35);
  border-left: 1px solid rgba(117, 77, 27, 0.35);

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.8),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #f7edda,
      #e8d6af
    );

  text-align: center;
}


.scroll-paper::-webkit-scrollbar {
  width: 6px;
}


.scroll-paper::-webkit-scrollbar-thumb {
  background: var(--gold);
}


.scroll-paper::before {
  position: absolute;
  inset: 15px;

  border: 1px solid rgba(141, 103, 38, 0.36);

  content: "";

  pointer-events: none;
}


.scroll-paper::after {
  position: absolute;
  inset: 23px;

  border: 1px solid rgba(141, 103, 38, 0.14);

  content: "";

  pointer-events: none;
}


.scroll-corner {
  position: absolute;
  z-index: 2;

  width: 50px;
  height: 50px;

  border-color: var(--gold-dark);
  border-style: solid;

  pointer-events: none;
}


.corner-one {
  top: 28px;
  left: 28px;

  border-width: 1px 0 0 1px;
}


.corner-two {
  top: 28px;
  right: 28px;

  border-width: 1px 1px 0 0;
}


.corner-three {
  bottom: 28px;
  left: 28px;

  border-width: 0 0 1px 1px;
}


.corner-four {
  right: 28px;
  bottom: 28px;

  border-width: 0 1px 1px 0;
}


.opening-brand {
  position: relative;
  z-index: 3;

  color: var(--maroon);

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

  font-size: 1.1rem;
  letter-spacing: 2px;
}


.opening-collection {
  position: relative;
  z-index: 3;

  margin-top: 7px;

  color: var(--muted);

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


.opening-monogram {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;

  width: 94px;
  height: 94px;
  margin: 33px auto;

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

  outline: 1px solid rgba(188, 145, 64, 0.25);
  outline-offset: 7px;

  color: var(--maroon);

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

  font-size: 1.2rem;
}


.opening-monogram b {
  color: var(--gold-dark);
  font-size: 0.5rem;
}


.opening-invited-label {
  position: relative;
  z-index: 3;

  color: var(--muted);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.1px;
}


.scroll-paper h1 {
  position: relative;
  z-index: 3;

  margin-top: 12px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.35;
}


.opening-couple-names {
  position: relative;
  z-index: 3;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 13px;

  color: var(--maroon);

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

  font-size: clamp(2rem, 4vw, 3.2rem);
}


.opening-couple-names small {
  color: var(--gold-dark);

  font-family:
    "Noto Sans Sinhala",
    Georgia,
    serif;

  font-size: 1rem;
}


.opening-message {
  position: relative;
  z-index: 3;

  max-width: 460px;
  margin: 0 auto;

  color: var(--brown-soft);

  font-size: 0.87rem;
}


.open-invitation-button {
  position: relative;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  min-height: 54px;
  margin-top: 31px;
  padding: 13px 27px;

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

  background:
    linear-gradient(
      135deg,
      var(--maroon-dark),
      var(--maroon)
    );

  color: var(--gold-pale);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.7px;

  box-shadow:
    0 15px 35px rgba(86, 23, 29, 0.25);

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


.open-invitation-button:hover {
  transform: translateY(-4px);

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold)
    );

  color: var(--maroon-deep);

  box-shadow:
    0 21px 45px rgba(86, 23, 29, 0.32);
}


.opening-note {
  position: relative;
  z-index: 3;

  margin-top: 16px;

  color: var(--muted);

  font-size: 0.62rem;
}


/* =========================================================
   06. MUSIC BUTTON
========================================================= */

.music-button {
  position: fixed;
  z-index: 1700;
  right: 20px;
  bottom: 20px;

  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  border: 1px solid var(--gold-light);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      var(--maroon),
      var(--maroon-deep)
    );

  color: var(--gold-light);

  box-shadow:
    0 14px 36px rgba(47, 8, 13, 0.4);

  font-size: 1.1rem;
}


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


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


/* =========================================================
   07. NAVIGATION
========================================================= */

.heritage-navigation {
  position: sticky;
  z-index: 1200;
  top: 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;

  min-height: 76px;
  padding: 0 42px;

  border-bottom: 1px solid rgba(188, 145, 64, 0.18);

  background: rgba(47, 8, 13, 0.96);
  color: var(--white);

  backdrop-filter: blur(16px);
}


.navigation-brand {
  color: var(--gold-light);

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

  font-size: 1.08rem;
  letter-spacing: 1px;
}


.navigation-links {
  display: flex;
  align-items: center;
  gap: 30px;
}


.navigation-links a {
  color: rgba(255, 255, 255, 0.65);

  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 1px;

  transition: color var(--transition);
}


.navigation-links a:hover {
  color: var(--gold-light);
}


.navigation-language-switch {
  display: flex;
  justify-self: end;

  border: 1px solid rgba(222, 194, 127, 0.38);
}


.navigation-language {
  min-width: 45px;
  min-height: 34px;

  border: 0;

  background: transparent;
  color: rgba(255, 255, 255, 0.55);

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


.navigation-language.active {
  background: var(--gold);
  color: var(--maroon-deep);
}


/* =========================================================
   08. HERO
========================================================= */

.heritage-hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: calc(100vh - 76px);
  padding: 90px 48px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(188, 145, 64, 0.12),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #fff8e9,
      #eee0c4
    );
}


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

  opacity: 0.28;

  background-image:
    linear-gradient(
      rgba(109, 31, 39, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(109, 31, 39, 0.035) 1px,
      transparent 1px
    );

  background-size: 65px 65px;

  content: "";
}


.hero-background-symbol {
  position: absolute;
  top: 50%;
  left: 50%;

  color: rgba(109, 31, 39, 0.035);

  font-family:
    Georgia,
    serif;

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

  transform:
    translate(-50%, -50%)
    rotate(15deg);

  pointer-events: none;
}


.hero-vertical-title {
  position: absolute;
  left: 18px;
  bottom: 50px;

  color: rgba(109, 31, 39, 0.43);

  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;

  writing-mode: vertical-rl;

  transform: rotate(180deg);
}


.heritage-hero-layout {
  position: relative;
  z-index: 3;

  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1fr;
  align-items: center;
  gap: 55px;

  width: min(1400px, 100%);
  margin-inline: auto;
}


.hero-detail-column {
  display: grid;
  gap: 24px;
}


.hero-detail-column > .section-kicker {
  margin-bottom: 12px;
}


.hero-detail-block {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 17px;

  padding-bottom: 22px;

  border-bottom: 1px solid var(--border);
}


.hero-detail-block > span {
  color: var(--gold-dark);

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

  font-size: 0.8rem;
}


.hero-detail-block small {
  display: block;

  color: var(--muted);

  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 1px;
}


.hero-detail-block strong {
  display: block;

  margin-top: 6px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 1.02rem;
  font-weight: 500;
}


.hero-portrait-column {
  position: relative;
}


.heritage-photo-frame {
  position: relative;

  min-height: 680px;
  padding: 13px;

  border: 1px solid var(--gold-dark);

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold-dark)
    );

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


.heritage-photo-frame img {
  width: 100%;
  height: 654px;

  object-fit: cover;

  filter:
    saturate(0.82)
    contrast(1.02);
}


.portrait-overlay {
  position: absolute;
  inset: 13px;

  background:
    linear-gradient(
      180deg,
      transparent 52%,
      rgba(42, 8, 12, 0.66)
    );
}


.portrait-border {
  position: absolute;
  inset: 27px;

  border: 1px solid rgba(255, 238, 191, 0.55);

  pointer-events: none;
}


.portrait-caption {
  position: absolute;
  right: 38px;
  bottom: 38px;
  left: 38px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  color: var(--white);
}


.portrait-caption span {
  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 0.9rem;
}


.portrait-caption small {
  color: var(--gold-pale);

  font-size: 0.6rem;
  letter-spacing: 1.4px;
}


.hero-content-column {
  padding: 30px 0;
}


.hero-family-label {
  color: var(--muted);

  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1px;
}


.couple-names {
  display: flex;
  flex-direction: column;

  margin-top: 30px;

  color: var(--maroon-dark);

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

  font-size: clamp(4.1rem, 7vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 0.78;
}


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

  color: var(--gold-dark);

  font-family:
    "Noto Sans Sinhala",
    Georgia,
    serif;

  font-size: 1.45rem;
  letter-spacing: 0;
}


.hero-monogram {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-top: 36px;

  color: var(--maroon);

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

  font-size: 1.08rem;
}


.hero-monogram b {
  color: var(--gold-dark);
  font-size: 0.5rem;
}


.hero-message {
  max-width: 510px;
  margin-top: 25px;

  color: var(--brown-soft);

  font-size: 0.9rem;
}


.hero-guest-card {
  max-width: 500px;
  margin-top: 31px;
  padding: 18px 20px;

  border-left: 3px solid var(--maroon);

  background:
    linear-gradient(
      90deg,
      rgba(109, 31, 39, 0.09),
      transparent
    );
}


.hero-guest-card small {
  display: block;

  color: var(--muted);

  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}


.hero-guest-card strong {
  display: block;

  margin-top: 5px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 1.05rem;
  font-weight: 500;
}


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

  margin-top: 31px;

  color: var(--maroon);

  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.8px;

  transition:
    gap var(--transition),
    color var(--transition);
}


.hero-scroll-button:hover {
  gap: 21px;
  color: var(--gold-dark);
}


/* =========================================================
   09. QUOTE SECTION
========================================================= */

.heritage-quote-section {
  position: relative;

  padding: 135px 25px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(222, 194, 127, 0.11),
      transparent 33%
    ),
    linear-gradient(
      145deg,
      var(--maroon-deep),
      var(--maroon-dark)
    );

  color: var(--white);
}


.quote-ornament {
  position: absolute;

  color: rgba(222, 194, 127, 0.07);

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


.quote-ornament-left {
  top: -120px;
  left: -100px;
}


.quote-ornament-right {
  right: -100px;
  bottom: -120px;
}


.quote-layout {
  position: relative;
  z-index: 2;

  max-width: 980px;

  text-align: center;
}


.quote-layout .section-kicker {
  color: var(--gold-light);
}


.quote-layout blockquote {
  margin-top: 28px;

  color: var(--gold-pale);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.45;
}


.quote-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;

  margin-top: 42px;
}


.quote-signature span {
  width: 90px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}


.quote-signature p {
  color: rgba(255, 255, 255, 0.6);

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

  font-style: italic;
}


/* =========================================================
   10. SHARED SECTION HEADING
========================================================= */

.heritage-heading {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: flex-start;
  gap: 35px;

  margin-bottom: 62px;
}


.heading-number {
  color: rgba(109, 31, 39, 0.16);

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

  font-size: 5rem;
  line-height: 0.9;
}


.heritage-heading h2,
.nekath-introduction h2,
.countdown-heading h2,
.programme-introduction h2,
.rsvp-introduction h2 {
  margin-top: 12px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: clamp(2.7rem, 5vw, 5.1rem);
  font-weight: 400;
  line-height: 1.3;
}


.heritage-heading h2 span,
.heritage-heading h2 em,
.nekath-introduction h2 span,
.nekath-introduction h2 em,
.countdown-heading h2 span,
.countdown-heading h2 em,
.programme-introduction h2 span,
.programme-introduction h2 em,
.rsvp-introduction h2 span,
.rsvp-introduction h2 em {
  display: block;
}


.heritage-heading h2 em,
.nekath-introduction h2 em,
.countdown-heading h2 em,
.programme-introduction h2 em,
.rsvp-introduction h2 em {
  color: var(--gold-dark);

  font-style: normal;
}


/* =========================================================
   11. EVENT DETAILS
========================================================= */

.heritage-event-section {
  padding: 130px 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(188, 145, 64, 0.11),
      transparent 30%
    ),
    var(--ivory);
}


.event-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

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

  background: var(--ivory-soft);

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


.event-detail-card {
  position: relative;

  min-height: 350px;
  padding: 48px 35px;

  overflow: hidden;

  text-align: center;
}


.event-detail-card:not(:last-child) {
  border-right: 1px solid var(--border);
}


.event-detail-card.featured-card {
  background:
    radial-gradient(
      circle at top,
      rgba(222, 194, 127, 0.1),
      transparent 33%
    ),
    linear-gradient(
      145deg,
      var(--maroon-dark),
      var(--maroon-deep)
    );

  color: var(--white);
}


.event-card-symbol {
  color: rgba(188, 145, 64, 0.2);

  font-size: 4.5rem;
  line-height: 1;
}


.event-card-number {
  position: absolute;
  top: 19px;
  right: 22px;

  color: rgba(109, 31, 39, 0.12);

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

  font-size: 4rem;
  line-height: 1;
}


.featured-card .event-card-number {
  color: rgba(222, 194, 127, 0.12);
}


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

  color: var(--gold-dark);

  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1px;
}


.featured-card > p {
  color: var(--gold-light);
}


.event-detail-card h3 {
  margin-top: 22px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.4;
}


.featured-card h3 {
  color: var(--gold-pale);
}


.event-detail-card small {
  display: block;

  margin-top: 13px;

  color: var(--muted);
}


.featured-card small {
  color: rgba(255, 255, 255, 0.54);
}


.event-map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 30px 34px;

  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);

  background: var(--parchment);
}


.event-map-row p {
  color: var(--brown-soft);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;
}


.heritage-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  flex: 0 0 auto;

  min-height: 50px;
  padding: 12px 23px;

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

  background: var(--maroon);
  color: var(--gold-pale);

  font-size: 0.68rem;
  font-weight: 800;

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


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

  background: transparent;
  color: var(--maroon);
}


/* =========================================================
   12. NEKATH SECTION
========================================================= */

.nekath-section {
  position: relative;

  padding: 130px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(188, 145, 64, 0.1),
      transparent 34%
    ),
    var(--parchment);
}


.nekath-background-number {
  position: absolute;
  top: 50%;
  right: -30px;

  color: rgba(109, 31, 39, 0.045);

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

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

  transform: translateY(-50%);
}


.nekath-layout {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 70px;
}


.nekath-introduction > p:last-child {
  max-width: 520px;
  margin-top: 22px;

  color: var(--muted);
}


.nekath-card-grid {
  display: grid;
  gap: 14px;
}


.nekath-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 22px;

  min-height: 105px;
  padding: 22px 26px;

  border: 1px solid rgba(109, 31, 39, 0.13);

  background: rgba(255, 250, 240, 0.72);

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

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


.nekath-card:hover {
  transform: translateX(8px);

  border-color: var(--gold-dark);
}


.nekath-card > span {
  color: var(--gold-dark);

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


.nekath-card small {
  color: var(--brown-soft);
}


.nekath-card strong {
  color: var(--maroon);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 1.3rem;
  font-weight: 500;
}


/* =========================================================
   13. COUNTDOWN
========================================================= */

.heritage-countdown-section {
  position: relative;

  padding: 130px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(222, 194, 127, 0.12),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      var(--maroon-deep),
      var(--maroon-dark)
    );

  color: var(--white);
}


.countdown-symbol {
  position: absolute;
  top: 50%;
  left: 50%;

  color: rgba(222, 194, 127, 0.035);

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

  transform:
    translate(-50%, -50%)
    rotate(18deg);
}


.countdown-heading {
  position: relative;
  z-index: 2;

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

  text-align: center;
}


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


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


.countdown-heading h2 em {
  color: var(--gold-light);
}


.heritage-countdown-grid {
  position: relative;
  z-index: 2;

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

  max-width: 1000px;
  margin: 0 auto;

  border: 1px solid rgba(222, 194, 127, 0.32);

  background: rgba(222, 194, 127, 0.18);
}


.countdown-item {
  padding: 45px 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(0, 0, 0, 0.08)
    );

  text-align: center;
}


.countdown-item strong {
  display: block;

  color: var(--gold-pale);

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

  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 400;
  line-height: 1;
}


.countdown-item span {
  display: block;

  margin-top: 16px;

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

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


.countdown-complete {
  position: relative;
  z-index: 2;

  margin-top: 35px;

  color: var(--gold-light);

  text-align: center;
}


/* =========================================================
   14. GALLERY
========================================================= */

.heritage-gallery-section {
  padding: 130px 0;

  background:
    radial-gradient(
      circle at bottom left,
      rgba(188, 145, 64, 0.1),
      transparent 28%
    ),
    var(--ivory);
}


.heritage-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 370px 370px;
  gap: 17px;
}


.gallery-item {
  position: relative;

  min-height: 100%;

  overflow: hidden;

  border: 8px solid var(--ivory-soft);

  outline: 1px solid rgba(141, 103, 38, 0.22);

  background: var(--parchment);

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


.gallery-item:first-child {
  grid-row: 1 / 3;
}


.gallery-item:nth-child(4) {
  grid-column: 2 / 4;
}


.gallery-item::after {
  position: absolute;
  inset: 10px;

  border: 1px solid rgba(255, 244, 210, 0.55);

  content: "";

  pointer-events: none;
}


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

  object-fit: cover;

  filter:
    saturate(0.78)
    contrast(1.02);

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


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

  filter:
    saturate(1)
    contrast(1.05);
}


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

  min-height: 100%;
  padding: 30px;

  color: var(--maroon);

  text-align: center;
}


.gallery-placeholder span {
  display: block;

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

  font-size: 3.7rem;
}


.gallery-placeholder p {
  margin-top: 13px;

  color: var(--muted);
}


/* =========================================================
   15. PROGRAMME / TIMELINE
========================================================= */

.heritage-programme-section {
  padding: 130px 0;

  background: var(--parchment);
}


.programme-introduction {
  max-width: 820px;
  margin-bottom: 75px;
}


.programme-introduction > p:last-child {
  max-width: 620px;
  margin-top: 22px;

  color: var(--muted);
}


.timeline-list {
  position: relative;

  max-width: 1000px;
  margin-left: auto;
}


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

  width: 1px;

  background:
    linear-gradient(
      var(--maroon),
      rgba(109, 31, 39, 0.08)
    );

  content: "";
}


.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 70px;

  padding-bottom: 42px;
}


.timeline-time {
  color: var(--maroon);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 1rem;
  text-align: right;
}


.timeline-dot {
  position: absolute;
  top: 4px;
  left: 142px;

  width: 17px;
  height: 17px;

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

  background: var(--gold-dark);

  box-shadow:
    0 0 0 1px var(--maroon);
}


.timeline-content {
  padding: 26px 29px;

  border: 1px solid rgba(109, 31, 39, 0.13);

  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 240, 0.85),
      rgba(255, 255, 255, 0.4)
    );

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

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


.timeline-content:hover {
  transform: translateX(8px);

  border-color: var(--gold-dark);
}


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

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 1.55rem;
  font-weight: 500;
}


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

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


/* =========================================================
   16. DRESS CODE
========================================================= */

.heritage-dress-section {
  padding: 125px 0;

  background: var(--ivory);
}


.dress-code-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;

  min-height: 650px;

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

  background: var(--ivory-soft);

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


.dress-image-panel {
  position: relative;

  min-height: 650px;

  overflow: hidden;
}


.dress-image-panel img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(0.78)
    contrast(1.02);
}


.dress-image-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(47, 8, 13, 0.58)
    );
}


.dress-image-panel > span {
  position: absolute;
  top: 27px;
  left: 27px;

  display: grid;
  place-items: center;

  width: 67px;
  height: 67px;

  border: 1px solid rgba(255, 238, 191, 0.7);

  background: rgba(47, 8, 13, 0.25);
  color: var(--gold-pale);

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

  backdrop-filter: blur(10px);
}


.dress-content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 70px;
}


.dress-content-panel h2 {
  margin-top: 14px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.25;
}


.dress-content-panel > p:not(.section-kicker):not(.dress-note) {
  max-width: 570px;
  margin-top: 23px;

  color: var(--muted);
}


.heritage-colour-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;

  margin-top: 37px;
}


.heritage-colour-palette > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}


.heritage-colour-palette span {
  display: block;

  width: 40px;
  height: 40px;

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

  box-shadow:
    0 0 0 1px var(--border);
}


.heritage-colour-palette small {
  color: var(--muted);

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


.palette-maroon {
  background: #6d1f27;
}


.palette-gold {
  background: #bc9140;
}


.palette-ivory {
  background: #f3ead7;
}


.palette-brown {
  background: #6c5040;
}


.dress-note {
  margin-top: 40px;

  color: var(--maroon);

  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.1px;
}


/* =========================================================
   17. RSVP
========================================================= */

.heritage-rsvp-section {
  position: relative;

  padding: 135px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 35%,
      rgba(222, 194, 127, 0.12),
      transparent 30%
    ),
    linear-gradient(
      140deg,
      var(--maroon-deep),
      var(--maroon-dark)
    );
}


.rsvp-background-symbol {
  position: absolute;
  top: 50%;
  left: -100px;

  color: rgba(222, 194, 127, 0.035);

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

  transform:
    translateY(-50%)
    rotate(15deg);
}


.rsvp-layout {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 75px;
}


.rsvp-introduction .section-kicker {
  color: var(--gold-light);
}


.rsvp-introduction h2 {
  color: var(--white);
}


.rsvp-introduction h2 em {
  color: var(--gold-light);
}


.rsvp-introduction > p:not(.section-kicker) {
  max-width: 520px;
  margin-top: 23px;

  color: rgba(255, 255, 255, 0.58);
}


.rsvp-note {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 37px;
  padding: 19px 21px;

  border-left: 2px solid var(--gold);

  background:
    linear-gradient(
      90deg,
      rgba(222, 194, 127, 0.09),
      transparent
    );
}


.rsvp-note > span {
  color: var(--gold);
}


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


.rsvp-note small {
  color: rgba(255, 255, 255, 0.42);

  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.3px;
}


.rsvp-note strong {
  margin-top: 4px;

  color: var(--gold-pale);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 0.88rem;
  font-weight: 400;
}


.rsvp-form {
  padding: 12px;

  border: 1px solid rgba(222, 194, 127, 0.48);

  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 240, 0.98),
      rgba(236, 223, 195, 0.98)
    );

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


.rsvp-form > * {
  margin-right: 24px;
  margin-left: 24px;
}


.rsvp-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin: 0;
  padding: 21px 24px;

  border: 1px solid rgba(109, 31, 39, 0.13);

  color: var(--maroon);

  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 1px;
}


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

  margin-top: 29px;
}


.form-field {
  display: block;

  margin-bottom: 19px;
}


.form-field > span {
  display: block;

  margin-bottom: 8px;

  color: var(--brown-soft);

  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}


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

  border: 1px solid rgba(109, 31, 39, 0.18);
  border-radius: 0;

  outline: none;

  background: rgba(255, 255, 255, 0.58);
  color: var(--brown);

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


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


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

  resize: vertical;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(75, 56, 45, 0.43);
}


.form-field select option {
  background: var(--ivory-soft);
  color: var(--brown);
}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--maroon);

  background: var(--white);
}


.rsvp-submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  width: calc(100% - 48px);
  min-height: 56px;
  margin-top: 7px;
  margin-bottom: 0;
  padding: 13px 21px;

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

  background:
    linear-gradient(
      135deg,
      var(--maroon-dark),
      var(--maroon)
    );

  color: var(--gold-pale);

  font-size: 0.7rem;
  font-weight: 800;

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


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

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold)
    );

  color: var(--maroon-deep);
}


.rsvp-submit-button:disabled {
  cursor: wait;
  opacity: 0.67;
}


.privacy-note {
  margin-top: 18px;
  margin-bottom: 23px;

  color: var(--muted);

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


/* =========================================================
   18. ACTION CARDS
========================================================= */

.heritage-action-section {
  padding: 120px 0;

  background: var(--ivory);
}


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


.heritage-action-card {
  position: relative;

  min-height: 400px;
  padding: 49px;

  overflow: hidden;

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

  background:
    radial-gradient(
      circle at top right,
      rgba(188, 145, 64, 0.1),
      transparent 30%
    ),
    var(--ivory-soft);

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


.heritage-action-card:hover {
  transform: translateY(-8px);

  border-color: var(--gold-dark);

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


.action-card-number {
  position: absolute;
  top: 20px;
  right: 24px;

  color: rgba(109, 31, 39, 0.1);

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

  font-size: 5rem;
  line-height: 1;
}


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

  width: 60px;
  height: 60px;

  border: 1px solid var(--gold-dark);
  border-radius: 50%;

  color: var(--maroon);

  font-size: 1.15rem;
}


.heritage-action-card h3 {
  margin-top: 31px;

  color: var(--maroon-dark);

  font-family:
    Georgia,
    "Noto Sans Sinhala",
    serif;

  font-size: 2rem;
  font-weight: 500;
}


.heritage-action-card > p {
  max-width: 500px;
  margin-top: 15px;

  color: var(--muted);
}


.heritage-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  margin-top: 29px;
  padding: 11px 20px;

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

  background: transparent;
  color: var(--maroon);

  font-size: 0.67rem;
  font-weight: 800;

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


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

  background: var(--maroon);
  color: var(--gold-pale);
}


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


/* =========================================================
   19. CLOSING SECTION
========================================================= */

.heritage-closing-section {
  position: relative;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  min-height: 850px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      var(--maroon-deep),
      var(--maroon-dark)
    );
}


.closing-pattern {
  position: absolute;
  inset: 0;

  opacity: 0.12;

  background-image:
    linear-gradient(
      45deg,
      rgba(222, 194, 127, 0.09) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(222, 194, 127, 0.09) 25%,
      transparent 25%
    );

  background-size: 45px 45px;
}


.closing-photo-panel {
  position: relative;
  z-index: 2;

  min-height: 850px;

  overflow: hidden;
}


.closing-photo-panel img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(0.78)
    contrast(1.02);
}


.closing-photo-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 50%,
      rgba(47, 8, 13, 0.62)
    );
}


.closing-content-panel {
  position: relative;
  z-index: 3;

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

  padding: 70px;

  text-align: center;
}


.closing-content-panel .section-kicker {
  color: var(--gold-light);
}


.closing-monogram {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: 36px;

  color: var(--gold-light);

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

  font-size: 1.1rem;
}


.closing-monogram b {
  font-size: 0.5rem;
}


.closing-content-panel h2 {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 38px;

  color: var(--gold-pale);

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

  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.78;
}


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

  color: var(--gold-light);

  font-family:
    "Noto Sans Sinhala",
    Georgia,
    serif;

  font-size: 1.5rem;
}


.closing-content-panel > p:not(.section-kicker) {
  max-width: 520px;
  margin-top: 39px;

  color: rgba(255, 255, 255, 0.57);
}


.closing-divider {
  margin-top: 40px;
}


.closing-content-panel > small {
  color: var(--gold-light);

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


/* =========================================================
   20. FOOTER
========================================================= */

.heritage-footer {
  padding: 55px 25px;

  border-top: 1px solid rgba(222, 194, 127, 0.17);

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

  text-align: center;
}


.footer-emblem {
  display: grid;
  place-items: center;

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

  border: 1px solid rgba(222, 194, 127, 0.58);
  border-radius: 50%;

  color: var(--gold-light);

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


.heritage-footer strong {
  color: var(--gold-light);

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

  font-weight: 400;
}


.heritage-footer span,
.heritage-footer small {
  display: block;

  margin-top: 6px;

  font-size: 0.63rem;
  letter-spacing: 0.9px;
}


/* =========================================================
   21. REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(40px);

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


.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   22. RESPONSIVE — LAPTOP
========================================================= */

@media (max-width: 1150px) {
  .heritage-hero-layout {
    grid-template-columns: 0.75fr 1.1fr 0.9fr;
    gap: 35px;
  }

  .heritage-photo-frame {
    min-height: 610px;
  }

  .heritage-photo-frame img {
    height: 584px;
  }

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

  .rsvp-layout {
    gap: 45px;
  }

  .dress-content-panel {
    padding: 55px;
  }
}


/* =========================================================
   23. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 930px) {
  .heritage-navigation {
    grid-template-columns: 1fr auto;
  }

  .navigation-links {
    display: none;
  }

  .heritage-hero {
    padding: 90px 28px;
  }

  .heritage-hero-layout {
    grid-template-columns: 1fr;
    max-width: 700px;
  }

  .hero-detail-column {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-detail-column > .section-kicker {
    grid-column: 1 / -1;

    text-align: center;
  }

  .hero-detail-block {
    grid-template-columns: 1fr;
    gap: 7px;

    padding: 20px;

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

    text-align: center;
  }

  .hero-portrait-column {
    width: min(580px, 100%);
    margin: 0 auto;
  }

  .hero-content-column {
    text-align: center;
  }

  .hero-monogram,
  .hero-scroll-button {
    justify-content: center;

    margin-right: auto;
    margin-left: auto;
  }

  .hero-message {
    margin-right: auto;
    margin-left: auto;
  }

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

    border-right: 3px solid var(--maroon);
  }

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

  .event-detail-card:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .nekath-layout {
    grid-template-columns: 1fr;
  }

  .nekath-introduction {
    max-width: 760px;

    text-align: center;
  }

  .nekath-introduction > p:last-child {
    margin-right: auto;
    margin-left: auto;
  }

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

  .gallery-item:first-child,
  .gallery-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .dress-code-layout {
    grid-template-columns: 1fr;
  }

  .dress-image-panel {
    min-height: 600px;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .rsvp-introduction {
    max-width: 730px;

    text-align: center;
  }

  .rsvp-introduction > p:not(.section-kicker) {
    margin-right: auto;
    margin-left: auto;
  }

  .rsvp-note {
    max-width: 630px;
    margin-right: auto;
    margin-left: auto;

    text-align: left;
  }

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

  .heritage-closing-section {
    grid-template-columns: 1fr;
  }

  .closing-photo-panel {
    min-height: 650px;
  }

  .closing-photo-overlay {
    background:
      linear-gradient(
        180deg,
        transparent 62%,
        rgba(47, 8, 13, 0.65)
      );
  }

  .closing-content-panel {
    min-height: 720px;
  }
}


/* =========================================================
   24. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 650px) {
  .heritage-container {
    width: min(100% - 28px, 1180px);
  }

  .opening-screen {
    display: block;

    padding: 70px 12px 25px;

    overflow-y: auto;
  }

  .opening-language-switch {
    top: 16px;
    right: 14px;
  }

  .heritage-scroll {
    margin: 0 auto;
  }

  .scroll-paper {
    max-height: none;
    padding: 45px 23px;
  }

  .scroll-paper::before {
    inset: 11px;
  }

  .scroll-paper::after {
    inset: 17px;
  }

  .scroll-rod {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .scroll-corner {
    width: 35px;
    height: 35px;
  }

  .corner-one,
  .corner-two {
    top: 21px;
  }

  .corner-three,
  .corner-four {
    bottom: 21px;
  }

  .corner-one,
  .corner-three {
    left: 21px;
  }

  .corner-two,
  .corner-four {
    right: 21px;
  }

  .opening-monogram {
    width: 78px;
    height: 78px;
  }

  .scroll-paper h1 {
    font-size: 2.25rem;
  }

  .opening-couple-names {
    flex-direction: column;
    gap: 5px;

    font-size: 2.65rem;
  }

  .opening-couple-names small {
    margin: 3px 0;
  }

  .open-invitation-button {
    width: 100%;
  }

  .heritage-navigation {
    min-height: 66px;
    padding: 0 17px;
  }

  .hero-vertical-title {
    display: none;
  }

  .heritage-hero {
    min-height: auto;
    padding: 75px 16px;
  }

  .hero-detail-column {
    grid-template-columns: 1fr;
  }

  .heritage-photo-frame {
    min-height: 540px;
    padding: 9px;
  }

  .heritage-photo-frame img {
    height: 520px;
  }

  .portrait-overlay {
    inset: 9px;
  }

  .portrait-border {
    inset: 21px;
  }

  .portrait-caption {
    right: 28px;
    bottom: 28px;
    left: 28px;
  }

  .couple-names {
    font-size: 4rem;
    letter-spacing: -2px;
  }

  .heritage-quote-section,
  .heritage-event-section,
  .nekath-section,
  .heritage-countdown-section,
  .heritage-gallery-section,
  .heritage-programme-section,
  .heritage-rsvp-section,
  .heritage-action-section {
    padding: 85px 0;
  }

  .quote-layout blockquote {
    font-size: 2.45rem;
  }

  .quote-signature span {
    width: 40px;
  }

  .heritage-heading {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .heading-number {
    font-size: 3.1rem;
  }

  .heritage-heading h2,
  .nekath-introduction h2,
  .countdown-heading h2,
  .programme-introduction h2,
  .rsvp-introduction h2 {
    font-size: 2.7rem;
  }

  .event-map-row {
    flex-direction: column;
    align-items: flex-start;

    padding: 24px 21px;
  }

  .heritage-map-button {
    width: 100%;
  }

  .nekath-card {
    grid-template-columns: 35px 1fr;
    gap: 15px;
  }

  .nekath-card strong {
    grid-column: 2;
  }

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

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

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

  .gallery-item {
    min-height: 380px;
  }

  .timeline-list {
    margin-left: 0;
  }

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

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

    padding-left: 36px;
  }

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

  .timeline-dot {
    left: 0;
  }

  .dress-image-panel {
    min-height: 480px;
  }

  .dress-content-panel {
    padding: 49px 25px;
  }

  .dress-content-panel h2 {
    font-size: 2.9rem;
  }

  .rsvp-form {
    padding: 7px;
  }

  .rsvp-form > * {
    margin-right: 15px;
    margin-left: 15px;
  }

  .rsvp-form-header {
    margin: 0;
  }

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

  .rsvp-submit-button {
    width: calc(100% - 30px);
  }

  .heritage-action-card {
    min-height: auto;
    padding: 39px 25px;
  }

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

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

  .closing-photo-panel {
    min-height: 520px;
  }

  .closing-content-panel {
    min-height: 670px;
    padding: 60px 25px;
  }

  .closing-content-panel h2 {
    font-size: 4.5rem;
  }
}


/* =========================================================
   25. VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
  .language-button {
    min-width: 65px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .scroll-paper {
    padding-right: 18px;
    padding-left: 18px;
  }

  .scroll-paper h1 {
    font-size: 2rem;
  }

  .opening-couple-names {
    font-size: 2.35rem;
  }

  .navigation-brand {
    font-size: 0.95rem;
  }

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

  .portrait-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .quote-layout blockquote {
    font-size: 2.15rem;
  }

  .heritage-countdown-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item {
    min-height: 325px;
  }

  .heritage-colour-palette {
    gap: 14px;
  }

  .closing-content-panel h2 {
    font-size: 4rem;
  }
}


/* =========================================================
   26. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !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-004 HERITAGE STORY */
.heritage-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: 300px 300px 245px !important;
  gap: 16px !important;
}
.heritage-gallery-grid .gallery-item { min-height: 0 !important; height: auto !important; }
.heritage-gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 9; grid-row: 1 / 3; }
.heritage-gallery-grid .gallery-item:nth-child(2) { grid-column: 9 / 13; grid-row: 1; }
.heritage-gallery-grid .gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 2; }
.heritage-gallery-grid .gallery-item:nth-child(4) { grid-column: 1 / 13; grid-row: 3; }
.heritage-gallery-grid .gallery-item img { height: 100% !important; object-fit: cover !important; }
@media (max-width: 680px) {
  .heritage-gallery-section { padding: 78px 0 !important; overflow: hidden; }
  .heritage-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: 350px 190px 225px !important; gap: 9px !important; }
  .heritage-gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .heritage-gallery-grid .gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .heritage-gallery-grid .gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .heritage-gallery-grid .gallery-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
}

