/* ── Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Montserrat:wght@300;400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-ivory:    #fbf8f1;
  --color-sand:     #ead9c9;
  --color-copper:   #c3937c;
  --color-charcoal: #333333;
  --color-muted:    #787878;
  --color-border:   #e8d9cc;

  /* Fonts */
  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;

  /* Spacing */
  --container-max: 760px;
  --section-py:    5rem;
  --radius-btn:    30px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  background: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 160%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 0;
  background: var(--color-ivory);
}

/* ── Couple names ────────────────────────────────────────────── */
.couple-names {
  /* inline-flex сжимается до ширины контента; text-align:center родителя центрирует */
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  /* вертикальный padding даёт пространство для SVG-рамки */
  padding: 2rem 2.5rem 2.5rem;
  position: relative;
}

/* SVG-рамка: растягивается по размеру контейнера */
.couple-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* fill растягивает SVG под форму блока — нормально для орнаментального овала */
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  transform: translateY(-13px);
}

.partner-name {
  font-family: var(--font-display);
  /* десктоп ~1.5× меньше прежнего максимума (было 5rem → 3.25rem) */
  font-size: clamp(1.5rem, 4.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  line-height: 1;
  position: relative; /* поверх SVG */
}

.couple-connector {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--color-copper);
  letter-spacing: 0.05em;
  line-height: 1;
  position: relative; /* поверх SVG */
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  background: var(--color-ivory);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  margin: 0 auto;
  position: relative;
  width: 100%;
}

@media (min-width: 1025px) {
  .nav-inner { max-width: var(--container-max); }
}

.nav-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.45rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav-toggle:hover { opacity: 0.55; }

.nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-copper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-dropdown {
  position: absolute;
  top: 0;
  left: 54px; /* nav-toggle: padding(16) + bars(22) + padding(16) */
  right: 0;
  background: rgba(251, 248, 241, 0.4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 0.3rem 2rem;
  padding: 1rem 1.5rem 1rem 0;
}

.nav-dropdown[hidden] { display: none; }

.nav-dropdown-item {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.3rem 0;
  opacity: 0;
  animation: hi-appear-heart-revers 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  transition: color 0.2s;
}

.nav-dropdown-item:nth-child(1) { animation-delay: 0.00s; }
.nav-dropdown-item:nth-child(2) { animation-delay: 0.06s; }
.nav-dropdown-item:nth-child(3) { animation-delay: 0.12s; }
.nav-dropdown-item:nth-child(4) { animation-delay: 0.18s; }
.nav-dropdown-item:nth-child(5) { animation-delay: 0.24s; }
.nav-dropdown-item:nth-child(6) { animation-delay: 0.30s; }
.nav-dropdown-item:nth-child(7) { animation-delay: 0.36s; }

.nav-dropdown-item:hover { color: var(--color-copper); }

.nav-dropdown-item--active {
  color: var(--color-copper);
  position: relative;
}
.nav-dropdown-item--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: var(--color-copper);
  opacity: 0.45;
}


/* ── Main content ────────────────────────────────────────────── */
.site-main {
  flex: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0rem 1.5rem 0rem;
  width: 100%;
}

/* ── Decorative divider ──────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.ornament-icon {
  color: var(--color-copper);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  opacity: 0.8;
}

/* ── Section title ───────────────────────────────────────────── */
.section-title-block {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  width: 100px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.section-divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-copper);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 0rem 0 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-copper);
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 2528 / 1696; /* резервирует место до загрузки */
  object-fit: cover;
  display: block;
  margin: 0 auto 2.5rem;
  /* Ограничиваем высоту на широких экранах */
  max-height: 520px;
  object-position: center top;
}

/* На мобильных — чуть меньше высота */
@media (max-width: 600px) {
  .hero-photo {
    max-height: 260px;
    margin-bottom: 1.75rem;
  }
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-greeting-xl {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 1.5rem;
}

.hero-event {
  margin: 0 0 2.5rem;
}

.hero-event-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-event-item {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.hero-event-sep {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-border);
  margin: 0 1.25rem;
  vertical-align: middle;
}

.hero-rsvp-status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-copper);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--color-copper);
  color: var(--color-ivory);
  border: 1px solid var(--color-copper);
}

.btn-primary:hover {
  background: #b0806a;
  border-color: #b0806a;
  color: var(--color-ivory);
}

.btn-outline {
  background: transparent;
  color: var(--color-copper);
  border: 1px solid var(--color-copper);
}

.btn-outline:hover {
  background: var(--color-copper);
  color: var(--color-ivory);
}

/* ── RSVP Form ───────────────────────────────────────────────── */
.rsvp-section {
  max-width: 500px;
  margin: 0 auto;
}

.rsvp-already-notice {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-copper);
  background: #faf3ee;
  border: 1px solid var(--color-sand);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2.5rem;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.875rem;
}

/* Radio / Checkbox choices */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--color-border);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.choice-item:hover {
  border-color: var(--color-copper);
  background: #fdf7f3;
}

.choice-item input[type="radio"],
.choice-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
  cursor: pointer;
}

.choice-item input[type="checkbox"] {
  border-radius: 2px;
}

.choice-item input[type="radio"]:checked,
.choice-item input[type="checkbox"]:checked {
  border-color: var(--color-copper);
  background: var(--color-copper);
}

.choice-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ivory);
}

.choice-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--color-ivory);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.choice-item:has(input:checked) {
  border-color: var(--color-copper);
  background: rgba(195, 147, 124, 0.08);
}

.choice-item input:checked ~ .choice-label {
  color: var(--color-copper);
}

/* Pill-style choice list */
.choice-list--pills {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.choice-list--pills .choice-item {
  border-radius: var(--radius-btn);
  padding: 0.55rem 1.4rem;
  flex: 0 0 auto;
  gap: 0.6rem;
}

.choice-label {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

/* Partner block */
.partner-block {
  display: none;
  margin-top: 0.5rem;
}

.partner-block.visible {
  display: block;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-charcoal);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--color-copper);
}

/* Validation */
.field-error {
  font-size: 0.75rem;
  color: #b85c5c;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.form-actions {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Confirmation ────────────────────────────────────────────── */
.confirmation {
  text-align: center;
  padding: 2rem 0;
}

.confirmation-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-copper);
  opacity: 0.8;
}

.confirmation-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.confirmation-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-muted);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-border);
}

/* ── Hero intro ──────────────────────────────────────────────── */
.hero-intro {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto 1.25rem;
}

.hero-intro strong {
  font-weight: 400;
  color: var(--color-charcoal);
}

.hero-inline-photo {
  display: block;
  margin: 0 auto 1.25rem;
  width: 55%;
  max-width: 260px;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ── Person cards ────────────────────────────────────────────── */
.person-cards {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.person-card { flex: 1; }

.person-photo {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-loaded { opacity: 1; }

.person-card .couple-connector { margin-bottom: 0.625rem; }

.person-bio {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── Section body text ───────────────────────────────────────── */
.section-body {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.section-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.section-body strong {
  font-weight: 400;
  color: var(--color-charcoal);
}

.venue-note {
  font-size: 0.85em;
  font-style: italic;
}

/* ── Schedule ────────────────────────────────────────────────── */
.schedule {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.schedule-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.schedule-time {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-copper);
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.15rem;
  min-width: 3.5rem;
}

.schedule-content {
  flex: 1;
  border-left: 1px solid var(--color-sand);
  padding-left: 1.25rem;
}

.schedule-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-charcoal);
  margin-bottom: 0.35rem;
}

.schedule-content .section-body {
  text-align: center;
  margin-bottom: 0;
}

/* ── Venue name ──────────────────────────────────────────────── */
.venue-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-copper);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ── Hero Invite ─────────────────────────────────────────────── */

.hero-invite {
  position: relative;
  text-align: center;
  min-height: calc(100svh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  width: 100%;
  overflow: clip;
  padding: 0.5rem 0 2rem;
  gap: 1.5rem;
}

.hero-invite > * { position: relative; z-index: 2; }

.hero-invite::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/plate_bg_tiny.png');
  background-size: cover;
  background-position: center top;
  filter: blur(12px);
  transform: scale(1.05);
  z-index: 0;
}

.hero-invite::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/plate_bg_857_1200.png');
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.hero-invite.bg-ready::after { opacity: 1; }

.hero-invite-inner {
  position: relative;
  width: min(85vw, 420px);
}

.hero-invite-frame {
  display: block;
  width: 160%;
  margin-left: -30%;
  height: auto;
  pointer-events: none;
  opacity: 0;
  animation: hi-appear-heart 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0s 1 forwards;
}

.hero-invite-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 10%;
}

.hero-invite-names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-invite-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: 1.05;
  opacity: 0;
}

.hero-invite-name--solo {
  animation: hi-appear-heart-revers 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.5s;
}

.hero-invite-name--left {
  animation: hi-appear-heart-revers 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.5s;
}

.hero-invite-name--right {
  animation: hi-appear-heart-revers 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.8s;
}

.hero-invite-amp {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-copper);
  line-height: 1.05;
  opacity: 0;
  animation: hi-appear-heart 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.65s;
}

.hero-invite-tagline {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: hi-appear-heart-revers 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 1.1s;
}

.hero-invite-date {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
  animation: hi-appear-heart-revers 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 1.4s;
}

.hero-invite-countdown {
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: hi-appear-heart-revers 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 1.7s;
}
.hero-invite-countdown__label {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hero-invite-countdown__main {
  margin: 0;
  line-height: 1;
}
.hero-invite-countdown__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-charcoal);
}
.hero-invite-countdown__unit {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  vertical-align: middle;
}
.hero-invite-countdown__hms {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: 1;
  letter-spacing: 0.05em;
}

.hero-invite-frame,
.hero-invite-name--solo,
.hero-invite-name--left,
.hero-invite-name--right,
.hero-invite-amp,
.hero-invite-tagline,
.hero-invite-date,
.hero-invite-countdown {
  animation-play-state: paused;
}

.hero-ready .hero-invite-frame,
.hero-ready .hero-invite-name--solo,
.hero-ready .hero-invite-name--left,
.hero-ready .hero-invite-name--right,
.hero-ready .hero-invite-amp,
.hero-ready .hero-invite-tagline,
.hero-ready .hero-invite-date,
.hero-ready .hero-invite-countdown {
  animation-play-state: running;
}

@keyframes hi-appear-heart {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes hi-appear-heart-revers {
  0%   { opacity: 0; transform: scale(1.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header  { padding-top: 0; }
  .couple-names { gap: 0.75rem; padding: 1.5rem 1.5rem 2rem; }
  .site-main    { padding: 0 1.25rem 0; }
  .nav-list     { gap: 1.75rem; }
  .hero-event-row { flex-direction: column; gap: 0.4rem; }
  .hero-event-sep { display: none; }
  .rsvp-section { max-width: 100%; }
  .person-cards { gap: 1rem; }
  .person-photo { max-width: 130px; }
  .hero-inline-photo { width: 75%; }
  .hero-invite { min-height: calc(100svh - 2rem); }
  .hero-invite-inner { width: calc(100% - 3rem); }
  .hero-invite-names { flex-direction: column; align-items: center; gap: 0.25rem; }
}

@media (min-width: 601px) {
  .hero-invite::before,
  .hero-invite::after { background-size: auto 100%; background-repeat: no-repeat; }
  @keyframes hi-appear-frame-centered {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.6); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
  }
  .hero-invite-frame {
    width: auto;
    margin-left: 0;
    max-height: calc(100svh - 13rem);
    position: relative;
    left: 50%;
    animation-name: hi-appear-frame-centered;
  }
}

@media (min-width: 2560px) {
  .hero-invite-inner { width: min(40vw, 860px); }
  .hero-invite::after { background-image: url('/assets/plate_bg_1500_2100.png'); }
}

/* ── Scroll-to-top ───────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: rgba(251, 248, 241, 0.5);
  color: var(--color-copper);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 200;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1025px) {
  .scroll-top-btn { right: calc((100vw - var(--container-max)) / 2); }
}
