/* ===================================================
   Engagement INVITATION — Classy Olive & Gold Theme
   Ornate curtain with damask, fringe, tassels & filigree
   =================================================== */

:root {
  --olive:        #5C6642;
  --olive-dark:   #3E472C;
  --olive-deep:   #2C3321;
  --gold:         #D4A72E;
  --gold-light:   #E8CA74;
  --cream:        #FBEDC9;
  --cream-dark:   #F0E0BB;
  --text:         #2C2A25;
  --text-light:   #6B6659;
  --white:        #FFF4D5;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════
   CURTAIN — Full viewport ornate drape
   ═══════════════════════════════════════════════════ */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* ── Curtain panels ────────────────────────────── */
.curtain-left,
.curtain-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(
    160deg,
    #3A452A 0%,
    #4A5634 20%,
    #5C6642 40%,
    #4E5A37 60%,
    #3E472C 80%,
    #2C3321 100%
  );
  transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  overflow: hidden;
}

.curtain-left  { left: 0; }
.curtain-right { right: 0; }

/* Fabric fold highlights — vertical pleats */
.curtain-left::before,
.curtain-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 30px,
      rgba(255,244,213,0.02) 30px,
      rgba(255,244,213,0.04) 35px,
      rgba(255,244,213,0.02) 40px,
      transparent 40px,
      transparent 60px,
      rgba(0,0,0,0.03) 60px,
      rgba(0,0,0,0.06) 65px,
      rgba(0,0,0,0.03) 70px,
      transparent 70px
    );
  pointer-events: none;
  z-index: 1;
}

/* Deep inner shadow along meeting edge */
.curtain-left::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 80px;
  background: linear-gradient(to left, rgba(0,0,0,0.2), transparent);
  pointer-events: none;
  z-index: 2;
}
.curtain-right::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 80px;
  background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ── Damask overlay ────────────────────────────── */
.curtain-damask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ── Curtain OPEN state ────────────────────────── */
.curtain.open .curtain-left {
  transform: translateX(-100%);
}
.curtain.open .curtain-right {
  transform: translateX(100%);
}
.curtain.open .curtain-content {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.curtain.hidden {
  pointer-events: none;
  visibility: hidden;
}


/* ── Central ornament between curtains ─────────── */
.curtain-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(90px, 10vw, 130px);
  z-index: 15;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0.95;
  filter: drop-shadow(0 0 3px rgba(212, 167, 46,0.15));
}

.curtain-center-top,
.curtain-center-bottom {
  width: 100%;
  height: auto;
  display: block;
}

.curtain-center-top {
  max-height: 22vh;
}
.curtain-center-bottom {
  max-height: 22vh;
  transform: scaleY(-1);
}

.curtain.open .curtain-center {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (max-width: 480px) {
  .curtain-center { width: 150px; }
}

/* ── Subtle corner flourishes on the curtain ───── */
.curtain-corner {
  position: absolute;
  width: clamp(70px, 12vw, 130px);
  height: clamp(70px, 12vw, 130px);
  color: #D4A72E;
  pointer-events: none;
  z-index: 20;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(212, 167, 46,0.18));
}
.curtain-corner svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.curtain-corner--tl { top: 18px; left: 18px; }
.curtain-corner--tr { top: 18px; right: 18px; transform: scaleX(-1); }
.curtain-corner--bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.curtain-corner--br { bottom: 18px; right: 18px; transform: scale(-1, -1); }

.curtain.open .curtain-corner {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (max-width: 480px) {
  .curtain-corner { width: 60px; height: 60px; }
  .curtain-corner--tl, .curtain-corner--tr { top: 12px; }
  .curtain-corner--bl, .curtain-corner--br { bottom: 12px; }
  .curtain-corner--tl, .curtain-corner--bl { left: 12px; }
  .curtain-corner--tr, .curtain-corner--br { right: 12px; }
}

/* ── Curtain centre content ────────────────────── */
.curtain-content {
  position: relative;
  z-index: 30;
  text-align: center;
  color: var(--gold);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 0 1.5rem;
}

.wax-seal {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  animation: sealPulse 3s ease-in-out infinite;
}

.seal-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(212,167,46,0.3));
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(212,167,46,0.25)); }
  50%      { transform: scale(1.03); filter: drop-shadow(0 0 20px rgba(212,167,46,0.45)); }
}

.curtain-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--gold-light);
}

.curtain-sublabel {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(212,167,46,0.45);
  margin-bottom: 1.8rem;
  animation: subtleBlink 2.5s ease-in-out infinite;
}

@keyframes subtleBlink {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9; }
}

.open-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(212,167,46,0.6);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.open-btn:hover {
  color: var(--olive-deep);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,167,46,0.25);
}

.open-btn:hover::before {
  transform: scaleX(1);
}

/* ── Page corner filigree ──────────────────────── */
.corner-frill {
  position: fixed;
  width: clamp(100px, 18vw, 180px);
  height: clamp(100px, 18vw, 180px);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 1s;
}

.corner-frill svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* TL is the master — others are mirrored copies */
.corner-frill--tl { top: 0; left: 0; }
.corner-frill--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner-frill--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-frill--br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* Show after curtain opens */
.corner-frill.visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   INVITATION — revealed content
   ═══════════════════════════════════════════════════ */

.invitation {
  opacity: 0;
  transition: opacity 1s ease 0.6s;
}

.invitation.visible {
  opacity: 1;
}

/* ── HERO SECTION ──────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212,167,46,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(92,102,66,0.06) 0%, transparent 50%),
    var(--cream);
}

.hero-border {
  border: 1px solid rgba(212,167,46,0.25);
  padding: 3px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.hero-inner {
  border: 1px solid rgba(212,167,46,0.15);
  padding: 3.5rem 2rem;
  text-align: center;
}

.hero-top-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--olive-dark);
  line-height: 1.1;
}

.amp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem 0;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.invite-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-light);
}

/* ── DATE SCRATCH CIRCLES ─────────────────────── */
.date-scratch-section {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212,167,46,0.05) 0%, transparent 60%),
    var(--cream);
}

.scratch-intro {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.scratch-circles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

/* ── Individual golden coin ──────────────────── */
.scratch-coin {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  box-shadow:
    0 4px 20px rgba(212,167,46,0.25),
    0 0 0 3px rgba(212,167,46,0.15),
    inset 0 0 20px rgba(212,167,46,0.08);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.scratch-coin::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(212,167,46,0.2);
  pointer-events: none;
  z-index: 5;
}

.scratch-coin:hover {
  transform: scale(1.04);
  box-shadow:
    0 6px 30px rgba(212,167,46,0.35),
    0 0 0 3px rgba(212,167,46,0.25),
    inset 0 0 20px rgba(212,167,46,0.08);
}

/* Content underneath the gold layer */
.coin-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  gap: 0.1rem;
  padding: 0.5rem;
}

.coin-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.coin-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1.1;
}

.coin-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
}

/* Canvas scratch layer */
.coin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  touch-action: none;
  z-index: 3;
}

/* Hint icon on top of the coin */
.coin-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
  color: var(--olive-deep);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.scratch-coin.scratching .coin-hint,
.scratch-coin.revealed .coin-hint {
  opacity: 0;
}

/* Coin revealed state */
.scratch-coin.revealed .coin-canvas {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scratch-coin.revealed .coin-content {
  animation: coinRevealPop 0.5s ease forwards;
}

.scratch-coin.revealed {
  box-shadow:
    0 2px 15px rgba(92,102,66,0.15),
    0 0 0 3px rgba(92,102,66,0.12),
    inset 0 0 10px rgba(92,102,66,0.05);
}

@keyframes coinRevealPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Shimmer animation on unscratched coins */
@keyframes coinShimmer {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.6; }
}

.scratch-coin:not(.revealed):not(.scratching) .coin-hint svg {
  animation: coinShimmer 2.5s ease-in-out infinite;
}

/* ── Countdown ───────────────────────────────── */
.countdown-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.countdown-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.8rem 0.5rem;
  background: var(--white);
  border: 1px solid rgba(212,167,46,0.18);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1;
}

.countdown-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  margin-top: -0.8rem;
}

/* ── DETAILS SECTION ───────────────────────────── */
.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.palace-art {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 0;
  filter: drop-shadow(0 2px 10px rgba(212, 167, 46,0.12));
}

.palace-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.venue-card {
  padding: 3rem 2rem 2.5rem;
}

.venue-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212, 167, 46,0.5);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.venue-map-link:hover {
  color: var(--olive-deep);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 167, 46,0.25);
}

.detail-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(212,167,46,0.12);
  position: relative;
}

.detail-card::before,
.detail-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.4;
}
.detail-card::before {
  top: 8px; left: 8px;
  border-width: 1px 0 0 1px;
}
.detail-card::after {
  bottom: 8px; right: 8px;
  border-width: 0 1px 1px 0;
}

.detail-icon {
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.detail-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.detail-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 0.3rem;
}

.detail-secondary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

.detail-tertiary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ── ENGAGEMENT INVITATION LETTER ──────────────── */
.invite-letter-section {
  padding: 4rem 1.5rem;
  display: flex;
  justify-content: center;
}

.invite-letter {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 3.5rem 2.5rem 3rem;
  background:
    linear-gradient(135deg, #FBEDC9 0%, #F5E4BB 100%);
  border: 1px solid rgba(212, 167, 46,0.25);
  box-shadow:
    0 2px 30px rgba(92, 102, 66,0.08),
    inset 0 0 0 6px rgba(255, 244, 213,0.4),
    inset 0 0 0 7px rgba(212, 167, 46,0.25);
  text-align: center;
  color: var(--text);
}

.invite-letter::before,
.invite-letter::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.invite-letter::before {
  top: 14px; left: 14px;
  border-width: 1px 0 0 1px;
}
.invite-letter::after {
  bottom: 14px; right: 14px;
  border-width: 0 1px 1px 0;
}

.letter-ornament {
  width: 200px;
  max-width: 60%;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}
.letter-ornament--bottom {
  margin: 2rem auto 1.5rem;
}
.letter-ornament svg {
  width: 100%;
  height: auto;
  display: block;
}

.letter-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--olive-dark);
  max-width: 480px;
  margin: 0 auto 0.5rem;
}

.letter-verse-ref {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.letter-heading {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.letter-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.letter-closing {
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-light);
}

.letter-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.letter-person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.letter-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--olive-deep);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.letter-parents {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.letter-amp {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.letter-compliments {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.letter-signoff {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--olive-deep);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.letter-signoff-role {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

@media (max-width: 560px) {
  .invite-letter {
    padding: 2.5rem 1.5rem 2rem;
  }
  .letter-verse { font-size: 1rem; }
  .letter-body  { font-size: 1rem; }
}

/* ── TIMELINE ──────────────────────────────────── */
.timeline {
  padding: 5rem 1.5rem;
  background:
    linear-gradient(to bottom, var(--cream), var(--cream-dark), var(--cream));
}

.section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  margin-bottom: 3rem;
}

.timeline-track {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  position: absolute;
  left: -2rem;
  top: 0;
  font-size: 0;
  visibility: hidden;
}

.timeline-dot {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
  margin-left: -2rem;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-desc h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 0.15rem;
}

.timeline-desc p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.5;
}

.timeline-item .timeline-desc h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

/* ── RSVP ──────────────────────────────────────── */
.rsvp {
  padding: 5rem 1.5rem;
}

.rsvp-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(212,167,46,0.12);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.rsvp-card::before,
.rsvp-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.3;
}
.rsvp-card::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.rsvp-card::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}

.rsvp-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid #CCC3AA;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6659' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-group label {
  position: absolute;
  top: 0.9rem;
  left: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  pointer-events: none;
  transition: transform 0.3s, font-size 0.3s, color 0.3s;
}

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

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.4rem);
  font-size: 0.6rem;
  color: var(--gold);
}

.form-group select:not(:invalid) + label {
  transform: translateY(-1.4rem);
  font-size: 0.6rem;
  color: var(--gold);
}

.submit-btn {
  align-self: center;
  padding: 0.9rem 3rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--olive);
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.rsvp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.rsvp-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--olive-dark);
}

.rsvp-success.show {
  display: flex;
}

/* ── BLESSINGS WALL ───────────────────────────── */
.blessings {
  padding: 5rem 1.5rem 2.5rem;
  background: var(--cream);
}

.blessings-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.blessings-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.blessings-header .blessings-subtitle {
  margin-bottom: 0;
}

.blessings-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.blessing-item {
  position: relative;
  padding: 2rem 1.5rem 1.6rem;
  background: linear-gradient(135deg, #FBEDC9 0%, #F3E1B4 100%);
  border: 1px solid rgba(212, 167, 46,0.22);
  box-shadow: 0 2px 14px rgba(92, 102, 66,0.08);
  animation: blessingFadeIn 0.6s ease both;
}

.blessing-item::before {
  content: '\201C';
  position: absolute;
  top: -2px;
  left: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
}

.blessing-item::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.9rem;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 167, 46,0.45),
    transparent
  );
}

.blessing-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

.blessings-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-light);
  padding: 1.5rem 0;
}

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

/* ── BLESSINGS FORM (separate section) ─────────── */
.blessings-form-section {
  padding: 2rem 1.5rem 5rem;
  background: var(--cream);
}

.blessings-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid rgba(212, 167, 46,0.18);
  text-align: center;
}

.blessings-card::before,
.blessings-card::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.blessings-card::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.blessings-card::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}

/* ── FOOTER ────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: var(--olive-deep);
  color: var(--gold-light);
}

.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.footer-ornament .divider-line {
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
  opacity: 0.4;
}

.footer-ornament .divider-diamond {
  border-color: var(--gold-light);
  opacity: 0.4;
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  opacity: 0.7;
}

/* ── SCROLL REVEAL ─────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .scratch-coin {
    width: 110px;
    height: 110px;
  }

  .coin-value {
    font-size: 1.35rem;
  }

  .coin-sub {
    font-size: 0.8rem;
  }

  .scratch-circles {
    gap: 1.2rem;
  }

  .countdown-unit {
    min-width: 54px;
    padding: 0.6rem 0.4rem;
  }

  .countdown-number {
    font-size: 1.6rem;
  }

  .date-scratch-section {
    padding: 3rem 1.2rem 4rem;
  }

  .details {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.2rem;
  }

  .hero-inner {
    padding: 2.5rem 1.2rem;
  }

  .hero-top-text {
    font-size: 0.6rem;
  }

  .invite-text {
    font-size: 0.95rem;
  }

  .rsvp-card {
    padding: 2rem 1.2rem;
  }

  .timeline {
    padding: 3.5rem 1.2rem;
  }

  .wax-seal {
    width: 110px;
    height: 110px;
  }

  .curtain-label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  .curtain-sublabel {
    font-size: 0.55rem;
  }

  .open-btn {
    padding: 0.8rem 2.2rem;
    font-size: 0.7rem;
  }

}

@media (max-width: 380px) {
  .scratch-coin {
    width: 95px;
    height: 95px;
  }

  .coin-value {
    font-size: 1.15rem;
  }

  .coin-label {
    font-size: 0.5rem;
  }

  .coin-sub {
    font-size: 0.75rem;
  }

  .scratch-circles {
    gap: 0.8rem;
  }

  .countdown-unit {
    min-width: 48px;
  }

  .countdown-number {
    font-size: 1.4rem;
  }

  .countdown-sep {
    font-size: 1.2rem;
  }

  .name {
    font-size: 2.6rem;
  }

  .hero-inner {
    padding: 2rem 1rem;
  }

  .detail-primary {
    font-size: 1.1rem;
  }

  .wax-seal {
    width: 90px;
    height: 90px;
  }

}

@media (min-width: 1024px) {
  .hero-inner {
    padding: 4.5rem 4rem;
  }

  .details {
    gap: 3rem;
    padding: 6rem 2rem;
  }

  .wax-seal {
    width: 160px;
    height: 160px;
  }
}
