/* =========================================================
   Kiniththa
   KF-002 — ROYAL GOLD WEDDING INVITATION
========================================================= */


/* =========================
   VARIABLES
========================= */

:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --black-card: #11100d;
  --black-light: #181611;

  --gold: #d2aa55;
  --gold-light: #f0d995;
  --gold-pale: #f7e8b8;
  --gold-dark: #987126;

  --champagne: #d7c49a;
  --ivory: #f5f0e4;

  --white: #ffffff;
  --text: #e9e2d2;
  --muted: #aaa18e;

  --border:
    rgba(210, 170, 85, 0.22);

  --border-strong:
    rgba(210, 170, 85, 0.5);

  --shadow-small:
    0 15px 45px rgba(0, 0, 0, 0.38);

  --shadow-medium:
    0 25px 70px rgba(0, 0, 0, 0.52);

  --shadow-large:
    0 45px 120px rgba(0, 0, 0, 0.75);

  --radius-small: 12px;
  --radius-medium: 22px;
  --radius-large: 34px;

  --transition: 0.35s ease;
}


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

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


html {
  scroll-behavior: smooth;
}


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

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

  font-family:
    "Segoe UI",
    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;
}


::selection {
  background: var(--gold);
  color: var(--black);
}


/* =========================
   SHARED
========================= */

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


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

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


.gold-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  margin: 27px 0;
}


.gold-ornament span {
  width: 80px;
  height: 1px;

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


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


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

  transition:
    opacity 0.9s ease,
    visibility 0.9s 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;

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

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(210, 170, 85, 0.15),
      transparent 31%
    ),
    radial-gradient(
      circle at 12% 12%,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 88%,
      rgba(210, 170, 85, 0.07),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #020202,
      #110e08 50%,
      #030303
    );

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


.opening-screen::before {
  position: absolute;
  inset: 0;

  opacity: 0.22;

  background-image:
    linear-gradient(
      rgba(210, 170, 85, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(210, 170, 85, 0.035) 1px,
      transparent 1px
    );

  background-size: 52px 52px;

  content: "";
}


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


.opening-layout {
  position: relative;
  z-index: 4;

  display: grid;
  grid-template-columns: 80px minmax(320px, 640px) 80px;
  align-items: center;
  gap: 30px;

  width: min(920px, 100%);
}


.opening-side {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 550px;
}


.vertical-text {
  color: rgba(210, 170, 85, 0.52);

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;

  writing-mode: vertical-rl;
}


.opening-side-left .vertical-text {
  transform: rotate(180deg);
}


.royal-envelope {
  position: relative;

  padding: 12px;

  border: 1px solid rgba(210, 170, 85, 0.42);

  background:
    linear-gradient(
      145deg,
      rgba(210, 170, 85, 0.12),
      rgba(255, 255, 255, 0.015)
    );

  box-shadow:
    var(--shadow-large),
    inset 0 0 50px rgba(210, 170, 85, 0.04);
}


.envelope-border {
  position: relative;

  padding: 65px 48px;

  border: 1px solid rgba(210, 170, 85, 0.3);

  background:
    radial-gradient(
      circle at center,
      rgba(210, 170, 85, 0.08),
      transparent 38%
    ),
    linear-gradient(
      155deg,
      rgba(23, 20, 14, 0.98),
      rgba(4, 4, 4, 0.98)
    );

  text-align: center;
}


.envelope-border::before,
.envelope-border::after {
  position: absolute;

  width: 40px;
  height: 40px;

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

  content: "";
}


.envelope-border::before {
  top: 14px;
  left: 14px;

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


.envelope-border::after {
  right: 14px;
  bottom: 14px;

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


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

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

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


.opening-collection {
  margin-top: 6px;

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

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


.royal-seal {
  display: grid;
  place-items: center;

  width: 88px;
  height: 88px;
  margin: 34px auto;

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

  outline: 1px solid rgba(210, 170, 85, 0.28);
  outline-offset: 7px;

  background:
    radial-gradient(
      circle,
      #e1bd68,
      #a87929 68%,
      #6c4816
    );

  color: #0a0804;

  box-shadow:
    0 14px 35px rgba(210, 170, 85, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}


.royal-seal span {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 2px;
}


.opening-invited-text {
  color: rgba(255, 255, 255, 0.52);

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


.envelope-border h1 {
  margin-top: 13px;

  color: var(--gold-pale);

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

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


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

  color: var(--ivory);

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

  font-size: 1.5rem;
}


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

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


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

  min-height: 54px;
  margin-top: 37px;
  padding: 13px 28px;

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

  background:
    linear-gradient(
      135deg,
      #a97d2e,
      #e7c976 48%,
      #a37425
    );

  color: var(--black);

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

  box-shadow:
    0 17px 42px rgba(210, 170, 85, 0.26);

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


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

  filter: brightness(1.1);

  box-shadow:
    0 23px 52px rgba(210, 170, 85, 0.38);
}


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

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

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


.opening-glow {
  position: absolute;

  border-radius: 50%;

  background: rgba(210, 170, 85, 0.12);

  filter: blur(120px);
}


.opening-glow-one {
  top: -160px;
  left: -140px;

  width: 400px;
  height: 400px;
}


.opening-glow-two {
  right: -160px;
  bottom: -170px;

  width: 450px;
  height: 450px;
}


.royal-corner {
  position: absolute;

  width: 120px;
  height: 120px;

  border-color: rgba(210, 170, 85, 0.3);
  border-style: solid;
}


.corner-top-left {
  top: 25px;
  left: 25px;

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


.corner-top-right {
  top: 25px;
  right: 25px;

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


.corner-bottom-left {
  bottom: 25px;
  left: 25px;

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


.corner-bottom-right {
  right: 25px;
  bottom: 25px;

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


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

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

  display: grid;
  place-items: center;

  padding: 22px;

  background:
    radial-gradient(
      circle at center,
      rgba(210, 170, 85, 0.12),
      transparent 35%
    ),
    #050505;
}


.expired-frame {
  width: min(620px, 100%);
  padding: 65px 40px;

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

  background: #0d0c09;

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

  text-align: center;
}


.expired-monogram {
  display: grid;
  place-items: center;

  width: 85px;
  height: 85px;
  margin: 0 auto 30px;

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

  color: var(--gold);

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

  font-size: 1.5rem;
}


.expired-frame h1 {
  margin-top: 15px;

  color: var(--gold-pale);

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

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


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


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

.music-button {
  position: fixed;
  z-index: 1600;
  top: 20px;
  right: 20px;

  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  border: 1px solid rgba(210, 170, 85, 0.65);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #d9b65f,
      #8f6521
    );

  color: var(--black);

  box-shadow:
    0 13px 38px rgba(0, 0, 0, 0.5);

  font-size: 1.15rem;
}


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


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


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

.royal-hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 100vh;
  padding: 120px 50px 90px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(210, 170, 85, 0.14),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      #030303,
      #141109 54%,
      #050505
    );
}


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

  opacity: 0.15;

  background-image:
    linear-gradient(
      rgba(210, 170, 85, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(210, 170, 85, 0.045) 1px,
      transparent 1px
    );

  background-size: 80px 80px;
}


.hero-light-beam {
  position: absolute;
  top: -40%;
  left: 42%;

  width: 230px;
  height: 160%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(210, 170, 85, 0.08),
      transparent
    );

  transform: rotate(13deg);

  filter: blur(20px);
}


.royal-hero-grid {
  position: relative;
  z-index: 5;

  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  align-items: center;
  gap: 50px;

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


.hero-introduction {
  max-width: 390px;
}


.hero-introduction h2 {
  margin-top: 18px;

  color: var(--ivory);

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

  font-size: clamp(2.6rem, 4vw, 4.7rem);
  font-weight: 400;
  line-height: 1.06;
}


.hero-introduction h2 span {
  display: block;

  margin-top: 6px;

  color: var(--gold-light);
  font-style: italic;
}


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

  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}


.invited-guest-panel {
  margin-top: 35px;
  padding: 18px 20px;

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

  background:
    linear-gradient(
      90deg,
      rgba(210, 170, 85, 0.08),
      transparent
    );
}


.invited-guest-panel p {
  color: rgba(255, 255, 255, 0.4);

  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}


.invited-guest-panel strong {
  display: block;

  margin-top: 4px;

  color: var(--gold-pale);

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

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


.discover-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 33px;

  color: var(--gold);

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

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


.discover-button:hover {
  gap: 18px;
  color: var(--gold-light);
}


.royal-portrait-frame {
  position: relative;

  min-height: 650px;
  padding: 18px;

  border: 1px solid rgba(210, 170, 85, 0.5);

  background:
    linear-gradient(
      145deg,
      rgba(210, 170, 85, 0.09),
      rgba(255, 255, 255, 0.012)
    );

  box-shadow:
    var(--shadow-large),
    inset 0 0 60px rgba(210, 170, 85, 0.03);
}


.portrait-inner {
  position: relative;

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

  min-height: 612px;
  padding: 55px 35px;

  border: 1px solid rgba(210, 170, 85, 0.28);

  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(210, 170, 85, 0.13),
      transparent 34%
    ),
    linear-gradient(
      160deg,
      #15120c,
      #050505
    );

  text-align: center;
}


.portrait-inner::before {
  position: absolute;

  width: 380px;
  height: 380px;

  border: 1px solid rgba(210, 170, 85, 0.1);
  border-radius: 50%;

  content: "";
}


.portrait-inner::after {
  position: absolute;

  width: 290px;
  height: 290px;

  border: 1px solid rgba(210, 170, 85, 0.08);
  border-radius: 50%;

  content: "";
}


.hero-small-title,
.couple-names,
.royal-emblem,
.hero-date-preview {
  position: relative;
  z-index: 3;
}


.hero-small-title {
  color: rgba(255, 255, 255, 0.42);

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


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

  margin-top: 37px;

  color: var(--gold-pale);

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

  font-size: clamp(4.2rem, 7vw, 7.8rem);
  font-weight: 400;
  line-height: 0.8;
}


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

  color: var(--gold);

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


.royal-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin-top: 42px;

  color: var(--gold);

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

  font-size: 1rem;
}


.royal-emblem b {
  font-size: 0.45rem;
}


.hero-date-preview {
  max-width: 340px;
  margin-top: 27px;

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

  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}


.portrait-frame-line {
  position: absolute;
  z-index: 4;

  width: 50px;
  height: 50px;

  pointer-events: none;
}


.portrait-frame-line-one {
  top: 7px;
  left: 7px;

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


.portrait-frame-line-two {
  right: 7px;
  bottom: 7px;

  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}


.hero-summary {
  display: grid;
  gap: 29px;
}


.hero-summary article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: flex-start;
  gap: 16px;

  padding-bottom: 25px;

  border-bottom: 1px solid rgba(210, 170, 85, 0.18);
}


.hero-summary article > span {
  color: var(--gold);

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

  font-size: 0.9rem;
}


.hero-summary p {
  color: rgba(255, 255, 255, 0.35);

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


.hero-summary strong {
  display: block;

  margin-top: 6px;

  color: var(--ivory);

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

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


.hero-number {
  position: absolute;

  color: rgba(210, 170, 85, 0.05);

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

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

  pointer-events: none;
}


.hero-number-left {
  bottom: -40px;
  left: -25px;
}


.hero-number-right {
  top: 10px;
  right: -20px;
}


.hero-scroll-indicator {
  position: absolute;
  z-index: 5;
  bottom: 25px;
  left: 50%;

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

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

  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  transform: translateX(-50%);
}


.hero-scroll-indicator span {
  width: 45px;
  height: 1px;

  background: var(--gold);
}


/* =========================
   ROYAL STATEMENT
========================= */

.royal-statement {
  position: relative;

  display: grid;
  place-items: center;

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

  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(210, 170, 85, 0.09),
      transparent 35%
    ),
    #080808;
}


.statement-number {
  position: absolute;
  top: 50%;
  left: 50%;

  color: rgba(210, 170, 85, 0.04);

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

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

  transform: translate(-50%, -50%);
}


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

  max-width: 960px;

  text-align: center;
}


.statement-content blockquote {
  margin-top: 25px;

  color: var(--gold-pale);

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

  font-size: clamp(2.7rem, 6vw, 6rem);
  font-style: italic;
  line-height: 1.2;
}


.statement-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin-top: 45px;
}


.statement-signature span {
  width: 80px;
  height: 1px;

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


.statement-signature b {
  color: rgba(255, 255, 255, 0.42);

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


/* =========================
   SECTION HEADINGS
========================= */

.royal-section-heading {
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: flex-start;
  gap: 35px;

  margin-bottom: 60px;
}


.heading-number {
  color: rgba(210, 170, 85, 0.22);

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

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


.royal-section-heading h2,
.timeline-heading h2,
.countdown-heading h2,
.rsvp-introduction h2 {
  margin-top: 13px;

  color: var(--ivory);

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

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


.royal-section-heading h2 span,
.timeline-heading h2 span,
.countdown-heading h2 span,
.rsvp-introduction h2 span {
  display: block;

  color: var(--gold-light);
  font-style: italic;
}


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

.royal-event-section {
  padding: 125px 0;

  background:
    linear-gradient(
      180deg,
      #0c0b09,
      #050505
    );
}


.event-main-card {
  padding: 14px;

  border: 1px solid rgba(210, 170, 85, 0.38);

  background:
    linear-gradient(
      145deg,
      rgba(210, 170, 85, 0.08),
      rgba(255, 255, 255, 0.015)
    );

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


.event-main-card > * {
  border-right: 1px solid rgba(210, 170, 85, 0.17);
  border-left: 1px solid rgba(210, 170, 85, 0.17);
}


.event-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 28px;

  border-top: 1px solid rgba(210, 170, 85, 0.17);
  border-bottom: 1px solid rgba(210, 170, 85, 0.17);

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


.event-main-header p,
.event-main-header span {
  color: var(--gold);

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


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


.event-information-item {
  position: relative;

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

  overflow: hidden;
}


.event-information-item:not(:last-child) {
  border-right: 1px solid rgba(210, 170, 85, 0.17);
}


.information-number {
  position: absolute;
  top: 13px;
  right: 18px;

  color: rgba(210, 170, 85, 0.12);

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

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


.event-information-item > p {
  position: relative;
  z-index: 2;

  color: var(--gold);

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


.event-information-item h3 {
  position: relative;
  z-index: 2;

  margin-top: 30px;

  color: var(--gold-pale);

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

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


.event-information-item small {
  position: relative;
  z-index: 2;

  display: block;

  margin-top: 15px;

  color: var(--muted);
}


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

  padding: 28px;

  border-top: 1px solid rgba(210, 170, 85, 0.17);
  border-bottom: 1px solid rgba(210, 170, 85, 0.17);
}


.event-main-footer p {
  color: var(--muted);

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

  font-style: italic;
}


.royal-map-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex: 0 0 auto;

  min-height: 49px;
  padding: 12px 22px;

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

  color: var(--gold);

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

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


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

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


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

.royal-countdown-section {
  position: relative;

  padding: 125px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(210, 170, 85, 0.15),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #030303,
      #17130b
    );
}


.countdown-decoration {
  position: absolute;
  top: 50%;
  right: -150px;

  color: rgba(210, 170, 85, 0.04);

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

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


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

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

  text-align: center;
}


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

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

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

  border: 1px solid rgba(210, 170, 85, 0.32);

  background: rgba(210, 170, 85, 0.16);
}


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

  background:
    linear-gradient(
      160deg,
      rgba(20, 18, 13, 0.98),
      rgba(5, 5, 5, 0.98)
    );

  text-align: center;
}


.royal-countdown-item strong {
  display: block;

  color: var(--gold-light);

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

  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1;
}


.royal-countdown-item span {
  display: block;

  margin-top: 16px;

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

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


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

  margin-top: 35px;

  color: var(--gold-light);

  text-align: center;
}


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

.royal-gallery-section {
  padding: 125px 0;

  background: #070707;
}


.royal-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  grid-template-rows: 370px 370px;
  gap: 16px;
}


.gallery-item {
  position: relative;

  min-height: 100%;
  overflow: hidden;

  border: 1px solid rgba(210, 170, 85, 0.24);

  background:
    radial-gradient(
      circle at center,
      rgba(210, 170, 85, 0.14),
      transparent 35%
    ),
    #11100c;

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


.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(210, 170, 85, 0.16);

  content: "";

  pointer-events: none;
}


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

  object-fit: cover;

  filter:
    saturate(0.8)
    contrast(1.06);

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


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

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


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

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

  color: var(--gold);

  text-align: center;
}


.gallery-placeholder span {
  display: block;

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

  font-size: 3.7rem;
}


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

  color: var(--muted);
}


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

.royal-timeline-section {
  padding: 125px 0;

  background:
    linear-gradient(
      180deg,
      #0d0c09,
      #050505
    );
}


.timeline-heading {
  max-width: 780px;
  margin-bottom: 75px;
}


.timeline-heading > p:last-child {
  max-width: 600px;
  margin-top: 20px;

  color: var(--muted);
}


.timeline-list {
  position: relative;

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


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

  width: 1px;

  background:
    linear-gradient(
      var(--gold),
      rgba(210, 170, 85, 0.1)
    );

  content: "";
}


.timeline-item {
  position: relative;

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

  padding-bottom: 44px;
}


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

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

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


.timeline-dot {
  position: absolute;
  top: 3px;
  left: 137px;

  width: 17px;
  height: 17px;

  border: 4px solid #0d0c09;
  border-radius: 50%;

  background: var(--gold);

  box-shadow:
    0 0 0 1px rgba(210, 170, 85, 0.5);
}


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

  border: 1px solid rgba(210, 170, 85, 0.18);

  background:
    linear-gradient(
      135deg,
      rgba(210, 170, 85, 0.055),
      rgba(255, 255, 255, 0.015)
    );

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


.timeline-content:hover {
  transform: translateX(8px);
  border-color: rgba(210, 170, 85, 0.45);
}


.timeline-content h3 {
  color: var(--gold-pale);

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

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


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

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


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

.royal-dress-section {
  padding: 115px 0;

  background:
    radial-gradient(
      circle at right center,
      rgba(210, 170, 85, 0.12),
      transparent 30%
    ),
    #080808;
}


.dress-code-layout {
  display: grid;
  grid-template-columns: 120px 1fr 270px;
  align-items: center;
  gap: 55px;

  padding: 65px;

  border: 1px solid rgba(210, 170, 85, 0.32);

  background:
    linear-gradient(
      145deg,
      rgba(210, 170, 85, 0.055),
      rgba(255, 255, 255, 0.012)
    );

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


.dress-code-number {
  color: rgba(210, 170, 85, 0.18);

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

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


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

  color: var(--gold-pale);

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

  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 400;
}


.dress-code-content > p:last-of-type {
  max-width: 620px;
  margin-top: 17px;

  color: var(--muted);
}


.colour-palette {
  display: flex;
  gap: 13px;

  margin-top: 29px;
}


.colour-palette span {
  width: 32px;
  height: 32px;

  border: 3px solid #151515;
  border-radius: 50%;

  outline: 1px solid rgba(210, 170, 85, 0.25);
}


.palette-black {
  background: #090909;
}


.palette-gold {
  background: #c69a43;
}


.palette-champagne {
  background: #d8c39c;
}


.palette-ivory {
  background: #f0eadb;
}


.dress-code-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 230px;

  border: 1px solid rgba(210, 170, 85, 0.32);
  border-radius: 50%;

  color: var(--gold);

  text-align: center;
}


.dress-code-emblem span,
.dress-code-emblem small {
  color: rgba(255, 255, 255, 0.37);

  font-size: 0.61rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}


.dress-code-emblem strong {
  margin: 6px 0;

  color: var(--gold-light);

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

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


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

.royal-rsvp-section {
  position: relative;

  padding: 130px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 20% 35%,
      rgba(210, 170, 85, 0.12),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #030303,
      #17130b
    );
}


.rsvp-background-letter {
  position: absolute;
  top: 50%;
  left: -55px;

  color: rgba(210, 170, 85, 0.035);

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

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

  transform: translateY(-50%);
}


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

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


.rsvp-introduction > p:not(.royal-label) {
  max-width: 520px;
  margin-top: 24px;

  color: var(--muted);
}


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

  margin-top: 38px;
  padding: 20px 22px;

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

  background:
    linear-gradient(
      90deg,
      rgba(210, 170, 85, 0.08),
      transparent
    );
}


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


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


.rsvp-deadline small {
  color: rgba(255, 255, 255, 0.37);

  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


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

  color: var(--gold-pale);

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

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


.rsvp-form {
  padding: 12px;

  border: 1px solid rgba(210, 170, 85, 0.4);

  background:
    linear-gradient(
      145deg,
      rgba(210, 170, 85, 0.08),
      rgba(255, 255, 255, 0.015)
    );

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


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


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

  margin: 0;
  padding: 20px 24px;

  border: 1px solid rgba(210, 170, 85, 0.18);

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


.rsvp-form-header span,
.rsvp-form-header b {
  color: var(--gold);

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


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

  margin-top: 28px;
}


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


.form-field > span {
  display: block;

  margin-bottom: 8px;

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

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


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

  border: 1px solid rgba(210, 170, 85, 0.2);
  border-radius: 0;

  outline: none;

  background: rgba(255, 255, 255, 0.035);
  color: var(--ivory);

  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(255, 255, 255, 0.26);
}


.form-field select option {
  background: #11100d;
  color: var(--ivory);
}


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

  background: rgba(210, 170, 85, 0.06);
}


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

  width: calc(100% - 44px);
  min-height: 55px;
  margin-top: 7px;
  margin-bottom: 0;
  padding: 13px 22px;

  border: 0;

  background:
    linear-gradient(
      135deg,
      #a87b2c,
      #ebcf7d 48%,
      #9b6e21
    );

  color: var(--black);

  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;

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


.rsvp-submit-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}


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


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

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

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


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

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

  background: #070707;
}


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


.royal-action-card {
  position: relative;

  min-height: 410px;
  padding: 50px;

  overflow: hidden;

  border: 1px solid rgba(210, 170, 85, 0.24);

  background:
    linear-gradient(
      145deg,
      rgba(210, 170, 85, 0.055),
      rgba(255, 255, 255, 0.012)
    );

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


.royal-action-card:hover {
  transform: translateY(-8px);
  border-color: rgba(210, 170, 85, 0.48);
}


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

  color: rgba(210, 170, 85, 0.13);

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

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


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

  width: 58px;
  height: 58px;

  border: 1px solid rgba(210, 170, 85, 0.4);
  border-radius: 50%;

  color: var(--gold);

  font-size: 1.15rem;
}


.royal-action-card h3 {
  margin-top: 34px;

  color: var(--gold-pale);

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

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


.royal-action-card p {
  max-width: 460px;
  margin-top: 15px;

  color: var(--muted);
}


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

  min-height: 48px;
  margin-top: 30px;
  padding: 11px 21px;

  border: 1px solid rgba(210, 170, 85, 0.45);

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

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

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


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

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


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


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

.royal-closing-section {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 850px;
  padding: 110px 30px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(210, 170, 85, 0.16),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      #030303,
      #151109
    );

  text-align: center;
}


.closing-border {
  position: absolute;

  border: 1px solid rgba(210, 170, 85, 0.13);
  border-radius: 50%;
}


.closing-border-one {
  width: 700px;
  height: 700px;
}


.closing-border-two {
  width: 530px;
  height: 530px;
}


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

  max-width: 820px;
}


.closing-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;

  margin-top: 35px;

  color: var(--gold);

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

  font-size: 1.15rem;
}


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


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

  margin-top: 35px;

  color: var(--gold-pale);

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

  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.75;
}


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

  color: var(--gold);

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


.royal-closing-content > p:not(.royal-label) {
  max-width: 600px;
  margin: 42px auto 0;

  color: var(--muted);

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

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


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


.royal-closing-content > small {
  color: rgba(255, 255, 255, 0.32);

  font-size: 0.64rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}


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

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

  border-top: 1px solid rgba(210, 170, 85, 0.18);

  background: #020202;
  color: rgba(255, 255, 255, 0.38);

  text-align: center;
}


.footer-brand-mark {
  display: grid;
  place-items: center;

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

  border: 1px solid rgba(210, 170, 85, 0.55);
  border-radius: 50%;

  color: var(--gold);

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


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

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

  font-weight: 400;
}


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

  margin-top: 5px;

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


/* =========================
   REVEAL ANIMATION
========================= */

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

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


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


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

@media (max-width: 1180px) {
  .royal-hero {
    padding-right: 30px;
    padding-left: 30px;
  }

  .royal-hero-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

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

    max-width: 900px;
    margin: 20px auto 0;
  }

  .hero-summary article {
    padding: 20px;

    border: 1px solid rgba(210, 170, 85, 0.17);
  }

  .rsvp-layout {
    gap: 45px;
  }

  .dress-code-layout {
    grid-template-columns: 90px 1fr 220px;
    gap: 35px;
    padding: 45px;
  }
}


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

@media (max-width: 900px) {
  .opening-layout {
    grid-template-columns: 1fr;
  }

  .opening-side {
    display: none;
  }

  .royal-hero {
    padding-top: 100px;
  }

  .royal-hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;

    max-width: 720px;
  }

  .hero-introduction {
    max-width: 660px;

    text-align: center;
  }

  .invited-guest-panel {
    max-width: 480px;
    margin-right: auto;
    margin-left: auto;

    border-right: 2px solid var(--gold);
  }

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

  .hero-summary {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-summary article {
    grid-template-columns: 50px 1fr;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .royal-section-heading {
    grid-template-columns: 70px 1fr;
  }

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

  .event-information-item {
    min-height: auto;
  }

  .event-information-item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(210, 170, 85, 0.17);
  }

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

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

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

    text-align: center;
  }

  .dress-code-number {
    display: none;
  }

  .colour-palette {
    justify-content: center;
  }

  .dress-code-emblem {
    width: 230px;
    min-height: 230px;
    margin: 0 auto;
  }

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

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

    text-align: center;
  }

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

  .rsvp-deadline {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;

    text-align: left;
  }

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


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

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

  .opening-screen {
    padding: 14px;
  }

  .royal-envelope {
    padding: 7px;
  }

  .envelope-border {
    padding: 45px 20px;
  }

  .royal-seal {
    width: 72px;
    height: 72px;
  }

  .royal-corner {
    width: 65px;
    height: 65px;
  }

  .royal-hero {
    min-height: auto;
    padding: 95px 17px 75px;
  }

  .hero-introduction h2 {
    font-size: 3.1rem;
  }

  .royal-portrait-frame {
    min-height: 590px;
    padding: 10px;
  }

  .portrait-inner {
    min-height: 568px;
    padding: 40px 18px;
  }

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

  .hero-number {
    display: none;
  }

  .royal-statement {
    min-height: 570px;
    padding: 80px 20px;
  }

  .statement-number {
    font-size: 18rem;
  }

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

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

  .royal-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .royal-section-heading h2,
  .timeline-heading h2,
  .countdown-heading h2,
  .rsvp-introduction h2 {
    font-size: 2.8rem;
  }

  .event-main-card {
    padding: 7px;
  }

  .event-main-header {
    padding: 18px 16px;
  }

  .event-information-item {
    padding: 35px 22px;
  }

  .event-main-footer {
    flex-direction: column;
    align-items: flex-start;

    padding: 22px;
  }

  .royal-map-button {
    width: 100%;
    justify-content: center;
  }

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

  .royal-countdown-item {
    padding: 32px 10px;
  }

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

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

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

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

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

    padding-left: 35px;
  }

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

  .timeline-dot {
    left: 0;
  }

  .dress-code-layout {
    padding: 38px 22px;
  }

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

  .royal-action-card {
    min-height: auto;
    padding: 38px 25px;
  }

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

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

  .royal-closing-section {
    min-height: 700px;
    padding: 90px 20px;
  }

  .closing-border-one {
    width: 520px;
    height: 520px;
  }

  .closing-border-two {
    width: 390px;
    height: 390px;
  }

  .royal-closing-content h2 {
    font-size: 5rem;
  }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 400px) {
  .envelope-border h1 {
    font-size: 2rem;
  }

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

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

  .hero-introduction h2 {
    font-size: 2.65rem;
  }

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

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

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

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

  .dress-code-emblem {
    width: 190px;
    min-height: 190px;
  }

  .royal-closing-content h2 {
    font-size: 4.2rem;
  }
}


/* =========================
   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-002 ROYAL MAGAZINE */
.royal-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, 330px) !important;
  gap: 16px !important;
}
.royal-gallery-grid .gallery-item { min-height: 0 !important; height: auto !important; }
.royal-gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
.royal-gallery-grid .gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.royal-gallery-grid .gallery-item:nth-child(3) { grid-column: 8 / 11; grid-row: 2; }
.royal-gallery-grid .gallery-item:nth-child(4) { grid-column: 11 / 13; grid-row: 2; }
.royal-gallery-grid .gallery-item img { height: 100% !important; object-fit: cover !important; }
@media (max-width: 680px) {
  .royal-gallery-section { padding: 82px 0 !important; overflow: hidden; }
  .royal-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: 350px 225px 185px !important; gap: 9px !important; }
  .royal-gallery-grid .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .royal-gallery-grid .gallery-item:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
  .royal-gallery-grid .gallery-item:nth-child(3) { grid-column: 1; grid-row: 3; }
  .royal-gallery-grid .gallery-item:nth-child(4) { grid-column: 2; grid-row: 3; }
}

