:root {
  --burgundy: #6b1a2a;
  --burgundy-dark: #4a0f1c;
  --burgundy-mid: #8b2035;
  --gold: #c9a84c;
  --gold-light: #e8c86a;
  --gold-pale: #f5e6b8;
  --cream: #faf5ec;
  --cream-dark: #ede5d0;
  --text-dark: #2a1020;
  --text-mid: #5a3040;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--burgundy-dark);
  color: var(--cream);
  font-family: "Raleway", sans-serif;
  overflow-x: hidden;
}

/* ===================== ENVELOPE SCREEN ===================== */
#envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(
    ellipse 120% 120% at 50% 60%,
    #3d0a14 0%,
    var(--burgundy-dark) 60%,
    #1a0508 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}
#envelope-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background damask pattern */
.env-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--gold) 0px,
      var(--gold) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--gold) 0px,
      var(--gold) 1px,
      transparent 1px,
      transparent 30px
    );
  background-size: 42px 42px;
  animation: patternShimmer 5s ease-in-out infinite alternate;
}

/* Floating particles */
.env-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.env-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-light);
  animation: floatParticle var(--fdur, 6s) ease-in-out var(--fdelay, 0s)
    infinite;
  opacity: 0;
}
@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-80px) scale(0.5);
    opacity: 0;
  }
}

/* Corner ornaments */
.env-corner {
  position: absolute;
  width: 70px;
  height: 70px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.35;
  animation: cornerPulse 3s ease-in-out infinite alternate;
}
.env-corner.tl {
  top: 24px;
  left: 24px;
  border-width: 2px 0 0 2px;
}
.env-corner.tr {
  top: 24px;
  right: 24px;
  border-width: 2px 2px 0 0;
}
.env-corner.bl {
  bottom: 24px;
  left: 24px;
  border-width: 0 0 2px 2px;
}
.env-corner.br {
  bottom: 24px;
  right: 24px;
  border-width: 0 2px 2px 0;
}
@keyframes cornerPulse {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.5;
  }
}

/* Envelope wrapper */
.envelope-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: envelopeEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
}
@keyframes envelopeEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.env-above-text {
  font-family: "Cinzel", serif;
  font-size: clamp(0.55rem, 1.5vw, 0.72rem);
  letter-spacing: 7px;
  color: var(--gold);
  opacity: 0.65;
  text-transform: uppercase;
  text-align: center;
}
.env-below-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-style: italic;
  color: var(--gold-pale);
  opacity: 0.55;
  text-align: center;
  animation: subtlePulse 2.5s ease-in-out infinite alternate;
}
@keyframes subtlePulse {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.75;
  }
}

/* ---- THE ENVELOPE ---- */
.envelope {
  position: relative;
  width: clamp(300px, 55vw, 540px);
  height: clamp(200px, 37vw, 360px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 40px rgba(201, 168, 76, 0.15));
}

/* Back of envelope */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #5c1020 0%, #3a0c15 60%, #2a0810 100%);
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
}

/* Side triangles (envelope edges) */
.env-tri {
  position: absolute;
  width: 0;
  height: 0;
}
.env-tri-left {
  left: 0;
  bottom: 0;
  border-style: solid;
  border-width: 0 0 clamp(100px, 18.5vw, 180px) clamp(150px, 27.5vw, 270px);
  border-color: transparent transparent #4a1020 transparent;
  opacity: 0.85;
}
.env-tri-right {
  right: 0;
  bottom: 0;
  border-style: solid;
  border-width: clamp(100px, 18.5vw, 180px) 0 0 clamp(150px, 27.5vw, 270px);
  border-color: transparent transparent transparent #55121e;
  opacity: 0.85;
}
.env-tri-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  width: 100%;
  height: 0;
  border-style: solid;
  border-width: 0 0 0 0; /* handled via clip path instead */
}

/* Envelope V-line at bottom center */
.env-back::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 168, 76, 0.4),
    transparent
  );
}

/* Diamond line pattern on envelope back */
.env-back::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--gold) 0,
      var(--gold) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--gold) 0,
      var(--gold) 1px,
      transparent 1px,
      transparent 20px
    );
  border-radius: 3px;
}

/* Invite card inside the envelope */
.env-invite-card {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  bottom: 10%;
  background: linear-gradient(160deg, #faf0d8 0%, #f0e0b0 40%, #e8d098 100%);
  border: 1px solid rgba(201, 168, 76, 0.6);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 1s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.8s ease;
  overflow: hidden;
}
.env-invite-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 0.75px solid rgba(139, 96, 50, 0.4);
  pointer-events: none;
}
.env-invite-card.slide-out {
  transform: translateY(-90%) scale(0.95);
  opacity: 0;
}
.env-card-inner {
  text-align: center;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.env-card-ornament {
  color: #8b5e2a;
  font-size: 0.8rem;
  opacity: 0.7;
}
.env-card-label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.65rem, 1.6vw, 0.85rem);
  color: #7a5020;
  letter-spacing: 2px;
  opacity: 0.8;
}
.env-card-name {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(0.85rem, 2.2vw, 1.3rem);
  color: #5a2e08;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1px;
}
.env-card-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.env-card-divider::before,
.env-card-divider::after {
  content: "✦";
  color: #9a7030;
  font-size: 0.45rem;
}
.env-card-divider span {
  width: clamp(24px, 5vw, 50px);
  height: 1px;
  background: linear-gradient(to right, transparent, #9a7030, transparent);
}
.env-card-date {
  font-family: "Cinzel", serif;
  font-size: clamp(0.55rem, 1.3vw, 0.7rem);
  letter-spacing: 4px;
  color: #6a3810;
  text-transform: uppercase;
}
.env-card-venue {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.6rem, 1.5vw, 0.78rem);
  color: #7a4a18;
  opacity: 0.75;
  letter-spacing: 1px;
}

/* ---- TOP FLAP ---- */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
  background: linear-gradient(170deg, #5c1020 0%, #3d0c15 70%, #2e0a12 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-right: 1.5px solid rgba(201, 168, 76, 0.2);
  border-left: 1.5px solid rgba(201, 168, 76, 0.2);
  border-top: 1.5px solid rgba(201, 168, 76, 0.3);
  transform-style: preserve-3d;
  perspective: 800px;
}
.env-flap.open {
  transform: perspective(800px) rotateX(-160deg);
}
.env-flap-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: 30%;
  justify-content: center;
  padding-top: 14%;
}
.env-flap-diamond {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  transform: rotate(45deg);
  opacity: 0.6;
}
.env-flap-diamond::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  transform: rotate(0deg);
}

/* ---- WAX SEAL BUTTON ---- */
#envelope-seal-btn {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b8242c, #6e0e14 55%, #3a060c);
  border: none;
  cursor: pointer;
  z-index: 20;
  padding: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(201, 168, 76, 0.5),
    0 0 20px rgba(180, 30, 40, 0.4),
    inset 0 1px 3px rgba(255, 200, 150, 0.2);
}
#envelope-seal-btn:hover:not(:disabled) {
  transform: translateX(-50%) scale(1.1);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(201, 168, 76, 0.7),
    0 0 40px rgba(201, 168, 76, 0.35),
    inset 0 1px 3px rgba(255, 200, 150, 0.3);
}
#envelope-seal-btn:disabled {
  cursor: default;
}

.seal-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.45);
}
.seal-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 0.75px solid rgba(201, 168, 76, 0.25);
}

.seal-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.seal-monogram {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.seal-text {
  font-family: "Cinzel", serif;
  font-size: 0.38rem;
  letter-spacing: 2.5px;
  color: var(--gold-pale);
  opacity: 0.75;
  text-transform: uppercase;
}

.seal-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.25);
  animation: sealPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sealPulse {
  0%,
  100% {
    box-shadow:
      0 0 12px rgba(201, 168, 76, 0.2),
      0 0 0 0 rgba(201, 168, 76, 0.15);
  }
  50% {
    box-shadow:
      0 0 25px rgba(201, 168, 76, 0.4),
      0 0 0 8px rgba(201, 168, 76, 0);
  }
}

/* ===================== INTRO OVERLAY ===================== */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--burgundy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}
#intro.visible-intro {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#intro.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(
      ellipse 2px 2px at 20px 20px,
      var(--gold) 100%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 1px 1px at 10px 10px,
      var(--gold) 100%,
      transparent 100%
    );
  background-size: 40px 40px;
  animation: patternShimmer 4s ease-in-out infinite alternate;
}
@keyframes patternShimmer {
  from {
    opacity: 0.04;
  }
  to {
    opacity: 0.1;
  }
}

.light-streak {
  position: absolute;
  width: 3px;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 168, 76, 0.6),
    transparent
  );
  border-radius: 2px;
  animation: streakMove 6s ease-in-out infinite;
  filter: blur(1px);
}
.light-streak:nth-child(2) {
  left: 15%;
  top: -50px;
  animation-delay: 0.5s;
  animation-duration: 7s;
}
.light-streak:nth-child(3) {
  left: 40%;
  top: -50px;
  animation-delay: 1.5s;
  animation-duration: 5.5s;
}
.light-streak:nth-child(4) {
  left: 65%;
  top: -50px;
  animation-delay: 0.8s;
  animation-duration: 6.5s;
}
.light-streak:nth-child(5) {
  left: 85%;
  top: -50px;
  animation-delay: 2s;
  animation-duration: 5s;
}
@keyframes streakMove {
  0% {
    transform: translateY(-100px) rotate(15deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(15deg);
    opacity: 0;
  }
}

#flight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stamp {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transform: rotate(-15deg) scale(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 7px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.stamp.show {
  opacity: 0.45;
  transform: rotate(-15deg) scale(1);
}
.stamp-inner {
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0;
}
.stamp:nth-child(1) {
  top: 15%;
  left: 8%;
  transform: rotate(-20deg) scale(0.5);
}
.stamp:nth-child(1).show {
  transform: rotate(-20deg) scale(1);
}
.stamp:nth-child(2) {
  bottom: 18%;
  right: 10%;
  transform: rotate(12deg) scale(0.5);
}
.stamp:nth-child(2).show {
  transform: rotate(12deg) scale(1);
}
.stamp:nth-child(3) {
  top: 60%;
  left: 5%;
  transform: rotate(-8deg) scale(0.5);
}
.stamp:nth-child(3).show {
  transform: rotate(-8deg) scale(1);
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: sparkleAnim var(--dur, 2s) ease-in-out var(--delay, 0s) infinite;
  box-shadow: 0 0 6px 2px rgba(201, 168, 76, 0.6);
}
@keyframes sparkleAnim {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.intro-text {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease 3.5s forwards;
  /* only play when intro is visible */
}
#intro.visible-intro .intro-text {
  animation-play-state: running;
}
.intro-text h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}
.intro-text p {
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: var(--gold-pale);
  margin-top: 8px;
  opacity: 0.7;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.4;
}
.corner.tl {
  top: 20px;
  left: 20px;
  border-width: 2px 0 0 2px;
}
.corner.tr {
  top: 20px;
  right: 20px;
  border-width: 2px 2px 0 0;
}
.corner.bl {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 2px 2px;
}
.corner.br {
  bottom: 20px;
  right: 20px;
  border-width: 0 2px 2px 0;
}

/* ===================== MAIN PAGE ===================== */
#main-page {
  opacity: 0;
  transition: opacity 1.5s ease;
}
#main-page.visible {
  opacity: 1;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(
    160deg,
    var(--burgundy-dark) 0%,
    var(--burgundy) 50%,
    var(--burgundy-dark) 100%
  );
  overflow: hidden;
  padding: 100px 20px 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 50%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 80% at 50% 0%,
      rgba(74, 15, 28, 0.8) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 80% 80% at 50% 100%,
      rgba(74, 15, 28, 0.8) 0%,
      transparent 60%
    );
}

.hero-photo-wrap {
  position: relative;
  margin-bottom: 40px;
  z-index: 2;
}
.hero-photo-ring {
  width: clamp(200px, 35vw, 300px);
  height: clamp(200px, 35vw, 300px);
  border-radius: 50%;
  border: 3px solid var(--gold);
  padding: 6px;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.3),
    transparent,
    rgba(201, 168, 76, 0.3)
  );
  box-shadow:
    0 0 40px rgba(201, 168, 76, 0.2),
    inset 0 0 20px rgba(201, 168, 76, 0.05);
  animation: ringGlow 4s ease-in-out infinite alternate;
  position: relative;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 10%;
}
@keyframes ringGlow {
  from {
    box-shadow:
      0 0 30px rgba(201, 168, 76, 0.15),
      inset 0 0 15px rgba(201, 168, 76, 0.05);
  }
  to {
    box-shadow:
      0 0 60px rgba(201, 168, 76, 0.35),
      inset 0 0 25px rgba(201, 168, 76, 0.1);
  }
}
.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--burgundy-mid),
    var(--burgundy-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gold);
  opacity: 0.6;
  font-family: "Cinzel", serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  gap: 6px;
}
.photo-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.8);
  top: 50%;
  left: 50%;
}
.orbit-dot:nth-child(1) {
  animation: orbit 8s linear infinite;
}
.orbit-dot:nth-child(2) {
  animation: orbit 8s linear infinite;
  animation-delay: -2.6s;
}
.orbit-dot:nth-child(3) {
  animation: orbit 8s linear infinite;
  animation-delay: -5.3s;
}
@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(calc(clamp(105px, 18.5vw, 157px)))
      rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(calc(clamp(105px, 18.5vw, 157px)))
      rotate(-360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}
.debutant-age {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 8px;
  color: var(--gold);
  opacity: 0.8;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.debutant-name {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1.1;
  text-shadow:
    0 0 40px rgba(201, 168, 76, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.debutant-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--gold-pale);
  opacity: 0.85;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 20px;
  width: fit-content;
}
.gold-divider span {
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.gold-divider::before,
.gold-divider::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.6rem;
}
.hero-date {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 5px;
  color: var(--cream);
  opacity: 0.7;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 2;
}
.scroll-indicator span {
  font-family: "Cinzel", serif;
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--gold);
}
.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  margin-top: -6px;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

section {
  position: relative;
}
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 30px;
}
.section-label {
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  opacity: 0.7;
  margin-bottom: 10px;
}
.section-title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--gold);
  text-align: center;
  font-weight: 400;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

/* ---- DETAILS SECTION ---- */
.details-section {
  background: linear-gradient(
    180deg,
    var(--burgundy-dark) 0%,
    #3d0e1a 50%,
    var(--burgundy-dark) 100%
  );
}
.details-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 25 L40 37 L46 57 L30 45 L14 57 L20 37 L5 25 L25 25 Z' fill='none' stroke='%23C9A84C' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E")
    repeat;
  pointer-events: none;
}
.details-card {
  background: linear-gradient(
    135deg,
    rgba(107, 26, 42, 0.5),
    rgba(74, 15, 28, 0.8)
  );
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.details-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.details-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.detail-item {
  text-align: center;
}
.detail-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
}
.detail-label {
  font-family: "Cinzel", serif;
  font-size: 0.55rem;
  letter-spacing: 5px;
  color: var(--gold);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.5;
}
.detail-value strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-pale);
}

/* ---- ABOUT SECTION ---- */
.about-section {
  background: var(--burgundy-dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 650px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
}
.about-photo-wrap {
  position: relative;
}
.about-photo-frame {
  position: relative;
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 10px;
}
.about-photo-frame::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 50px;
  height: 50px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.about-photo-frame::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 50px;
  height: 50px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(
    160deg,
    var(--burgundy-mid),
    var(--burgundy-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gold);
  opacity: 0.5;
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  gap: 8px;
}
.about-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--gold-pale);
  line-height: 1.5;
  margin-bottom: 24px;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  opacity: 0.9;
}
.about-body {
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.75;
  line-height: 1.9;
}

/* ---- GALLERY ---- */
.gallery-section {
  background: linear-gradient(
    180deg,
    var(--burgundy-dark),
    #3d0e1a 50%,
    var(--burgundy-dark)
  );
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item:nth-child(4) {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item:nth-child(4) {
    grid-column: span 2;
  }
}

/* Placeholder background */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    var(--angle, 135deg),
    var(--burgundy-mid),
    var(--burgundy-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.3;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

/* The overlay contains the actual image + caption + icon */
.gallery-overlay {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.gallery-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.4s ease;
}
.gallery-item:hover .gallery-overlay img {
  transform: scale(1.08);
}

/* Dark gradient at bottom for caption readability */
.gallery-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 5, 8, 0.85) 0%,
    rgba(26, 5, 8, 0.3) 45%,
    transparent 70%
  );
  pointer-events: none;
}

/* Center icon that appears on hover */
.gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.6);
  background: rgba(74, 15, 28, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 2;
}
.gallery-item:hover .gallery-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Caption at bottom - ALWAYS visible */
.gallery-caption-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption-wrap {
  transform: translateY(-4px);
}
.gallery-caption {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  color: var(--gold-pale);
  opacity: 0.95;
  margin-bottom: 4px;
}
.gallery-subcaption {
  font-family: "Raleway", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.5;
  text-transform: uppercase;
}

/* Corner frame accents on hover */
.gallery-item::before,
.gallery-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 3;
  pointer-events: none;
}
.gallery-item::before {
  top: 8px;
  left: 8px;
  border-width: 1.5px 0 0 1.5px;
}
.gallery-item::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1.5px 1.5px 0;
}
.gallery-item:hover::before,
.gallery-item:hover::after {
  opacity: 0.5;
  width: 30px;
  height: 30px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 2, 4, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(74, 15, 28, 0.8);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}
.lightbox-close:hover {
  background: rgba(107, 26, 42, 0.9);
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(74, 15, 28, 0.8);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}
.lightbox-nav:hover {
  background: rgba(107, 26, 42, 0.9);
}
.lightbox-nav.prev {
  left: 20px;
}
.lightbox-nav.next {
  right: 20px;
}
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.6;
  z-index: 10;
}
@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-nav.prev {
    left: 10px;
  }
  .lightbox-nav.next {
    right: 10px;
  }
}

/* ---- PROGRAM / TIMELINE ---- */
.program-section {
  background: var(--burgundy-dark);
}
.timeline {
  position: relative;
  margin-top: 40px;
  padding: 0 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}
@media (max-width: 600px) {
  .timeline::before {
    left: 20px;
  }
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 40px;
  position: relative;
}
@media (max-width: 600px) {
  .timeline::before {
    left: 16px;
  }
  .timeline-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 32px;
  }
  .timeline-left,
  .timeline-right {
    flex: 1;
    text-align: left !important;
    padding: 0 !important;
  }
  .timeline-left:empty,
  .timeline-right:empty {
    display: none;
  }
  .timeline-dot-col {
    flex-shrink: 0;
    width: 32px;
    display: flex;
    justify-content: center;
    order: -1;
  }
}
.timeline-left {
  text-align: right;
  padding-right: 24px;
  padding-top: 4px;
}
.timeline-right {
  padding-left: 24px;
  padding-top: 4px;
}
.timeline-dot-col {
  display: flex;
  justify-content: center;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
}
.timeline-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.timeline-event {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-desc {
  font-family: "Raleway", sans-serif;
  font-size: 0.78rem;
  color: var(--cream);
  opacity: 0.55;
  line-height: 1.6;
}
/* ===================== COTILLION DE HONOR ===================== */
/* ===================== COTILLION DE HONOR ===================== */
.cotillion-section {
  background: linear-gradient(
    180deg,
    var(--burgundy-dark) 0%,
    #2e0810 40%,
    #3d0e1a 70%,
    var(--burgundy-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.cotillion-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(
      ellipse 1.5px 1.5px at 30px 30px,
      var(--gold) 100%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 1px 1px at 15px 15px,
      var(--gold) 100%,
      transparent 100%
    );
  background-size: 60px 60px;
  pointer-events: none;
}

/* ---- BLOCK HEADER ---- */
.cotillion-block {
  margin-top: 60px;
  position: relative;
}

.cotillion-block-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.cotillion-block-header::before,
.cotillion-block-header::after {
  content: "— ✦ —";
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.35;
  letter-spacing: 6px;
  display: block;
  margin-bottom: 14px;
}

.cotillion-block-header::after {
  margin-top: 14px;
  margin-bottom: 0;
}

.cotillion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.45);
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.12),
    rgba(74, 15, 28, 0.3)
  );
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 auto 14px;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
  animation: sealPulse 3s ease-in-out infinite;
}

.cotillion-block-title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 400;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
  margin: 0;
}

.cotillion-block-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-style: italic;
  color: var(--gold-pale);
  opacity: 0.6;
  letter-spacing: 2px;
  margin: 6px 0 0;
}

/* ===================== COURT PAIRS ===================== */
.court-pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.court-pair-card {
  background: linear-gradient(
    135deg,
    rgba(107, 26, 42, 0.35),
    rgba(74, 15, 28, 0.5)
  );
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
}

.court-pair-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 168, 76, 0.4),
    transparent
  );
}

.court-pair-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: linear-gradient(
    135deg,
    rgba(107, 26, 42, 0.5),
    rgba(74, 15, 28, 0.65)
  );
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(201, 168, 76, 0.08);
}

/* Principal Pair */
.principal-pair {
  border-color: rgba(201, 168, 76, 0.45);
  background: linear-gradient(
    135deg,
    rgba(139, 32, 53, 0.45),
    rgba(74, 15, 28, 0.65)
  );
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  border-width: 2px;
}

.principal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: "Cinzel", serif;
  font-size: 0.5rem;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(74, 15, 28, 0.8);
  padding: 4px 10px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  text-transform: uppercase;
  border-radius: 3px;
}

/* Pair Photos Layout */
.pair-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
}

/* ---- COURT PHOTO (IMG) ---- */
.court-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 3px solid rgba(201, 168, 76, 0.35);
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.15),
    rgba(74, 15, 28, 0.4)
  );
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(201, 168, 76, 0.05);
  flex-shrink: 0;
}

.court-photo::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.25);
  pointer-events: none;
  z-index: 3;
}

.court-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.court-pair-card:hover .court-photo img {
  transform: scale(1.12);
}

.court-pair-card:hover .court-photo {
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 168, 76, 0.15),
    inset 0 0 20px rgba(201, 168, 76, 0.08);
}

/* ---- COURT PHOTO (EMOJI) ---- */
.court-photo.emoji-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.2),
    rgba(74, 15, 28, 0.5)
  );
}

.court-photo.emoji-photo span {
  font-size: 2.8rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  line-height: 1;
}

.court-pair-card:hover .court-photo.emoji-photo span {
  transform: scale(1.15);
}

/* Principal larger */
.court-photo.principal {
  width: 120px;
  height: 120px;
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(201, 168, 76, 0.1);
}

.court-photo.principal::before {
  inset: 4px;
  border-width: 1.5px;
  border-color: rgba(201, 168, 76, 0.4);
}

.court-photo.principal.emoji-photo span {
  font-size: 3.2rem;
}

/* Connector Ring */
.pair-connector-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  background: rgba(74, 15, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -12px;
  z-index: 3;
  position: relative;
  flex-shrink: 0;
}

.pair-connector-ring::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.8;
}

.pair-connector-ring.principal-ring {
  width: 40px;
  height: 40px;
  border-color: rgba(201, 168, 76, 0.6);
}

.pair-connector-ring.principal-ring::before {
  font-size: 0.85rem;
}

/* Pair Names */
.pair-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pair-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.9;
}

.pair-name.debutant-highlight {
  color: var(--gold-pale);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

.pair-amp {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.7;
}

/* ===================== PARTICIPANTS GRID ===================== */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.participants-grid.shots-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(107, 26, 42, 0.25),
    rgba(74, 15, 28, 0.4)
  );
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-left: 3px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.participant-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 168, 76, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.participant-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  border-left-color: rgba(201, 168, 76, 0.7);
  background: linear-gradient(
    135deg,
    rgba(107, 26, 42, 0.4),
    rgba(74, 15, 28, 0.55)
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.participant-card:hover::before {
  opacity: 1;
}

.participant-card.highlight-card {
  border-left-color: var(--gold);
  background: linear-gradient(
    135deg,
    rgba(139, 32, 53, 0.3),
    rgba(74, 15, 28, 0.5)
  );
  grid-column: 1 / -1;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

/* ===================== MULTI-PHOTO CARDS (FIXED DESIGN) ===================== */
.participant-card.multi-photo-card {
  padding-top: 24px;
}

.participant-photos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

/* 2 images layout */
.participant-photos-row.count-2 {
  gap: 10px;
}

/* 4 images layout */
.participant-photos-row.count-4 {
  gap: 6px;
  flex-wrap: wrap;
  max-width: 160px;
}

/* ---- PARTICIPANT PHOTO (IMG) ---- */
.participant-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2.5px solid rgba(201, 168, 76, 0.25);
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.1),
    rgba(74, 15, 28, 0.3)
  );
  margin-bottom: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.participant-photo::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  pointer-events: none;
  z-index: 2;
}

.participant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.participant-card:hover .participant-photo {
  border-color: rgba(201, 168, 76, 0.55);
  transform: scale(1.08);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(201, 168, 76, 0.12);
}

.participant-card:hover .participant-photo img {
  transform: scale(1.15);
}

/* Small photo for 2-image cards */
.participant-photo.small {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
}

/* Tiny photo for 4-image cards */
.participant-photo.tiny {
  width: 52px;
  height: 52px;
  margin-bottom: 0;
}

/* Multi-photo hover effects */
.participant-card.multi-photo-card:hover .participant-photo {
  transform: scale(1.05);
}

.participant-card.multi-photo-card:hover .participant-photo.small {
  transform: scale(1.08);
}

.participant-card.multi-photo-card:hover .participant-photo.tiny {
  transform: scale(1.1);
}

/* ---- PARTICIPANT PHOTO (EMOJI) ---- */
.participant-photo.emoji-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.18),
    rgba(74, 15, 28, 0.45)
  );
}

.participant-photo.emoji-photo span {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  line-height: 1;
}

.participant-card:hover .participant-photo.emoji-photo span {
  transform: scale(1.2);
}

.participant-photo.emoji-photo.small span {
  font-size: 1.8rem;
}

.participant-photo.emoji-photo.tiny span {
  font-size: 1.4rem;
}

.participant-card.highlight-card .participant-photo {
  border-color: rgba(201, 168, 76, 0.45);
  border-width: 3px;
}

/* Connector for multi-photo cards */
.participant-photos-row.count-2::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.6rem;
  opacity: 0.7;
  background: rgba(74, 15, 28, 0.8);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* Participant Number */
.participant-num {
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 6px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.participant-card.highlight-card .participant-num {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.4);
}

/* Participant Name */
.participant-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: var(--cream);
  opacity: 0.85;
  line-height: 1.4;
  font-weight: 500;
}

/* Wide card for 4 images */
.participant-card.wide-card {
  grid-column: span 1;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .court-pairs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .court-photo {
    width: 85px;
    height: 85px;
    border-width: 2.5px;
  }

  .court-photo.principal {
    width: 100px;
    height: 100px;
  }

  .court-photo.emoji-photo span {
    font-size: 2.4rem;
  }

  .court-photo.principal.emoji-photo span {
    font-size: 2.8rem;
  }

  .pair-connector-ring {
    width: 32px;
    height: 32px;
    margin: 0 -10px;
  }

  .participants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

  .participant-photo {
    width: 60px;
    height: 60px;
  }

  .participant-photo.small {
    width: 56px;
    height: 56px;
  }

  .participant-photo.tiny {
    width: 48px;
    height: 48px;
  }

  .participant-photo.emoji-photo span {
    font-size: 1.8rem;
  }

  .participant-photo.emoji-photo.small span {
    font-size: 1.6rem;
  }

  .participant-photo.emoji-photo.tiny span {
    font-size: 1.3rem;
  }

  .participant-card {
    padding: 16px 10px 12px;
  }

  .participant-card.multi-photo-card {
    padding-top: 20px;
  }

  .participant-photos-row.count-4 {
    max-width: 120px;
    gap: 5px;
  }

  .principal-pair {
    grid-column: 1 / -1;
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .court-pairs-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .court-photo {
    width: 90px;
    height: 90px;
  }

  .court-photo.principal {
    width: 105px;
    height: 105px;
  }

  .court-photo.emoji-photo span {
    font-size: 2.6rem;
  }

  .pair-connector-ring {
    width: 30px;
    height: 30px;
    margin: 0 -8px;
  }

  .participants-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .participant-photo {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }

  .participant-photo.small {
    width: 50px;
    height: 50px;
  }

  .participant-photo.tiny {
    width: 42px;
    height: 42px;
  }

  .participant-photo.emoji-photo span {
    font-size: 1.6rem;
  }

  .participant-photo.emoji-photo.small span {
    font-size: 1.4rem;
  }

  .participant-photo.emoji-photo.tiny span {
    font-size: 1.1rem;
  }

  .participant-name {
    font-size: 0.78rem;
  }

  .participant-num {
    width: 22px;
    height: 22px;
    font-size: 0.52rem;
  }

  .cotillion-block {
    margin-top: 40px;
  }

  .participant-photos-row.count-4 {
    max-width: 110px;
    gap: 4px;
  }

  .participant-photos-row.count-2::after {
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .participants-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .participants-grid.shots-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .court-pairs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .principal-pair {
    grid-column: 2 / 3;
  }

  .court-photo {
    width: 105px;
    height: 105px;
  }

  .court-photo.principal {
    width: 125px;
    height: 125px;
  }

  .participant-photo.small {
    width: 68px;
    height: 68px;
  }

  .participant-photo.tiny {
    width: 56px;
    height: 56px;
  }

  .participant-photos-row.count-4 {
    max-width: 180px;
  }
}

/* ---- LOCATION ---- */
.location-section {
  background: linear-gradient(180deg, var(--burgundy-dark), #3d0e1a);
  text-align: center;
}
.venue-card {
  margin-top: 40px;
  background: linear-gradient(
    135deg,
    rgba(107, 26, 42, 0.4),
    rgba(74, 15, 28, 0.7)
  );
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 50px 40px;
  position: relative;
}
.venue-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.venue-name {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 12px;
}
.venue-address {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 24px;
}
.map-btn {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.5);
  padding: 12px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.map-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

/* ---- FOOTER ---- */
footer {
  background: var(--burgundy-dark);
  text-align: center;
  padding: 60px 30px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}
footer .footer-name {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
}
footer p {
  font-family: "Raleway", sans-serif;
  font-size: 0.75rem;
  color: var(--cream);
  opacity: 0.4;
  letter-spacing: 2px;
}
.footer-ornament {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
  margin: 16px 0;
  letter-spacing: 10px;
}

/* ---- MUSIC TOGGLE ---- */
#music-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(74, 15, 28, 0.85);
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}
#music-btn:hover {
  background: rgba(107, 26, 42, 0.9);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
  transform: scale(1.1);
}
#music-btn.muted {
  opacity: 0.5;
}

/* ---- SCROLL FADE ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MISC FIXES ---- */
.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.color-motif {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.color-dot.burgundy {
  background: #f2efe8;
}
.color-dot.gold {
  background: #d7cec5;
}
.color-dot.black {
  background: #d3b698;
}
.color-dot.red {
  background: #ae8e7f;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
