/* ==========================================================================
   ROSE NIKAH INVITATION — CORE DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  --ivory-base: #FAF4EB;
  --ivory-accent: #E6D3BB;
  --ivory: #E6D3BB;
  --ivory-light: #FAF4EB;
  --plum: #3A070C;
  --plum-dark: #220306;
  --plum-deep: #190103;
  --wine: #300307;
  --lavender: #6F0B17;
  --mauve: #A51520;
  --lilac: #D0B294;
  --champagne: #C9A35F;
  --champagne-light: #E5CA92;
  --gold-glow: rgba(201, 163, 95, 0.4);

  --font-display: "Cormorant Infant", "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Allura", "Snell Roundhand", "Segoe Script", cursive;
  --font-arabic: "Geeza Pro", "Traditional Arabic", "Amiri", serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--ivory-base);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: var(--ivory-base);
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

::selection {
  background: var(--mauve);
  color: var(--ivory);
}

/* ==========================================================================
   CANVAS PETAL OVERLAY
   ========================================================================== */
#petal-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* ==========================================================================
   AUDIO TOGGLE BUTTON
   ========================================================================== */
.audio-toggle-btn {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  background: rgba(58, 7, 12, 0.75);
  border: 1px solid var(--champagne);
  color: var(--champagne);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.audio-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--lavender);
  box-shadow: 0 0 15px var(--gold-glow);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.audio-bars span {
  width: 2.5px;
  background: var(--champagne);
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-toggle-btn.playing .audio-bars span:nth-child(1) {
  animation: equalize 1s infinite ease-in-out 0.1s;
}
.audio-toggle-btn.playing .audio-bars span:nth-child(2) {
  animation: equalize 1s infinite ease-in-out 0.3s;
}
.audio-toggle-btn.playing .audio-bars span:nth-child(3) {
  animation: equalize 1s infinite ease-in-out 0.2s;
}

@keyframes equalize {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ==========================================================================
   1. INTRO OVERLAY (ENVELOPE → FULL VIDEO → DISMISS)
   The intro is a fixed fullscreen overlay with two stages:
   Stage A: Envelope (visible first)
   Stage B: Fullscreen video (plays ALONE, no content behind it)
   When video ends, the entire #intro-screen fades out.
   ========================================================================== */
#intro-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #3A070C 0%, #150103 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
  overflow: hidden;
}

#intro-screen.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Envelope Stage — fills entire screen --- */
.envelope-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 2;
}

.envelope-wrapper.hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.envelope-card-container {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-wrapper:hover .envelope-card-container {
  /* subtle hover hint without moving the fullscreen image */
}

.envelope-wrapper.opening .envelope-card-container {
  transform: scale(1.04);
}

.envelope-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.4s ease;
}

.envelope-img.envelope-closed {
  opacity: 1;
  z-index: 2;
}

.envelope-img.envelope-open {
  opacity: 0;
  z-index: 1;
}

.envelope-wrapper.opening .envelope-img.envelope-closed {
  opacity: 0;
}

.envelope-wrapper.opening .envelope-img.envelope-open {
  opacity: 1;
  z-index: 3;
}

.envelope-tap-prompt {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--champagne);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: promptGlow 2.5s infinite ease-in-out;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.envelope-tap-prompt::before,
.envelope-tap-prompt::after {
  content: "♦";
  font-size: 0.65rem;
  color: var(--lilac);
  opacity: 0.8;
}

@keyframes promptGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 12px var(--gold-glow); }
}

/* --- Fullscreen Video Stage (plays ALONE, covering entire screen) --- */
.intro-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s;
  z-index: 10;
  background-color: #000000;
}

.intro-video-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.skip-intro-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  background: rgba(30, 3, 6, 0.7);
  border: 1px solid var(--champagne);
  color: var(--champagne);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: var(--transition-smooth);
}

.skip-intro-btn:hover {
  background: var(--plum);
  color: #ffffff;
}

/* ==========================================================================
   ROSE GARLAND DIVIDERS
   A thin cream/ivory horizontal line sits behind the rose garland image.
   No primary-color background — just the thin line + rose garland on top.
   ========================================================================== */
.rose-seam-divider {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 100vw;
  margin: -45px auto -45px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding: 0;
}

/* Thin cream/ivory horizontal line behind the roses */
.rose-seam-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--lilac) 20%, var(--lilac) 80%, transparent 100%);
  opacity: 0.45;
  transform: translateY(-50%);
  z-index: 0;
}

.rose-seam-divider img {
  position: relative;
  z-index: 1;
  width: min(2000px, 100%);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3));
}

/* Diamond ornament with subtle thin lines instead of primary colored ones */
.diamond-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem auto 1.5rem auto;
  color: var(--champagne);
  font-size: 0.75rem;
}

.diamond-ornament::before,
.diamond-ornament::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 130, 90, 0.45), transparent);
}

.diamond-ornament.left-aligned {
  justify-content: flex-start;
  margin: 0.5rem 0 1.5rem 0;
}

.diamond-ornament.left-aligned::before {
  display: none;
}

/* ==========================================================================
   SECTIONS — GENERAL LAYOUT
   ========================================================================== */
section {
  position: relative;
  padding: 5.5rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-dark {
  background-color: var(--plum);
  color: var(--ivory);
}

.section-light {
  background-color: var(--ivory-base);
  color: var(--plum);
}

.section-dark-gradient {
  background: radial-gradient(circle at center, var(--lavender) 0%, var(--plum-dark) 100%);
  color: var(--ivory);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--champagne);
  margin-bottom: 0.75rem;
}

.section-light .eyebrow {
  color: var(--mauve);
}

.script-title {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: inherit;
}

.section-dark .script-title {
  color: #fff4e3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.section-light .script-title {
  color: var(--plum);
}

.container-narrow {
  width: min(720px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   2. HERO & COUPLE NAMES CARD (STATIC STAGE BACKDROP)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding: 4rem 1.5rem 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--plum-dark);
  position: relative;
  overflow: hidden;
}

.hero-background-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  filter: saturate(1.2) contrast(1.1);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(58, 7, 12, 0.4) 0%, rgba(22, 3, 5, 0.95) 85%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(840px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Cinematic pop-out animation for hero content ---
   When the intro dismisses, the hero content scales up from
   the center as if emerging from the chandelier video. */
.hero-content.hero-pop-out {
  animation: heroBlooming 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroBlooming {
  0% {
    opacity: 0;
    transform: scale(0.55) translateY(30px);
    filter: blur(8px) brightness(1.6);
  }
  40% {
    opacity: 0.7;
    transform: scale(0.88) translateY(10px);
    filter: blur(2px) brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
  }
}

/* Staggered animation for child elements within hero */
.hero-pop-out .bismillah {
  animation: heroChildFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-pop-out .hero-intro-text {
  animation: heroChildFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-pop-out .couple-names-grid {
  animation: heroChildFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-pop-out .hero-motto {
  animation: heroChildFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}
.hero-pop-out .scroll-indicator {
  animation: heroChildFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

@keyframes heroChildFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--champagne);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-intro-text {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--lilac);
  margin-bottom: 2.5rem;
}

.couple-names-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 680px) {
  .couple-names-grid {
    flex-direction: column;
    gap: 1rem;
  }
}

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

.person-name {
  font-family: var(--font-script);
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  color: #fff4e3;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.4rem;
}

.person-parents {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  color: var(--lilac);
  font-style: italic;
  letter-spacing: 0.08em;
}

.couple-ampersand {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--champagne);
  padding: 0 0.5rem;
}

.hero-motto {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-top: 1rem;
}

.scroll-indicator {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--champagne);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--champagne), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==========================================================================
   3. STORY SECTION ("A Blessed Beginning")
   ========================================================================= */
.story-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.85;
  color: var(--lavender);
  font-style: italic;
  max-width: 620px;
  margin: 1.5rem auto 2.5rem auto;
}

.story-names-signature {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--mauve);
}

/* ==========================================================================
   4. SCRATCH-TO-REVEAL DATE CARD
   ========================================================================== */
.scratch-section {
  background-color: var(--ivory-accent);
  padding: 5rem 1.5rem 6rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.scratch-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: clamp(260px, 48vw, 380px);
  margin: 2rem auto 1rem auto;
  border-radius: 8px;
  background-color: #F1E3CE;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  /* Explicit touch-action to prevent scroll while scratching */
  touch-action: none;
  box-sizing: border-box;
}

/* Hidden Date Content on Warm Ivory */
.scratch-underlying-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem;
  background-color: #F1E3CE;
  color: var(--plum);
  text-align: center;
  z-index: 1;
}

.scratch-invitation-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #A51520;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scratch-date-highlight {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  color: #2E0509;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.scratch-day-time {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: #4F1018;
  letter-spacing: 0.08em;
}

/* The Scratch Canvas Foil — sits ON TOP of the underlying content */
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.8s ease;
  display: block;
}

.scratch-canvas.revealed {
  opacity: 0;
  pointer-events: none;
}

/* Rose Frame Overlay — on top of everything including canvas */
.scratch-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 15;
}

.scratch-hint {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: 1rem;
  opacity: 0.85;
}

/* ==========================================================================
   5. COUNTDOWN SECTION
   ========================================================================== */
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.countdown-tile {
  background: rgba(46, 5, 10, 0.65);
  border: 1px solid rgba(201, 163, 95, 0.5);
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  min-width: clamp(72px, 18vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(201, 163, 95, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.countdown-tile:hover {
  transform: translateY(-4px);
  border-color: var(--champagne);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--champagne);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac);
}

/* ==========================================================================
   6. TIMELINE SECTION ("The Celebration / Our Nikah Day")
   ========================================================================== */
.timeline-container {
  position: relative;
  width: min(540px, 92vw);
  margin: 2.5rem auto 1rem auto;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 95px;
  width: 2px;
  background: linear-gradient(to bottom, var(--champagne), var(--lilac), var(--champagne));
  opacity: 0.7;
}

@media (max-width: 520px) {
  .timeline-container {
    padding-left: 0;
  }
  .timeline-line {
    left: 70px;
  }
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.75rem;
  position: relative;
  text-align: left;
}

.timeline-time {
  width: 80px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mauve);
  text-align: right;
  padding-right: 1.5rem;
  padding-top: 0.1rem;
}

@media (max-width: 520px) {
  .timeline-time {
    width: 60px;
    font-size: 0.75rem;
    padding-right: 1rem;
  }
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--champagne);
  border: 2px solid var(--ivory);
  box-shadow: 0 0 8px var(--champagne);
  position: absolute;
  left: 90px;
  top: 5px;
  z-index: 2;
}

@media (max-width: 520px) {
  .timeline-dot {
    left: 65px;
  }
}

.timeline-info {
  margin-left: 2.5rem;
  flex: 1;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--plum);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.timeline-note {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: #7b4f53;
}

/* ==========================================================================
   7. OTHER EVENTS SECTION ("Days filled with joy")
   ========================================================================== */
.events-section {
  background-color: var(--ivory-accent);
}

.events-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(580px, 92vw);
  margin: 2.5rem auto 1rem auto;
}

.event-card {
  position: relative;
  background: rgba(241, 227, 206, 0.4);
  border: 1px solid rgba(201, 163, 95, 0.6);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  text-align: center;
  transition: var(--transition-smooth);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 163, 95, 0.35);
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(111, 11, 23, 0.08);
  border-color: var(--champagne);
}

.event-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 0.6rem;
}

.event-card-datetime {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 0.5rem;
}

.event-card-location {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: #724b4f;
  margin-bottom: 1.5rem;
}

.btn-gold-outline {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--champagne);
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: var(--transition-smooth);
}

.btn-gold-outline:hover {
  background: var(--plum);
  color: var(--ivory);
  border-color: var(--plum);
}

/* ==========================================================================
   8. DRESS CODE SECTION (SIDE-BY-SIDE LAYOUT)
   ========================================================================== */
.dresscode-section {
  padding: 5.5rem 1.5rem;
}

.dresscode-inner-container {
  width: min(920px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
}

@media (max-width: 768px) {
  .dresscode-inner-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .diamond-ornament.left-aligned {
    justify-content: center;
    margin: 0.5rem auto 1.5rem auto;
  }
}

.dresscode-text-col {
  flex: 1.2;
}

.dresscode-note {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  color: #724b4f;
  line-height: 1.75;
}

.dresscode-swatches-col {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.swatches-row {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

.swatch-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #f1e3ce;
  margin-left: -12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.3s ease;
  position: relative;
  cursor: pointer;
}

.swatch-circle:first-child {
  margin-left: 0;
}

.swatch-circle:hover {
  transform: translateY(-8px) scale(1.15);
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   9. "YOUR PRESENCE IS OUR PRESENT" — DARK WINE SECTION
   This is a SEPARATE section from the final celebrate section.
   ========================================================================== */
.section-presence-dark {
  background-color: var(--wine);
  color: var(--ivory);
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.presence-circle-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(201, 163, 95, 0.22);
  pointer-events: none;
}

.presence-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  color: #fff4e3;
  margin: 1rem 0 1.25rem 0;
}

.presence-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--lilac);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   10. "WE CAN'T WAIT TO CELEBRATE WITH YOU" — LIGHT IVORY SECTION
   This is the FINAL section with the arched card frame.
   ========================================================================== */
.section-celebrate-final {
  background-color: var(--ivory-base);
  color: var(--plum);
  padding: 5rem 1.5rem 4rem 1.5rem;
  position: relative;
  overflow: visible;
}

/* Arched Double Line Card Frame (matching reference screenshots) */
.arched-card-container {
  width: min(680px, 92vw);
  margin: 0 auto;
  padding: 4rem 2rem;
  border: 1px solid rgba(111, 11, 23, 0.18);
  border-radius: 50% 50% 12px 12px / 120px 120px 12px 12px;
  position: relative;
  text-align: center;
}

.arched-card-container::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 163, 95, 0.30);
  border-radius: inherit;
  pointer-events: none;
}

.celebrate-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--plum);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.celebrate-couple-names {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--mauve);
  margin-bottom: 1.75rem;
}

.celebrate-couple-names .ampersand {
  color: var(--champagne);
  font-size: 0.9em;
  padding: 0 0.4rem;
}

.celebrate-date-venue {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #724b4f;
  margin-bottom: 2rem;
}

.venue-directions-wrap {
  margin-top: 1rem;
}

.footer-credit {
  margin-top: 4.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(111, 11, 23, 0.6);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION SYSTEM
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 480px) {
  .scratch-section {
    padding: 3.5rem 1rem 4.5rem 1rem;
  }

  .scratch-card-wrapper {
    width: 100%;
    max-width: 100%;
    height: clamp(230px, 58vw, 290px);
    margin: 1.5rem auto 1rem auto;
  }

  .scratch-underlying-content {
    padding: 1.5rem 1rem;
  }

  .scratch-date-highlight {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
  }

  .rose-seam-divider {
    margin: -25px auto -25px auto;
  }

  .rose-seam-divider img {
    max-height: 100px;
  }

  .arched-card-container {
    padding: 3rem 1.25rem;
  }

  .celebrate-date-venue {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }
}

/* ==========================================================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  #intro-screen {
    display: none !important;
  }

  body.locked {
    overflow: auto !important;
    height: auto !important;
  }

  .scratch-canvas {
    display: none !important;
  }
}
