/* Wedding invitation — Rushikesh & Prajakta */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Great+Vibes&family=Cinzel:wght@400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600&family=Noto+Sans+Telugu:wght@400;500;600&display=swap");

:root {
  --background: 38 40% 96%;
  --foreground: 25 30% 18%;
  --primary: 348 60% 42%;
  --secondary: 95 18% 70%;
  --muted-foreground: 25 15% 40%;
  --sage: 95 22% 65%;
  --sage-deep: 95 25% 45%;
  --sage-soft: 95 30% 88%;
  --cream: 38 50% 95%;
  --gold: 36 55% 55%;
  --gold-soft: 36 60% 75%;
  --rose: 348 60% 50%;
  --rose-deep: 348 65% 35%;
  --ink: 25 30% 18%;
  --gradient-sage: linear-gradient(135deg, hsl(95 30% 78%), hsl(95 22% 62%));
  --gradient-gold: linear-gradient(135deg, hsl(36 55% 60%), hsl(36 45% 45%));
  --shadow-elegant: 0 20px 60px -20px hsl(95 25% 25% / 0.25);
  --shadow-soft: 0 8px 30px -10px hsl(25 30% 18% / 0.15);
  --shadow-gold: 0 10px 40px -10px hsl(36 55% 45% / 0.4);
  --transition-elegant: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
}

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

.font-cinzel {
  font-family: "Cinzel", serif;
  letter-spacing: 0.15em;
}

.font-serif-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.text-rose-deep {
  color: hsl(var(--rose-deep));
}

.text-rose {
  color: hsl(var(--rose));
}

.text-gold {
  color: hsl(var(--gold));
}

.text-sage-deep {
  color: hsl(var(--sage-deep));
}

.text-sage-deep-muted {
  color: hsl(var(--sage-deep) / 0.8);
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.italic {
  font-style: italic;
}

.text-gold-soft {
  color: hsl(var(--gold-soft));
}

.text-muted-fg {
  color: hsl(var(--muted-foreground));
}

.text-foreground-80 {
  color: hsl(var(--foreground) / 0.8);
}

.hero-parents {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 576px) {
  .hero-parents {
    font-size: 1.125rem;
    line-height: 1.65;
  }
}

.bg-cream {
  background-color: hsl(var(--cream));
}

.bg-sage-soft {
  background-color: hsl(var(--sage-soft));
}

.bg-secondary-sage {
  background-color: #e4edde;
}

.border-gold-soft {
  border-color: hsl(var(--gold-soft)) !important;
}

.gradient-gold {
  background: var(--gradient-gold);
}

.shadow-elegant {
  box-shadow: var(--shadow-elegant);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-gold {
  box-shadow: var(--shadow-gold);
}

/* Section wrapper with corner florals */
.section-wrap {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
}

@media (min-width: 576px) {
  .section-wrap.section-tall {
    padding: 6rem 1.5rem;
  }
}

.section-florals {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-florals span {
  position: absolute;
  opacity: 0.2;
  user-select: none;
}

.section-florals .f1 { top: 1.5rem; left: 1rem; font-size: 2.25rem; }
.section-florals .f2 { top: 3rem; right: 1.5rem; font-size: 1.75rem; }
.section-florals .f3 { bottom: 2.5rem; left: 2.5rem; font-size: 1.75rem; }
.section-florals .f4 { bottom: 1.5rem; right: 1rem; font-size: 2.25rem; }

.section-inner {
  position: relative;
  z-index: 1;
}

/* Decorative divider */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.divider-ornament span.line {
  height: 1px;
  width: 4rem;
  background: hsl(var(--gold-soft));
}

.divider-ornament span.icon {
  color: hsl(var(--gold));
  font-size: 1.1rem;
}

.divider-ornament.light span.line {
  background: hsl(var(--gold-soft) / 0.4);
}

/* Floating petals */
.petals-layer {
  pointer-events: none;
  overflow: hidden;
}

#envelope-screen .envelope-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#main-content .main-petals {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.animate-float-petal,
.petal {
  position: absolute;
  top: -10vh;
  animation: float-petal linear infinite;
  filter: drop-shadow(0 2px 4px hsl(var(--ink) / 0.1));
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

@keyframes float-petal {
  0% {
    transform: translateY(-10vh) translate(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) translate(40px) rotate(360deg);
    opacity: 0;
  }
}

/* Envelope screen */
#envelope-screen {
  --envelope-sage: hsl(95 28% 42%);
  --envelope-sage-light: hsl(95 32% 72%);
  --envelope-cream: hsl(38 48% 96%);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  /* Same as https://rushikesh-prajakta.invitationmedia.in/ envelope screen */
  background: linear-gradient(135deg, hsl(95 30% 80%), hsl(95 22% 68%));
  transition: opacity 0.7s var(--transition-elegant), visibility 0.7s;
}

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

.envelope-screen__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.envelope-screen__bg::after {
  content: none;
}

.envelope-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.envelope-orb--1 {
  width:  min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  left: -15%;
  background: hsl(38 55% 92%);
}

.envelope-orb--2 {
  width:  min(360px, 60vw);
  height: min(360px, 60vw);
  bottom: -8%;
  right: -12%;
  background: hsl(348 45% 75% / 0.5);
}

.envelope-orb--3 {
  width: 200px;
  height: 200px;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: hsl(36 50% 88%);
  opacity: 0.7;
}

/* Corner floating florals — layer between bg and content */
.envelope-screen__florals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.envelope-corner-floral {
  position: absolute;
  user-select: none;
  opacity: 0.5;
  filter: drop-shadow(0 2px 8px hsl(25 30% 18% / 0.12));
  line-height: 1;
  will-change: transform;
}

.envelope-corner-floral--tl {
  top: clamp(1rem, 4vh, 2rem);
  left: clamp(0.75rem, 4vw, 1.75rem);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

.envelope-corner-floral--tr {
  top: clamp(1.25rem, 5vh, 2.5rem);
  right: clamp(0.75rem, 4vw, 1.75rem);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
}

.envelope-corner-floral--bl {
  bottom: clamp(1.5rem, 5vh, 2.5rem);
  left: clamp(0.75rem, 4vw, 1.75rem);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.envelope-corner-floral--br {
  bottom: clamp(1rem, 4vh, 2rem);
  right: clamp(0.75rem, 4vw, 1.75rem);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

.envelope-corner-floral--ml {
  top: 38%;
  left: clamp(0.5rem, 3vw, 1rem);
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  opacity: 0.38;
}

.envelope-corner-floral--mr {
  top: 55%;
  right: clamp(0.5rem, 3vw, 1rem);
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  opacity: 0.38;
}

#envelope-screen .animate-drift {
  animation: envelope-drift 6s ease-in-out infinite;
}

.drift-delay-1 { animation-delay: 1s; }
.drift-delay-2 { animation-delay: 2s; }
.drift-delay-3 { animation-delay: 0.5s; }
.drift-delay-4 { animation-delay: 1.5s; }
.drift-delay-5 { animation-delay: 2.5s; }

@keyframes envelope-drift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(10deg);
  }
}

.envelope-screen__content {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  width: 100%;
  max-width: min(72rem, 100%);
  min-height: 100dvh;
  padding: clamp(1rem, 4vh, 2rem) 1.5rem clamp(1.25rem, 3vh, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vh, 1.25rem);
  box-sizing: border-box;
}

/* Groom | envelope | bride */
.envelope-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(0.35rem, 2.5vw, 1.75rem);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 56rem;
}

.envelope-showcase > .envelope-platform,
.envelope-showcase > .envelope-btn {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.envelope-showcase > .envelope-btn {
  z-index: 5;
  align-self: center;
}

.envelope-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 100%;
  max-width: clamp(5.5rem, 20vw, 11.5rem);
  padding-bottom: 0.35rem;
  opacity: 0;
  will-change: transform, opacity;
}

.envelope-portrait--groom {
  grid-column: 1;
  justify-self: end;
  animation: portrait-mingle-left 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.envelope-portrait--bride {
  grid-column: 3;
  justify-self: start;
  animation: portrait-mingle-right 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes portrait-mingle-left {
  0% {
    opacity: 0;
    transform: translateX(calc(-55vw - 30%)) scale(0.82) rotate(-4deg);
  }
  70% {
    opacity: 1;
    transform: translateX(6%) scale(1.02) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes portrait-mingle-right {
  0% {
    opacity: 0;
    transform: translateX(calc(55vw + 30%)) scale(0.82) rotate(4deg);
  }
  70% {
    opacity: 1;
    transform: translateX(-6%) scale(1.02) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

.envelope-showcase.is-opening .envelope-portrait--groom {
  animation: portrait-exit-left 0.55s ease-in forwards;
}

.envelope-showcase.is-opening .envelope-portrait--bride {
  animation: portrait-exit-right 0.55s ease-in forwards;
}

@keyframes portrait-exit-left {
  to {
    opacity: 0;
    transform: translateX(-28%) scale(0.92);
  }
}

@keyframes portrait-exit-right {
  to {
    opacity: 0;
    transform: translateX(28%) scale(0.92);
  }
}

.envelope-portrait__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 4px;
  border-radius: 1rem;
  background: linear-gradient(
    165deg,
    hsl(var(--gold-soft)),
    hsl(var(--gold)),
    hsl(36 40% 46%)
  );
  box-shadow:
    0 12px 32px -14px hsl(var(--sage-deep) / 0.28),
    inset 0 1px 0 hsl(0 0% 100% / 0.45);
}

.envelope-portrait__frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 0.82rem;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px hsl(var(--cream) / 0.55);
  z-index: 1;
}

.envelope-portrait__frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.82rem;
  object-fit: cover;
  background: hsl(var(--cream));
}

.envelope-portrait--groom .envelope-portrait__frame {
  box-shadow: 0 12px 32px -14px hsl(var(--sage-deep) / 0.32);
}

.envelope-portrait--bride .envelope-portrait__frame {
  box-shadow: 0 12px 32px -14px hsl(var(--rose-deep) / 0.22);
}

.envelope-portrait__name {
  margin: 0.55rem 0 0;
  font-size: clamp(0.5rem, 1.8vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--sage-deep));
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  animation: mingle-name-in 0.5s ease-out 1.15s forwards;
}

@keyframes mingle-name-in {
  to {
    opacity: 1;
  }
}

.envelope-portrait--bride .envelope-portrait__name {
  color: hsl(var(--rose-deep));
}

.envelope-platform {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 78vw);
  height: 28px;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    hsl(25 30% 18% / 0.22) 0%,
    transparent 72%
  );
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  animation: envelope-platform-in 0.6s ease-out 0.85s forwards;
}

@keyframes envelope-platform-in {
  to {
    opacity: 1;
  }
}

.envelope-showcase > .envelope-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: block;
  transition: transform 0.45s var(--transition-elegant);
  perspective: 1200px;
  opacity: 0;
  transform: scale(0.55) translateY(24px);
  animation:
    envelope-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards,
    envelope-float 4s ease-in-out 1.65s infinite;
}

@keyframes envelope-enter {
  0% {
    opacity: 0;
    transform: scale(0.55) translateY(24px);
  }
  65% {
    opacity: 1;
    transform: scale(1.06) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.envelope-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: block;
  transition: transform 0.45s var(--transition-elegant);
  perspective: 1200px;
}

.envelope-showcase > .envelope-btn:hover,
.envelope-showcase > .envelope-btn:not(.opening):hover {
  transform: scale(1.04) translateY(-6px);
  animation-play-state: paused;
}

.envelope-btn:focus-visible {
  outline: 2px solid hsl(var(--gold));
  outline-offset: 8px;
  border-radius: 8px;
}

.envelope-btn.opening {
  animation: envelope-open 1s var(--transition-elegant) forwards;
}

@keyframes envelope-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes envelope-open {
  0% {
    transform: scale(1) rotateX(0deg);
  }
  50% {
    transform: scale(1.05) rotateX(-12deg);
  }
  100% {
    transform: scale(1.35) rotateX(-85deg);
    opacity: 0;
  }
}

.envelope-tap-hint {
  position: absolute;
  inset: -12px;
  border-radius: 1rem;
  animation: tap-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tap-pulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.envelope-img {
  display: block;
  max-width: 100%;
  transition: filter 0.3s;
}

.w-\[280px\] {
  width: min(280px, calc(100vw - 3rem));
}

.h-auto {
  height: auto;
}

.drop-shadow-2xl {
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.envelope-btn:hover .envelope-img {
  filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.2));
}

@media (min-width: 640px) {
  .sm\:w-\[360px\] {
    width: min(360px, calc(100vw - 3rem));
  }
}

@media (min-width: 768px) {
  .md\:w-\[420px\] {
    width: min(420px, calc(100vw - 3rem));
  }
}

@media (max-height: 720px) {
  .envelope-portrait {
    max-width: clamp(4.5rem, 16vw, 8rem);
  }

  .envelope-showcase {
    gap: 0.35rem;
  }

  .envelope-invite-text {
    margin-top: 0.5rem;
  }
}

.envelope-seal {
  position: absolute;
  left: 51%;
  top: 51%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.seal-ring {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  box-shadow:
    0 0 0 3px hsl(36 45% 40% / 0.35),
    var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: seal-shimmer 3s ease-in-out infinite;
}

@media (min-width: 576px) {
  .seal-ring {
    width: 5.75rem;
    height: 5.75rem;
  }
}

.seal-inner {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: hsl(38 50% 98%);
  text-shadow: 0 1px 1px hsl(25 30% 18% / 0.2);
}

@media (min-width: 576px) {
  .seal-inner {
    font-size: 0.72rem;
  }
}

@keyframes seal-shimmer {
  0%,
  100% {
    box-shadow:
      0 0 0 3px hsl(36 45% 40% / 0.35),
      0 8px 28px hsl(36 55% 35% / 0.35);
  }
  50% {
    box-shadow:
      0 0 0 4px hsl(36 45% 40% / 0.45),
      0 12px 36px hsl(36 55% 35% / 0.45);
  }
}

/* Invite text — reference: mt-10 text-center animate-fade-up delay-300 */
.envelope-invite-text {
  position: relative;
  z-index: 4;
  width: 100%;
  flex-shrink: 0;
}

.envelope-ref-title {
  font-size: 2.25rem;
  line-height: 1.1;
  margin: 0;
}

@media (min-width: 576px) {
  .envelope-ref-title {
    font-size: 3rem;
  }
}

.envelope-invite-text p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  margin: 0;
  color: #3c2c20;
}

.envelope-invite-text.fade-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Butterflies — visible after invitation opens */
.butterfly-path {
  position: fixed;
  top: 20%;
  left: -60px;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  animation: butterfly-fly 18s linear infinite;
}

.butterfly-path.visible {
  opacity: 1;
}

.butterfly-wings {
  display: inline-block;
  animation: butterfly-flap 0.25s ease-in-out infinite;
}

@keyframes butterfly-fly {
  0% {
    transform: translate(0, 0) rotate(5deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw + 120px), 40vh) rotate(-10deg);
    opacity: 0;
  }
}

@keyframes butterfly-flap {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.85);
  }
}

#main-content {
  opacity: 0;
  pointer-events: none;
}

#main-content.visible {
  opacity: 1;
  pointer-events: auto;
  animation: fade-in 1.2s ease-out both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fade-up 1s var(--transition-elegant) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .envelope-portrait,
  .envelope-portrait--groom,
  .envelope-portrait--bride {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .envelope-platform,
  .envelope-showcase > .envelope-btn,
  .envelope-portrait__name {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .envelope-showcase > .envelope-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .couple-heart {
    animation: none;
    transform: translateY(0.06em);
  }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
}

@media (min-width: 576px) {
  .hero-content {
    padding-top: 5rem;
  }
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.5rem;
  padding: 0;
  text-align: center;
}

.hero-brand__name {
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1.05;
  color: hsl(var(--rose-deep));
  text-shadow: 0 2px 8px hsl(var(--cream) / 0.85);
}

.hero-brand__tag {
  margin: 0;
  padding-left: 0.3em;
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: hsl(var(--rose));
  text-shadow: 0 1px 0 hsl(var(--cream) / 0.9);
}

.hero-brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 11rem;
  margin: 0 auto 1.15rem;
}

.hero-brand-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.55), transparent);
}

.hero-brand-divider .dot {
  flex-shrink: 0;
  font-size: 0.6rem;
  color: hsl(var(--gold));
  line-height: 1;
}

@media (max-width: 576px) {
  .hero-brand__name {
    font-size: clamp(2rem, 11vw, 2.5rem);
  }

  .hero-brand__tag {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
    font-size: clamp(0.52rem, 2.6vw, 0.62rem);
  }

  .hero-brand-divider {
    max-width: 9rem;
    margin-bottom: 0.9rem;
  }
}

.couple-name {
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  line-height: 1;
  color: hsl(var(--rose));
}

/* Scratch card */
.scratch-card {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 5px;
  border-radius: 1.35rem;
  background: linear-gradient(
    145deg,
    hsl(var(--gold-soft)) 0%,
    hsl(var(--gold)) 45%,
    hsl(36 45% 48%) 100%
  );
  box-shadow:
    var(--shadow-gold),
    0 12px 40px -16px hsl(var(--sage-deep) / 0.35);
  user-select: none;
}

.scratch-card__surface {
  position: relative;
  width: 100%;
  min-height: clamp(10.5rem, 32vw, 12.5rem);
  height: clamp(10.5rem, 32vw, 12.5rem);
  border-radius: 1.1rem;
  overflow: hidden;
  background: hsl(var(--cream));
  box-shadow: inset 0 0 0 1px hsl(var(--gold-soft) / 0.65);
}

.scratch-card__ornament {
  position: absolute;
  z-index: 4;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 2px hsl(var(--cream) / 0.8));
}

.scratch-card__ornament--tl {
  top: 0.55rem;
  left: 0.65rem;
}

.scratch-card__ornament--tr {
  top: 0.55rem;
  right: 0.65rem;
}

.scratch-card__ornament--bl {
  bottom: 0.55rem;
  left: 0.65rem;
}

.scratch-card__ornament--br {
  bottom: 0.55rem;
  right: 0.65rem;
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, hsl(var(--gold-soft) / 0.22), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, hsl(var(--rose) / 0.06), transparent 65%),
    hsl(var(--cream));
}

.scratch-reveal__eyebrow {
  margin: 0;
  font-size: clamp(0.52rem, 2.2vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: hsl(var(--sage-deep));
  white-space: nowrap;
}

.scratch-reveal__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 9rem;
  margin: 0.1rem 0;
}

.scratch-reveal__divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.5), transparent);
}

.scratch-reveal__divider .dot {
  flex-shrink: 0;
  font-size: 0.5rem;
  color: hsl(var(--gold));
  line-height: 1;
}

.scratch-reveal .save-date {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.1rem, 8vw, 2.85rem);
  line-height: 1.05;
  color: hsl(var(--rose-deep));
  margin: 0;
  text-shadow: 0 2px 12px hsl(var(--rose-deep) / 0.08);
}

.scratch-reveal__names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  width: 100%;
  margin: 0.15rem 0 0.25rem !important;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: hsl(var(--rose));
  line-height: 1.1;
  text-align: center;
}

.scratch-reveal__name {
  white-space: nowrap;
}

.couple-heart {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  color: hsl(var(--rose-deep));
  text-shadow: 0 1px 8px hsl(var(--rose-deep) / 0.2);
  transform: translateY(0.06em);
  transform-origin: center;
  animation: couple-heartbeat 1.2s ease-in-out infinite;
}

.scratch-reveal__names .couple-heart {
  font-size: clamp(1rem, 3.8vw, 1.35rem);
}

@keyframes couple-heartbeat {
  0%,
  100% {
    transform: translateY(0.06em) scale(1);
  }
  12% {
    transform: translateY(0.06em) scale(1.22);
  }
  24% {
    transform: translateY(0.06em) scale(1);
  }
  36% {
    transform: translateY(0.06em) scale(1.14);
  }
  48% {
    transform: translateY(0.06em) scale(1);
  }
}

.scratch-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0 1rem;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.scratch-hint__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsl(25 30% 18% / 0.12);
  color: hsl(25 35% 22% / 0.85);
  animation: scratch-hint-bob 2s ease-in-out infinite;
}

@keyframes scratch-hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.scratch-hint__text {
  font-family: "Cinzel", serif;
  font-size: clamp(0.58rem, 2.3vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: hsl(25 35% 20% / 0.88);
  text-shadow:
    0 1px 0 hsl(0 0% 100% / 0.5),
    0 0 20px hsl(0 0% 100% / 0.35);
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.2);
  backdrop-filter: blur(2px);
}

.scratch-hint.hidden {
  opacity: 0;
  visibility: hidden;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.scratch-canvas.hidden {
  display: none;
}

.scratch-card.is-revealed .scratch-card__surface {
  box-shadow: inset 0 0 0 1px hsl(var(--gold-soft) / 0.8);
}

.scratch-card.is-revealed .scratch-card__ornament {
  opacity: 0.75;
}

/* Countdown */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 576px) {
  .countdown-grid {
    gap: 1.5rem;
  }
}

.countdown-box {
  min-width: 68px;
  text-align: center;
}

@media (min-width: 576px) {
  .countdown-box {
    min-width: 90px;
  }
}

.countdown-value {
  aspect-ratio: 1;
  border-radius: 1rem;
  background: linear-gradient(165deg, hsl(var(--cream)), hsl(38 45% 92%));
  border: 1px solid hsl(var(--gold-soft) / 0.85);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 hsl(0 0% 100% / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  color: hsl(var(--rose-deep));
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  margin-top: 0.5rem;
  font-family: "Cinzel", serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--sage-deep));
}

.countdown-hidden {
  opacity: 0;
  transform: translateY(1.25rem);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.75s var(--transition-elegant),
    transform 0.75s var(--transition-elegant),
    max-height 0.75s;
}

.countdown-hidden.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 220px;
  pointer-events: auto;
  margin-top: 0.25rem;
}

/* Event cards */
.event-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--gold-soft));
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--transition-elegant), box-shadow 0.5s;
  isolation: isolate;
  min-height: 320px;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.event-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
}

.event-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
}

.event-card-grid {
  display: grid;
  gap: 1rem;
  align-items: end;
  padding: 1.5rem;
  min-height: 320px;
}

@media (min-width: 576px) {
  .event-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    min-height: 340px;
  }
}

.event-couple-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  order: 2;
}

@media (min-width: 576px) {
  .event-card-grid.image-left .event-couple-wrap {
    order: 1;
  }
  .event-card-grid.image-left .event-info {
    order: 2;
  }
  .event-card-grid.image-right .event-couple-wrap {
    order: 2;
  }
  .event-card-grid.image-right .event-info {
    order: 1;
  }
}

.event-couple-img {
  max-width: 260px;
  width: 100%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.35));
}

.event-couple-img--muhurtham {
  max-width: 320px;
  max-height: 420px;
}

.event-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f8fafc;
  order: 1;
}

.event-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.75rem, 6vw, 3rem);
  color: #f8fafc;
  line-height: 1.1;
  margin: 0;
}

.event-desc {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 1rem;
  color: rgb(241 245 249 / 0.9);
}

.event-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}


.event-divider .line {
  height: 1px;
  width: 2.5rem;
  background: hsl(var(--gold-soft) / 0.6);
}

.event-divider .dot {
  color: hsl(var(--gold-soft));
}

.event-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: center;
}

.event-details .label {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  color: hsl(var(--gold-soft));
  letter-spacing: 0.05em;
}

.event-details .value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.95rem, 3.2vw, 1.2rem);
  color: #f8fafc;
  margin-top: 0.15rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Families section */
.families-section {
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.family-card {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  background: hsl(var(--cream) / 0.92);
  border: 1px solid hsl(var(--gold-soft) / 0.85);
  border-radius: 1.25rem;
  box-shadow:
    var(--shadow-elegant),
    inset 0 1px 0 hsl(0 0% 100% / 0.65);
}

.family-card .card-title {
  margin: 0;
  font-family: var(--font-cinzel), "Cinzel", serif;
  font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--sage-deep));
  line-height: 1.5;
}

.family-card .name {
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.85);
}

.family-card__couple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}

.family-card .couple-heart {
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  color: hsl(var(--rose));
}

body.lang-hi .family-card .card-title,
body.lang-te .family-card .card-title {
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
}

body.lang-hi .family-card__couple [data-i18n],
body.lang-te .family-card__couple [data-i18n] {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", Georgia, serif;
  font-style: normal;
}

body.lang-te .family-card__couple [data-i18n] {
  font-family: "Noto Sans Telugu", "Cormorant Garamond", Georgia, serif;
}

/* Families invite footer */
.families-invite {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid hsl(var(--gold-soft) / 0.45);
  text-align: center;
}

.families-invite__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 12rem;
  margin: 0 auto 1rem;
}

.families-invite__ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.5), transparent);
}

.families-invite__ornament .icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.75;
}

.families-invite__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--sage-deep));
}

.families-invite .divider-ornament {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.families-invite__names {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.55;
  color: hsl(var(--foreground));
  margin: 0;
}

.families-invite__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95em;
  color: hsl(var(--foreground) / 0.78);
}

/* Venue map */
.venue-map {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--gold-soft));
  box-shadow: var(--shadow-elegant);
}

.venue-map iframe {
  width: 100%;
  height: clamp(220px, 50vh, 360px);
  border: 0;
  display: block;
}

.btn-directions {
  background: var(--gradient-gold);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-directions:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--cream));
  padding: 4rem 1.5rem;
  text-align: center;
}

.site-footer .couple-footer {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  color: hsl(var(--cream));
  margin: 0.75rem 0 0;
  line-height: 1.2;
}

.couple-footer__couple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.site-footer .couple-footer .couple-heart {
  font-size: clamp(1.35rem, 5vw, 2rem);
  color: hsl(var(--gold-soft));
  text-shadow: 0 1px 14px hsl(var(--gold) / 0.45);
}

body.lang-hi .couple-footer__couple [data-i18n],
body.lang-te .couple-footer__couple [data-i18n] {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 6.5vw, 2.85rem);
}

body.lang-te .couple-footer__couple [data-i18n] {
  font-family: "Noto Sans Telugu", "Cormorant Garamond", Georgia, serif;
}

/* Footer schedule */
.footer-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.footer-schedule__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  min-height: 7.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid hsl(var(--gold-soft) / 0.28);
  border-radius: 0.5rem;
  background: hsl(var(--cream) / 0.04);
  box-shadow: 0 4px 24px -8px hsl(0 0% 0% / 0.35);
  transition: border-color 0.25s var(--transition-elegant), transform 0.25s var(--transition-elegant);
  box-sizing: border-box;
}

.footer-schedule__item:hover {
  border-color: hsl(var(--gold-soft) / 0.55);
  transform: translateY(-2px);
}

.footer-schedule__item--highlight {
  border-color: hsl(var(--gold-soft) / 0.45);
  background: hsl(var(--cream) / 0.06);
  box-shadow: 0 4px 24px -8px hsl(0 0% 0% / 0.35);
}

.footer-schedule__date {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--gold-soft));
  line-height: 1.3;
  text-align: center;
}

.footer-schedule__dot {
  display: none;
}

.footer-schedule__event {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 500;
  font-style: italic;
  color: hsl(var(--cream));
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.footer-schedule__item--highlight .footer-schedule__event {
  font-style: normal;
  font-weight: 600;
}

.footer-schedule__time {
  display: block;
  margin-top: 0.25rem;
  font-family: "Cinzel", serif;
  font-size: clamp(0.6rem, 2.2vw, 0.7rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: hsl(var(--gold-soft));
  line-height: 1.35;
}

@media (min-width: 576px) {
  .footer-schedule {
    gap: 1rem;
    padding: 0 1rem;
  }

  .footer-schedule__item {
    min-height: 8rem;
    padding: 1.1rem 0.85rem;
  }

  .footer-schedule__date {
    letter-spacing: 0.22em;
  }
}

@media (min-width: 768px) {
  .footer-schedule {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .footer-schedule__item {
    min-height: 8.25rem;
    padding: 1.15rem 1rem;
  }

  .footer-schedule__event {
    font-size: 1.2rem;
  }
}

@media (min-width: 992px) {
  .footer-schedule__item {
    min-height: 8.5rem;
    padding: 1.15rem 1.15rem 1.2rem;
  }

  .footer-schedule__event {
    font-size: 1.25rem;
  }
}

/* Site controls — language + music */
.site-controls {
  position: fixed;
  bottom: max(1.35rem, calc(env(safe-area-inset-bottom, 0px) + 0.65rem));
  right: max(1.35rem, calc(env(safe-area-inset-right, 0px) + 0.65rem));
  z-index: 220;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.site-controls.visible {
  display: flex;
}

.language-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: hsl(var(--cream) / 0.94);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px hsl(var(--sage-deep) / 0.16),
    inset 0 0 0 1px hsl(var(--gold-soft) / 0.55);
}

.lang-btn {
  min-width: 2.65rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--sage-deep));
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.2s var(--transition-elegant);
}

.lang-btn:hover {
  background: hsl(var(--sage-soft) / 0.45);
  color: hsl(var(--rose-deep));
}

.lang-btn.is-active {
  background: linear-gradient(145deg, hsl(var(--gold-soft)), hsl(var(--gold) / 0.9));
  border-color: hsl(var(--gold) / 0.45);
  color: hsl(var(--rose-deep));
  box-shadow: 0 2px 8px hsl(var(--gold) / 0.25);
}

.lang-btn:focus-visible {
  outline: 2px solid hsl(var(--gold));
  outline-offset: 2px;
}

body.lang-hi [data-i18n],
body.lang-hi [data-i18n-html] {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", Georgia, serif;
}

body.lang-te [data-i18n],
body.lang-te [data-i18n-html] {
  font-family: "Noto Sans Telugu", "Cormorant Garamond", Georgia, serif;
}

/* Headings — override script/display fonts when translated */
body.lang-hi .section-heading[data-i18n],
body.lang-hi .event-title[data-i18n],
body.lang-hi .envelope-ref-title[data-i18n],
body.lang-hi .section-eyebrow[data-i18n],
body.lang-hi .envelope-portrait__name[data-i18n],
body.lang-hi .family-card .card-title[data-i18n],
body.lang-hi .scratch-reveal__eyebrow[data-i18n],
body.lang-hi .countdown-label[data-i18n],
body.lang-hi .save-date[data-i18n] {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.04em;
}

body.lang-te .section-heading[data-i18n],
body.lang-te .event-title[data-i18n],
body.lang-te .envelope-ref-title[data-i18n],
body.lang-te .section-eyebrow[data-i18n],
body.lang-te .envelope-portrait__name[data-i18n],
body.lang-te .family-card .card-title[data-i18n],
body.lang-te .scratch-reveal__eyebrow[data-i18n],
body.lang-te .countdown-label[data-i18n],
body.lang-te .save-date[data-i18n] {
  font-family: "Noto Sans Telugu", "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.03em;
}

body.lang-hi .section-heading[data-i18n],
body.lang-te .section-heading[data-i18n] {
  font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  line-height: 1.25;
}

body.lang-hi .event-title[data-i18n],
body.lang-te .event-title[data-i18n] {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  letter-spacing: 0.06em;
}

body.lang-en .couple-name,
body.lang-en .scratch-reveal__names {
  font-family: "Great Vibes", cursive;
}

/* Hero couple names — script font has no Devanagari/Telugu glyphs */
body.lang-hi h1.couple-name[data-i18n],
body.lang-hi .scratch-reveal__name[data-i18n] {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.75rem, 10vw, 5rem);
  letter-spacing: 0.02em;
  font-weight: 500;
}

body.lang-te h1.couple-name[data-i18n],
body.lang-te .scratch-reveal__name[data-i18n] {
  font-family: "Noto Sans Telugu", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.75rem, 10vw, 5rem);
  letter-spacing: 0.02em;
  font-weight: 500;
}

body.lang-hi .scratch-reveal__name[data-i18n],
body.lang-te .scratch-reveal__name[data-i18n] {
  font-size: clamp(1.35rem, 4.8vw, 1.85rem);
}

body.lang-hi .hero-content .font-script[data-i18n="hero.with"],
body.lang-te .hero-content .font-script[data-i18n="hero.with"] {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

body.lang-te .hero-content .font-script[data-i18n="hero.with"] {
  font-family: "Noto Sans Telugu", "Cormorant Garamond", Georgia, serif;
}

/* Music toggle */
.music-toggle {
  --music-btn-size: 3.25rem;
  position: relative;
  width: var(--music-btn-size);
  height: var(--music-btn-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: hsl(var(--cream) / 0.94);
  color: hsl(var(--rose-deep));
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px hsl(var(--sage-deep) / 0.18),
    inset 0 0 0 1px hsl(var(--gold-soft) / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.3s var(--transition-elegant),
    box-shadow 0.3s var(--transition-elegant),
    color 0.25s;
}

.music-toggle__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid hsl(var(--gold) / 0.55);
  pointer-events: none;
  transition: border-color 0.3s, opacity 0.3s;
}

.music-toggle.active .music-toggle__ring {
  animation: music-ring-pulse 2.4s ease-in-out infinite;
}

.music-toggle.active {
  color: hsl(var(--rose-deep));
  background: hsl(var(--cream) / 0.94);
  box-shadow:
    0 4px 20px hsl(var(--rose-deep) / 0.14),
    inset 0 0 0 1px hsl(var(--gold) / 0.55);
}

@keyframes music-ring-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.music-toggle__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: opacity 0.25s, transform 0.25s var(--transition-elegant);
}

.music-toggle__icon svg {
  display: block;
}

.music-toggle__icon--on {
  opacity: 1;
  transform: scale(1);
}

.music-toggle__icon--off {
  position: absolute;
  opacity: 0;
  transform: scale(0.85);
}

.music-toggle.is-muted {
  color: hsl(var(--sage-deep));
  background: hsl(var(--cream) / 0.88);
  box-shadow:
    0 3px 14px hsl(var(--ink) / 0.1),
    inset 0 0 0 1px hsl(var(--sage) / 0.35);
}

.music-toggle.is-muted .music-toggle__icon--on {
  opacity: 0;
  transform: scale(0.85);
}

.music-toggle.is-muted .music-toggle__icon--off {
  opacity: 1;
  transform: scale(1);
}

.music-toggle.is-muted .music-toggle__ring {
  border-color: hsl(var(--sage) / 0.45);
  animation: none;
  opacity: 0.7;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 8px 28px hsl(var(--rose-deep) / 0.16),
    inset 0 0 0 1px hsl(var(--gold) / 0.65);
  outline: none;
}

.music-toggle:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 576px) {
  .site-controls {
    bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
    right: max(1rem, calc(env(safe-area-inset-right, 0px) + 0.5rem));
    gap: 0.4rem;
  }

  .music-toggle {
    --music-btn-size: 3rem;
  }

  .lang-btn {
    min-width: 2.5rem;
    height: 1.85rem;
    font-size: 0.58rem;
  }
}

.tracking-cinzel-wide {
  letter-spacing: 0.35em;
}

.tracking-cinzel-wider {
  letter-spacing: 0.4em;
}

.section-heading {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.75rem, 8vw, 3.75rem);
  color: hsl(var(--rose-deep));
  line-height: 1.1;
}

.section-eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--sage-deep));
}

/* —— Responsive polish (mobile → desktop) —— */
#main-content {
  overflow-x: hidden;
}

.envelope-screen__content {
  padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.75rem);
  padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
}

@media (max-width: 576px) {
  .envelope-showcase {
    grid-template-columns: minmax(4.25rem, 1fr) auto minmax(4.25rem, 1fr);
    gap: clamp(0.25rem, 1.5vw, 0.5rem);
  }

  .envelope-portrait {
    max-width: clamp(4.25rem, 22vw, 6.5rem);
  }

  .envelope-portrait__name {
    letter-spacing: 0.14em;
    font-size: 0.48rem;
  }

  .envelope-showcase .envelope-img,
  .envelope-showcase .w-\[280px\] {
    width: min(200px, 46vw);
  }
}

@media (min-width: 992px) {
  .envelope-showcase {
    gap: 2rem;
    max-width: 62rem;
  }

  .envelope-portrait {
    max-width: 12rem;
  }
}

.footer-schedule__date,
.footer-schedule__event,
.footer-schedule__time {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-card .name,
.family-card .card-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 576px) {
  .section-wrap {
    padding: 3.5rem max(1rem, env(safe-area-inset-left, 0px) + 0.75rem);
  }

  .hero-content {
    padding: 2.5rem max(1rem, env(safe-area-inset-left, 0px) + 0.75rem)
      calc(3.75rem + env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
  }

  .couple-name {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .envelope-ref-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    padding: 0 0.35rem;
  }

  .envelope-invite-text p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    padding: 0 0.5rem;
  }

  .event-card {
    min-height: 0;
  }

  .event-card-grid {
    min-height: 0;
    padding: 1.15rem;
    gap: 0.85rem;
  }

  .event-couple-img {
    max-width: min(200px, 58vw);
  }

  .event-desc {
    font-size: clamp(0.88rem, 3.2vw, 1rem);
    padding: 0 0.35rem;
  }

  .event-title {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  .site-footer {
    padding: 3rem max(1rem, env(safe-area-inset-left, 0px) + 0.75rem)
      calc(3rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-schedule {
    gap: 0.65rem;
    padding: 0 0.25rem;
  }

  .footer-schedule__item {
    min-height: 6.75rem;
    padding: 0.85rem 0.5rem;
  }

  .tracking-cinzel-wider,
  .tracking-cinzel-wide {
    letter-spacing: 0.22em;
  }
}

@media (max-width: 400px) {
  .footer-schedule {
    grid-template-columns: 1fr;
    max-width: 16rem;
  }

  .countdown-box {
    min-width: 62px;
  }

  .countdown-grid {
    gap: 0.5rem;
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .section-inner.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
