/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; }
:root {
  --gold: #8b6b30;
  --ink: #222222;
  --cream: #f7f2ea;
  --sage: #8a9a7a;
  --blush: #e4c4bc;
  --gold-light: #c9a962;
  --sage-light: rgba(138, 154, 122, 0.12);
  --blush-light: rgba(228, 196, 188, 0.25);
}
body {
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  position: relative;
}
button { cursor: pointer; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   Envelope Intro Animation
   ============================================= */
.content-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.content-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  will-change: transform, opacity;
  min-height: 100vh;
  min-width: 100vw;
}

.envelope-overlay.overlay-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.envelope-wrapper {
  position: relative;
  width: 50vw;
  height: 50vh;
  aspect-ratio: 16 / 9;
  max-width: 50vw;
  max-height: 50vh;
  overflow: visible;
  isolation: isolate;
}

/* Envelope prompt text */
.envelope-prompt {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: promptFadeIn 1.5s ease 0.5s forwards, promptPulse 2.5s ease-in-out 2s infinite;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes promptFadeIn {
  to { opacity: 1; }
}

@keyframes promptPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Back Layer: Envelope Back */
.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid #e0e0e0;
  z-index: 1;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .envelope-back fades with the overlay — no separate animation needed */

/* Middle Layer: Website Content (the "invitation card" inside the envelope)
   Actual size is full-viewport; scale(0.5) makes it appear envelope-sized.
   This lets us animate with transform only (GPU-composited, no layout). */
.envelope-content-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: scale(0.5);
  transform-origin: center center;
  z-index: 2;
  overflow: hidden;
  filter: blur(1.5px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: filter 0.3s ease;
  will-change: transform;
  contain: layout style paint;
}

/* Unblur when flaps start opening — content becomes crisp */
.envelope-content-layer.revealed {
  filter: blur(0);
}

/* Card rises out of the envelope and fills the viewport */
.envelope-content-layer.rising {
  z-index: 10;
  border-radius: 0;
  box-shadow: none;
  animation: cardRise 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Transform-only keyframes — fully GPU-composited, no layout or paint */
@keyframes cardRise {
  0%  { transform: scale(0.5); }
  15% { transform: translateY(-1.5vh) scale(0.53); }
  40% { transform: translateY(-4vh) scale(0.64); }
  100%{ transform: translateY(0) scale(1); }
}

.envelope-content-layer .container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Top Layer: Envelope Front with Side Flaps (Barn Doors) */
.envelope-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  cursor: pointer;
  perspective: 1200px;
  perspective-origin: center center;
}

.envelope-flap-left,
.envelope-flap-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid rgba(224, 224, 224, 0.8);
  pointer-events: auto;
  z-index: 10;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.65s, opacity 0.65s ease;
  transform-style: preserve-3d;
  backface-visibility: visible;
  overflow: visible;
  opacity: 0.9;
}

.envelope-flap-left::before,
.envelope-flap-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.envelope-flap-left {
  left: 0;
  border-radius: 8px 0 0 8px;
  border-right: 1px solid #d0d0d0;
  transform-origin: 0% center;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2), inset -1px 0 0 rgba(255, 255, 255, 0.5);
  background-image: url('images/flower_jacket_2.png');
  background-position: 100% center;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.8);
  background-repeat: no-repeat;
}

.envelope-flap-right {
  right: 0;
  border-radius: 0 8px 8px 0;
  border-left: 1px solid rgba(208, 208, 208, 0.8);
  transform-origin: 100% center;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2), inset 1px 0 0 rgba(255, 255, 255, 0.5);
  background-image: url('images/flower_jacket_2.png');
  background-position: 0% center;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.8);
  background-repeat: no-repeat;
}

.flap-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(200, 200, 200, 0.3) 0%,
    rgba(180, 180, 180, 0.5) 50%,
    rgba(200, 200, 200, 0.3) 100%);
  pointer-events: none;
}

.envelope-flap-left .flap-crease { right: 0; }
.envelope-flap-right .flap-crease { left: 0; }

.envelope-flap-left.envelope-opening {
  transform: rotateY(-120deg) translateZ(0);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.envelope-flap-right.envelope-opening {
  transform: rotateY(120deg) translateZ(0);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* .envelope-front fades with the overlay — no separate animation needed */

.wax-seal {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  z-index: 11;
  pointer-events: none;
  animation: sealPulse 2s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

.envelope-flap-right:hover .wax-seal:not(.seal-opening) {
  transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  animation: none;
}

/* =============================================
   Layout
   ============================================= */
.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.left-panel {
  flex: 1;
  position: relative;
}

.left-content {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  padding: 5em;
  font-size: 1.25em;
  font-weight: 200;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.left-content.content-visible { opacity: 1; }

.left-content h1 {
  font-weight: 400;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.5em;
}

.bg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.bg-layer.visible { opacity: 1; }

.right-panel {
  width: 50%;
  height: 100vh;
  overflow-y: scroll;
  background: var(--cream);
  padding: 0 2rem 2rem;
  position: relative;
}

/* =============================================
   Section Nav
   ============================================= */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 2rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(139, 107, 48, 0.15);
  margin: 0 -2rem;
}

.nav-link {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #666;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(139, 107, 48, 0.08);
}

.nav-link.active {
  color: var(--gold);
  background: rgba(139, 107, 48, 0.12);
}

/* =============================================
   Sections
   ============================================= */
section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

section p, .content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin: 2rem 0 1rem;
}

h2::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin: 0.75rem auto 0;
  background: var(--gold);
  border-radius: 1px;
}

/* =============================================
   Welcome / Hero
   ============================================= */
#welcome { position: relative; }

.info { text-align: center; position: relative; }

.info h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-size: 2em;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.info p, .info p a {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 300;
}

.info p strong { font-size: 1.2em; }

.content h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 3.2rem;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.rsvp {
  padding: 0.75rem 2rem;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  border-radius: 999px;
}

.rsvp:hover { background: var(--gold); color: #fff; }

.countdown {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 600;
}

.time {
  font-size: 0.5em;
  color: var(--gold);
  font-weight: 400;
  opacity: 0.85;
}

/* Add to Calendar link */
.add-to-cal {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.add-to-cal:hover { opacity: 1; text-decoration: underline; }

.scroll-caret {
  text-align: center;
  margin-top: 20px;
  animation: fadeInOut 2.5s infinite;
  bottom: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-caret svg {
  width: 80px;
  height: 80px;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* =============================================
   FAQ section
   ============================================= */
#faq h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--gold);
  letter-spacing: 0.02em;
}

#faq p {
  margin-bottom: 1rem;
  color: #3a3a3a;
}

#faq .color_list { margin: 0.75rem 0; }
#faq .inspiration-btn-wrapper { margin-top: 1rem; }

/* FAQ Accordion (details/summary) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }

.faq-item summary::after {
  content: "+";
  font-family: "Open Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212"; /* minus sign */
}

.faq-item[open] summary {
  background: rgba(139, 107, 48, 0.04);
}

.faq-item summary:hover {
  background: rgba(139, 107, 48, 0.04);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Color palette circles */
.color_list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  flex-wrap: wrap;
}

div.colors {
  width: min(60px, 10vw);
  height: min(60px, 10vw);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

div.colors:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#color1 { background: #a23040; }
#color2 { background: #c4652a; }
#color3 { background: #d0783a; }
#color4 { background: #b89230; }
#color5 { background: #8a8c28; }

.inspiration-btn-wrapper {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.inspiration-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.inspiration-btn:hover { background: var(--gold); color: #fff; }

/* =============================================
   Inspiration Page
   ============================================= */
.inspiration-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 3rem;
  background: var(--cream);
  min-height: 100vh;
}

.inspiration-page section {
  min-height: auto;
}

.inspiration-page h2 {
  margin-top: 0.5rem;
}

.inspiration-intro {
  margin: 1rem 0 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
}

.inspiration-photo {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.inspiration-photo img {
  width: 100%;
  display: block;
}

.inspiration-photo-pair {
  display: flex;
  gap: 1rem;
  margin: 0 0 2rem;
}

.inspiration-photo-pair img {
  width: 50%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.color_palette {
  margin: 3rem 0;
  text-align: center;
}

.color_palette h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.color_palette p {
  margin-bottom: 1.5rem;
  color: #555;
}

.style-tips {
  margin: 3rem 0;
  display: grid;
  gap: 1.5rem;
}

.tip-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--sage-light);
  border-left: 4px solid var(--sage);
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px var(--sage-light);
  border-left-color: var(--gold);
}

.tip-card h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tip-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.style-tips h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-align: center;
}

.back-link {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sage-light);
}

.inspiration-hero {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--blush-light) 0%, transparent 100%);
  border-radius: 16px;
}

.inspiration-hero .names {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.inspiration-hero .presents {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.inspiration-hero .location-date {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.inspiration-hero .location-date .location { color: var(--sage); }
.inspiration-hero .location-date .date { color: var(--gold); font-weight: 600; }

/* =============================================
   Where to Stay
   ============================================= */
.stay-map {
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #e9e9e9;
  margin: 1rem 0 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Map loading skeleton */
.map-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #999;
  font-size: 0.9rem;
}

.map-skeleton-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hotel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hotel-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.5rem 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hotel-index {
  grid-row: 1 / span 2;
  align-self: start;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  border: 1px solid #ddd;
  font-weight: 600; font-size: .9rem; color: var(--ink);
}

.hotel-name { font-weight: 600; }
.hotel-meta { color: #555; font-size: .95rem; }
.hotel-meta .star { color: #faaf00; margin-right: .25rem; }

.hotel-btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.25rem;
  padding: .6rem 1.1rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
}

.hotel-btn:hover { background: var(--gold); color: #fff; }

/* =============================================
   Schedule
   ============================================= */
.schedule-timeline {
  margin: 3rem 0;
  position: relative;
  padding-left: 2rem;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    rgba(139, 107, 48, 0.3) 0%,
    rgba(139, 107, 48, 0.5) 50%,
    rgba(139, 107, 48, 0.3) 100%);
  border-radius: 2px;
}

.schedule-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(139, 107, 48, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.schedule-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(139, 107, 48, 0.15);
  border-left-color: var(--gold);
}

.schedule-item:last-of-type { margin-bottom: 0; }

.schedule-time-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.schedule-time {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.schedule-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px rgba(139, 107, 48, 0.2), 0 2px 8px rgba(139, 107, 48, 0.3);
  position: absolute;
  left: -2.5rem;
  top: 2rem;
  z-index: 2;
}

.schedule-content h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.schedule-note {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
  font-style: italic;
  padding-left: 1rem;
  position: relative;
}

.schedule-note::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-style: normal;
}

.after-party {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(139, 107, 48, 0.05) 0%, rgba(184, 134, 11, 0.08) 100%);
  border-radius: 20px;
  text-align: center;
  border: 2px dashed var(--gold);
  position: relative;
  overflow: hidden;
}

.after-party::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 107, 48, 0.03) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.after-party-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: flicker 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.4));
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(0.95) rotate(5deg); }
  75% { transform: scale(1.05) rotate(-3deg); }
}

.after-party h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(139, 107, 48, 0.1);
}

.after-party p {
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.after-party p strong {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.2em;
}

/* =============================================
   RSVP Modal
   ============================================= */
.modal.hidden { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }

.modal__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  width: min(420px, 92vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.modal__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--ink);
}

#rsvp-form .row { margin-bottom: .85rem; }

#rsvp-form input,
#rsvp-form select,
#rsvp-form textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  font-size: .95rem;
  background: #fafafa;
  transition: border-color 0.2s ease;
}

#rsvp-form input:focus,
#rsvp-form select:focus,
#rsvp-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

#rsvp-submit { margin-top: .75rem; width: 100%; }
.modal__msg { margin-top: .75rem; font-size: .95rem; }


/* RSVP result panel */
.rsvp-result-panel {
  display: none;
  text-align: center;
}

.rsvp-result-text { margin: 0 0 .75rem; }

/* =============================================
   Back to Top
   ============================================= */
.back-to-top {
  position: sticky;
  bottom: 1.5rem;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--cream);
  color: var(--gold);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: -40px;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  color: #fff;
}

/* =============================================
   Responsive: stack layout on small screens
   ============================================= */
@media (max-width: 900px) {
  .inspiration-page {
    padding: 1.5rem;
  }

  .inspiration-photo-pair {
    flex-direction: column;
  }

  .inspiration-photo-pair img {
    width: 100%;
  }

  .container {
    display: block;
    height: auto;
    overflow: visible;
  }

  .left-panel {
    height: 100vh;
    position: relative;
  }

  .right-panel {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0 1.5rem 1.5rem;
    background: #fff;
  }

  section {
    min-height: auto;
    padding: 2rem 0;
  }

  .scroll-caret { display: none; }

  html, body { width: 100%; overflow-x: hidden; }
  .left-panel, section { max-width: 100vw; overflow-x: hidden; }

  /* Section nav scrollable on mobile */
  .section-nav {
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
  }

  .section-nav::-webkit-scrollbar { display: none; }

  /* FAQ items all start collapsed on mobile except first two */
  .faq-item:not([open]) summary {
    padding: 0.85rem 1rem;
  }

  .style-tips { gap: 1rem; }
  .tip-card { padding: 1.25rem; }

  .stay-map { height: 260px; }

  /* Schedule responsive */
  .schedule-timeline { padding-left: 1.5rem; }
  .schedule-timeline::before { left: 0.5rem; }
  .schedule-dot { left: -2rem; }
  .schedule-item { padding: 1.25rem 1.25rem 1.25rem 1.75rem; }
  .schedule-time { font-size: 1.6rem; }
  .schedule-content h3 { font-size: 1.4rem; }
  .after-party { padding: 2rem 1.5rem; }
  .after-party-icon { font-size: 2.5rem; }
  .after-party h3 { font-size: 1.6rem; }
  .after-party p { font-size: 1rem; }

  /* Envelope responsive */
  .envelope-wrapper {
    width: 50vw;
    height: 50vh;
    max-width: 90vw;
    max-height: 90vh;
    aspect-ratio: 16 / 9;
  }

  .envelope-content-layer {
    overflow: hidden;
  }

  .wax-seal { bottom: 12px; }
  .wax-seal svg { width: 40px; height: 40px; }

  .envelope-prompt {
    bottom: -2rem;
    font-size: 0.85rem;
  }

  .preview-content h1 { font-size: 1.3rem; }
  .envelope-overlay { padding: 1rem; }

  .envelope-flap-left { transform-origin: 0% center; }
  .envelope-flap-right { transform-origin: 100% center; }

  .envelope-flap-left.envelope-opening { transform: rotateY(-120deg) translateZ(0); }
  .envelope-flap-right.envelope-opening { transform: rotateY(120deg) translateZ(0); }

  .envelope-flap-left {
    background-size: cover;
    background-position: 100% center;
  }

  .envelope-flap-right {
    background-size: cover;
    background-position: 0% center;
  }
}

/* (Unused envelope keyframes removed) */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .envelope-flap,
  .envelope-wrapper,
  .website-preview,
  .envelope-overlay {
    transition: none;
    animation: none;
  }

  .content-hidden {
    opacity: 1;
    pointer-events: auto;
  }

  .envelope-overlay { display: none; }
  .wax-seal { animation: none; }
  .envelope-prompt { animation: none; opacity: 1; }
}

/* =============================================
   Print styles
   ============================================= */
@media print {
  .envelope-overlay,
  .section-nav,
  .scroll-caret,
  .back-to-top,
  .rsvp,
  .add-to-cal,
  .inspiration-btn-wrapper,
  #rsvp-modal,
  .stay-map { display: none; }

  .container {
    display: block;
    height: auto;
  }

  .left-panel { display: none; }

  .right-panel {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
    opacity: 1;
  }

  section {
    min-height: auto;
    page-break-inside: avoid;
  }

  .faq-item { break-inside: avoid; }
  .faq-item[open] summary::after { content: ""; }

  body { color: #000; font-size: 12pt; }
  h2::after { display: none; }

  .hotel-card { box-shadow: none; border: 1px solid #ccc; }
}
