:root {
  --ink: #2c2523;
  --muted: #776b66;
  --paper: #fffaf5;
  --blush: #e9a7a1;
  --rose: #b85f66;
  --coral: #d97962;
  --leaf: #53745d;
  --mint: #dce9d7;
  --gold: #b98e46;
  --sky: #9bbfd1;
  --lavender: #c7abc9;
  --line: rgba(44, 37, 35, 0.12);
  --shadow: 0 22px 60px rgba(79, 55, 48, 0.16);
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

.day-ambient {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: rgba(var(--ambient-color, 255, 196, 151), var(--ambient-opacity, 0.05));
  transition: background-color 1.2s ease;
}

.day-ambient i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px white;
  opacity: var(--night-opacity, 0);
  animation: star-twinkle 2.8s ease-in-out infinite alternate;
}

.day-ambient i:nth-child(1) { top: 12%; left: 8%; }
.day-ambient i:nth-child(2) { top: 22%; left: 74%; animation-delay: -0.7s; }
.day-ambient i:nth-child(3) { top: 38%; left: 91%; animation-delay: -1.4s; }
.day-ambient i:nth-child(4) { top: 56%; left: 15%; animation-delay: -2.1s; }
.day-ambient i:nth-child(5) { top: 73%; left: 82%; animation-delay: -0.4s; }
.day-ambient i:nth-child(6) { top: 88%; left: 31%; animation-delay: -1.1s; }

.day-journey {
  position: fixed;
  inset: 0 10px 0 auto;
  z-index: 9;
  width: 28px;
  pointer-events: none;
}

.day-journey-track {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(#eaa586, #e7c97e 38%, #d47e6d 70%, #596080);
  opacity: 0.52;
}

.celestial-body {
  position: absolute;
  top: var(--journey-y, 8%);
  left: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffd27c;
  box-shadow: 0 0 0 5px rgba(255, 210, 124, 0.14), 0 0 22px 8px rgba(255, 190, 104, 0.38);
  transform: translate(-50%, -50%);
  transition: top 0.12s linear, background 0.8s ease, box-shadow 0.8s ease;
}

.day-journey[data-phase="day"] .celestial-body {
  background: #ffe5a3;
  box-shadow: 0 0 0 6px rgba(255, 229, 163, 0.16), 0 0 26px 10px rgba(255, 204, 95, 0.4);
}

.day-journey[data-phase="sunset"] .celestial-body {
  background: #df7a67;
  box-shadow: 0 0 0 6px rgba(223, 122, 103, 0.13), 0 0 25px 9px rgba(205, 93, 87, 0.35);
}

.day-journey[data-phase="night"] .celestial-body {
  background: #f6f1db;
  box-shadow: inset 5px -2px 0 #707693, 0 0 0 5px rgba(246, 241, 219, 0.1), 0 0 19px 6px rgba(220, 224, 255, 0.27);
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(255, 250, 245, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
}

.nav a,
.text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.text-link:hover {
  color: var(--rose);
}

.language-switch,
.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.lang-button,
.segmented span {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active,
.segmented input:checked + span {
  color: white;
  background: var(--rose);
}

.section {
  padding: 92px clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: 120px;
  color: white;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 22, 18, 0.7), rgba(30, 22, 18, 0.25) 54%, rgba(30, 22, 18, 0.4));
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  object-fit: cover;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding-bottom: 130px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe0db;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4rem, 12vw, 9rem);
}

h2 {
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.hero-date {
  margin: 18px 0 26px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  color: white;
  background: var(--rose);
  box-shadow: 0 12px 28px rgba(184, 95, 102, 0.32);
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.button.full {
  width: 100%;
}

.countdown {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 36px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 10px;
  width: min(470px, calc(100% - 36px));
}

.countdown div,
.detail-card,
.story-card,
.stat,
.message-card,
.guest-row,
.rsvp-shell,
.message-form {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.countdown div {
  display: grid;
  gap: 4px;
  padding: 16px 10px;
  text-align: center;
}

.countdown strong {
  font-size: 2rem;
}

.countdown span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1.1s 0.25s ease;
}

.section-heading.is-in-view::after {
  width: min(190px, 45vw);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-section,
.details-section {
  position: relative;
  overflow: hidden;
}

.story-section {
  padding-inline: clamp(18px, 4vw, 96px);
  background:
    linear-gradient(90deg, rgba(185, 142, 70, 0.08) 0 1px, transparent 1px calc(100% - 1px), rgba(185, 142, 70, 0.08) calc(100% - 1px)),
    radial-gradient(circle at 12% 20%, rgba(185, 142, 70, 0.12), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(83, 116, 93, 0.1), transparent 24%),
    linear-gradient(135deg, #fffaf5 0%, #fffdf8 46%, #f8f3ea 100%);
}

.story-section::before,
.story-section::after {
  content: "";
  position: absolute;
  top: 170px;
  bottom: 95px;
  width: clamp(42px, 8vw, 118px);
  border-block: 1px solid rgba(185, 142, 70, 0.24);
  opacity: 0.9;
}

.story-section::before {
  left: clamp(16px, 3vw, 52px);
  border-left: 1px solid rgba(185, 142, 70, 0.24);
}

.story-section::after {
  right: clamp(16px, 3vw, 52px);
  border-right: 1px solid rgba(185, 142, 70, 0.24);
}

.section-glow {
  position: absolute;
  inset: 108px auto auto 50%;
  width: min(720px, 62vw);
  height: 220px;
  border-radius: 50%;
  background: rgba(185, 142, 70, 0.08);
  filter: blur(34px);
  transform: translateX(-50%);
  animation: breathe 7s ease-in-out infinite;
}

.story-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  max-width: 1280px;
  margin: auto;
}

.story-showcase::before {
  content: "";
  position: absolute;
  inset: auto -18px -48px auto;
  width: clamp(140px, 18vw, 260px);
  height: clamp(140px, 18vw, 260px);
  border: 1px solid rgba(185, 142, 70, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.story-photo {
  position: relative;
}

.story-photo::before,
.story-photo::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  transform: rotate(-6deg);
}

.story-photo::before {
  inset: 24px -22px -22px 30px;
  background: rgba(185, 142, 70, 0.12);
}

.story-photo::after {
  inset: -18px 28px 28px -18px;
  border: 1px solid rgba(185, 142, 70, 0.42);
}

.story-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.story-timeline::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 26px;
  width: 2px;
  background: linear-gradient(var(--rose), var(--leaf), var(--gold));
}

.story-card,
.detail-card {
  padding: 28px;
}

.story-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border-color: rgba(185, 142, 70, 0.18);
  background: rgba(255, 255, 255, 0.84);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.story-card:hover,
.story-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(185, 142, 70, 0.38);
  box-shadow: 0 24px 54px rgba(79, 55, 48, 0.16);
}

.story-bloom,
.story-leaf {
  position: absolute;
  z-index: 2;
  display: block;
  grid-column: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-bloom {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e6b85e 0 10%, transparent 11%),
    radial-gradient(ellipse at 50% 16%, #fff 0 17%, transparent 18%),
    radial-gradient(ellipse at 84% 50%, #f7d8dc 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 84%, #fff 0 17%, transparent 18%),
    radial-gradient(ellipse at 16% 50%, #f7d8dc 0 17%, transparent 18%);
  filter: drop-shadow(0 5px 6px rgba(117, 73, 63, 0.16));
}

.story-bloom-one {
  top: 10px;
  right: 16px;
  transform: translate(18px, -18px) rotate(-35deg) scale(0.25);
}

.story-bloom-two {
  right: 62px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  transform: translate(12px, 18px) rotate(30deg) scale(0.25);
}

.story-leaf {
  width: 38px;
  height: 18px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #8ca98f, #53745d);
}

.story-leaf-one {
  top: 47px;
  right: 11px;
  transform: translateX(22px) rotate(-24deg) scale(0.3);
}

.story-leaf-two {
  right: 40px;
  bottom: 23px;
  transform: translate(20px, 14px) rotate(42deg) scale(0.3);
}

.story-card:hover .story-bloom,
.story-card:focus-within .story-bloom,
.story-card:hover .story-leaf,
.story-card:focus-within .story-leaf {
  opacity: 1;
}

.story-card:hover .story-bloom-one,
.story-card:focus-within .story-bloom-one {
  transform: translate(0) rotate(8deg) scale(1);
}

.story-card:hover .story-bloom-two,
.story-card:focus-within .story-bloom-two {
  transform: translate(0) rotate(-12deg) scale(1);
}

.story-card:hover .story-leaf-one,
.story-card:focus-within .story-leaf-one {
  transform: translate(0) rotate(-42deg) scale(1);
}

.story-card:hover .story-leaf-two,
.story-card:focus-within .story-leaf-two {
  transform: translate(0) rotate(28deg) scale(1);
}

.story-card::after {
  content: "";
  position: absolute;
  inset: auto -42px -54px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  opacity: 0.12;
}

.story-card.rose::after {
  background: var(--rose);
}

.story-card.leaf::after {
  background: var(--leaf);
}

.story-card.gold::after {
  background: var(--gold);
}

.story-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--rose);
  box-shadow: 0 10px 24px rgba(184, 95, 102, 0.25);
}

.story-card.leaf .story-marker {
  background: var(--leaf);
}

.story-card.gold .story-marker {
  background: var(--gold);
}

.story-card span,
.story-card p {
  grid-column: 2;
}

.story-card span,
.detail-card span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.story-card p,
.detail-card p {
  color: var(--muted);
  line-height: 1.7;
}

.story-card p {
  margin: -8px 0 0;
}

.rsvp-modal {
  width: min(92vw, 610px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
}

.rsvp-modal::backdrop {
  background: rgba(37, 29, 28, 0.7);
  backdrop-filter: blur(8px);
  animation: modal-backdrop-in 0.4s ease both;
}

.rsvp-modal[open] {
  animation: modal-pop-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rsvp-modal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(46px, 8vw, 72px) clamp(24px, 7vw, 64px) 42px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98), transparent 42%),
    linear-gradient(145deg, #fffdf9, #fff2ef 52%, #eef6ef);
  box-shadow: 0 34px 90px rgba(34, 22, 20, 0.35), inset 0 0 50px rgba(255, 255, 255, 0.72);
}

.rsvp-modal.is-declined .rsvp-modal-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98), transparent 42%),
    linear-gradient(145deg, #fffdf9, #f7f1f4 54%, #eef3f1);
}

.rsvp-modal-card::before,
.rsvp-modal-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(185, 142, 70, 0.22);
  border-radius: 50%;
  animation: modal-halo 4s ease-in-out infinite;
}

.rsvp-modal-card::before {
  top: -105px;
  left: -80px;
  box-shadow: 0 0 0 22px rgba(184, 95, 102, 0.05), 0 0 0 46px rgba(185, 142, 70, 0.04);
}

.rsvp-modal-card::after {
  right: -90px;
  bottom: -115px;
  box-shadow: 0 0 0 22px rgba(83, 116, 93, 0.05), 0 0 0 46px rgba(185, 142, 70, 0.04);
  animation-delay: -2s;
}

.rsvp-modal-flower {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  animation: modal-flower-float 3s ease-in-out infinite;
}

.rsvp-modal-flower::after {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: 2;
  border-radius: 50%;
  background: #e6b85e;
  box-shadow: 0 0 18px rgba(230, 184, 94, 0.72);
}

.rsvp-modal-flower i {
  position: absolute;
  top: 4px;
  left: 23px;
  width: 20px;
  height: 32px;
  border-radius: 70% 70% 55% 55%;
  background: linear-gradient(#fff, #f5cbd0);
  transform-origin: 50% 29px;
}

.rsvp-modal-flower i:nth-child(2) { transform: rotate(72deg); }
.rsvp-modal-flower i:nth-child(3) { transform: rotate(144deg); }
.rsvp-modal-flower i:nth-child(4) { transform: rotate(216deg); }
.rsvp-modal-flower i:nth-child(5) { transform: rotate(288deg); }

.rsvp-modal-eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rsvp-modal-guest {
  min-height: 1.5em;
  margin: 0 0 5px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
}

.rsvp-modal h2 {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 0.98;
}

.rsvp-modal-body {
  max-width: 450px;
  margin: 18px auto 26px;
  color: var(--muted);
  line-height: 1.8;
}

.rsvp-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.rsvp-sparkles i {
  position: absolute;
  left: var(--x);
  bottom: -16px;
  width: 7px;
  height: 11px;
  border-radius: 80% 0 80% 0;
  background: var(--blush);
  opacity: 0;
  animation: modal-petal-rise 3.4s var(--delay) ease-in infinite;
}

.rsvp-sparkles i:nth-child(3n) { background: var(--gold); }
.rsvp-sparkles i:nth-child(3n + 1) { background: #91ad96; }

@keyframes modal-pop-in {
  from { opacity: 0; transform: translateY(24px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-halo {
  50% { transform: scale(1.08); opacity: 0.62; }
}

@keyframes modal-flower-float {
  50% { transform: translateY(-7px) rotate(5deg); }
}

@keyframes modal-petal-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  18% { opacity: 0.8; }
  100% { opacity: 0; transform: translate3d(22px, -520px, 0) rotate(440deg); }
}

.details-section {
  --event-image: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(45, 66, 62, 0.9) 0 34%, rgba(255, 250, 246, 0.78) 68%, rgba(237, 216, 220, 0.72)),
    var(--event-image) center/cover;
}

.details-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.24) 43%, transparent 59%);
  transform: translateX(-100%);
  animation: event-light-pass 9s ease-in-out infinite;
}

.details-section > *:not(.event-ornaments) {
  position: relative;
  z-index: 2;
}

.details-section .section-heading {
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: clamp(24px, 5vw, 54px);
  color: white;
  text-align: left;
}

.details-section .section-heading h2,
.details-section .section-heading .eyebrow {
  color: white;
  text-shadow: 0 3px 24px rgba(17, 34, 31, 0.32);
}

.event-ornaments span {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-family: Georgia, serif;
  pointer-events: none;
  animation: event-ornament-drift 5s ease-in-out infinite alternate;
}

.event-ornaments span:nth-child(1) { top: 8%; left: 5%; font-size: 2.4rem; }
.event-ornaments span:nth-child(2) { top: 28%; right: 6%; color: rgba(184, 95, 102, 0.65); font-size: 3.4rem; animation-delay: -2s; }
.event-ornaments span:nth-child(3) { right: 18%; bottom: 9%; color: rgba(185, 142, 70, 0.72); font-size: 2rem; animation-delay: -3s; }

@keyframes event-light-pass {
  0%, 30% { transform: translateX(-100%); }
  62%, 100% { transform: translateX(100%); }
}

@keyframes event-ornament-drift {
  from { transform: translateY(-4px) rotate(-7deg); opacity: 0.52; }
  to { transform: translateY(8px) rotate(8deg); opacity: 0.9; }
}

.details-feature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(185, 142, 70, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 245, 0.88)),
    linear-gradient(135deg, rgba(185, 142, 70, 0.13), transparent 55%);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.details-feature-copy,
.details-feature .button.primary {
  position: relative;
  z-index: 2;
}

.details-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 18%,
    rgba(201, 151, 156, 0.12) 37%,
    rgba(185, 142, 70, 0.15) 50%,
    rgba(125, 151, 132, 0.12) 63%,
    transparent 82%
  );
  transform: translateX(-100%);
  animation: detail-shimmer 8s ease-in-out infinite;
}

.details-feature::after {
  content: "";
  position: absolute;
  right: clamp(88px, 14vw, 180px);
  bottom: -72px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(185, 142, 70, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(201, 151, 156, 0.035), 0 0 0 46px rgba(125, 151, 132, 0.025);
  pointer-events: none;
}

.details-feature span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.details-feature strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
}

.details-feature p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.details-feature .button.primary {
  color: var(--ink);
  border-color: rgba(185, 142, 70, 0.34);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.wedding-pups {
  position: absolute;
  z-index: 1;
  right: clamp(154px, 23vw, 330px);
  bottom: 8px;
  width: 260px;
  height: 104px;
  pointer-events: none;
}

.pup-svg {
  position: absolute;
  bottom: 0;
  width: 132px;
  height: 92px;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(90, 58, 40, 0.16));
}

.pup-left {
  left: 0;
  transform-origin: 50% 80%;
  animation: pup-run-left 5.2s ease-in-out infinite;
}

.pup-right {
  right: 0;
  transform-origin: 50% 80%;
  animation: pup-run-right 5.2s ease-in-out infinite;
}

.pup-shadow {
  fill: rgba(103, 71, 50, 0.16);
}

.pup-tail,
.pup-leg {
  fill: none;
  stroke: #b97a49;
  stroke-linecap: round;
  stroke-width: 7;
}

.pup-tail {
  animation: pup-tail-wag 0.62s ease-in-out infinite alternate;
}

.pup-body {
  fill: #f3c58f;
  stroke: rgba(111, 74, 47, 0.2);
  stroke-width: 2;
}

.pup-face {
  fill: #ffe5c8;
  stroke: rgba(111, 74, 47, 0.18);
  stroke-width: 2;
}

.pup-ear {
  fill: #b97855;
}

.pup-muzzle {
  fill: #fff5e9;
}

.pup-eye,
.pup-nose {
  fill: #332421;
}

.pup-blush {
  fill: rgba(215, 102, 123, 0.5);
}

.pup-heart,
.pup-heart::before,
.pup-heart::after {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #cf5d71;
}

.pup-heart {
  left: 50%;
  bottom: 42px;
  border-radius: 3px;
  opacity: 0;
  transform: translateX(-50%) rotate(45deg) scale(0.4);
  animation: pup-heart-rise 5.2s ease-in-out infinite;
}

.pup-heart-small {
  bottom: 54px;
  margin-left: 28px;
  animation-delay: 0.25s;
  transform: translateX(-50%) rotate(45deg) scale(0.28);
}

.pup-heart::before,
.pup-heart::after {
  content: "";
  border-radius: 50%;
}

.pup-heart::before {
  left: -7px;
}

.pup-heart::after {
  top: -7px;
}

@keyframes pup-run-left {
  0%, 14% { transform: translateX(0) translateY(0) rotate(0deg); }
  28% { transform: translateX(40px) translateY(-4px) rotate(1deg); }
  42%, 62% { transform: translateX(72px) translateY(0) rotate(2deg); }
  82%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes pup-run-right {
  0%, 14% { transform: translateX(0) translateY(0) rotate(0deg); }
  28% { transform: translateX(-40px) translateY(-4px) rotate(-1deg); }
  42%, 62% { transform: translateX(-72px) translateY(0) rotate(-2deg); }
  82%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes pup-tail-wag {
  from { transform: rotate(-4deg); }
  to { transform: rotate(7deg); }
}

@keyframes pup-heart-rise {
  0%, 35% {
    opacity: 0;
    transform: translate(-50%, 10px) rotate(45deg) scale(0.35);
  }
  45%, 62% {
    opacity: 1;
    transform: translate(-50%, -18px) rotate(45deg) scale(1);
  }
  82%, 100% {
    opacity: 0;
    transform: translate(-50%, -48px) rotate(45deg) scale(0.6);
  }
}

.details-grid {
  max-width: 1080px;
  margin: auto;
}

.detail-card h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 2.2rem;
}

.detail-card small {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.detail-card:nth-child(1) {
  border-top: 3px solid rgba(201, 151, 156, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(252, 241, 243, 0.72));
}

.detail-card:nth-child(2) {
  border-top: 3px solid rgba(125, 151, 132, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 241, 0.74));
}

.detail-card:nth-child(3) {
  border-top: 3px solid rgba(185, 142, 70, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 232, 0.76));
}

.detail-card {
  position: relative;
  padding-top: 54px;
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: -9px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.detail-card::before {
  content: attr(data-event-icon);
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.72);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(91, 68, 48, 0.13);
}

.detail-card:hover::before {
  transform: rotate(12deg) scale(1.12);
  background: white;
}

.program-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.4fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 18px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(185, 142, 70, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.program-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(185, 142, 70, 0.22);
  border-radius: 8px;
  background: rgba(185, 142, 70, 0.22);
}

.program-item {
  position: relative;
  min-height: 118px;
  padding: 18px;
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  overflow: hidden;
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.program-item:nth-child(2) {
  background: rgba(252, 241, 243, 0.78);
}

.program-item:nth-child(3) {
  background: rgba(239, 246, 241, 0.82);
}

.program-item:nth-child(4) {
  background: rgba(255, 247, 232, 0.82);
}

.program-item:hover {
  z-index: 2;
  transform: translateY(-4px);
  background: #fff;
}

.program-item::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(185, 142, 70, 0.16);
  border-radius: 50%;
}

.program-item time {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.program-item:nth-child(2) time {
  color: #a86872;
}

.program-item:nth-child(3) time {
  color: #567461;
}

.program-item:nth-child(4) time {
  color: #9a702f;
}

@keyframes detail-shimmer {
  0%, 28% {
    transform: translateX(-100%);
  }
  58%, 100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .details-feature::before {
    animation: none;
    transform: translateX(0);
  }

  .detail-card,
  .program-item,
  .story-card,
  .story-bloom,
  .story-leaf,
  .motion-item,
  .celestial-body,
  .pup-svg,
  .pup-heart,
  .button,
  .message-card {
    transition: none;
  }

  .rsvp-modal[open],
  .rsvp-modal::backdrop,
  .rsvp-modal-card::before,
  .rsvp-modal-card::after,
  .rsvp-modal-flower,
  .rsvp-sparkles i,
  .day-ambient i,
  .message-section::before,
  .message-section::after,
  .gallery-lightbox[open],
  .gallery-lightbox::backdrop,
  .cursor-sparkles i {
    animation: none;
  }

  .wish-card-studio[open] {
    animation: none;
  }

  .motion-item {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    translate: none;
  }
}

.program-item span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 92px;
  gap: 14px;
}

.gallery-section {
  position: relative;
  background: linear-gradient(180deg, #fffdf7, #fff4e5 58%, #f7e7df);
  overflow: hidden;
}

.gallery-section::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(231, 168, 104, 0.16);
  box-shadow: 0 0 0 35px rgba(231, 168, 104, 0.04);
  transform: translateY(calc(var(--scroll-progress, 0) * 80px));
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: zoom-in;
  outline: none;
}

.gallery-layout-single {
  max-width: 760px;
  margin-inline: auto;
}

.gallery-layout-single .gallery-photo {
  grid-column: span 12;
  grid-row: span 6;
}

.gallery-layout-duo .gallery-photo {
  grid-column: span 6;
  grid-row: span 5;
}

.gallery-layout-duo .gallery-photo:nth-child(2) {
  transform: translateY(28px);
}

.gallery-layout-trio .gallery-photo:first-child {
  grid-column: span 7;
  grid-row: span 6;
}

.gallery-layout-trio .gallery-photo:not(:first-child) {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-layout-quad .gallery-photo {
  grid-column: span 6;
  grid-row: span 4;
}

.gallery-layout-feature .gallery-photo:first-child {
  grid-column: span 7;
  grid-row: span 6;
}

.gallery-layout-feature .gallery-photo:nth-child(n + 2) {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-layout-feature .gallery-photo:nth-child(5),
.gallery-layout-feature .gallery-photo:nth-child(6) {
  grid-column: span 6;
}

.gallery-layout-mosaic .gallery-photo {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-layout-mosaic .gallery-photo:nth-child(8n + 1),
.gallery-layout-mosaic .gallery-photo:nth-child(8n + 6) {
  grid-column: span 6;
  grid-row: span 5;
}

.gallery-layout-mosaic .gallery-photo:nth-child(8n + 2),
.gallery-layout-mosaic .gallery-photo:nth-child(8n + 5) {
  grid-column: span 3;
  grid-row: span 4;
}

.gallery-layout-mosaic .gallery-photo:nth-child(8n + 4) {
  grid-column: span 6;
  grid-row: span 3;
}

.gallery img:focus-visible {
  box-shadow: 0 0 0 4px rgba(184, 95, 102, 0.3), var(--shadow);
}

.gallery-layout-mosaic img:nth-child(even) {
  margin-top: 34px;
}

.gallery img:hover {
  filter: saturate(1.08);
  transform: translateY(-10px) rotate(-1deg) scale(1.015);
}

.gallery img:nth-child(even):hover {
  transform: translateY(-10px) rotate(1deg) scale(1.015);
}

.gallery-lightbox {
  width: min(94vw, 1100px);
  height: min(90vh, 820px);
  padding: 0;
  overflow: visible;
  border: 0;
  color: white;
  background: transparent;
}

.gallery-lightbox::backdrop {
  background: rgba(20, 19, 30, 0.88);
  backdrop-filter: blur(12px);
  animation: lightbox-fade 0.35s ease both;
}

.gallery-lightbox[open] {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  animation: lightbox-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gallery-lightbox figure {
  display: grid;
  height: 100%;
  margin: 0;
  place-items: center;
}

.gallery-lightbox img {
  width: 100%;
  height: calc(100% - 38px);
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.46));
}

.gallery-lightbox figcaption {
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  position: absolute;
  top: -8px;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lightbox-nav {
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rsvp-section,
.message-section {
  background:
    linear-gradient(rgba(255, 250, 245, 0.9), rgba(255, 250, 245, 0.9)),
    url("https://images.unsplash.com/photo-1525258946800-98cfd641d0de?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.gift-section {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(110deg, rgba(241, 247, 240, 0.94), rgba(255, 248, 241, 0.94) 48%, rgba(247, 237, 240, 0.94));
}

.gift-section::before {
  content: "✦";
  position: absolute;
  top: 12%;
  right: 8%;
  color: rgba(185, 142, 70, 0.34);
  font-size: 4rem;
  animation: event-ornament-drift 5s ease-in-out infinite alternate;
}

.bank-transfer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 940px;
  margin: 32px auto 0;
}

.bank-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(185, 142, 70, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 55px rgba(77, 63, 48, 0.14);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bank-card:nth-child(2) {
  border-color: rgba(125, 151, 132, 0.3);
  background: rgba(250, 253, 248, 0.86);
}

.bank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.72) 48%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.bank-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(77, 63, 48, 0.2);
}

.bank-card:hover::after { transform: translateX(120%); }

.bank-qr {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid rgba(185, 142, 70, 0.22);
  background: white;
  box-shadow: 0 10px 24px rgba(52, 42, 33, 0.1);
}

.bank-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  height: 100%;
  padding: 18px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
  background: repeating-linear-gradient(135deg, #fff 0 12px, #f7f3ed 12px 24px);
}

.qr-placeholder strong {
  color: var(--rose);
  font-family: "Great Vibes", cursive;
  font-size: 2.8rem;
  font-weight: 400;
}

.qr-placeholder span { font-size: 0.72rem; font-weight: 700; }

.bank-details { position: relative; z-index: 1; min-width: 0; }

.bank-card-number {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.bank-details h3 {
  margin: 8px 0 22px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.bank-details p { display: grid; gap: 4px; margin: 12px 0; }
.bank-details p span { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.bank-details p strong { overflow-wrap: anywhere; }

.rsvp-section {
  position: relative;
  background:
    linear-gradient(rgba(255, 239, 226, 0.88), rgba(239, 197, 184, 0.84)),
    url("https://images.unsplash.com/photo-1525258946800-98cfd641d0de?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.message-section {
  position: relative;
  color: #f8f2ee;
  background:
    linear-gradient(rgba(42, 42, 61, 0.92), rgba(29, 32, 50, 0.96)),
    url("https://images.unsplash.com/photo-1525258946800-98cfd641d0de?auto=format&fit=crop&w=1800&q=80") center/cover;
  overflow: hidden;
}

.message-section::before,
.message-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.72);
  animation: star-twinkle 2.6s ease-in-out infinite alternate;
}

.message-section::before { top: 13%; left: 9%; width: 3px; height: 3px; }
.message-section::after { top: 24%; right: 13%; width: 4px; height: 4px; animation-delay: -1.2s; }

.message-section h2,
.message-section .section-heading p:not(.eyebrow) {
  color: #fffaf5;
}

.message-section .message-card {
  background: rgba(255, 255, 255, 0.9);
}

.footer {
  background: #1d2032;
  color: rgba(255, 250, 245, 0.72);
}

.rsvp-shell,
.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: center;
  max-width: 1080px;
  margin: auto;
  padding: clamp(22px, 5vw, 52px);
}

.rsvp-shell h2,
.message-layout h2 {
  text-align: left;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(184, 95, 102, 0.12);
}

.character-counter {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  transition: color 0.2s ease;
}

.character-counter.is-near-limit {
  color: var(--rose);
}

.segmented {
  border-radius: 8px;
}

.segmented label {
  flex: 1;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 44px;
  place-items: center;
  text-align: center;
}

.form-status,
.empty {
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: auto;
}

.admin-actions {
  display: flex;
  justify-content: center;
  margin: 20px auto 8px;
}

.export-button {
  gap: 9px;
  color: white;
  background: var(--leaf);
  box-shadow: 0 12px 28px rgba(83, 116, 93, 0.24);
}

.export-button > span:first-child {
  font-size: 1.2rem;
  line-height: 1;
}

.stat {
  padding: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--rose);
  font-size: 2.7rem;
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

.guest-list,
.message-wall {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 22px auto 0;
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.guest-row div {
  display: grid;
  gap: 4px;
}

.guest-row span {
  color: var(--muted);
}

mark {
  border-radius: 999px;
  padding: 8px 12px;
  color: white;
  font-weight: 900;
}

mark.accepted {
  background: var(--leaf);
}

mark.declined {
  background: var(--muted);
}

.message-layout {
  padding: 0;
}

.message-form {
  padding: 24px;
}

.message-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  max-width: 1160px;
  padding: 34px 18px 18px;
  perspective: 1000px;
}

.message-section .message-card {
  --note-rotation: -1deg;
  position: relative;
  min-height: 210px;
  padding: 34px 24px 22px;
  border: 0;
  border-radius: 3px;
  background: #fff8e8;
  box-shadow: 0 14px 28px rgba(8, 11, 27, 0.26), inset 0 0 0 1px rgba(102, 75, 52, 0.08);
  backdrop-filter: none;
  transform: rotate(var(--note-rotation));
  transform-origin: 50% 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.message-section .message-card:nth-child(3n + 2) { --note-rotation: 1.2deg; background: #f0f7ee; }
.message-section .message-card:nth-child(3n + 3) { --note-rotation: -0.4deg; background: #f8eef1; }
.message-section .message-card:nth-child(4n) { --note-rotation: 0.8deg; background: #eef4f8; }

.message-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 76px;
  height: 24px;
  background: rgba(235, 214, 166, 0.72);
  box-shadow: 0 2px 5px rgba(57, 44, 35, 0.12);
  transform: translateX(-50%) rotate(-2deg);
  clip-path: polygon(2% 8%, 98% 0, 95% 92%, 5% 100%);
}

.message-card::after {
  content: "✦";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(184, 95, 102, 0);
  font-size: 1.2rem;
  text-shadow: -22px -14px 0 rgba(185, 142, 70, 0), 8px -32px 0 rgba(125, 151, 132, 0);
  transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.45s ease;
}

.message-card.motion-item.is-in-view {
  transform: rotate(var(--note-rotation));
}

.message-card:hover,
.message-card.motion-item.is-in-view:hover {
  z-index: 3;
  transform: translateY(-10px) rotate(0deg) scale(1.025);
  box-shadow: 0 28px 58px rgba(8, 11, 27, 0.38);
  filter: saturate(1.08);
}

.message-card:hover::after {
  color: rgba(184, 95, 102, 0.78);
  text-shadow: -22px -14px 0 rgba(185, 142, 70, 0.72), 8px -32px 0 rgba(125, 151, 132, 0.7);
  transform: rotate(20deg) scale(1.15);
}

.message-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.7;
}

.message-card p::before {
  content: "“";
  position: absolute;
  top: -28px;
  left: -10px;
  color: rgba(184, 95, 102, 0.2);
  font-family: Georgia, serif;
  font-size: 4.2rem;
  line-height: 1;
}

.message-card span {
  color: var(--rose);
  font-weight: 900;
}

.message-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(91, 68, 48, 0.2);
}

.wish-save-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 95, 102, 0.24);
  border-radius: 6px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.wish-save-button span {
  color: inherit;
}

.wish-save-button:hover {
  transform: translateY(-2px);
  background: white;
}

.wish-card-studio {
  width: min(94vw, 1080px);
  max-height: 94vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf5;
  box-shadow: 0 35px 90px rgba(11, 13, 26, 0.42);
}

.wish-card-studio::backdrop {
  background: rgba(22, 23, 37, 0.82);
  backdrop-filter: blur(10px);
}

.wish-card-studio[open] {
  animation: studio-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wish-studio-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(24px, 5vw, 52px);
}

.wish-studio-controls h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.wish-studio-controls > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.studio-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.7rem;
  cursor: pointer;
}

.wish-backgrounds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.wish-typography {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.wish-typography label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.wish-typography label > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.wish-typography select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.wish-typography input[type="range"] {
  width: 100%;
  accent-color: var(--rose);
}

.wish-typography output {
  color: var(--rose);
}

.wish-typography .wish-auto-format {
  grid-column: 1 / -1;
  display: flex;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.wish-typography .wish-auto-format input {
  order: 2;
  width: 42px;
  height: 24px;
  margin: 0;
  padding: 0;
  accent-color: var(--rose);
  cursor: pointer;
}

.wish-typography .wish-auto-format > span {
  display: block;
}

.wish-background {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.wish-background i {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent), transparent 65%);
}

.wish-background i b {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--theme-accent);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 5px;
}

.wish-background.is-selected {
  border-color: var(--theme-accent);
  color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent), transparent 82%);
}

.wish-card-preview {
  --wish-start: #fff8f4;
  --wish-end: #f3d6d8;
  --wish-accent: #b85f66;
  --wish-ink: #4a3433;
  position: relative;
  display: flex;
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  margin: auto;
  padding: clamp(58px, 8vw, 88px) clamp(32px, 5vw, 58px) clamp(48px, 7vw, 72px) clamp(76px, 11vw, 112px);
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--wish-ink);
  text-align: center;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 53px, color-mix(in srgb, var(--wish-accent), transparent 77%) 54px, transparent 55px),
    linear-gradient(145deg, var(--wish-start), var(--wish-end));
  box-shadow: 0 24px 60px rgba(71, 48, 44, 0.2);
  border: 8px solid rgba(255, 253, 246, 0.92);
  outline: 1px dashed color-mix(in srgb, var(--wish-accent), transparent 45%);
  outline-offset: -14px;
  clip-path: polygon(1% 2%, 6% 0, 13% 1.5%, 22% 0.5%, 31% 2%, 41% 0, 52% 1.3%, 63% 0.4%, 74% 1.8%, 86% 0.5%, 98% 2%, 100% 10%, 98.5% 21%, 100% 33%, 98.5% 46%, 100% 60%, 98.5% 73%, 100% 87%, 98% 98%, 88% 100%, 75% 98.7%, 62% 100%, 49% 98.5%, 36% 100%, 23% 98.6%, 11% 100%, 1% 97%, 0 85%, 1.5% 72%, 0 58%, 1.5% 45%, 0 31%, 1.5% 17%);
  transition: background 0.45s ease, color 0.45s ease;
}

.wish-card-preview.has-frame-image {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  outline: 0;
  clip-path: none;
  background: white;
}

.wish-frame-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.wish-card-content {
  position: absolute;
  z-index: 2;
  top: var(--content-top, 20%);
  left: var(--content-left, 20%);
  display: flex;
  width: var(--content-width, 60%);
  height: var(--content-height, 60%);
  padding: 6px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  color: var(--wish-ink);
}

.wish-card-preview.mask-frame-center .wish-card-content {
  padding: 4% 5%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.wish-card-preview.has-frame-image .wish-frame,
.wish-card-preview.has-frame-image .wish-page-margin,
.wish-card-preview.has-frame-image .wish-binding,
.wish-card-preview.has-frame-image .wish-motifs,
.wish-card-preview.has-frame-image .wish-corner-image {
  display: none;
}

.image-load-failed {
  display: none !important;
}

.wish-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid var(--wish-accent);
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--wish-accent), transparent 92%);
  pointer-events: none;
}

.wish-page-margin {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 22%;
  width: 1px;
  background: rgba(200, 104, 104, 0.42);
}

.wish-binding {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7%;
  width: 22px;
  opacity: 0.72;
  background: repeating-linear-gradient(to bottom, transparent 0 18px, rgba(68, 59, 52, 0.5) 19px 22px, transparent 23px 39px);
  filter: drop-shadow(3px 0 2px rgba(65, 50, 40, 0.16));
}

.wish-motifs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wish-motifs span {
  position: absolute;
  color: var(--wish-accent);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 3vw, 1.65rem);
  opacity: 0.48;
  text-shadow: 0 0 18px color-mix(in srgb, var(--wish-accent), transparent 38%);
  animation: wish-motif-float 4s ease-in-out infinite alternate;
  animation-delay: calc(var(--motif-index) * -0.28s);
}

.wish-motifs span:nth-child(1) { top: 5%; right: 8%; font-size: 2rem; }
.wish-motifs span:nth-child(2) { top: 12%; right: 4%; }
.wish-motifs span:nth-child(3) { top: 18%; right: 11%; }
.wish-motifs span:nth-child(4) { bottom: 8%; left: 25%; font-size: 2rem; }
.wish-motifs span:nth-child(5) { bottom: 4%; left: 37%; }
.wish-motifs span:nth-child(6) { bottom: 14%; left: 30%; }

.wish-corner-image {
  position: absolute;
  z-index: 1;
  width: 25%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(53, 42, 34, 0.16));
}

.wish-corner-image-top { top: 3%; right: 4%; }
.wish-corner-image-bottom { bottom: 3%; left: 22%; transform: rotate(-7deg); }

@keyframes wish-motif-float {
  from { transform: translateY(-2px) rotate(-5deg); }
  to { transform: translateY(4px) rotate(6deg); }
}

.wish-card-label {
  margin: 0 0 7px;
  color: var(--wish-accent);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wish-card-couple {
  color: var(--wish-accent);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.wish-card-preview blockquote {
  display: -webkit-box;
  width: 100%;
  max-height: 55%;
  margin: clamp(44px, 9vw, 72px) 0 0;
  overflow: hidden;
  color: var(--wish-ink);
  font-family: var(--wish-font-family, "Dancing Script", cursive);
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.58;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.wish-card-preview.has-frame-image blockquote {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 4% 0 2px;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-line;
  font-size: var(--wish-message-size, 1.15rem);
  line-height: 1.22;
  text-align: var(--wish-text-align, center);
  -webkit-line-clamp: 7;
}

.wish-card-signature {
  width: 100%;
  margin: auto 0 0;
  color: var(--wish-accent);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  text-align: right;
}

.wish-card-preview.has-frame-image .wish-card-signature {
  margin: 2px 0 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--wish-signature-size, 2.2rem);
  text-align: center;
}

.wish-card-preview.has-frame-image .wish-card-couple {
  font-size: clamp(1.15rem, 3.3vw, 1.9rem);
  line-height: 0.95;
}

.wish-card-preview.has-frame-image .wish-card-label {
  margin-bottom: 4px;
  font-size: 0.52rem;
}

.wish-card-preview.has-frame-image small {
  margin-top: 5px;
  font-size: 0.62rem;
}

.wish-card-preview small {
  margin-top: 12px;
  opacity: 0.66;
  font-weight: 700;
}

@keyframes studio-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.footer {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.petal-field {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.cursor-sparkles {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.cursor-sparkles i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--sparkle-hue) 78% 72%);
  box-shadow: 0 0 13px hsl(var(--sparkle-hue) 88% 72%);
  transform: translate(-50%, -50%);
  animation: cursor-sparkle 0.85s ease-out forwards;
}

@keyframes cursor-sparkle {
  from { opacity: 0.92; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -18px) scale(0.1); }
}

.petal-field span {
  position: absolute;
  top: -40px;
  left: calc((var(--i) * 47px) % 100vw);
  width: 12px;
  height: 18px;
  border-radius: 12px 0 12px 0;
  background: rgba(233, 167, 161, 0.72);
  animation: fall 12s linear infinite;
  animation-delay: var(--delay);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.motion-item {
  --motion-x: 0;
  --motion-y: 24px;
  --motion-scale: 1;
  opacity: 0;
  transform: translate3d(var(--motion-x), var(--motion-y), 0) scale(var(--motion-scale));
  transition: opacity 0.8s var(--motion-delay, 0ms) ease, transform 0.9s var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-left { --motion-x: -34px; --motion-y: 0; }
.motion-right { --motion-x: 34px; --motion-y: 0; }
.motion-scale { --motion-y: 0; --motion-scale: 0.92; }

.motion-item.is-in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-media img {
  translate: 0 var(--parallax-y, 0);
}

@keyframes star-twinkle {
  from { filter: brightness(0.75); transform: scale(0.75); }
  to { filter: brightness(1.4); transform: scale(1.35); }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(80px, 110vh, 0) rotate(420deg);
  }
}

@media (max-width: 900px) {
  .bank-transfer-list {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 150px;
  }

  .hero-content {
    padding-bottom: 190px;
  }

  .countdown,
  .story-showcase,
  .details-grid,
  .stats-grid,
  .message-wall,
  .program-panel,
  .program-list,
  .rsvp-shell,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .story-timeline::before {
    left: 26px;
  }

  .details-feature {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 110px;
  }

  .wedding-pups {
    right: 50%;
    bottom: 14px;
    transform: translateX(50%) scale(0.92);
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
    right: 18px;
  }

  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 78px;
  }

  .gallery-layout-single .gallery-photo,
  .gallery-layout-duo .gallery-photo,
  .gallery-layout-trio .gallery-photo:first-child,
  .gallery-layout-quad .gallery-photo,
  .gallery-layout-feature .gallery-photo:first-child,
  .gallery-layout-feature .gallery-photo:nth-child(n + 2),
  .gallery-layout-feature .gallery-photo:nth-child(5),
  .gallery-layout-feature .gallery-photo:nth-child(6),
  .gallery-layout-mosaic .gallery-photo,
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 1),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 2),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 4),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 5),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 6) {
    grid-column: span 3;
    grid-row: span 3;
  }

  .gallery-layout-trio .gallery-photo:first-child,
  .gallery-layout-feature .gallery-photo:first-child,
  .gallery-layout-mosaic .gallery-photo:nth-child(6n + 1) {
    grid-column: span 6;
    grid-row: span 4;
  }

  .gallery img:nth-child(even),
  .gallery-layout-duo .gallery-photo:nth-child(2) {
    margin-top: 0;
    transform: none;
  }

  .rsvp-shell,
  .message-layout {
    padding: 22px;
  }

  .wish-studio-layout {
    grid-template-columns: 1fr;
  }

  .wish-studio-controls {
    padding-right: 38px;
  }

  .wish-card-preview {
    width: min(100%, 380px);
  }
}

@media (max-width: 560px) {
  .bank-card {
    grid-template-columns: 1fr;
  }

  .bank-qr {
    width: min(100%, 250px);
    margin: auto;
  }
  .wish-typography {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 76px 16px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-layout-single .gallery-photo,
  .gallery-layout-duo .gallery-photo,
  .gallery-layout-trio .gallery-photo:first-child,
  .gallery-layout-trio .gallery-photo:not(:first-child),
  .gallery-layout-quad .gallery-photo,
  .gallery-layout-feature .gallery-photo:first-child,
  .gallery-layout-feature .gallery-photo:nth-child(n + 2),
  .gallery-layout-feature .gallery-photo:nth-child(5),
  .gallery-layout-feature .gallery-photo:nth-child(6),
  .gallery-layout-mosaic .gallery-photo,
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 1),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 2),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 4),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 5),
  .gallery-layout-mosaic .gallery-photo:nth-child(8n + 6) {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .hero-content {
    padding-bottom: 210px;
  }

  .details-feature {
    padding-bottom: 104px;
  }

  .wedding-pups {
    bottom: 10px;
    transform: translateX(50%) scale(0.78);
  }

  .countdown {
    gap: 6px;
  }

  .countdown div {
    padding: 12px 6px;
  }

  .countdown strong {
    font-size: 1.35rem;
  }

  .nav a {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .guest-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-card {
    grid-template-columns: 62px 1fr;
    padding: 20px;
  }

  .story-marker {
    width: 48px;
    height: 48px;
  }

  .program-item {
    min-height: 94px;
  }

  .gallery-lightbox[open] {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    width: 96vw;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .lightbox-close {
    top: 2px;
    right: 4px;
    z-index: 2;
  }

  .wish-studio-layout {
    padding: 50px 18px 24px;
  }

  .wish-card-preview {
    width: min(100%, 320px);
    padding: 48px 38px;
  }

  .message-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Configurable photographic layers and compact quick navigation. */
.section.has-photo-backdrop {
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(
      rgba(var(--section-tint, 255, 250, 245), var(--section-overlay-opacity, 0.72)),
      rgba(var(--section-tint, 255, 250, 245), var(--section-overlay-opacity, 0.72))
    ),
    var(--section-image) !important;
  background-position: center;
  background-size: cover;
}

.topbar {
  background: rgba(255, 250, 245, 0.68);
}

.story-card,
.detail-card,
.details-feature,
.program-panel,
.bank-card,
.rsvp-shell,
.message-form,
.stat,
.guest-row {
  background-color: rgba(255, 255, 255, var(--card-opacity, 0.78));
  backdrop-filter: blur(14px) saturate(1.08);
}

.quick-dock {
  position: fixed;
  top: 50%;
  right: 34px;
  z-index: 40;
  display: grid;
  justify-items: center;
  gap: 9px;
  transform: translateY(-50%);
}

.quick-dock-items {
  display: grid;
  gap: 9px;
  max-height: 380px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-dock-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: white;
  background: rgba(204, 70, 88, 0.9);
  box-shadow: 0 10px 25px rgba(86, 37, 44, 0.24);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.quick-dock-button[hidden] {
  display: none !important;
}

.quick-dock-button:hover,
.quick-dock-button:focus-visible {
  background: rgba(174, 74, 83, 0.96);
  box-shadow: 0 14px 30px rgba(86, 37, 44, 0.34);
  transform: translateX(-4px) scale(1.06);
  outline: none;
}

.quick-dock-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.quick-dock-toggle {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 220, 224, 0.9);
  background: rgba(204, 70, 88, 0.96);
}

.quick-dock.is-collapsed .quick-dock-items {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.84);
}

.music-toggle.is-playing::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(204, 70, 88, 0.42);
  border-radius: 50%;
  animation: music-pulse 1.8s ease-out infinite;
}

.music-toggle.is-awaiting-play {
  animation: music-waiting 1.4s ease-in-out infinite alternate;
}

@keyframes music-pulse {
  from { opacity: 0.8; transform: scale(0.86); }
  to { opacity: 0; transform: scale(1.38); }
}

@keyframes music-waiting {
  from { box-shadow: 0 8px 20px rgba(86, 37, 44, 0.22); }
  to { box-shadow: 0 8px 28px rgba(204, 70, 88, 0.58); }
}

@media (max-width: 720px) {
  .quick-dock {
    right: 14px;
  }

  .quick-dock-button {
    width: 43px;
    height: 43px;
  }

  .quick-dock-toggle {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing::after,
  .music-toggle.is-awaiting-play {
    animation: none;
  }
}
