@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Parisienne";
  src: url("assets/fonts/parisienne-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --script-font: "Parisienne", "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  --rose-50: #fff7f8;
  --rose-100: #ffe8ee;
  --rose-200: #f8cdd8;
  --rose-300: #edaebe;
  --rose-500: #c96f8a;
  --berry: #7d3148;
  --berry-deep: #5c2034;
  --ink: #2d2226;
  --muted: #765f66;
  --ivory: #fffdf8;
  --gold: #98652f;
  --champagne: #ead7bd;
  --line: rgba(125, 49, 72, 0.18);
  --shadow: 0 24px 80px rgba(125, 49, 72, 0.16);
  --shine: rgba(255, 255, 255, 0.74);
}

@property --closing-light-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --closing-light-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 42%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--rose-300) var(--rose-50);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--rose-50);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--rose-50);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose-300), var(--gold));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--rose-500), var(--gold));
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 232, 238, 0.78), transparent 28rem),
    radial-gradient(circle at 90% 34%, rgba(234, 215, 189, 0.28), transparent 22rem),
    linear-gradient(180deg, var(--rose-50), var(--ivory) 42%, #fff);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.locked {
  overflow: hidden;
}

body:not(.panel-page) {
  overflow-x: clip;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.panel-page .paper-grain {
  display: none;
}

.page-filigree {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 400ms;
}

.invitation-open .page-filigree {
  opacity: 1;
}

.page-filigree > span {
  position: absolute;
  top: 18vh;
  bottom: 12vh;
  left: max(16px, calc((100vw - 1280px) / 2));
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(152, 101, 47, 0.24) 22%, rgba(125, 49, 72, 0.12) 70%, transparent);
}

.page-filigree > span:last-child {
  right: max(16px, calc((100vw - 1280px) / 2));
  left: auto;
}

.page-filigree > span::before,
.page-filigree > span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(152, 101, 47, 0.48);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 0 0 5px rgba(234, 215, 189, 0.1);
  transform: translate(-50%, -50%) rotate(45deg);
}

.page-filigree > span::before {
  top: 28%;
}

.page-filigree > span::after {
  top: 72%;
  animation: filigreeGlow 5.6s ease-in-out infinite;
}

@keyframes filigreeGlow {
  0%, 100% { opacity: 0.42; box-shadow: 0 0 0 5px rgba(234, 215, 189, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 0 8px rgba(234, 215, 189, 0.18); }
}

@media (max-width: 1180px) {
  .page-filigree {
    display: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: white;
  background: var(--berry);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(92, 32, 52, 0.24);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(184, 138, 80, 0.52);
  outline-offset: 4px;
}

::selection {
  color: var(--berry-deep);
  background: var(--rose-200);
}

.panel-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 232, 238, 0.86), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(234, 215, 189, 0.34), transparent 22rem),
    linear-gradient(180deg, var(--rose-50), var(--ivory));
}

.panel-page.panel-dark {
  --rose-50: #21151a;
  --rose-100: #2a1a20;
  --rose-200: #3a232d;
  --rose-300: #8f5e70;
  --rose-500: #d79aad;
  --berry: #f1c7d3;
  --berry-deep: #fff0f4;
  --ink: #fff7f8;
  --muted: #d5b5bf;
  --ivory: #25181e;
  --gold: #e5c28d;
  --champagne: #d8b98c;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 49, 72, 0.36), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(184, 138, 80, 0.18), transparent 22rem),
    linear-gradient(180deg, #21151a, #2a1a20);
}

.panel-page.panel-dark .panel-hero,
.panel-page.panel-dark .panel-lock {
  background:
    linear-gradient(90deg, rgba(33, 21, 26, 0.94), rgba(58, 35, 45, 0.78)),
    url("assets/hero-bautizo-geraldine.jpg") center / cover;
}

.panel-page.panel-dark input,
.panel-page.panel-dark select,
.panel-page.panel-dark textarea {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.panel-page.panel-dark input::placeholder,
.panel-page.panel-dark textarea::placeholder {
  color: rgba(255, 247, 248, 0.54);
}

.panel-page.is-locked {
  overflow: hidden;
}

.panel-lock {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.76), transparent 20rem),
    linear-gradient(140deg, rgba(255, 247, 248, 0.92), rgba(255, 232, 238, 0.84)),
    url("assets/hero-bautizo-geraldine.jpg") center / cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.panel-lock[hidden] {
  display: none !important;
}

.panel-page.is-locked .panel-lock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lock-card {
  width: min(460px, calc(100vw - 40px));
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 248, 0.84)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(184, 138, 80, 0.08) 18px 19px);
  box-shadow: 0 42px 120px rgba(125, 49, 72, 0.24);
  backdrop-filter: blur(18px);
}

.lock-card h2 {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.lock-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.local-security-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.lock-status {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(167, 54, 79, 0.2);
  border-radius: 12px;
  color: #8b2944 !important;
  background: rgba(255, 238, 242, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.lock-status:empty {
  display: none;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-field:focus-within {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(201, 111, 138, 0.14);
}

.password-field:has(input[aria-invalid="true"]) {
  border-color: #a7364f;
  box-shadow: 0 0 0 4px rgba(167, 54, 79, 0.12);
}

.password-field input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.password-field input:focus {
  box-shadow: none;
  transform: none;
}

.password-field button {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 14px;
  color: var(--berry);
  background: rgba(255, 247, 248, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
}

.panel-hero {
  min-height: 46svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, rgba(255, 247, 248, 0.95), rgba(255, 232, 238, 0.74)),
    url("assets/hero-bautizo-geraldine.jpg") center / cover;
  border-bottom: 1px solid var(--line);
}

.panel-hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  align-self: center;
  padding: 52px 0 76px;
}

.panel-hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: -54px;
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 38px;
}

.panel-stats article {
  min-height: 140px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 248, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.28), transparent 9rem);
  box-shadow: 0 22px 70px rgba(125, 49, 72, 0.12);
  backdrop-filter: blur(16px);
}

.panel-stats span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-stats strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
}

.activity-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 1.35fr);
  gap: 24px;
  padding-top: 18px;
}

.activity-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 58px rgba(125, 49, 72, 0.08);
}

.next-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.next-action {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(139, 30, 63, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 36px rgba(125, 49, 72, 0.07);
}

.next-action strong {
  color: var(--berry);
}

.next-action span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.5;
}

.next-action:hover {
  border-color: rgba(139, 30, 63, 0.28);
  transform: translateY(-1px);
}

.next-action.is-done {
  background: rgba(248, 252, 246, 0.78);
}

.activity-list p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 248, 0.58);
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 6px rgba(201, 111, 138, 0.12);
}

.activity-item strong {
  color: var(--berry);
}

.activity-item span,
.activity-item time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-500), var(--gold), var(--berry));
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(184, 138, 80, 0.34);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  animation: progressShimmer 5s linear infinite;
}

@keyframes progressShimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

.celebration-canvas {
  position: fixed;
  inset: 0;
  z-index: 25;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  min-width: min(360px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: white;
  background: rgba(92, 32, 52, 0.88);
  box-shadow: 0 26px 80px rgba(92, 32, 52, 0.32);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font-weight: 800;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

.toast::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(234, 215, 189, 0.46);
  border-radius: 50%;
  color: var(--champagne);
  font-size: 0.72rem;
}

.toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--champagne), var(--rose-300));
  transform: scaleX(0);
  transform-origin: left;
}

.toast[data-tone="error"] {
  background: rgba(117, 30, 53, 0.94);
}

.toast[data-tone="error"]::before {
  content: "!";
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-visible::after {
  animation: toastProgress 2.4s linear both;
}

.connection-status {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 49;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  background: rgba(92, 32, 52, 0.92);
  box-shadow: 0 12px 34px rgba(45, 20, 30, 0.2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.connection-status[hidden] {
  display: none;
}

.connection-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(234, 215, 189, 0.12);
  animation: offlinePulse 2.4s ease-in-out infinite;
}

.update-notice {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top, 0px)) + 44px);
  left: 50%;
  z-index: 48;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(430px, calc(100% - 24px));
  padding: 12px 13px 12px 16px;
  border: 1px solid rgba(184, 138, 80, 0.3);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 50px rgba(92, 32, 52, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  animation: updateNoticeIn 420ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.update-notice[hidden],
.locked .update-notice {
  display: none;
}

.update-notice div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.update-notice small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.update-notice strong {
  overflow: hidden;
  color: var(--berry);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-notice button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--berry);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

@keyframes updateNoticeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}

@keyframes offlinePulse {
  50% {
    opacity: 0.45;
    transform: scale(0.78);
  }
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.welcome-gate {
  --gate-pointer-x: 20%;
  --gate-pointer-y: 78%;
  --gate-ambient-x: 0px;
  --gate-ambient-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: safe center;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.72), transparent 20rem),
    linear-gradient(140deg, rgba(255, 247, 248, 0.9), rgba(255, 232, 238, 0.8)),
    url("assets/hero-bautizo-geraldine.jpg") center / cover;
  clip-path: circle(150% at 50% 50%);
  transition:
    opacity 900ms ease,
    visibility 900ms ease,
    transform 900ms ease,
    clip-path 920ms cubic-bezier(0.76, 0, 0.24, 1);
}

.welcome-gate::before,
.welcome-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-gate::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.3) 48%, transparent 56%),
    radial-gradient(circle at var(--gate-pointer-x) var(--gate-pointer-y), rgba(125, 49, 72, 0.105), transparent 19rem);
  mix-blend-mode: screen;
  animation: gateGlow 7s ease-in-out infinite alternate;
}

.welcome-gate::after {
  background:
    linear-gradient(90deg, rgba(255, 247, 248, 0.72), transparent 20%, transparent 80%, rgba(255, 247, 248, 0.72)),
    linear-gradient(180deg, rgba(255, 247, 248, 0.48), transparent 34%, rgba(255, 232, 238, 0.62));
}

.welcome-gate.is-opening {
  transform: scale(1.018);
  clip-path: circle(0% at 50% 52%);
}

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

.gate-ambient {
  position: absolute;
  inset: -24px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(var(--gate-ambient-x), var(--gate-ambient-y), 0);
  transition: transform 240ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.gate-ambient::before,
.gate-ambient::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(152, 101, 47, 0.13);
  border-right-color: transparent;
  border-bottom-color: rgba(201, 111, 138, 0.08);
  border-radius: 46% 54% 50% 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: gateOrbit 24s linear infinite;
}

.gate-ambient::after {
  width: min(860px, 84vw);
  border-color: rgba(201, 111, 138, 0.09) transparent rgba(152, 101, 47, 0.1) rgba(152, 101, 47, 0.08);
  border-radius: 53% 47% 45% 55%;
  animation-direction: reverse;
  animation-duration: 32s;
}

@keyframes gateOrbit {
  to { transform: translate(-50%, -50%) rotate(352deg); }
}

.gate-ambient span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  filter: drop-shadow(0 0 8px rgba(184, 138, 80, 0.48));
  animation: sparkleDrift 8s ease-in-out infinite;
}

.gate-ambient span::before,
.gate-ambient span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: rgba(184, 138, 80, 0.62);
  transform: translate(-50%, -50%);
}

.gate-ambient span::before { width: 1px; height: 10px; }
.gate-ambient span::after { width: 10px; height: 1px; }

.gate-ambient span:nth-child(1) {
  left: 31%;
  top: 31%;
}

.gate-ambient span:nth-child(2) {
  left: 63%;
  top: 65%;
  animation-delay: 1.8s;
  transform: scale(0.72);
}

.gate-ambient span:nth-child(3) {
  left: 72%;
  top: 26%;
  animation-delay: 3.2s;
  transform: scale(0.55);
}

.gate-ambient span:nth-child(4) {
  left: 22%;
  top: 68%;
  animation-delay: 4.5s;
  transform: scale(0.68);
}

.gate-ambient span:nth-child(5) {
  left: 81%;
  top: 48%;
  animation-delay: 2.6s;
  transform: scale(0.45);
}

.gate-card {
  --gate-tilt-x: 0deg;
  --gate-tilt-y: 0deg;
  --gate-light-x: 50%;
  --gate-light-y: 35%;
  width: min(520px, calc(100vw - 40px));
  max-width: 520px;
  min-width: 0;
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  padding: 38px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--gate-light-x) var(--gate-light-y), rgba(255, 255, 255, 0.76), transparent 12rem),
    linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 248, 0.82)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(184, 138, 80, 0.08) 18px 19px);
  box-shadow:
    0 42px 120px rgba(125, 49, 72, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  animation: gateArrive 1100ms cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-fill-mode: backwards;
  transform: perspective(1200px) rotateX(var(--gate-tilt-x)) rotateY(var(--gate-tilt-y));
  transform-style: preserve-3d;
  transition: transform 300ms ease-out, box-shadow 360ms ease;
}

.gate-card::before,
.gate-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(184, 138, 80, 0.23);
  border-radius: 6px;
  pointer-events: none;
}

.gate-card::after {
  inset: 0;
  border: 0;
  background: linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.52) 45%, transparent 58%);
  opacity: 0.65;
  transform: translateX(-120%);
  animation: cardSheen 5.8s ease-in-out 1s infinite;
}

.gate-corners {
  position: absolute;
  inset: 28px;
  z-index: 1;
  pointer-events: none;
}

.gate-corners i {
  position: absolute;
  width: 34px;
  height: 34px;
  color: rgba(184, 138, 80, 0.48);
  border-color: currentColor;
}

.gate-corners i::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.gate-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 12px 0 0;
}

.gate-corners i:nth-child(1)::after { top: -3px; left: 16px; }

.gate-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
  border-radius: 0 12px 0 0;
}

.gate-corners i:nth-child(2)::after { top: -3px; right: 16px; }

.gate-corners i:nth-child(3) {
  bottom: 0;
  right: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 12px;
}

.gate-corners i:nth-child(3)::after { right: 16px; bottom: -3px; }

.gate-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
  border-radius: 0 0 0 12px;
}

.gate-corners i:nth-child(4)::after { bottom: -3px; left: 16px; }

.welcome-gate.is-opening .gate-card {
  animation: envelopeOpen 850ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.gate-card > .gate-photo,
.gate-card > .eyebrow,
.gate-card > h2,
.gate-card > .gate-cross,
.gate-card > p:not(.eyebrow),
.gate-card > .gate-date,
.gate-card > .gate-button {
  animation: gateContentReveal 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.gate-card > .gate-photo { animation-delay: 220ms; }
.gate-card > .eyebrow { animation-delay: 340ms; }
.gate-card > h2 { animation-delay: 440ms; }
.gate-card > .gate-cross { animation-delay: 520ms; }
.gate-card > p:not(.eyebrow) { animation-delay: 600ms; }
.gate-card > .gate-date { animation-delay: 720ms; }
.gate-card > .gate-button { animation-delay: 840ms; }

.gate-corners {
  animation: gateCornersReveal 1.2s ease 520ms both;
}

.gate-photo {
  width: 104px;
  height: 104px;
  position: relative;
  overflow: visible;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow:
    0 18px 44px rgba(125, 49, 72, 0.22),
    0 0 0 10px rgba(201, 111, 138, 0.1);
  isolation: isolate;
  transition: transform 500ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 500ms ease;
}

.gate-photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border: 1px solid rgba(184, 138, 80, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(201, 111, 138, 0.12);
  animation: gatePhotoHalo 4.8s ease-in-out infinite;
}

.gate-card:hover .gate-photo {
  transform: translateY(-3px) scale(1.025);
  box-shadow:
    0 24px 54px rgba(125, 49, 72, 0.24),
    0 0 0 10px rgba(201, 111, 138, 0.12);
}

@keyframes gatePhotoHalo {
  50% { transform: scale(1.06); opacity: 0.58; }
}

.gate-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.38), transparent 34% 66%, rgba(255, 244, 226, 0.12)),
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.46), transparent 22%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -10px 22px rgba(125, 49, 72, 0.07);
  opacity: 0.72;
  animation: gatePhotoGleam 6.5s ease-in-out 1.2s infinite alternate;
}

@keyframes gatePhotoGleam {
  from { opacity: 0.52; filter: brightness(0.98); }
  to { opacity: 0.82; filter: brightness(1.06); }
}

.gate-photo img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 74%;
}

img.photo-reveal:not(.is-photo-ready) {
  opacity: 0.28;
  filter: blur(12px) saturate(0.78);
}

img.photo-reveal {
  transition: opacity 720ms ease, filter 900ms ease;
}

img.photo-reveal.is-photo-ready {
  opacity: 1;
}

.gate-card p:not(.eyebrow) {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gate-card > .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gate-card > .eyebrow::before,
.gate-card > .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 80, 0.7));
}

.gate-card > .eyebrow::after {
  transform: scaleX(-1);
}

.gate-card h2 .gate-title-event,
.gate-card h2 .gate-title-name {
  display: block;
}

.gate-title-event {
  font-size: 0.84em;
  letter-spacing: -0.025em;
}

.gate-title-name {
  margin-top: -0.08em;
  font-size: 1.08em;
  color: var(--wine);
  background: linear-gradient(105deg, #6f263e 10%, #9f4b68 42%, #b27662 52%, #8c3655 62%, #6f263e 90%);
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 18px rgba(125, 49, 72, 0.12));
  font-kerning: normal;
  animation: gateNameInk 7s ease-in-out 1.4s infinite alternate;
}

.gate-cross {
  width: min(150px, 42%);
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: rgba(184, 138, 80, 0.8);
  margin-block: -7px;
}

.gate-cross::before,
.gate-cross::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, currentColor);
}

.gate-cross::after {
  transform: scaleX(-1);
}

.gate-cross i {
  width: 2px;
  height: 15px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 3px 9px rgba(152, 101, 47, 0.24);
}

.gate-cross i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: -4px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.gate-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid rgba(152, 101, 47, 0.2);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.gate-date-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.gate-date-copy small {
  color: var(--wine);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gate-date-copy strong {
  font: inherit;
  letter-spacing: inherit;
}

.gate-date::before,
.gate-date::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.gate-button {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
}

.gate-button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: inherit;
  pointer-events: none;
  animation: gateButtonBreath 3.2s ease-in-out 1.8s infinite;
}

.welcome-gate.is-opening .gate-button::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.32));
  transform-origin: left center;
  animation: gateButtonOpen 650ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.welcome-gate.is-opening .gate-button {
  cursor: wait;
}

.gate-button > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gate-button > span > i {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 300ms ease;
}

.gate-button:hover > span > i,
.gate-button:focus-visible > span > i {
  transform: translateX(3px) rotate(45deg);
}

.gate-button::after,
.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-120%);
  transition: transform 650ms ease;
}

.gate-button:hover::after,
.button.primary:hover::after {
  transform: translateX(120%);
}

.gate-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.96);
  outline-offset: 4px;
  box-shadow:
    0 20px 46px rgba(92, 32, 52, 0.3),
    0 0 0 8px rgba(184, 138, 80, 0.3);
}

@media (min-width: 761px) {
  .gate-card {
    width: min(600px, calc(100vw - 48px));
    max-width: 600px;
    min-height: 520px;
    gap: 18px;
    padding: 48px 54px;
    border-radius: 28px;
    box-shadow:
      0 48px 150px rgba(125, 49, 72, 0.25),
      0 0 0 10px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  .gate-card::before {
    inset: 17px;
    border-radius: 18px;
  }

  .gate-corners {
    inset: 32px;
  }

  .gate-corners i {
    width: 42px;
    height: 42px;
  }

  .gate-photo {
    width: 124px;
    height: 124px;
    border-width: 6px;
    box-shadow:
      0 22px 54px rgba(125, 49, 72, 0.2),
      0 0 0 11px rgba(201, 111, 138, 0.09),
      0 0 0 12px rgba(184, 138, 80, 0.1);
  }

  .gate-card h2 {
    max-width: 500px;
    font-size: clamp(4rem, 5vw, 5.15rem);
    line-height: 0.94;
    text-wrap: balance;
  }

  .gate-card h2::after {
    content: none;
  }

  .gate-card p:not(.eyebrow) {
    max-width: 430px;
    font-size: 1.02rem;
  }

  .gate-date {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 0.7rem;
  }

  .gate-date-copy small {
    font-size: 0.55rem;
  }

  .gate-button {
    min-height: 56px;
    padding-inline: 28px;
    font-size: 0.98rem;
    box-shadow: 0 20px 46px rgba(92, 32, 52, 0.26), 0 0 0 5px rgba(234, 215, 189, 0.36);
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  .welcome-gate {
    padding-block: 16px;
  }

  .gate-card {
    min-height: 0;
    gap: 11px;
    padding: 30px 48px;
  }

  .gate-card::before {
    inset: 13px;
  }

  .gate-corners {
    inset: 25px;
  }

  .gate-photo {
    width: 96px;
    height: 96px;
  }

  .gate-card h2 {
    font-size: clamp(3.4rem, 7.5vh, 4.25rem);
  }

  .gate-card p:not(.eyebrow) {
    max-width: 410px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .gate-date {
    min-height: 41px;
  }

  .gate-button {
    min-height: 50px;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .welcome-gate {
    padding-block: 12px;
  }

  .welcome-gate .gate-card {
    min-height: 0;
    gap: 10px;
    padding-block: 27px;
  }

  .welcome-gate .gate-photo {
    width: 82px;
    height: 82px;
    border-width: 4px;
  }

  .welcome-gate .gate-card h2 {
    font-size: clamp(2.45rem, 10.5vw, 3rem);
    line-height: 1;
  }

  .welcome-gate .gate-card p:not(.eyebrow) {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

.hero {
  min-height: 94svh;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 27% 46%, rgba(255, 255, 255, 0.8), transparent 22rem),
    linear-gradient(90deg, rgba(255, 247, 248, 0.94), rgba(255, 247, 248, 0.68) 48%, rgba(255, 247, 248, 0.18)),
    url("assets/hero-bautizo-geraldine.jpg");
  background-size: cover;
  background-position: center;
}

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petals span {
  position: absolute;
  top: -40px;
  width: 18px;
  height: 28px;
  border-radius: 60% 40% 70% 30%;
  background: rgba(237, 174, 190, 0.42);
  animation: fall 11s linear infinite;
}

.petals span:nth-child(2n) {
  background: rgba(234, 215, 189, 0.46);
  box-shadow: 0 0 12px rgba(184, 138, 80, 0.12);
}

.petals span:nth-child(3n) {
  border: 1px solid rgba(201, 111, 138, 0.18);
  background: rgba(255, 255, 255, 0.54);
  filter: blur(0.35px);
}

.petals span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.petals span:nth-child(2) {
  left: 28%;
  animation-delay: 2s;
  transform: scale(0.7);
}

.petals span:nth-child(3) {
  left: 52%;
  animation-delay: 4s;
}

.petals span:nth-child(4) {
  left: 73%;
  animation-delay: 1s;
  transform: scale(0.85);
}

.petals span:nth-child(5) {
  left: 90%;
  animation-delay: 6s;
  transform: scale(0.65);
}

.petals span:nth-child(6) {
  left: 42%;
  animation-delay: 7s;
  transform: scale(0.55);
}

.petals span:nth-child(7) {
  left: 82%;
  animation-delay: 8.4s;
  transform: scale(0.78);
}

.petals span:nth-child(8) {
  left: 17%;
  animation-delay: 5.4s;
  transform: scale(0.6);
}

@keyframes fall {
  0% {
    translate: 0 -40px;
    rotate: 0deg;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    translate: -80px 110vh;
    rotate: 260deg;
    opacity: 0;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--rose-50));
}

.ceremony-divider {
  position: relative;
  z-index: 4;
  width: min(420px, calc(100% - 48px));
  height: 0;
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
  align-items: center;
  gap: 13px;
  margin: 0 auto;
  pointer-events: none;
}

.ceremony-divider > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(152, 101, 47, 0.48));
}

.ceremony-divider > span:last-child {
  transform: scaleX(-1);
}

.ceremony-divider > div {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(152, 101, 47, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 34px rgba(92, 32, 52, 0.12), 0 0 0 6px rgba(255, 253, 248, 0.55);
  transform: translateY(-50%);
}

.ceremony-divider svg {
  width: 25px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 5px rgba(152, 101, 47, 0.2));
  animation: dividerBlessing 4.8s ease-in-out infinite;
}

@keyframes dividerBlessing {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-memory {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 108px;
  z-index: 2;
  width: min(270px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(125, 49, 72, 0.14);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 24px 80px rgba(125, 49, 72, 0.16);
  backdrop-filter: blur(18px);
}

.hero-memory::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  z-index: 3;
  width: 52px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(90deg, rgba(234, 215, 189, 0.66), rgba(255, 247, 248, 0.72));
  box-shadow: 0 5px 14px rgba(125, 49, 72, 0.08);
  transform: rotate(-4deg);
  backdrop-filter: blur(6px);
}

.hero-memory::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 138, 80, 0.13);
  border-radius: 14px;
  pointer-events: none;
}

.hero-memory img {
  width: 74px;
  height: 86px;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(125, 49, 72, 0.15);
  transform: rotate(-2deg);
  transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1), filter 320ms ease;
}

.hero-memory:hover img {
  filter: saturate(1.04) brightness(1.02);
  transform: rotate(0) scale(1.035);
}

.invitation-open .hero-memory.is-visible {
  animation: memoryFloat 6.8s 1s ease-in-out infinite;
}

@keyframes memoryFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.45deg);
  }
}

.hero-memory span {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-memory strong {
  display: block;
  margin-top: 5px;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 1.6rem;
  line-height: 1;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 50%;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 8px 13px 7px;
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 253, 248, 0.58);
  box-shadow: 0 8px 28px rgba(92, 32, 52, 0.08);
  backdrop-filter: blur(12px);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.hero-scroll-cue svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scrollCueMove 2.2s ease-in-out infinite;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  color: var(--gold);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 12px 36px rgba(92, 32, 52, 0.12);
}

@keyframes scrollCueMove {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

.quick-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(125, 49, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 22px 70px rgba(125, 49, 72, 0.16);
  backdrop-filter: blur(18px);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.invitation-open.has-scrolled .quick-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.invitation-open.has-scrolled .quick-dock > * {
  animation: dockItemEnter 420ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

.invitation-open.has-scrolled .quick-dock > :nth-child(2) {
  animation-delay: 45ms;
}

.invitation-open.has-scrolled .quick-dock > :nth-child(3) {
  animation-delay: 90ms;
}

.invitation-open.has-scrolled .quick-dock > :nth-child(4) {
  animation-delay: 135ms;
}

@keyframes dockItemEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.quick-dock a,
.quick-dock button {
  width: 128px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.quick-dock svg {
  width: 20px;
  height: 20px;
  grid-column: 1;
  grid-row: 1 / 3;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-dock a:hover,
.quick-dock button:hover {
  transform: translateX(-3px);
  border-color: var(--line);
  background: white;
}

.quick-dock button.is-copied {
  border-color: rgba(40, 122, 75, 0.24);
  color: #216840;
  background: rgba(238, 249, 241, 0.94);
  box-shadow: 0 10px 28px rgba(40, 122, 75, 0.14);
}

.quick-dock button.is-copied svg {
  stroke: #287a4b;
  animation: copySuccessIcon 420ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes copySuccessIcon {
  from { opacity: 0; transform: scale(0.62) rotate(-12deg); }
}

.quick-dock > .is-active {
  border-color: rgba(92, 32, 52, 0.24);
  color: white;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15), transparent 68%),
    linear-gradient(145deg, var(--berry), var(--berry-deep));
  box-shadow: 0 12px 28px rgba(92, 32, 52, 0.2);
}

.quick-dock > .is-active svg {
  stroke: var(--champagne);
}

.quick-dock > :first-child svg {
  stroke: var(--champagne);
}

.quick-dock > :first-child span {
  color: var(--champagne);
}

.quick-dock > :first-child strong {
  color: white;
}

.quick-dock > :first-child:hover {
  border-color: rgba(234, 215, 189, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 68%),
    linear-gradient(145deg, #8d3c56, var(--berry-deep));
}

.quick-dock span {
  grid-column: 2;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-dock strong {
  grid-column: 2;
  color: var(--berry);
  font-size: 0.88rem;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-family: var(--script-font);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--berry);
  text-shadow: 0 12px 34px rgba(125, 49, 72, 0.12);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.navlinks a,
.sound-toggle {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-bottom: 1px solid transparent;
}

.navlinks a {
  position: relative;
}

.navlinks a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--rose-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
}

.navlinks a:hover::after,
.navlinks a.is-active::after {
  transform: scaleX(1);
}

.sound-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--berry);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.sound-toggle.is-on {
  background: var(--berry);
  color: white;
}

.navlinks a:hover {
  border-color: transparent;
  color: var(--berry);
}

.navlinks a.is-active {
  color: var(--berry);
  border-color: transparent;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  align-self: center;
  padding: 56px 0 120px;
}

.invitation-open .hero-content {
  animation: heroBloom 1100ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-kicker span,
.hero-kicker::after {
  width: 52px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-kicker::after {
  content: "";
  transform: scaleX(-1);
}

.hero-kicker .eyebrow {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(184, 138, 80, 0.3);
  border-radius: 999px;
  color: #9a5c25;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 10px 28px rgba(125, 49, 72, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-kicker .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

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

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

h1,
h2,
.intro-text,
.verse-section blockquote p {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1,
h2 {
  font-family: var(--script-font);
  font-weight: 400;
  color: var(--berry);
  line-height: 0.98;
}

.brand,
.hero-memory strong,
.signature-line strong,
.pass-card strong,
.pass-seal span {
  font-weight: 400;
}

h1 {
  position: relative;
  width: fit-content;
  max-width: 760px;
  margin: 0 0 0 -0.16em;
  padding-inline: 0.16em 0.1em;
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: 0;
  text-shadow: 0 20px 60px rgba(125, 49, 72, 0.14);
}

.hero-content h1::after {
  content: "";
  width: min(72%, 440px);
  height: 2px;
  display: block;
  margin: 15px auto 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--champagne) 18%, var(--gold) 50%, var(--champagne) 82%, transparent);
  box-shadow: 0 4px 14px rgba(152, 101, 47, 0.18);
  transform: scaleX(0);
  transform-origin: center;
}

.invitation-open .hero-content h1::after {
  animation: titleFlourish 1.15s 620ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes titleFlourish {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  72% {
    opacity: 1;
    transform: scaleX(1.04);
    box-shadow: 0 4px 14px rgba(152, 101, 47, 0.18);
  }
  100% {
    opacity: 0.88;
    transform: scaleX(1);
    box-shadow: 0 4px 20px rgba(152, 101, 47, 0.3);
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    color: transparent;
    background: linear-gradient(105deg, var(--berry-deep) 0%, var(--berry) 38%, #aa7640 50%, var(--berry) 62%, var(--berry-deep) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 18px 38px rgba(125, 49, 72, 0.12));
    animation: titleInk 10s ease-in-out infinite alternate;
  }

  h1.reveal.is-visible {
    filter: drop-shadow(0 18px 38px rgba(125, 49, 72, 0.12));
  }
}

@keyframes titleInk {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.hero-copy {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.personal-note {
  width: fit-content;
  max-width: 620px;
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(125, 49, 72, 0.09);
  backdrop-filter: blur(12px);
  animation: personalNoteEnter 720ms cubic-bezier(0.19, 1, 0.22, 1) 380ms both;
}

.personal-note::before {
  content: "✦";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.76rem;
}

.personal-note:empty {
  display: none;
}

@keyframes personalNoteEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--berry);
}

.hero-date {
  position: relative;
  width: fit-content;
  max-width: min(100%, 560px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 9px 18px;
  border: 1px solid rgba(152, 101, 47, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.72), rgba(255, 255, 255, 0.94) 50%, rgba(255, 253, 247, 0.72));
  box-shadow:
    0 12px 30px rgba(70, 48, 28, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.hero-date::before,
.hero-date::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(152, 101, 47, 0.07);
}

.hero-date::after {
  opacity: 0.62;
}

.hero-date time {
  min-width: 0;
  text-wrap: balance;
}

.hero-actions,
.location {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.closing-section {
  --closing-light-x: 50%;
  --closing-light-y: 42%;
  width: min(1120px, calc(100% - 32px));
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 92px;
  padding-inline: clamp(24px, 8vw, 110px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 32px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at var(--closing-light-x) var(--closing-light-y), rgba(234, 215, 189, 0.2), transparent 16rem),
    linear-gradient(135deg, rgba(92, 32, 52, 0.94), rgba(125, 49, 72, 0.82)),
    url("assets/hero-bautizo-geraldine.jpg") center / cover;
  box-shadow: 0 38px 120px rgba(92, 32, 52, 0.24);
  transition: --closing-light-x 160ms ease-out, --closing-light-y 160ms ease-out;
}

.closing-section::before,
.closing-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.closing-section::before {
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(234, 215, 189, 0.34);
  border-radius: 22px;
}

.closing-section::after {
  width: 420px;
  height: 420px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255, 255, 255, 0.025), 0 0 0 124px rgba(255, 255, 255, 0.018);
}

.closing-section .eyebrow {
  color: var(--champagne);
}

.closing-section h2 {
  max-width: 780px;
  color: white;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(45, 20, 30, 0.28);
}

.closing-section > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  text-wrap: pretty;
}

.closing-monogram {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 215, 189, 0.56);
  border-radius: 50%;
  color: var(--champagne);
  font-family: var(--script-font);
  font-size: 3.6rem;
  line-height: 1;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.035);
}

.closing-date {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(234, 215, 189, 0.28);
  border-radius: 999px;
  color: var(--champagne);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  backdrop-filter: blur(10px);
}

.closing-date::before,
.closing-date::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.closing-section.is-visible .closing-monogram {
  animation: closingGlow 4.6s ease-in-out infinite;
}

.closing-section.is-visible::after {
  animation: closingHalo 14s ease-in-out infinite;
}

@keyframes closingHalo {
  0%,
  100% {
    opacity: 0.72;
    transform: rotate(-5deg) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: rotate(8deg) scale(1.08);
  }
}

@keyframes closingGlow {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.035), 0 0 0 rgba(234, 215, 189, 0);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.055), 0 0 36px rgba(234, 215, 189, 0.18);
  }
}

.hero-actions {
  margin-top: 32px;
}

.hero-actions .button {
  gap: 9px;
}

.hero-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#shareInvite[aria-busy="true"] svg {
  animation: sharePreparing 900ms ease-in-out infinite;
}

#shareInvite:disabled {
  cursor: wait;
  opacity: 0.72;
}

@keyframes sharePreparing {
  50% {
    opacity: 0.4;
    transform: scale(0.86);
  }
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  touch-action: manipulation;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:active {
  transform: translateY(0) scale(0.975);
  transition-duration: 90ms;
}

.quick-dock a,
.quick-dock button,
.gallery-item,
.feature-frame {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.quick-dock a:active,
.quick-dock button:active {
  transform: scale(0.96);
}

.button.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    var(--berry);
  color: white;
  box-shadow: 0 18px 40px rgba(125, 49, 72, 0.22);
}

.button.ghost,
.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--berry);
  border-color: var(--line);
}

.button.danger {
  color: #8b1e3f;
  border-color: rgba(139, 30, 63, 0.24);
}

.countdown-band {
  width: min(980px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 253, 248, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(184, 138, 80, 0.06) 22px 23px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.countdown-label {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(184, 138, 80, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 30px rgba(125, 49, 72, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.event-is-live .countdown-label {
  color: white;
  border-color: rgba(125, 49, 72, 0.32);
  background: var(--berry);
  animation: liveLabelGlow 2.8s ease-in-out infinite;
}

.event-has-ended .countdown-label {
  white-space: nowrap;
}

@keyframes liveLabelGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(125, 49, 72, 0.14);
  }
  50% {
    box-shadow: 0 10px 36px rgba(125, 49, 72, 0.3), 0 0 0 6px rgba(201, 111, 138, 0.08);
  }
}

.countdown-band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-110%);
  animation: countdownSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.countdown-item {
  position: relative;
  min-height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding-top: 18px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.countdown-item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 215, 189, 0.3), rgba(201, 111, 138, 0.07) 46%, transparent 72%);
  opacity: 0.72;
  transform: translateX(-50%) scale(0.88);
  transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1), opacity 320ms ease;
  pointer-events: none;
}

.countdown-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1.16);
}

.countdown-item:last-child {
  border-right: 0;
}

.countdown-item strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  transform-origin: center bottom;
}

.countdown-item strong::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: -7px;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 80, 0.74), transparent);
}

.countdown-item strong.is-ticking {
  animation: numberTick 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.countdown-item span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(5px);
  transition: opacity 800ms ease, transform 800ms ease, filter 800ms ease;
}

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

.intro-section {
  position: relative;
  isolation: isolate;
  max-width: 900px;
  text-align: center;
  padding: 54px clamp(70px, 10vw, 116px) 50px;
  border: 1px solid rgba(152, 101, 47, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 215, 189, 0.2), transparent 18rem),
    rgba(255, 253, 248, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.intro-sprig {
  position: absolute;
  top: 50%;
  z-index: -1;
  width: 76px;
  height: 150px;
  fill: none;
  stroke: rgba(152, 101, 47, 0.34);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.intro-sprig-left {
  left: 16px;
}

.intro-sprig-right {
  right: 16px;
  transform: translateY(-50%) scaleX(-1);
}

.blessing-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--shine);
  box-shadow: 0 18px 44px rgba(125, 49, 72, 0.12);
  animation: blessingFloat 4.8s ease-in-out infinite;
}

.blessing-mark::before,
.blessing-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(184, 138, 80, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.blessing-mark::before {
  inset: -8px;
}

.blessing-mark::after {
  inset: -16px;
  opacity: 0.55;
  animation: haloPulse 4.8s ease-in-out infinite;
}

.blessing-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.62;
  }
}

.intro-text {
  margin: 0;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.signature-line {
  width: min(520px, 90%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}

.signature-line span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 80, 0.56), transparent);
}

.signature-line strong {
  font-family: var(--script-font);
  font-size: 1.8rem;
  color: var(--berry);
}

.family-section {
  position: relative;
  padding-top: 82px;
  padding-bottom: 82px;
  text-align: center;
}

.family-heading {
  width: min(680px, 100%);
  margin: 0 auto 38px;
}

.family-heading h2 {
  margin: 4px 0 14px;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.family-heading > p:last-child {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.family-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.family-card {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px 32px;
  border: 1px solid rgba(184, 138, 80, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 15rem),
    linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(255, 232, 238, 0.4));
  box-shadow: 0 26px 80px rgba(125, 49, 72, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 360ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 360ms ease;
}

.family-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(184, 138, 80, 0.13);
  border-radius: 19px;
}

.family-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 95px rgba(125, 49, 72, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.family-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(184, 138, 80, 0.22);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(125, 49, 72, 0.08);
}

.family-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.family-card > p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.family-card h3 {
  max-width: 470px;
  margin: 0;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.family-ampersand {
  margin: 3px 0;
  color: var(--gold);
  font-family: var(--script-font);
  font-size: 1.6rem;
}

.family-blessing {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .family-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .family-heading {
    margin-bottom: 28px;
  }

  .family-grid {
    grid-template-columns: 1fr;
  }

  .family-card {
    min-height: 280px;
    padding: 36px 22px;
  }

  .family-card h3 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }
}

.verse-section {
  width: min(760px, calc(100% - 32px));
  padding-top: 34px;
  padding-bottom: 92px;
  text-align: center;
}

.verse-section blockquote {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 18px 0 0;
  padding: clamp(34px, 7vw, 58px) clamp(22px, 6vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.86), transparent 16rem),
    linear-gradient(145deg, rgba(255, 253, 248, 0.56), rgba(255, 232, 238, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 24px 80px rgba(125, 49, 72, 0.06);
}

.verse-section blockquote::before {
  content: "“";
  position: absolute;
  top: -42px;
  left: 18px;
  z-index: -1;
  color: rgba(184, 138, 80, 0.13);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10rem, 28vw, 16rem);
  line-height: 1;
  pointer-events: none;
  transform: rotate(-7deg);
}

.verse-section blockquote::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 24px;
  left: 12%;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 80, 0.2), transparent);
}

.verse-section blockquote p {
  position: relative;
  margin: 4px 0 20px;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 400;
  line-height: 1.14;
}

.verse-section blockquote p::after {
  content: "";
  width: min(250px, 62%);
  height: 7px;
  display: block;
  margin: 14px auto -4px;
  border-bottom: 1px solid rgba(152, 101, 47, 0.5);
  border-radius: 50%;
  box-shadow: 0 5px 10px -8px rgba(152, 101, 47, 0.5);
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
}

.verse-section.is-visible blockquote p::after {
  animation: verseUnderline 1.1s 420ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.verse-section cite {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid rgba(184, 138, 80, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.64);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.verse-section.is-visible cite {
  animation: verseCitationEnter 620ms 760ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

@keyframes verseUnderline {
  to { transform: rotate(-1.2deg) scaleX(1); }
}

@keyframes verseCitationEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
}

.verse-section.is-visible blockquote::before {
  animation: verseQuoteArrive 900ms 180ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

@keyframes verseQuoteArrive {
  from {
    opacity: 0;
    transform: translate(-24px, 18px) rotate(-14deg) scale(0.8);
  }
}

.verse-ornament {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}

.verse-ornament span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 80, 0.48));
}

.verse-ornament span:last-child {
  background: linear-gradient(90deg, rgba(184, 138, 80, 0.48), transparent);
}

.verse-ornament b {
  font-size: 0.78rem;
  font-weight: 400;
}

.guest-pass {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 0.78fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guest-pass p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.pass-card {
  --pass-tilt-x: 0deg;
  --pass-tilt-y: 0deg;
  --pass-light-x: 50%;
  --pass-light-y: 20%;
  min-height: 260px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(125, 49, 72, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--pass-light-x) var(--pass-light-y), rgba(255, 255, 255, 0.82), transparent 10rem),
    repeating-linear-gradient(180deg, rgba(184, 138, 80, 0.34) 0 4px, transparent 4px 10px) calc(100% - 126px) 50% / 1px calc(100% - 48px) no-repeat,
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.38), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 232, 238, 0.72));
  box-shadow: 0 30px 90px rgba(125, 49, 72, 0.13);
}

.pass-card::before,
.pass-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rose-50);
  border: 1px solid var(--line);
  transform: translateY(-50%);
}

.pass-card::before {
  left: -16px;
}

.pass-card::after {
  right: -16px;
}

.pass-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pass-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(184, 138, 80, 0.07);
}

.pass-card strong {
  margin-top: 10px;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
}

.pass-card.has-long-name strong {
  max-width: calc(100% - 96px);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
}

.gate-card .eyebrow.has-long-name {
  max-width: 320px;
  letter-spacing: 0.11em;
  line-height: 1.55;
}

.pass-card p {
  max-width: 260px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.pass-code {
  position: absolute;
  left: 28px;
  bottom: 24px;
  padding: 6px 9px;
  border: 1px solid rgba(125, 49, 72, 0.12);
  border-radius: 999px;
  color: rgba(125, 49, 72, 0.66);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.pass-barcode {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 72px;
  display: grid;
  gap: 5px;
  opacity: 0.56;
  transform: translateZ(14px);
}

.pass-barcode i {
  height: 30px;
  display: block;
  background: repeating-linear-gradient(90deg, var(--berry) 0 1px, transparent 1px 3px, var(--berry) 3px 5px, transparent 5px 8px);
  -webkit-mask-image: linear-gradient(180deg, black, rgba(0, 0, 0, 0.72));
  mask-image: linear-gradient(180deg, black, rgba(0, 0, 0, 0.72));
}

.pass-barcode small {
  color: var(--berry);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-align: center;
}

.pass-seal {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 138, 80, 0.48);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 0 0 6px rgba(255, 253, 248, 0.9), inset 0 0 0 7px rgba(184, 138, 80, 0.2);
}

.pass-seal span {
  color: var(--gold);
  font-family: var(--script-font);
  font-size: 3.4rem;
  line-height: 1;
}

.guest-pass.is-visible .pass-seal {
  animation: passSealArrive 720ms 260ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

@keyframes passSealArrive {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-16deg) scale(0.82);
  }
}

.photo-story {
  display: grid;
  gap: 28px;
}

.photo-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: 42px;
}

.feature-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(125, 49, 72, 0.14);
  padding: 0;
  background: var(--rose-100);
  box-shadow: 0 34px 110px rgba(125, 49, 72, 0.18);
  cursor: zoom-in;
  font: inherit;
}

.feature-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  pointer-events: none;
}

.feature-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 56%, rgba(45, 34, 38, 0.18)),
    radial-gradient(circle at 50% 24%, transparent 30%, rgba(255, 247, 248, 0.18));
  pointer-events: none;
}

.feature-frame img,
.gallery-item img,
.lightbox img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-frame img {
  object-position: center;
  transform: scale(1.018);
  animation: photoBreath 9s ease-in-out infinite alternate;
  transition: filter 420ms ease;
}

.feature-frame:hover img,
.feature-frame:focus-visible img {
  filter: saturate(1.04) brightness(1.02);
}

.photo-hint {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: white;
  background: rgba(92, 32, 52, 0.58);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.photo-hint svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms ease;
}

.feature-frame:hover .photo-hint svg,
.feature-frame:focus-visible .photo-hint svg {
  transform: scale(1.12) rotate(-5deg);
}

.feature-copy {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 248, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.26), transparent 12rem);
  box-shadow: 0 24px 80px rgba(125, 49, 72, 0.1);
}

.feature-copy::before {
  content: "G";
  position: absolute;
  right: 22px;
  top: 12px;
  color: rgba(125, 49, 72, 0.07);
  font-family: var(--script-font);
  font-size: 9rem;
  line-height: 1;
  pointer-events: none;
}

.feature-copy::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 54px;
  height: 54px;
  border-top: 1px solid rgba(184, 138, 80, 0.42);
  border-right: 1px solid rgba(184, 138, 80, 0.42);
  border-radius: 0 12px 0 0;
  pointer-events: none;
}

@media (min-width: 761px) {
  .photo-feature {
    position: relative;
    grid-template-columns: minmax(380px, 1.08fr) minmax(320px, 0.82fr);
    gap: 0;
    padding-block: 28px;
    isolation: isolate;
  }

  .photo-feature::before {
    content: "";
    position: absolute;
    left: -7%;
    bottom: 1%;
    z-index: -1;
    width: 58%;
    height: 68%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 111, 138, 0.18), rgba(234, 215, 189, 0.08) 45%, transparent 72%);
    filter: blur(14px);
    pointer-events: none;
  }

  .feature-frame {
    width: calc(100% - 18px);
  }

  .feature-copy {
    z-index: 4;
    margin-left: -58px;
    padding: clamp(34px, 4vw, 54px);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 248, 0.82)),
      radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.34), transparent 13rem);
    box-shadow: 0 34px 100px rgba(92, 32, 52, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
  }

  .photo-story.is-visible .feature-copy {
    animation: featureCopyEnter 760ms 140ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }
}

@keyframes featureCopyEnter {
  from {
    opacity: 0;
    transform: translateX(34px) scale(0.975);
  }
}

.feature-copy p:not(.eyebrow) {
  padding-bottom: 24px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(152, 101, 47, 0.48), rgba(234, 215, 189, 0.22), transparent) left bottom / 72% 1px no-repeat;
  line-height: 1.8;
}

.feature-copy p:not(.eyebrow)::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--gold);
  font-family: var(--script-font);
  font-size: 3.35rem;
  line-height: 0.76;
  text-shadow: 0 8px 20px rgba(152, 101, 47, 0.12);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  background: var(--rose-100);
  box-shadow: 0 16px 58px rgba(125, 49, 72, 0.11);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item::after {
  content: "Ver foto";
  position: absolute;
  inset: auto 12px 12px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: rgba(92, 32, 52, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(10px);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.08) brightness(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 74px 20px 34px;
  background:
    radial-gradient(circle at 50% 42%, rgba(125, 49, 72, 0.32), transparent 30rem),
    linear-gradient(rgba(35, 20, 26, 0.9), rgba(45, 25, 33, 0.94)),
    url("assets/hero-bautizo-geraldine.jpg") center / cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
  backdrop-filter: blur(18px);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox.is-open img {
  animation: lightboxEnter 620ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.lightbox.used-view-transition.is-open img {
  animation: none;
}

.lightbox.is-closing {
  pointer-events: none;
}

::view-transition-group(gallery-photo) {
  z-index: 50;
  animation-duration: 620ms;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

::view-transition-old(gallery-photo),
::view-transition-new(gallery-photo) {
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  border-radius: 24px;
}

.lightbox img {
  width: min(920px, 94vw);
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(234, 215, 189, 0.46);
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.44), 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.lightbox p {
  width: fit-content;
  max-width: min(620px, calc(100vw - 32px));
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 7px 18px;
  border: 1px solid rgba(234, 215, 189, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--script-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox p::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid var(--champagne);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(234, 215, 189, 0.06);
}

.lightbox.is-open p {
  animation: lightboxCaptionEnter 560ms 220ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

@keyframes lightboxCaptionEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox.single-photo .lightbox-nav {
  display: none;
}

@keyframes lightboxEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.965);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

/* Mensaje de bienvenida compacto: evita un bloque vacío entre fotografía y detalles. */
.details {
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(42px, 6vw, 68px);
}

.details .section-heading {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.details .section-heading::after {
  margin-top: 16px;
}

.section-heading::after {
  content: "";
  width: 132px;
  height: 1px;
  display: block;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 80, 0.42) 24%, var(--gold) 50%, rgba(184, 138, 80, 0.42) 76%, transparent);
  transform: scaleX(0.24);
  transform-origin: center;
  opacity: 0;
  transition: transform 820ms 180ms cubic-bezier(0.19, 1, 0.22, 1), opacity 420ms 180ms ease;
}

.section-heading::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 80, 0.1);
  opacity: 0;
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform 620ms 520ms cubic-bezier(0.19, 1, 0.22, 1), opacity 280ms 520ms ease;
}

.reveal.is-visible .section-heading::after {
  opacity: 1;
  transform: scaleX(1);
}

.reveal.is-visible .section-heading::before {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) scale(1);
}

.section-heading p:not(.eyebrow),
.location p,
.detail-card p {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: detail-card;
}

.detail-card {
  --card-light-x: 50%;
  --card-light-y: 20%;
  counter-increment: detail-card;
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--card-light-x) var(--card-light-y), rgba(255, 255, 255, 0.96), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 248, 0.72)),
    radial-gradient(circle at 88% 0%, rgba(234, 215, 189, 0.22), transparent 9rem);
  box-shadow: 0 16px 60px rgba(125, 49, 72, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.detail-card::before {
  content: "0" counter(detail-card);
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 0;
  color: rgba(125, 49, 72, 0.065);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.detail-card > * {
  position: relative;
  z-index: 2;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(125, 49, 72, 0.13);
}

.detail-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--berry);
  font-size: 0.88rem;
  font-weight: 900;
  border-bottom: 1px solid var(--rose-300);
  transition: color 200ms ease, border-color 200ms ease;
}

.detail-card a::after {
  content: "→";
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.detail-card a:hover,
.detail-card a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.detail-card a:hover::after,
.detail-card a:focus-visible::after {
  transform: translateX(4px);
}

.detail-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
  transition: color 280ms ease, background 280ms ease, transform 360ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 280ms ease;
}

.detail-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-card:hover .detail-icon {
  color: white;
  background: linear-gradient(145deg, var(--gold), #caa66f);
  box-shadow: 0 12px 28px rgba(184, 138, 80, 0.22);
  transform: translateY(-3px) rotate(-4deg);
}

.split,
.location,
.host-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.timeline {
  counter-reset: timeline-step;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  isolation: isolate;
  counter-increment: timeline-step;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li::after {
  content: "0" counter(timeline-step);
  position: absolute;
  top: 50%;
  right: 4px;
  z-index: -1;
  color: rgba(125, 49, 72, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.timeline li::before {
  content: "";
  width: 11px;
  height: 11px;
  align-self: center;
  grid-column: 1;
  justify-self: end;
  margin-right: -16px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 8px rgba(201, 111, 138, 0.12);
}

.timeline time {
  grid-column: 1;
  grid-row: 1;
  width: fit-content;
  min-width: 66px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 138, 80, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 8px 24px rgba(125, 49, 72, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.timeline span {
  grid-column: 2;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 20px 80px rgba(125, 49, 72, 0.08);
}

.no-table-assignments .experience-strip {
  grid-template-columns: repeat(2, 1fr);
}

.experience-strip article {
  --card-light-x: 50%;
  --card-light-y: 20%;
  position: relative;
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--card-light-x) var(--card-light-y), rgba(255, 255, 255, 0.92), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 248, 0.72));
  transition: transform 260ms cubic-bezier(0.19, 1, 0.22, 1), background 260ms ease, box-shadow 260ms ease;
}

.experience-strip article::before {
  content: none;
}

.experience-icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(184, 138, 80, 0.28);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 8px 22px rgba(125, 49, 72, 0.07);
  font-size: 0.66rem;
  transition: color 260ms ease, background 260ms ease, transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.experience-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experience-strip article::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 215, 189, 0.42), rgba(201, 111, 138, 0.08) 48%, transparent 70%);
  opacity: 0.55;
  transform: scale(0.78);
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.experience-strip article:hover {
  z-index: 1;
  transform: translateY(-4px);
  background:
    radial-gradient(circle at var(--card-light-x) var(--card-light-y), white, transparent 8rem),
    white;
  box-shadow: 0 18px 48px rgba(125, 49, 72, 0.1);
}

.experience-strip article:hover .experience-icon {
  color: white;
  background: var(--gold);
  transform: rotate(90deg) scale(1.06);
}

.experience-strip article:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.experience-strip strong {
  position: relative;
  z-index: 1;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 1.8rem;
}

.experience-strip article > span:not(.experience-icon) {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 700;
}

.form-section,
.table-section {
  width: 100%;
  padding-inline: max(16px, calc((100% - 820px) / 2));
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.76), transparent 18rem),
    linear-gradient(180deg, rgba(255, 232, 238, 0.72), rgba(255, 253, 248, 0.86));
}

.table-section {
  background: transparent;
}

.rsvp-form,
.lookup-form {
  display: grid;
  gap: 16px;
}

.reservation-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin: -8px 0 24px;
  padding: 22px 24px;
  border: 1px solid rgba(184, 138, 80, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(234, 215, 189, 0.34), transparent 10rem),
    rgba(255, 253, 248, 0.76);
  box-shadow: 0 18px 50px rgba(125, 49, 72, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reservation-note-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 138, 80, 0.26);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(125, 49, 72, 0.08);
}

.reservation-note-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.reservation-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
}

.reservation-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.reservation-contact {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.reservation-contact time {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reservation-contact a {
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.party-guidance {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
}

.party-size-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.party-size-field legend {
  margin-bottom: 10px;
  color: var(--berry);
  font-weight: 800;
}

.guest-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guest-count-grid > label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.guest-count-grid > label > span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-total {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .reservation-note {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 22px 20px;
    text-align: center;
  }

  .reservation-note strong {
    font-size: 1.65rem;
  }

  .guest-count-grid {
    gap: 10px;
  }

  .guest-count-grid > label > span:first-child {
    text-align: center;
  }
}

.saved-rsvp {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: -6px 0 20px;
  padding: 15px 16px;
  border: 1px solid rgba(184, 138, 80, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 38px rgba(125, 49, 72, 0.07);
}

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

.saved-rsvp-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--berry));
}

.saved-rsvp div {
  display: grid;
  gap: 2px;
}

.saved-rsvp small {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.saved-rsvp strong {
  color: var(--berry);
}

.saved-rsvp p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.saved-rsvp button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--berry);
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.form-actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.submit-rsvp {
  width: 100%;
  min-width: 224px;
  min-height: 54px;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 320ms ease, background 320ms ease;
}

.submit-rsvp-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  font-size: 0.72rem;
  transition: transform 320ms cubic-bezier(0.19, 1, 0.22, 1), background 260ms ease, box-shadow 260ms ease;
}

.rsvp-form.is-ready .submit-rsvp {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 62%),
    linear-gradient(135deg, var(--berry), var(--berry-deep));
  box-shadow: 0 22px 48px rgba(92, 32, 52, 0.28), 0 0 0 4px rgba(184, 138, 80, 0.06);
}

.rsvp-form.is-ready .submit-rsvp-icon {
  background: rgba(234, 215, 189, 0.18);
  box-shadow: 0 0 0 5px rgba(234, 215, 189, 0.07);
  transform: scale(1.08);
}

.submit-rsvp[aria-busy="true"] .submit-rsvp-icon {
  border-top-color: transparent;
  color: transparent;
  animation: submitSpin 700ms linear infinite;
}

.submit-rsvp:disabled {
  cursor: wait;
  opacity: 0.8;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--berry);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

select {
  appearance: none;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 248, 0.88));
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%,
    0 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  cursor: pointer;
}

select:required:invalid {
  color: var(--muted);
}

select:required:valid {
  color: var(--ink);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--berry) 50%),
    linear-gradient(135deg, var(--berry) 50%, transparent 50%),
    linear-gradient(90deg, rgba(234, 215, 189, 0.1), rgba(255, 255, 255, 0.94) 34%);
}

select:focus {
  background-position:
    calc(100% - 20px) 48%,
    calc(100% - 14px) 48%,
    0 0;
}

select option {
  color: var(--ink);
  background: var(--ivory);
}

@media (forced-colors: active) {
  .rsvp-form input:user-valid:not([type="number"]) {
    padding-right: 14px;
    background-image: none;
  }

  .paper-grain {
    display: none;
  }

  select {
    appearance: auto;
    padding-right: 14px;
    background-image: none;
  }
}

textarea {
  resize: vertical;
}

.message-counter {
  --message-progress: 0%;
  position: relative;
  justify-self: end;
  min-width: 74px;
  margin-top: -4px;
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: color 180ms ease, transform 180ms ease;
}

.message-counter::before,
.message-counter::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
}

.message-counter::before {
  width: 100%;
  background: rgba(125, 49, 72, 0.12);
}

.message-counter::after {
  width: var(--message-progress);
  background: linear-gradient(90deg, var(--champagne), var(--gold));
  box-shadow: 0 2px 8px rgba(152, 101, 47, 0.18);
  transition: width 240ms ease, background 180ms ease;
}

.message-counter.is-near-limit {
  color: var(--berry);
  transform: translateY(-1px);
}

.message-counter.is-near-limit::after {
  background: linear-gradient(90deg, var(--gold), var(--rose-500));
}

.draft-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  animation: draftStatusIn 220ms ease both;
}

.draft-status[hidden] {
  display: none;
}

.draft-status span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--gold);
  font-size: 0.6rem;
}

@keyframes draftStatusIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.party-stepper {
  display: grid;
  grid-template-columns: 52px minmax(72px, 1fr) 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.party-stepper:focus-within {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(201, 111, 138, 0.14);
}

.party-stepper input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  box-shadow: none;
  appearance: textfield;
}

.party-stepper input.is-changing {
  animation: partyNumberChange 320ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes partyNumberChange {
  0% { color: var(--gold); transform: scale(0.84); }
  62% { color: var(--berry); transform: scale(1.12); }
  100% { color: var(--ink); transform: scale(1); }
}

.party-stepper input::-webkit-inner-spin-button,
.party-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.party-stepper input:focus {
  box-shadow: none;
  transform: none;
}

.party-stepper button {
  border: 0;
  color: var(--berry);
  background: rgba(255, 247, 248, 0.8);
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  touch-action: manipulation;
  transition: color 160ms ease, background 160ms ease, transform 90ms ease;
}

.party-stepper button:first-child {
  border-right: 1px solid var(--line);
}

.party-stepper button:last-child {
  border-left: 1px solid var(--line);
}

.party-stepper button:hover {
  color: white;
  background: var(--berry);
}

.party-stepper button:active {
  transform: scale(0.94);
}

.party-stepper button:disabled {
  color: rgba(118, 95, 102, 0.4);
  background: rgba(255, 247, 248, 0.5);
  cursor: not-allowed;
  transform: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose-500);
  box-shadow: inset 3px 0 0 rgba(184, 138, 80, 0.36), 0 0 0 4px rgba(201, 111, 138, 0.14), 0 10px 30px rgba(125, 49, 72, 0.06);
  transform: translateY(-1px);
}

input[aria-invalid="true"] {
  border-color: #a7364f;
  box-shadow: 0 0 0 4px rgba(167, 54, 79, 0.12);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px rgba(255, 253, 248, 0.98) inset;
  transition: background-color 9999s ease-out;
}

.rsvp-form input:user-invalid,
.rsvp-form select:user-invalid {
  border-color: rgba(167, 54, 79, 0.72);
  box-shadow: 0 0 0 4px rgba(167, 54, 79, 0.08);
}

.rsvp-form input:user-valid,
.rsvp-form select:user-valid {
  border-color: rgba(184, 138, 80, 0.42);
}

.rsvp-form input:user-valid:not([type="number"]) {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%2398652f' stroke-width='1.5'/%3E%3Cpath d='m8 12 2.6 2.7L16.5 9' fill='none' stroke='%2398652f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}

.rsvp-form [aria-invalid="true"] {
  border-color: rgba(167, 54, 79, 0.78);
  box-shadow: 0 0 0 4px rgba(167, 54, 79, 0.1);
  background-image: linear-gradient(90deg, rgba(167, 54, 79, 0.035), transparent 38%);
}

.rsvp-form .field-attention {
  animation: fieldAttention 360ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes fieldAttention {
  0%, 100% { transform: translateX(0); }
  28% { transform: translateX(-4px); }
  54% { transform: translateX(3px); }
  76% { transform: translateX(-2px); }
}

.rsvp-form label:has([aria-invalid="true"]) {
  color: #8b2944;
}

.form-status,
.table-result {
  margin: 0;
  color: var(--berry);
  font-weight: 800;
}

.rsvp-receipt {
  display: none;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.34), transparent 10rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 248, 0.84));
  box-shadow: 0 18px 58px rgba(125, 49, 72, 0.1);
}

.rsvp-receipt,
.table-result {
  scroll-margin-block: 120px;
}

.rsvp-receipt.is-visible {
  display: grid;
  gap: 8px;
  animation: ticketReveal 560ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.rsvp-receipt::before {
  content: "RSVP";
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(125, 49, 72, 0.08);
  font-family: var(--script-font);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
}

.rsvp-receipt strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.receipt-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt-check {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--berry));
  box-shadow: 0 8px 20px rgba(125, 49, 72, 0.2);
}

.receipt-check::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(201, 111, 138, 0.5);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.rsvp-receipt.is-visible .receipt-check {
  animation: receiptCheckPop 620ms 180ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

.rsvp-receipt.is-visible .receipt-check::after {
  animation: receiptCheckHalo 780ms 420ms ease-out both;
}

@keyframes receiptCheckPop {
  from { opacity: 0; transform: scale(0.55) rotate(-18deg); }
  68% { transform: scale(1.12) rotate(3deg); }
}

@keyframes receiptCheckHalo {
  0% { opacity: 0.7; transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1.75); }
}

.receipt-summary {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.receipt-summary span {
  padding: 6px 10px;
  border: 1px solid rgba(125, 49, 72, 0.12);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
}

.receipt-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 590px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.receipt-note span {
  width: 19px;
  height: 19px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--gold);
  font-size: 0.64rem;
}

.receipt-note.is-action-opened {
  color: #216840;
}

.receipt-note.is-action-opened span {
  background: #287a4b;
}

.rsvp-receipt span {
  color: var(--muted);
  font-weight: 700;
}

.receipt-share {
  width: fit-content;
  margin-top: 8px;
  color: white;
  background: #287a4b;
  box-shadow: 0 14px 32px rgba(40, 122, 75, 0.2);
}

.receipt-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.receipt-actions .receipt-share {
  margin-top: 0;
}

.receipt-copy {
  color: var(--berry);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.receipt-native-share {
  color: var(--berry);
  border-color: rgba(184, 138, 80, 0.32);
  background: rgba(234, 215, 189, 0.26);
}

.receipt-native-share[hidden] {
  display: none;
}

.receipt-native-share:disabled {
  cursor: wait;
  opacity: 0.62;
}

.receipt-share svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.receipt-share:hover {
  background: #216840;
}

.table-result {
  margin-top: 18px;
  min-height: 132px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(234, 215, 189, 0.34), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 248, 0.82));
  box-shadow: 0 18px 64px rgba(125, 49, 72, 0.1);
}

.table-result::before,
.table-result::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rose-50);
  border: 1px solid var(--line);
  transform: translateY(-50%);
}

.table-result::before {
  left: -13px;
}

.table-result::after {
  right: -13px;
}

.table-result strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.table-result span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.table-result.found {
  animation: ticketReveal 560ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.table-result.empty strong {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.host-panel {
  align-items: center;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
}

.host-panel p {
  color: var(--muted);
}

.host-actions {
  min-height: 184px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8), transparent 11rem),
    linear-gradient(135deg, rgba(255, 232, 238, 0.82), rgba(255, 253, 248, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(184, 138, 80, 0.08) 26px 27px);
}

.host-actions strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 4rem;
  line-height: 1;
}

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

.backup-tools,
.security-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.3), transparent 12rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 58px rgba(125, 49, 72, 0.08);
}

.security-tools {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.6fr) auto;
}

.backup-tools h3,
.security-tools h3 {
  margin: 0;
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 2rem;
}

.backup-tools p:not(.eyebrow),
.security-tools p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.backup-import input {
  display: none;
}

.host-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 0.8fr) minmax(300px, 1.1fr);
  gap: 16px;
}

.link-builder,
.table-builder,
.panel-search,
.csv-tools,
.bulk-tools,
.data-quality,
.manual-rsvp,
.assignment-list,
.rsvp-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 58px rgba(125, 49, 72, 0.08);
}

.link-builder {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.manual-rsvp {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 248, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.22), transparent 8rem);
}

.table-builder {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.table-seat-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.table-builder:not(.is-editing) #cancelTableEdit {
  display: none;
}

.panel-search {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  color: var(--berry);
  font-size: 0.88rem;
  font-weight: 800;
}

.csv-tools {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.csv-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.csv-tools input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.bulk-tools {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.table-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.data-quality {
  grid-column: 1 / -1;
  padding: 10px;
}

.quality-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(139, 30, 63, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 248, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.2), transparent 9rem);
}

.quality-card strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 1.45rem;
}

.quality-card span,
.quality-card li {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.6;
}

.quality-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.quality-card b {
  color: #8b1e3f;
}

.quality-card.is-ok {
  border-color: rgba(84, 114, 77, 0.2);
  background: rgba(248, 252, 246, 0.82);
}

.quality-card.is-warning {
  border-color: rgba(139, 30, 63, 0.2);
  background: rgba(255, 247, 248, 0.88);
}

.table-summary article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 215, 189, 0.24), transparent 8rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 44px rgba(125, 49, 72, 0.08);
}

.table-summary strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: 1.8rem;
  line-height: 1;
}

.table-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.rsvp-list {
  min-height: 190px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
}

.assignment-list {
  grid-column: 1 / -1;
  min-height: 110px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.rsvp-list p,
.assignment-list p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.rsvp-entry,
.assignment-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.assignment-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 248, 0.58);
}

.rsvp-entry:last-child {
  border-bottom: 0;
}

.rsvp-entry strong,
.assignment-entry strong {
  color: var(--berry);
}

.rsvp-entry span,
.assignment-entry span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.assignment-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-left: 3px solid rgba(139, 30, 63, 0.2);
  border-radius: 6px;
  color: #7d3148;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.5;
}

.assignment-entry small {
  width: fit-content;
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(139, 30, 63, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: #8b1e3f;
  background: rgba(255, 232, 238, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.assignment-entry small.sent {
  color: #54724d;
  border-color: rgba(84, 114, 77, 0.22);
  background: rgba(234, 245, 230, 0.78);
}

.rsvp-entry em,
.assignment-entry button {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--berry);
  background: rgba(255, 247, 248, 0.82);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.rsvp-entry-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rsvp-entry-actions button {
  border: 1px solid rgba(139, 30, 63, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: #8b1e3f;
  background: rgba(255, 232, 238, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.rsvp-message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.assignment-entry button {
  cursor: pointer;
  font: inherit;
}

.assignment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 360px;
}

.assignment-actions button {
  padding: 6px 9px;
  font-size: 0.74rem;
}

.checklist-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 0.8fr) minmax(240px, 0.5fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.checklist-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.checklist-form,
.checklist-summary,
.checklist-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 58px rgba(125, 49, 72, 0.08);
}

.checklist-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.task-money-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.budget-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.budget-summary article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 42px rgba(125, 49, 72, 0.07);
}

.budget-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.budget-summary strong {
  color: var(--berry);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.budget-summary .budget-balance {
  border-color: rgba(184, 138, 80, 0.34);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(234, 215, 189, 0.28));
}

.checklist-summary {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.checklist-summary strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 1;
}

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

.checklist-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.checklist-actions .button {
  min-height: 42px;
  padding: 0 12px;
}

.checklist-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 248, 0.58);
}

.checklist-item-main {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.task-payment-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.task-payment-summary small { color: var(--muted); }
.task-payment-summary b { color: var(--berry); }

.task-vendor {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.task-category {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.task-status {
  display: inline-flex;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.task-status.is-overdue { color: #a5283f; }

.budget-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.budget-categories span {
  display: inline-flex;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
}

.budget-categories b { color: var(--berry); }

.table-occupancy { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; }
.table-occupancy.is-over { color: #a5283f; }

.payment-history summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.payment-history small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.task-payment-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(125, 49, 72, 0.08);
}

.task-payment-progress i {
  width: var(--paid-progress);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--champagne), var(--gold));
  transition: width 360ms ease;
}

.checklist-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.task-budget-editor {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.task-budget-editor[hidden] { display: none; }
.task-budget-editor label { min-width: 0; }
.task-budget-editor input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}
.task-budget-editor button { min-height: 46px; }
.task-budget-editor > button { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .budget-summary,
  .task-money-fields,
  .task-budget-editor {
    grid-template-columns: 1fr;
  }

  .checklist-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .checklist-item-actions,
  .task-budget-editor {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.checklist-item > input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}

.checklist-item span {
  color: var(--berry);
  font-weight: 800;
}

.checklist-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.checklist-item button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--berry);
  background: rgba(255, 247, 248, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.itinerary-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(300px, 0.85fr) minmax(320px, 1.25fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.itinerary-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.itinerary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.itinerary-form,
.itinerary-summary,
.itinerary-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 58px rgba(125, 49, 72, 0.08);
}

.itinerary-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.itinerary-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.itinerary-summary article {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 248, 0.62);
}

.itinerary-summary strong {
  color: var(--berry);
  font-family: var(--script-font);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.itinerary-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.itinerary-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.itinerary-list > p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 248, 0.72)),
    radial-gradient(circle at 0% 0%, rgba(234, 215, 189, 0.24), transparent 8rem);
}

.itinerary-item time {
  display: inline-grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(139, 30, 63, 0.14);
  border-radius: 8px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.66);
  font-family: var(--script-font);
  font-size: 1.55rem;
  font-weight: 800;
}

.itinerary-item strong {
  color: var(--berry);
}

.itinerary-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.itinerary-item button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--berry);
  background: rgba(255, 247, 248, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.preview-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1.3fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.preview-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.preview-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.preview-frame-wrap {
  height: min(720px, 78vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rose-50);
  box-shadow: 0 28px 90px rgba(125, 49, 72, 0.14);
  transition: max-width 220ms ease, border-radius 220ms ease;
}

.preview-frame-wrap.is-mobile {
  max-width: 390px;
  margin: 0 auto;
  border-radius: 24px;
  border-width: 8px;
}

.preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.print-report {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.print-report p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.report-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(125, 49, 72, 0.1);
}

.report-card h3,
.report-card h4 {
  margin: 0;
  color: var(--berry);
  font-family: var(--script-font);
}

.report-card h3 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.report-card h4 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.report-card p {
  color: var(--muted);
  font-weight: 700;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.report-grid article,
.report-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 247, 248, 0.62);
}

.report-grid span,
.report-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-grid strong,
.report-row strong {
  display: block;
  margin-top: 4px;
  color: var(--berry);
  font-size: 1.4rem;
}

.report-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.location {
  align-items: center;
  border-top: 1px solid var(--line);
}

.location h2 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-family: var(--body-font);
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  word-break: normal;
}

.venue-address {
  max-width: 560px;
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.venue-address strong { color: var(--berry); }
.venue-address span { font-weight: 700; }
.venue-address small { color: var(--muted); font-size: 0.84rem; }
.venue-address small b { color: var(--gold-dark); }

.location::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(28deg, transparent 47%, rgba(184, 138, 80, 0.22) 48%, rgba(184, 138, 80, 0.22) 49%, transparent 50%),
    linear-gradient(152deg, transparent 47%, rgba(201, 111, 138, 0.16) 48%, rgba(201, 111, 138, 0.16) 49%, transparent 50%);
  background-size: 86px 72px, 112px 94px;
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, black);
  mask-image: linear-gradient(90deg, transparent 28%, black);
}

.location > * {
  position: relative;
  z-index: 1;
}

.location-route {
  position: absolute;
  right: 18%;
  bottom: 18%;
  z-index: 0;
  width: min(28%, 260px);
  overflow: visible;
  fill: none;
  stroke: rgba(152, 101, 47, 0.44);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 4 7;
  pointer-events: none;
}

.location-route > path:first-child {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.location-route circle {
  fill: var(--ivory);
  stroke-dasharray: none;
}

.location-route-pin {
  fill: rgba(255, 253, 248, 0.84);
  stroke-dasharray: none;
}

.location.is-visible .location-route > path:first-child {
  animation: locationRouteDraw 1.8s 480ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes locationRouteDraw {
  to { stroke-dashoffset: 0; }
}

.location-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.location-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(184, 138, 80, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.66);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.location .button {
  min-height: 54px;
  justify-self: end;
  padding-inline: 22px;
  box-shadow: 0 18px 42px rgba(92, 32, 52, 0.18);
}

.location .button > svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.location {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: clamp(30px, 5vw, 72px);
}

.location > div:first-child {
  max-width: 590px;
}

.location h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.35rem);
  letter-spacing: -0.025em;
}

.venue-address {
  padding: 17px 19px;
  border-left-width: 2px;
  background: linear-gradient(90deg, rgba(255, 250, 247, 0.9), rgba(255, 255, 255, 0.54));
  box-shadow: 0 12px 34px rgba(92, 32, 52, 0.055);
}

.location-visual {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(184, 138, 80, 0.2);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.96), transparent 10rem),
    linear-gradient(145deg, rgba(255, 249, 246, 0.9), rgba(244, 226, 229, 0.56));
  box-shadow: 0 24px 65px rgba(92, 32, 52, 0.1);
}

.location-visual::before {
  content: "G";
  position: absolute;
  right: -14px;
  bottom: -62px;
  z-index: -1;
  color: rgba(125, 49, 72, 0.045);
  font-family: var(--script-font);
  font-size: 14rem;
  line-height: 1;
}

.location-visual-label {
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.location-visual strong { color: var(--berry); font-size: 1.08rem; }
.location-visual small { max-width: 28ch; color: var(--muted); line-height: 1.45; }

.location .location-route {
  width: min(100%, 290px);
  height: auto;
  position: static;
  overflow: visible;
  margin: 2px 0 4px;
}

.location-visual .button {
  width: fit-content;
  justify-self: center;
  margin-top: 10px;
}

.map-ping {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.32);
  animation: mapPing 2.4s ease-out infinite;
}

@keyframes mapPing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.32);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

footer {
  display: grid;
  place-items: center;
  gap: 12px;
  position: relative;
  padding: 58px 16px 52px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.7), transparent 13rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 232, 238, 0.42));
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(520px, calc(100% - 64px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: translateX(-50%);
}

footer::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--rose-50);
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(184, 138, 80, 0.26);
  transform: translateX(-50%) rotate(45deg);
}

footer p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-monogram {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 138, 80, 0.28);
  border-radius: 50%;
  color: var(--berry);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: inset 0 0 0 6px rgba(255, 232, 238, 0.4), 0 14px 34px rgba(125, 49, 72, 0.09);
  font-family: var(--script-font);
  font-size: 3rem;
  line-height: 1;
  transition: color 220ms ease, transform 320ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 260ms ease;
}

.footer-monogram:hover {
  color: var(--gold);
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: inset 0 0 0 6px rgba(255, 232, 238, 0.5), 0 18px 42px rgba(125, 49, 72, 0.14);
}

.footer-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-back::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms ease;
}

.footer-back:hover::after,
.footer-back:focus-visible::after {
  transform: scaleX(1);
}

.footer-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.footer-back:hover svg {
  transform: translateY(-3px);
}

.install-invite {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.install-invite[hidden] {
  display: none;
}

.install-invite:not([hidden]) {
  animation: installInviteEnter 560ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.install-invite:not([hidden]) svg {
  animation: installIconCue 760ms 260ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

@keyframes installInviteEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
}

@keyframes installIconCue {
  0% { opacity: 0; transform: translateY(-5px); }
  60% { transform: translateY(3px); }
}

.install-invite:hover {
  border-color: rgba(184, 138, 80, 0.44);
  background: white;
  transform: translateY(-2px);
}

.install-invite:disabled {
  cursor: wait;
  opacity: 0.6;
}

.install-invite svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@keyframes gateArrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes gateContentReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes gateCornersReveal {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gateButtonBreath {
  0%, 100% { opacity: 0.42; transform: scale(0.985); }
  50% { opacity: 0.9; transform: scale(1); }
}

@keyframes gateButtonOpen {
  from { opacity: 0.35; transform: scaleX(0); }
  to { opacity: 0.9; transform: scaleX(1); }
}

@keyframes gateNameInk {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}

@keyframes envelopeOpen {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
  55% {
    opacity: 1;
    transform: translateY(-18px) rotateX(7deg) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translateY(-42px) rotateX(12deg) scale(0.94);
  }
}

@keyframes cardSheen {
  0%,
  44% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes gateGlow {
  from {
    opacity: 0.42;
  }
  to {
    opacity: 0.88;
  }
}

@keyframes sparkleDrift {
  0%,
  100% {
    opacity: 0;
    translate: 0 16px;
  }
  34%,
  72% {
    opacity: 1;
  }
  50% {
    translate: 18px -18px;
  }
}

@keyframes heroBloom {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes countdownSweep {
  0%,
  56% {
    transform: translateX(-110%);
  }
  88%,
  100% {
    transform: translateX(110%);
  }
}

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

@keyframes photoBreath {
  from {
    transform: scale(1.018);
  }
  to {
    transform: scale(1.055);
  }
}

@keyframes ticketReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Capa editorial y movimiento progresivo */
.hero {
  --hero-shift: 0px;
  --pointer-x: 68%;
  --pointer-y: 30%;
  background-position:
    center,
    center,
    calc(50% + var(--hero-shift)) center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.5), transparent 19rem),
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.2) 48%, transparent 70%);
  mix-blend-mode: screen;
  transition: background-position 180ms ease-out;
}

.hero-content::before {
  content: "G";
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  top: 16%;
  z-index: -1;
  color: rgba(125, 49, 72, 0.045);
  font-family: var(--script-font);
  font-size: clamp(18rem, 44vw, 42rem);
  font-weight: 400;
  line-height: 0.8;
  pointer-events: none;
  transform: translate3d(0, calc(var(--hero-shift) * -0.25), 0);
}

.topbar {
  position: relative;
  z-index: 5;
}

@media (min-width: 761px) {
  .invitation-open.has-scrolled .hero > .topbar {
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 24;
    width: min(860px, calc(100% - 40px));
    min-height: 58px;
    padding: 7px 10px 7px 18px;
    border: 1px solid rgba(125, 49, 72, 0.13);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.86);
    box-shadow: 0 20px 60px rgba(92, 32, 52, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    backdrop-filter: blur(20px) saturate(1.12);
    animation: navDockIn 440ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .invitation-open.has-scrolled .hero > .topbar .brand {
    font-size: 1.9rem;
  }

  .invitation-open.has-scrolled .hero > .topbar .navlinks {
    gap: 2px;
  }

  .invitation-open.has-scrolled .hero > .topbar .navlinks a {
    min-height: 40px;
    padding-inline: 11px;
    border-radius: 999px;
  }

  .invitation-open.has-scrolled .hero > .topbar .navlinks a:hover,
  .invitation-open.has-scrolled .hero > .topbar .navlinks a.is-active {
    background: rgba(255, 232, 238, 0.64);
  }
}

@keyframes navDockIn {
  from {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.96);
  }
}

.brand {
  position: relative;
  transition: color 220ms ease, transform 220ms ease;
}

body:not(.panel-page) .brand {
  padding-left: 13px;
}

body:not(.panel-page) .brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

body:not(.panel-page) .brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 13px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 138, 80, 0.2), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.19, 1, 0.22, 1);
}

.brand:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

body:not(.panel-page) .brand:hover::after,
body:not(.panel-page) .brand:focus-visible::after {
  transform: scaleX(1);
}

.gate-card,
.countdown-band,
.pass-card,
.feature-frame,
.feature-copy,
.detail-card,
.experience-strip,
.rsvp-form,
.table-result,
.location {
  border-radius: 24px;
}

.gate-card::before,
.feature-frame::before {
  border-radius: 17px;
}

.button {
  border-radius: 999px;
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.32), transparent 62%);
  transition: opacity 220ms ease;
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
}

.button-ripple {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(234, 215, 189, 0.32) 42%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0);
  animation: buttonRipple 680ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes buttonRipple {
  55% { opacity: 0.72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(var(--ripple-scale)); }
}

.countdown-band {
  box-shadow: 0 34px 100px rgba(125, 49, 72, 0.17), inset 0 1px 0 white;
}

.countdown-item strong {
  text-shadow: 0 10px 30px rgba(125, 49, 72, 0.14);
}

.pass-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--pass-tilt-x)) rotateY(var(--pass-tilt-y));
  transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 420ms ease;
}

.pass-card:hover {
  transform: perspective(1000px) translateY(-5px) rotateX(var(--pass-tilt-x)) rotateY(var(--pass-tilt-y));
  box-shadow: 0 38px 100px rgba(125, 49, 72, 0.17);
}

.guest-pass.is-visible > .pass-card {
  animation-fill-mode: backwards;
}

.pass-seal {
  transform: rotate(var(--seal-turn, -5deg));
  transition: transform 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.pass-card:hover .pass-seal {
  transform: rotate(5deg) scale(1.04);
}

.photo-feature {
  perspective: 1200px;
}

.feature-frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 260ms ease-out, box-shadow 320ms ease;
}

.feature-frame:hover {
  box-shadow: 0 46px 130px rgba(125, 49, 72, 0.23);
}

.feature-copy {
  overflow: hidden;
}

.detail-card {
  position: relative;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.detail-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -40% 50% -40% -80%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: translateX(-60%);
  transition: transform 720ms ease;
}

@keyframes detailCardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

.detail-card:hover::after {
  transform: translateX(190%);
}

.detail-card:hover {
  border-color: rgba(184, 138, 80, 0.34);
  transform: translateY(-7px);
}

.timeline {
  position: relative;
  border-top: 0;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 78px;
  width: 1px;
  pointer-events: none;
}

.timeline::before {
  background: var(--line);
}

.timeline::after {
  background: linear-gradient(180deg, var(--gold), var(--rose-500));
  transform: scaleY(1);
  transform-origin: top;
}

.timeline li {
  position: relative;
  padding-right: 16px;
  border-radius: 16px;
  border-bottom-color: rgba(125, 49, 72, 0.12);
  transition: transform 260ms ease, color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.timeline li:hover {
  transform: translateX(6px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 248, 0.36));
  box-shadow: inset 3px 0 0 rgba(184, 138, 80, 0.34);
}

.timeline li::before {
  position: relative;
  z-index: 2;
  border: 3px solid var(--rose-50);
  box-sizing: content-box;
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.timeline li:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 9px rgba(184, 138, 80, 0.13), 0 6px 18px rgba(125, 49, 72, 0.18);
  transform: scale(1.12);
}

.timeline time,
.timeline span {
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline li:hover time {
  border-color: rgba(152, 101, 47, 0.58);
  color: white;
  background: linear-gradient(145deg, var(--gold), #b88952);
  box-shadow: 0 12px 28px rgba(152, 101, 47, 0.2);
}

.timeline li:hover span {
  color: var(--berry);
  transform: translateX(3px);
}

.rsvp-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(125, 49, 72, 0.13);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.92), transparent 16rem),
    rgba(255, 253, 248, 0.72);
  box-shadow: 0 30px 100px rgba(125, 49, 72, 0.1);
  backdrop-filter: blur(18px);
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.rsvp-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 9%;
  left: 9%;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--champagne) 24%, var(--gold) 50%, var(--champagne) 76%, transparent);
  transform: scaleX(0.3);
  transform-origin: center;
  opacity: 0.7;
  transition: transform 900ms 180ms cubic-bezier(0.19, 1, 0.22, 1), opacity 420ms ease;
}

.rsvp-form::after {
  content: "G";
  position: absolute;
  right: -18px;
  bottom: -74px;
  z-index: 0;
  color: rgba(125, 49, 72, 0.035);
  font-family: var(--script-font);
  font-size: clamp(11rem, 26vw, 18rem);
  line-height: 1;
  pointer-events: none;
  transform: rotate(-8deg);
}

.rsvp-form > * {
  position: relative;
  z-index: 1;
}

.rsvp-steps {
  --rsvp-progress: 0%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 12px;
  position: relative;
}

.rsvp-steps::before,
.rsvp-steps::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: rgba(125, 49, 72, 0.14);
}

.rsvp-steps::after {
  right: auto;
  width: var(--rsvp-progress);
  background: linear-gradient(90deg, var(--champagne), var(--gold));
  transition: width 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.rsvp-steps span {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
}

.rsvp-steps b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 49, 72, 0.16);
  border-radius: 50%;
  background: var(--ivory);
  font-size: 0.72rem;
  transition: color 260ms ease, background 260ms ease, border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.rsvp-steps small {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-steps .is-current b,
.rsvp-steps .is-complete b {
  border-color: rgba(152, 101, 47, 0.52);
  color: white;
  background: linear-gradient(145deg, var(--gold), #b78a52);
  box-shadow: 0 7px 20px rgba(152, 101, 47, 0.2);
}

.rsvp-steps .is-complete b {
  font-size: 0;
}

.rsvp-steps .is-complete b::after {
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.rsvp-steps .is-current b {
  transform: scale(1.08);
  animation: rsvpCurrentStep 2.8s ease-in-out infinite;
}

.rsvp-steps .is-current small,
.rsvp-steps .is-complete small {
  color: var(--gold);
}

@keyframes rsvpCurrentStep {
  0%, 100% { box-shadow: 0 7px 20px rgba(152, 101, 47, 0.18), 0 0 0 0 rgba(184, 138, 80, 0.12); }
  50% { box-shadow: 0 9px 24px rgba(152, 101, 47, 0.24), 0 0 0 6px rgba(184, 138, 80, 0); }
}

.form-section.is-visible .rsvp-form::before,
.rsvp-form:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.rsvp-form:focus-within {
  border-color: rgba(184, 138, 80, 0.28);
  box-shadow: 0 36px 110px rgba(125, 49, 72, 0.13), 0 0 0 4px rgba(184, 138, 80, 0.045);
}

.rsvp-form label {
  transition: color 200ms ease;
}

.rsvp-form label:focus-within {
  color: var(--gold);
}

input,
select,
textarea {
  border-radius: 14px;
}

.location {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(234, 215, 189, 0.38), transparent 15rem),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 28px 90px rgba(125, 49, 72, 0.1);
}

.section.reveal.is-visible > * {
  animation: editorialRise 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.section.reveal.is-visible > *:nth-child(2) {
  animation-delay: 90ms;
}

.section.reveal.is-visible > *:nth-child(3) {
  animation-delay: 160ms;
}

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

@keyframes numberTick {
  0% {
    opacity: 0.38;
    transform: translateY(-7px) scale(0.96);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.details.reveal .detail-card,
.split.reveal .timeline li,
.experience-strip.reveal article {
  opacity: 0;
  transform: translateY(20px);
}

.details.reveal.is-visible .detail-card {
  animation: detailCardEnter 720ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.split.reveal.is-visible .timeline li,
.experience-strip.reveal.is-visible article {
  animation: editorialRise 720ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.details.reveal.is-visible .detail-card:nth-child(2),
.split.reveal.is-visible .timeline li:nth-child(2),
.experience-strip.reveal.is-visible article:nth-child(2) {
  animation-delay: 100ms;
}

.details.reveal.is-visible .detail-card:nth-child(3),
.split.reveal.is-visible .timeline li:nth-child(3),
.experience-strip.reveal.is-visible article:nth-child(3) {
  animation-delay: 190ms;
}

.split.reveal.is-visible .timeline li:nth-child(4) {
  animation-delay: 280ms;
}

@keyframes timelineGrow {
  to {
    transform: scaleY(1);
  }
}

@supports (animation-timeline: view()) {
  .timeline::after {
    transform: scaleY(0);
    animation: timelineGrow linear both;
    animation-timeline: view();
    animation-range: entry 15% cover 72%;
  }
}

.gate-card,
.quick-dock,
.countdown-band,
.rsvp-form,
.lightbox,
.toast,
.photo-hint,
.personal-note {
  -webkit-backdrop-filter: blur(18px);
}

@supports not (backdrop-filter: blur(1px)) {
  .gate-card,
  .quick-dock,
  .countdown-band,
  .rsvp-form,
  .personal-note {
    background-color: rgba(255, 253, 248, 0.97);
  }

  .lightbox {
    background-color: rgba(35, 20, 26, 0.97);
  }
}

@media (max-width: 760px) {
  .gate-date {
    gap: 8px;
    padding-inline: 11px;
    font-size: 0.61rem;
  }

  .gate-ambient::before {
    width: 128vw;
  }

  .gate-ambient::after {
    width: 158vw;
  }

  .location > .location-route {
    display: none;
  }

  .hero-scroll-cue {
    position: relative;
    bottom: auto;
    left: auto;
    width: fit-content;
    margin: -46px auto 46px;
    transform: none;
  }

  .intro-section {
    padding: 46px 22px 40px;
    border-radius: 24px;
  }

  .intro-sprig {
    display: none;
  }

  .ceremony-divider {
    width: min(280px, calc(100% - 64px));
    gap: 10px;
  }

  .ceremony-divider > div {
    width: 42px;
    height: 42px;
  }

  .ceremony-divider svg {
    width: 22px;
  }

  .hero-date {
    gap: 9px;
    min-height: 40px;
    padding: 8px 13px;
    font-size: clamp(0.87rem, 3.8vw, 1rem);
    text-align: center;
  }

  .hero-date::before,
  .hero-date::after {
    width: 6px;
    height: 6px;
  }

  .receipt-actions .button {
    width: 100%;
  }

  .saved-rsvp {
    grid-template-columns: auto 1fr;
  }

  .saved-rsvp button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
  }

  .welcome-gate,
  .panel-lock {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .navlinks {
    width: auto;
    margin-left: auto;
  }

  body:not(.panel-page) .navlinks a {
    display: none;
  }

  .panel-page .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-page .navlinks {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .panel-page .navlinks > * {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 92svh;
    background-position: 62% center;
  }

  .hero-memory {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100% - 32px, 420px);
    margin: -96px auto 72px;
  }

  .gate-card {
    min-height: 390px;
    padding: 34px 24px;
  }

  .welcome-gate .gate-card {
    width: calc(100vw - 40px);
    max-width: 520px;
  }

  .gate-card h2 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 3.5rem);
    line-height: 1.08;
  }

  .welcome-gate .gate-card > p:not(.eyebrow) {
    width: 100%;
    max-width: 300px;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .lock-card {
    padding: 28px 24px;
  }

  .lock-card h2 {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
    line-height: 1.08;
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
    line-height: 1.04;
  }

  .personal-note {
    align-items: flex-start;
    border-radius: 20px;
  }

  .panel-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-item {
    border-bottom: 1px solid var(--line);
  }

  .countdown-item:nth-child(2n) {
    border-right: 0;
  }

  .countdown-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .detail-grid,
  .experience-strip,
  .guest-pass,
  .photo-feature,
  .split,
  .host-panel,
  .backup-tools,
  .security-tools,
  .host-tools,
  .activity-panel,
  .checklist-panel,
  .itinerary-panel,
  .preview-panel,
  .report-grid,
  .report-columns,
  .location {
    grid-template-columns: 1fr;
  }

  .location .button {
    width: 100%;
    justify-self: stretch;
  }

  .location-visual {
    min-height: 270px;
    padding: 26px 20px;
  }

  .location-visual .button {
    width: 100%;
  }

  .backup-actions {
    justify-content: stretch;
  }

  .backup-actions .button,
  .backup-import {
    width: 100%;
  }

  .feature-copy {
    padding: 26px;
  }

  .closing-section {
    min-height: 440px;
    margin-bottom: 70px;
    border-radius: 24px;
  }

  .closing-section::before {
    inset: 12px;
    border-radius: 16px;
  }

  .closing-section h2 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .primary {
    grid-column: 1 / -1;
  }

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

  .gallery-item.tall {
    grid-column: span 2;
    grid-row: span 2;
  }

  .lightbox {
    padding-inline: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    min-height: 42px;
    transform: none;
  }

  .lightbox-nav.prev {
    left: 12px;
  }

  .lightbox-nav.next {
    right: 12px;
  }

  .lightbox p {
    margin-bottom: 62px;
  }

  .section {
    padding: 70px 0;
  }

  .assignment-entry {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .assignment-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .assignment-actions button {
    flex: 1 1 132px;
  }

  .itinerary-summary {
    grid-template-columns: 1fr;
  }

  .itinerary-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .itinerary-item button {
    justify-self: start;
  }

  .form-actions .button {
    width: 100%;
  }

  .quick-dock {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 10px;
  }

  .quick-dock > :first-child {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(92, 32, 52, 0.24);
  }

  .quick-dock > :first-child:hover {
    transform: translateY(-7px);
  }

  .quick-dock > :first-child:active {
    transform: translateY(-3px) scale(0.96);
  }

  .no-table-assignments .quick-dock {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-dock a,
  .quick-dock button {
    width: auto;
    min-height: 50px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 8px;
    text-align: center;
  }

  .quick-dock svg {
    width: 19px;
    height: 19px;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .quick-dock span {
    display: none;
  }

  .quick-dock strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.8rem;
  }

  footer {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 600px) {
  .timeline li::after {
    right: 2px;
    font-size: 2.3rem;
  }

  .pass-barcode {
    right: 24px;
    width: 62px;
  }

  .feature-copy p:not(.eyebrow)::first-letter {
    font-size: 3rem;
  }

  .hero-content {
    width: calc(100% - 24px);
  }

  .hero-content h1 {
    max-width: calc(100% - 8px);
    margin-left: 4px;
    font-size: clamp(3.35rem, 15vw, 4.3rem);
    line-height: 0.94;
  }

  .hero-content h1::after {
    width: 66%;
    margin-top: 12px;
  }

  .hero-date {
    width: 100%;
    border-radius: 20px;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .primary {
    grid-column: auto;
  }

  .hero-actions .button {
    min-width: 0;
    justify-content: center;
  }
}

@media print {
  .paper-grain {
    display: none !important;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white !important;
    color: #2d2226 !important;
    overflow: visible !important;
  }

  .welcome-gate,
  .quick-dock,
  .celebration-canvas,
  .scroll-progress,
  .toast,
  .hero-actions,
  .form-section,
  .table-section,
  .photo-hint,
  .lightbox {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-memory {
    position: static;
    margin: 24px 0 0 auto;
  }

  .countdown-band {
    margin-top: 24px;
  }

  .reveal,
  .reveal > *,
  .detail-card,
  .timeline li,
  .experience-strip article {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .section,
  .detail-card,
  .photo-feature,
  .closing-section {
    break-inside: avoid;
  }

  body:not(.panel-page) .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .panel-lock,
  .panel-hero,
  .panel-stats,
  .host-panel,
  .checklist-panel,
  .itinerary-panel,
  .preview-panel,
  .toast,
  .panel-page footer {
    display: none !important;
  }

  .panel-page .section {
    width: 100%;
    padding: 0;
  }

  .print-report {
    display: block;
    border: 0;
  }

  .print-report > div:first-child {
    display: none;
  }

  .report-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .report-grid,
  .report-columns {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-gate {
    clip-path: none;
  }

  .gate-ambient {
    transform: none;
    transition: none;
  }

  .gate-ambient span {
    animation: none;
  }

  .gate-card > .gate-photo,
  .gate-card > .eyebrow,
  .gate-card > h2,
  .gate-card > .gate-cross,
  .gate-card > p:not(.eyebrow),
  .gate-card > .gate-date,
  .gate-card > .gate-button,
  .gate-corners,
  .gate-photo::before {
    animation: none;
  }

  .gate-photo::after {
    animation: none;
  }

  .gate-button::before {
    animation: none;
  }

  .welcome-gate.is-opening .gate-button::before {
    animation: none;
    transform: none;
  }

  .gate-title-name {
    animation: none;
    background-position: 50% 50%;
  }

  .quick-dock button.is-copied svg {
    animation: none;
  }

  .timeline li:hover,
  .timeline li:hover span {
    transform: none;
  }

  .install-invite:not([hidden]),
  .install-invite:not([hidden]) svg {
    animation: none;
  }

  .invitation-open.has-scrolled .quick-dock > * {
    animation: none;
  }

  body:not(.panel-page) .brand::after {
    transition: none;
  }

  .detail-card a::after {
    transition: none;
  }

  .party-stepper input.is-changing {
    animation: none;
  }

  .rsvp-receipt.is-visible .receipt-check,
  .rsvp-receipt.is-visible .receipt-check::after {
    animation: none;
  }

  .rsvp-form .field-attention {
    animation: none;
  }

  .verse-section blockquote p::after {
    transform: rotate(-1.2deg) scaleX(1);
  }

  .rsvp-steps .is-current b {
    animation: none;
  }

  .gate-ambient::before,
  .gate-ambient::after {
    animation: none;
  }

  .location-route > path:first-child {
    stroke-dashoffset: 0;
  }

  img.photo-reveal {
    transition: none;
  }

  .button-ripple {
    display: none;
  }

  .hero-scroll-cue svg {
    animation: none;
  }

  .hero-content h1::after {
    opacity: 0.88;
    transform: scaleX(1);
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --gold: #744716;
    --muted: #554249;
    --line: rgba(92, 32, 52, 0.34);
  }

  .button.ghost,
  .button.secondary,
  .sound-toggle,
  input,
  select,
  textarea {
    background: #fff;
  }

  .eyebrow,
  .countdown-item span,
  .quick-dock span {
    font-weight: 900;
  }
}
