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

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f1e5;
  color: #102b4e;
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;

  background: radial-gradient(
    circle at 50% 45%,
    rgba(255,255,255,.95),
    rgba(247,241,229,.9) 60%,
    rgba(236,224,200,.7)
  );

  z-index: -10;
}


/* =========================
   BORDER
========================= */

.hero::before,
.photo-section::before {
  content: "";

  position: absolute;

  top: 22px;
  bottom: 22px;
  left: 22px;
  right: 22px;

  border: 1px solid rgba(168,126,55,.55);

  pointer-events: none;
}


/* =========================
   CORNERS
========================= */

.corner {
  position: absolute;

  width: 170px;
  height: 170px;

  border: solid rgba(174,134,69,.35);
}

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

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

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

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

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

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

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

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


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

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  flex-direction: column;

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

  text-align: center;

  padding: 60px 25px;

  overflow: hidden;
}


/* =========================
   BISMILLAH
========================= */

.bismillah {
  font-family: "Scheherazade New", serif;

  font-size: clamp(32px,5vw,54px);

  direction: rtl;

  opacity: 0;

  transform: translateY(-25px);

  animation:
    fadeDown 1.5s ease forwards;

  animation-delay: .5s;
}


/* =========================
   ORNAMENT
========================= */

.ornament {
  display: flex;

  align-items: center;

  gap: 12px;

  margin: 10px 0 30px;

  opacity: 0;

  animation:
    fadeIn 1s ease forwards;

  animation-delay: 1.2s;
}

.ornament span {
  width: 65px;
  height: 1px;

  background: #ae8742;
}

.ornament div {
  color: #ae8742;

  font-size: 28px;
}


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

.opening-text {
  font-family: "Playfair Display", serif;

  text-transform: uppercase;

  letter-spacing: 4px;

  color: #806b4d;

  margin-bottom: 20px;

  opacity: 0;

  animation:
    fadeUp 1s ease forwards;

  animation-delay: 1.5s;
}


/* =========================
   NAMES
========================= */

.couple {
  display: flex;

  flex-direction: column;

  align-items: center;
}

.name {
  font-family: "Great Vibes", cursive;

  font-size: clamp(
    80px,
    13vw,
    150px
  );

  line-height: .95;

  color: #102b4e;

  opacity: 0;

  filter: blur(8px);

  transform:
    scale(.8)
    translateY(30px);
}

.groom {
  animation:
    nameReveal 1.6s
    cubic-bezier(.16,1,.3,1)
    forwards;

  animation-delay: 2s;
}

.bride {
  animation:
    nameReveal 1.6s
    cubic-bezier(.16,1,.3,1)
    forwards;

  animation-delay: 2.8s;
}

.ampersand {
  font-family: "Great Vibes", cursive;

  font-size: 60px;

  color: #ae8742;

  margin: 12px 0;

  opacity: 0;

  transform: scale(0);

  animation:
    ampersandReveal 1s ease forwards;

  animation-delay: 2.5s;
}


/* =========================
   SUBTITLE
========================= */

.subtitle {
  margin-top: 25px;

  font-family: "Playfair Display", serif;

  letter-spacing: 2px;

  color: #77736d;

  opacity: 0;

  animation:
    fadeUp 1s ease forwards;

  animation-delay: 4s;
}


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

.scroll-indicator {
  position: absolute;

  bottom: 30px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  font-family: "Playfair Display", serif;

  font-size: 10px;

  letter-spacing: 3px;

  color: #8d7958;

  opacity: 0;

  animation:
    fadeIn 1s ease forwards;

  animation-delay: 5s;
}

.scroll-line {
  height: 45px;

  width: 1px;

  background: #ae8742;

  overflow: hidden;
}

.scroll-line::after {
  content: "";

  display: block;

  height: 45px;

  width: 1px;

  background: #102b4e;

  animation:
    scrollMove 2s infinite;
}


/* =====================================================
   PHOTO SECTION
===================================================== */

.photo-section {
  position: relative;

  min-height: 150vh;

  padding:
    150px
    25px
    180px;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  overflow: hidden;

  background: linear-gradient(
    to bottom,
    rgba(247,241,229,.3),
    rgba(247,241,229,.95)
  );
}


/* =========================
   HEADING
========================= */

.photo-heading {
  margin-bottom: 60px;

  opacity: 0;

  transform: translateY(60px);

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

.photo-section.visible
.photo-heading {
  opacity: 1;

  transform: translateY(0);
}

.small-title {
  font-family: "Playfair Display", serif;

  font-size: 12px;

  letter-spacing: 5px;

  color: #ae8742;

  margin-bottom: 15px;
}

.photo-heading h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(
    38px,
    6vw,
    70px
  );

  font-weight: 400;

  color: #102b4e;
}


/* =========================
   PHOTO FRAME
========================= */

.photo-frame {
  position: relative;

  width: min(
    600px,
    88vw
  );

  aspect-ratio: 4 / 5;

  opacity: 0;

  transform:
    scale(.85)
    translateY(80px);

  transition:
    opacity 1.5s ease,
    transform 1.5s
    cubic-bezier(.16,1,.3,1);

  transition-delay: .3s;
}

.photo-section.visible
.photo-frame {
  opacity: 1;

  transform:
    scale(1)
    translateY(0);
}


/* =========================
   COUPLE PHOTO
========================= */

.couple-photo {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  filter:
    brightness(.94)
    saturate(.85);

  box-shadow:
    0 30px 80px
    rgba(25,35,50,.18);
}


/* =========================
   PHOTO BORDER
========================= */

.photo-border {
  position: absolute;

  inset: 18px;

  border:
    1px solid
    rgba(255,255,255,.8);

  pointer-events: none;

  z-index: 2;
}


/* =========================
   PHOTO GLOW
========================= */

.photo-glow {
  position: absolute;

  inset: -30px;

  background: radial-gradient(
    circle,
    rgba(174,134,69,.2),
    transparent 65%
  );

  filter: blur(30px);

  z-index: -1;
}


/* =========================
   PHOTO NAMES
========================= */

.photo-names {
  display: flex;

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

  gap: 20px;

  margin-top: 45px;

  opacity: 0;

  transform: translateY(40px);

  transition:
    opacity 1s ease,
    transform 1s ease;

  transition-delay: .8s;
}

.photo-section.visible
.photo-names {
  opacity: 1;

  transform: translateY(0);
}

.photo-name {
  font-family: "Great Vibes", cursive;

  font-size: clamp(
    45px,
    7vw,
    75px
  );

  color: #102b4e;
}

.photo-heart {
  font-size: 30px;

  color: #ae8742;
}


/* =========================
   MESSAGE
========================= */

.photo-message {
  max-width: 500px;

  margin-top: 20px;

  font-size: 19px;

  line-height: 1.6;

  color: #77736d;

  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 1s ease,
    transform 1s ease;

  transition-delay: 1s;
}

.photo-section.visible
.photo-message {
  opacity: 1;

  transform: translateY(0);
}


/* =========================
   INDIVIDUAL PHOTOS
========================= */

.individual-photos {
  display: flex;

  gap: 30px;

  margin-top: 100px;

  opacity: 0;

  transform: translateY(60px);

  transition:
    opacity 1s ease,
    transform 1s ease;

  transition-delay: 1.2s;
}

.photo-section.visible
.individual-photos {
  opacity: 1;

  transform: translateY(0);
}

.person-card {
  width: min(
    240px,
    40vw
  );
}

.person-photo {
  aspect-ratio: 3 / 4;

  overflow: hidden;

  border:
    1px solid
    rgba(174,134,69,.5);

  padding: 8px;

  background: #faf7f0;
}

.person-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  filter: saturate(.85);
}

.person-card p {
  margin-top: 12px;

  font-family: "Great Vibes", cursive;

  font-size: 30px;

  color: #102b4e;
}


/* =========================
   CONTINUE
========================= */

.continue {
  margin-top: 120px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  font-family: "Playfair Display", serif;

  font-size: 10px;

  letter-spacing: 4px;

  color: #806b4d;

  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 1s ease,
    transform 1s ease;

  transition-delay: 1.5s;
}

.photo-section.visible
.continue {
  opacity: 1;

  transform: translateY(0);
}

.continue-line {
  height: 40px;

  width: 1px;

  background: #ae8742;
}


/* =========================
   FLOWERS
========================= */

.flowers {
  position: absolute;

  width: 350px;
  height: 350px;

  opacity: .65;
}

.flower-top {
  top: -70px;
  right: -50px;
}

.flower-bottom {
  bottom: -80px;
  left: -50px;
}

.flower {
  position: absolute;

  line-height: 1;

  font-size: 150px;
}

.blue {
  color: #9aabc0;
}

.white {
  color: #eee5d6;
}

.flower-1 {
  right: 0;
  top: 0;

  font-size: 180px;
}

.flower-2 {
  right: 150px;
  top: 100px;

  font-size: 80px;
}

.flower-3 {
  right: 40px;
  top: 170px;

  font-size: 80px;
}

.flower-4 {
  left: 0;
  bottom: 0;

  font-size: 180px;
}

.flower-5 {
  left: 150px;
  bottom: 110px;

  font-size: 85px;
}

.flower-6 {
  left: 30px;
  bottom: 170px;

  font-size: 75px;
}


/* =========================
   PARTICLES
========================= */

.particle {
  position: absolute;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: #ae8742;

  opacity: 0;

  animation:
    particleFloat linear infinite;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes fadeDown {

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}

@keyframes fadeUp {

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}

@keyframes fadeIn {

  to {
    opacity: 1;
  }

}

@keyframes nameReveal {

  to {
    opacity: 1;

    filter: blur(0);

    transform:
      scale(1)
      translateY(0);
  }

}

@keyframes ampersandReveal {

  70% {
    transform: scale(1.2);
  }

  100% {
    opacity: 1;

    transform: scale(1);
  }

}

@keyframes scrollMove {

  from {
    transform:
      translateY(-45px);
  }

  to {
    transform:
      translateY(45px);
  }

}

@keyframes particleFloat {

  0% {
    transform:
      translateY(100vh)
      translateX(0);

    opacity: 0;
  }

  15% {
    opacity: .6;
  }

  85% {
    opacity: .3;
  }

  100% {
    transform:
      translateY(-20vh)
      translateX(50px);

    opacity: 0;
  }

}


/* =========================
   MOBILE
========================= */

@media(max-width:600px) {

  .hero::before,
  .photo-section::before {
    top: 14px;
    bottom: 14px;
    left: 14px;
    right: 14px;
  }

  .corner {
    width: 100px;
    height: 100px;
  }

  .name {
    font-size: 78px;
  }

  .photo-section {
    padding-top: 110px;
  }

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

  .individual-photos {
    gap: 15px;
  }

  .person-card {
    width: 42vw;
  }

  .photo-name {
    font-size: 48px;
  }

}
/* =========================================
   PHASE 3 — WEDDING DETAILS
========================================= */

.details-section {
  position: relative;

  min-height: 100vh;

  padding: 120px 25px 100px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(201, 170, 100, 0.08),
      transparent 45%
    ),
    #f5f0e7;

  display: flex;

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

  overflow: hidden;
}


.details-inner {
  width: 100%;
  max-width: 650px;

  text-align: center;
}


/* =========================
   GOLD DIVIDER
========================= */

.ornament-line {
  width: 90px;
  height: 1px;

  margin: 0 auto 35px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #b99a5a,
      transparent
    );

  position: relative;
}

.ornament-line::before,
.ornament-line::after {
  content: "✦";

  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  color: #b99a5a;

  font-size: 9px;
}

.ornament-line::before {
  left: -3px;
}

.ornament-line::after {
  right: -3px;
}


/* =========================
   SMALL TITLE
========================= */

.details-small {
  font-family:
    "Playfair Display",
    serif;

  font-size: 10px;

  letter-spacing: 4px;

  color: #8f7950;

  margin-bottom: 25px;
}


/* =========================
   MAIN TITLE
========================= */

.details-title {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size:
    clamp(42px, 10vw, 72px);

  font-weight: 400;

  line-height: 0.9;

  color: #17283a;

  margin-bottom: 55px;
}

.details-title span {
  font-family:
    "Great Vibes",
    cursive;

  color: #a98b51;

  font-size: 1.1em;
}


/* =========================
   INVITATION
========================= */

.invitation-text {
  font-family:
    "Cormorant Garamond",
    serif;

  color: #263544;
}

.invitation-text p {
  font-size: 18px;

  line-height: 1.6;
}

.invitation-text p span {
  font-size: 14px;

  color: #8c806e;
}

.request-text {
  margin: 35px 0;

  font-size: 16px !important;

  color: #706858;
}


/* =========================
   NAMES
========================= */

.invitation-text h3 {
  font-family:
    "Great Vibes",
    cursive;

  font-size:
    clamp(55px, 13vw, 85px);

  font-weight: 400;

  color: #17283a;

  margin: 5px 0;
}

.ampersand {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 25px;

  color: #b99a5a;

  margin: -5px 0;
}

.bride-family {
  margin-top: 30px;
}


/* =========================
   DATE CARD
========================= */

.date-card {
  margin: 90px auto 65px;

  max-width: 400px;

  padding: 35px 25px;

  border-top:
    1px solid
    rgba(185,154,90,.5);

  border-bottom:
    1px solid
    rgba(185,154,90,.5);

  position: relative;
}

.date-card::before,
.date-card::after {
  content: "✦";

  position: absolute;

  color: #b99a5a;

  font-size: 13px;

  top: -7px;
}

.date-card::before {
  left: 0;
}

.date-card::after {
  right: 0;
}

.date-label {
  font-family:
    "Playfair Display",
    serif;

  font-size: 10px;

  letter-spacing: 3px;

  color: #8f7950;

  margin-bottom: 25px;
}

.date-content {
  display: flex;

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

  gap: 25px;
}


/* =========================
   SUNDAY
========================= */

.date-side {
  writing-mode: vertical-rl;

  font-family:
    "Playfair Display",
    serif;

  font-size: 11px;

  letter-spacing: 3px;

  color: #8f7950;
}


/* =========================
   DATE NUMBER
========================= */

.date-number {
  display: flex;

  flex-direction: column;

  align-items: center;
}

.date-number strong {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 90px;

  line-height: .8;

  font-weight: 300;

  color: #17283a;
}

.date-number span {
  margin-top: 12px;

  font-family:
    "Playfair Display",
    serif;

  font-size: 12px;

  letter-spacing: 5px;

  color: #a98b51;
}


/* =========================
   TIME / VENUE
========================= */

.time-block,
.venue-block {
  margin-top: 60px;
}

.detail-icon {
  font-size: 20px;

  color: #b99a5a;

  margin-bottom: 15px;
}

.detail-heading {
  font-family:
    "Playfair Display",
    serif;

  font-size: 10px;

  letter-spacing: 4px;

  color: #9b8457;

  margin-bottom: 15px;
}

.detail-value {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 28px;

  color: #17283a;
}

.detail-value span {
  font-size: 11px;

  letter-spacing: 3px;

  color: #9b8b72;

  margin: 0 8px;
}

.venue-block h3 {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 25px;

  letter-spacing: 2px;

  font-weight: 500;

  color: #17283a;

  margin-bottom: 8px;
}

.venue-location {
  font-family:
    "Playfair Display",
    serif;

  font-size: 11px;

  letter-spacing: 2px;

  color: #8f8069;
}


/* =========================
   BOTTOM
========================= */

.ornament-line.bottom {
  margin-top: 90px;

  margin-bottom: 25px;
}

.continue-text {
  font-family:
    "Playfair Display",
    serif;

  font-size: 8px;

  letter-spacing: 4px;

  color: #a69a85;

  animation:
    pulseText 2s infinite;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: .35;
  }

  50% {
    opacity: 1;
  }

}


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

.reveal {
  opacity: 0;

  transform:
    translateY(40px);

  transition:
    opacity 1.2s ease,
    transform 1.2s
    cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .details-section {
    padding:
      100px 20px 80px;
  }

  .details-title {
    margin-bottom: 45px;
  }

  .invitation-text p {
    font-size: 16px;
  }

  .request-text {
    font-size: 14px !important;
  }

  .date-card {
    margin-top: 70px;
  }

  .date-number strong {
    font-size: 75px;
  }

  .detail-value {
    font-size: 24px;
  }

}
/* =========================================
   PHASE 4 — VENUE
========================================= */

.venue-section {
  min-height: 100vh;

  padding: 120px 25px;

  background: #17283a;

  color: #f5f0e7;

  display: flex;

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

  position: relative;

  overflow: hidden;
}


.venue-section::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  border:
    1px solid
    rgba(185,154,90,.12);

  border-radius: 50%;

  top: 50%;
  left: 50%;

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


.venue-inner {
  width: 100%;

  max-width: 650px;

  text-align: center;

  position: relative;

  z-index: 2;
}


/* =========================
   TOP LINE
========================= */

.venue-top-line {
  width: 80px;
  height: 1px;

  margin: 0 auto 35px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #c6a866,
      transparent
    );
}


/* =========================
   EYEBROW
========================= */

.venue-eyebrow {
  font-family:
    "Playfair Display",
    serif;

  font-size: 10px;

  letter-spacing: 4px;

  color: #c6a866;

  margin-bottom: 20px;
}


/* =========================
   TITLE
========================= */

.venue-title {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size:
    clamp(48px, 12vw, 75px);

  font-weight: 300;

  line-height: .9;

  margin-bottom: 60px;
}

.venue-title span {
  font-family:
    "Great Vibes",
    cursive;

  color: #c6a866;

  font-size: 1.1em;
}


/* =========================
   VENUE CARD
========================= */

.venue-card {
  padding: 55px 25px;

  border:
    1px solid
    rgba(198,168,102,.45);

  position: relative;

  background:
    rgba(255,255,255,.025);
}


.venue-card::before,
.venue-card::after {
  content: "✦";

  position: absolute;

  color: #c6a866;

  font-size: 12px;
}

.venue-card::before {
  top: -7px;
  left: -7px;
}

.venue-card::after {
  bottom: -7px;
  right: -7px;
}


/* =========================
   SYMBOL
========================= */

.venue-symbol {
  color: #c6a866;

  font-size: 18px;

  margin-bottom: 20px;
}


/* =========================
   SMALL TITLE
========================= */

.venue-small {
  font-family:
    "Playfair Display",
    serif;

  font-size: 9px;

  letter-spacing: 4px;

  color: #bcae92;

  margin-bottom: 20px;
}


/* =========================
   VENUE NAME
========================= */

.venue-card h3 {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size:
    clamp(30px, 8vw, 48px);

  font-weight: 400;

  letter-spacing: 2px;

  line-height: 1.05;

  color: #f5f0e7;

  margin: 0;
}


/* =========================
   DIVIDER
========================= */

.venue-divider {
  width: 50px;
  height: 1px;

  background: #c6a866;

  margin: 30px auto;
}


/* =========================
   LOCATION
========================= */

.venue-place {
  font-family:
    "Playfair Display",
    serif;

  font-size: 11px;

  letter-spacing: 2px;

  color: #c6a866;
}


/* =========================
   NOTE
========================= */

.venue-note {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 17px;

  line-height: 1.5;

  color: #c8c0b0;

  margin: 30px 0;
}


/* =========================
   DIRECTIONS BUTTON
========================= */

.direction-button {
  display: inline-flex;

  align-items: center;

  gap: 18px;

  padding: 15px 24px;

  border:
    1px solid
    rgba(198,168,102,.7);

  color: #f5f0e7;

  text-decoration: none;

  font-family:
    "Playfair Display",
    serif;

  font-size: 9px;

  letter-spacing: 3px;

  transition: .4s ease;
}


.direction-button b {
  color: #c6a866;

  font-size: 17px;

  font-weight: 400;
}


.direction-button:hover {
  background: #c6a866;

  color: #17283a;

  transform:
    translateY(-3px);
}


.direction-button:hover b {
  color: #17283a;
}


/* =========================
   BOTTOM MESSAGE
========================= */

.venue-bottom {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 15px;

  margin-top: 55px;
}


.venue-bottom span {
  width: 35px;
  height: 1px;

  background:
    rgba(198,168,102,.5);
}


.venue-bottom p {
  font-family:
    "Playfair Display",
    serif;

  font-size: 8px;

  letter-spacing: 2px;

  color: #9f9582;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .venue-section {
    padding: 100px 20px;
  }

  .venue-card {
    padding: 45px 18px;
  }

  .venue-title {
    margin-bottom: 45px;
  }

  .venue-note {
    font-size: 16px;
  }

  .venue-bottom {
    gap: 8px;
  }

}
/* =========================================
   PHASE 5 — RSVP
========================================= */

.rsvp-section {
  min-height: 100vh;

  padding: 120px 20px;

  background: #f5f0e7;

  display: flex;

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

  text-align: center;

  position: relative;
}


.rsvp-inner {
  width: 100%;

  max-width: 560px;
}


/* =========================
   ORNAMENT
========================= */

.rsvp-ornament {
  color: #b99a5a;

  font-size: 18px;

  margin-bottom: 25px;
}


/* =========================
   EYEBROW
========================= */

.rsvp-eyebrow {
  font-family:
    "Playfair Display",
    serif;

  font-size: 9px;

  letter-spacing: 3px;

  color: #97835d;

  margin-bottom: 25px;
}


/* =========================
   TITLE
========================= */

.rsvp-title {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size:
    clamp(55px, 14vw, 85px);

  font-weight: 300;

  line-height: .8;

  color: #17283a;

  margin-bottom: 35px;
}

.rsvp-title span {
  font-family:
    "Great Vibes",
    cursive;

  color: #ad9056;

  font-size: 1.05em;
}


/* =========================
   MESSAGE
========================= */

.rsvp-message {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 18px;

  line-height: 1.5;

  color: #746d60;

  margin-bottom: 50px;
}


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

.rsvp-card {
  padding: 40px 25px;

  border:
    1px solid
    rgba(185,154,90,.55);

  position: relative;

  background:
    rgba(255,255,255,.25);
}


.rsvp-card::before,
.rsvp-card::after {
  content: "✦";

  position: absolute;

  color: #b99a5a;

  font-size: 11px;
}

.rsvp-card::before {
  top: -7px;
  left: -7px;
}

.rsvp-card::after {
  bottom: -7px;
  right: -7px;
}


/* =========================
   CARD TITLE
========================= */

.rsvp-card-title {
  font-family:
    "Playfair Display",
    serif;

  font-size: 9px;

  letter-spacing: 3px;

  color: #9a8458;

  margin-bottom: 30px;
}


/* =========================
   INPUTS
========================= */

.rsvp-card input,
.rsvp-card select {
  width: 100%;

  padding: 16px 5px;

  margin-bottom: 15px;

  border: none;

  border-bottom:
    1px solid
    rgba(120,105,80,.35);

  background: transparent;

  outline: none;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 17px;

  color: #17283a;
}


.rsvp-card input::placeholder {
  color: #9a9182;
}


.rsvp-card select {
  color: #9a9182;
}


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

.rsvp-card button {
  width: 100%;

  margin-top: 20px;

  padding: 17px;

  border:
    1px solid
    #b99a5a;

  background: #17283a;

  color: #f5f0e7;

  font-family:
    "Playfair Display",
    serif;

  font-size: 9px;

  letter-spacing: 2px;

  cursor: pointer;

  transition: .4s ease;
}


.rsvp-card button span {
  margin-left: 10px;

  color: #c6a866;

  font-size: 15px;
}


.rsvp-card button:hover {
  background: #b99a5a;

  color: #17283a;
}


.rsvp-card button:hover span {
  color: #17283a;
}


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

.rsvp-footer {
  font-family:
    "Great Vibes",
    cursive;

  font-size: 38px;

  color: #17283a;

  margin-top: 70px;
}


.rsvp-line {
  width: 60px;

  height: 1px;

  background: #b99a5a;

  margin:
    20px auto 0;
}

/* =========================================
   GLOBAL RESPONSIVE SAFETY
========================================= */

html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

figure {
  margin: 0;
}

/* =========================================
   PHASE 6 — FINAL CINEMATIC ENDING
========================================= */

.final-section {
  min-height: auto;
  padding: 120px 20px 90px;
  background:
    radial-gradient(circle at 50% 28%, rgba(198,168,102,.08), transparent 36%),
    #111f2d;
  color: #f5f0e7;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-glow {
  position: absolute;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  background: rgba(190,160,90,.07);
  filter: blur(80px);
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-eyebrow {
  font-family: "Playfair Display", serif;
  font-size: 9px;
  letter-spacing: 5px;
  color: #c6a866;
  margin-bottom: 25px;
}

.final-title {
  width: 100%;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(50px, 7vw, 82px);
  line-height: .88;
  margin-bottom: 55px;
  text-align: center;
}

.final-title span {
  font-family: "Great Vibes", cursive;
  color: #c6a866;
  font-size: 1.08em;
}

.final-photo {
  position: relative;
  width: min(430px, 82vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid rgba(198,168,102,.6);
  overflow: visible;
  background: rgba(255,255,255,.02);
}

.final-photo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(.92) contrast(.98);
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}

.final-photo:hover .final-photo-image {
  transform: scale(1.025);
}

.photo-corner {
  position: absolute;
  color: #c6a866;
  font-size: 12px;
  line-height: 1;
}

.photo-corner-top {
  top: -7px;
  left: -7px;
}

.photo-corner-bottom {
  right: -7px;
  bottom: -7px;
}

.final-names {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.final-names span {
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 5vw, 54px);
  color: #f5f0e7;
}

.final-names b {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: #c6a866;
  font-size: 21px;
}

.final-message {
  width: min(460px, 100%);
  margin: 28px auto 52px;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.55;
  color: #bdb5a5;
}

/* =========================================
   FINAL PHOTO GALLERY — COMPACT LUXURY
========================================= */

.mini-gallery {
  width: min(980px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.15fr;
  grid-template-rows: 280px 330px;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

.mini-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(198,168,102,.38);
  border-radius: 16px;
  background: #172633;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(32px) scale(.975);
  transition:
    opacity 1s cubic-bezier(.22,1,.36,1),
    transform 1s cubic-bezier(.22,1,.36,1);
}

.mini-gallery.visible .mini-photo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mini-photo:nth-child(1) { transition-delay: .08s; }
.mini-photo:nth-child(2) { transition-delay: .18s; }
.mini-photo:nth-child(3) { transition-delay: .28s; }
.mini-photo:nth-child(4) { transition-delay: .42s; }

.mini-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.15s cubic-bezier(.22,1,.36,1);
}

.mini-photo.landscape img {
  object-position: center center;
}

.mini-photo.portrait img {
  object-position: center 24%;
}

.mini-photo:hover img {
  transform: scale(1.045);
}

.mini-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 32%,
    rgba(255,255,255,.13) 50%,
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 1s ease;
  pointer-events: none;
}

.mini-photo:hover::after {
  transform: translateX(120%);
}

/* The final image occupies the center of the full gallery width. */
.final-photo-center {
  grid-column: 1 / -1;
  grid-row: 2;
  width: min(285px, 100%);
  height: 100%;
  justify-self: center;
}

.final-divider {
  color: #c6a866;
  font-size: 18px;
  margin: 68px 0 22px;
}

.final-thankyou {
  width: 100%;
  font-family: "Playfair Display", serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: #9d927e;
  text-align: center;
}

.final-script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 7vw, 68px);
  font-weight: 400;
  color: #c6a866;
  margin: 8px 0 5px;
  text-align: center;
}

.final-footer {
  width: 100%;
  font-family: "Playfair Display", serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: #8d877a;
  text-align: center;
}

.final-names-small {
  margin-top: 48px;
  font-family: "Playfair Display", serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: #c6a866;
  text-align: center;
}

.final-names-small span {
  margin: 0 10px;
  color: #a98b51;
}

/* =========================================
   PHASE 7 — CINEMATIC POLISH
========================================= */

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f0e7;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .8s ease, visibility .8s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  animation: loaderAppear 1.2s ease forwards;
}

.loader-symbol {
  color: #b99a5a;
  font-size: 20px;
  margin-bottom: 18px;
}

.loader-content p {
  font-family: "Playfair Display", serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: #17283a;
  margin: 5px;
}

.loader-content span {
  font-family: "Great Vibes", cursive;
  color: #b99a5a;
  font-size: 28px;
}

.loader-line {
  width: 100px;
  height: 1px;
  margin: 24px auto 0;
  background: #b99a5a;
  transform-origin: left;
  animation: loaderLine 1.8s ease infinite;
}

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

@keyframes loaderLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c6a866;
  z-index: 99998;
  transform-origin: left center;
}

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

#particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #c6a866;
  border-radius: 50%;
  opacity: .35;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  from {
    transform: translate3d(0, 110vh, 0) rotate(0deg);
  }
  to {
    transform: translate3d(50px, -10vh, 0) rotate(360deg);
  }
}

section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 35px;
  background: linear-gradient(
    transparent,
    rgba(185,154,90,.35)
  );
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .final-section {
    padding: 95px 16px 65px;
  }

  .final-title {
    font-size: clamp(45px, 14vw, 64px);
    margin-bottom: 42px;
  }

  .final-photo {
    width: min(390px, 84vw);
  }

  .final-names {
    gap: 10px;
  }

  .final-names span {
    font-size: 42px;
  }

  .final-message {
    font-size: 17px;
    margin-bottom: 38px;
    padding: 0 8px;
  }

  .mini-gallery {
    width: min(100%, 520px);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 190px 250px 270px;
    gap: 11px;
  }

  .mini-photo {
    border-radius: 13px;
  }

  .mini-photo:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mini-photo:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .mini-photo:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .final-photo-center {
    grid-column: 1 / -1;
    grid-row: 3;
    width: min(220px, 64vw);
    height: 270px;
  }

  .final-divider {
    margin-top: 52px;
  }

  .final-names-small {
    margin-top: 38px;
  }
}

@media (max-width: 390px) {
  .final-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .final-eyebrow {
    letter-spacing: 3.5px;
    font-size: 8px;
  }

  .final-title {
    font-size: 46px;
  }

  .final-photo {
    width: 84vw;
  }

  .final-names span {
    font-size: 38px;
  }

  .mini-gallery {
    grid-template-rows: 175px 235px 255px;
  }

  .final-photo-center {
    width: 67vw;
    height: 255px;
  }
}

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

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