:root {
  --ivory: #FAF7F2;
  --champagne: #E7D8C9;
  --forest: #2F4F4F;
  --sage: #8DA08C;
  --gold: #C2A675;
}

body {
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(250, 247, 242, 0.96), rgba(250, 247, 242, 0.96)), url('pattern.png');
  background-size: 100% 100%, 600px 600px;
  background-attachment: fixed;
  background-repeat: no-repeat, repeat;
}

#audio-progress {
  --progress-percent: 0%;
  --progress-color: rgba(194, 166, 117, 0.9);
  --track-color: rgba(47, 79, 79, 0.18);
  --thumb-color: var(--gold);
  appearance: none;
  width: 100%;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--progress-color) 0%,
    var(--progress-color) var(--progress-percent),
    var(--track-color) var(--progress-percent),
    var(--track-color) 100%
  );
  transition: background 0.15s linear;
}

#audio-progress:focus-visible {
  outline: 3px solid rgba(194, 166, 117, 0.4);
  outline-offset: 4px;
}

#audio-progress::-webkit-slider-runnable-track {
  height: 0.65rem;
  border-radius: 999px;
  background: transparent;
}

#audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(47, 79, 79, 0.3);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

#audio-progress::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

#audio-progress::-moz-range-track {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--track-color);
}

#audio-progress::-moz-range-progress {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--progress-color);
}

#audio-progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(47, 79, 79, 0.3);
  transition: transform 0.2s ease;
}

#audio-progress::-moz-range-thumb:active {
  transform: scale(1.05);
}

#audio-progress::-ms-track {
  height: 0.65rem;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

#audio-progress::-ms-fill-lower {
  background: var(--progress-color);
  border-radius: 999px;
}

#audio-progress::-ms-fill-upper {
  background: var(--track-color);
  border-radius: 999px;
}

#audio-progress::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(47, 79, 79, 0.3);
  transition: transform 0.2s ease;
}

#audio-progress::-ms-thumb:active {
  transform: scale(1.05);
}


.section-card {
  box-shadow: 0 38px 95px -28px rgba(47, 79, 79, 0.72), 0 22px 55px -32px rgba(47, 79, 79, 0.6);
  transition: box-shadow 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 42px 105px -30px rgba(47, 79, 79, 0.75), 0 26px 60px -34px rgba(47, 79, 79, 0.65);
}

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  margin-bottom: 1rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 20px -5px rgba(47, 79, 79, 0.1);
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 15px 30px -5px rgba(47, 79, 79, 0.2);
}

.gallery-image-wrapper {
  overflow: hidden;
  border-radius: 1rem;
  width: 100%;
  height: 100%;
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.hero-mobile-adornment {
  position: relative;
  width: min(90vw, 340px);
  aspect-ratio: 1 / 1;
  background-image: url('adorno.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 3.5rem 2.25rem;
  gap: 0.75rem;
}

[data-hero-names] {
  font-family: 'Great Vibes', cursive;
}

[data-hero-names] span {
  font-family: inherit;
  letter-spacing: normal;
}

[data-hero-names] span:first-child,
[data-hero-names] span:last-child {
  letter-spacing: 0.0em;
}

@media (min-width: 640px) {
  [data-hero-names] span:first-child,
  [data-hero-names] span:last-child {
    letter-spacing: 0.0em;
  }
}

@media (max-width: 639px) {
  .hero-mobile-adornment h1 {
    font-size: clamp(2.6rem, 8vw + 1rem, 3.1rem);
  }

  .hero-mobile-adornment .font-serif {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-hero] .hero-floral {
    transition-duration: 0ms;
  }
}

[data-hero-floral],
[data-hero-names] > span {
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
}

[data-hero-names] > span:nth-child(1) { animation-delay: 0.2s; }
[data-hero-names] > span:nth-child(2) { animation-delay: 0.4s; }
[data-hero-names] > span:nth-child(3) { animation-delay: 0.6s; }
[data-hero-floral]:nth-of-type(1) { animation-delay: 0.8s; }
[data-hero-floral]:nth-of-type(2) { animation-delay: 0.8s; }


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

@media (min-width: 640px) {
  .hero-mobile-adornment {
    width: auto;
    aspect-ratio: auto;
    background-image: none;
    padding: 0;
    gap: 0;
  }
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 60;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  border-radius: 1.25rem;
  box-shadow: 0 22px 45px -30px rgba(15, 23, 42, 0.65);
  object-fit: contain;
}

#lightbox .controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

#lightbox .controls .button {
  color: #ffffff;
}

#lightbox .controls .button i {
  color: inherit;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(15, 23, 42, 0.65));
}

#lightbox .lightbox-caption {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--ivory);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.mobile-action-bar {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 247, 242, 0.96);
  border: 1px solid rgba(194, 166, 117, 0.4);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  box-shadow: 0 24px 40px -28px rgba(47, 79, 79, 0.7);
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 40;
}

.mobile-action-bar.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .mobile-action-bar {
    display: none;
  }
}

.audio-toggle-floating {
  position: fixed;
  right: 1.25rem;
  bottom: 6.75rem;
  z-index: 35;
}

@media (min-width: 768px) {
  .audio-toggle-floating {
    bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mobile-action-bar,
  .blur-up {
    transition: none;
  }

  .reveal,
  .reveal.reveal-visible {
    opacity: 1;
    transform: none !important;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: 0 20px 38px -30px rgba(47, 79, 79, 0.85);
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.button i {
  font-size: 0.95rem;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px -28px rgba(47, 79, 79, 0.7);
}

.button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 12px 28px -20px rgba(47, 79, 79, 0.6);
}

.button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.button--lg {
  padding: 0.95rem 2.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.button--sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.button--block {
  width: 100%;
}

.button--responsive {
  width: 100%;
}

.button--wide {
  min-width: 180px;
}

@media (min-width: 640px) {
  .button--responsive {
    width: auto;
  }
}

.button--primary {
  background-color: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
  box-shadow: 0 18px 34px -20px rgba(47, 79, 79, 0.6);
}

.button--primary:hover {
  background-color: rgba(47, 79, 79, 0.92);
  border-color: rgba(47, 79, 79, 0.92);
}

.button--outline {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(194, 166, 117, 0.65);
  color: var(--forest);
  box-shadow: 0 18px 32px -26px rgba(47, 79, 79, 0.55);
}

.button--outline:hover {
  background-color: rgba(231, 216, 201, 0.45);
}

.button--spotify {
  background-color: #1db954;
  border-color: #1db954;
  color: #ffffff;
  box-shadow: 0 18px 32px -26px rgba(29, 185, 84, 0.45);
}

.button--spotify:hover {
  background-color: #1ed760;
  border-color: #1ed760;
}

.button--apple {
  background-color: rgba(17, 17, 17, 0.9);
  border-color: rgba(17, 17, 17, 0.9);
  color: #ffffff;
  box-shadow: 0 18px 32px -26px rgba(17, 17, 17, 0.55);
}

.button--apple:hover {
  background-color: rgba(17, 17, 17, 0.75);
  border-color: rgba(17, 17, 17, 0.75);
}

.button--no-transform {
  text-transform: none;
  letter-spacing: 0.08em;
}

.button--icon {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  gap: 0;
  box-shadow: 0 18px 34px -22px rgba(47, 79, 79, 0.6);
}

.button--icon i {
  font-size: 1rem;
}

.button--overlay {
  background-color: rgba(250, 247, 242, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 22px 45px -30px rgba(15, 23, 42, 0.65);
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.button--overlay:hover,
.button--overlay:focus {
  background-color: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--forest);
}

.mobile-action-bar .button {
  flex: 1;
}

.button__icon-gold {
  color: var(--gold);
}

.bank-card {
  width: min(100%, 26rem);
  margin-inline: auto;
  perspective: 1000px;
  cursor: pointer;
}

.bank-card:focus-visible {
  outline: 3px solid rgba(194, 166, 117, 0.45);
  outline-offset: 6px;
}

.bank-card__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 26rem;
  place-items: center;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.4, 1);
}

@media (max-width: 380px) {
  .bank-card__face {
    padding: 2.4rem 1.75rem;
    gap: 0.85rem;
  }

  .bank-card__subtitle {
    font-size: 0.9rem;
  }

  .bank-card__copy-button {
    padding: 0.9rem 1.1rem;
  }

  .bank-card__copy-value {
    font-size: 0.9rem;
  }

  .bank-card__copy-hint {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }
}

.bank-card.is-flipped .bank-card__inner {
  transform: rotateY(180deg);
}

.bank-card__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.25rem 2rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(194, 166, 117, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 72px -44px rgba(47, 79, 79, 0.65);
  backface-visibility: hidden;
  text-align: center;
  pointer-events: none;
}

.bank-card__face--front {
  pointer-events: auto;
}

.bank-card__face--back {
  transform: rotateY(180deg);
}

.bank-card.is-flipped .bank-card__face--front {
  pointer-events: none;
}

.bank-card.is-flipped .bank-card__face--back {
  pointer-events: auto;
}

.bank-card__icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(194, 166, 117, 0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: inset 0 0 0 1px rgba(194, 166, 117, 0.3);
  position: relative;
  z-index: 2;
}

.bank-card__pulse-ring {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(194, 166, 117, 0.4);
  animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  z-index: 1;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.bank-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(47, 79, 79, 0.92);
  text-align: center;
}

.bank-card__subtitle {
  font-size: 0.95rem;
  color: rgba(47, 79, 79, 0.65);
  line-height: 1.55;
  text-align: center;
}

.bank-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

@media (min-width: 640px) {
  .bank-card__actions {
    flex-direction: row;
  }
}

.bank-card__copy-button {
  flex: 1;
  border-radius: 1.25rem;
  border: 1px solid rgba(194, 166, 117, 0.6);
  background: rgba(250, 247, 242, 0.85);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.2s ease;
}

.bank-card__copy-button:hover {
  transform: translateY(-1px);
  background: rgba(231, 216, 201, 0.6);
  border-color: rgba(194, 166, 117, 0.75);
  box-shadow: 0 20px 42px -32px rgba(47, 79, 79, 0.6);
}

.bank-card__copy-button:focus-visible {
  outline: 2px solid rgba(194, 166, 117, 0.75);
  outline-offset: 4px;
}

.bank-card__copy-button.is-copied {
  background: rgba(194, 166, 117, 0.18);
  border-color: rgba(194, 166, 117, 0.85);
  box-shadow: 0 18px 40px -30px rgba(47, 79, 79, 0.55);
}

.bank-card__copy-title {
  font-size: 0.95rem;
}

.bank-card__copy-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(47, 79, 79, 0.85);
  white-space: nowrap;
}

.bank-card__copy-hint {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(47, 79, 79, 0.55);
}

.bank-card__feedback {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: rgba(47, 79, 79, 0.7);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.bank-card__feedback.is-visible {
  opacity: 1;
}
