@font-face {
  font-family: "NisthaLocal";
  src: url("./assets/local/fonts/nistha.woff2?v=20260526-dubaiweds-bg3") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "QasiraLocal";
  src: url("./assets/local/fonts/Qasira.otf?v=20260526-dubaiweds-bg3") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "SilnevaLocal";
  src: url("./assets/local/fonts/Silneva.otf?v=20260526-dubaiweds-bg3") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "AMSInduLocal";
  src: url("./assets/local/fonts/AMS%20Indu%20Regular.ttf?v=20260526-dubaiweds-bg3") format("truetype");
  font-display: swap;
}

:root {
  --bg-black: #000000;
  --paper-cream: #f6ead0;
  --green-text: #d7e8df;
  --green-deep: #17594b;
  --gold: #c9984f;
  --pink-cream: rgb(248, 241, 224);
  --olive: #506343;
  --night: #061d24;
  --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, #0f4f43 0%, #071e25 42%, #000000 100%);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

@keyframes tapPulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes tapShimmer {
  0% { background-position: 140% 50%; }
  100% { background-position: -40% 50%; }
}

.intro-tap-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(86vw, 28rem);
  color: #fff6dc;
  font-family: "Aboreto", sans-serif;
  font-size: clamp(1rem, 3.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  background: linear-gradient(90deg, #fff0b8 0%, #fffaf0 28%, #d8a345 50%, #fffaf0 72%, #fff0b8 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72), 0 0 18px rgba(255, 226, 142, 0.28);
  animation: tapPulse 2s ease-in-out infinite, tapShimmer 2.8s linear infinite;
}

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

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

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

.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);
}

.control-button {
  position: absolute;
  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 {
  left: 1.5rem;
}

.auto-scroll-toggle {
  right: 1.5rem;
}

.auto-scroll-toggle.show-resume-hint::before {
  content: "Tap to Play";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%);
  width: max-content;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(255, 245, 223, 0.68);
  border-radius: 999px;
  background: rgba(19, 48, 55, 0.72);
  color: #fff5df;
  font-family: "Aboreto", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.scroll-speed-controls {
  position: absolute;
  right: 5.35rem;
  bottom: 1.85rem;
  z-index: 2;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(12, 24, 34, 0.58);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.scroll-speed-button {
  min-width: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 232, 193, 0.82);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.42rem;
  cursor: pointer;
}

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

.control-button: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="kn"] .hero-name,
body[data-lang="kn"] .hero-connector,
body[data-lang="kn"] .section-title,
body[data-lang="kn"] .invite-title,
body[data-lang="kn"] .couple-name,
body[data-lang="kn"] .event-title,
body[data-lang="kn"] .cta-title,
body[data-lang="kn"] .footer-mark {
  font-family: "AMSInduLocal", "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  letter-spacing: 0.04em;
}

body[data-lang="kn"] .eyebrow,
body[data-lang="kn"] .info-title,
body[data-lang="kn"] .countdown-copy {
  font-family: "AMSInduLocal", "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?v=20260526-dubaiweds-bg3");
  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;
}

.petal-layer {
  position: fixed;
  inset: 0;
  left: 50%;
  z-index: 15;
  width: min(100%, 1280px);
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.rose-petal {
  position: absolute;
  top: -12%;
  opacity: 0;
  filter: drop-shadow(0 5px 7px rgba(80, 15, 18, 0.18));
  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: 4cqw;
  background-color: #efe2d1;
  background-image: url("./assets/local/section-pink-bg.png?v=20260526-dubaiweds-bg3");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
}

.section-yellow {
  z-index: 20;
  min-height: clamp(720px, 88cqw, 1180px);
  padding-top: 12cqw;
  padding-bottom: 18cqw;
  background-image: url("./assets/local/section-yellow-bg.png?v=20260526-dubaiweds-bg3");
  background-size: 100% auto;
  background-repeat: repeat;
}

.section-night {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8cqw;
  padding-bottom: 50cqw;
  background-color: var(--night);
  background-image: url("./assets/local/section-night-bg.png?v=20260526-dubaiweds-bg3");
  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;
}

.section-yellow .section-shell {
  display: flex;
  justify-content: center;
}

.blessing-emblem {
  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;
}

.blessing-copy,
.invite-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 66rem);
  margin-inline: auto;
  padding: 0 clamp(1rem, 3.4cqw, 2.6rem);
}

.blessing-copy {
  margin-bottom: clamp(1.2rem, 3cqw, 2.3rem);
}

.invite-copy {
  margin-top: clamp(1.4rem, 4cqw, 3rem);
}

.ganesh-line {
  margin: 0;
  color: #ffe4a5;
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(1.9rem, 5cqw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(29, 76, 64, 0.55), 0 7px 18px rgba(10, 39, 34, 0.42);
}

.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;
}

.with-love-line {
  margin: 0 0 clamp(1.4rem, 4cqw, 2.8rem);
  color: #fff5d4;
  font-family: "Cormorant", serif;
  max-width: min(100%, 30ch);
  font-size: clamp(1.35rem, 3.4cqw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.52), 0 7px 18px rgba(12, 44, 38, 0.34);
}

.invite-title {
  margin: 6cqw 0;
  color: var(--paper-cream);
  font-family: "Cormorant Upright", "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;
  color: #fff6dc;
  font-family: "Cormorant", serif;
  font-size: clamp(1.3rem, 3.1cqw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.18;
  text-transform: none;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.48), 0 7px 18px rgba(12, 44, 38, 0.32);
}

.couple-name {
  margin: 0;
  color: #ffe3a1;
  font-family: "Cormorant Upright", "Cormorant", serif;
  max-width: min(100%, 24ch);
  font-size: clamp(3rem, 9cqw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: none;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.54), 0 8px 20px rgba(8, 35, 31, 0.38);
  overflow-wrap: anywhere;
}

.couple-family-details {
  margin: clamp(0.35rem, 1.1cqw, 0.9rem) auto clamp(1.2rem, 3cqw, 2.4rem);
  color: #fff6dc;
  font-family: "SilnevaLocal", "Cormorant", serif;
  max-width: min(100%, 42ch);
  font-size: clamp(1.1rem, 2.55cqw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.5), 0 7px 18px rgba(8, 35, 31, 0.34);
}

.family-detail-line {
  margin: 0 0 clamp(0.45rem, 1.2cqw, 0.9rem);
}

.family-detail-line:last-child {
  margin-bottom: 0;
}

.family-detail-label,
.family-detail-names {
  margin: 0;
}

.family-detail-label {
  color: #fff6dc;
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1;
}

.family-detail-names {
  color: #fff6dc;
  font-size: 1.08em;
  font-weight: 500;
  line-height: 1.16;
}

.family-detail-relation,
.family-detail-person {
  display: block;
}

.invite-line span {
  display: inline-block;
}

.with-love-line span {
  display: inline-block;
}

.invite-line .no-break-line {
  display: block;
  white-space: nowrap;
  max-width: none;
}

.with-love-line .no-break-line {
  display: block;
  white-space: nowrap;
  max-width: none;
  position: relative;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  text-align: center;
}

.family-detail-paren {
  display: block;
}

.family-detail-person {
  white-space: nowrap;
}

.couple-ampersand {
  position: relative;
  width: min(100%, 34rem);
  margin: clamp(1.2rem, 3cqw, 2.4rem) auto;
  color: #fff6dc;
  font-family: "Cormorant Upright", serif;
  font-size: clamp(2.75rem, 7cqw, 5.2rem);
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.54), 0 8px 20px rgba(8, 35, 31, 0.38);
}

.couple-ampersand::before,
.couple-ampersand::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 220, 0.86));
}

.couple-ampersand::before {
  left: 0;
}

.couple-ampersand::after {
  right: 0;
  transform: rotate(180deg);
}

.support-copy {
  margin: 0;
  padding: 0 8cqw;
  color: #fff6dc;
  max-width: min(100%, 42ch);
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(1.2rem, 2.8cqw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.5), 0 7px 18px rgba(8, 35, 31, 0.34);
  overflow-wrap: anywhere;
}

.invite-save-date {
  width: min(100%, 36rem);
  margin: clamp(1.2rem, 3.2cqw, 2.4rem) auto clamp(1.4rem, 3.6cqw, 2.8rem);
  padding: 0;
}

.invite-save-date .save-date-eyebrow,
.invite-save-date .scratch-label-above {
  color: #fff6dc;
  font-family: "Cormorant", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.5), 0 7px 18px rgba(8, 35, 31, 0.34);
}

.invite-save-date .save-date-eyebrow,
.invite-save-date .save-date-hint {
  font-size: clamp(1.2rem, 2.8cqw, 2.2rem);
  line-height: 1.15;
}

.invite-save-date .save-date-hint {
  color: #fff6dc;
  font-family: "Cormorant", serif;
  max-width: min(100%, 31ch);
  font-size: clamp(1.35rem, 3.15cqw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.06;
  text-shadow:
    0 1px 0 rgba(42, 78, 68, 0.72),
    0 5px 16px rgba(8, 35, 31, 0.58),
    0 0 20px rgba(255, 238, 181, 0.36);
}

.invite-save-date .save-date-title {
  color: #ffe3a1;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.54), 0 8px 20px rgba(8, 35, 31, 0.38);
}

.invite-save-date .scratch-row {
  max-width: 34rem;
  margin-inline: auto;
}

.invite-save-date .scratch-complete-msg {
  color: #fff6dc;
  text-shadow: 0 2px 0 rgba(33, 79, 67, 0.48), 0 7px 18px rgba(8, 35, 31, 0.32);
}

.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 clamp(2.5rem, 6cqw, 5rem);
}

.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: 42%;
  z-index: 10;
  display: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
  transform-origin: center;
}

.event-flower.is-top {
  top: -7%;
  left: -7%;
  transform: rotate(0deg);
}

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

.event-card-copy {
  position: absolute;
  inset: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7% 15% 9%;
  text-align: center;
}

.event-card-copy::before {
  content: none;
}

.event-card-copy > * {
  position: relative;
  z-index: 1;
}

.event-title {
  margin: 0 0 1.15cqw;
  color: #174a3e;
  font-family: "Cormorant Upright", "Cormorant", serif;
  max-width: 100%;
  font-size: clamp(1.9rem, 4.75cqw, 3.55rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.94;
  text-shadow: 0 1px 0 rgba(255, 250, 232, 0.9), 0 2px 8px rgba(255, 246, 216, 0.62);
  text-transform: none;
  overflow-wrap: anywhere;
}
.event-title.is-long-title { font-size: clamp(1.45rem, 3.85cqw, 2.6rem); line-height: 0.94; margin-bottom: 0.9cqw; }
.event-title.is-very-long-title { font-size: clamp(1.22rem, 3.25cqw, 2.15rem); line-height: 0.96; margin-bottom: 0.75cqw; }
.event-title.is-amp-title { font-size: clamp(1.7rem, 4.35cqw, 3.1rem); line-height: 0.96; margin-bottom: 0.9cqw; }
.event-title.is-nachde-title { font-size: clamp(1.7rem, 4.35cqw, 3.1rem); line-height: 0.96; margin-bottom: 0.9cqw; }

.event-meta,
.event-link {
  margin: 0 0 0.42cqw;
  color: #174a3e;
  font-family: "Cormorant Upright", "Cormorant", serif;
  max-width: 100%;
  font-size: clamp(1.08rem, 2.45cqw, 1.78rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(255, 250, 232, 0.9),
    0 3px 10px rgba(68, 42, 21, 0.15);
}
.event-venue {
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(1.08rem, 2.45cqw, 1.78rem) !important;
  line-height: 1.04;
  margin-bottom: 0.6cqw;
  font-weight: 800;
}
.event-venue.is-long-venue {
  font-size: clamp(0.95rem, 2.12cqw, 1.48rem) !important;
  line-height: 1.04;
}
.event-meta b { font-weight: 800; font-size: 1.12em; color: #174a3e; }

.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: 13cqw 0 34cqw;
}

.event-rsvp-block {
  margin: 8cqw 0 18cqw;
}

.rsvp-block,
.follow-block {
  margin: 12cqw 0 34cqw;
}

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

.family-route-block {
  margin: 0 0 clamp(2rem, 5cqw, 4rem);
  padding: clamp(1.2rem, 4cqw, 2.4rem) clamp(0.8rem, 3cqw, 1.6rem);
  border-radius: 0.75rem;
  background: radial-gradient(circle at 50% 46%, rgba(6, 44, 38, 0.64), rgba(6, 44, 38, 0.32) 54%, transparent 78%);
}

.cta-title {
  margin: 0 0 clamp(1.6rem, 3.4cqw, 3rem);
  max-width: min(100%, 24ch);
  line-height: 0.92;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(21, 65, 56, 0.34), 0 8px 22px rgba(13, 44, 39, 0.2);
}

.route-block .cta-title,
.follow-block .cta-title,
.rsvp-block .cta-title {
  color: #fff5df;
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(2.8rem, 7.4cqw, 6.3rem);
  font-weight: 800;
  letter-spacing: clamp(0.08em, 0.13em, 0.16em);
}

.rsvp-block .cta-title {
  font-size: clamp(1.95rem, 5.25cqw, 4.35rem);
}

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

.family-route-block .cta-title {
  color: #fff1bd;
  font-size: clamp(1.95rem, 5.25cqw, 4.35rem);
  text-shadow:
    0 1px 0 rgba(78, 16, 19, 0.95),
    0 5px 14px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(255, 226, 142, 0.28);
}

.cta-subtitle {
  margin: clamp(1.6rem, 3.4cqw, 3rem) 0 0;
  max-width: min(100%, 34ch);
  font-family: "Cormorant", serif;
  font-size: clamp(1.15rem, 2.4cqw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.96;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(21, 65, 56, 0.34), 0 7px 18px rgba(13, 44, 39, 0.18);
}

.route-block .cta-subtitle {
  color: #fff5df;
  position: relative;
  display: inline-block;
  font-size: clamp(1.45rem, 3.15cqw, 2.35rem);
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #fff1c7 0%, #fffaf0 28%, #dcae55 48%, #fffaf0 68%, #fff1c7 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: routeSubtitleShimmer 3.8s ease-in-out infinite;
}

.event-rsvp-block .cta-title,
.event-rsvp-block .cta-subtitle {
  color: #fff5df;
}

.event-rsvp-block .pulse-link {
  color: #fff5df;
}

.rsvp-open-button {
  appearance: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.family-route-block .cta-subtitle {
  font-size: clamp(1.65rem, 3.55cqw, 2.65rem);
  font-weight: 900;
  color: #fff7db;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: none;
  text-shadow:
    0 1px 0 rgba(78, 16, 19, 0.95),
    0 4px 12px rgba(0, 0, 0, 0.46),
    0 0 16px rgba(255, 226, 142, 0.26);
}

.rsvp-block .cta-subtitle {
  color: #fff5df;
  font-weight: 700;
}

.rsvp-block {
  display: none;
}

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

.pulse-link {
  position: relative;
  width: clamp(6rem, 12cqw, 10rem);
  height: clamp(6rem, 12cqw, 10rem);
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  text-decoration: none;
  box-shadow:
    0 0 0 clamp(1.5rem, 3cqw, 2.6rem) rgba(255, 245, 223, 0.13),
    0 0 28px rgba(255, 245, 223, 0.28);
  transition: transform 0.3s ease;
}

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

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

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

.pulse-dot {
  width: clamp(1.25rem, 3.2cqw, 2.4rem);
  height: clamp(1.25rem, 3.2cqw, 2.4rem);
  border: 1px solid rgba(255, 245, 223, 0.9);
  border-radius: 999px;
  background: currentColor;
}

.route-block .pulse-link {
  color: #fff5df;
}

.rsvp-block .pulse-link {
  color: #fff5df;
}

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

.family-route-block .pulse-link {
  color: #fff1bd;
  background: rgba(124, 29, 31, 0.38);
  box-shadow:
    0 0 0 clamp(1.5rem, 3cqw, 2.6rem) rgba(255, 245, 223, 0.12),
    0 0 30px rgba(0, 0, 0, 0.38);
}

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.rsvp-modal.is-open {
  display: flex;
}

.has-rsvp-modal {
  overflow: hidden;
}

.rsvp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 20, 0.72);
  backdrop-filter: blur(8px);
}

.rsvp-dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(90vh, 48rem);
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 225, 150, 0.58);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(6, 54, 47, 0.94), rgba(9, 74, 63, 0.92)),
    url("./assets/local/app-background.png?v=20260526-dubaiweds-bg3");
  background-size: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 0 0 6px rgba(255, 245, 213, 0.08);
  color: #fff6dc;
}

.rsvp-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 226, 158, 0.52);
  border-radius: 999px;
  background: rgba(255, 246, 220, 0.08);
  color: #fff6dc;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.rsvp-dialog-header {
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
  text-align: center;
}

.rsvp-kicker {
  margin: 0 0 0.45rem;
  color: #f0c46f;
  font-family: "Aboreto", sans-serif;
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-dialog-header h3 {
  margin: 0 0 0.6rem;
  color: #ffe3a1;
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(12, 45, 38, 0.8);
}

.rsvp-dialog-header p {
  margin: 0 auto;
  max-width: 27rem;
  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  line-height: 1.35;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
}

.rsvp-field {
  display: grid;
  gap: 0.45rem;
  color: #fff6dc;
  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  font-weight: 700;
  text-align: left;
}

.rsvp-field input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(224, 184, 93, 0.62);
  border-radius: 0.45rem;
  background: rgba(255, 250, 228, 0.94);
  color: #173f36;
  font: inherit;
  padding: 0.8rem 0.9rem;
  outline: none;
}

.rsvp-field input:focus {
  border-color: #ffe3a1;
  box-shadow: 0 0 0 3px rgba(255, 227, 161, 0.22);
}

.rsvp-field-radio {
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-field-radio legend {
  margin-bottom: 0.55rem;
}

.rsvp-options {
  display: grid;
  gap: 0.55rem;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(224, 184, 93, 0.46);
  border-radius: 0.55rem;
  background: rgba(255, 246, 220, 0.08);
}

.rsvp-option input {
  width: 1.1rem;
  min-height: 1.1rem;
  accent-color: #d8a345;
}

.rsvp-status {
  min-height: 1.3rem;
  margin: 0;
  color: #ffe3a1;
  font-family: "Cormorant", serif;
  font-size: 1rem;
  text-align: center;
}

.rsvp-status.is-error {
  color: #ffd2c8;
}

.rsvp-status.is-success {
  color: #dbffd6;
}

.rsvp-submit {
  min-height: 3.1rem;
  border: 1px solid rgba(255, 227, 161, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, #d8a345, #fff0b8 50%, #b8872b);
  color: #173f36;
  font-family: "Aboreto", sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.rsvp-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.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-frame:not(.has-gsap-car) .car-entry-ready {
  opacity: 0;
  transform: translate3d(calc(var(--car-entry-direction, -1) * 72%), 18%, 0)
    rotate(calc(var(--car-entry-direction, -1) * -7deg))
    scale(0.86);
}

.car-frame:not(.has-gsap-car).is-car-visible .car-entry-ready {
  animation: carDriveIn 1.45s cubic-bezier(0.18, 0.92, 0.28, 1) forwards;
}

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

.car-frame-three {
  z-index: 35;
}

.car-frame-three .car-image {
  width: 78%;
}

.family-flip-block {
  width: min(100%, 52rem);
  padding: 0 clamp(1rem, 4cqw, 3rem);
  text-align: center;
}

.family-flip-eyebrow,
.family-flip-frame,
.family-flip-dots {
  display: none;
}

.family-flip-eyebrow {
  margin: 0 0 clamp(1.2rem, 3cqw, 2rem);
  font-family: "Cormorant", serif;
  font-size: clamp(1.35rem, 3.2cqw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff2b7;
  text-shadow:
    0 1px 0 rgba(78, 16, 19, 0.95),
    0 4px 12px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(255, 226, 142, 0.35);
}

.family-flip-frame {
  position: relative;
  width: min(100%, 36rem);
  height: clamp(28rem, 52cqw, 41rem);
  margin: 0 auto;
  perspective: 900px;
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
}

.family-flip-frame:focus-visible {
  outline: 2px solid rgba(124, 71, 56, 0.7);
  outline-offset: 0.45rem;
}

.family-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(116, 73, 45, 0.32);
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 226, 0.72), rgba(248, 224, 172, 0.72)),
    url("./assets/local/family-flip-royal-texture.jpg?v=20260526-dubaiweds-bg3");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 22px 42px rgba(115, 70, 42, 0.22),
    inset 0 0 0 7px rgba(255, 249, 224, 0.45),
    inset 0 0 44px rgba(124, 71, 56, 0.1);
  overflow: hidden;
  transform-style: preserve-3d;
}

.family-flip-card::before,
.family-flip-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.family-flip-card::before {
  inset: 0.8rem;
  border: 1px solid rgba(145, 78, 54, 0.34);
}

.family-flip-card::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(117, 69, 44, 0.34), transparent);
  transform: translateY(-50%);
}

.family-card-base,
.family-flap {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 226, 0.74), rgba(248, 224, 172, 0.74)),
    url("./assets/local/family-flip-royal-texture.jpg?v=20260526-dubaiweds-bg3");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.family-card-base {
  background-size: cover;
  background-position: center;
}

.family-card-base {
  inset: 0;
}

.family-flap {
  z-index: 3;
  height: 50%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 3px 12px rgba(96, 58, 38, 0.08);
}

.family-flap-top {
  top: 0;
  transform-origin: bottom;
  clip-path: inset(0 0 50% 0);
}

.family-flap-bottom {
  bottom: 0;
  transform-origin: top;
  clip-path: inset(50% 0 0 0);
}

.family-flap-top .family-card-content {
  top: 0;
}

.family-flap-bottom .family-card-content {
  bottom: 0;
}

.family-card-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
  justify-items: center;
  gap: 0;
  padding: clamp(1.15rem, 2.4cqw, 1.8rem) clamp(1.6rem, 4.2cqw, 3.3rem);
  color: #3f251e;
  font-family: "Cormorant", serif;
  text-align: center;
}

.family-flap .family-card-content {
  inset: auto 0;
  min-height: 200%;
}

.family-flap-top .family-card-content {
  top: 0;
}

.family-flap-bottom .family-card-content {
  bottom: 0;
}

.family-card-content h3 {
  margin: 0;
  color: #7f171c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Upright", "Cormorant", serif;
  width: min(100%, 12ch);
  font-size: clamp(2.2rem, 4.8cqw, 4rem);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(255, 250, 226, 0.98),
    0 3px 9px rgba(255, 242, 196, 0.48);
}

.family-card-content h3.is-long-family-title {
  width: min(100%, 17ch);
  font-size: clamp(1.9rem, 4cqw, 3.15rem);
  line-height: 1.04;
}

.family-card-content.is-dense-family-card {
  gap: 0;
}

.family-card-lines {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(0.45rem, 1.2cqw, 0.8rem);
  width: min(100%, 24rem);
  min-height: 100%;
}

.family-card-lines p {
  margin: 0;
  font-size: clamp(1.35rem, 3cqw, 2.25rem);
  font-weight: 700;
  line-height: 1.14;
  text-wrap: balance;
  color: #3b221b;
  text-shadow: 0 1px 0 rgba(255, 250, 226, 0.9);
}

.family-card-content.is-little-stars-card .family-card-lines p {
  font-size: clamp(1.55rem, 3.4cqw, 2.45rem);
  line-height: 1.08;
}

.family-flip-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: clamp(1rem, 2.6cqw, 1.8rem);
}

.family-flip-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(113, 70, 45, 0.58);
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.family-flip-dots span.is-active {
  background: #9a312d;
  transform: scale(1.2);
}

.section-pink-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8cqw;
  text-align: center;
  color: #7c1115;
}

.story-copy .eyebrow {
  margin-bottom: 2cqw;
  color: #8b2421;
  font-size: 2.6cqw;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 0 rgba(255, 246, 224, 0.82), 0 8px 18px rgba(80, 42, 22, 0.18);
}

.story-title {
  margin: 0 0 6cqw;
  color: #8b2421;
  font-family: "Cormorant Upright", "Cormorant", serif;
  max-width: min(100%, 24ch);
  font-size: clamp(1.95rem, 5.25cqw, 4.35rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: clamp(0.08em, 0.13em, 0.16em);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 246, 224, 0.82), 0 8px 18px rgba(80, 42, 22, 0.2);
}

.story-body {
  max-width: 85%;
  margin: 0 0 10cqw;
  color: #194d42;
  font-size: clamp(1rem, 1.9cqw, 1.55rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 246, 224, 0.82);
}

.section-pink-copy.story-copy {
  display: none;
}

.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;
  transform: translateY(-3rem);
}

.countdown-title {
  margin: 0 0 2cqw;
  color: #fff4d8;
  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;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.68), 0 0 22px rgba(9, 48, 42, 0.5);
}

.countdown-copy {
  margin: 0 0 10cqw;
  color: #fff4d8;
  max-width: min(100%, 48ch);
  font-size: clamp(1rem, 1.8cqw, 1.35rem);
  line-height: 1.7;
  opacity: 0.9;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.countdown-timer {
  margin-bottom: 6cqw;
  color: #fff4d8;
  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;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72);
}

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

.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 Upright", "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: none;
  overflow-wrap: anywhere;
}

.wedding-hashtag {
  margin-top: clamp(2.5rem, 7cqw, 5rem);
  display: inline-block;
  background: linear-gradient(90deg, #fff1c7 0%, #fffaf0 28%, #dcae55 48%, #fffaf0 68%, #fff1c7 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: routeSubtitleShimmer 3.8s ease-in-out infinite;
  filter:
    drop-shadow(0 2px 0 rgba(70, 18, 18, 0.42))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 20px rgba(255, 226, 151, 0.18));
}

.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 petalFall {
  0% {
    top: -14%;
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
  }

  8% {
    opacity: 0.88;
  }

  45% {
    transform: translate3d(var(--petal-sway), 0, 0) rotate(calc(var(--petal-spin) * 0.55)) scale(1);
  }

  92% {
    opacity: 0.82;
  }

  100% {
    top: 112%;
    opacity: 0;
    transform: translate3d(calc(var(--petal-sway) * -0.45), 0, 0) rotate(var(--petal-spin)) scale(0.86);
  }
}

@keyframes carDriveIn {
  0% {
    opacity: 0;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.16));
    transform: translate3d(calc(var(--car-entry-direction, -1) * 72%), 18%, 0)
      rotate(calc(var(--car-entry-direction, -1) * -7deg))
      scale(0.86);
  }

  68% {
    opacity: 1;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.3));
    transform: translate3d(calc(var(--car-entry-direction, -1) * -4%), -3%, 0)
      rotate(calc(var(--car-entry-direction, -1) * 1.2deg))
      scale(1.04);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.28));
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

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

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

@keyframes routeSubtitleShimmer {
  0% {
    background-position: 130% 50%;
  }
  48% {
    background-position: -35% 50%;
  }
  100% {
    background-position: -35% 50%;
  }
}

@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) {
  .blessing-emblem {
    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: 3.25cqw;
  }

  .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(72px, 19vw, 118px);
    padding: 0 0.85rem;
  }

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

  .hero-connector {
    margin: 0.35rem 0;
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    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 {
    color: #fff6da;
    font-size: clamp(1.02rem, 4.25vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 2px 8px rgba(11, 35, 30, 0.42);
  }

  .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(20, 72, 61, 0.72), rgba(20, 72, 61, 0.5));
    box-shadow: 0 14px 28px rgba(8, 34, 30, 0.2);
  }

  .blessing-role {
    margin-bottom: 0.7rem;
    color: #f2c46d;
    font-size: clamp(0.8rem, 3.3vw, 0.96rem);
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow: 0 2px 8px rgba(11, 35, 30, 0.36);
  }

  .blessing-details {
    gap: 0.55rem;
  }

  .blessing-copy {
    width: calc(100vw - 1.25rem);
    margin-bottom: 1.55rem;
    padding: 0 0.65rem;
  }

  .ganesh-line {
    max-width: calc(100vw - 2rem);
    font-size: clamp(1.65rem, 8vw, 2.45rem);
    line-height: 1.05;
  }

  .with-love-line {
    max-width: 31ch;
    margin-bottom: 1.15rem;
    font-size: clamp(1.05rem, 4.9vw, 1.45rem);
    line-height: 1.18;
  }

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

  .invite-copy .eyebrow,
  .invite-copy .support-copy {
    color: #fff6dc;
    font-weight: 700;
    text-shadow: 0 2px 0 rgba(33, 79, 67, 0.54), 0 7px 18px rgba(8, 35, 31, 0.36);
  }

  .invite-copy {
    width: calc(100vw - 1.5rem);
    padding: 0 0.85rem;
  }

  .invite-copy .eyebrow {
    max-width: calc(100vw - 1.5rem);
    margin-bottom: 1.4rem;
    padding: 0;
    font-size: clamp(1.08rem, 5.1vw, 1.45rem);
    line-height: 1.18;
    letter-spacing: 0.03em;
  }

  .couple-name {
    max-width: calc(100vw - 2rem);
    padding: 0 0.35rem;
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    line-height: 1;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .couple-family-details {
    max-width: calc(100vw - 2rem);
    margin: 0.35rem auto 1.25rem;
    font-size: clamp(0.94rem, 4.1vw, 1.16rem);
    line-height: 1.16;
  }

  .family-detail-line {
    margin-bottom: 0.55rem;
  }

  .family-detail-label {
    font-size: 0.9em;
  }

  .family-detail-names {
    font-size: 1em;
  }

.family-detail-relation,
.family-detail-person {
  display: block;
}

.invite-line span {
  display: inline-block;
}

.invite-line .no-break-line {
  white-space: nowrap;
}

.family-detail-paren {
  display: block;
}

  .family-detail-person {
    white-space: nowrap;
  }

  .couple-ampersand {
    width: min(100%, 17rem);
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .couple-ampersand::before,
  .couple-ampersand::after {
    width: 25%;
  }

  .support-copy {
    max-width: 26ch;
    margin-bottom: 2.4rem !important;
    font-size: clamp(1.02rem, 4.6vw, 1.3rem);
    letter-spacing: 0.09em;
  }

  .section-yellow {
    min-height: 720px;
    padding-top: clamp(7rem, 32vw, 11rem);
    padding-bottom: 4rem;
  }

  .section-yellow .section-shell {
    padding-top: clamp(5.5rem, 24vw, 8.5rem);
  }

  .family-flip-block {
    padding: 0 1rem;
  }

  .family-flip-eyebrow {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 4.8vw, 1.3rem);
    letter-spacing: 0.06em;
  }

  .family-flip-frame {
    height: min(122vw, 34rem);
  }

  .family-card-content {
    padding: 1.05rem 1.1rem;
  }

  .family-card-content h3 {
    width: min(100%, 11ch);
    font-size: clamp(1.75rem, 7.6vw, 2.75rem);
    line-height: 1.02;
  }

  .family-card-content h3.is-long-family-title {
    width: min(100%, 16ch);
    font-size: clamp(1.46rem, 6.2vw, 2.25rem);
    line-height: 1.05;
  }

  .family-card-content.is-dense-family-card {
    gap: 0;
  }

  .family-card-lines {
    width: min(100%, 20rem);
    gap: 0.38rem;
  }

  .family-card-lines p {
    font-size: clamp(1.08rem, 4.75vw, 1.46rem);
    line-height: 1.14;
  }

  .family-card-content.is-little-stars-card .family-card-lines p {
    font-size: clamp(1.35rem, 6vw, 1.82rem);
  }

  .invite-save-date {
    width: 100%;
    margin: 1rem auto 1.35rem;
  }

  .invite-save-date .save-date-eyebrow {
    font-size: clamp(1.02rem, 4.6vw, 1.3rem);
    line-height: 1.15;
  }

  .invite-save-date .save-date-title {
    font-size: clamp(2.35rem, 11.5vw, 3.8rem);
  }

  .invite-save-date .save-date-hint {
    max-width: 28ch;
    margin-bottom: 1.4rem;
    font-size: clamp(1.12rem, 5vw, 1.48rem);
    line-height: 1.18;
  }

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

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

  .control-button {
    right: 1rem;
    bottom: 1rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .music-toggle {
    right: auto;
    left: 1rem;
  }

  .auto-scroll-toggle {
    right: 1rem;
  }

  .scroll-speed-controls {
    right: 4.65rem;
    bottom: 1.3rem;
  }

  .scroll-speed-button {
    min-width: 1.85rem;
    font-size: 0.64rem;
    padding: 0.4rem 0.32rem;
  }

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

  .events-grid {
    margin-top: 0.9rem;
    margin-bottom: 4.5rem;
  }

  .event-card-copy {
    padding: 7% 15% 9%;
  }

  .event-card-copy::before {
    content: none;
  }

  .event-title {
    font-size: clamp(1.4rem, 6.6vw, 2rem);
    letter-spacing: 0.01em;
    line-height: 0.94;
  }

  .event-title.is-long-title {
    font-size: clamp(1.08rem, 5.2vw, 1.5rem);
    line-height: 0.94;
  }

  .event-title.is-very-long-title {
    font-size: clamp(0.96rem, 4.55vw, 1.28rem);
    line-height: 0.96;
  }

  .event-title.is-amp-title {
    font-size: clamp(1.45rem, 6.95vw, 2rem);
    line-height: 0.9;
  }

  .event-title.is-nachde-title {
    font-size: clamp(1.45rem, 6.95vw, 2rem);
    line-height: 0.9;
  }

  .event-meta,
  .event-link {
    font-size: clamp(0.86rem, 3.9vw, 1.1rem);
    letter-spacing: 0.01em;
    line-height: 1.04;
  }

  .event-venue {
    font-size: clamp(0.86rem, 3.9vw, 1.1rem) !important;
    line-height: 1.04;
  }

  .event-venue.is-long-venue {
    font-size: clamp(0.76rem, 3.45vw, 0.96rem) !important;
    letter-spacing: 0.005em;
    line-height: 1.04;
  }

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

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

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

  .route-block .cta-title,
  .rsvp-block .cta-title {
    max-width: 10ch;
    font-size: clamp(2.35rem, 12vw, 4.1rem);
    line-height: 0.94;
    letter-spacing: 0.08em;
  }

  .rsvp-block .cta-title {
    font-size: clamp(1.68rem, 8.5vw, 2.95rem);
  }

  .story-title,
  .family-route-block .cta-title {
    font-size: clamp(1.68rem, 8.5vw, 2.95rem);
    line-height: 0.94;
    letter-spacing: 0.08em;
  }

  .invite-line .no-break-line {
    width: calc(100vw - 1rem);
    max-width: none;
    font-size: clamp(0.58rem, 3.05vw, 0.98rem) !important;
    letter-spacing: 0;
  }

  .with-love-line .no-break-line {
    width: max-content;
    max-width: calc(100vw - 1rem);
    font-size: clamp(1.08rem, 4.6vw, 1.42rem) !important;
    letter-spacing: 0.01em;
  }

  .route-block .cta-subtitle,
  .rsvp-block .cta-subtitle {
    max-width: 22ch;
    font-size: clamp(1.02rem, 5vw, 1.42rem);
    line-height: 1.2;
    letter-spacing: 0.13em;
  }

  .route-block .cta-subtitle {
    font-size: clamp(1.28rem, 6vw, 1.72rem);
    letter-spacing: 0.1em;
  }

  .family-route-block .cta-subtitle {
    font-size: clamp(1.45rem, 6.6vw, 1.95rem);
    letter-spacing: 0.09em;
  }

  .pulse-link {
    width: clamp(5.5rem, 25vw, 7.2rem);
    height: clamp(5.5rem, 25vw, 7.2rem);
  }

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

  .section-pink {
    padding-bottom: 7rem;
  }

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

  .car-image {
    width: 92%;
  }

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

  .car-frame-three .car-image {
    width: 90%;
  }

  .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; }
}

/* ═══════════════════════════════════════════════════
   SAVE THE DATE — SCRATCH CARD SECTION
   ═══════════════════════════════════════════════════ */

.save-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6cqw 14cqw;
  text-align: center;
}

.save-date-eyebrow {
  margin: 0 0 1.5cqw;
  font-family: "Gotu", sans-serif;
  font-size: clamp(0.85rem, 1.8cqw, 1.4rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.85;
}

.save-date-title {
  margin: 0 0 2.5cqw;
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(3rem, 9cqw, 7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--olive);
  line-height: 1;
}

.save-date-hint {
  margin: 0 0 6cqw;
  font-family: "Gotu", sans-serif;
  font-size: clamp(0.8rem, 1.6cqw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.7;
}

/* Row of 3 coins */
.scratch-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 4cqw, 3.5rem);
  width: 100%;
  flex-wrap: nowrap;
}

.scratch-coin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  max-width: clamp(96px, 18cqw, 260px);
}

.scratch-label-above {
  font-family: "Cormorant", serif;
  font-size: clamp(0.92rem, 2.05cqw, 1.35rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 800;
  opacity: 0.92;
}

/* The coin container */
.scratch-coin {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.14),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  /* background shows through as the "revealed" content */
  background: linear-gradient(135deg, #fdf6e3 0%, #f8f0d8 100%);
}

/* Hidden date text beneath the scratch layer */
.scratch-hidden-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Upright", "Cormorant", serif;
  font-size: clamp(1.9rem, 4.2cqw, 4.6rem);
  color: #8e2f2a;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 246, 218, 0.88), 0 4px 9px rgba(60, 25, 20, 0.16);
  pointer-events: none;
  z-index: 1;
}

/* Canvas sits on top, user scratches it away */
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 2;
  touch-action: none;
  cursor: crosshair;
}

/* Celebration message shown after all 3 are revealed */
.scratch-complete-msg {
  margin: 5cqw 0 0;
  font-family: "Cormorant", serif;
  font-size: clamp(1.2rem, 2.8cqw, 2rem);
  color: var(--green-deep);
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.scratch-complete-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .scratch-row {
    gap: clamp(0.75rem, 4vw, 1.5rem);
  }

  .scratch-coin-wrap {
    max-width: clamp(72px, 27vw, 120px);
  }

  .scratch-hidden-text {
    font-size: clamp(1.2rem, 5.4vw, 1.85rem);
  }

  .scratch-label-above {
    font-size: clamp(0.82rem, 3.5vw, 1.08rem);
    letter-spacing: 0.1em;
  }

  .save-date-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }
}
