:root {
  --bg-black: #000000;
  --paper-cream: #f4e8c1;
  --green-text: #d1e0d9;
  --green-deep: #3c6a58;
  --gold: #dfa856;
  --pink-cream: rgb(251, 237, 226);
  --olive: #696b36;
  --night: #0c1822;
  --shadow-strong: 0 0 50px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-black);
  background-image: radial-gradient(circle at top, #24476f 0%, #0f1826 42%, #000000 100%);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-lang="hi"] {
  font-family: "Noto Sans Devanagari", "Yaldevi", sans-serif;
}

body.has-intro-active {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-root {
  min-height: 100vh;
}

.site-canvas {
  opacity: 0.28;
  transform: scale(1.02);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.site-canvas.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
  cursor: pointer;
}

.intro-media {
  position: absolute;
  inset: 0;
  background: #000000;
}

.intro-poster,
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-poster {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.intro-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.intro-video.is-visible {
  opacity: 1;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.6s ease;
}

.intro-fade {
  position: absolute;
  inset: 0;
  background: rgba(244, 232, 193, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.intro-fade.is-visible {
  opacity: 1;
}

.intro-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: min(100%, 28rem);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.intro-panel.is-hidden {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
}

.intro-overline {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 249, 233, 0.98);
}

.intro-subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 249, 233, 0.78);
}

.intro-copy {
  color: var(--paper-cream);
}

.intro-note {
  margin-bottom: 0.6rem;
  color: rgba(255, 249, 233, 0.98);
  font-size: 3.2rem;
  line-height: 1;
}

.intro-footer {
  position: absolute;
  right: 0;
  bottom: 4rem;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.25em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  opacity: 0;
}

.intro-footer.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.intro-overlay[data-intro-state="playing"] .intro-backdrop {
  opacity: 0.08;
}

.intro-overlay[data-intro-state="playing"] .intro-footer {
  opacity: 0.72;
}

.intro-overlay[data-intro-state="fading"] .intro-backdrop,
.intro-overlay[data-intro-state="fading"] .intro-panel,
.intro-overlay[data-intro-state="fading"] .intro-footer {
  opacity: 0;
}

.loading-state,
.error-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--paper-cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-controls {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.lang-switch {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(244, 232, 193, 0.45);
  border-radius: 999px;
  background: rgba(12, 24, 34, 0.58);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.lang-switch button {
  border: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 232, 193, 0.82);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-switch button.is-active {
  background: var(--paper-cream);
  color: #10242f;
}

.lang-switch button:hover {
  transform: translateY(-1px);
}

.music-toggle {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--gold);
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.08);
}

.music-icon {
  display: none;
  width: 1.45rem;
  height: 1.45rem;
}

.music-icon.is-visible {
  display: block;
}

.audio-pulse {
  animation: attentionPulse 2s infinite;
}

.font-cormorant {
  font-family: "Cormorant", serif;
}

.font-cormorant-upright {
  font-family: "Cormorant Upright", serif;
}

.font-gotu {
  font-family: "Gotu", sans-serif;
}

.font-aboreto {
  font-family: "Aboreto", sans-serif;
}

.font-yaldevi {
  font-family: "Yaldevi", sans-serif;
}

.font-devanagari {
  font-family: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
}

body[data-lang="hi"] .hero-name,
body[data-lang="hi"] .hero-connector,
body[data-lang="hi"] .section-title,
body[data-lang="hi"] .invite-title,
body[data-lang="hi"] .couple-name,
body[data-lang="hi"] .cta-title,
body[data-lang="hi"] .footer-mark {
  font-family: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  letter-spacing: 0.04em;
}

body[data-lang="hi"] .eyebrow,
body[data-lang="hi"] .event-title,
body[data-lang="hi"] .info-title,
body[data-lang="hi"] .countdown-copy {
  font-family: "Noto Sans Devanagari", "Yaldevi", sans-serif;
}

.app-container {
  position: relative;
  width: min(100vw, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
  background-color: #3b9b8b;
  background-image: url("./assets/local/app-background.png");
  background-repeat: repeat;
  box-shadow: var(--shadow-strong);
}

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

.lantern-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.lantern {
  position: absolute;
  filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.95));
  will-change: transform, top, opacity;
}

.hero {
  position: absolute;
  top: clamp(210px, calc(28cqw - 26px), 360px);
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(1rem, 4cqw, 3rem);
  text-align: center;
}

.hero-name {
  margin: 0;
  color: var(--paper-cream);
  font-family: "Alex Brush", cursive;
  max-width: 100%;
  font-size: clamp(4.5rem, 14cqw, 10rem);
  line-height: 0.92;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  will-change: transform;
}

.hero-connector {
  margin: 1.5cqw 0;
  color: var(--paper-cream);
  font-family: "Cormorant", serif;
  max-width: 100%;
  font-size: clamp(2.5rem, 5.6cqw, 4.8rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: clamp(0.08em, 0.16em, 0.2em);
  overflow-wrap: anywhere;
  will-change: transform;
}

.section-green,
.section-pink,
.section-yellow,
.section-night {
  position: relative;
  width: 100%;
}

.section-green {
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(1280px, 162cqw, 2100px);
  padding-bottom: 10cqw;
}

.section-pink {
  z-index: 30;
  padding-top: 20cqw;
  padding-bottom: 10cqw;
  background-image: url("./assets/local/section-pink-bg.png");
  background-size: 100% auto;
  background-repeat: repeat;
}

.section-yellow {
  z-index: 20;
  padding-top: 20cqw;
  padding-bottom: 10cqw;
  background-image: url("./assets/local/section-yellow-bg.png");
  background-size: 100% auto;
  background-repeat: repeat;
}

.section-night {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30cqw;
  padding-bottom: 50cqw;
  background-color: var(--night);
  background-image: url("./assets/local/section-night-bg.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.section-shell {
  width: 100%;
}

.section-green .section-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-pink .section-shell,
.section-yellow .section-shell,
.section-night .section-shell {
  padding-top: 15cqw;
}

.ganesha {
  width: 22cqw;
  margin-top: -40px;
  margin-bottom: 4cqw;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
}

.blessing-copy,
.invite-copy,
.story-copy,
.countdown-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 4cqw;
  color: var(--green-text);
  font-family: "Gotu", sans-serif;
  max-width: min(100%, 34ch);
  font-size: clamp(1rem, 2.2cqw, 1.9rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.blessing-line {
  margin: 0;
  color: var(--paper-cream);
  font-family: "Cormorant", serif;
  max-width: 100%;
  font-size: clamp(1.1rem, 2.15cqw, 1.8rem);
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.blessing-segment {
  width: min(100%, 60rem);
  margin: 0 auto 2.25rem;
  padding: clamp(1.3rem, 2.6cqw, 2.3rem) clamp(1.1rem, 3.4cqw, 2.5rem);
  border: 1px solid rgba(244, 232, 193, 0.24);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(244, 232, 193, 0.08), rgba(244, 232, 193, 0.03));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
}

.blessing-role {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: "Aboreto", sans-serif;
  font-size: clamp(1rem, 2cqw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.blessing-details {
  display: grid;
  gap: 0.7rem;
}

.invite-title {
  margin: 6cqw 0;
  color: var(--paper-cream);
  font-family: "Cormorant", serif;
  max-width: 100%;
  font-size: clamp(3rem, 10cqw, 7.4rem);
  letter-spacing: clamp(0.08em, 0.16em, 0.2em);
  text-transform: uppercase;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.invite-copy .eyebrow {
  margin-bottom: 5cqw;
  padding: 0 8cqw;
  font-weight: 300;
}

.couple-name {
  margin: 0;
  color: var(--paper-cream);
  font-family: "Alex Brush", cursive;
  max-width: 100%;
  font-size: clamp(4.75rem, 14cqw, 10rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.couple-ampersand {
  margin: 2cqw 0;
  color: var(--paper-cream);
  font-family: "Cormorant Upright", serif;
  font-size: clamp(2.75rem, 7cqw, 5.2rem);
  font-style: italic;
}

.support-copy {
  margin: 0;
  padding: 0 8cqw;
  color: var(--green-text);
  max-width: min(100%, 42ch);
  font-size: clamp(0.95rem, 1.9cqw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
}

.support-family {
  margin: 2cqw 0 10cqw;
  color: var(--paper-cream);
  font-family: "Cormorant", serif;
  max-width: min(100%, 24ch);
  font-size: clamp(1.8rem, 3.6cqw, 3.5rem);
  text-align: center;
  overflow-wrap: anywhere;
}

.events-grid {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10cqw 5cqw;
  width: 80cqw;
  margin: 0 auto;
}

.event-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-bg {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.event-flower {
  position: absolute;
  width: 45%;
  z-index: 10;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
}

.event-flower.is-top {
  top: -10%;
  left: -10%;
}

.event-flower.is-bottom {
  right: -10%;
  bottom: -10%;
  transform: rotate(180deg);
}

.event-card-copy {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2cqw 4cqw 0;
  text-align: center;
}

.event-title {
  margin: 0 0 1.5cqw;
  color: var(--green-deep);
  font-family: "Aboreto", sans-serif;
  max-width: 100%;
  font-size: clamp(1.4rem, 3.8cqw, 2.8rem);
  font-weight: 800;
  letter-spacing: clamp(0.02em, 0.08em, 0.1em);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.event-title.is-long-title { font-size: clamp(1.1rem, 3cqw, 2rem); margin-bottom: 1cqw; }
.event-title.is-very-long-title { font-size: clamp(0.9rem, 2.5cqw, 1.6rem); margin-bottom: 0.8cqw; }

.event-meta,
.event-link {
  margin: 0 0 0.4cqw;
  color: var(--green-deep);
  max-width: 100%;
  font-size: clamp(0.9rem, 2cqw, 1.5rem);
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.event-venue { font-size: clamp(0.8rem, 1.8cqw, 1.2rem) !important; line-height: 1.25; margin-bottom: 0.8cqw; font-weight: 500; }
.event-meta b { font-weight: 800; font-size: 1.1em; color: var(--green-deep); }

.event-time {
  margin-bottom: 3.5cqw;
  font-weight: 700;
}

.event-link {
  margin-bottom: 0;
  padding-bottom: 0.2cqw;
  border-bottom: 2px solid var(--green-deep);
  font-family: "Aboreto", sans-serif;
  font-size: clamp(0.82rem, 1.8cqw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.cta-block {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.route-block {
  margin: 15cqw 0 35cqw;
}

.rsvp-block,
.follow-block {
  margin: 10cqw 0 35cqw;
}

.follow-block {
  z-index: 60;
}

.cta-title {
  margin: 0 0 2cqw;
  max-width: min(100%, 22ch);
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.route-block .cta-title,
.follow-block .cta-title {
  color: var(--paper-cream);
  font-family: "Aboreto", sans-serif;
  font-size: clamp(2rem, 6.4cqw, 5.4rem);
  font-weight: 700;
  letter-spacing: clamp(0.05em, 0.09em, 0.12em);
}

.rsvp-block .cta-title {
  color: var(--pink-cream);
  font-family: "Yaldevi", sans-serif;
  font-size: clamp(2.4rem, 7cqw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.follow-block .cta-title {
  color: var(--olive);
}

.cta-subtitle {
  margin: 0 0 4cqw;
  max-width: min(100%, 34ch);
  font-size: clamp(0.95rem, 1.9cqw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.82;
  overflow-wrap: anywhere;
}

.route-block .cta-subtitle {
  color: var(--green-text);
}

.rsvp-block .cta-subtitle {
  color: var(--pink-cream);
  font-weight: 700;
}

.follow-block .cta-subtitle {
  color: var(--olive);
  font-weight: 500;
}

.pulse-link {
  position: relative;
  width: 14cqw;
  height: 14cqw;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.pulse-link:hover {
  transform: scale(1.08);
}

.pulse-link::before,
.pulse-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  animation: pulseAnim 2s linear infinite;
}

.pulse-link::after {
  animation-delay: 1s;
}

.pulse-dot {
  width: 3.5cqw;
  height: 3.5cqw;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: currentColor;
}

.route-block .pulse-link {
  color: var(--paper-cream);
}

.rsvp-block .pulse-link {
  color: var(--pink-cream);
}

.follow-block .pulse-link {
  color: var(--olive);
}

.car-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 45;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateY(30%);
  pointer-events: none;
}

.car-image {
  width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.28));
  pointer-events: auto;
  will-change: transform, opacity;
}

.car-image.is-narrow {
  width: 75%;
}

.section-pink-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8cqw;
  text-align: center;
  color: var(--pink-cream);
}

.story-copy .eyebrow {
  margin-bottom: 2cqw;
  color: var(--pink-cream);
  font-size: 2.6cqw;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.story-title {
  margin: 0 0 6cqw;
  color: var(--pink-cream);
  font-family: "Yaldevi", sans-serif;
  max-width: min(100%, 20ch);
  font-size: clamp(2.5rem, 7.2cqw, 5.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: clamp(0.04em, 0.1em, 0.15em);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.story-body {
  max-width: 85%;
  margin: 0 0 10cqw;
  color: var(--pink-cream);
  font-size: clamp(1rem, 1.9cqw, 1.55rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.gallery-frame {
  position: relative;
  width: 80cqw;
  margin: 0 auto 15cqw;
}

.gallery-shell {
  position: relative;
  width: 100%;
  padding: 2.5cqw;
  border: 3px solid #c2aa80;
  border-radius: 35cqw 35cqw 6cqw 6cqw;
  background: #efe3d1;
  box-shadow: var(--shadow-card);
}

.gallery-pin {
  position: absolute;
  top: -5cqw;
  left: 50%;
  z-index: 30;
  width: 10cqw;
  height: 10cqw;
  border: 3px solid #c2aa80;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe3d1;
  transform: translateX(-50%);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.gallery-pin::after {
  content: "";
  width: 5cqw;
  height: 5cqw;
  border: 1px solid #a88f63;
  border-radius: 999px;
  background: var(--paper-cream);
}

.gallery-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid #a88f63;
  border-radius: 30cqw 30cqw 4cqw 4cqw;
  background: #ffffff;
}

.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.gallery-photo.is-active {
  opacity: 1;
}

.gallery-dots {
  position: absolute;
  left: 0;
  bottom: 3cqw;
  z-index: 40;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2cqw;
}

.gallery-dot {
  width: 2cqw;
  height: 2cqw;
  border: 1px solid #8d8579;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-dot.is-active {
  opacity: 1;
}

.gallery-dot:hover {
  transform: scale(1.08);
}

.details-block {
  padding: 0 8cqw;
  color: var(--olive);
  text-align: center;
}

.section-title {
  margin: 0 0 6cqw;
  font-family: "Aboreto", sans-serif;
  max-width: min(100%, 22ch);
  font-size: clamp(2.1rem, 6.2cqw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: clamp(0.04em, 0.1em, 0.15em);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.details-intro {
  margin: 0 auto 12cqw;
  max-width: 84%;
  font-size: clamp(1rem, 1.9cqw, 1.45rem);
  line-height: 1.7;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10cqw 4cqw;
  margin-bottom: 15cqw;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-icon {
  width: 7cqw;
  height: 7cqw;
  margin-bottom: 3cqw;
  opacity: 0.8;
}

.info-title {
  margin: 0 0 1cqw;
  font-family: "Aboreto", sans-serif;
  max-width: 100%;
  font-size: clamp(1rem, 2.8cqw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.info-body {
  margin: 0;
  font-size: clamp(0.92rem, 1.55cqw, 1.2rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.info-highlight {
  display: block;
  margin-top: 0.5cqw;
  font-size: clamp(1rem, 2cqw, 1.5rem);
  font-weight: 700;
}

.countdown-block {
  position: relative;
  z-index: 20;
  padding: 0 10cqw;
}

.countdown-title {
  margin: 0 0 2cqw;
  color: var(--gold);
  font-family: "Cormorant", serif;
  max-width: min(100%, 24ch);
  font-size: clamp(2.5rem, 5.7cqw, 4.8rem);
  letter-spacing: clamp(0.04em, 0.08em, 0.1em);
  overflow-wrap: anywhere;
}

.countdown-copy {
  margin: 0 0 10cqw;
  color: var(--gold);
  max-width: min(100%, 48ch);
  font-size: clamp(1rem, 1.8cqw, 1.35rem);
  line-height: 1.7;
  opacity: 0.7;
  overflow-wrap: anywhere;
}

.countdown-timer {
  margin-bottom: 6cqw;
  color: var(--gold);
  font-family: "Cormorant", serif;
  max-width: min(100%, 18ch);
  font-size: clamp(1.8rem, 3.4cqw, 3rem);
  font-weight: 700;
  letter-spacing: clamp(0.03em, 0.08em, 0.12em);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.countdown-timer .count-value {
  color: #ffffff;
}

.sparkle-area {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10cqw;
  min-height: 14cqw;
}

.footer-mark {
  position: relative;
  z-index: 20;
  margin: 0;
  color: #ffffff;
  font-family: "Cormorant", serif;
  max-width: min(100%, 22ch);
  font-size: clamp(2rem, 5.1cqw, 4.4rem);
  font-weight: 700;
  letter-spacing: clamp(0.06em, 0.16em, 0.24em);
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.brand-footer {
  width: 100%;
  margin-top: clamp(2rem, 5cqw, 4rem);
  padding-top: clamp(1.5rem, 4cqw, 3rem);
  border-top: 1px solid rgba(223, 168, 86, 0.28);
}

.brand-footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--paper-cream);
  text-decoration: none;
}

.brand-footer-link:hover .brand-footer-text {
  color: #ffffff;
}

.brand-footer-logo {
  width: min(56vw, 360px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.28));
}

.brand-footer-text {
  max-width: min(100%, 28ch);
  color: var(--paper-cream);
  font-size: clamp(0.95rem, 1.7cqw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  transition: color 0.25s ease;
  overflow-wrap: anywhere;
}

.sparkle {
  position: absolute;
  z-index: 10;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0;
  animation: sparkleAnim 1.5s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% {
    top: 120%;
    opacity: 0;
    transform: scale(1) rotate(-5deg);
  }

  5%,
  95% {
    opacity: 0.95;
  }

  100% {
    top: -30%;
    opacity: 0;
    transform: scale(0.8) rotate(5deg);
  }
}

@keyframes pulseAnim {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes sparkleAnim {
  0% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }

  50% {
    opacity: 1;
    transform: scale(1.5) translateY(-10px);
  }

  100% {
    opacity: 0;
    transform: scale(0) translateY(-20px);
  }
}

@keyframes attentionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(223, 168, 86, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(223, 168, 86, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(223, 168, 86, 0);
  }
}

@media (min-width: 640px) {
  .ganesha {
    width: 15cqw;
  }

  .blessing-line {
    font-size: 4.5cqw;
  }

  .couple-name {
    font-size: 13cqw;
  }

  .couple-ampersand {
    font-size: 7cqw;
  }

  .support-family {
    font-size: 4cqw;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6cqw 5cqw;
    width: 85cqw;
  }

  .event-title {
    font-size: 5cqw;
  }

  .event-meta {
    font-size: 2.8cqw;
  }

  .event-link {
    font-size: 2cqw;
  }

  .gallery-frame {
    width: 50cqw;
  }

  .car-image {
    width: 60%;
  }

  .car-image.is-narrow {
    width: 50%;
  }

  .footer-mark {
    font-size: 6cqw;
  }
}

@media (max-width: 767px) {
  .intro-overlay {
    padding: 1rem;
  }

  .intro-panel {
    width: min(100%, 22rem);
    gap: 0.55rem;
  }

  .intro-overline,
  .intro-subtitle,
  .intro-footer {
    letter-spacing: 0.14em;
  }

  .intro-footer {
    bottom: 2.8rem;
    font-size: 0.7rem;
  }

  .app-container {
    width: 100vw;
    box-shadow: none;
  }

  .hero {
    top: clamp(172px, 44vw, 230px);
    padding: 0 0.85rem;
  }

  .hero-name {
    max-width: calc(100vw - 1.7rem);
    font-size: clamp(2.95rem, 15.2vw, 4.55rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
  }

  .hero-connector {
    margin: 0.45rem 0;
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    letter-spacing: 0.09em;
  }

  .section-green {
    padding-top: clamp(880px, 244vw, 1080px);
    padding-bottom: 3.5rem;
  }

  .eyebrow {
    font-size: clamp(0.8rem, 3.5vw, 0.98rem);
    letter-spacing: 0.1em;
  }

  .blessing-line {
    font-size: clamp(0.98rem, 4vw, 1.15rem);
    line-height: 1.5;
    text-align: left;
  }

  .blessing-segment {
    width: calc(100vw - 2rem);
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 1rem 0.95rem 1.15rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(244, 232, 193, 0.12), rgba(244, 232, 193, 0.04));
  }

  .blessing-role {
    margin-bottom: 0.7rem;
    font-size: clamp(0.8rem, 3.3vw, 0.96rem);
    letter-spacing: 0.12em;
    text-align: left;
  }

  .blessing-details {
    gap: 0.55rem;
  }

  .blessing-copy {
    padding: 0 0.35rem;
  }

  .blessing-copy .eyebrow {
    max-width: calc(100vw - 2rem);
  }

  .invite-title {
    font-size: clamp(2.5rem, 15vw, 4.5rem);
    letter-spacing: 0.08em;
  }

  .couple-name {
    max-width: calc(100vw - 2rem);
    padding: 0 0.35rem;
    font-size: clamp(2.8rem, 14.5vw, 4.35rem);
    line-height: 0.9;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .couple-ampersand {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .support-copy {
    max-width: 22ch;
    font-size: clamp(0.82rem, 3.7vw, 1rem);
    letter-spacing: 0.09em;
  }

  .support-family {
    max-width: 14ch;
    font-size: clamp(1.55rem, 7vw, 2.3rem);
  }

  .lang-switch {
    top: 0.75rem;
    left: 0.75rem;
  }

  .music-toggle {
    right: 1rem;
    bottom: 1rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .events-grid,
  .gallery-frame {
    width: 88cqw;
  }

  .event-card-copy {
    padding: 1.5rem 1.25rem 0.25rem;
  }

  .event-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
    letter-spacing: 0.04em;
  }

  .event-meta,
  .event-link {
    font-size: clamp(0.88rem, 3.9vw, 1.05rem);
  }

  .route-block {
    margin: 5rem 0 11rem;
  }

  .rsvp-block {
    margin: 4rem 0 12rem;
  }

  .follow-block {
    margin: 4rem 0 16rem;
  }

  .section-yellow {
    padding-bottom: 6rem;
  }

  .car-frame {
    transform: translateY(22%);
  }

  .car-image {
    width: 92%;
  }

  .car-image.is-narrow {
    width: 86%;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-copy .eyebrow,
  .details-intro,
  .countdown-copy,
  .brand-footer-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .pulse-link {
    width: 4.8rem;
    height: 4.8rem;
  }

  .pulse-dot {
    width: 1.15rem;
    height: 1.15rem;
  }

  .brand-footer-logo {
    width: min(72vw, 300px);
  }
}

/* ═══════════════════════════════════════════════════
   FULL‑SCREEN ENVELOPE WRAPPER — extracted from web2
   ═══════════════════════════════════════════════════ */
.envelope-wrapper {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  background: #000; /* fall back if transparent */
  transition: opacity 2s cubic-bezier(0.5, 0, 0.2, 1), filter 2s ease, transform 2.2s cubic-bezier(0.5, 0, 0.2, 1);
}
.envelope-wrapper.dissolve {
  opacity: 0;
  filter: blur(14px);
  transform: scale(4.5) translateZ(400px);
  pointer-events: none;
}

/* ── Floating Gold Particles ── */
.env-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.env-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: #d4af53;
  border-radius: 50%;
  opacity: 0;
  animation: envFloatUp 7s ease-in-out infinite;
}
.env-particles span:nth-child(1)  { left: 8%;  animation-delay: 0s; }
.env-particles span:nth-child(2)  { left: 20%; animation-delay: 1.4s; }
.env-particles span:nth-child(3)  { left: 35%; animation-delay: 0.7s; }
.env-particles span:nth-child(4)  { left: 50%; animation-delay: 2.2s; }
.env-particles span:nth-child(5)  { left: 65%; animation-delay: 0.4s; }
.env-particles span:nth-child(6)  { left: 78%; animation-delay: 1.9s; }
.env-particles span:nth-child(7)  { left: 12%; animation-delay: 3.2s; }
.env-particles span:nth-child(8)  { left: 45%; animation-delay: 4.1s; }
.env-particles span:nth-child(9)  { left: 60%; animation-delay: 2.8s; }
.env-particles span:nth-child(10) { left: 88%; animation-delay: 1.1s; }

@keyframes envFloatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  15%  { opacity: 0.7; }
  100% { transform: translateY(-15vh) scale(1.5); opacity: 0; }
}

/* ── Envelope Base ── */
.envelope {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  perspective: 1500px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #ede8da, #e4dccb, #dbd4c2);
  transition: transform 0.6s cubic-out;
}
.envelope::after {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(255,215,0,0.1) 48%, rgba(255,215,0,0.3) 50%, rgba(255,215,0,0.1) 52%, transparent 55%);
  transform: rotate(-45deg); animation: shimmerSweep 6s infinite; pointer-events: none;
}
@keyframes shimmerSweep {
  0% { transform: translate(-100%, -100%) rotate(-45deg); }
  100% { transform: translate(100%, 100%) rotate(-45deg); }
}

/* ── Flaps ── */
.flap {
  position: absolute; width: 0; height: 0; border-style: solid; pointer-events: none;
}
.flap-bottom {
  bottom: 0; left: 0; border-width: 0 50vw 50vh 50vw; border-color: transparent transparent #ddd6c4 transparent;
  z-index: 4; filter: drop-shadow(0 -4px 8px rgba(0,0,0,0.06));
}
.flap-left {
  top: 0; left: 0; border-width: 50vh 0 50vh 50vw; border-color: transparent transparent transparent #e2dccb; z-index: 3;
}
.flap-right {
  top: 0; right: 0; border-width: 50vh 50vw 50vh 0; border-color: transparent #dfd8c7 transparent transparent; z-index: 3;
  filter: drop-shadow(-3px 0 6px rgba(0,0,0,0.04));
}
.flap-top {
  top: 0; left: 0; border-width: 50vh 50vw 0 50vw; border-color: #d3ccbb transparent transparent transparent;
  z-index: 5; transform-origin: top center; transition: transform 1.2s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.14));
}
.envelope.open .flap-top { transform: rotateX(180deg); z-index: 1; }

.inner-card-peek {
  position: absolute; top: 12%; left: 10%; right: 10%; bottom: 18%;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f3e8 100%);
  border: 1px solid rgba(179,139,45,0.15); border-radius: 2px;
  z-index: 2; opacity: 0; transform: translateY(0);
  transition: opacity 0.8s 0.2s ease, transform 1s 0.6s cubic-bezier(.22,1,.36,1);
}
.envelope.open .inner-card-peek { opacity: 1; transform: translateY(-20%) scale(1.02); }

/* ── Overlay Text ── */
.envelope-overlay-text {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); z-index: 6;
  text-align: center; width: 90%; pointer-events: none; animation: envFadeInUp 1.5s ease 0.5s both;
}
.envelope-overlay-text h1 {
  font-family: "Great Vibes", cursive, serif; font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  color: #b38b2d; font-weight: 400; font-style: italic; text-shadow: 0 1px 3px rgba(0,0,0,0.08); margin: 0;
}
@keyframes envFadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── CSS Wax Seal ── */
.wax-seal {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(120px, 20vw, 180px); height: clamp(120px, 20vw, 180px); z-index: 10;
  cursor: pointer; transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.wax-seal.breaking { animation: sealShake 0.55s ease-in-out; }
.wax-seal.broken {
  opacity: 0; transform: translate(-50%, -50%) scale(1.7) rotate(18deg);
  transition: opacity 0.65s ease, transform 0.65s ease; pointer-events: none;
}
.wax-seal.broken .seal-hint { display: none; }

.seal-base-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; filter: drop-shadow(0 8px 16px rgba(80,10,10,0.6));
}
.seal-content-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.seal-monogram {
  font-family: 'Alex Brush', cursive, serif; font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: #eedd99; font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  opacity: 0.8;
  display: flex; align-items: center; gap: 4px;
  transform: translateY(-2%); /* Minor tweak for cursive */
}
.seal-amp { font-size: 0.7em; font-family: 'Cormorant Upright', serif; margin: 0 -2px; }
.seal-hint {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  font-family: "Montserrat", sans-serif; font-size: 0.75rem; letter-spacing: 3px;
  text-transform: uppercase; color: #b38b2d; opacity: 0.8; white-space: nowrap;
  animation: envPulse 2s ease-in-out infinite; font-weight: 600;
}
@keyframes sealShake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); }
  15%      { transform: translate(-50%, -50%) rotate(-6deg) scale(1.06); }
  30%      { transform: translate(-50%, -50%) rotate(6deg) scale(1.1); }
  50%      { transform: translate(-50%, -50%) rotate(-4deg) scale(1.06); }
  70%      { transform: translate(-50%, -50%) rotate(3deg) scale(1.03); }
  85%      { transform: translate(-50%, -50%) rotate(-1deg); }
}
@keyframes envPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
