@font-face {
  font-family: "ArmAllegroU";
  src: url("fonts/ArmAllegroU.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "ArTar";
  src: url("fonts/ArTar_TumanianDzeragir_U.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "romanuni";
  src: url("fonts/romanuni.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SHK";
  src: url("fonts/SHK_Dzeragir.otf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VSTM";
  src: url("fonts/VS&TM_1_U.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VSTMG";
  src: url("fonts/VSTMGoudU.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f1ee;
  --panel: #f2ede6;
  --ink: #1f1f1f;
  --muted: rgba(31, 31, 31, 0.68);
  --muted-strong: rgba(31, 31, 31, 0.9);
  --light: #f5f4f0;
  --dark: #2a2a2a;
  --dark-soft: rgba(42, 42, 42, 0.86);
  --white: #f7f5f3;
  --line: rgba(255, 255, 255, 0.4);
  --shadow: rgba(0, 0, 0, 0.18);
  --primary: #dcd3c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lang-gate-open,
html.lang-gate-open body {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Keeps every custom-font element (Great Vibes, Cormorant Garamond,
   Montserrat) invisible until the real fonts have finished loading, so
   nobody sees a flash of the fallback system font first. */
html.fonts-loaded body {
  opacity: 1;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Support for Safari */
  transition: opacity 0.5s ease;
}

.language-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.language-gate-inner {
  width: min(100%, 25rem);
  animation: fadeUp 0.6s ease both;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 1.6rem;
  padding: clamp(2.4rem, 5vw, 3.2rem) 2rem 2.4rem;
  box-shadow: 0 26px 60px rgba(31, 31, 31, 0.14);
  backdrop-filter: blur(10px);
}

.language-gate-kicker {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--ink);
}

.language-gate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem auto 1.7rem;
}

.language-gate-divider::before,
.language-gate-divider::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(31, 31, 31, 0.22);
}

.language-gate-divider span {
  font-size: 1rem;
  line-height: 1;
  color: rgba(31, 31, 31, 0.45);
}

.language-gate-title {
  margin: 0 0 2.2rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: rgba(31, 31, 31, 0.72);
}

.language-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.language-gate-btn {
  appearance: none;
  border: 1px solid rgba(31, 31, 31, 0.25);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.04);
  color: var(--ink);
  padding: 0.9rem 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.language-gate-btn:hover,
.language-gate-btn:focus-visible {
  background: #1d1d1d;
  border-color: #1d1d1d;
  color: #f8f7f4;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #000;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(0.9);
  background-size: cover;
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA4KCw0LCQ4NDA0QDw4RFiQXFhQUFiwgIRokNC43NjMuMjI6QVNGOj1OPjIySGJJTlZYXV5dOEVmbWVabFNbXVn/2wBDAQ8QEBYTFioXFypZOzI7WVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVn/wAARCAA4ACADASIAAhEBAxEB/8QAGgAAAgMBAQAAAAAAAAAAAAAAAwUAAgYEAf/EACMQAAICAgEEAgMAAAAAAAAAAAECAAQDESEFEiIxE0EUI1H/xAAXAQEBAQEAAAAAAAAAAAAAAAABAgAE/8QAGhEBAQACAwAAAAAAAAAAAAAAAAEhQQIRMf/aAAwDAQACEQMRAD8A1ZlCJZ2CjZgBaxFu0MNzgdCzaHuCGRCdBhueXWIrsVP1M3Wy5/yz5EjcZGP+s5jiqMR/JkKFvLkucsfc1fW1+Sqyj3qY/p1fLjtklTrcuccCVtMn7KevvUV9OqsLLFxxuMKz+AUzpUKvIEmRXbhOc5jojiUdcWNS3aAZbBoLOa+/joSpcJsyJVcvkJHqMhyIt6cAE3GAcKOTCGl1ViV5gLyE+pJJp4djVdriEK/c6eMkkw2//9k=");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.12);
}

.hero-content,
.hero-cta,
.lang-switcher,
.mute-btn {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding-top: clamp(6rem, 18vh, 10rem);
  width: min(100%, 74rem);
  animation: fadeUp 0.8s ease both;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.7rem;
}

.hero-name {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.1rem auto 1.3rem;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  display: block;
  width: clamp(3.3rem, 8vw, 6rem);
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.hero-divider span {
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

.hero-date {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 400;
}

.hero-cta {
  margin-bottom: clamp(2.5rem, 10vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  padding: 0.2rem 0;
  cursor: pointer;
}

.hero-cta svg {
  width: 1.2rem;
  height: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: bounce 1.6s ease-in-out infinite;
}

.lang-switcher {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 20;
}

.lang-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.mute-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.4rem;
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 20, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 18;
}

.mute-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

section {
  position: relative;
}

.invitation {
  background: rgba(248, 247, 244, 1);
  padding: 2.8rem 1.2rem 0;
}

.invitation-inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.invitation-title {
  margin: 0 auto;
  max-width: 52rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.5;
  color: rgba(31, 31, 31, 0.75);
}

.scroll-art {
  width: min(100%, 12rem);
  margin: 1rem auto 0;
  animation: float 4s ease-in-out infinite;
}

.countdown {
  background: var(--dark);
  color: rgba(242, 237, 230, 0.9);
  padding: 3.4rem 1rem 2.8rem;
}

.countdown-inner {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}

.countdown-heading {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 400;
  color: #f2ede6;
}

.countdown-subtitle {
  margin: 0.5rem 0 2rem;
  font-size: 1rem;
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  color: rgba(242, 237, 230, 0.8);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 3rem);
  flex-wrap: wrap;
}

.countdown-item {
  min-width: 3rem;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  color: #f2ede6;
}

.countdown-label {
  display: block;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.54rem;
  color: rgba(242, 237, 230, 0.7);
}

.divider-light {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.divider-light::before,
.divider-light::after {
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  background: rgba(242, 237, 230, 0.35);
}

.divider-light span {
  color: rgba(242, 237, 230, 0.52);
  font-size: 1rem;
}

.program {
  background: #2a2a2a;
  color: #1c1c1c;
  padding: 2rem 0.75rem;
  margin-top: -1px;
}

.program-inner {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
  background: #f7f4ee;
  border: 1px solid rgba(42, 42, 42, 0.12);
  border-radius: 9999px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 5rem 1rem 2rem;
  position: relative;
  aspect-ratio: 1/2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.program .section-kicker {
  width: 303px;
  margin: 0 0 0.5rem;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--dark);
  font-family: "Great Vibes", cursive;
  letter-spacing: normal;
  text-transform: none;
}

.program .section-title {
  width: 303px;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.025em;
  color: rgba(42, 42, 42, 0.8);
}

.section-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 237, 230, 0.7);
}

.section-title {
  margin: 0.6rem 0 0.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #f2ede6;
  font-weight: 600;
}

.section-subtitle {
  margin: 0;
  color: #f2ede6b3;
  font-size: 1rem;
  font-style: italic;
}

.program-cards {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.program-card {
  width: 260px;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #1f1f1f;
}

.program-card-content {
  display: contents;
}

.program-card-heading {
  display: contents;
}

.program-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2ede6;
  border: 2px solid rgba(42, 42, 42, 0.2);
  color: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.program-card h3 {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  color: #2a2a2a;
}

.program-meta {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.375rem 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #2a2a2a;
  color: #f2ede6;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.program-card p {
  margin: 0;
  max-width: 16rem;
  padding: 0 0.25rem;
  color: rgba(42, 42, 42, 0.7);
  line-height: 1.5;
  font-size: 0.75rem;
}

@keyframes programHeartbeat {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.12);
  }
}

.program-image {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.program-image img {
  max-width: 12rem;
  height: auto;
}

.gallery {
  background: #f8f7f4;
  padding: 1rem 0 2rem;
  overflow: hidden;
}

.gallery-inner {
  margin: 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 78rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.gallery-header p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.7);
}

.gallery-header h2 {
  margin: 0.5rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.gallery-marquee {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee 60s linear infinite;
}

/* Let guests speed the gallery up simply by holding their pointer/finger
   over it, while leaving the normal automatic pace unchanged otherwise. */
.gallery-marquee:hover .gallery-track,
.gallery-marquee:active .gallery-track {
  animation-duration: 12s;
}

.gallery-marquee:active {
  cursor: grabbing;
}

.gallery-track img {
  width: clamp(180px, 20vw, 260px);
  height: clamp(270px, 36vw, 390px);
  object-fit: cover;
  border-radius: 0.8rem;
  flex-shrink: 0;
  filter: saturate(0.9) contrast(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.rsvp {
  position: relative;
  background: #2a2a2a;
  color: rgba(242, 237, 230, 0.9);
  padding: 2rem 1rem 1rem;
}

.rsvp-inner {
  max-width: 42rem;
  margin: 2rem auto auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.3rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: #1f1f1f;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 1.2rem;
  color: rgb(242 237 230);
}

.rsvp-header p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.rsvp-header h2 {
  margin: 0.5rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.rsvp-deadline {
  margin: 0 0 1.2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.rsvp-note {
  margin: 0.8rem 0 0;
  text-align: center;
  color: rgba(31, 31, 31, 0.7);
  font-style: italic;
  line-height: 1.6;
  font-size: 0.85rem;
}

.rsvp-form {
  display: grid;
  padding-top: 0.5rem;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(31, 31, 31, 0.8);
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea {
  width: 100%;
  border: 1px solid rgba(31, 31, 31, 0.2);
  border-radius: 0.78rem;
  background: rgba(31, 31, 31, 0.05);
  color: #1f1f1f;
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.guest-count-field[hidden] {
  display: none;
}

.choice-list {
  display: inline-flex;
  white-space: nowrap;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.choice {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 0.55rem;
  color: rgba(31, 31, 31, 0.82);
  font-size: 0.97rem;
}

.choice-label {
  cursor: pointer;
  text-align: left;
}

.choice input {
  accent-color: #1a1a1a;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  min-height: 3.2rem;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #1d1d1d;
  color: #f8f7f4;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.loading-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid rgba(248, 247, 244, 0.35);
  border-top-color: #f8f7f4;
  border-radius: 50%;
  animation: submitSpin 0.8s linear infinite;
}

.rsvp-completion[hidden] {
  display: none;
}

.rsvp-completion {
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
}

.rsvp-completion-title,
.rsvp-completion-copy,
.rsvp-completion-signature,
.rsvp-completion-note {
  opacity: 0;
  animation: rsvpFadeIn 0.8s ease-out forwards;
}

.rsvp-completion-title {
  margin: 0 0 2rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1;
  animation-delay: 0.2s;
}

.rsvp-completion-copy {
  max-width: 42rem;
  animation-delay: 0.5s;
}

.rsvp-completion-copy p {
  margin: 0 0 1.5rem;
  color: rgba(31, 31, 31, 0.9);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.rsvp-completion-copy .rsvp-completion-venue {
  color: rgba(31, 31, 31, 0.62);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.rsvp-completion-signature {
  margin: 1rem 0 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  animation-delay: 0.8s;
}

.rsvp-completion-note {
  max-width: 28rem;
  margin: 3rem 0 0;
  color: rgba(31, 31, 31, 0.62);
  font-size: 0.8rem;
  line-height: 1.6;
  animation-delay: 1.1s;
}

.rsvp.is-complete {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #f8f7f4;
  color: var(--ink);
}

.rsvp.is-complete .rsvp-inner {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.rsvp.is-complete .rsvp-header,
.rsvp.is-complete .rsvp-deadline,
.rsvp.is-complete .rsvp-form {
  display: none;
}

.rsvp-flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease-in-out;
}

.rsvp-flash.is-visible {
  opacity: 1;
}

@keyframes rsvpFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes submitSpin {
  to {
    transform: rotate(360deg);
  }
}

.details {
  background: var(--dark);
  color: rgba(242, 237, 230, 0.9);
  padding: 1.4rem 1rem 4rem;
}

.details-inner {
  max-width: 66rem;
  margin: 0 auto;
  text-align: center;
}

.details-inner .section-kicker,
.details-inner .section-title,
.details-inner {
  color: rgba(242, 237, 230, 0.9);
}

.details-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.detail-card {
  background: rgba(242, 237, 230, 0.96);
  color: var(--ink);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem 1.3rem;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.detail-card h3 {
  margin: 0.9rem 0 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  font-weight: 600;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: rgba(31, 31, 31, 0.72);
}

.detail-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.detail-map {
  margin-top: 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 0;
  width: 100%;
  min-height: 13rem;
  background: #ddd;
}

.light-overlay {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: brightness(140%);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  min-height: 2.7rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 31, 0.25);
  background: transparent;
  color: var(--ink);
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  cursor: pointer;
  text-decoration: none;
}

.site-footer {
  background: #1c1c1c;
  color: #f2ede6;
  text-align: center;
  padding: 1.2rem 1rem 1.4rem;
}

.site-footer h2 {
  margin: 0 0 0.35rem;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.site-footer p {
  margin: 0;
  color: rgba(242, 237, 230, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .lang-switcher {
    top: 0.8rem;
    right: 0.8rem;
  }

  .hero-date,
  .hero-kicker,
  .hero-cta button,
  .section-kicker,
  .rsvp-header p,
  .lang-btn,
  .submit-btn,
  .map-link {
    letter-spacing: 0.14em;
  }

  .program-cards,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .program-cards {
    position: relative;
    width: min(100%, 20rem);
    margin-top: 2.5rem;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2.25rem;
  }

  .program .section-kicker,
  .program .section-title {
    width: 100%;
    max-width: 303px;
  }

  .program-inner {
    aspect-ratio: 1/2.5;
  }

  .program-card {
    position: relative;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    width: 100%;
    column-gap: 1rem;
    align-items: start;
    text-align: left;
  }

  .program-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.75rem;
    bottom: -2rem;
    left: 1.375rem;
    width: 1px;
    background: rgba(42, 42, 42, 0.8);
  }

  .program-card-icon {
    grid-row: 1 / span 2;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    z-index: 1;
  }

  .program-card-content,
  .program-card-heading {
    display: block;
  }

  .program-card-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0 0 0.125rem;
  }

  .program-meta {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .program-card h3 {
    font-size: 1.125rem;
    line-height: 1.35;
  }

  .program-card p {
    max-width: none;
    padding: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    line-height: 1.35;
  }

  .program-cards::after {
    content: "";
    position: absolute;
    left: 1.375rem;
    bottom: 0;
    transform: translateX(-50%);
    animation: programHeartbeat 1.5s ease-in-out infinite;

    /* Force physical layout block dimensions */
    display: block;
    width: 1.5rem; /* Matches your original 1.5rem font-size */
    height: 1.5rem;
    z-index: 10; /* Ensures it sits cleanly above card backgrounds */

    /* Your Lucide heart SVG with hardcoded #2a2a2a color (%232a2a2a) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232a2a2a' stroke='%232a2a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .gallery-track img {
    width: 200px;
    height: 300px;
  }
}

/* Only triggers when Armenian is selected */
html[lang="hy"] .language-gate-kicker,
html[lang="hy"] .hero-name,
html[lang="hy"] .hero-title,
html[lang="hy"] .countdown-heading,
html[lang="hy"] .countdown-value,
html[lang="hy"] .program .section-kicker,
html[lang="hy"] .rsvp-completion-title,
html[lang="hy"] .rsvp-completion-signature,
html[lang="hy"] .site-footer h2 {
  font-weight: 100;
  margin-top: 1rem;
  transform: translateY(-1rem);
  font-family: "ArmAllegroU", serif !important;
  letter-spacing: normal !important; /* Armenian decorative fonts don't need wide western spacing */
}
html[lang="hy"] .hero-cta button,
html[lang="hy"] .hero-kicker,
html[lang="hy"] .hero-date {
  letter-spacing: 0.1em;
}

html[lang="hy"] .invitation-title {
  font-family: "SHK", serif;
}
html[lang="hy"] .program-card h3,
html[lang="hy"] .program-card-content p,
html[lang="hy"] .rsvp-deadline {
  font-style: italic;
}

html[lang="hy"] .gallery-header p {
  letter-spacing: 0em;
  font-style: oblique;
}

html[lang="hy"] .details-inner h2,
html[lang="hy"] .rsvp-header h2,
html[lang="hy"] .gallery-header h2 {
  font-style: italic;
  letter-spacing: 0.01em;
  font-family: "SHK", serif;
  font-weight: 100;
  font-size: clamp(2.6rem, 4vw, 3.5rem);
}

html[lang="hy"] .rsvp-completion-title {
  margin-bottom: 4rem;
}