/* =========================================
   FONT DECLARATIONS
   ========================================= */
@font-face {
  font-family: "Belgiano Serif";
  src: url("assets/font/Belgiano-Serif-2.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Italianno";
  src: url("assets/font/Italianno-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alex Brush";
  src: url("assets/font/AlexBrush-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* User needs to convert Inter-Regular to woff2 and save to assets/font/ */
@font-face {
  font-family: "Inter";
  src: url("assets/font/Inter-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* User needs to convert PlayfairDisplay-Italic to woff2 and save to assets/font/ */
@font-face {
  font-family: "Playfair Display";
  src: url("assets/font/PlayfairDisplay-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("assets/font/GreatVibes-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   CSS VARIABLES — Elegant Palette
   ========================================= */
:root {
  /* Brand Palette */
  --color-ash-grey: #B6BBB5;
  --color-classic-cream: #f5eedc;
  --color-powder-green: #b2c2b6;
  --color-dusty-green: #7d9182;
  --color-dusk-green: #3a4a3e;
  --color-baltic-green: #738a6e;

  /* Semantic Roles (Minimal/White approach) */
  --color-primary: var(--color-dusk-green);
  --color-secondary: var(--color-baltic-green);
  --color-accent: var(--color-dusty-green);
  --color-background: transparent;
  /* Clean white background */
  --color-surface: rgba(255, 255, 255, 0.65);
  /* White cards */
  --color-surface-alt: rgba(255, 255, 255, 0.4);
  /* Very subtle off-white */
  --color-text: var(--color-dusk-green);

  /* Typography */
  --font-primary: "Belgiano Serif", serif;
  /* Default for whole site and sponsor names */
  --font-secondary: "Inter", system-ui, sans-serif;
  /* Long texts */
  --font-header-1: "Italianno", cursive;
  /* Headers */
  --font-header-2: "Alex Brush", cursive;
  /* Alternative Headers */
  --font-accent: "Playfair Display", serif;
  /* Elegant Quotes / Subheadings */

  /* Font Sizes */
  --text-landing-names: clamp(48px, 7vw, 110px);
  --text-hero-title: clamp(36px, 7vw, 96px);

  /* Visual Effects */
  --shadow-soft: 0 10px 40px rgba(58, 74, 62, 0.08);
  --shadow-nav: 0 4px 20px rgba(58, 74, 62, 0.05);
}

/* =========================================
   BASE RESET
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background: #dae3db;
  color: var(--color-text);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography Utility Classes */
.font-primary {
  font-family: var(--font-primary);
}

.font-body {
  font-family: var(--font-secondary);
}

.font-header-1 {
  font-family: var(--font-header-1);
  font-weight: normal;
}

.font-header-2 {
  font-family: var(--font-header-2);
  font-weight: normal;
}

.font-accent {
  font-family: var(--font-accent);
  font-style: italic;
}

/* Apply header fonts where needed */
h1,
h2,
h3 {
  font-family: var(--font-header-1);
  font-weight: normal;
}

/* =========================================
   LOADING SCREEN
   ========================================= */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FAF6F1;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Subtle elegant gradient background for loader */
#loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(178, 194, 182, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 88% 85%, rgba(245, 238, 220, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 5%, rgba(125, 145, 130, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(250, 246, 241, 1) 0%, rgba(245, 238, 228, 0.85) 100%);
  pointer-events: none;
}

.loading__monogram {
  width: clamp(180px, 25vw, 280px);
  height: auto;
  position: relative;
  z-index: 1;
  animation: monogramPulse 3s ease-in-out infinite;
}

@keyframes monogramPulse {

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

  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes floatPetal {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}



/* Elegant loader animation below monogram */
.loading__spinner {
  margin-top: 2rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
}

.loading__spinner::before,
.loading__spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.loading__spinner::before {
  border-top-color: var(--color-dusty-green);
  border-bottom-color: var(--color-classic-cream);
  animation: spin 2s linear infinite;
}

.loading__spinner::after {
  border-left-color: var(--color-dusk-green);
  border-right-color: var(--color-powder-green);
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

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

/* =========================================
   LANDING PAGE
   ========================================= */
.landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e2e24;
  /* Deep sage fallback */
  overflow: hidden;
  will-change: opacity;
}

/* Elegant Animated Sage Backdrop on Large Screens */
.landing__bg {
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(circle at 50% 50%, #2e4436 0%, #1c2b21 70%, #15221a 100%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Ambient animated glowing aurora orbs behind the invitation card */
.landing__bg::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 15%;
  width: clamp(350px, 45vw, 600px);
  height: clamp(350px, 45vw, 600px);
  background: radial-gradient(circle, rgba(142, 165, 139, 0.28) 0%, rgba(115, 138, 110, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: ambientFloat1 18s ease-in-out infinite alternate;
}

.landing__bg::after {
  content: "";
  position: absolute;
  bottom: 8%;
  right: 12%;
  width: clamp(380px, 50vw, 650px);
  height: clamp(380px, 50vw, 650px);
  background: radial-gradient(circle, rgba(190, 207, 188, 0.22) 0%, rgba(78, 107, 88, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: ambientFloat2 22s ease-in-out infinite alternate;
}

@keyframes ambientFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(80px, 60px) scale(1.15);
    opacity: 1;
  }

  100% {
    transform: translate(-50px, 100px) scale(0.95);
    opacity: 0.6;
  }
}

@keyframes ambientFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }

  50% {
    transform: translate(-90px, -70px) scale(1.18);
    opacity: 0.95;
  }

  100% {
    transform: translate(60px, -90px) scale(0.9);
    opacity: 0.55;
  }
}

/* ── Invitation Card ── */
.landing__card {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .landing__card {
    /* Larger size on desktop & refined subtle border radius */
    width: min(94vw, 680px);
    height: min(94vh, 920px);
    border-radius: 12px;
    box-shadow:
      0 28px 70px -10px rgba(10, 20, 14, 0.75),
      0 0 0 1px rgba(218, 227, 219, 0.28),
      0 0 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  }
}

@media (min-width: 1280px) {
  .landing__card {
    width: min(92vw, 740px);
    height: min(93vh, 960px);
  }
}

.landing__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e2e24;
}

.landing__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Rich sage-tinted gradient overlay that gives the card a bespoke wedding mood and perfect text contrast */
.landing__image-overlay {
  background: linear-gradient(180deg,
      rgba(38, 58, 47, 0.45) 0%,
      rgba(45, 68, 54, 0.55) 45%,
      rgba(25, 42, 33, 0.72) 100%);
}

.landing__flower {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.landing__flower--top-left {
  top: -6px;
  left: -6px;
  width: clamp(160px, 26vw, 280px);
}

.landing__flower--top-edge {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 45vw, 500px);
  opacity: 0.55;
}

.landing__flower--left-edge {
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: clamp(100px, 14vw, 180px);
  opacity: 0.55;
}

.landing__flower--bottom-right {
  bottom: -6px;
  right: -6px;
  width: clamp(150px, 24vw, 260px);
  transform: rotate(180deg);
}

.landing__content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.landing__names {
  font-size: var(--text-landing-names);
  color: #ffffff;
  line-height: 0.95;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  text-shadow: 0 4px 24px rgba(15, 28, 20, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.landing.is-leaving {
  pointer-events: none;
}

/* ─── Landing Divider (line–diamond–line) ─── */
.landing-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  margin: 1.5rem 0;
}

.landing-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.landing-divider__diamond {
  width: 6px;
  height: 6px;
  background: #d9e5d7;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Landing petals canvas — sits inside the landing at z-5 */
#landing-petals-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

/* Individual petal elements injected by JS */
.landing-petal {
  position: absolute;
  top: -40px;
  border-radius: 80% 20% 80% 20%;
  opacity: 0;
  animation: landingPetalFall linear infinite;
}

@keyframes landingPetalFall {
  0% {
    transform: translateY(-40px) rotate(0deg) translateX(0px);
    opacity: 0;
  }

  5% {
    opacity: 0.55;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(110vh) rotate(720deg) translateX(60px);
    opacity: 0;
  }
}

/* =========================================
   MAIN CONTENT & SMART NAVBAR
   ========================================= */
.main-content {
  min-height: 100vh;
}

/* Navbar states */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Transparent state (top of page) */
.navbar--transparent {
  background-color: transparent !important;
  box-shadow: none !important;
}

.navbar--transparent .nav-link,
.navbar--transparent .nav-brand {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.elegant-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Dresscode hover animation */
.dresscode-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.dresscode-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(58, 74, 62, 0.1);
}

.color-circle {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-circle:hover {
  transform: translateY(-6px) scale(1.15);
}

.navbar--transparent .nav-logo {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Scrolled state (sticky) */
.navbar--scrolled {
  background-color: var(--color-surface) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav) !important;
}

.navbar--scrolled .nav-link,
.navbar--scrolled .nav-brand {
  color: var(--color-dusty-green) !important;
  text-shadow: none;
}

.navbar--scrolled .nav-countdown {
  color: var(--color-dusty-green) !important;
  background-color: rgba(58, 74, 62, 0.05) !important;
  border-color: rgba(58, 74, 62, 0.2) !important;
  box-shadow: none !important;
}

.navbar--scrolled .nav-countdown-dot {
  background-color: var(--color-dusty-green) !important;
}

.navbar--scrolled .nav-logo {
  filter: none;
}

#nav-countdown-wrapper {
  transition: opacity 0.4s ease;
}

/* Active Nav Link */
.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-classic-cream);
  transition: width 0.3s ease;
}

.nav-link.active::after {
  width: 100%;
}

.navbar--transparent .nav-link.active::after {
  background-color: #ffffff;
}

.hero-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  min-height: 90px;
  background: radial-gradient(130% 100% at 50% -10%,
      rgba(218, 227, 219, 0) 0%,
      rgba(218, 227, 219, 0) 55%,
      rgba(218, 227, 219, 0.45) 75%,
      rgba(218, 227, 219, 0.9) 92%,
      #dae3db 100%);
}

@media (min-width: 768px) {
  .hero-gradient {
    height: 18%;
    min-height: 120px;
    background: radial-gradient(75% 100% at 50% -10%,
        rgba(218, 227, 219, 0) 0%,
        rgba(218, 227, 219, 0) 60%,
        rgba(218, 227, 219, 0.5) 78%,
        rgba(218, 227, 219, 0.92) 94%,
        #dae3db 100%);
  }
}

.hero-countdown {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  justify-content: center;
  margin-top: 2rem;
}

.hero-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem clamp(0.8rem, 2vw, 1.5rem);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  min-width: clamp(70px, 15vw, 100px);
}

.hero-countdown-unit--mobile {
  background: rgba(58, 74, 62, 0.07);
  border: 1px solid rgba(58, 74, 62, 0.15);
  backdrop-filter: none;
}

.hero-countdown-unit--dark {
  background: rgba(58, 74, 62, 0.12);
  border: 1px solid rgba(178, 194, 182, 0.3);
  backdrop-filter: blur(4px);
}

.countdown-val--mobile {
  color: var(--color-baltic-green) !important;
}

.countdown-val--dark {
  color: #ffffff !important;
}

.countdown-lbl--dark {
  color: var(--color-dusty-green);
}

.hero-countdown--sm {
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.countdown-val--sm {
  font-size: clamp(20px, 2.5vw, 32px) !important;
}

.countdown-val {
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 48px);
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}

.countdown-lbl {
  font-family: var(--font-utility);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-dusk-green);
  margin-top: 0.5rem;
}

/* =========================================
   DECORATIVE ELEMENTS
   ========================================= */
.section-monogram {
  display: block;
  width: clamp(80px, 12vw, 120px);
  height: auto;
  margin: 0 auto 1.5rem;
}

.section-flower {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

/* ─── Section Divider (horizontal border images) ─── */
.section-divider {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.section-divider__img {
  width: 100%;
  max-width: 960px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.45;
  display: block;
  margin: 0 auto;
}

.section-divider--cont {
  height: 48px;
  /* Standard height for continuous borders */
  background-repeat: repeat-x;
  background-position: center;
  background-size: contain;
  opacity: 0.45;
}

/* Second declaration removed or merged */
.elegant-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Subtle elegant gradient backgrounds */



/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
  .hero-countdown {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hero-countdown-unit {
    min-width: calc(50% - 0.5rem);
    padding: 0.8rem;
  }

  .section-monogram {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .landing__names {
    font-size: 42px;
  }

  .hero-countdown-unit {
    padding: 0.5rem;
  }

  .countdown-val {
    font-size: 28px;
  }

  #dress-code-bg-text {
    font-size: clamp(40px, 12vw, 80px) !important;
  }
}


/* Dress Code Dynamic Styles */
/* Smooth transition on all text in dress-code section */
#dress-code h2,
#dress-code h4,
#dress-code p,
#dress-code span {
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* Only flip text outside of the cards (marked .dc-outer) to white on dark backgrounds */
#dress-code.is-dark .dc-outer {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#dress-code.is-dark .section-monogram {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#dress-code.is-dark #dress-code-bg-text {
  color: #ffffff !important;
  opacity: 0.1 !important;
}

#dress-code-bg-text {
  opacity: 0.05 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Alternating section background */
.bg-alt-tint {
  background-color: #c8d4ca;
}




/* RSVP Loader */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-dusty-green);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

/* RSVP Clean Underline Inputs */
.rsvp-input {
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: transparent !important;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.rsvp-input:focus,
.rsvp-textarea:focus,
#invitationCode:focus {
  outline: none !important;
  box-shadow: none !important;
}

#invitationCode:focus {
  border-bottom-color: var(--color-dusk-green) !important;
}

.rsvp-input:focus {
  border-bottom-color: #ccc !important;
}

.rsvp-input::placeholder {
  color: #aab4be;
}

/* Fix browser autofill styling */
.rsvp-input:-webkit-autofill,
.rsvp-input:-webkit-autofill:hover,
.rsvp-input:-webkit-autofill:focus,
.rsvp-input:-webkit-autofill:active,
#invitationCode:-webkit-autofill,
#invitationCode:-webkit-autofill:hover,
#invitationCode:-webkit-autofill:focus,
#invitationCode:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-baltic-green) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* RSVP Textarea (bordered box) */
.rsvp-textarea {
  border: 1px solid #ccc;
  background-color: transparent !important;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.rsvp-textarea:focus {
  border-color: #ccc !important;
}

.rsvp-textarea::placeholder {
  color: #aab4be;
}

/* =========================================
   SCROLL RIBBON CAROUSEL — Prenup Gallery
   ========================================= */

.ribbon-carousel-wrapper {
  position: relative;
  width: 100%;
}

.ribbon-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2.25rem 0 2.5rem;
}

/* Edge fades using overlay pseudo-elements instead of mask-image.
   mask-image forces iOS Safari to re-rasterize and re-mask all 24 slides every frame,
   dropping frames and causing severe scrolling lag. Pseudo-elements avoid this entirely. */
.ribbon-carousel::before,
.ribbon-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.ribbon-carousel::before {
  left: 0;
  background: linear-gradient(to right, #c8d4ca 0%, rgba(200, 212, 202, 0) 100%);
}

.ribbon-carousel::after {
  right: 0;
  background: linear-gradient(to left, #c8d4ca 0%, rgba(200, 212, 202, 0) 100%);
}

@media (min-width: 768px) {
  .ribbon-carousel::before,
  .ribbon-carousel::after {
    width: 80px;
  }
}

.ribbon-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ribbonMarquee 32s linear infinite;
  padding: 0.5rem 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 640px) {
  .ribbon-track {
    gap: 22px;
    animation-duration: 45s;
  }
}

.ribbon-carousel:hover .ribbon-track,
.ribbon-track.is-paused {
  animation-play-state: paused;
}

@keyframes ribbonMarquee {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.ribbon-slide {
  flex: 0 0 240px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(20, 36, 26, 0.08);
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  background: rgba(20, 36, 26, 0.08);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 640px) {
  .ribbon-slide {
    flex: 0 0 320px;
    height: 480px;
  }
}

@media (min-width: 1024px) {
  .ribbon-slide {
    flex: 0 0 360px;
    height: 540px;
  }
}

.ribbon-slide:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 10px 22px rgba(20, 36, 26, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
}

.ribbon-slide__photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ribbon-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ribbon-slide__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(0.9) brightness(0.55);
  transform: scale(1.12);
}

/* Disable the expensive blur backdrop on mobile — blur(18px) on 24 slides
   is the primary GPU bottleneck on iOS and low-end Android. */
@media (max-width: 1023px) {
  .ribbon-slide__backdrop {
    display: none;
  }
}

/* Subtle cinematic gradient vignette at bottom of photo */
.ribbon-slide__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 36, 26, 0) 65%,
    rgba(20, 36, 26, 0.35) 100%
  );
  pointer-events: none;
}

/* ── Photo Lightbox Modal ── */
#photoModal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#modalImg {
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-height: 90vh;
  max-width: 92vw;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

/* =========================================
   AUDIO VISUALIZER
   ========================================= */
@keyframes audioBar {

  0%,
  100% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1);
  }
}

.visualizer-bar {
  transform-origin: bottom;
  animation: audioBar 1s ease-in-out infinite;
}

#audio-visualizer.is-paused .visualizer-bar {
  animation-play-state: paused;
  transform: scaleY(0.2) !important;
}

/* Card Shine Animation */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 5s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -150%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Proposal Dialogue Box */
.proposal-dialog {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.proposal-dialog__question {
  text-align: left;
  border-left: 2px solid var(--color-baltic-green);
  padding: 0.5rem 1rem;
  margin: 0;
  background: linear-gradient(to right, rgba(115, 138, 110, 0.14) 0%, rgba(115, 138, 110, 0) 100%);
  border-radius: 0 0.5rem 0.5rem 0;
}

.proposal-dialog__bridge {
  text-align: center;
  margin: 0;
}

.proposal-dialog__answer {
  text-align: right;
  border-right: 2px solid var(--color-baltic-green);
  padding: 0.5rem 1rem;
  margin: 0;
  background: linear-gradient(to left, rgba(115, 138, 110, 0.14) 0%, rgba(115, 138, 110, 0) 100%);
  border-radius: 0.5rem 0 0 0.5rem;
}

/* Love Story Finale Floating / Gentle Heartbeat Pulse */
.finale-pulse {
  display: inline-block;
  animation: gentleFloatPulse 6s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes gentleFloatPulse {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.95;
  }
  30% {
    transform: translateY(-2px) scale(1.008);
    opacity: 1;
  }
  50% {
    transform: translateY(-3px) scale(1.015);
    opacity: 1;
  }
  70% {
    transform: translateY(-1.5px) scale(1.006);
    opacity: 0.98;
  }
}