:root {
  --ink: #293024;
  --muted: #68705e;
  --paper: #f7f5ef;
  --blush: #e2e6dc;
  --rose: #596348;
  --coral: #707a60;
  --leaf: #596348;
  --mint: #e5e9df;
  --gold: #697257;
  --sky: #c9d0bf;
  --lavender: #d9ddd2;
  --line: rgba(89, 99, 72, 0.16);
  --shadow: 0 18px 48px rgba(45, 54, 37, 0.13);
  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;
}

.brand img {
  display: block;
  width: auto;
  height: clamp(72px, 7vw, 96px);
  max-width: 210px;
  object-fit: contain;
}

.brand img[hidden],
.brand span[hidden] {
  display: 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);
}

.wedding-names {
  display: flex;
  width: fit-content;
  flex-direction: column;
  align-items: flex-start;
  color: var(--rose);
  font-family: "Brittany Signature", "Dancing Script", cursive;
  font-size: clamp(4.5rem, 11vw, 8.8rem);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.055em;
  text-shadow: none;
}

.wedding-names .groom-name {
  position: relative;
  z-index: 1;
  transform: translateX(-0.04em) rotate(-1deg);
}

.wedding-names .bride-line {
  display: flex;
  align-items: baseline;
  gap: 0.14em;
  margin-top: 0.28em;
  margin-left: 0.42em;
  white-space: nowrap;
  transform: rotate(0.5deg);
}

.wedding-names small {
  font: inherit;
  font-size: 0.42em;
  letter-spacing: 0;
}

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(89, 99, 72, 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,
.message-card,
.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(2, 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-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.story-photo-grid img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-photo-count-1 img {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.story-photo-count-2 img {
  grid-row: 1 / -1;
}

.story-photo-count-3 img:first-child {
  grid-row: 1 / -1;
}

.story-photo-count-4 img:nth-child(1) { transform: rotate(-1.2deg); }
.story-photo-count-4 img:nth-child(2) { transform: translateY(8px) rotate(1deg); }
.story-photo-count-4 img:nth-child(3) { transform: translateY(-5px) rotate(.8deg); }
.story-photo-count-4 img:nth-child(4) { transform: rotate(-.8deg); }

.story-photo-count-5,
.story-photo-count-6 {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 30px;
  padding: 16px 4px;
}

.story-timeline::before {
  content: "";
  position: absolute;
  inset: -10px 34% -14px 34%;
  border-radius: 48% 52% 42% 58% / 10% 14% 12% 10%;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255,255,255,.5) 22%, transparent 38%),
    linear-gradient(180deg, #b9dce0 0%, #87c4ca 48%, #6eaeb8 100%);
  box-shadow: inset 8px 0 18px rgba(255,255,255,.32), inset -8px 0 18px rgba(72,133,143,.18);
  transform: skewX(-5deg);
  opacity: .82;
  z-index: 0;
  pointer-events: none;
}

.story-timeline::after {
  content: "";
  position: absolute;
  inset: 0 40%;
  background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(255,255,255,.55) 36px 39px, transparent 41px 68px);
  filter: blur(1px);
  animation: river-flow 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes river-flow {
  to { transform: translateY(68px); }
}

.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);
  width: 62%;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.story-card:nth-child(even) {
  justify-self: end;
}

.story-card:nth-child(odd)::before,
.story-card:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 46px;
  height: 2px;
  background: rgba(91, 145, 151, .55);
}

.story-card:nth-child(odd)::before { right: -46px; }
.story-card:nth-child(even)::before { left: -46px; }

.story-marker {
  outline: 5px solid rgba(255,255,255,.72);
}

.wedding-mascots {
  position: absolute;
  z-index: 1;
  right: clamp(154px, 23vw, 330px);
  bottom: 4px;
  width: 250px;
  height: 116px;
  pointer-events: none;
}

.wedding-mascots .pup-heart { left: 52%; }

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

.mascot-pig { left: 8px; transform: rotate(-2deg); }
.mascot-cat { right: 2px; transform: rotate(2deg); }
.mascot-shadow { fill: rgba(103, 71, 50, 0.14); }
.tux-body, .lapel { fill: #34373d; }
.shirt { fill: #fffaf5; }
.pig-face, .pig-ear { fill: #f1b8ad; stroke: rgba(116,72,68,.18); stroke-width: 1.5; }
.pig-snout { fill: #e99d99; }
.mascot-eye, .pig-nostril, .cat-nose { fill: #3f3432; }
.bow { fill: #a96d68; }
.dress { fill: #fffaf3; stroke: #d9cbbf; stroke-width: 1.5; }
.dress-detail, .veil, .cat-whisker { fill: none; stroke: #c9b7aa; stroke-width: 1.4; stroke-linecap: round; }
.cat-face { fill: #eee4db; stroke: #bca99c; stroke-width: 1.5; }

@media (max-width: 900px) {
  .story-card { width: 74%; }
  .story-timeline::before { inset-inline: 40%; }
  .story-timeline::after { inset-inline: 46%; }
  .wedding-mascots { right: 50%; bottom: 8px; transform: translateX(50%) scale(.9); }
}

@media (max-width: 560px) {
  .brand img { height: 68px; max-width: 150px; }
  .wedding-names { font-size: clamp(3.8rem, 20vw, 6.4rem); }
  .wedding-names .bride-line { margin-left: .16em; }
  .story-timeline { gap: 24px; padding-left: 30px; }
  .story-timeline::before { inset: -8px auto -8px 0; width: 40px; }
  .story-timeline::after { inset: 0 auto 0 16px; width: 8px; }
  .story-card, .story-card:nth-child(even) { width: 100%; justify-self: stretch; }
  .story-card:nth-child(odd)::before, .story-card:nth-child(even)::before { left: -30px; right: auto; width: 30px; }
  .wedding-mascots { transform: translateX(50%) scale(.76); }
}

.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(89, 99, 72, 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(89, 99, 72, 0.05), 0 0 0 46px rgba(105, 114, 87, 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(89, 99, 72, 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(89, 99, 72, 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(89, 99, 72, 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: #596348;
}

.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(89, 99, 72, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(242, 244, 238, 0.78));
}

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

/* 2026 editorial invitation redesign: a true 560px, mobile-first composition. */
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(89, 99, 72, 0.08), transparent 34%),
    #eceee8;
}

.invitation-content {
  width: min(100%, 560px);
  container: invitation / inline-size;
  border-inline-color: rgba(89, 99, 72, 0.14);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(38, 47, 31, 0.2);
}

.topbar {
  width: min(100%, 560px);
  min-height: 78px;
  padding: 8px 22px;
  border-bottom: 1px solid rgba(89, 99, 72, 0.14);
  background: rgba(247, 245, 239, 0.92);
  box-shadow: 0 8px 30px rgba(45, 54, 37, 0.07);
}

.brand img {
  height: 62px;
  max-width: 142px;
}

.lang-button.is-active,
.segmented input:checked + span,
.button.primary {
  color: #fff;
  border-color: var(--leaf);
  background: var(--leaf);
  box-shadow: 0 10px 24px rgba(89, 99, 72, 0.22);
}

.button.primary:hover {
  color: #fff;
  background: #465039;
}

.section {
  padding: 72px 28px;
}

.section-heading {
  max-width: 470px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-inline: auto;
  font-size: clamp(2.35rem, 9vw, 3.4rem);
  line-height: 0.98;
}

.section-heading > p:not(.eyebrow) {
  max-width: 430px;
  margin-inline: auto;
  line-height: 1.75;
}

.eyebrow,
.story-card > span:not(.story-bloom):not(.story-leaf),
.detail-card > span,
.details-feature-copy > span {
  color: var(--leaf);
  letter-spacing: 0.14em;
}

/* Hero and countdown */
.hero {
  min-height: max(100svh, 820px);
  padding: 110px 28px 28px;
  align-items: end;
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(25, 31, 21, 0.08) 8%, rgba(25, 31, 21, 0.22) 46%, rgba(25, 31, 21, 0.82) 100%);
}

.hero-content {
  width: 100%;
  padding: 0 0 202px;
  text-align: left;
}

.hero .eyebrow {
  color: rgba(247, 245, 239, 0.86);
}

.wedding-names {
  max-width: 100%;
  margin: 8px 0 12px;
  color: #f7f5ef;
  font-size: clamp(3.9rem, 15.5vw, 5.85rem);
  line-height: 0.78;
}

.wedding-names .bride-line {
  margin-top: 0.18em;
  margin-left: 0.24em;
}

.hero-date {
  color: #f7f5ef;
  font-size: 1.38rem;
  letter-spacing: 0.09em;
}

.hero-actions {
  gap: 10px;
}

.hero-actions .button {
  min-height: 46px;
  padding-inline: 18px;
}

.countdown {
  right: 28px;
  bottom: 28px;
  left: 28px;
  width: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.countdown div {
  min-height: 72px;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  justify-content: start;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(247, 245, 239, 0.32);
  background: rgba(247, 245, 239, 0.9);
  box-shadow: 0 12px 28px rgba(24, 31, 20, 0.18);
  text-align: left;
}

.countdown strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* Story: photo editorial followed by a single flowing river. */
.story-section {
  padding-bottom: 82px;
}

.story-showcase {
  display: block;
  max-width: none;
}

.story-photo {
  width: calc(100% - 14px);
  margin: 0 auto 48px;
}

.story-photo::before {
  inset: 18px -12px -15px 24px;
  background: rgba(89, 99, 72, 0.12);
}

.story-photo::after {
  inset: -10px 22px 22px -10px;
  border-color: rgba(89, 99, 72, 0.28);
}

.story-photo-grid {
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(89, 99, 72, 0.12);
  background: #fff;
  box-shadow: 0 16px 42px rgba(45, 54, 37, 0.14);
}

.story-timeline {
  gap: 22px;
  padding: 18px 0 4px 64px;
}

.story-timeline::before {
  inset: 0 auto 0 14px;
  width: 31px;
  border-radius: 48% 52% 45% 55% / 8% 10% 9% 8%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42) 38%, transparent 56%),
    linear-gradient(180deg, #b9c2ab, #7f8d6b 52%, #596348);
  box-shadow: inset 6px 0 12px rgba(255, 255, 255, 0.24), inset -6px 0 12px rgba(45, 54, 37, 0.16);
  transform: skewX(-2deg);
}

.story-timeline::after {
  inset: 4px auto 4px 25px;
  width: 6px;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, 0.52) 24px 27px, transparent 29px 48px);
}

.story-card,
.story-card:nth-child(even) {
  width: 100%;
  min-height: 152px;
  display: block;
  justify-self: stretch;
  padding: 24px 22px 22px;
  overflow: visible;
  border: 1px solid rgba(89, 99, 72, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(45, 54, 37, 0.1);
}

.story-card::after {
  display: none;
}

.story-card:nth-child(odd)::before,
.story-card:nth-child(even)::before {
  top: 42px;
  right: auto;
  left: -22px;
  width: 22px;
  height: 1px;
  background: rgba(89, 99, 72, 0.46);
}

.story-marker {
  position: absolute;
  top: 20px;
  left: -62px;
  width: 48px;
  height: 48px;
  color: #fff;
  outline: 4px solid rgba(247, 245, 239, 0.84);
  background: var(--leaf) !important;
  box-shadow: 0 8px 20px rgba(45, 54, 37, 0.18);
}

.story-card > span:not(.story-bloom):not(.story-leaf) {
  display: block;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.story-bloom {
  background:
    radial-gradient(circle at 50% 50%, #7a8468 0 10%, transparent 11%),
    radial-gradient(ellipse at 50% 16%, #fff 0 17%, transparent 18%),
    radial-gradient(ellipse at 84% 50%, #dfe4d8 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 84%, #fff 0 17%, transparent 18%),
    radial-gradient(ellipse at 16% 50%, #dfe4d8 0 17%, transparent 18%);
}

/* Details: every block participates in normal flow. */
.details-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px 24px 24px;
  border-radius: 4px;
  text-align: center;
  background: rgba(247, 245, 239, 0.92);
}

.details-feature strong {
  font-size: clamp(2.8rem, 12vw, 4rem);
}

.details-feature p {
  max-width: 380px;
  margin: 10px auto 0;
}

.wedding-mascots {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(250px, 100%);
  height: 122px;
  margin: 0 auto;
  transform: none;
}

.details-feature .button.primary {
  width: 100%;
  color: #fff;
  border-color: var(--leaf);
  background: var(--leaf);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-card {
  min-height: 0;
  padding: 26px 24px;
  border-top: 1px solid rgba(89, 99, 72, 0.18) !important;
  border-radius: 4px;
  background: rgba(247, 245, 239, 0.9) !important;
}

.detail-card h3 {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 2rem;
}

.detail-card::before {
  color: var(--leaf);
}

.program-panel {
  display: block;
  margin-top: 24px;
  padding: 28px 24px 24px;
  border-radius: 4px;
}

.program-panel > div:first-child {
  margin-bottom: 24px;
  text-align: center;
}

.program-panel h3 {
  font-size: clamp(2.25rem, 9vw, 3rem);
}

.program-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.program-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 75px;
  width: 1px;
  background: rgba(89, 99, 72, 0.28);
}

.program-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 14px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(89, 99, 72, 0.12);
  background: transparent !important;
}

.program-item:last-child {
  border-bottom: 0;
}

.program-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 71px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 3px solid #f7f5ef;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 1px rgba(89, 99, 72, 0.3);
  transform: translateY(-50%);
}

.program-item::after {
  display: none;
}

.program-item time {
  margin: 0;
  padding-right: 18px;
  color: var(--leaf) !important;
  font-size: 1.3rem;
}

.program-item span {
  padding-left: 20px;
  color: var(--ink);
  font-weight: 700;
}

/* RSVP, messages and admin use the same calm single-column rhythm. */
.rsvp-shell,
.message-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  width: 100%;
  max-width: none;
  padding: 30px 24px;
  border-radius: 4px;
}

.rsvp-shell > div:first-child,
.message-layout .section-heading {
  text-align: center;
}

.rsvp-shell h2,
.message-layout h2 {
  margin: 6px auto 12px;
  text-align: center;
  font-size: clamp(2.35rem, 9vw, 3.2rem);
  line-height: 1;
}

.rsvp-shell > div:first-child > p:last-child {
  max-width: 390px;
  margin-inline: auto;
  color: var(--muted);
  line-height: 1.7;
}

.form {
  width: 100%;
  gap: 15px;
}

.form label {
  width: 100%;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

input,
textarea {
  min-width: 0;
  border-radius: 3px;
  border-color: rgba(89, 99, 72, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

input:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(89, 99, 72, 0.12);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 5px;
  border-radius: 999px;
}

.segmented label,
.segmented span {
  min-width: 0;
  width: 100%;
}

.message-layout {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-layout .section-heading {
  margin-bottom: 0;
}

.message-form {
  padding: 24px;
  border-radius: 4px;
}

.message-wall {
  grid-template-columns: 1fr;
  gap: 24px;
  padding-inline: 0;
}

.message-section .message-card,
.message-section .message-card:nth-child(n) {
  min-height: 0;
  border: 1px solid rgba(89, 99, 72, 0.12);
  background: #fbfaf5;
  box-shadow: 0 12px 30px rgba(45, 54, 37, 0.12);
}

/* Keep the album editorial but readable inside the invitation frame. */
.gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 138px;
  gap: 8px;
}

.gallery-layout-single .gallery-photo,
.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: 1 / -1;
}

/* The quick actions remain useful but now belong to the moss system. */
.quick-dock-button {
  border-color: rgba(247, 245, 239, 0.76);
  color: #fff;
  background: rgba(89, 99, 72, 0.94);
  box-shadow: 0 9px 22px rgba(45, 54, 37, 0.2);
}

.quick-dock-button:hover,
.quick-dock-button:focus-visible {
  background: #465039;
}

.footer {
  color: var(--muted);
  background: #f7f5ef;
}

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

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

@media (max-width: 420px) {
  .section {
    padding: 64px 18px;
  }

  .topbar {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand img {
    height: 54px;
  }

  .hero {
    min-height: max(100svh, 760px);
    padding-inline: 20px;
  }

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

  .wedding-names {
    font-size: clamp(3.45rem, 18vw, 4.8rem);
  }

  .countdown {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .countdown div {
    min-height: 68px;
    padding: 11px 12px;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button {
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .story-timeline {
    padding-left: 57px;
  }

  .story-card {
    padding-inline: 18px;
  }

  .story-marker {
    left: -55px;
    width: 43px;
    height: 43px;
    font-size: 0.72rem;
  }

  .details-feature,
  .detail-card,
  .program-panel,
  .rsvp-shell,
  .message-form {
    padding-inline: 18px;
  }

  .quick-dock {
    display: none;
  }

  .gallery {
    grid-auto-rows: 116px;
  }
}

.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(89, 99, 72, 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;
}

.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(89, 99, 72, 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;
}

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

.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(89, 99, 72, 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(89, 99, 72, 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(89, 99, 72, 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(89, 99, 72, 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: #f7f5ef;
  --wish-end: #dfe4da;
  --wish-accent: #596348;
  --wish-ink: #293024;
  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;
}

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

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

@media (max-width: 900px) {
  .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,
  .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) {
  .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;
  }

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

/* Compact quick navigation. */
.topbar {
  background: rgba(255, 250, 245, 0.68);
}

.story-card,
.detail-card,
.details-feature,
.program-panel,
.rsvp-shell,
.message-form {
  background-color: rgba(255, 255, 255, 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(89, 99, 72, 0.9);
  box-shadow: 0 10px 25px rgba(45, 54, 37, 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(70, 80, 57, 0.96);
  box-shadow: 0 14px 30px rgba(45, 54, 37, 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(228, 233, 222, 0.9);
  background: rgba(89, 99, 72, 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(89, 99, 72, 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(45, 54, 37, 0.22); }
  to { box-shadow: 0 8px 28px rgba(89, 99, 72, 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;
  }
}

/* Evergreen-inspired paper invitation system. */
:root {
  --ink: #343a2d;
  --muted: #68705f;
  --paper: #f7f5ef;
  --rose: #596348;
  --leaf: #596348;
  --mint: #e4e8dc;
  --gold: #7a8268;
  --line: rgba(89, 99, 72, 0.2);
  --shadow: 0 18px 44px rgba(42, 49, 35, 0.13);
  background: #e4e7df;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .8), transparent 36%),
    #e4e7df;
}

body.invitation-locked {
  overflow: hidden;
}

.invitation-cover {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #35402f;
  background: var(--paper);
  transition: opacity .85s ease, transform .85s cubic-bezier(.22, 1, .36, 1), visibility .85s ease;
}

.invitation-cover[hidden] {
  display: none;
}

.invitation-cover.is-opening {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.035);
}

.invitation-cover-photo {
  position: absolute;
  inset: -24px;
  background-image: var(--cover-image);
  background-position: center;
  background-size: cover;
  filter: blur(8px) grayscale(.08) saturate(.78);
  opacity: .54;
  transform: scale(1.075);
}

.invitation-cover-paper {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 17% 31%, rgba(72, 81, 60, .045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(103deg, rgba(255,255,255,.1) 0 2px, rgba(64,72,53,.025) 2px 3px, transparent 3px 8px),
    linear-gradient(rgba(247,245,239,.38), rgba(247,245,239,.52));
  mix-blend-mode: normal;
}

.invitation-cover-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(500px, calc(100vw - 40px));
  min-height: min(680px, calc(100svh - 48px));
  padding: clamp(44px, 8vh, 84px) 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(89, 99, 72, .28);
  background: rgba(247, 245, 239, .2);
  box-shadow: 0 28px 80px rgba(44, 52, 37, .14), inset 0 0 70px rgba(255,255,255,.28);
  backdrop-filter: blur(2px);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
}

.invitation-cover.is-opening .invitation-cover-card {
  opacity: 0;
  transform: translateY(-20px) scale(.97);
}

.invitation-cover-kicker,
.invitation-cover-label,
.invitation-cover-date {
  margin: 0;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.invitation-cover-kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: .88rem;
  font-weight: 700;
}

.invitation-cover-names {
  display: flex;
  margin: clamp(42px, 8vh, 72px) 0 34px;
  flex-direction: column;
  align-items: center;
  color: var(--rose);
  font-family: "Brittany Signature", "Dancing Script", cursive;
  font-size: clamp(3.8rem, 12vw, 6.2rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.04em;
}

.invitation-cover-names small {
  margin: .2em 0 .12em;
  font: inherit;
  font-size: .38em;
}

.invitation-cover-date {
  margin-bottom: 42px;
  font: 600 1rem/1.2 "Cormorant Garamond", serif;
}

.invitation-cover-label {
  margin-bottom: 18px;
  font-size: .68rem;
  font-weight: 600;
}

.open-invitation-button {
  min-width: 152px;
  padding: 13px 28px;
  border: 1px solid var(--rose);
  border-radius: 2px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 12px 28px rgba(89, 99, 72, .23);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .18em;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.open-invitation-button:hover {
  color: var(--rose);
  background: rgba(247,245,239,.72);
  transform: translateY(-3px);
}

.invitation-cover-ornament {
  position: absolute;
  z-index: 3;
  color: rgba(89, 99, 72, .52);
  font: 400 clamp(5rem, 16vw, 10rem)/1 Georgia, serif;
  pointer-events: none;
}

.ornament-top { top: -20px; left: -8px; transform: rotate(135deg); }
.ornament-bottom { right: -8px; bottom: -20px; transform: rotate(-45deg); }

.invitation-content {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  background: var(--paper);
  border-inline: 1px solid rgba(89, 99, 72, .18);
  box-shadow: 0 32px 90px rgba(35, 42, 30, .25);
  transition: opacity .8s ease;
}

.invitation-content.is-open {
  opacity: 1;
}

.invitation-content .day-ambient,
.invitation-content .day-journey,
.invitation-content .cursor-sparkles {
  display: none;
}

.topbar {
  right: auto;
  left: 50%;
  width: min(100%, 520px);
  grid-template-columns: 1fr auto;
  padding: 10px 18px;
  background: rgba(247, 245, 239, .9);
  border-color: rgba(89, 99, 72, .16);
  transform: translateX(-50%);
}

.topbar .nav {
  display: none;
}

.brand img {
  height: 66px;
  max-width: 128px;
}

.section {
  padding: 76px 26px;
}

.hero {
  min-height: 860px;
  padding-top: 104px;
}

.hero::after {
  background: linear-gradient(180deg, rgba(27,34,24,.2), rgba(27,34,24,.16) 36%, rgba(27,34,24,.68));
}

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

.wedding-names {
  color: #f7f5ef;
  font-size: clamp(4.4rem, 18vw, 7rem);
}

.hero .eyebrow,
.hero-date {
  color: #f7f5ef;
}

.button.primary,
.lang-button.is-active,
.segmented input:checked + span {
  background: var(--rose);
  box-shadow: 0 12px 28px rgba(89, 99, 72, .24);
}

.story-section,
.gallery-section,
.rsvp-section,
.message-section,
.details-section,
.stats-section {
  color: var(--ink);
  background: var(--paper) !important;
}

.story-section:nth-of-type(even),
.details-section,
.rsvp-section,
.message-section {
  background: #edf0e8 !important;
}

.section::before,
.section::after,
.section-glow {
  opacity: .35;
}

.countdown div,
.detail-card,
.story-card,
.message-card,
.rsvp-shell,
.message-form,
.details-feature,
.program-panel {
  border-color: rgba(89, 99, 72, .18);
  background: rgba(247, 245, 239, .9);
  box-shadow: 0 14px 36px rgba(48, 57, 40, .1);
  backdrop-filter: none;
}

.story-timeline::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,.42) 24%, transparent 40%),
    linear-gradient(180deg, #bdc6ad, #879773 50%, #596348);
  box-shadow: inset 8px 0 18px rgba(255,255,255,.28), inset -8px 0 18px rgba(50,64,43,.15);
}

.story-card span,
.detail-card span,
.eyebrow {
  color: var(--rose);
}

.photo-reveal {
  opacity: 0;
  clip-path: inset(10% 8% 10% 8%);
  filter: blur(9px) saturate(.75);
  transform: translateY(30px) scale(.94) rotate(-1.2deg);
  transition:
    opacity 1.05s ease var(--photo-delay, 0ms),
    clip-path 1.2s cubic-bezier(.22,1,.36,1) var(--photo-delay, 0ms),
    filter 1.15s ease var(--photo-delay, 0ms),
    transform 1.2s cubic-bezier(.22,1,.36,1) var(--photo-delay, 0ms) !important;
}

.photo-reveal:nth-child(even) {
  transform: translateY(30px) scale(.94) rotate(1.2deg);
}

.photo-reveal.is-visible {
  opacity: 1;
  clip-path: inset(0);
  filter: none;
  transform: translateY(0) scale(1) rotate(var(--photo-rotate, 0deg));
}

.story-photo-grid {
  padding: 8px;
  gap: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(47,56,39,.16);
  transform: rotate(-1.4deg);
}

.story-photo-grid img,
.gallery img {
  border-radius: 2px;
  box-shadow: none;
}

.gallery {
  gap: 8px;
}

.gallery img:hover {
  filter: none;
  transform: scale(1.025);
}

.footer {
  color: var(--muted);
  background: var(--paper);
}

@media (max-width: 560px) {
  .invitation-cover-card {
    width: calc(100vw - 28px);
    min-height: calc(100svh - 28px);
    padding-inline: 22px;
  }

  .section {
    padding-inline: 20px;
  }

  .hero {
    min-height: 100svh;
  }

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

  .brand img {
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-cover,
  .invitation-cover-card,
  .invitation-content,
  .photo-reveal {
    transition: none !important;
  }
}

/* Final cascade lock: legacy desktop rules above must not escape the 560px card. */
.invitation-content {
  width: min(100%, 560px);
  border-inline-color: rgba(89, 99, 72, 0.14);
  box-shadow: 0 30px 90px rgba(38, 47, 31, 0.2);
}

.topbar {
  width: min(100%, 560px);
  min-height: 78px;
  padding: 8px 22px;
  border-bottom-color: rgba(89, 99, 72, 0.14);
  background: rgba(247, 245, 239, 0.92);
  box-shadow: 0 8px 30px rgba(45, 54, 37, 0.07);
}

.brand img {
  height: 62px;
  max-width: 142px;
}

.section {
  padding: 72px 28px;
}

.hero {
  min-height: max(100svh, 820px);
  padding: 110px 28px 28px;
}

.hero::after {
  background: linear-gradient(180deg, rgba(25, 31, 21, 0.08) 8%, rgba(25, 31, 21, 0.22) 46%, rgba(25, 31, 21, 0.82) 100%);
}

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

.wedding-names {
  max-width: 100%;
  color: #f7f5ef;
  font-size: clamp(3.9rem, 15.5vw, 5.85rem);
  line-height: 0.78;
}

.invitation-content .quick-dock-button {
  border-color: rgba(247, 245, 239, 0.76);
  color: #fff;
  background: rgba(89, 99, 72, 0.94);
  box-shadow: 0 9px 22px rgba(45, 54, 37, 0.2);
}

.invitation-content .quick-dock-button:hover,
.invitation-content .quick-dock-button:focus-visible {
  background: #465039;
}

.rsvp-shell,
.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  width: 100%;
  max-width: none;
  padding: 30px 24px;
  border-radius: 4px;
}

.rsvp-shell > div:first-child,
.message-layout .section-heading {
  width: 100%;
  text-align: center;
}

.rsvp-shell h2,
.message-layout h2 {
  margin: 6px auto 12px;
  text-align: center;
  font-size: clamp(2.35rem, 9vw, 3.2rem);
  line-height: 1;
}

.rsvp-shell .form,
.message-layout .form {
  width: 100%;
  min-width: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.message-layout {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-wall {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-inline: 0;
}

.gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 138px;
  gap: 8px;
}

.gallery-layout-single .gallery-photo,
.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: 1 / -1;
}

@media (max-width: 420px) {
  .section {
    padding: 64px 18px;
  }

  .topbar {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand img {
    height: 54px;
  }

  .hero {
    min-height: max(100svh, 760px);
    padding-inline: 20px;
  }

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

  .wedding-names {
    font-size: clamp(3.45rem, 18vw, 4.8rem);
  }

  .quick-dock {
    display: none;
  }

  .gallery {
    grid-auto-rows: 116px;
  }
}

/* Final gallery lock for the narrow invitation canvas. */
.gallery .gallery-photo,
.gallery-layout-single .gallery-photo,
.gallery-layout-duo .gallery-photo,
.gallery-layout-duo .gallery-photo:nth-child(2),
.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: auto;
  grid-row: span 2;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
}

.gallery-layout-single .gallery-photo,
.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: 1 / -1;
  grid-row: span 3;
}

.gallery img:focus-visible {
  box-shadow: 0 0 0 4px rgba(89, 99, 72, 0.28), var(--shadow);
}

.pup-heart,
.pup-heart::before,
.pup-heart::after {
  background: var(--leaf);
}

/* RSVP meal preference */
.form-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--ink);
  font-weight: 700;
}

.form-fieldset > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Dedicated admin application */
html.admin-requested .invitation-cover,
html.admin-requested .invitation-content {
  display: none !important;
}

body.admin-mode {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: #293024;
  background: #eef1e9;
}

.admin-dashboard {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
}

.admin-dashboard[hidden] {
  display: none;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(89, 99, 72, 0.14);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(18px);
}

.admin-header-inner {
  display: flex;
  width: min(100% - 48px, 1240px);
  min-height: 74px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #f7f5ef;
  background: #596348;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.admin-brand-logo {
  width: 58px;
  height: 52px;
  object-fit: contain;
}

.admin-brand-logo[hidden],
.admin-brand-mark[hidden] {
  display: none;
}

.admin-brand div {
  display: grid;
  gap: 2px;
}

.admin-brand strong {
  font-size: 0.98rem;
}

.admin-brand div span,
.admin-header-meta {
  color: #68705e;
  font-size: 0.76rem;
}

.admin-header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.admin-header-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #596348;
  box-shadow: 0 0 0 4px rgba(89, 99, 72, 0.12);
}

.admin-logout-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(89, 99, 72, 0.2);
  border-radius: 999px;
  color: #465039;
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-logout-button:hover,
.admin-logout-button:focus-visible {
  border-color: #596348;
  background: #eef1e9;
}

.admin-logout-button[hidden],
.admin-login-view[hidden],
#adminAuthenticatedView[hidden] {
  display: none !important;
}

.admin-login-view {
  display: grid;
  min-height: calc(100vh - 75px);
  padding: 48px 20px;
  place-items: center;
  background:
    radial-gradient(circle at 16% 10%, rgba(153, 167, 130, 0.2), transparent 34%),
    radial-gradient(circle at 86% 90%, rgba(89, 99, 72, 0.14), transparent 32%),
    #eef1e9;
}

.admin-login-card {
  display: grid;
  width: min(100%, 430px);
  gap: 18px;
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid rgba(89, 99, 72, 0.16);
  border-radius: 22px;
  background: rgba(247, 245, 239, 0.96);
  box-shadow: 0 28px 70px rgba(45, 54, 37, 0.14);
}

.admin-login-brand {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 18px;
  color: #f7f5ef;
  background: #596348;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.admin-login-card h1 {
  margin: -8px 0 0;
  color: #293024;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.15rem, 7vw, 3rem);
  line-height: 1;
}

.admin-login-card > p:not(.admin-kicker):not(.admin-login-status) {
  margin: -4px 0 4px;
  color: #68705e;
  line-height: 1.65;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: #4b5542;
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-login-card input {
  min-height: 48px;
  border-color: rgba(89, 99, 72, 0.24);
  background: #fff;
}

.admin-login-button {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  color: #f7f5ef;
  background: #596348;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(89, 99, 72, 0.22);
}

.admin-login-button:hover,
.admin-login-button:focus-visible {
  background: #465039;
}

.admin-login-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.admin-login-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: #8a433a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.admin-container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
  padding: 54px 0 72px;
}

.admin-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.admin-kicker {
  margin: 0 0 8px;
  color: #596348;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-intro h1,
.admin-section-header h2 {
  margin: 0;
  color: #293024;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.admin-intro h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.admin-intro > div > p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: #68705e;
  line-height: 1.65;
}

.admin-export-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #596348;
  box-shadow: 0 12px 28px rgba(45, 54, 37, 0.16);
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.admin-export-button:hover,
.admin-export-button:focus-visible {
  background: #465039;
  transform: translateY(-2px);
}

.admin-export-button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.admin-metric-card {
  position: relative;
  min-height: 188px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(89, 99, 72, 0.13);
  border-radius: 14px;
  background: #f7f5ef;
  box-shadow: 0 16px 42px rgba(45, 54, 37, 0.07);
}

.admin-metric-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border: 22px solid rgba(89, 99, 72, 0.045);
  border-radius: 50%;
}

.admin-metric-card-primary {
  color: #f7f5ef;
  border-color: #596348;
  background: #596348;
}

.admin-metric-card-primary::after {
  border-color: rgba(247, 245, 239, 0.08);
}

.admin-metric-label {
  display: block;
  min-height: 38px;
  color: #68705e;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.admin-metric-card-primary .admin-metric-label,
.admin-metric-card-primary small {
  color: rgba(247, 245, 239, 0.78);
}

.admin-metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 6px;
  color: #596348;
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  line-height: 0.9;
}

.admin-metric-card-primary strong {
  color: #fff;
}

.admin-metric-card small {
  color: #68705e;
  font-size: 0.78rem;
}

.admin-metric-card small b {
  color: inherit;
}

.admin-responses {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid rgba(89, 99, 72, 0.13);
  border-radius: 14px;
  background: #f7f5ef;
  box-shadow: 0 16px 42px rgba(45, 54, 37, 0.07);
}

.admin-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-section-header h2 {
  font-size: 2rem;
}

.admin-updated-at {
  margin: 0;
  color: #68705e;
  font-size: 0.78rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(89, 99, 72, 0.13);
  border-radius: 10px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  padding: 14px 13px;
  color: #68705e;
  background: #eef1e9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  max-width: 260px;
  padding: 15px 13px;
  border-top: 1px solid rgba(89, 99, 72, 0.1);
  color: #4d5547;
  line-height: 1.45;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(238, 241, 233, 0.58);
}

.admin-table td strong {
  color: #293024;
}

.admin-table .admin-number {
  color: #293024;
  font-weight: 800;
  text-align: center;
}

.admin-note {
  min-width: 210px;
  white-space: normal;
}

.admin-history-button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(89, 99, 72, 0.24);
  border-radius: 8px;
  color: #596348;
  background: #f7f5ef;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-history-button:hover,
.admin-history-button:focus-visible {
  color: #fff;
  background: #596348;
}

.admin-wishes {
  margin-top: 22px;
}

/* 2026-09-03 editorial invitation refinement */
.hero-content .eyebrow {
  max-width: 82%;
  margin-bottom: 9px;
  color: rgba(247, 245, 239, .94);
  font-family: "Cormorant Garamond", serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.35;
}

.hero-actions-spacer {
  height: 42px;
}

.countdown div {
  min-height: 54px;
  padding: 6px 3px 5px;
  gap: 0;
  background: rgba(247, 245, 239, .88);
}

.countdown strong {
  color: var(--olive-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 5.3vw, 1.65rem);
  font-weight: 600;
  line-height: 1;
}

.countdown span {
  margin-top: 2px;
  color: #777d6d;
  font-family: "Cormorant Garamond", serif;
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.story-section {
  padding-bottom: 42px !important;
}

.story-timeline {
  gap: 34px;
  padding: 14px 0 18px;
}

.story-river {
  z-index: -1;
  inset: -12px -22px;
  width: calc(100% + 44px);
  height: calc(100% + 24px);
}

.story-river .story-river-fill {
  fill: rgba(223, 228, 215, .64);
  stroke: none;
}

.story-river .story-river-line {
  fill: none;
  stroke: rgba(89, 99, 72, .48);
  stroke-width: 2;
  stroke-linecap: round;
}

.story-river .story-river-spark {
  fill: none;
  stroke: rgba(200, 169, 107, .68);
  stroke-width: 1;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}

.story-card,
.story-card:nth-child(even) {
  width: 90%;
  min-height: 142px;
  grid-template-columns: minmax(0, 1fr) 104px;
  grid-template-rows: auto;
  gap: 12px;
  padding: 22px 12px 18px 20px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.story-card:nth-of-type(even) {
  grid-template-columns: 104px minmax(0, 1fr);
  padding: 22px 20px 18px 12px;
  text-align: right;
}

.story-card:nth-of-type(even) .story-milestone-copy { grid-column: 2; }
.story-card:nth-of-type(even) .story-photo-cluster { grid-column: 1; }

.story-milestone-copy {
  grid-column: 1;
  padding: 0;
}

.story-milestone-copy > span {
  margin-bottom: 8px;
  color: var(--olive-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.43rem;
  font-weight: 600;
  line-height: 1.05;
}

.story-milestone-copy p {
  max-width: 265px;
  color: #666b5e;
  font-size: .79rem;
  line-height: 1.62;
}

.story-card:nth-of-type(even) .story-milestone-copy p { margin-left: auto; }

.story-photo-cluster {
  position: relative;
  grid-column: 2;
  min-height: 106px;
  margin: 0;
}

.story-photo-cluster img {
  width: 67px;
  aspect-ratio: .8;
  padding: 3px 3px 9px;
  box-shadow: 0 8px 18px rgba(45, 54, 37, .15);
}

.story-photo-cluster img:first-child { left: 2px; }
.story-photo-cluster img:last-child { right: 1px; }

.story-marker,
.story-card:nth-of-type(even) .story-marker {
  top: -7px;
  width: 50px;
  height: 50px;
  outline-width: 4px;
}

.story-card:nth-of-type(odd) .story-marker { left: -8px; }
.story-card:nth-of-type(even) .story-marker { right: -8px; }

.story-closing-note {
  margin-top: 44px;
  padding-bottom: 10px;
}

.details-section {
  margin-top: 0;
  padding-top: 20px !important;
  background: var(--paper) !important;
}

.story-section::after,
.details-section::after {
  display: none !important;
}

.story-details-bridge {
  position: relative;
  width: min(100%, 430px);
  height: 245px;
  margin: 0 auto 38px;
}

.bridge-flower {
  position: absolute;
  z-index: 3;
  left: -20px;
  bottom: -8px;
  width: 180px;
  height: 132px;
  overflow: visible;
  fill: rgba(226, 193, 171, .45);
  stroke: rgba(89, 99, 72, .58);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bridge-photo {
  position: absolute;
  width: 47%;
  padding: 7px 7px 18px;
  border: 1px solid rgba(89, 99, 72, .12);
  background: #fff;
  box-shadow: 0 16px 34px rgba(54, 62, 46, .18);
}

.bridge-photo img {
  width: 100%;
  aspect-ratio: .82;
  display: block;
  object-fit: cover;
}

.bridge-photo-groom { top: 3px; left: 9%; transform: rotate(-7deg); }
.bridge-photo-bride { right: 5%; bottom: 0; transform: rotate(7deg); }

.family-presentation {
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 0 0 54px;
  padding: 0 8px;
}

.family-person,
.family-bride .family-copy {
  display: block;
  text-align: center;
}

.family-groom {
  padding-right: 13px;
  border-right: 1px solid rgba(200, 169, 107, .34);
}

.family-bride { padding-left: 13px; }

.family-side-label {
  margin: 0 0 12px;
  color: #a17838;
  font: 600 .78rem/1.2 "Cormorant Garamond", serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.family-role {
  margin-bottom: 12px;
  font-size: .61rem;
}

.family-parents { gap: 9px; }
.family-parents span { gap: 2px; }
.family-parents small { font-size: .52rem; }
.family-parents strong { font-size: .82rem; }

.formal-invitation {
  max-width: 440px;
  margin: 0 auto 34px;
  text-align: center;
}

.formal-kicker {
  margin: 0;
  color: #a17838;
  font: 600 .72rem/1.3 "Cormorant Garamond", serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.formal-guest {
  margin: 4px 0 3px;
  color: #a17838;
  font: 400 clamp(3.3rem, 14vw, 4.8rem)/.9 "Great Vibes", "Dancing Script", cursive;
}

.formal-rule {
  width: 210px;
  display: block;
  margin: 12px auto 14px;
  border-top: 1px dashed rgba(161, 120, 56, .72);
}

.formal-copy {
  max-width: 325px;
  margin: 0 auto 22px;
  color: #777166;
  font: 500 .84rem/1.5 "Cormorant Garamond", serif;
}

.formal-couple {
  display: grid;
  gap: 0;
  margin: 0;
  color: #54483f;
  font: 400 clamp(2.6rem, 12vw, 4rem)/.8 "Great Vibes", "Dancing Script", cursive;
}

.formal-couple small {
  margin: 5px 0;
  color: #a17838;
  font-size: .55em;
}

.details-feature {
  overflow: hidden;
  padding: 24px 27px 30px;
  border-radius: 14px;
}

.details-feature .wedding-mascots {
  width: min(292px, 100%);
  height: 145px;
  margin: -8px auto 0;
  transform: scale(1.12);
  transform-origin: center bottom;
}

.details-feature-copy { text-align: center; }

.details-feature-copy > span {
  color: #a17838;
  letter-spacing: .17em;
}

.details-feature-copy strong {
  margin-top: 3px;
  color: var(--olive-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 600;
}

.event-date-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  margin: 17px 0;
  padding: 14px 0;
  align-items: center;
  border-block: 1px solid rgba(89, 99, 72, .17);
}

.event-date-row i {
  width: 1px;
  height: 34px;
  background: rgba(200, 169, 107, .4);
}

.event-date-row b {
  color: var(--olive-deep);
  font: 600 1.2rem/1 "Cormorant Garamond", serif;
}

.details-feature .button.primary {
  justify-self: center;
  border-radius: 999px;
}

.program-panel {
  padding-top: 22px;
}

.gallery-section {
  padding-top: 70px !important;
}

.gallery .gallery-photo {
  will-change: opacity, transform, clip-path, filter;
}

.attendance-switch > span {
  width: 96px;
  height: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #c8cbbf;
}

.attendance-switch i {
  z-index: 0;
  top: 3px;
  left: 3px;
  width: 43px;
  height: 28px;
  border-radius: 999px;
}

.attendance-switch b {
  position: relative;
  z-index: 1;
  color: rgba(47, 55, 41, .66);
  font: 700 .63rem/1 "Inter", sans-serif;
  text-align: center;
  transition: color .25s ease;
}

.attendance-switch input:checked + span i { transform: translateX(47px); }
.attendance-switch input:not(:checked) + span .attendance-no,
.attendance-switch input:checked + span .attendance-yes { color: var(--olive-deep); }
.attendance-switch input:checked + span .attendance-no,
.attendance-switch input:not(:checked) + span .attendance-yes { color: rgba(247,245,239,.76); }

.message-wall {
  min-height: 390px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  align-items: start;
}

.message-section .message-card,
.message-section .message-card:nth-child(n) {
  min-height: 174px;
  padding: 24px 20px 18px;
  transform: rotate(-2.3deg) translateY(8px);
  transform-origin: center;
}

.message-section .message-card:nth-child(2) {
  transform: rotate(2.1deg) translateY(-7px);
}

.message-section .message-card:nth-child(3) {
  width: 78%;
  grid-column: 1 / -1;
  justify-self: center;
  transform: rotate(-.8deg) translateX(9px);
}

.message-section .message-card.motion-item.is-in-view,
.message-section .message-card.motion-item.is-in-view:nth-child(n) {
  transform: rotate(-2.3deg) translateY(8px);
}

.message-section .message-card.motion-item.is-in-view:nth-child(2) { transform: rotate(2.1deg) translateY(-7px); }
.message-section .message-card.motion-item.is-in-view:nth-child(3) { transform: rotate(-.8deg) translateX(9px); }

.message-carousel-meta {
  justify-content: flex-end;
}

.wish-save-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.wish-save-button svg {
  width: 15px;
  height: 15px;
}

.thank-you-photo-wrap::after {
  height: 24%;
  background: linear-gradient(transparent, rgba(247,245,239,.97));
}

.thank-you-botanical {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 100px;
  pointer-events: none;
}

.thank-you-botanical::before,
.thank-you-botanical::after,
.thank-you-botanical i,
.thank-you-botanical span {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 74px;
  height: 64px;
  opacity: .78;
  background: radial-gradient(ellipse at 50% 70%, rgba(89,99,72,.38) 0 8%, transparent 9%), radial-gradient(ellipse at 31% 42%, rgba(89,99,72,.5) 0 17%, transparent 18%), radial-gradient(ellipse at 67% 34%, rgba(200,169,107,.48) 0 18%, transparent 19%);
}

.thank-you-botanical::before { left: 7%; transform: rotate(-22deg); }
.thank-you-botanical::after { right: 7%; transform: rotate(25deg); }
.thank-you-botanical i:nth-child(1) { left: 29%; transform: scale(.78) rotate(12deg); }
.thank-you-botanical i:nth-child(2) { right: 28%; transform: scale(.82) rotate(-9deg); }
.thank-you-botanical i:nth-child(3) { left: 47%; transform: scale(.64); }
.thank-you-botanical span { display: none; }

.thank-you-card {
  width: calc(100% - 46px);
  min-height: 350px;
  margin-top: 16px;
  padding: 55px 25px 42px;
  background:
    radial-gradient(ellipse at 2% 96%, rgba(110, 141, 135, .24) 0 12%, transparent 13%),
    radial-gradient(ellipse at 98% 90%, rgba(209, 174, 91, .22) 0 15%, transparent 16%),
    rgba(255,255,255,.95);
}

.thank-you-script {
  color: #b88a37;
  font-size: clamp(4.6rem, 19vw, 6.8rem);
}

.thank-you-signature { display: none; }

.admin-content-editor { margin-top: 32px; }

.admin-story-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-story-card {
  min-width: 0;
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(89, 99, 72, .15);
  border-radius: 10px;
  background: #f5f6f1;
}

.admin-story-card legend {
  padding: 0 8px;
  color: #596348;
  font: 700 1.1rem/1 "Cormorant Garamond", serif;
}

.admin-story-card label {
  display: grid;
  gap: 6px;
}

.admin-story-card label span {
  color: #68705e;
  font-size: .68rem;
  font-weight: 750;
}

.admin-story-card input,
.admin-story-card textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(89, 99, 72, .18);
  border-radius: 7px;
  color: #2f352b;
  background: #fff;
  font: 500 .82rem/1.45 "Inter", sans-serif;
  resize: vertical;
}

.admin-content-group + .admin-content-group { margin-top: 30px; }

.admin-content-group > h3 {
  margin: 0 0 14px;
  color: #4f5945;
  font: 650 1.15rem/1.2 "Cormorant Garamond", serif;
  letter-spacing: .02em;
}

.admin-content-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.25fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(89, 99, 72, .15);
  border-radius: 10px;
  background: #f5f6f1;
}

.admin-program-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-content-settings-grid label {
  display: grid;
  gap: 6px;
}

.admin-content-settings-grid label span {
  color: #68705e;
  font-size: .68rem;
  font-weight: 750;
}

.admin-content-settings-grid input,
.admin-content-settings-grid textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(89, 99, 72, .18);
  border-radius: 7px;
  color: #2f352b;
  background: #fff;
  font: 500 .82rem/1.45 "Inter", sans-serif;
  resize: vertical;
}

.admin-story-content-actions {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

@media (max-width: 820px) {
  .admin-story-content-grid,
  .admin-program-content-grid,
  .admin-content-settings-grid { grid-template-columns: 1fr; }

  .admin-story-content-actions { align-items: stretch; flex-direction: column; }
  .admin-story-content-actions .admin-export-status { text-align: left; }
}

@media (max-width: 420px) {
  .hero-content { bottom: 98px; }
  .countdown { bottom: 12px; }
  .countdown div { min-height: 50px; }
  .story-card,
  .story-card:nth-child(even) { width: 94%; grid-template-columns: minmax(0, 1fr) 88px; }
  .story-card:nth-of-type(even) { grid-template-columns: 88px minmax(0, 1fr); }
  .story-photo-cluster img { width: 59px; }
  .story-details-bridge { height: 220px; }
  .family-presentation { gap: 12px; padding: 0; }
  .family-groom { padding-right: 8px; }
  .family-bride { padding-left: 8px; }
  .family-parents strong { font-size: .73rem; }
  .message-wall { min-height: 440px; }
  .message-section .message-card:nth-child(3) { width: 90%; }
}


.story-card:nth-of-type(even) .story-milestone-copy {
  padding-right: 38px;
}

/* 2026 connected invitation: olive paper, champagne thread and Evergreen cover. */
:root {
  --olive: #596348;
  --olive-deep: #3f4935;
  --sage: #aab59c;
  --beige: #e8dfcf;
  --champagne: #c8a96b;
  --champagne-pale: #f2e4bd;
  --paper: #f7f5ef;
  --gold: var(--champagne);
  --rose: var(--olive);
  --leaf: var(--olive);
  --line: rgba(89, 99, 72, 0.18);
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(135deg, #e5e8df, #d9ded2);
}

.invitation-cover {
  color: var(--olive-deep);
  background: var(--paper);
  transition: opacity .85s ease, transform .85s cubic-bezier(.22, 1, .36, 1), visibility .85s ease;
}

.invitation-cover-photo {
  inset: -18px;
  filter: blur(5px) grayscale(.12) saturate(.72);
  opacity: .18;
  transform: scale(1.045);
}

.invitation-cover-paper {
  background:
    repeating-radial-gradient(circle at 17% 31%, rgba(78, 69, 48, .055) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(103deg, rgba(255,255,255,.15) 0 2px, rgba(87,74,48,.022) 2px 3px, transparent 3px 8px),
    linear-gradient(rgba(247,245,239,.84), rgba(247,245,239,.92));
}

.invitation-cover-card {
  width: min(520px, calc(100vw - 32px));
  min-height: 0;
  padding: 32px 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.invitation-cover-kicker {
  color: #88713d;
  font-family: "Inter", sans-serif;
  font-size: .68rem;
  letter-spacing: .3em;
}

.invitation-cover-names {
  margin: clamp(28px, 7vh, 62px) 0 34px;
  color: var(--olive);
  font-size: clamp(3.7rem, 12vw, 6rem);
}

.invitation-cover-date {
  margin-bottom: 34px;
  color: #7b6843;
  font-size: .92rem;
  letter-spacing: .24em;
}

.invitation-cover-label {
  margin-bottom: 16px;
  color: #554f42;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

.open-invitation-button {
  position: relative;
  min-width: 136px;
  overflow: hidden;
  padding: 13px 25px;
  border: 1px solid rgba(138, 111, 48, .28);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(118deg, #a8873e 0%, #d8bd78 45%, #a8873e 100%);
  background-size: 220% 100%;
  box-shadow: 0 10px 28px rgba(123, 99, 44, .24);
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  animation: cover-button-breathe 2.4s ease-in-out infinite;
}

.open-invitation-button::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -38%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transform: skewX(-22deg);
  animation: champagne-shimmer 2.8s ease-in-out infinite;
}

.open-invitation-button:hover {
  color: #fff;
  background-position: 100% 0;
  transform: translateY(-3px) scale(1.02);
}

.invitation-cover-accent {
  position: absolute;
  z-index: 1;
  width: clamp(150px, 26vw, 330px);
  aspect-ratio: 1.65;
  pointer-events: none;
  opacity: .76;
  background:
    radial-gradient(ellipse at 36% 52%, rgba(235,218,167,.7) 0 18%, transparent 20%),
    radial-gradient(ellipse at 55% 48%, rgba(192,153,66,.82) 0 12%, transparent 14%),
    radial-gradient(ellipse at 69% 52%, rgba(234,213,151,.8) 0 18%, transparent 20%),
    radial-gradient(ellipse at 48% 66%, rgba(172,133,55,.42) 0 22%, transparent 24%);
  filter: blur(.3px);
  transform: rotate(-24deg);
}

.cover-accent-top { top: -5%; left: -6%; }
.cover-accent-bottom { right: -7%; bottom: -4%; transform: rotate(154deg); }

@keyframes champagne-shimmer {
  0%, 30% { left: -38%; opacity: 0; }
  50% { opacity: .85; }
  72%, 100% { left: 118%; opacity: 0; }
}

@keyframes cover-button-breathe {
  0%, 100% { box-shadow: 0 10px 28px rgba(123, 99, 44, .22); }
  50% { box-shadow: 0 12px 34px rgba(200, 169, 107, .48); }
}

.invitation-content {
  background: var(--paper);
}

.invitation-content main {
  position: relative;
  background: var(--paper);
}

.invitation-content .section:not(.hero) {
  position: relative;
  isolation: isolate;
  padding: 82px 30px 92px;
  overflow: hidden;
}

.invitation-content .section:not(.hero)::after {
  content: "✦";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  width: 116px;
  height: 22px;
  margin: auto;
  border-top: 1px solid rgba(200, 169, 107, .76);
  color: var(--champagne);
  background: inherit;
  font-size: .62rem;
  line-height: 1px;
  text-align: center;
  text-shadow: 0 0 8px rgba(242, 228, 189, .9);
}

.story-section,
.gallery-section,
.thank-you-section {
  background: var(--paper) !important;
}

.details-section {
  background:
    linear-gradient(rgba(232, 223, 207, .7), rgba(237, 240, 232, .92)) !important;
}

.rsvp-section {
  background:
    linear-gradient(145deg, var(--olive-deep), var(--olive)) !important;
}

.message-section {
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.55), transparent 34%),
    var(--beige) !important;
}

.message-section h2,
.message-section .section-heading p:not(.eyebrow) {
  color: var(--olive-deep);
}

.section-heading::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 0 auto 15px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  box-shadow: 0 0 9px rgba(200, 169, 107, .45);
}

.hero {
  min-height: max(100svh, 780px);
  padding: 92px 24px 22px;
}

.hero::after {
  background: linear-gradient(180deg, rgba(24,31,21,.08) 8%, rgba(24,31,21,.18) 44%, rgba(24,31,21,.76) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 122px;
  left: 24px;
  width: auto;
  padding: 0;
  text-align: left;
}

.hero-content .eyebrow {
  margin-bottom: 5px;
}

.wedding-names {
  max-width: 88%;
  margin: 2px 0 9px;
  font-size: clamp(3.65rem, 15.5vw, 5.35rem);
  line-height: .78;
}

.hero-date {
  margin-bottom: 13px;
  font-size: 1rem;
}

.hero-actions {
  gap: 8px;
}

.hero-actions .button {
  min-height: 39px;
  padding: 9px 14px;
  font-size: .66rem;
}

.countdown {
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  width: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.countdown div {
  min-width: 0;
  min-height: 70px;
  display: flex;
  padding: 9px 3px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(247,245,239,.32);
  border-radius: 2px;
  background: rgba(247,245,239,.9);
  text-align: center;
}

.countdown strong {
  font-size: clamp(1.35rem, 6vw, 1.8rem);
}

.countdown span {
  overflow: hidden;
  font-size: .53rem;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-section .section-heading {
  margin-bottom: 38px;
}

.story-section .section-heading h2 {
  color: var(--olive);
  font-family: "Great Vibes", "Dancing Script", cursive;
  font-size: clamp(3.7rem, 15vw, 5.2rem);
  font-weight: 400;
}

.story-intro {
  color: #8a7040 !important;
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  line-height: 1.1 !important;
}

.story-photo[hidden] {
  display: none !important;
}

.story-showcase {
  position: relative;
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 68px;
  padding: 20px 0 36px;
}

.story-timeline::before,
.story-timeline::after {
  display: none !important;
}

.story-river {
  position: absolute;
  z-index: -1;
  inset: 0 -12px;
  width: calc(100% + 24px);
  height: 100%;
  overflow: visible;
}

.story-river path:first-child {
  fill: none;
  stroke: rgba(89, 99, 72, .42);
  stroke-width: 2;
  stroke-linecap: round;
}

.story-river path:last-child {
  fill: none;
  stroke: rgba(200, 169, 107, .62);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  stroke-linecap: round;
}

.story-card,
.story-card:nth-child(even) {
  position: relative;
  width: 78%;
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  padding: 21px 19px;
  align-items: start;
  overflow: visible;
  border: 1px solid rgba(200,169,107,.42);
  border-radius: 2px;
  background: rgba(247,245,239,.94);
  box-shadow: 0 15px 32px rgba(54,62,46,.11);
}

.story-milestone-copy,
.story-photo-cluster {
  grid-column: 1;
}

.story-card:nth-of-type(odd) { justify-self: start; }
.story-card:nth-of-type(even) { justify-self: end; }

.story-card::before,
.story-card:nth-child(even)::before {
  display: none;
}

.story-marker {
  position: absolute;
  top: -26px;
  left: -14px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  color: #fff;
  outline: 6px solid var(--paper);
  background: var(--olive) !important;
  box-shadow: 0 8px 20px rgba(50,59,43,.18);
}

.story-card:nth-of-type(even) .story-marker {
  right: -14px;
  left: auto;
}

.story-marker strong {
  font-family: "Cormorant Garamond", serif;
  font-size: .95rem;
  letter-spacing: .03em;
}

.story-milestone-copy {
  padding: 19px 3px 3px;
}

.story-milestone-copy > span {
  display: block;
  margin-bottom: 7px;
  color: var(--olive);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}

.story-milestone-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

.story-photo-cluster {
  position: relative;
  min-height: 114px;
  margin: 8px 0 -55px;
}

.story-photo-cluster img {
  position: absolute;
  bottom: 0;
  width: 46%;
  aspect-ratio: .82;
  padding: 4px 4px 13px;
  border: 1px solid rgba(89,99,72,.12);
  background: #fff;
  box-shadow: 0 12px 24px rgba(45,54,37,.16);
  object-fit: cover;
}

.story-photo-cluster img:first-child {
  left: 9%;
  --photo-rotate: -7deg;
}

.story-photo-cluster img:last-child {
  right: 8%;
  --photo-rotate: 6deg;
}

.story-closing-note {
  position: relative;
  max-width: 390px;
  margin: 64px auto 0;
  padding: 24px 18px 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  line-height: 1.65;
  text-align: center;
}

.story-closing-note::before {
  content: "♡";
  position: absolute;
  top: -8px;
  left: 50%;
  color: var(--champagne);
  transform: translateX(-50%);
}

.family-presentation {
  display: grid;
  gap: 34px;
  margin: 10px 0 48px;
}

.family-person {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 18px;
}

.family-bride .family-portrait-wrap {
  order: 2;
}

.family-bride .family-copy {
  order: 1;
  text-align: right;
}

.family-portrait-wrap {
  position: relative;
  padding: 6px;
  border: 1px solid rgba(200,169,107,.64);
  background: rgba(247,245,239,.66);
}

.family-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 12px -8px -10px 10px;
  z-index: -1;
  border: 1px solid rgba(89,99,72,.25);
}

.family-portrait {
  width: 100%;
  aspect-ratio: .78;
  object-fit: cover;
}

.family-copy .eyebrow {
  margin: 0 0 4px;
  font-size: .62rem;
}

.family-copy h3 {
  margin: 0 0 3px;
  color: var(--olive);
  font-family: "Great Vibes", "Dancing Script", cursive;
  font-size: clamp(2.55rem, 10vw, 3.45rem);
  font-weight: 400;
  line-height: .95;
}

.family-role {
  margin: 0 0 13px;
  color: #8b7040;
  font: 700 .68rem/1.3 "Inter", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.family-parents {
  display: grid;
  gap: 8px;
}

.family-parents span {
  display: grid;
  gap: 1px;
}

.family-parents small {
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.family-parents strong {
  font-family: "Cormorant Garamond", serif;
  font-size: .88rem;
  line-height: 1.25;
}

.family-monogram {
  position: relative;
  justify-self: center;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: -15px 0;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  color: var(--olive);
  background: var(--paper);
  font: 700 .8rem/1 "Cormorant Garamond", serif;
}

.family-monogram::before,
.family-monogram::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,107,.72));
}

.family-monogram::before { right: calc(100% + 8px); }
.family-monogram::after { left: calc(100% + 8px); transform: rotate(180deg); }

.details-feature {
  position: relative;
  display: grid;
  gap: 17px;
  padding: 35px 27px 28px;
  border: 1px solid var(--champagne);
  outline: 1px solid rgba(200,169,107,.34);
  outline-offset: -8px;
  background: rgba(247,245,239,.92);
}

.details-section .section-heading h2 {
  color: var(--olive-deep);
}

.details-section .section-heading .eyebrow {
  color: var(--olive);
}

.details-feature::before,
.details-feature::after {
  content: "✦";
  position: absolute;
  color: var(--champagne);
  background: var(--paper);
  text-shadow: 0 0 8px rgba(242,228,189,.85);
}

.details-feature::before { top: -8px; left: 22px; }
.details-feature::after { right: 22px; bottom: -8px; }

.details-feature-copy strong {
  color: var(--olive);
  font-size: clamp(2.65rem, 11vw, 3.65rem);
}

.details-feature-copy p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

.wedding-mascots {
  width: min(220px, 100%);
  height: 106px;
}

.program-panel {
  margin-top: 34px;
  padding: 31px 24px 26px;
  border: 1px solid rgba(200,169,107,.54);
  background: rgba(247,245,239,.76);
}

.program-list::before {
  left: 60px;
  background: linear-gradient(var(--champagne), rgba(89,99,72,.28), var(--champagne));
}

.program-item {
  grid-template-columns: 56px 40px minmax(0, 1fr);
  min-height: 94px;
  padding: 14px 0;
}

.program-item::before {
  display: none;
}

.program-item time {
  padding: 0 10px 0 0;
  font-size: 1.08rem;
  text-align: right;
}

.program-symbol {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  color: var(--olive);
  background: var(--paper);
}

.program-symbol svg {
  width: 15px;
  height: 15px;
}

.program-copy {
  padding-left: 8px;
}

.program-copy strong {
  display: block;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.program-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.gallery .gallery-photo {
  --photo-delay: 0ms;
  opacity: 0;
  clip-path: inset(8% 7%);
  filter: blur(7px) saturate(.72);
  transform: translateY(32px) scale(.94);
  transition:
    opacity .85s ease var(--photo-delay),
    clip-path .95s cubic-bezier(.22,1,.36,1) var(--photo-delay),
    filter .95s ease var(--photo-delay),
    transform .95s cubic-bezier(.22,1,.36,1) var(--photo-delay) !important;
}

.gallery .gallery-photo:nth-child(3n + 1) { transform: translateX(-32px) scale(.94); }
.gallery .gallery-photo:nth-child(3n + 2) { transform: translateY(32px) scale(.94); }
.gallery .gallery-photo:nth-child(3n) { transform: translateX(32px) scale(.94); }
.gallery .gallery-photo.is-visible { opacity: 1; clip-path: inset(0); filter: none; transform: none; }

.rsvp-section::after {
  background: var(--olive) !important;
}

.rsvp-shell {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 32px 24px;
  transform: none !important;
  border: 1px solid rgba(200,169,107,.78);
  outline: 1px solid rgba(247,245,239,.22);
  outline-offset: -8px;
  background: rgba(247,245,239,.96);
}

.attendance-question {
  padding: 18px;
  border: 1px solid rgba(89,99,72,.16);
  background: rgba(232,223,207,.38);
}

.attendance-question > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--olive-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  text-align: center;
}

.attendance-control-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.attendance-answer {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.attendance-question:not(.is-declined) .attendance-yes,
.attendance-question.is-declined .attendance-no {
  color: var(--olive);
}

.attendance-switch {
  display: inline-flex !important;
  width: auto !important;
  cursor: pointer;
}

.attendance-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance-switch > span {
  position: relative;
  width: 48px;
  height: 26px;
  display: block;
  border: 1px solid rgba(89,99,72,.24);
  border-radius: 999px;
  background: #c9cbbf;
  transition: background .28s ease;
}

.attendance-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(34,40,29,.2);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}

.attendance-switch input:checked + span {
  background: var(--olive);
}

.attendance-switch input:checked + span i {
  transform: translateX(22px);
}

.attendance-switch input:focus-visible + span {
  outline: 3px solid rgba(200,169,107,.42);
  outline-offset: 2px;
}

.guest-inline-label {
  margin-left: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.guest-count-input {
  width: 56px !important;
  min-height: 38px;
  padding: 6px 4px !important;
  text-align: center;
}

.attendance-question.is-declined .guest-inline-label {
  opacity: .48;
}

.meal-fieldset:disabled {
  opacity: .48;
}

.message-carousel {
  display: grid;
  gap: 17px;
  margin-top: 30px;
}

.message-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.message-section .message-card,
.message-section .message-card:nth-child(n) {
  min-height: 168px;
  margin: 0;
  padding: 26px 23px 20px;
  border: 1px solid rgba(200,169,107,.55);
  border-radius: 2px;
  background: rgba(247,245,239,.96);
  box-shadow: 0 12px 30px rgba(62,59,46,.1);
  transform: none;
}

.message-card p {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  line-height: 1.55;
}

.message-card p::before {
  color: var(--champagne);
}

.message-card-footer {
  align-items: flex-end;
  border-top: 1px solid rgba(200,169,107,.28);
  padding-top: 12px;
}

.message-card-footer > span {
  color: var(--olive);
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
}

.message-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#messagePageIndicator {
  color: var(--olive);
  font: 700 .66rem/1 "Inter", sans-serif;
  letter-spacing: .12em;
}

.message-board-trigger {
  display: inline-flex;
  min-height: 48px;
  padding: 7px 14px 7px 9px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(89,99,72,.2);
  border-radius: 999px;
  color: var(--olive-deep);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(62,59,46,.1);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}

.message-mascot-pair {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.message-mascot-pair b {
  color: var(--champagne);
  font-size: .76rem;
}

.mini-pig,
.mini-cat {
  position: relative;
  width: 25px;
  height: 25px;
  display: block;
  border: 1px solid rgba(63,73,53,.34);
  border-radius: 50%;
  background: #f4d7cf;
}

.mini-pig::before {
  content: "••";
  position: absolute;
  inset: 4px 0 auto;
  color: var(--olive-deep);
  font-size: 7px;
  letter-spacing: 5px;
  text-align: center;
}

.mini-pig::after {
  content: "··";
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 5px;
  border-radius: 50%;
  color: #8c655b;
  background: #eebeb3;
  font-size: 8px;
  line-height: 7px;
  text-align: center;
}

.mini-cat {
  border-radius: 42% 42% 50% 50%;
  background: #ece8df;
}

.mini-cat::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 2px;
  left: 2px;
  height: 9px;
  background: linear-gradient(135deg, transparent 30%, #ece8df 31% 65%, transparent 66%) 0 0/50% 100%,
              linear-gradient(225deg, transparent 30%, #ece8df 31% 65%, transparent 66%) 100% 0/50% 100%;
  background-repeat: no-repeat;
}

.mini-cat::after {
  content: "•  •";
  position: absolute;
  inset: 7px 0 auto;
  color: var(--olive-deep);
  font-size: 7px;
  text-align: center;
}

.message-board-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background:
    repeating-radial-gradient(circle at 17% 31%, rgba(78,69,48,.04) 0 1px, transparent 1px 5px),
    var(--paper);
}

.message-board-dialog::backdrop {
  background: rgba(30,36,26,.62);
  backdrop-filter: blur(5px);
}

.message-board-panel {
  min-height: 100%;
  padding: clamp(22px, 5vw, 58px);
}

.message-board-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  max-width: 1180px;
  margin: 0 auto 26px;
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  background: rgba(247,245,239,.92);
  backdrop-filter: blur(10px);
}

.message-board-header h2 {
  margin: 0;
  color: var(--olive);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 6vw, 3.7rem);
}

.message-board-header .eyebrow {
  margin: 0 0 4px;
}

.message-board-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(89,99,72,.22);
  border-radius: 50%;
  color: var(--olive);
  background: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.all-message-wall {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.message-board-note {
  min-height: 220px;
  padding: 28px 24px 22px;
  border: 1px solid rgba(200,169,107,.48);
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(55,62,47,.11);
}

.thank-you-section {
  padding: 0 0 78px !important;
}

.thank-you-photo-wrap {
  position: relative;
}

.thank-you-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, var(--paper));
}

.thank-you-photo {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.thank-you-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 56px);
  min-height: 310px;
  display: grid;
  margin: -42px auto 0;
  padding: 48px 28px 34px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--champagne);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 92%, rgba(200,169,107,.14), transparent 25%),
    radial-gradient(circle at 92% 10%, rgba(89,99,72,.1), transparent 25%),
    rgba(255,255,255,.93);
  text-align: center;
}

.thank-you-script {
  margin: 0 0 22px;
  color: var(--champagne);
  font-family: "Great Vibes", "Dancing Script", cursive;
  font-size: clamp(4.1rem, 17vw, 6.4rem);
  line-height: .75;
  text-shadow: 0 0 13px rgba(242,228,189,.52);
}

.thank-you-card > p:not(.thank-you-script) {
  max-width: 330px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

.thank-you-signature {
  margin-top: 24px;
  color: var(--olive);
  font: 700 .72rem/1 "Inter", sans-serif;
  letter-spacing: .24em;
}

.footer {
  padding: 21px 18px 28px;
  color: rgba(247,245,239,.76);
  background: var(--olive-deep);
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.motion-right {
  transform: translateX(44px);
}

.motion-left {
  transform: translateX(-44px);
}

.motion-item.is-in-view {
  transform: none;
}

@media (max-width: 420px) {
  .invitation-content .section:not(.hero) {
    padding: 70px 18px 82px;
  }

  .wedding-names {
    max-width: 96%;
    font-size: clamp(3.3rem, 17vw, 4.5rem);
  }

  .hero-content {
    right: 18px;
    bottom: 116px;
    left: 18px;
  }

  .countdown {
    right: 12px;
    bottom: 14px;
    left: 12px;
    gap: 3px;
  }

  .countdown div {
    min-height: 64px;
  }

  .countdown span {
    font-size: .49rem;
  }

  .story-card,
  .story-card:nth-child(even) {
    width: 84%;
  }

  .family-person {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 13px;
  }

  .family-copy h3 {
    font-size: 2.45rem;
  }

  .family-parents strong {
    font-size: .78rem;
  }

  .attendance-control-line {
    gap: 6px;
  }

  .guest-inline-label {
    width: 100%;
    margin-top: 5px;
    text-align: center;
  }

  .message-carousel-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-board-trigger {
    width: 100%;
    justify-content: center;
  }

  .thank-you-card {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .open-invitation-button,
  .open-invitation-button::after {
    animation: none !important;
  }
}

.admin-media {
  margin-top: 32px;
}

.admin-media-description {
  margin: 8px 0 0;
  color: #68705e;
  font-size: 0.86rem;
}

.admin-media-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1.45fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(89, 99, 72, 0.13);
  border-radius: 10px;
  background: #eef1e9;
}

.admin-media-toolbar label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #4b5542;
  font-size: 0.75rem;
  font-weight: 750;
}

.admin-media-toolbar select,
.admin-media-toolbar input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(89, 99, 72, 0.22);
  border-radius: 8px;
  color: #293024;
  background: #fff;
  font: inherit;
}

.admin-media-toolbar input[type="file"] {
  padding: 8px;
}

.admin-media-toolbar input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  color: #f7f5ef;
  background: #596348;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-media-hint {
  margin: 14px 0 0;
  color: #68705e;
  font-size: 0.78rem;
  line-height: 1.55;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-media-card {
  overflow: hidden;
  border: 1px solid rgba(89, 99, 72, 0.15);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(45, 54, 37, 0.07);
}

.admin-media-preview {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  background: #e6eae0;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-preview audio {
  width: calc(100% - 24px);
  min-width: 0;
}

.admin-media-card[data-category="music"] .admin-media-preview {
  aspect-ratio: 16 / 7;
  padding: 18px 0;
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(135deg, #e8ecdf, #cbd3bd);
}

.admin-media-card[data-category="logo"] .admin-media-preview img,
.admin-media-card[data-category="frames"] .admin-media-preview img {
  object-fit: contain;
}

.admin-media-active-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: #596348;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-media-card-copy {
  display: grid;
  gap: 5px;
  padding: 13px 14px 8px;
}

.admin-media-card-copy strong {
  overflow: hidden;
  color: #293024;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-card-copy small {
  color: #68705e;
  font-size: 0.7rem;
}

.admin-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 14px 14px;
}

.admin-media-action {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(89, 99, 72, 0.22);
  border-radius: 7px;
  color: #596348;
  background: #f7f5ef;
  font-size: 0.69rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-media-action:hover,
.admin-media-action:focus-visible {
  color: #fff;
  background: #596348;
}

.admin-media-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.admin-media-action-danger {
  margin-left: auto;
  color: #8a433a;
  border-color: rgba(138, 67, 58, 0.24);
}

.admin-media-action-danger:hover,
.admin-media-action-danger:focus-visible {
  background: #8a433a;
}

.admin-media-trash {
  margin-top: 24px;
  border-top: 1px solid rgba(89, 99, 72, 0.13);
  padding-top: 16px;
  color: #68705e;
}

.admin-media-trash summary {
  color: #4b5542;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-media-trash > p {
  margin: 10px 0;
  font-size: 0.75rem;
}

.admin-media-trash-grid {
  display: grid;
  gap: 8px;
}

.admin-media-trash-item {
  display: flex;
  min-width: 0;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(89, 99, 72, 0.12);
  border-radius: 8px;
  background: #fff;
}

.admin-media-trash-item span {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-wish-table {
  min-width: 760px;
}

.admin-wish-message {
  min-width: 380px;
  white-space: normal;
}

.admin-history-dialog {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  color: #293024;
  background: #f7f5ef;
  box-shadow: 0 30px 90px rgba(27, 33, 23, 0.28);
}

.admin-history-dialog::backdrop {
  background: rgba(26, 31, 23, 0.52);
  backdrop-filter: blur(5px);
}

.admin-history-panel {
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow: auto;
}

.admin-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-history-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.admin-history-header > div > p:last-child {
  margin: 7px 0 0;
  color: #68705e;
  font-size: 0.86rem;
}

.admin-history-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(89, 99, 72, 0.16);
  border-radius: 50%;
  color: #596348;
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.admin-history-table {
  min-width: 980px;
}

.admin-status {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status-accepted {
  color: #465039;
  background: #e2e6dc;
}

.admin-status-declined {
  color: #62675d;
  background: #ecece8;
}

.admin-empty-state {
  margin: 0;
  padding: 42px 20px;
  color: #68705e;
  text-align: center;
}

.admin-export-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #596348;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: right;
}

@media (max-width: 820px) {
  .admin-header-inner,
  .admin-container {
    width: min(100% - 32px, 1240px);
  }

  .admin-container {
    padding-top: 36px;
  }

  .admin-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .admin-export-button {
    width: 100%;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-media-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-media-toolbar .admin-export-button {
    width: 100%;
  }

  .admin-metric-card {
    min-height: 152px;
  }
}

@media (max-width: 620px) {
  .admin-header-meta {
    gap: 0;
  }

  .admin-header-meta > span,
  .admin-header-meta > i {
    display: none;
  }

  .admin-container {
    width: min(100% - 24px, 1240px);
  }

  .admin-responses {
    padding: 18px;
  }

  .admin-brand-logo {
    width: 50px;
    height: 46px;
  }

  .admin-history-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .admin-history-panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .admin-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .admin-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(89, 99, 72, 0.13);
    border-radius: 10px;
    background: #fff;
  }

  .admin-table td {
    display: grid;
    max-width: none;
    padding: 11px 13px;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    text-align: left !important;
  }

  .admin-wish-message {
    min-width: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: #68705e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

/* Final cascade: keep the editorial pass after legacy responsive rules. */
.hero-content .eyebrow { max-width: 82%; margin-bottom: 9px; font-family: "Cormorant Garamond", serif; font-size: .82rem; font-weight: 600; letter-spacing: .2em; line-height: 1.35; }
.hero-actions-spacer { height: 42px; }
.countdown div { min-height: 54px; padding: 6px 3px 5px; gap: 0; background: rgba(247,245,239,.88); }
.countdown strong { color: var(--olive-deep); font-family: "Cormorant Garamond", serif; font-size: clamp(1.25rem,5.3vw,1.65rem); font-weight: 600; line-height: 1; }
.countdown span { margin-top: 2px; color: #777d6d; font-family: "Cormorant Garamond", serif; font-size: .59rem; font-weight: 600; letter-spacing: .12em; }
.story-section { padding-bottom: 42px !important; }
.story-timeline { gap: 34px; padding: 14px 0 18px; }
.story-river { z-index: -1; inset: -12px -22px; width: calc(100% + 44px); height: calc(100% + 24px); }
.story-river .story-river-fill { fill: rgba(223,228,215,.64); stroke: none; }
.story-river .story-river-line { fill: none; stroke: rgba(89,99,72,.48); stroke-width: 2; stroke-linecap: round; }
.story-river .story-river-spark { fill: none; stroke: rgba(200,169,107,.68); stroke-width: 1; stroke-dasharray: 3 9; stroke-linecap: round; }
.story-card,
.story-card:nth-child(even) { width: 90%; min-height: 142px; grid-template-columns: minmax(0,1fr) 104px; grid-template-rows: auto; gap: 12px; padding: 22px 12px 18px 20px; align-items: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.story-card:nth-of-type(even) { grid-template-columns: 104px minmax(0,1fr); padding: 22px 20px 18px 12px; text-align: right; }
.story-card:nth-of-type(even) .story-milestone-copy { grid-column: 2; padding-right: 38px; }
.story-card:nth-of-type(even) .story-photo-cluster { grid-column: 1; }
.story-milestone-copy { grid-column: 1; padding: 0; }
.story-milestone-copy > span { margin-bottom: 8px; color: var(--olive-deep); font-size: 1.43rem; font-weight: 600; line-height: 1.05; }
.story-milestone-copy p { max-width: 265px; color: #666b5e; font-size: .79rem; line-height: 1.62; }
.story-card:nth-of-type(even) .story-milestone-copy p { margin-left: auto; }
.story-photo-cluster { position: relative; grid-column: 2; min-height: 106px; margin: 0; }
.story-photo-cluster img { width: 67px; aspect-ratio: .8; padding: 3px 3px 9px; box-shadow: 0 8px 18px rgba(45,54,37,.15); }
.story-photo-cluster img:first-child { left: 2px; }
.story-photo-cluster img:last-child { right: 1px; }
.story-marker,
.story-card:nth-of-type(even) .story-marker { top: -7px; width: 50px; height: 50px; outline-width: 4px; }
.story-card:nth-of-type(odd) .story-marker { left: -8px; }
.story-card:nth-of-type(even) .story-marker { right: -8px; }
.story-closing-note { margin-top: 44px; padding-bottom: 10px; }
.details-section { margin-top: 0; padding-top: 20px !important; background: var(--paper) !important; }
.story-section::after,
.details-section::after { display: none !important; }
.family-presentation { grid-template-columns: 1fr 1fr; gap: 26px; margin: 0 0 54px; padding: 0 8px; }
.family-person,
.family-bride .family-copy { display: block; text-align: center; }
.family-groom { padding-right: 13px; border-right: 1px solid rgba(200,169,107,.34); }
.family-bride { padding-left: 13px; }
.family-role { margin-bottom: 12px; font-size: .61rem; }
.family-parents { gap: 9px; }
.family-parents span { gap: 2px; }
.family-parents small { font-size: .52rem; }
.family-parents strong { font-size: .82rem; }
.details-feature { overflow: hidden; padding: 24px 27px 30px; border-radius: 14px; }
.details-feature .wedding-mascots { width: min(292px,100%); height: 145px; margin: -8px auto 0; transform: scale(1.12); transform-origin: center bottom; }
.details-feature-copy { text-align: center; }
.details-feature-copy > span { color: #a17838; letter-spacing: .17em; }
.details-feature-copy strong { margin-top: 3px; color: var(--olive-deep); font-family: "Cormorant Garamond",serif; font-size: clamp(2rem,8vw,2.75rem); font-weight: 600; }
.details-feature .button.primary { justify-self: center; border-radius: 999px; }
.program-panel { padding-top: 22px; }
.gallery-section { padding-top: 70px !important; }
.gallery .gallery-photo { will-change: opacity,transform,clip-path,filter; }
.attendance-switch > span { width: 96px; height: 36px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #c8cbbf; }
.attendance-switch i { z-index: 0; top: 3px; left: 3px; width: 43px; height: 28px; border-radius: 999px; }
.attendance-switch b { position: relative; z-index: 1; color: rgba(47,55,41,.66); font: 700 .63rem/1 "Inter",sans-serif; text-align: center; transition: color .25s ease; }
.attendance-switch input:checked + span i { transform: translateX(47px); }
.attendance-switch input:not(:checked) + span .attendance-no,
.attendance-switch input:checked + span .attendance-yes { color: var(--olive-deep); }
.attendance-switch input:checked + span .attendance-no,
.attendance-switch input:not(:checked) + span .attendance-yes { color: rgba(247,245,239,.76); }
.message-wall { min-height: 390px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; align-items: start; }
.message-section .message-card,
.message-section .message-card:nth-child(n) { min-height: 174px; padding: 24px 20px 18px; transform: rotate(-2.3deg) translateY(8px); transform-origin: center; }
.message-section .message-card:nth-child(2) { transform: rotate(2.1deg) translateY(-7px); }
.message-section .message-card:nth-child(3) { width: 78%; grid-column: 1/-1; justify-self: center; transform: rotate(-.8deg) translateX(9px); }
.message-section .message-card.motion-item.is-in-view,
.message-section .message-card.motion-item.is-in-view:nth-child(n) { transform: rotate(-2.3deg) translateY(8px); }
.message-section .message-card.motion-item.is-in-view:nth-child(2) { transform: rotate(2.1deg) translateY(-7px); }
.message-section .message-card.motion-item.is-in-view:nth-child(3) { transform: rotate(-.8deg) translateX(9px); }
.message-carousel-meta { justify-content: flex-end; }
.wish-save-button { width: 34px; height: 34px; min-width: 34px; display: grid; padding: 0; place-items: center; border-radius: 50%; }
.wish-save-button svg { width: 15px; height: 15px; }
.thank-you-photo-wrap::after { height: 24%; background: linear-gradient(transparent,rgba(247,245,239,.97)); }
.thank-you-card { width: calc(100% - 46px); min-height: 350px; margin-top: 16px; padding: 55px 25px 42px; background: radial-gradient(ellipse at 2% 96%,rgba(110,141,135,.24) 0 12%,transparent 13%),radial-gradient(ellipse at 98% 90%,rgba(209,174,91,.22) 0 15%,transparent 16%),rgba(255,255,255,.95); }
.thank-you-script { color: #b88a37; font-size: clamp(4.6rem,19vw,6.8rem); }
.thank-you-signature { display: none; }

@media (max-width: 420px) {
  .hero-content { bottom: 98px; }
  .countdown { bottom: 12px; }
  .countdown div { min-height: 50px; }
  .story-card,
  .story-card:nth-child(even) { width: 94%; grid-template-columns: minmax(0,1fr) 88px; }
  .story-card:nth-of-type(even) { grid-template-columns: 88px minmax(0,1fr); }
  .story-photo-cluster img { width: 59px; }
  .family-presentation { gap: 12px; padding: 0; }
  .family-groom { padding-right: 8px; }
  .family-bride { padding-left: 8px; }
  .family-parents strong { font-size: .73rem; }
  .message-wall { min-height: 440px; }
  .message-section .message-card:nth-child(3) { width: 90%; }
}
/* September refinement: quieter cover, readable story photos, and a wish sketchbook. */
.invitation-cover {
  transform: none;
  transition: opacity .8s ease .58s, visibility 1.38s ease;
}
.invitation-cover.is-opening { transform: none; }
.invitation-cover-photo { opacity: .12; transition: opacity .9s ease, transform 1.4s ease; }
.invitation-cover.is-opening .invitation-cover-photo { opacity: 0; transform: scale(1.1); }
.invitation-cover-paper {
  background:
    repeating-linear-gradient(133deg,rgba(102,91,68,.018) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(34deg,rgba(255,255,255,.15) 0 1px,transparent 1px 4px),
    linear-gradient(rgba(255,255,255,.83),rgba(247,245,239,.9));
}
.invitation-cover-card { gap: 0; padding: 24px; }
.invitation-cover-kicker { font-size: .63rem; }
.invitation-cover-names {
  margin: 20px 0 15px;
  font-size: clamp(2.8rem, 3vw, 3rem);
  line-height: .9;
}
.invitation-cover-date { margin-bottom: 22px; }
.invitation-cover-label {
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: .025em;
}
.invitation-cover.is-opening .invitation-cover-card { opacity: 0; transform: translateY(-10px) scale(.98); }
.open-invitation-button { min-width: 112px; padding: 10px 18px; font-size: .66rem; }
.invitation-cover-accent {
  width: clamp(165px, 16vw, 250px);
  aspect-ratio: 1.2;
  opacity: .87;
  background:
    radial-gradient(ellipse at 32% 38%, rgba(199,224,232,.78) 0 20%, transparent 40%),
    radial-gradient(ellipse at 58% 48%, rgba(221,235,234,.83) 0 15%, transparent 39%),
    radial-gradient(ellipse at 66% 26%, rgba(171,139,61,.85) 0 7%, transparent 17%),
    radial-gradient(ellipse at 43% 17%, rgba(211,176,89,.75) 0 13%, transparent 25%),
    radial-gradient(ellipse at 70% 60%, rgba(205,171,89,.68) 0 9%, transparent 22%);
  filter: blur(.6px);
}
.invitation-cover-accent::after {
  content: "";
  position: absolute;
  inset: 6% 10%;
  opacity: .65;
  background-image: radial-gradient(#b99a55 1px, transparent 1.5px);
  background-size: 7px 8px;
  -webkit-mask-image: radial-gradient(ellipse at 58% 36%, #000 0 30%, transparent 63%);
  mask-image: radial-gradient(ellipse at 58% 36%, #000 0 30%, transparent 63%);
}
.cover-accent-top { top: -45px; left: -45px; transform: rotate(-16deg); }
.cover-accent-bottom { right: -45px; bottom: -50px; transform: rotate(165deg); }
.invitation-cover.is-opening .cover-accent-top { animation: cover-corner-top 1.12s cubic-bezier(.2,.72,.3,1) both; }
.invitation-cover.is-opening .cover-accent-bottom { animation: cover-corner-bottom 1.12s cubic-bezier(.2,.72,.3,1) both; }
@keyframes cover-corner-top {
  0% { translate: 0 0; opacity: .87; filter: blur(.6px); }
  58% { opacity: .55; }
  100% { translate: 46vw 45vh; opacity: 0; filter: blur(18px); }
}
@keyframes cover-corner-bottom {
  0% { translate: 0 0; opacity: .87; filter: blur(.6px); }
  58% { opacity: .55; }
  100% { translate: -46vw -45vh; opacity: 0; filter: blur(18px); }
}

.story-card,
.story-card:nth-child(even) { grid-template-columns: minmax(0,1fr) 142px; }
.story-card:nth-of-type(even) { grid-template-columns: 142px minmax(0,1fr); }
.story-card:hover,
.story-card:focus-within { border-color: transparent; box-shadow: none; }
.story-photo-cluster { min-height: 148px; }
.story-photo-cluster img { width: 96px; }

/* Love Story photos: double the previous rendered size while keeping the
   editorial copy in its own grid column. */
.story-card,
.story-card:nth-child(even) {
  min-height: 268px;
  grid-template-columns: minmax(0, 1fr) 220px;
}
.story-card:nth-of-type(even) {
  grid-template-columns: 220px minmax(0, 1fr);
}
.story-photo-cluster {
  width: 220px;
  min-height: 252px;
  justify-self: end;
}
.story-card:nth-of-type(even) .story-photo-cluster { justify-self: start; }
.story-photo-cluster img { width: 192px; }
.formal-kicker { margin-bottom: 10px; }
.formal-guest { margin: 8px 0 6px; line-height: 1.12; }

.wish-sketchbook { width: 100%; }
.wish-book-stage {
  --book-tilt-x: 0deg;
  --book-tilt-y: 0deg;
  position: relative;
  width: 100%;
  padding: 10px 5px 17px;
  perspective: 1800px;
  outline-offset: 5px;
  touch-action: pan-y;
}
.wish-book-stage:focus-visible { outline: 2px solid var(--olive); }
.wish-book-shadow {
  position: absolute;
  inset: 26% 7% 0;
  background: radial-gradient(ellipse, rgba(55,55,40,.24), transparent 68%);
  filter: blur(15px);
  pointer-events: none;
}
.wish-book {
  --book-left: 35%;
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(325px, 74vw, 390px);
  overflow: visible;
  transform: rotate(-1deg) rotateX(var(--book-tilt-x)) rotateY(var(--book-tilt-y));
  transform-style: preserve-3d;
  border: 1px solid rgba(136,115,70,.4);
  border-radius: 4px 9px 9px 4px;
  background: #f9f5e9;
  box-shadow: 4px 6px 0 #ded7c5, 8px 11px 0 #e9e3d5, 13px 19px 27px rgba(44,49,37,.2);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease;
}
.wish-book-stage:hover .wish-book {
  box-shadow: 5px 8px 0 #d8d0bd, 10px 14px 0 #e9e3d5, 18px 28px 38px rgba(44,49,37,.24);
}
.wish-book::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--book-left);
  width: 15px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,rgba(57,48,33,.13) 34%,rgba(255,255,255,.75) 56%,transparent);
  pointer-events: none;
}
.wish-book-page {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(126,105,65,.045) 0 1px, transparent 1.5px),
    repeating-linear-gradient(0deg,rgba(111,93,58,.022) 0 1px,transparent 1px 5px),
    #fbf8ee;
  background-size: 9px 11px, auto, auto;
}
.wish-book-page-left {
  width: var(--book-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(109,96,64,.16);
  color: #9c824a;
  background: radial-gradient(circle at 5% 95%,rgba(168,184,151,.17),transparent 48%),#f6f2e5;
}
.wish-book-page-left::after,
.wish-book-page-right::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(165,139,83,.23);
  pointer-events: none;
}
.wish-book-flower { width: min(86%,160px); height: 42%; opacity: .64; }
.wish-book-monogram { font: 500 clamp(1.8rem,7vw,2.8rem)/1 "Cormorant Garamond",serif; }
.wish-book-monogram small { font-size: .45em; }
.wish-book-left-caption { font: 600 .48rem/1 "Inter",sans-serif; letter-spacing: .26em; }
.wish-book-page-right { width: calc(100% - var(--book-left)); padding: 28px 25px 22px; }
.wish-book-page-right.message-wall { display: block; min-height: 0; }
.wish-book-page-right > .empty { display: grid; height: 100%; place-items: center; padding: 20px; text-align: center; }
.message-section .wish-book-page-right .message-card,
.message-section .wish-book-turn-face .message-card,
.message-section .wish-book-page-right .message-card:nth-child(n) {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.wish-book-page-right .message-card::before,
.wish-book-turn-face .message-card::before { content: "❦"; display: block; margin-bottom: 9px; color: #af9356; text-align: center; font-size: 1.15rem; }
.wish-book-page-right .message-card p,
.wish-book-turn-face .message-card p {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  color: #4b4c3d;
  font: 500 clamp(1rem,3.8vw,1.18rem)/1.4 "Cormorant Garamond",serif;
  scrollbar-width: thin;
  overflow-wrap: anywhere;
}
.wish-book-page-right .message-card-footer,
.wish-book-turn-face .message-card-footer { margin-top: 10px; gap: 8px; border-top: 1px solid rgba(169,143,88,.3); }
.wish-book-turning {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: var(--book-left);
  width: calc(100% - var(--book-left));
  visibility: hidden;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
}
.wish-book-turning::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(55,48,35,.2), rgba(255,255,255,.72) 46%, rgba(70,58,40,.12) 76%, transparent);
  backface-visibility: hidden;
  pointer-events: none;
}
.wish-book-turn-face {
  position: absolute;
  inset: 0;
  padding: 28px 25px 22px;
  backface-visibility: hidden;
  border-radius: 0 8px 8px 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(126,105,65,.045) 0 1px, transparent 1.5px),
    #fbf8ee;
  background-size: 9px 11px, auto;
  box-shadow: 5px 3px 13px rgba(48,45,35,.2);
}
.wish-book-turn-back { transform: rotateY(180deg); }
.wish-book.is-turning .wish-book-turning { visibility: visible; animation: wish-page-next .94s cubic-bezier(.22,.61,.24,1) both; }
.wish-book.is-turning.is-reverse .wish-book-turning { animation-name: wish-page-previous; }
.wish-book.is-turning .wish-book-turning::after { animation: wish-page-glint .94s ease both; }
@keyframes wish-page-next {
  0% { transform: rotateY(0) translateZ(1px); filter: brightness(1); }
  46% { transform: rotateY(-82deg) translateZ(12px) skewY(-1deg); filter: brightness(.94); }
  100% { transform: rotateY(-180deg) translateZ(1px); filter: brightness(1); }
}
@keyframes wish-page-previous {
  0% { transform: rotateY(180deg) translateZ(1px); filter: brightness(1); }
  54% { transform: rotateY(82deg) translateZ(12px) skewY(1deg); filter: brightness(.94); }
  100% { transform: rotateY(0) translateZ(1px); filter: brightness(1); }
}
@keyframes wish-page-glint {
  0%,100% { opacity: 0; transform: translateX(18%); }
  45%,55% { opacity: .8; transform: translateX(-8%); }
}

.wish-book-cover {
  position: absolute;
  z-index: 12;
  inset: -2px;
  transform-origin: 2% center;
  transform-style: preserve-3d;
  border-radius: 5px 12px 12px 5px;
  pointer-events: none;
}
.wish-book-cover-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border: 1px solid rgba(215,191,132,.72);
  border-radius: inherit;
}
.wish-book-cover-front {
  flex-direction: column;
  gap: 10px;
  color: #f7f1dd;
  background:
    radial-gradient(circle at 20% 25%, rgba(247,241,221,.07) 0 1px, transparent 1.5px),
    linear-gradient(135deg, #4f5a40, #687357 55%, #4f5942);
  background-size: 11px 13px, auto;
  box-shadow: inset 10px 0 18px rgba(28,34,22,.2), inset 0 0 0 8px rgba(247,241,221,.035), 12px 18px 30px rgba(38,45,31,.28);
}
.wish-book-cover-front::before,
.wish-book-cover-front::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(219,190,119,.5);
  border-radius: 2px 8px 8px 2px;
}
.wish-book-cover-front::after { inset: 25px; border-color: rgba(247,241,221,.12); }
.wish-book-cover-kicker,
.wish-book-cover-front time {
  position: relative;
  z-index: 1;
  font: 600 .48rem/1 "Inter",sans-serif;
  letter-spacing: .24em;
}
.wish-book-cover-front strong {
  position: relative;
  z-index: 1;
  color: #d8bd79;
  font: 500 clamp(3rem,12vw,4.8rem)/.9 "Cormorant Garamond",serif;
}
.wish-book-cover-front strong small { font-size: .35em; }
.wish-book-cover-front i { width: 54px; height: 1px; background: linear-gradient(90deg,transparent,#d8bd79,transparent); }
.wish-book-cover-title {
  position: relative;
  z-index: 1;
  font: 600 .62rem/1 "Inter",sans-serif;
  letter-spacing: .36em;
}
.wish-book-cover-back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg,#d7cfbb,#f3eddd 12%,#ebe2ce);
  box-shadow: inset -12px 0 24px rgba(67,57,40,.15);
}
.wish-book.is-opening .wish-book-cover { animation: wish-book-open 1.28s cubic-bezier(.2,.74,.18,1) both; }
.wish-book.is-open .wish-book-cover { visibility: hidden; transform: rotateY(-178deg); }
@keyframes wish-book-open {
  0% { transform: rotateY(0); filter: brightness(1); }
  58% { transform: rotateY(-112deg) translateZ(12px); filter: brightness(.92); }
  99% { visibility: visible; }
  100% { visibility: hidden; transform: rotateY(-178deg); filter: brightness(1); }
}
.wish-book-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 9px; color: #7b806f; font: 500 .66rem/1.3 "Inter",sans-serif; text-align: center; }
.wish-book-arrow { width: 36px; height: 36px; flex: none; border: 1px solid rgba(89,99,72,.25); border-radius: 50%; color: var(--olive-deep); background: #f9f7ee; font: 400 1.8rem/1 "Cormorant Garamond",serif; cursor: pointer; }
.wish-book-arrow:disabled { opacity: .38; cursor: default; }
.wish-book-arrow:hover:not(:disabled) { background: #e9eddf; }
.message-carousel-meta { margin-top: 10px; justify-content: center; }

@media (max-width: 420px) {
  .cover-accent-top { top: -46px; left: -50px; }
  .cover-accent-bottom { right: -50px; bottom: -52px; }
  .story-card,
  .story-card:nth-child(even) {
    min-height: 0;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .story-card:nth-of-type(even) { grid-template-columns: minmax(0,1fr); }
  .story-milestone-copy,
  .story-photo-cluster,
  .story-card:nth-of-type(even) .story-milestone-copy,
  .story-card:nth-of-type(even) .story-photo-cluster { grid-column: 1; }
  .story-card:nth-of-type(even) .story-milestone-copy { padding-right: 0; }
  .story-photo-cluster { width: 178px; min-height: 214px; justify-self: end; }
  .story-card:nth-of-type(even) .story-photo-cluster { justify-self: start; }
  .story-photo-cluster img { width: 164px; }
  .wish-book { --book-left: 26%; height: 390px; }
  .wish-book-page-right,
  .wish-book-turn-face { padding: 22px 17px 17px; }
  .wish-book-flower { width: 95%; }
  .wish-book-left-caption { font-size: .4rem; letter-spacing: .1em; }
  .wish-book-page-right .message-card p,
  .wish-book-turn-face .message-card p { font-size: 1rem; }
}

@media (max-width: 360px) {
  .story-card,
  .story-card:nth-child(even),
  .story-card:nth-of-type(even) {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    padding-top: 48px;
  }
  .story-milestone-copy,
  .story-photo-cluster,
  .story-card:nth-of-type(even) .story-milestone-copy,
  .story-card:nth-of-type(even) .story-photo-cluster { grid-column: 1; }
  .story-card:nth-of-type(even) .story-milestone-copy { padding-right: 0; }
  .story-photo-cluster { width: 184px; min-height: 214px; justify-self: end; }
  .story-card:nth-of-type(even) .story-photo-cluster { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-cover.is-opening .invitation-cover-accent,
  .wish-book.is-turning .wish-book-turning,
  .wish-book.is-opening .wish-book-cover { animation: none !important; }
  .wish-book-cover { visibility: hidden; }
}

/* Full-viewport lightbox: portrait and landscape photos always fit without cropping. */
.gallery-lightbox,
.gallery-lightbox[open] {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(18px,3vw,34px);
  overflow: hidden;
  box-sizing: border-box;
}
.gallery-lightbox[open] { grid-template-columns: 54px minmax(0,1fr) 54px; }
.gallery-lightbox figure {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  height: 100%;
}
.gallery-lightbox img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.gallery-lightbox .lightbox-close { z-index: 4; top: 12px; right: 12px; }
@media (max-width: 560px) {
  .gallery-lightbox,
  .gallery-lightbox[open] { padding: 16px 8px 18px; }
  .gallery-lightbox[open] { grid-template-columns: minmax(0,1fr); }
  .gallery-lightbox figure { grid-column: 1; }
  .gallery-lightbox .lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
  }
  .gallery-lightbox .lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
  .gallery-lightbox .lightbox-prev { left: 10px; }
  .gallery-lightbox .lightbox-next { right: 10px; }
  .gallery-lightbox figcaption { padding-top: 7px; }
}

/* Admin workspace: one focused module at a time. */
html.admin-requested { scroll-behavior: auto; }
.admin-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  width: min(calc(100% - 36px), 1500px);
  margin: 0 auto;
  transition: grid-template-columns .28s ease, gap .28s ease;
}
.admin-sidebar {
  position: sticky;
  top: 96px;
  z-index: 5;
  margin-top: 42px;
  padding: 22px 12px 17px;
  border: 1px solid rgba(89,99,72,.15);
  border-radius: 18px;
  background: #f7f5ef;
  box-shadow: 0 18px 42px rgba(45,54,37,.07);
  transition: padding .28s ease;
}
.admin-sidebar-head { display: flex; min-height: 32px; align-items: start; justify-content: space-between; gap: 8px; }
.admin-sidebar-label { margin: 7px 12px 16px; color: #9c8a6b; font-size: .63rem; font-weight: 800; letter-spacing: .18em; }
.admin-sidebar-toggle { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid rgba(89,99,72,.2); border-radius: 9px; color: #596348; background: #fff; font: 600 1.4rem/1 "Inter",sans-serif; cursor: pointer; }
.admin-sidebar-toggle:hover, .admin-sidebar-toggle:focus-visible { color: #fff; background: #596348; }
.admin-module-nav { display: grid; gap: 5px; }
.admin-module-nav button {
  display: flex;
  min-height: 47px;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #5a6253;
  background: transparent;
  font: 650 .77rem/1.3 "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
}
.admin-module-nav button span { color: #b49a68; font: 700 .7rem/1 "Cormorant Garamond", serif; }
.admin-module-nav button:hover,
.admin-module-nav button:focus-visible { background: #e9eddf; }
.admin-module-nav button.is-active { color: #fff; background: #596348; }
.admin-module-nav button.is-active span { color: #e6d6b4; }
.admin-module-nav button[hidden], .admin-panel[hidden], .finance-actions[hidden], .finance-dialog[hidden] { display: none !important; }
.admin-sidebar-foot { margin: 20px 12px 2px; color: #9a9d92; font-size: .65rem; }
.admin-layout > .admin-container { width: 100%; min-width: 0; padding-top: 42px; }
.admin-layout.is-sidebar-collapsed { grid-template-columns: 54px minmax(0,1fr); gap: 16px; }
.admin-layout.is-sidebar-collapsed .admin-sidebar { padding: 12px 11px; }
.admin-layout.is-sidebar-collapsed .admin-sidebar-head { justify-content: center; }
.admin-layout.is-sidebar-collapsed .admin-sidebar-label,
.admin-layout.is-sidebar-collapsed .admin-module-nav,
.admin-layout.is-sidebar-collapsed .admin-sidebar-foot { display: none; }
.admin-panel > .admin-responses,
.admin-panel.admin-responses { margin-top: 0; }
.admin-readonly .admin-media-actions,
.admin-readonly .admin-media-trash-item button { display: none; }
.admin-readonly .admin-story-content-actions button { display: none; }

.admin-finance > .admin-section-header h1 { margin: 0; color: #293024; font: 700 clamp(2rem,3.5vw,3rem)/1 "Cormorant Garamond",serif; }
.finance-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 25px 0 16px; }
.finance-metrics article { min-height: 118px; padding: 21px 17px; border: 1px solid rgba(89,99,72,.17); border-radius: 12px; background: #f7f5ef; box-shadow: 0 12px 28px rgba(45,54,37,.06); }
.finance-metrics article:last-child { background: #596348; }
.finance-metrics span { display: block; min-height: 28px; color: #68705e; font-size: .7rem; font-weight: 750; }
.finance-metrics strong { display: block; margin-top: 12px; color: #384431; font: 700 clamp(.94rem,1.35vw,1.15rem)/1.2 "Inter",sans-serif; letter-spacing: -.025em; white-space: nowrap; }
.finance-metrics article:last-child span { color: #dce2d4; }
.finance-metrics article:last-child strong { color: #fff; }
.finance-metrics small { display: block; margin-top: 8px; overflow: hidden; color: #dce2d4; font: 500 .64rem/1.35 "Cormorant Garamond",serif; text-overflow: ellipsis; white-space: nowrap; }
.finance-charts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.finance-chart { min-height: 220px; padding: 20px; border: 1px solid rgba(89,99,72,.16); border-radius: 12px; background: #f7f5ef; }
.finance-chart h2 { margin: 0 0 20px; color: #485640; font: 700 1.3rem/1 "Cormorant Garamond",serif; }
.finance-chart > div { display: grid; align-content: center; gap: 12px; }
#financePaymentChart { grid-template-columns: 112px 1fr; align-items: center; }
#financePaymentChart p { color: #43513a; font-size: .75rem; font-weight: 750; line-height: 1.65; }
#financePaymentChart p span { color: #8b927f; font-weight: 500; }
.finance-donut { display: grid; width: 106px; height: 106px; place-items: center; border-radius: 50%; background: conic-gradient(#596348 var(--finance-progress),#dfe5d6 0); }
.finance-donut b { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; color: #43513a; background: #f7f5ef; font: 700 1.65rem/1 "Cormorant Garamond",serif; }
.finance-bar-row { display: grid; grid-template-columns: minmax(65px, .9fr) minmax(60px,1.2fr) auto; align-items: center; gap: 8px; color: #68705e; font-size: .68rem; }
.finance-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-bar-row > div { height: 8px; overflow: hidden; border-radius: 99px; background: #e2e8d9; }
.finance-bar-row i { display: block; height: 100%; border-radius: inherit; background: #8a966f; }
.finance-bar-row b { color: #3f4d39; font-size: .68rem; white-space: nowrap; }
.finance-timeline-section { margin-top: 34px; padding: 22px 20px 18px; border: 1px solid rgba(89,99,72,.16); border-radius: 12px; background: #f7f5ef; box-shadow: 0 12px 28px rgba(45,54,37,.05); }
.finance-timeline-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.finance-timeline-header h2 { margin: 3px 0 0; color: #384431; font: 700 1.55rem/1 "Cormorant Garamond",serif; }
.finance-timeline-legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px 13px; color: #68705e; font: 600 .64rem/1.2 "Inter",sans-serif; }
.finance-timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
.finance-timeline-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.finance-timeline-legend .is-paid { --legend-color: #596348; }
.finance-timeline-legend .is-overdue { --legend-color: #b85c50; }
.finance-timeline-legend .is-upcoming { --legend-color: #c59742; }
.finance-timeline-legend .is-future { --legend-color: #9ba58d; }
.finance-timeline-scroll { margin-top: 16px; overflow-x: auto; overflow-y: hidden; border: 1px solid rgba(89,99,72,.12); border-radius: 10px; background: #fff; scrollbar-color: #9aa58a #eef1e9; scrollbar-width: thin; }
.finance-timeline-scroll:focus-visible { outline: 2px solid #b49a68; outline-offset: 2px; }
.finance-timeline-scroll[hidden] { display: none; }
.finance-timeline { position: relative; height: 360px; min-width: 100%; }
.finance-timeline-axis { position: absolute; top: 170px; right: 90px; left: 90px; height: 2px; background: linear-gradient(90deg,#c9cfbf,#596348 50%,#c9cfbf); }
.finance-timeline-tick { position: absolute; top: 163px; left: var(--timeline-left); width: 82px; margin-left: -41px; padding-top: 19px; color: #8b927f; font: 600 .58rem/1.2 "Inter",sans-serif; text-align: center; }
.finance-timeline-tick i { position: absolute; top: 4px; left: 40px; width: 1px; height: 9px; background: #aeb6a2; }
.finance-timeline-today { position: absolute; top: 7px; bottom: 12px; left: var(--timeline-left); width: 1px; border-left: 1px dashed #b88a37; }
.finance-timeline-today span { position: absolute; top: 141px; left: 0; z-index: 4; padding: 3px 7px; border-radius: 99px; color: #fff; background: #b88a37; font: 700 .58rem/1.2 "Inter",sans-serif; white-space: nowrap; transform: translateX(-50%); }
.finance-timeline-event { --event-color: #9ba58d; position: absolute; top: 0; left: var(--timeline-left); z-index: 2; width: 0; height: 100%; }
.finance-timeline-event.is-paid { --event-color: #596348; }
.finance-timeline-event.is-overdue { --event-color: #b85c50; }
.finance-timeline-event.is-upcoming { --event-color: #c59742; }
.finance-timeline-card { position: absolute; left: 0; display: grid; width: 156px; height: 70px; padding: 9px 11px; align-content: center; gap: 3px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--event-color) 46%,white); border-radius: 9px; background: #fff; box-shadow: 0 7px 18px rgba(45,54,37,.08); transform: translateX(-50%); }
.finance-timeline-card time { color: var(--event-color); font: 750 .61rem/1.1 "Inter",sans-serif; }
.finance-timeline-card strong { overflow: hidden; color: #3d4937; font: 650 .68rem/1.2 "Inter",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.finance-timeline-card span { color: #68705e; font: 700 .65rem/1.1 "Inter",sans-serif; white-space: nowrap; }
.finance-timeline-event > i { position: absolute; left: 0; width: 1px; background: color-mix(in srgb,var(--event-color) 66%,white); }
.finance-timeline-event > b { position: absolute; top: 165px; left: -5px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: var(--event-color); box-shadow: 0 0 0 1px var(--event-color); }
.finance-timeline-event.lane-0 .finance-timeline-card { top: 9px; }
.finance-timeline-event.lane-0 > i { top: 79px; height: 91px; }
.finance-timeline-event.lane-1 .finance-timeline-card { top: 84px; }
.finance-timeline-event.lane-1 > i { top: 154px; height: 16px; }
.finance-timeline-event.lane-2 .finance-timeline-card { top: 205px; }
.finance-timeline-event.lane-2 > i { top: 170px; height: 35px; }
.finance-timeline-event.lane-3 .finance-timeline-card { top: 280px; }
.finance-timeline-event.lane-3 > i { top: 170px; height: 110px; }
.task-timeline-scroll { scroll-snap-type: x proximity; }
.task-timeline { position: relative; display: flex; width: max-content; min-width: 100%; padding: 22px 24px 26px; align-items: flex-start; }
.task-timeline::before { content: ""; position: absolute; top: 73px; right: 24px; left: 24px; height: 2px; background: linear-gradient(90deg,#d9ddcf,#596348 48%,#d9ddcf); }
.task-timeline-date { position: relative; z-index: 1; width: 240px; flex: 0 0 240px; scroll-margin-left: 20px; scroll-snap-align: start; }
.task-timeline-date > header { position: relative; display: grid; min-height: 52px; padding: 10px 12px; align-content: center; gap: 4px; border: 1px solid rgba(89,99,72,.2); border-radius: 10px; background: #f7f5ef; box-shadow: 0 7px 18px rgba(45,54,37,.07); }
.task-timeline-date > header::after { content: ""; position: absolute; bottom: -17px; left: 19px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #778267; box-shadow: 0 0 0 1px #778267; }
.task-timeline-date > header time { color: #384431; font: 750 .72rem/1.2 "Inter",sans-serif; }
.task-timeline-date > header span { color: #858d79; font: 650 .61rem/1.2 "Inter",sans-serif; }
.task-timeline-date.is-today > header { border-color: rgba(184,138,55,.48); background: #fff9ec; }
.task-timeline-date.is-today > header::after { background: #b88a37; box-shadow: 0 0 0 1px #b88a37,0 0 0 5px rgba(184,138,55,.12); }
.task-timeline-date.is-today > header time { color: #946b21; }
.task-timeline-date-events { display: grid; gap: 8px; margin-top: 27px; }
.task-timeline-event-card { --event-color:#9ba58d; display: grid; min-height: 102px; padding: 11px 12px; gap: 4px; border: 1px solid color-mix(in srgb,var(--event-color) 38%,white); border-left: 3px solid var(--event-color); border-radius: 9px; background: #fff; box-shadow: 0 7px 17px rgba(45,54,37,.06); }
.task-timeline-event-card.is-paid { --event-color:#596348; }
.task-timeline-event-card.is-overdue { --event-color:#b85c50; }
.task-timeline-event-card.is-upcoming { --event-color:#c59742; }
.task-timeline-event-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--event-color); font: 750 .56rem/1.1 "Inter",sans-serif; }
.task-timeline-event-meta span { padding: 3px 6px; border-radius: 99px; background: color-mix(in srgb,var(--event-color) 13%,white); }
.task-timeline-event-meta i { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.task-timeline-event-card strong { overflow: hidden; color: #34402f; font: 700 .72rem/1.25 "Inter",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.task-timeline-event-card p { margin: 0; overflow: hidden; color: #596451; font: 600 .67rem/1.3 "Inter",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.task-timeline-event-card small { color: #8a927f; font: 550 .59rem/1.2 "Inter",sans-serif; }
.task-timeline-gap { position: relative; width: var(--task-gap); min-width: var(--task-gap); height: 74px; flex: 0 0 var(--task-gap); }
.task-timeline-gap span { position: absolute; top: 57px; left: 50%; z-index: 2; padding: 2px 5px; border-radius: 99px; color: #8d947f; background: #fff; font: 650 .54rem/1 "Inter",sans-serif; white-space: nowrap; transform: translateX(-50%); }
.task-timeline-today-note { min-height: 70px; margin: 0; padding: 15px 12px; border: 1px dashed rgba(184,138,55,.35); border-radius: 9px; color: #8a7958; background: #fffdf7; font: 600 .65rem/1.45 "Inter",sans-serif; }
.admin-panel > .finance-table-section { margin-top: 42px; }
.finance-actions { display: flex; gap: 7px; }
.finance-actions button,
.finance-trash-list button { min-height: 35px; padding: 5px 11px; border: 1px solid rgba(89,99,72,.24); border-radius: 8px; color: #47553d; background: #fff; font: 700 .72rem/1 "Inter",sans-serif; cursor: pointer; }
.finance-actions button:hover:not(:disabled), .finance-trash-list button:hover { color: #fff; background: #596348; }
.finance-actions button:disabled { opacity: .4; cursor: not-allowed; }
.finance-table { min-width: 1580px; font: 500 .75rem/1.4 "Inter",sans-serif; }
.finance-table th { padding: 11px 9px; }
.finance-table td { padding: 12px 9px; }
.finance-sort { display: inline-flex; padding: 0; align-items: center; gap: 4px; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; white-space: nowrap; cursor: pointer; }
.finance-sort span { color: #a68e5f; font-size: .82rem; line-height: 1; }
.finance-sort:hover, .finance-sort:focus-visible { color: #35432f; }
.finance-table td:first-child, .finance-table th:first-child { width: 35px; text-align: center; }
.finance-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: #596348; cursor: pointer; }
.finance-readonly .finance-select-cell { display: none; }
.finance-status { display: inline-block; padding: 5px 8px; border-radius: 99px; font-size: .66rem; font-weight: 750; white-space: nowrap; }
@media (min-width: 621px) {
  .finance-table { min-width: 1460px; font: 500 .68rem/1.4 "Inter",sans-serif; font-variant-numeric: tabular-nums; }
  .finance-table th { padding: 10px 6px; font: 700 .6rem/1.2 "Inter",sans-serif; letter-spacing: .025em; }
  .finance-table td { padding: 10px 6px; line-height: 1.35; }
  .finance-table td:nth-child(6),
  .finance-table td:nth-child(12),
  .finance-table td:nth-child(n+7):nth-child(-n+11) { white-space: nowrap; }
  .finance-table .finance-status { padding: 4px 6px; font-size: .6rem; }
}
.finance-status-pending { color: #895b35; background: #f5ead5; }
.finance-status-partially_paid { color: #6d6738; background: #f1edcb; }
.finance-status-fully_paid { color: #3d664b; background: #e0eddc; }
.finance-overdue { color: #a1483e !important; font-weight: 800; }
.finance-trash-list { display: grid; gap: 8px; margin-top: 12px; }
.finance-trash-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border: 1px solid rgba(89,99,72,.12); border-radius: 8px; }

.finance-dialog { width: min(96vw, 820px); max-height: 92dvh; padding: 0; overflow: hidden; border: 1px solid rgba(89,99,72,.25); border-radius: 18px; background: #f7f5ef; box-shadow: 0 30px 90px rgba(25,34,23,.27); }
.finance-dialog::backdrop { background: rgba(24,34,26,.65); backdrop-filter: blur(4px); }
.finance-form { width: 100%; max-height: 92dvh; padding: 28px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.finance-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.finance-dialog-header h2 { margin: 0; color: #293024; font: 700 2.15rem/1 "Cormorant Garamond",serif; }
.finance-dialog-header > button { border: 0; color: #485640; background: none; font-size: 1.7rem; cursor: pointer; }
.finance-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.finance-form label { display: grid; gap: 7px; color: #4b5842; font-size: .75rem; font-weight: 750; }
.finance-form input:not([type="checkbox"]), .finance-form select, .finance-form textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid rgba(89,99,72,.26); border-radius: 8px; color: #293024; background: #fff; font: 500 .82rem/1.4 "Inter",sans-serif; }
.finance-form textarea { resize: vertical; }
.finance-wide { grid-column: 1 / -1; }
.finance-installments-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(89,99,72,.15); }
.finance-installments-head h3 { margin: 0 0 4px; color: #3e4c37; font: 700 1.5rem/1 "Cormorant Garamond",serif; }
.finance-installments-head p { margin: 0; color: #68705e; font-size: .72rem; }
.finance-installments-head label { width: 150px; flex: none; }
.finance-installments { display: grid; gap: 12px; margin-top: 16px; }
.finance-installment { display: grid; grid-template-columns: 45px minmax(125px,1fr) minmax(125px,1fr) minmax(140px,1fr) minmax(125px,1fr); align-items: end; gap: 10px; padding: 14px; border: 1px solid rgba(89,99,72,.16); border-radius: 10px; background: #eef1e9; }
.finance-installment > strong { align-self: center; color: #596348; font: 700 1rem/1 "Cormorant Garamond",serif; }
.finance-paid-check { display: flex !important; min-height: 43px; flex-direction: row; align-items: center; gap: 7px !important; }
.finance-paid-check input { width: 17px; height: 17px; accent-color: #596348; }
.finance-form-actions { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
.finance-form-actions > button:first-child { min-width: 80px; border: 1px solid rgba(89,99,72,.22); border-radius: 9px; color: #596348; background: #fff; font-weight: 750; cursor: pointer; }

.admin-account-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 15px; }
.admin-account-card { padding: 22px; border: 1px solid rgba(89,99,72,.16); border-radius: 12px; background: #fff; }
.admin-account-card h3 { margin: 0 0 8px; color: #33402f; font: 700 1.55rem/1 "Cormorant Garamond",serif; }
.admin-account-card h3 small { margin-left: 7px; color: #89917e; font: 600 .66rem/1 "Inter",sans-serif; }
.admin-account-card p { color: #68705e; font-size: .8rem; }
.admin-access-head, .admin-access-row { display: grid; grid-template-columns: minmax(0,1fr) 48px 70px; align-items: center; gap: 6px; }
.admin-access-head { margin-top: 14px; padding: 7px 0; color: #909783; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.admin-access-row { min-height: 38px; border-top: 1px solid rgba(89,99,72,.12); color: #4f5a48; font-size: .72rem; }
.admin-access-head span:not(:first-child), .admin-access-row label { text-align: center; }
.admin-access-row input { width: 17px; height: 17px; accent-color: #596348; cursor: pointer; }
.admin-account-card > button { width: 100%; margin-top: 18px; }

.task-filters { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(150px,.7fr) minmax(220px,1.5fr); gap: 12px; margin: 18px 0 14px; padding: 14px; border: 1px solid rgba(89,99,72,.13); border-radius: 10px; background: #f7f5ef; }
.task-filters label { display: grid; gap: 6px; color: #68705e; font: 700 .67rem/1.2 "Inter",sans-serif; }
.task-filters select, .task-filters input { width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid rgba(89,99,72,.22); border-radius: 7px; color: #35432f; background: #fff; font: 500 .75rem/1.2 "Inter",sans-serif; }
.task-table { min-width: 1250px; }
.task-status { display: inline-block; padding: 5px 8px; border-radius: 99px; font-size: .64rem; font-weight: 750; white-space: nowrap; }
.task-status-not_started { color: #60695c; background: #e9ede5; }
.task-status-in_progress { color: #735e25; background: #f4eccd; }
.task-status-completed { color: #3d664b; background: #e0eddc; }
.task-status-blocked { color: #8a4139; background: #f4dedb; }
.task-status-on_hold { color: #765a30; background: #efe5d6; }
.task-status-cancelled { color: #656565; background: #e8e8e8; }
.task-overdue-label { display: block; margin-top: 5px; color: #a1483e; font-size: .59rem; font-weight: 800; }
.task-progress { display: grid; grid-template-columns: 80px auto; align-items: center; gap: 7px; white-space: nowrap; }
.task-progress > span { height: 7px; overflow: hidden; border-radius: 99px; background: #e0e5da; }
.task-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9aa782,#596348); }
.task-progress b { color: #485640; font-size: .65rem; }
.task-stage-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-step { grid-template-columns: 65px minmax(180px,1.5fr) minmax(125px,.8fr) minmax(130px,.8fr); align-items: end; }
.task-step .finance-paid-check { grid-column: 1 / 3; }
.task-step-note { grid-column: 3 / 5; }
.task-step textarea { min-height: 43px; }
.account-dialog { width: min(94vw,540px); }
.account-dialog .finance-form > label { margin-top: 14px; }
.account-dialog [hidden] { display: none !important; }
.admin-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.admin-password-button { min-height: 38px; padding: 7px 11px; border: 1px solid rgba(89,99,72,.24); border-radius: 8px; color: #4d5a45; background: #fff; font: 700 .69rem/1.2 "Inter",sans-serif; cursor: pointer; }
.admin-password-button:hover { color: #fff; background: #596348; }
.admin-account-card > .admin-password-button { width: 100%; margin-top: 18px; }

@media (max-width: 1100px) {
  .admin-layout { grid-template-columns: 205px minmax(0,1fr); gap: 18px; }
  .finance-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-metrics article:last-child { grid-column: 1 / -1; }
  .finance-charts { grid-template-columns: 1fr; }
  .finance-chart { min-height: 170px; }
}
@media (max-width: 800px) {
  .admin-layout { display: block; width: min(calc(100% - 24px),700px); }
  .admin-sidebar { position: sticky; top: 73px; z-index: 19; margin-top: 0; padding: 7px; border-radius: 0 0 12px 12px; }
  .admin-sidebar-label, .admin-sidebar-foot { display: none; }
  .admin-sidebar-head { min-height: 0; justify-content: end; }
  .admin-sidebar-toggle { width: 34px; height: 34px; }
  .admin-module-nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
  .admin-module-nav button { min-width: max-content; min-height: 39px; padding: 7px 11px; font-size: .7rem; }
  .admin-layout > .admin-container { padding-top: 24px; }
  .admin-layout.is-sidebar-collapsed .admin-sidebar { width: 48px; padding: 7px; }
  .admin-layout.is-sidebar-collapsed .admin-sidebar-head { justify-content: center; }
  .finance-timeline-header { align-items: start; flex-direction: column; }
  .finance-timeline-legend { justify-content: start; }
  .task-timeline-scroll { overflow: visible; border: 0; background: transparent; }
  .task-timeline { display: grid; width: 100%; min-width: 0; padding: 7px 0 2px 20px; gap: 17px; }
  .task-timeline::before { top: 8px; bottom: 7px; left: 6px; width: 2px; height: auto; background: linear-gradient(#cbd2c1,#596348 50%,#cbd2c1); }
  .task-timeline-gap { display: none; }
  .task-timeline-date { width: auto; min-width: 0; scroll-snap-align: none; }
  .task-timeline-date > header::after { top: 20px; bottom: auto; left: -19px; }
  .task-timeline-date-events { margin-top: 9px; }
  .task-timeline-event-card { min-height: 94px; }
  .finance-installment { grid-template-columns: 1fr 1fr; }
  .finance-installment > strong, .finance-paid-check { grid-column: 1 / -1; }
  .task-filters { grid-template-columns: 1fr 1fr; }
  .task-filters label:last-child { grid-column: 1 / -1; }
  .task-step { grid-template-columns: 1fr 1fr; }
  .task-step > strong, .task-step .finance-paid-check, .task-step-note { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .finance-metrics { gap: 8px; }
  .finance-metrics article { min-height: 103px; padding: 14px 11px; }
  .finance-metrics strong { font-size: .94rem; }
  .finance-metrics span { font-size: .64rem; }
  .finance-form { padding: 20px 15px; }
  .finance-form-grid { grid-template-columns: 1fr; }
  .finance-wide { grid-column: 1; }
  .finance-installments-head { align-items: start; flex-direction: column; }
  .finance-installments-head label { width: 100%; }
  .finance-actions button span { display: none; }
  .finance-actions button { min-width: 35px; font-size: 1.15rem; }
  .task-filters { grid-template-columns: 1fr; }
  .task-filters label:last-child { grid-column: 1; }
  .admin-account-actions { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .finance-table { width: 100%; min-width: 0; }
  .finance-table td { width: 100%; max-width: none; grid-template-columns: 110px minmax(0,1fr); padding: 10px 11px; overflow-wrap: anywhere; }
  .finance-table td:first-child { width: 100%; text-align: left; }
  .finance-table .finance-status { width: max-content; max-width: 100%; }
}

/* Riso wedding mascots — sprite interaction adapted from nilbuild/page-mascot. */
.details-feature .wedding-mascots {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(390px,100%);
  height: 184px;
  margin: -14px auto -2px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  transform: none;
  isolation: isolate;
  pointer-events: auto;
}

.page-mascot {
  position: relative;
  width: 180px;
  height: 180px;
  flex: 0 0 180px;
  margin: 0 -19px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.page-mascot-pig { transform: rotate(-1.5deg); }
.page-mascot-cat { transform: rotate(1.5deg); }

.page-mascot-squash,
.page-mascot-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.page-mascot-layer {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  filter: drop-shadow(0 12px 12px rgba(50,57,40,.15));
}

.page-mascot-reaction {
  z-index: 2;
  opacity: 0;
  transition: opacity 85ms ease;
}

.page-mascot-reaction.is-visible { opacity: 1; }

.page-mascot:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: -13px;
}

.mascot-riso-heart {
  position: relative;
  z-index: 3;
  align-self: center;
  margin: 0 -8px 26px;
  color: #b38c3b;
  font: 500 2rem/1 "Cormorant Garamond",serif;
  text-shadow: 0 2px 10px rgba(179,140,59,.2);
  pointer-events: none;
}

.mini-riso-mascot {
  position: relative;
  width: 31px;
  height: 31px;
  display: block;
  flex: 0 0 31px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  filter: drop-shadow(0 3px 3px rgba(48,55,40,.12));
}

.mini-riso-mascot::before,
.mini-riso-mascot::after { display: none; }
.mini-riso-mascot.mini-pig { background-image: url("./images/mascots/pig-groom-directions.webp"); }
.mini-riso-mascot.mini-cat { background-image: url("./images/mascots/cat-bride-directions.webp"); }

@media (max-width: 560px) {
  .details-feature .wedding-mascots {
    width: min(330px,100%);
    height: 156px;
    margin-top: -10px;
  }
  .page-mascot {
    width: 153px;
    height: 153px;
    flex-basis: 153px;
    margin-inline: -16px;
  }
  .mascot-riso-heart { margin-bottom: 21px; font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-mascot-reaction { transition: none; }
}

/* September 27 editorial refinement: one continuous printed invitation. */
.invitation-content {
  transform: translateY(12px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.invitation-content.is-open { transform: translateY(0); }

/* Opening cover */
.invitation-cover {
  background: #f7f3e9;
  transition: opacity .24s ease .76s, visibility 1s linear;
}
.invitation-cover-photo { opacity: .09; filter: blur(6px) grayscale(.15) saturate(.62); }
.invitation-cover-paper {
  background:
    repeating-linear-gradient(126deg,rgba(105,91,63,.018) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(32deg,rgba(255,255,255,.22) 0 1px,transparent 1px 4px),
    linear-gradient(rgba(250,248,241,.88),rgba(247,243,233,.94));
}
.invitation-cover-card {
  width: min(530px,calc(100vw - 34px));
  min-height: min(720px,calc(100svh - 34px));
  padding: clamp(42px,7vh,76px) 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity .5s ease, transform .7s cubic-bezier(.65,0,.35,1);
}
.invitation-cover-kicker { font: 600 .65rem/1.2 "Inter",sans-serif; letter-spacing: .34em; }
.invitation-cover-names {
  margin: clamp(34px,6.3vh,58px) 0 clamp(31px,5vh,46px);
  color: var(--olive-deep);
  font-size: clamp(4.4rem,9vw,6.6rem);
  line-height: .83;
}
.invitation-cover-names small { margin: .27em 0 .2em; font-size: .32em; }
.invitation-cover-date {
  margin-bottom: clamp(34px,5.4vh,48px);
  color: #7d6b45;
  font: 600 .96rem/1.2 "Cormorant Garamond",serif;
  letter-spacing: .26em;
}
.invitation-cover-label {
  display: grid;
  margin-bottom: 25px;
  gap: 5px;
  color: #514f43;
  font-family: "Cormorant Garamond",serif;
  font-style: normal;
}
.invitation-cover-label span { font-size: 1.16rem; font-weight: 600; }
.invitation-cover-label small { color: #858273; font-size: .72rem; font-style: italic; font-weight: 500; letter-spacing: .05em; }
.open-invitation-button {
  min-width: 170px;
  display: grid;
  padding: 11px 24px 10px;
  gap: 4px;
  border: 1px solid rgba(76,88,61,.74);
  border-radius: 1px;
  color: var(--olive-deep);
  background: rgba(247,245,239,.38);
  box-shadow: none;
  font: 700 .7rem/1.1 "Cormorant Garamond",serif;
  letter-spacing: .2em;
  animation: none;
}
.open-invitation-button small { color: #7b806f; font: 600 .5rem/1.1 "Inter",sans-serif; letter-spacing: .14em; }
.open-invitation-button::after { display: none; }
.open-invitation-button:hover {
  color: #f7f5ef;
  background: var(--olive-deep);
  box-shadow: none;
  transform: translateY(-2px);
}
.open-invitation-button:hover small { color: rgba(247,245,239,.75); }
.invitation-cover-accent {
  width: clamp(230px,27vw,420px);
  aspect-ratio: 1;
  opacity: .72;
  background: url("./images/decor/watercolor-lilies.webp") center/contain no-repeat;
  filter: saturate(.62) sepia(.08) hue-rotate(7deg);
  transform-origin: center;
}
.invitation-cover-accent::after {
  inset: 18% 15%;
  opacity: .28;
  background: radial-gradient(ellipse,rgba(194,158,77,.42),transparent 68%);
  -webkit-mask-image: none;
  mask-image: none;
}
.cover-accent-top { top: -108px; left: -104px; transform: rotate(154deg) scale(.96); }
.cover-accent-bottom { right: -102px; bottom: -115px; transform: rotate(-7deg) scale(1.06); }
.invitation-cover.is-opening .invitation-cover-card { opacity: 0; transform: translateY(-8px); }
.invitation-cover.is-opening .cover-accent-top { animation: editorial-corner-top .94s cubic-bezier(.65,0,.35,1) both; }
.invitation-cover.is-opening .cover-accent-bottom { animation: editorial-corner-bottom .94s cubic-bezier(.65,0,.35,1) both; }
@keyframes editorial-corner-top {
  from { opacity: .72; filter: saturate(.62) sepia(.08) hue-rotate(7deg) blur(0); transform: rotate(154deg) scale(.96); }
  to { opacity: 0; filter: saturate(.62) sepia(.08) hue-rotate(7deg) blur(7px); transform: translate(34vw,31vh) rotate(162deg) scale(1.05); }
}
@keyframes editorial-corner-bottom {
  from { opacity: .72; filter: saturate(.62) sepia(.08) hue-rotate(7deg) blur(0); transform: rotate(-7deg) scale(1.06); }
  to { opacity: 0; filter: saturate(.62) sepia(.08) hue-rotate(7deg) blur(7px); transform: translate(-34vw,-31vh) rotate(-14deg) scale(1.11); }
}

/* Hero typography */
.hero-date {
  width: max-content;
  color: #f7f5ef;
  font: 600 1.02rem/1.2 "Cormorant Garamond",serif;
  letter-spacing: .16em;
  text-align: center;
}
.countdown strong {
  font-family: "Cormorant Garamond",serif;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Love Story */
.story-heading { margin-bottom: 46px !important; }
.story-section .story-heading h2 {
  display: grid;
  gap: 7px;
  margin: 0;
  line-height: 1;
}
.story-section .story-heading h2 > span {
  color: var(--olive);
  font: 400 clamp(3.8rem,14vw,5.25rem)/.88 "Great Vibes","Dancing Script",cursive;
}
.story-section .story-heading h2 > small {
  color: #8d784b;
  font: 600 .82rem/1.3 "Cormorant Garamond",serif;
  letter-spacing: .08em;
}
.story-intro {
  display: grid;
  margin-top: 16px !important;
  gap: 4px;
}
.story-intro > span { color: #8a7040; font: 600 1.72rem/1 "Caveat",cursive; }
.story-intro > small { color: #8b8a7e; font: 500 .75rem/1.3 "Cormorant Garamond",serif; letter-spacing: .04em; }
.story-river { inset: 0; width: 100%; height: 100%; }
.story-card:nth-of-type(2) {
  width: 100%;
  grid-template-columns: 34% 50px minmax(0,1fr);
  gap: 0;
  padding: 22px 6px 18px 0;
  text-align: left;
}
.story-card:nth-of-type(2) .story-photo-cluster {
  grid-column: 1;
  width: 100%;
  min-height: 238px;
  justify-self: stretch;
}
.story-card:nth-of-type(2) .story-photo-cluster img { width: min(150px,92%); }
.story-card:nth-of-type(2) .story-marker {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  margin: 0;
}
.story-card:nth-of-type(2) .story-milestone-copy {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  padding: 0 0 0 17px;
  text-align: left;
}
.story-card:nth-of-type(2) .story-milestone-copy p { margin: 0; }

/* Portrait collage and family introduction */
.story-details-bridge {
  width: min(100%,440px);
  height: 330px;
  margin: 6px auto 66px;
  overflow: visible;
  isolation: isolate;
}
.bridge-photo {
  width: 44%;
  padding: 7px 7px 19px;
  border: 1px solid rgba(102,102,84,.14);
  background: #fffef9;
  box-shadow: 0 17px 34px rgba(54,62,46,.15);
}
.bridge-photo img { aspect-ratio: .78; }
.bridge-photo-groom { z-index: 2; top: 5px; left: 12%; transform: rotate(-5.5deg); }
.bridge-photo-bride { z-index: 4; right: 9%; bottom: 2px; transform: rotate(5.2deg); }
.bridge-flower-art {
  position: absolute;
  z-index: 3;
  left: -42px;
  bottom: -34px;
  width: 255px;
  height: auto;
  opacity: .88;
  filter: saturate(.78) drop-shadow(0 9px 14px rgba(58,67,48,.08));
  pointer-events: none;
}
.bridge-gold-flourish {
  position: absolute;
  z-index: 1;
  top: -3px;
  right: 1px;
  width: 205px;
  overflow: visible;
  fill: none;
  stroke: rgba(184,143,55,.66);
  stroke-width: 1.15;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 5px rgba(184,143,55,.12));
}
.family-presentation {
  position: relative;
  gap: 34px;
  margin-bottom: 72px;
  padding: 20px 12px 6px;
}
.family-presentation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 66px;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--champagne),transparent);
  transform: translateX(-50%);
}
.family-side-label { margin-bottom: 16px; }
.family-role { margin-bottom: 16px; }
.family-parents { gap: 12px; }
.family-parents strong { font-size: .9rem; line-height: 1.35; }

/* Formal invitation and event information */
.formal-invitation { margin-bottom: 52px; }
.formal-kicker { margin-bottom: 15px; }
.formal-guest {
  margin: 7px 0 10px;
  font-size: clamp(2.65rem,11vw,3.5rem);
}
.formal-rule { margin: 16px auto 25px; }
.formal-copy {
  max-width: 340px;
  margin-bottom: 34px;
  font-size: .9rem;
  line-height: 1.65;
}
.formal-couple {
  gap: 6px;
  font-size: clamp(3.15rem,12vw,4.25rem);
  line-height: .84;
}
.formal-couple small { margin: 10px 0; }
.details-feature {
  gap: 20px;
  padding: 34px 30px 32px;
  border: 1px solid rgba(171,136,65,.68);
  border-radius: 2px;
  outline-color: rgba(171,136,65,.22);
  background:
    radial-gradient(circle at 87% 88%,rgba(89,99,72,.055),transparent 33%),
    rgba(250,248,241,.9);
  box-shadow: 0 18px 36px rgba(52,59,44,.08);
}
.details-feature-copy > span { font: 600 .7rem/1.2 "Cormorant Garamond",serif; letter-spacing: .23em; }
.details-feature-copy strong { margin-top: 7px; line-height: 1.02; }
.event-date-row { margin: 22px 0 19px; padding: 16px 0; }
.details-feature-copy p { margin-top: 14px; line-height: 1.55; }
.details-feature .button.primary {
  min-width: 148px;
  padding: 11px 20px;
  border: 1px solid var(--olive);
  border-radius: 1px;
  color: var(--olive-deep);
  background: transparent;
  box-shadow: none;
  font: 700 .67rem/1 "Cormorant Garamond",serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.details-feature .button.primary:hover { color: #fff; background: var(--olive); transform: translateY(-2px); }
.program-panel {
  margin-top: 44px;
  padding: 30px 18px 24px;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.program-symbol { width: 36px; height: 36px; color: var(--olive-deep); }
.program-symbol .program-engraved-icon { width: 23px; height: 23px; overflow: visible; }
.program-engraved-icon path,
.program-engraved-icon circle {
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.program-engraved-icon .engraved-detail { stroke-width: .9; opacity: .72; }

/* An irregular paper turn carries the ceremony into the album. */
.gallery-section {
  position: relative;
  padding-top: 108px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 7%,rgba(205,193,159,.14),transparent 25%),
    #f4f1e8 !important;
}
.gallery-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -1px;
  right: -12px;
  left: -12px;
  height: 72px;
  border-radius: 0;
  background:
    linear-gradient(rgba(247,245,239,.97),rgba(247,245,239,.97)),
    url("./images/decor/watercolor-lilies.webp") 6% 68%/150px auto no-repeat;
  box-shadow: none;
  clip-path: polygon(0 0,100% 0,100% 47%,83% 60%,67% 48%,50% 68%,31% 51%,14% 64%,0 48%);
  transform: none;
}
.gallery-section > * { position: relative; z-index: 1; }
.gallery-heading { margin-bottom: 32px; }
.gallery-heading h2 {
  margin: 0;
  color: var(--olive-deep);
  font: 400 clamp(3.4rem,13vw,4.8rem)/.9 "Great Vibes","Dancing Script",cursive;
}
.gallery-heading p {
  margin: 7px 0 0;
  color: #9a7f47;
  font: 600 .68rem/1 "Inter",sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.gallery-layout-editorial {
  grid-template-columns: repeat(12,minmax(0,1fr));
  grid-auto-rows: 58px;
  gap: 10px;
}
.gallery-layout-editorial .gallery-photo { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 1px; }
.gallery-layout-editorial .gallery-photo:nth-child(1) { grid-column: 1 / 8; grid-row: span 5; }
.gallery-layout-editorial .gallery-photo:nth-child(2) { grid-column: 8 / -1; grid-row: span 3; }
.gallery-layout-editorial .gallery-photo:nth-child(3) { grid-column: 8 / -1; grid-row: span 2; }
.gallery-layout-editorial .gallery-photo:nth-child(4) { grid-column: 1 / 5; grid-row: span 3; }
.gallery-layout-editorial .gallery-photo:nth-child(5) { grid-column: 5 / -1; grid-row: span 4; }
.gallery-layout-editorial .gallery-photo:nth-child(6) { grid-column: 1 / 7; grid-row: span 3; }
.gallery-layout-editorial .gallery-photo:nth-child(7) { grid-column: 7 / -1; grid-row: span 3; }
.gallery .gallery-photo {
  transition: opacity .85s ease var(--photo-delay),clip-path .95s cubic-bezier(.22,1,.36,1) var(--photo-delay),filter .95s ease var(--photo-delay),transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s ease !important;
}
.gallery-actions { display: flex; justify-content: center; margin-top: 34px; }
.gallery-full-button {
  min-width: 190px;
  display: grid;
  padding: 12px 24px 10px;
  gap: 4px;
  border: 1px solid rgba(89,99,72,.65);
  border-radius: 1px;
  color: var(--olive-deep);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: color .3s ease,background .3s ease,transform .3s ease;
}
.gallery-full-button span { font: 700 .68rem/1.1 "Cormorant Garamond",serif; letter-spacing: .17em; }
.gallery-full-button small { color: #868979; font: 600 .5rem/1.1 "Inter",sans-serif; letter-spacing: .12em; }
.gallery-full-button:hover { color: #fff; background: var(--olive-deep); transform: translateY(-2px); }
.gallery-full-button:hover small { color: rgba(255,255,255,.7); }
@media (hover:hover) and (pointer:fine) {
  .gallery .gallery-photo.is-visible:hover {
    filter: saturate(1.02);
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 14px 28px rgba(45,54,37,.18);
  }
}

body.gallery-overlay-open { overflow: hidden; }
.full-gallery-dialog {
  width: min(1180px,calc(100vw - 28px));
  max-width: none;
  height: min(920px,calc(100dvh - 28px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(200,169,107,.46);
  color: var(--ink);
  background:
    repeating-linear-gradient(128deg,rgba(102,91,68,.018) 0 1px,transparent 1px 5px),
    #f7f5ef;
  box-shadow: 0 32px 90px rgba(23,28,19,.35);
}
.full-gallery-dialog::backdrop { background: rgba(28,33,23,.72); backdrop-filter: blur(8px); }
.full-gallery-dialog[open] { animation: lightbox-rise .48s cubic-bezier(.16,1,.3,1) both; }
.full-gallery-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  padding: 20px clamp(18px,3vw,34px) 17px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(89,99,72,.13);
  background: rgba(247,245,239,.94);
  backdrop-filter: blur(9px);
}
.full-gallery-header p { margin: 0 0 3px; color: #9b7f45; font: 600 .55rem/1 "Inter",sans-serif; letter-spacing: .23em; text-transform: uppercase; }
.full-gallery-header h2 { margin: 0; color: var(--olive-deep); font: 600 clamp(1.8rem,4vw,2.5rem)/1 "Cormorant Garamond",serif; }
.full-gallery-header h2 small { color: #8a8b7e; font-size: .55em; font-weight: 500; }
.full-gallery-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(89,99,72,.28);
  border-radius: 50%;
  color: var(--olive-deep);
  background: transparent;
  font: 400 1.75rem/1 "Cormorant Garamond",serif;
  cursor: pointer;
}
.full-gallery-grid { padding: clamp(16px,3vw,34px); columns: 3 250px; column-gap: 14px; }
.full-gallery-item {
  width: 100%;
  display: block;
  margin: 0 0 14px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 0;
  background: #ebe7dc;
  cursor: zoom-in;
}
.full-gallery-item img { width: 100%; height: auto; display: block; transition: transform .32s ease,filter .32s ease; }
.full-gallery-item:hover img { filter: saturate(1.03); transform: scale(1.018); }
.full-gallery-item:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

@media (max-width: 560px) {
  .invitation-cover-card { min-height: calc(100svh - 24px); padding-inline: 21px; }
  .invitation-cover-names { font-size: clamp(4rem,17vw,5.25rem); }
  .invitation-cover-accent { width: clamp(210px,60vw,280px); }
  .cover-accent-top { top: -82px; left: -86px; }
  .cover-accent-bottom { right: -86px; bottom: -92px; }
  .story-card,
  .story-card:nth-child(even) { min-height: 268px; grid-template-columns: minmax(0,1fr) 138px; }
  .story-card:nth-of-type(2) { grid-template-columns: 34% 50px minmax(0,1fr); }
  .story-card:nth-of-type(2) .story-photo-cluster { grid-column: 1; width: 100%; min-height: 216px; justify-self: stretch; }
  .story-card:nth-of-type(2) .story-photo-cluster img { width: min(118px,94%); }
  .story-card:nth-of-type(2) .story-marker { grid-column: 2; }
  .story-card:nth-of-type(2) .story-milestone-copy { grid-column: 3; padding-left: 10px; }
  .story-card:nth-of-type(2) .story-milestone-copy > span { font-size: 1.22rem; }
  .story-card:nth-of-type(2) .story-milestone-copy p { font-size: .72rem; }
  .story-details-bridge { height: 300px; margin-bottom: 56px; }
  .bridge-photo { width: 47%; }
  .bridge-photo-groom { left: 7%; }
  .bridge-photo-bride { right: 5%; }
  .bridge-flower-art { left: -47px; bottom: -30px; width: 220px; }
  .bridge-gold-flourish { right: -18px; width: 185px; }
  .family-presentation { gap: 17px; padding-inline: 0; }
  .family-groom { padding-right: 10px; }
  .family-bride { padding-left: 10px; }
  .formal-copy { max-width: 300px; }
  .details-feature { padding-inline: 22px; }
  .gallery-layout-editorial { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 122px; gap: 8px; }
  .gallery-layout-editorial .gallery-photo:nth-child(n) { grid-column: auto; grid-row: span 2; }
  .gallery-layout-editorial .gallery-photo:nth-child(1),
  .gallery-layout-editorial .gallery-photo:nth-child(5) { grid-column: 1 / -1; grid-row: span 3; }
  .gallery-layout-editorial .gallery-photo:nth-child(7) { grid-column: 1 / -1; grid-row: span 2; }
  .full-gallery-dialog { width: 100vw; height: 100dvh; border: 0; }
  .full-gallery-grid { padding: 10px; columns: 2 135px; column-gap: 9px; }
  .full-gallery-item { margin-bottom: 9px; }
  .full-gallery-header { padding: 14px 15px 12px; }
}

@media (max-width: 390px) {
  .story-card:nth-of-type(2) { grid-template-columns: 31% 48px minmax(0,1fr); }
  .story-card:nth-of-type(2) .story-milestone-copy { padding-left: 7px; }
  .story-card:nth-of-type(2) .story-milestone-copy p { line-height: 1.5; }
  .bridge-flower-art { left: -56px; width: 205px; }
  .family-parents strong { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-cover,
  .invitation-cover-card,
  .invitation-content { transition: opacity .32s ease !important; transform: none !important; }
  .invitation-cover.is-opening .invitation-cover-accent { animation: none !important; opacity: 0; filter: none; }
  .gallery .gallery-photo,
  .full-gallery-dialog,
  .full-gallery-item img { animation: none !important; transition: none !important; }
}

/* September 27 review corrections. */

/* Let the invitation underneath resolve gradually after the cover parts. */
.invitation-content {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(14px) scale(.996);
  transition:
    opacity 1.85s cubic-bezier(.42,0,.58,1) .18s,
    filter 1.7s cubic-bezier(.42,0,.58,1) .18s,
    transform 1.85s cubic-bezier(.42,0,.58,1) .18s;
  will-change: opacity, filter, transform;
}
.invitation-content.is-open {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.invitation-cover { transition: opacity .58s ease .88s, visibility 1.55s linear; }

/* Single-language editorial headings. */
.story-section .story-heading h2 {
  display: block;
  color: var(--olive);
  font: 400 clamp(3.8rem,14vw,5.25rem)/.9 "Great Vibes","Dancing Script",cursive;
}
.story-intro {
  display: block;
  margin-top: 17px !important;
  color: #8a7040;
  font: 600 1.72rem/1.1 "Caveat",cursive;
}
.gallery-heading h2 { margin-bottom: 0; }

/* A single reverse-S spine: markers and prints touch it; copy stays clear. */
.story-timeline {
  position: relative;
  height: 1050px;
  display: block;
  margin-top: 4px;
  padding: 0;
}
.story-river {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.story-river .story-river-fill {
  fill: none;
  stroke: rgba(211,219,200,.42);
  stroke-width: 30;
  stroke-linecap: round;
}
.story-river .story-river-line {
  fill: none;
  stroke: rgba(89,99,72,.72);
  stroke-width: 2;
  stroke-linecap: round;
}
.story-river .story-river-spark {
  fill: none;
  stroke: rgba(190,145,55,.86);
  stroke-width: 1.2;
  stroke-dasharray: 2 18;
  stroke-linecap: round;
}
.story-river-dot { fill: rgba(184,143,55,.88); }
.story-card,
.story-card:nth-child(even),
.story-card:nth-of-type(even) {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  text-align: left;
  pointer-events: none;
}
.story-card > * { pointer-events: auto; }
.story-marker,
.story-card:nth-of-type(even) .story-marker {
  position: absolute;
  z-index: 5;
  top: auto;
  right: auto;
  left: auto;
  width: 58px;
  height: 58px;
  margin: 0;
  border: 1px solid var(--champagne);
  outline: 6px solid var(--paper);
  transform: translate(-50%,-50%);
}
.story-card:nth-of-type(1) .story-marker { top: 8.571%; left: 12%; }
.story-card:nth-of-type(2) .story-marker { top: 49.524%; left: 50%; }
.story-card:nth-of-type(3) .story-marker { top: 69.524%; left: 18%; }
.story-milestone-copy,
.story-card:nth-of-type(even) .story-milestone-copy {
  position: absolute;
  z-index: 3;
  width: 38%;
  padding: 0;
  text-align: left;
}
.story-card:nth-of-type(1) .story-milestone-copy { top: 16%; left: 3%; }
.story-card:nth-of-type(2) .story-milestone-copy { top: 46%; left: 59%; }
.story-card:nth-of-type(3) .story-milestone-copy { top: 75%; left: 3%; width: 37%; }
.story-milestone-copy > span {
  margin-bottom: 9px;
  font-size: clamp(1.32rem,5.2vw,1.62rem);
  line-height: 1.08;
}
.story-milestone-copy p,
.story-card:nth-of-type(even) .story-milestone-copy p {
  max-width: none;
  margin: 0;
  font-size: clamp(.73rem,2.55vw,.84rem);
  line-height: 1.58;
}
.story-photo-cluster,
.story-card:nth-of-type(even) .story-photo-cluster {
  position: absolute;
  z-index: 2;
  width: 43%;
  min-height: 248px;
  margin: 0;
}
.story-card:nth-of-type(1) .story-photo-cluster { top: 18%; left: 49%; }
.story-card:nth-of-type(2) .story-photo-cluster { top: 51%; left: 3%; width: 39%; }
.story-card:nth-of-type(3) .story-photo-cluster { top: 76%; left: 52%; width: 41%; }
.story-photo-cluster img,
.story-card:nth-of-type(2) .story-photo-cluster img {
  bottom: auto;
  width: 82%;
  aspect-ratio: .78;
  padding: 5px 5px 14px;
  object-fit: cover;
  box-shadow: 0 15px 28px rgba(45,54,37,.17);
}
.story-photo-cluster img:first-child { top: 8px; left: 0; }
.story-photo-cluster img:last-child { top: 30px; right: 0; }
.story-card:nth-of-type(2) .story-photo-cluster img:first-child { top: 25px; }
.story-card:nth-of-type(2) .story-photo-cluster img:last-child { top: 4px; }
.story-closing-note { margin-top: 30px; }

/* Preserve the printed-photo tilt after reveal animations finish. */
.bridge-photo { --bridge-rotate: 0deg; }
.bridge-photo-groom { --bridge-rotate: -8.5deg; top: 8px; left: 9%; }
.bridge-photo-bride { --bridge-rotate: 7.5deg; right: 6%; bottom: 1px; }
.bridge-photo.motion-item { transform: translateY(20px) rotate(var(--bridge-rotate)); }
.bridge-photo.motion-item.is-in-view { transform: translateY(0) rotate(var(--bridge-rotate)); }

/* Mathematically centered family divider and ornament. */
.family-presentation {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 34px;
  padding-inline: 0;
}
.family-groom { padding-right: 17px; border-right: 0; }
.family-bride { padding-left: 17px; }
.family-presentation::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 56px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent,rgba(200,169,107,.62) 12%,rgba(200,169,107,.62) 88%,transparent);
  transform: translateX(-.5px);
}
.family-person { position: relative; z-index: 1; }
.family-divider-ornament {
  position: absolute;
  z-index: 2;
  top: 53%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--champagne);
  background: var(--paper);
  transform: translate(-50%,-50%) rotate(45deg);
}

/* Remove only the dashed ink while retaining its established spacing. */
.formal-rule { height: 1px; border: 0; }

/* Restore the former compact olive map button. */
.details-feature .button.primary {
  min-width: 0;
  padding: 12px 22px;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  color: #fff;
  background: var(--leaf);
  box-shadow: 0 10px 24px rgba(89,99,72,.22);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.details-feature .button.primary:hover {
  color: #fff;
  background: #465039;
  box-shadow: 0 12px 27px rgba(89,99,72,.27);
  transform: translateY(-2px);
}

/* Standalone vintage illustrations: no app-like circular containers. */
.program-symbol,
.program-item .program-symbol {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--olive-deep);
  background: transparent;
}
.program-symbol .program-engraved-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 1px rgba(89,99,72,.08));
}
.program-engraved-icon path,
.program-engraved-icon circle { stroke-width: 1.45; }
.program-engraved-icon .engraved-detail { stroke-width: .72; }

/* Thank-you copy lives on the image, softened by a photographic fade. */
.thank-you-section { padding-bottom: 0 !important; background: var(--paper); }
.thank-you-photo-wrap {
  position: relative;
  min-height: min(720px,128vw);
  overflow: hidden;
}
.thank-you-photo-wrap::after {
  z-index: 1;
  height: 62%;
  background: linear-gradient(180deg,transparent 0%,rgba(39,47,32,.16) 30%,rgba(31,38,25,.76) 100%);
  pointer-events: none;
}
.thank-you-photo {
  width: 100%;
  height: 100%;
  min-height: min(720px,128vw);
  aspect-ratio: auto;
  object-fit: cover;
}
.thank-you-botanical { z-index: 2; }
.thank-you-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 120px 34px 52px;
  border: 0;
  color: #fffdf7;
  background: transparent;
  box-shadow: none;
}
.thank-you-script {
  margin-bottom: 22px;
  color: #ead29a;
  font-size: clamp(4.4rem,18vw,6.6rem);
  text-shadow: 0 2px 18px rgba(23,28,19,.22);
}
.thank-you-card > p:not(.thank-you-script) {
  color: rgba(255,253,247,.94);
  text-shadow: 0 2px 12px rgba(20,25,17,.48);
}

@media (max-width: 560px) {
  .story-timeline { height: 1050px; }
  .story-card,
  .story-card:nth-child(even),
  .story-card:nth-of-type(even) { min-height: 0; display: block; padding: 0; }
  .story-card:nth-of-type(2) .story-photo-cluster { width: 39%; min-height: 224px; }
  .story-card:nth-of-type(2) .story-photo-cluster img { width: 82%; }
  .story-card:nth-of-type(2) .story-milestone-copy { padding-left: 0; }
  .family-presentation { gap: 28px; }
  .family-groom { padding-right: 14px; }
  .family-bride { padding-left: 14px; }
  .details-feature { padding-inline: 22px; }
}

@media (max-width: 390px) {
  .story-timeline { height: 1020px; }
  .story-card:nth-of-type(1) .story-milestone-copy { top: 15%; }
  .story-card:nth-of-type(2) .story-milestone-copy { top: 46%; left: 58%; width: 40%; }
  .story-card:nth-of-type(3) .story-milestone-copy { top: 75%; }
  .story-milestone-copy > span { font-size: 1.24rem; }
  .story-milestone-copy p,
  .story-card:nth-of-type(even) .story-milestone-copy p { font-size: .7rem; line-height: 1.5; }
  .story-photo-cluster,
  .story-card:nth-of-type(2) .story-photo-cluster { min-height: 214px; }
  .family-presentation { gap: 20px; }
  .family-groom { padding-right: 10px; }
  .family-bride { padding-left: 10px; }
  .thank-you-card { padding: 100px 24px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-content {
    filter: none !important;
    transition: opacity .32s ease !important;
    transform: none !important;
  }
  .bridge-photo.motion-item,
  .bridge-photo.motion-item.is-in-view { transform: rotate(var(--bridge-rotate)) !important; }
}

/* Love Story reference alignment: one organic path in a 560 × 1320 canvas. */
.story-timeline {
  position: relative;
  width: 100%;
  height: 1320px;
  margin: 0 auto;
  padding: 0;
}
.story-river {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.story-river .story-river-line {
  fill: none;
  stroke: rgba(85,100,69,.78);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.48));
}
.story-river-dot { fill: rgba(190,145,55,.82); }
.story-card,
.story-card:nth-child(even),
.story-card:nth-of-type(even) {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
  text-align: left;
  pointer-events: none;
}
.story-card > * { pointer-events: auto; }
.story-marker,
.story-card:nth-of-type(even) .story-marker {
  position: absolute;
  z-index: 8;
  top: auto;
  right: auto;
  left: auto;
  width: 54px;
  height: 54px;
  margin: 0;
  border: 2px solid #c9a96a;
  outline: 5px solid rgba(247,246,238,.9);
  color: #fff;
  background: #586747 !important;
  box-shadow: 0 6px 15px rgba(41,52,35,.13);
  transform: translate(-50%,-50%);
}
.story-card:nth-of-type(1) .story-marker { top: 13.258%; left: 17.143%; }
.story-card:nth-of-type(2) .story-marker { top: 49.242%; left: 21.964%; }
.story-card:nth-of-type(3) .story-marker { top: 70.152%; left: 71.607%; }
.story-marker strong { font-size: .88rem; font-weight: 600; }

.story-milestone-copy,
.story-card:nth-of-type(even) .story-milestone-copy {
  position: absolute;
  z-index: 5;
  right: auto;
  left: auto;
  width: 190px;
  padding: 0;
  color: #555949;
  text-align: left;
}
.story-card:nth-of-type(1) .story-milestone-copy {
  top: 17%;
  left: 46px;
  width: 165px;
}
.story-card:nth-of-type(2) .story-milestone-copy {
  top: 39%;
  right: 34px;
  left: auto;
  width: 190px;
}
.story-card:nth-of-type(3) .story-milestone-copy {
  top: 65%;
  left: 48px;
  width: 180px;
}
.story-milestone-copy::before {
  content: "";
  width: 28px;
  height: 1px;
  display: block;
  margin-bottom: 13px;
  background: #c4a064;
}
.story-milestone-copy > span {
  margin: 0 0 9px;
  color: #4e5744;
  font: 600 28px/1.05 "Cormorant Garamond",serif;
}
.story-milestone-copy p,
.story-card:nth-of-type(even) .story-milestone-copy p {
  max-width: none;
  margin: 0;
  color: #6b6d63;
  font: 500 15px/1.45 "Cormorant Garamond",serif;
}

.story-photo-cluster,
.story-card:nth-of-type(even) .story-photo-cluster {
  position: absolute;
  z-index: 6;
  right: auto;
  left: auto;
  width: 185px;
  min-height: 0;
  aspect-ratio: 185 / 240;
  margin: 0;
}
.story-card:nth-of-type(1) .story-photo-cluster {
  top: 14.773%;
  right: 46px;
  left: auto;
}
.story-card:nth-of-type(2) .story-photo-cluster {
  top: 39.394%;
  left: 26px;
  width: 175px;
  aspect-ratio: 175 / 220;
}
.story-card:nth-of-type(3) .story-photo-cluster {
  top: 70.833%;
  right: 38px;
  left: auto;
  width: 195px;
  aspect-ratio: 195 / 245;
}
.story-photo-cluster img,
.story-card:nth-of-type(2) .story-photo-cluster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(50,47,36,.12);
  object-fit: cover;
}
.story-photo-cluster img:first-child {
  top: 10px;
  right: auto;
  bottom: auto;
  left: -15px;
  --photo-rotate: -5deg;
  opacity: .88;
}
.story-photo-cluster img:last-child {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  --photo-rotate: 4deg;
}
.story-card:nth-of-type(2) .story-photo-cluster img:first-child {
  top: 8px;
  left: -10px;
  --photo-rotate: -7deg;
}
.story-card:nth-of-type(2) .story-photo-cluster img:last-child { top: 0; --photo-rotate: 5deg; }
.story-card:nth-of-type(3) .story-photo-cluster img:last-child { --photo-rotate: 5deg; }

@media (max-width: 560px) {
  .story-timeline { height: 1250px; }
  .story-card:nth-of-type(1) .story-milestone-copy {
    left: 30px;
    width: clamp(100px,27vw,155px);
  }
  .story-card:nth-of-type(2) .story-milestone-copy {
    right: 24px;
    width: clamp(105px,27vw,175px);
  }
  .story-card:nth-of-type(3) .story-milestone-copy {
    left: 32px;
    width: clamp(100px,27vw,165px);
  }
  .story-milestone-copy > span { font-size: 25px; }
  .story-milestone-copy p,
  .story-card:nth-of-type(even) .story-milestone-copy p { font-size: 13px; }
  .story-card:nth-of-type(1) .story-photo-cluster { right: 8px; width: 170px; }
  .story-card:nth-of-type(2) .story-photo-cluster { left: 24px; width: 160px; }
  .story-card:nth-of-type(3) .story-photo-cluster { right: 2px; width: 175px; }
}

@media (max-width: 375px) {
  .story-milestone-copy { transform: scale(.93); transform-origin: left top; }
  .story-card:nth-of-type(2) .story-milestone-copy { transform-origin: right top; }
  .story-card:nth-of-type(1) .story-photo-cluster { right: 6px; width: 164px; }
  .story-card:nth-of-type(2) .story-photo-cluster { left: 18px; width: 154px; }
  .story-card:nth-of-type(3) .story-photo-cluster { right: 2px; width: 168px; }
}

/* Final interaction polish: tighter story opening, external navigation and playful CTAs. */
.story-heading { margin-bottom: 28px !important; }
.story-intro {
  font-family: "Dancing Script","Cormorant Garamond",serif;
  font-size: 1.58rem;
  font-weight: 600;
  line-height: 1.18;
}
.story-timeline { margin-top: -96px; }
.story-card:nth-of-type(2) .story-marker { top: 36.864%; left: 43.964%; }
.story-card:nth-of-type(3) .story-marker { top: 67.5%; left: 70.714%; }

/* Keep the quick navigation outside the 560px invitation canvas. */
.quick-dock {
  top: 50%;
  right: auto;
  left: calc(50% + 304px);
  opacity: 0;
  pointer-events: none;
  transform: translate(10px,-50%);
  transition: opacity .38s ease,transform .48s cubic-bezier(.22,1,.36,1);
}
body.invitation-open .quick-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0,-50%);
  transition-delay: 1.45s;
}

/* The full-gallery action follows the friendly wish-board language. */
.gallery-full-button {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  padding: 7px 15px 7px 9px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(89,99,72,.2);
  border-radius: 999px;
  color: var(--olive-deep);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(62,59,46,.1);
  transition: transform .28s ease,box-shadow .28s ease,background-color .28s ease;
}
.gallery-full-button span:last-child {
  font: 700 .68rem/1.1 "Cormorant Garamond",serif;
  letter-spacing: .13em;
}
.gallery-full-button:hover,
.gallery-full-button:focus-visible {
  color: var(--olive-deep);
  background: #fbfaf5;
  box-shadow: 0 12px 25px rgba(62,59,46,.15);
  transform: translateY(-2px);
  outline: none;
}

/* The middle heart is a real control that brings the mascots together. */
.page-mascot { transition: transform .62s cubic-bezier(.34,1.56,.64,1); }
.mascot-riso-heart {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color .25s ease,transform .45s cubic-bezier(.34,1.56,.64,1);
}
.mascot-riso-heart:hover,
.mascot-riso-heart:focus-visible {
  color: #9f7428;
  outline: none;
  transform: scale(1.18);
}
.wedding-mascots.is-kissing .page-mascot-pig { transform: translateX(30px) rotate(4deg); }
.wedding-mascots.is-kissing .page-mascot-cat { transform: translateX(-30px) rotate(-4deg); }
.mascot-riso-heart.is-kissing {
  color: #a66f54;
  transform: translateY(-14px) scale(1.45);
  animation: mascot-heart-kiss .62s ease-in-out 2 alternate;
}
.mascot-riso-heart.is-kissing::after {
  content: "♡  ♡";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 72px;
  color: #b99143;
  font-size: .72rem;
  letter-spacing: 12px;
  transform: translateX(-42%);
  animation: mascot-kiss-sparkles 1.25s ease-out both;
}
@keyframes mascot-heart-kiss {
  from { transform: translateY(-10px) scale(1.25); }
  to { transform: translateY(-16px) scale(1.52); }
}
@keyframes mascot-kiss-sparkles {
  from { opacity: 0; transform: translate(-42%,8px) scale(.7); }
  35% { opacity: 1; }
  to { opacity: 0; transform: translate(-42%,-25px) scale(1.15); }
}

@media (max-width: 760px) {
  .quick-dock,
  body.invitation-open .quick-dock {
    top: auto;
    right: auto;
    bottom: max(9px,env(safe-area-inset-bottom));
    left: 50%;
    z-index: 80;
    display: block;
    padding: 5px 7px;
    border: 1px solid rgba(89,99,72,.18);
    border-radius: 999px;
    background: rgba(247,245,239,.91);
    box-shadow: 0 8px 24px rgba(45,54,37,.16);
    backdrop-filter: blur(14px) saturate(1.05);
  }
  .quick-dock { transform: translate(-50%,10px); }
  body.invitation-open .quick-dock { transform: translate(-50%,0); }
  .quick-dock-items,
  .quick-dock.is-collapsed .quick-dock-items {
    display: flex;
    max-height: none;
    gap: 3px;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .quick-dock-button {
    width: 37px;
    height: 37px;
    border: 0;
    color: var(--olive-deep);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .quick-dock-button:hover,
  .quick-dock-button:focus-visible {
    color: #fff;
    background: var(--olive);
    box-shadow: none;
    transform: translateY(-2px);
  }
  .quick-dock-button svg { width: 18px; height: 18px; }
  .quick-dock-toggle { display: none !important; }
}

@media (max-width: 420px) {
  .quick-dock { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .page-mascot,
  .mascot-riso-heart { transition: none; }
  .wedding-mascots.is-kissing .page-mascot-pig,
  .wedding-mascots.is-kissing .page-mascot-cat { transform: none; }
  .mascot-riso-heart.is-kissing,
  .mascot-riso-heart.is-kissing::after { animation: none; }
}

/* Ensure the heart owns the center hit area instead of the overlapping mascot buttons. */
.page-mascot { z-index: 1; }
.page-mascot-squash,
.page-mascot-layer { pointer-events: none; }
.mascot-riso-heart {
  z-index: 20;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  margin-inline: -14px;
  isolation: isolate;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mascot-riso-heart::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: 50%;
  background: rgba(247,245,239,.001);
}

/* User-supplied engraved artwork for the three wedding timeline moments. */
.program-symbol .program-icon-art {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(55,67,47,.12));
}

/* Botanical overlays only: they do not participate in the approved story layout. */
.story-floral-fill,
.story-photo-flower {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  background: url("./images/decor/watercolor-lilies.webp") center/contain no-repeat;
  pointer-events: none;
}
.story-floral-fill {
  z-index: 2;
  width: clamp(105px,27%,145px);
  opacity: .16;
  filter: saturate(.72) sepia(.06);
}
.story-floral-fill-one {
  top: 28%;
  right: -50px;
  transform: rotate(22deg);
}
.story-floral-fill-two {
  top: 55%;
  left: -48px;
  transform: rotate(154deg) scale(.9);
}
.story-photo-flower {
  z-index: 4;
  width: 104px;
  opacity: .82;
  filter: drop-shadow(0 6px 8px rgba(61,67,49,.1));
  transform-origin: center;
}
.story-card:nth-of-type(1) .story-photo-flower {
  right: -50px;
  bottom: -48px;
  transform: rotate(-24deg);
}
.story-card:nth-of-type(2) .story-photo-flower {
  bottom: -48px;
  left: -52px;
  transform: rotate(132deg) scale(.88);
}
.story-card:nth-of-type(3) .story-photo-flower {
  right: -54px;
  bottom: -50px;
  transform: rotate(-18deg) scale(.94);
}

/* Give the album title a calmer page-turn pause after the preceding section. */
.gallery-section { padding-top: 140px !important; }

@media (max-width: 560px) {
  .story-floral-fill { width: 104px; opacity: .14; }
  .story-floral-fill-one { right: -42px; }
  .story-floral-fill-two { left: -40px; }
  .story-photo-flower { width: 84px; opacity: .76; }
  .story-card:nth-of-type(1) .story-photo-flower { right: -40px; bottom: -38px; }
  .story-card:nth-of-type(2) .story-photo-flower { bottom: -39px; left: -41px; }
  .story-card:nth-of-type(3) .story-photo-flower { right: -42px; bottom: -40px; }
  .gallery-section { padding-top: 126px !important; }
}

/* September final polish: invitation rhythm and continuous section boundaries. */
.bridge-flower-art {
  position: absolute;
  z-index: 3;
  left: -20px;
  bottom: -95px;
  width: 255px;
  height: auto;
  opacity: .88;
  filter: saturate(.78) drop-shadow(0 9px 14px rgba(58,67,48,.08));
  pointer-events: none;
}

.formal-couple > span {
  position: relative;
  display: block;
}
.formal-couple > span:first-child { left: -24px; }
.formal-couple > span:last-child { left: 24px; }
.formal-couple small { margin: 15px 0; }

.program-symbol,
.program-item .program-symbol {
  transform: translateX(7px);
}

/* Keep a short paper-turn seam without the previous empty panel-sized pause. */
.details-section { padding-bottom: 24px !important; }
.program-panel { margin-bottom: 0; }
.gallery-section { padding-top: 64px !important; }
.gallery-section::before {
  height: 40px;
  clip-path: polygon(0 0,100% 0,100% 42%,83% 66%,67% 48%,50% 72%,31% 51%,14% 67%,0 48%);
}

/* The language control travels with the always-visible navigation dock. */
.quick-dock-language {
  width: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-color: rgba(89,99,72,.2);
  background: rgba(247,245,239,.94);
  box-shadow: 0 8px 22px rgba(45,54,37,.14);
  backdrop-filter: blur(12px);
}
.quick-dock-language .lang-button {
  min-width: 0;
  padding: 7px 3px;
  color: var(--olive-deep);
  font: 700 .58rem/1 "Inter",sans-serif;
  letter-spacing: .02em;
}
.quick-dock-language .lang-button.is-active {
  color: #fff;
  background: var(--olive);
}

/* Let the message paper dissolve into the closing photograph. */
.message-section {
  position: relative;
  z-index: 2;
  padding-bottom: 104px !important;
}
.thank-you-section {
  position: relative;
  z-index: 1;
  margin-top: -78px;
  padding-top: 0 !important;
  overflow: hidden;
  background: #e8dfcf !important;
}
.thank-you-section::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  right: -10px;
  left: -10px;
  height: 108px;
  background: linear-gradient(180deg,#e8dfcf 0%,rgba(232,223,207,.94) 30%,rgba(232,223,207,.48) 67%,transparent 100%);
  clip-path: polygon(0 0,100% 0,100% 56%,84% 67%,66% 52%,49% 73%,30% 55%,14% 69%,0 57%);
  pointer-events: none;
}
.thank-you-photo-wrap {
  margin-top: -1px;
}
.thank-you-section::before { display: none; }
.thank-you-photo-wrap::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: -1px;
  right: 0;
  left: 0;
  height: 150px;
  background: linear-gradient(180deg,#e8dfcf 0%,rgba(232,223,207,.88) 18%,rgba(232,223,207,.45) 52%,transparent 100%);
  pointer-events: none;
}

@media (max-width: 760px) {
  .quick-dock-language {
    width: 58px;
    flex: 0 0 58px;
    box-shadow: none;
  }
  .quick-dock-language .lang-button { padding-block: 8px; }
}

@media (max-width: 560px) {
  .formal-couple > span:first-child { left: -60px; }
  .formal-couple > span:last-child { left: 60px; }
  .details-section { padding-bottom: 18px !important; }
  .gallery-section { padding-top: 58px !important; }
  .gallery-section::before { height: 36px; }
  .message-section { padding-bottom: 92px !important; }
  .thank-you-section { margin-top: -68px; padding-top: 0 !important; }
  .thank-you-section::before { top: -1px; height: 94px; }
}

/* Final invitation corrections: font-safe ornaments and organic section joins. */
.formal-couple > span:first-child { left: -60px; }
.formal-couple > span:last-child { left: 60px; }
.formal-couple small { margin: 15px 0; }

/* Avoid Unicode fallback artifacts by drawing the Love Story ornament in CSS. */
.story-closing-note::before {
  content: "";
  top: -5px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(184,143,55,.64);
  border-radius: 70% 0 70% 0;
  background: rgba(247,245,239,.72);
  box-shadow: 0 0 0 4px rgba(200,169,107,.07);
  transform: translateX(-50%) rotate(45deg);
}

/* Gallery is the only section whose title does not use the global heading rule. */
.gallery-heading::before,
.gallery-heading::after {
  content: none !important;
  display: none !important;
}

/* Keep old sticky-note ornaments out of the editorial wish-book pages. */
.wish-book-page-right .message-card,
.wish-book-turn-face .message-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.wish-book-page-right .message-card p::before,
.wish-book-turn-face .message-card p::before,
.wish-book-page-right .message-card::after,
.wish-book-turn-face .message-card::after {
  content: none !important;
  display: none !important;
}
.wish-book-page-right .message-card-footer span,
.wish-book-turn-face .message-card-footer span {
  color: #6d674f;
  font: 600 .72rem/1.35 "Cormorant Garamond",serif;
  overflow-wrap: anywhere;
}
.wish-book-turning,
.wish-book-turn-face {
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.wish-book-turn-back { transform: rotateY(180deg) translateZ(1px); }

/* The wish-paper recedes while the closing photograph enters on an irregular edge. */
.message-section {
  z-index: 1;
  padding-bottom: 130px !important;
}
.thank-you-section {
  z-index: 2;
  margin-top: -106px;
  overflow: visible;
  background: #e8dfcf !important;
}
.thank-you-photo-wrap {
  overflow: hidden;
  clip-path: polygon(0 7%,11% 4%,23% 6.5%,36% 3%,50% 6%,64% 2.5%,78% 6%,90% 3.5%,100% 6%,100% 100%,0 100%);
}
.thank-you-photo-wrap::before {
  height: 164px;
  background: linear-gradient(180deg,#e8dfcf 0%,rgba(232,223,207,.86) 20%,rgba(232,223,207,.38) 55%,transparent 100%);
}

@media (max-width: 560px) {
  .message-section { padding-bottom: 116px !important; }
  .thank-you-section { margin-top: -94px; }
  .thank-you-photo-wrap {
    clip-path: polygon(0 6%,13% 3.5%,27% 6%,41% 2.5%,56% 5.5%,70% 3%,84% 6%,100% 3.5%,100% 100%,0 100%);
  }
  .thank-you-photo-wrap::before { height: 132px; }
}

/* Admin batch media, timeline filters and three-lane task view. */
.admin-media-bulk-actions {
  display: flex;
  margin-top: 14px;
  padding: 10px 12px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(89,99,72,.14);
  border-radius: 9px;
  color: #596348;
  background: #f7f5ef;
  font: 700 .72rem/1.2 "Inter",sans-serif;
}
.admin-media-bulk-actions label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.admin-media-bulk-actions input { width: 17px; height: 17px; accent-color: #596348; }
.admin-media-bulk-actions > span { color: #7e8774; font-weight: 600; }
.admin-media-bulk-actions > button { margin-left: auto; }
.admin-media-card { position: relative; }
.admin-media-card.is-selected { border-color: rgba(89,99,72,.65); box-shadow: 0 0 0 2px rgba(89,99,72,.12),0 10px 28px rgba(45,54,37,.09); }
.admin-media-select {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(89,99,72,.28);
  border-radius: 7px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 10px rgba(38,46,32,.12);
  cursor: pointer;
}
.admin-media-select input { position: absolute; opacity: 0; }
.admin-media-select span { color: transparent; font: 800 .85rem/1 "Inter",sans-serif; }
.admin-media-select:has(input:checked) { border-color: #596348; background: #596348; }
.admin-media-select:has(input:checked) span { color: #fff; }
.admin-media-trash-head { display: flex; margin: 10px 0; align-items: center; justify-content: space-between; gap: 14px; }
.admin-media-trash-head p { margin: 0; font-size: .75rem; }
.admin-media-trash-head button { flex: none; }

.task-timeline-filters button {
  --legend-color:#9ba58d;
  display: inline-flex;
  padding: 6px 8px;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #68705e;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.task-timeline-filters button::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--legend-color); }
.task-timeline-filters button:hover,
.task-timeline-filters button:focus-visible { border-color: color-mix(in srgb,var(--legend-color) 42%,white); background: color-mix(in srgb,var(--legend-color) 8%,white); }
.task-timeline-filters button.is-active { color:#fff; border-color:var(--legend-color); background:var(--legend-color); box-shadow:0 4px 10px color-mix(in srgb,var(--legend-color) 22%,transparent); }
.task-timeline-filters button.is-active::before { background:#fff; }
.task-timeline-date-events {
  max-height: 322px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9aa58a #eef1e9;
  scrollbar-width: thin;
}
button.task-timeline-event-card {
  width: 100%;
  color: inherit;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
button.task-timeline-event-card:hover:not(:disabled),
button.task-timeline-event-card:focus-visible {
  border-color: var(--event-color);
  box-shadow: 0 9px 20px rgba(45,54,37,.11);
  transform: translateY(-1px);
}
button.task-timeline-event-card:disabled { cursor: default; opacity: 1; }

@media (max-width: 620px) {
  .admin-media-bulk-actions { align-items: flex-start; flex-wrap: wrap; }
  .admin-media-bulk-actions > button { width: 100%; margin-left: 0; }
  .admin-media-trash-head { align-items: stretch; flex-direction: column; }
  .task-timeline-date-events { max-height: 298px; }
}
