.invitation {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Mobile: single column, scroll-snap full-screen sections */
.invitation__main {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: var(--space-8) var(--space-5);
  padding-bottom: max(var(--space-8), env(safe-area-inset-bottom, var(--space-8)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section--alt { background: var(--color-bg-alt); }

.section__inner {
  width: 100%;
  max-width: 720px;
}

/* Sticky left sidebar (hidden on mobile) */
.invitation__sidebar { display: none; }

/* Section indicator dots (mobile: hidden, shown on desktop) */
.section-indicator { display: none; }

/* Desktop: two-column layout */
@media (min-width: 1024px) {
  .invitation {
    display: grid;
    grid-template-columns: var(--col-left-width) 1fr;
    height: 100vh;
    height: 100dvh;
  }

  .invitation__sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-10) var(--space-8);
    background:
      linear-gradient(135deg, rgba(20, 18, 14, 0.85) 0%, rgba(35, 28, 18, 0.9) 50%, rgba(15, 13, 10, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-right: 1px solid rgba(201, 168, 76, 0.15);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 4px 0 32px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    color: #f5ead0;
  }

  .invitation__sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at top left, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

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

  .sidebar__footer {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--fs-xs);
    z-index: 2;
  }

  .sidebar__couple {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    line-height: var(--lh-tight);
    color: #fefaf0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .sidebar__couple .amp {
    color: #d4b76a;
    font-style: italic;
    text-shadow: 0 0 20px rgba(212, 183, 106, 0.4);
  }

  .sidebar__date-stack {
    margin-top: var(--space-5);
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 2.2vw, 2.8rem);
    line-height: 1;
    color: rgba(245, 234, 208, 0.5);
    gap: 0.25rem;
    position: relative;
    padding-right: 1.2rem;
  }

  .sidebar__date-stack::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(245, 234, 208, 0.2);
  }

  .sds__num {
    display: block;
  }

  .invitation__sidebar .muted {
    color: rgba(245, 234, 208, 0.5) !important;
  }

  .invitation__main {
    height: 100vh;
    height: 100dvh;
  }

  .section { padding: var(--space-10); }
  .section__inner { max-width: 800px; }

  .section-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    position: fixed;
    right: var(--space-6);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: var(--space-3) var(--space-2);
    background: var(--color-glass);
    backdrop-filter: var(--backdrop-blur-sm);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(61,47,31,0.10), 0 1px 0 var(--color-glass-inset) inset;
  }

  .section-indicator__dot {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform var(--transition-spring);
    position: relative;
  }

  .section-indicator__dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-divider);
    transition: background var(--transition-spring), transform var(--transition-spring), width var(--transition-spring), height var(--transition-spring);
  }

  .section-indicator__dot.is-active::after {
    background: var(--color-primary);
    transform: scale(1.6);
  }

  .section-indicator__dot:hover::after {
    background: var(--color-primary);
    transform: scale(1.2);
  }
}

/* Mobile: hide section indicator */
@media (max-width: 1023px) {
  .section-indicator { display: none !important; }
}

@media (max-width: 380px) {
  .section { padding: var(--space-6) var(--space-4); }
}

/* Disable scroll-snap when reduced motion */
@media (prefers-reduced-motion: reduce) {
  .invitation__main { scroll-snap-type: none; scroll-behavior: auto; }
  .section { scroll-snap-stop: normal; }
}
